1 2014-10-26 Doug Evans <xdje42@gmail.com>
3 * parser-defs.h (block_found): Move decl from here ...
4 * symtab.h (block_found): ... to here.
6 2014-10-26 Doug Evans <xdje42@gmail.com>
8 * symtab.h (struct field_of_this_result): Fix typo in comment.
9 (lookup_symbol_in_language): Move function comment here.
10 (lookup_symbol): Improve function comment.
11 (basic_lookup_symbol_nonlocal): Ditto.
12 (lookup_symbol_static, lookup_symbol_global): Ditto.
13 (lookup_symbol_aux_block): Ditto.
14 (lookup_language_this): Add function comment.
15 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
17 (lookup_block_symbol): Improve function comment.
18 (lookup_struct): Fix capitalization in function comment.
19 (lookup_transparent_type): Add function comment.
20 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
21 Improve function comment.
22 (lookup_objfile_from_block): Add function comment.
23 * symtab.c (lookup_symbol_in_language): Update function comment.
24 (lookup_symbol, lookup_language_this): Ditto.
25 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
26 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
27 (basic_lookup_symbol_nonlocal): Ditto.
28 (lookup_symbol_static, lookup_symbol_global): Ditto.
29 (lookup_transparent_type, lookup_block_symbol): Ditto.
31 2014-10-25 Doug Evans <xdje42@gmail.com>
33 * symtab.c (types_info): Delete forward decl.
34 (functions_info, variables_info, sources_info): Ditto.
35 (_initialize_symtab): Rewrite forward decl to use
36 initialize_file_ftype.
38 2014-10-25 Doug Evans <xdje42@gmail.com>
40 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
42 2014-10-25 Doug Evans <xdje42@gmail.com>
44 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
45 of local var child_die.
47 2014-10-24 Don Breazeal <donb@codesourcery.com>
49 * infrun.c (follow_fork_inferior): Update fork message printing
50 to use target_terminal_ours_for_output instead of
51 target_terminal_ours, to use _() for all format strings, to print
52 "vfork" instead of "fork" for vforks, and to add a detach message.
53 (handle_vfork_child_exec_or_exit): Update message printing to use
54 target_terminal_ours_for_output instead of target_terminal_ours, to
55 use _() for all format strings, and to fix some formatting.
57 2014-10-24 Pedro Alves <palves@redhat.com>
59 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
60 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
61 * config/vax/vax.mh: Delete.
62 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
63 obsolete configurations section.
64 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
65 * vax-nat.c: Delete file.
67 2014-10-24 Pedro Alves <palves@redhat.com>
69 * NEWS (Removed targets): Add OS/arch column.
71 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
73 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
74 on the arg type of a constructor only if it is of reference type.
76 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
78 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
79 accessors and constants from nios2 opcodes update.
80 (nios2_get_next_pc): Likewise.
82 2014-10-19 Doug Evans <xdje42@gmail.com>
84 * gdbthread.h (set_running): Fix comment.
85 (set_executing, finish_thread_state): Fix comment.
87 2014-10-18 Doug Evans <xdje42@gmail.com>
89 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
91 2014-10-17 Doug Evans <dje@google.com>
93 * NEWS: Mention new event gdb.clear_objfiles.
94 * python/py-event.h (emit_clear_objfiles_event): Clear
95 * python/py-events.h (events_object): New member clear_objfiles.
96 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
98 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
99 emit clear_objfiles event.
100 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
102 (emit_clear_objfiles_event): New function.
103 (clear_objfiles): New event.
104 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
106 * python/python.c (_initialize_python): Call
107 gdbpy_initialize_clear_objfiles_event.
109 2014-10-17 Doug Evans <dje@google.com>
111 * NEWS: Mention new gdb.Objfile.progspace attribute.
112 * python/py-objfile.c (objfpy_get_progspace): New function.
113 (objfile_getset): New entry for "progspace".
115 2014-10-17 Pedro Alves <palves@redhat.com>
118 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
119 returns a copy of the input.
120 (run_command_1, continue_command, step_1, jump_command)
121 (signal_command, until_command, advance_command, finish_command)
122 (attach_command): Adjust and install a cleanup to free the
125 2014-10-17 Pedro Alves <palves@redhat.com>
128 * infcmd.c (continue_1): If continuing all threads in the
129 foreground, make sure the inferior's terminal settings are put in
132 2014-10-17 Pedro Alves <palves@redhat.com>
135 * annotate.c (annotate_breakpoints_invalid): Use
136 target_terminal_our_for_output instead of target_terminal_ours.
137 Give back the terminal to the target.
138 (annotate_frames_invalid): Likewise.
140 2014-10-17 Pedro Alves <palves@redhat.com>
142 * target.c (enum terminal_state): New enum.
143 (terminal_state): New global.
144 (target_terminal_init): New function.
145 (target_terminal_inferior): Skip if inferior already owns the
147 (target_terminal_ours, target_terminal_ours_for_output): New
149 * target.h (target_terminal_init): Convert to function prototype.
150 (target_terminal_ours_for_output): Convert to function prototype
152 (target_terminal_ours): Convert to function prototype and tweak
154 * windows-nat.c (do_initial_windows_stuff): Call
155 target_terminal_init instead of child_terminal_init_with_pgrp.
157 2014-10-17 Pedro Alves <palves@redhat.com>
159 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
160 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
161 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
163 * NEWS: Mention that support for alpha*-*-osf* has been removed.
164 * ada-lang.h [__alpha__ && __osf__]
165 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
166 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
167 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
169 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
171 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
172 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
173 * configure: Regenerate.
174 * configure.ac: Remove references to osf.
175 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
176 section. Remove all other references to osf.
177 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
178 Remove all other references to osf.
179 * dec-thread.c: Delete file.
180 * defs.h (GDB_OSABI_OSF1): Delete.
181 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
183 * osabi.c (gdb_osabi_names): Delete "OSF/1".
184 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
186 (unconditionally_kill_inferior)
187 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
188 * solib-osf.c: Delete file.
190 2014-10-17 Pedro Alves <palves@redhat.com>
192 * remote.c (clear_threads_listing_context): Move higher up, out of
193 the HAVE_LIBEXPAT guard.
195 2014-10-16 Tristan Gingold <gingold@adacore.com>
197 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
198 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
201 2014-10-15 Pedro Alves <palves@redhat.com>
203 * dec-thread.c (dec_thread_count_gdb_threads)
204 (dec_thread_add_gdb_thread): Delete.
205 (dec_thread_update_thread_list): Delete.
206 (dec_thread_find_new_threads): Rename to ...
207 (dec_thread_update_thread_list): ... this. Delete GDB-size
208 threads that are no longer found in dec_thread_list.
209 (resync_thread_list): Delete.
210 (dec_thread_wait): Call dec_thread_update_thread_list instead of
213 2014-10-15 Pedro Alves <palves@redhat.com>
215 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
216 * remote.c (remote_update_thread_list): Skip calling prune_threads
217 if any thread listing method is supported, and instead walk over
218 the set of remote threads listed, deleting those that are not
219 found in GDB's thread list.
221 2014-10-15 Pedro Alves <palves@redhat.com>
223 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
224 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
225 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
226 (bsd_uthread_target): Adjust.
227 * corelow.c (core_open): Adjust.
228 * dec-thread.c (dec_thread_find_new_threads): Update comment.
229 (dec_thread_update_thread_list): New function.
230 (init_dec_thread_ops): Adjust.
231 * gdbthread.h (prune_threads): New declaration.
232 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
233 (thread_db_update_thread_list): ... this. Call prune_threads.
234 (init_thread_db_ops): Adjust.
235 * nto-procfs.c (procfs_find_new_threads): Rename to ...
236 (procfs_update_thread_list): ... this. Call prune_threads.
237 (procfs_attach, procfs_create_inferior, init_procfs_targets):
239 * obsd-nat.c (obsd_find_new_threads): Rename to ...
240 (obsd_update_thread_list): ... this. Call prune_threads.
241 (obsd_add_target): Adjust.
242 * procfs.c (procfs_target): Adjust.
243 (procfs_notice_thread): Update comment.
244 (procfs_find_new_threads): Rename to ...
245 (procfs_update_thread_list): ... this. Call prune_threads.
246 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
248 (ravenscar_wait): Adjust.
249 (ravenscar_find_new_threads): Rename to ...
250 (ravenscar_update_thread_list): ... this. Call prune_threads.
251 (init_ravenscar_thread_ops): Adjust.
252 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
253 (record_btrace_update_thread_list): ... this. Adjust comment.
254 (init_record_btrace_ops): Adjust.
255 * remote.c (remote_threads_info): Rename to ...
256 (remote_update_thread_list): ... this. Call prune_threads.
257 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
259 * sol-thread.c (check_for_thread_db): Adjust.
260 (sol_find_new_threads_callback): Rename to ...
261 (sol_update_thread_list_callback): ... this.
262 (sol_find_new_threads): Rename to ...
263 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
264 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
265 * target-delegates.c: Regenerate.
266 * target.c (target_find_new_threads): Rename to ...
267 (target_update_thread_list): ... this.
268 * target.h (struct target_ops): Rename to_find_new_threads field
269 to to_update_thread_list.
270 (target_find_new_threads): Rename to ...
271 (target_update_thread_list): ... this.
272 * thread.c (prune_threads): Make extern.
273 (update_thread_list): Adjust.
275 2014-10-15 Pedro Alves <palves@redhat.com>
277 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
278 Add describing comment. Return -1 if the qL packet is not
280 (struct thread_item, thread_item_t): Move higher up in
281 the file. Add comments.
282 (struct threads_parsing_context): Move higher up in
283 the file, add comments, and remote to ...
284 (struct threads_listing_context): ... this.
285 (remote_newthread_step): Don't add the thread to GDB's thread
286 database here. Instead push it to the thread_listing_context
288 (remote_find_new_threads): Rename to ...
289 (remote_get_threads_with_ql): ... this. Add target_ops and
290 targets_listing_context parameters. Pass down context.
291 (start_thread): Adjust.
292 (clear_threads_parsing_context): Rename to ...
293 (clear_threads_listing_context): ... this.
294 (remote_get_threads_with_qxfer): New, with parts salvaged from old
296 (remote_get_threads_with_qthreadinfo): Ditto.
297 (remote_threads_info): Reimplement.
299 2014-10-15 Pedro Alves <palves@redhat.com>
301 * infrun.c (resume): Don't force displaced-stepping for all
302 single-steps on software single-stepping archs.
304 2014-10-15 Pedro Alves <palves@redhat.com>
306 * breakpoint.c (single_step_breakpoints): Delete global.
307 (insert_single_step_breakpoint): Adjust to store the breakpoint
308 pointer in the current thread.
309 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
310 (cancel_single_step_breakpoints): Delete functions.
311 (breakpoint_has_location_inserted_here): Make extern.
312 (single_step_breakpoint_inserted_here_p): Adjust to walk the
314 * breakpoint.h (breakpoint_has_location_inserted_here): New
316 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
317 (cancel_single_step_breakpoints): Remove declarations.
318 * gdbthread.h (struct thread_control_state)
319 <single_step_breakpoints>: New field.
320 (delete_single_step_breakpoints)
321 (thread_has_single_step_breakpoints_set)
322 (thread_has_single_step_breakpoint_here): New declarations.
323 * infrun.c (follow_exec): Also clear the single-step breakpoints.
324 (singlestep_breakpoints_inserted_p, singlestep_ptid)
325 (singlestep_pc): Delete globals.
326 (infrun_thread_ptid_changed): Remove references to removed
328 (resume_cleanups): Delete the current thread's single-step
330 (maybe_software_singlestep): Remove references to removed globals.
331 (resume): Adjust to use thread_has_single_step_breakpoints_set and
332 delete_single_step_breakpoints.
333 (init_wait_for_inferior): Remove references to removed globals.
334 (delete_thread_infrun_breakpoints): Delete the thread's
335 single-step breakpoints too.
336 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
337 single-step breakpoints here.
338 (delete_stopped_threads_single_step_breakpoints): New function.
339 (adjust_pc_after_break): Adjust to use
340 thread_has_single_step_breakpoints_set.
341 (handle_inferior_event): Remove references to removed globals.
342 Use delete_stopped_threads_single_step_breakpoints.
343 (handle_signal_stop): Adjust to per-thread single-step
344 breakpoints. Swap test order to do cheaper tests first.
345 (switch_back_to_stepped_thread): Extend debug output. Remove
346 references to removed globals.
347 * record-full.c (record_full_wait_1): Adjust to per-thread
348 single-step breakpoints.
349 * thread.c (delete_single_step_breakpoints)
350 (thread_has_single_step_breakpoints_set)
351 (thread_has_single_step_breakpoint_here): New functions.
352 (clear_thread_inferior_resources): Also delete the thread's
353 single-step breakpoints.
355 2014-10-15 Pedro Alves <palves@redhat.com>
357 * thread.c (delete_thread_breakpoint): New function.
358 (delete_step_resume_breakpoint)
359 (delete_exception_resume_breakpoint): Use it.
360 (delete_at_next_stop): New function.
361 (clear_thread_inferior_resources): Use delete_at_next_stop.
363 2014-10-15 Pedro Alves <palves@redhat.com>
365 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
366 (breakpoint_inserted_here_p): ... here. Remove special case for
367 software single-step breakpoints.
368 (find_non_raw_software_breakpoint_inserted_here): Inline ...
369 (software_breakpoint_inserted_here_p): ... here. Remove special
370 case for software single-step breakpoints.
371 (bp_target_info_copy_insertion_state)
372 (deprecated_insert_raw_breakpoint)
373 (deprecated_remove_raw_breakpoint): Delete functions.
374 * breakpoint.h (deprecated_insert_raw_breakpoint)
375 (deprecated_remove_raw_breakpoint): Remove declarations.
377 2014-10-15 Pedro Alves <palves@redhat.com>
380 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
381 Delete array globals.
382 (single_step_breakpoints): New global.
383 (breakpoint_xfer_memory): Remove special handling for single-step
385 (update_breakpoints_after_exec): Delete bp_single_step
387 (detach_breakpoints): Remove special handling for single-step
389 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
390 (bpstat_stop_status): Add comment.
391 (bpstat_what, bptype_string, print_one_breakpoint_location)
392 (adjust_breakpoint_address, init_bp_location): Handle
394 (new_single_step_breakpoint): New function.
395 (set_momentary_breakpoint, bkpt_remove_location): Remove special
396 handling for single-step breakpoints.
397 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
398 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
400 (detach_single_step_breakpoints, find_single_step_breakpoint):
402 (breakpoint_has_location_inserted_here): New function.
403 (single_step_breakpoint_inserted_here_p): Rewrite.
404 * breakpoint.h: Remove FIXME.
405 (enum bptype) <bp_single_step>: New enum value.
406 (insert_single_step_breakpoint): Update comment.
407 * infrun.c (resume_cleanups)
408 (delete_step_thread_step_resume_breakpoint): Remove single-step
410 (fetch_inferior_event): Install a cleanup that removes infrun
412 (switch_back_to_stepped_thread) <expect thread advanced also>:
413 Clear step-over info.
415 2014-10-15 Pedro Alves <palves@redhat.com>
417 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
418 (delete_thread_infrun_breakpoints): New function, with parts
419 salvaged from delete_step_resume_breakpoint_callback.
420 (delete_step_thread_step_resume_breakpoint): Delete.
421 (for_each_just_stopped_thread_callback_func): New typedef.
422 (for_each_just_stopped_thread): New function.
423 (delete_just_stopped_threads_infrun_breakpoints): New function.
424 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
425 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
427 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
429 2014-10-15 Pedro Alves <palves@redhat.com>
431 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
432 trying to step past a non-steppable watchpoint.
433 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
435 * infrun.c (struct step_over_info): Add new field
436 'nonsteppable_watchpoint_p' and adjust comments.
437 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
439 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
440 (stepping_past_nonsteppable_watchpoint): New function.
441 (step_over_info_valid_p): Also return true if stepping past a
442 nonsteppable watchpoint.
443 (proceed): Adjust call to set_step_over_info. Remove reference to
445 (init_wait_for_inferior): Remove reference to init_infwait_state.
446 (waiton_ptid): Delete global.
447 (struct execution_control_state)
448 <stepped_after_stopped_by_watchpoint>: Delete field.
449 (wait_for_inferior, fetch_inferior_event): Always pass
450 minus_one_ptid to target_wait.
451 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
453 (init_infwait_state): Delete function.
454 (handle_inferior_event): Remove infwait_state handling.
455 (handle_signal_stop) <watchpoints handling>: Adjust after
456 stepped_after_stopped_by_watchpoint removal. Don't remove
457 breakpoints here nor set infwait_state. Set the thread's
458 stepping_over_watchpoint flag, and call keep_going instead.
459 (keep_going): Handle stepping_over_watchpoint. Adjust
460 set_step_over_info calls.
461 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
464 2014-10-15 Pedro Alves <palves@redhat.com>
466 * infrun.c (step_over_info_valid_p): New function.
467 (resume): Use step_over_info_valid_p instead of checking the
468 threads's trap_expected flag.
470 2014-10-15 Doug Evans <dje@google.com>
471 Walfred Tedeschi <walfred.tedeschi@intel.com>
474 * python/lib/gdb/__init__.py (packages): Add "printer".
475 * python/lib/gdb/command/bound_registers.py: Moved to ...
476 * python/lib/gdb/printer/bound_registers.py: ... here.
477 Add printer to global set of builtin printers. Rename printer from
478 "bound" to "mpx_bound128".
479 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
480 registered as global "builtin" printer.
481 (add_builtin_pretty_printer): New function.
482 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
483 gdb/printer/__init__.py.
485 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
487 * Makefile.in (SFILES): Remove d-support.c.
488 (COMMON_OBS): Remove d-support.o.
489 * d-lang.h (d_parse_symbol): Remove declaration.
490 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
491 * d-support.c: Remove file.
493 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
495 * gdb/infrun.c (process_event_stop_test): Apply
496 gdbarch_addr_bits_remove to longjmp resume address.
498 2014-10-15 Pedro Alves <palves@redhat.com>
500 * regformats/microblaze.dat: Delete file.
502 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
504 * features/Makefile (microblaze-expedite): Replace pc with rpc.
505 * regformats/microblaze-with-stack-protect.dat: Regenerate.
507 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
509 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
512 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
516 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
519 2014-10-14 Joel Brobecker <brobecker@adacore.com>
521 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
522 of the case where the second operand is a pointer.
523 <BINOP_SUB>: Likewise.
525 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
527 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
528 only if it is not NULL.
529 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
530 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
531 (struct probe_ops) <clear_semaphore>: Likewise.
532 * tracepoint.c (start_tracing): Call set_semaphore only if it is
534 (stop_tracing): Likewise, for clear_semaphore.
536 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
538 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
539 using language_c, instead of current_language.
541 2014-10-13 Doug Evans <dje@google.com>
543 * python/py-objfile.c (objfpy_initialize): New function.
544 (objfpy_new, objfile_to_objfile_object): Call it.
545 * python/py-progspace.c (pspy_initialize): New function.
546 (pspy_new, pspace_to_pspace_object): Call it.
548 2014-10-13 Miroslav Franc <mfranc@redhat.com>
549 Jan Kratochvil <jan.kratochvil@redhat.com>
551 Fix "save breakpoints" for "catch" command.
552 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
555 2014-10-12 Miroslav Franc <mfranc@redhat.com>
557 Fix "save breakpoints" for "disable $bpnum" command.
558 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
560 2014-10-10 Pedro Alves <palves@redhat.com>
562 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
563 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
564 (HFILES_NO_SRCDIR): Remove solib-irix.h.
565 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
567 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
568 * configure.ac: Remove references to IRIX.
569 * configure.host: Add *-*-irix* to the obsolete hosts section.
570 Remove all other references to irix.
571 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
574 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
576 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
577 isn't valid, release the tdesc arch data and return NULL.
579 2014-10-10 Pedro Alves <palves@redhat.com>
581 * linux-tdep.c: Include observer.h.
582 (linux_inferior_data): New global.
583 (struct linux_info): New structure.
584 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
585 (get_linux_inferior_data): New functions.
586 (linux_vsyscall_range): Rename to ...
587 (linux_vsyscall_range_raw): ... this.
588 (linux_vsyscall_range): New function; handles caching.
589 (_initialize_linux_tdep): Register linux_inferior_data. Install
590 inferior_exit and inferior_appeared observers.
592 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
593 Pedro Alves <palves@redhat.com>
596 * solib-svr4.c (svr4_read_so_list): Rename to ...
597 (svr4_current_sos_1): ... this and change the function comment.
598 (svr4_current_sos): New function.
600 2014-10-10 Pedro Alves <palves@redhat.com>
602 * arch-utils.c (default_vsyscall_range): New function.
603 * arch-utils.h (default_vsyscall_range): New declaration.
604 * gdbarch.sh (vsyscall_range): New hook.
605 * gdbarch.h, gdbarch.c: Regenerate.
606 * linux-tdep.c (linux_vsyscall_range): New function.
607 (linux_init_abi): Install linux_vsyscall_range as
608 vsyscall_range gdbarch hook.
609 * memrange.c (address_in_mem_range): New function.
610 * memrange.h (address_in_mem_range): New declaration.
611 * symfile-mem.c (find_vdso_size): Delete function.
612 (add_vsyscall_page): Use gdbarch_vsyscall_range.
614 2014-10-10 Pedro Alves <palves@redhat.com>
616 * infrun.c (normal_stop): Fix typo in comment.
618 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
621 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
622 typo when using logical AND to determine instruction type.
624 2014-10-09 Yao Qi <yao@codesourcery.com>
626 * infrun.c (handle_signal_stop): Remove local variable
629 2014-10-08 Stan Shebs <stan@codesourcery.com>
631 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
633 2014-10-08 Gary Benson <gbenson@redhat.com>
635 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
637 2014-10-08 Gary Benson <gbenson@redhat.com>
639 * common/common-defs.h: Include common-exceptions.h.
640 * exceptions.h: Do not include common-exceptions.h.
642 2014-10-08 Gary Benson <gbenson@redhat.com>
644 * common/common-defs.h: Include cleanups.h.
645 * common/common-exceptions.c: Do not include cleanups.h.
648 2014-10-08 Gary Benson <gbenson@redhat.com>
650 * ada-lang.c: Do not include exceptions.h.
651 * ada-valprint.c: Likewise.
652 * amd64-tdep.c: Likewise.
653 * auto-load.c: Likewise.
655 * break-catch-throw.c: Likewise.
656 * breakpoint.c: Likewise.
657 * btrace.c: Likewise.
658 * c-lang.c: Likewise.
659 * cli/cli-cmds.c: Likewise.
660 * cli/cli-interp.c: Likewise.
661 * cli/cli-script.c: Likewise.
662 * completer.c: Likewise.
663 * corefile.c: Likewise.
664 * corelow.c: Likewise.
665 * cp-abi.c: Likewise.
666 * cp-support.c: Likewise.
667 * cp-valprint.c: Likewise.
668 * darwin-nat.c: Likewise.
669 * dwarf2-frame-tailcall.c: Likewise.
670 * dwarf2-frame.c: Likewise.
671 * dwarf2loc.c: Likewise.
672 * dwarf2read.c: Likewise.
674 * event-loop.c: Likewise.
675 * event-top.c: Likewise.
676 * f-valprint.c: Likewise.
677 * frame-unwind.c: Likewise.
679 * gdbtypes.c: Likewise.
680 * gnu-v2-abi.c: Likewise.
681 * gnu-v3-abi.c: Likewise.
682 * guile/scm-auto-load.c: Likewise.
683 * guile/scm-breakpoint.c: Likewise.
684 * guile/scm-cmd.c: Likewise.
685 * guile/scm-frame.c: Likewise.
686 * guile/scm-lazy-string.c: Likewise.
687 * guile/scm-param.c: Likewise.
688 * guile/scm-symbol.c: Likewise.
689 * guile/scm-type.c: Likewise.
690 * hppa-hpux-tdep.c: Likewise.
691 * i386-tdep.c: Likewise.
692 * inf-loop.c: Likewise.
693 * infcall.c: Likewise.
694 * infcmd.c: Likewise.
695 * infrun.c: Likewise.
696 * interps.c: Likewise.
697 * interps.h: Likewise.
699 * linespec.c: Likewise.
700 * linux-nat.c: Likewise.
701 * linux-thread-db.c: Likewise.
702 * m32r-rom.c: Likewise.
704 * memory-map.c: Likewise.
705 * mi/mi-cmd-break.c: Likewise.
706 * mi/mi-cmd-stack.c: Likewise.
707 * mi/mi-interp.c: Likewise.
708 * mi/mi-main.c: Likewise.
709 * monitor.c: Likewise.
710 * nto-procfs.c: Likewise.
711 * objc-lang.c: Likewise.
712 * p-valprint.c: Likewise.
714 * ppc-linux-tdep.c: Likewise.
715 * printcmd.c: Likewise.
717 * python/py-auto-load.c: Likewise.
718 * python/py-breakpoint.c: Likewise.
719 * python/py-cmd.c: Likewise.
720 * python/py-finishbreakpoint.c: Likewise.
721 * python/py-frame.c: Likewise.
722 * python/py-framefilter.c: Likewise.
723 * python/py-function.c: Likewise.
724 * python/py-gdb-readline.c: Likewise.
725 * python/py-inferior.c: Likewise.
726 * python/py-infthread.c: Likewise.
727 * python/py-lazy-string.c: Likewise.
728 * python/py-linetable.c: Likewise.
729 * python/py-param.c: Likewise.
730 * python/py-prettyprint.c: Likewise.
731 * python/py-symbol.c: Likewise.
732 * python/py-type.c: Likewise.
733 * python/py-value.c: Likewise.
734 * python/python-internal.h: Likewise.
735 * python/python.c: Likewise.
736 * record-btrace.c: Likewise.
737 * record-full.c: Likewise.
738 * regcache.c: Likewise.
739 * remote-fileio.c: Likewise.
740 * remote-mips.c: Likewise.
741 * remote.c: Likewise.
742 * rs6000-aix-tdep.c: Likewise.
743 * rs6000-nat.c: Likewise.
745 * solib-darwin.c: Likewise.
746 * solib-dsbt.c: Likewise.
747 * solib-frv.c: Likewise.
748 * solib-ia64-hpux.c: Likewise.
749 * solib-spu.c: Likewise.
750 * solib-svr4.c: Likewise.
752 * spu-tdep.c: Likewise.
754 * stap-probe.c: Likewise.
755 * symfile-mem.c: Likewise.
756 * symmisc.c: Likewise.
757 * target.c: Likewise.
758 * thread.c: Likewise.
760 * tracepoint.c: Likewise.
761 * tui/tui-interp.c: Likewise.
762 * typeprint.c: Likewise.
764 * valarith.c: Likewise.
765 * valops.c: Likewise.
766 * valprint.c: Likewise.
768 * varobj.c: Likewise.
769 * windows-nat.c: Likewise.
770 * xml-support.c: Likewise.
772 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
774 * mips-tdep.c (add_offset_16): Rewrite to implement what the
776 (extended_mips16_next_pc): Update accordingly.
778 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
780 * mips-tdep.c (mips16_instruction_is_compact_branch): New
782 (micromips_instruction_is_compact_branch): Likewise.
783 (mips16_scan_prologue): Terminate scanning upon seeing a branch
784 or a compact jump, reaching a jump delay slot, or seeing a
785 second non-prologue instruction.
786 (micromips_scan_prologue): Also terminate scanning upon seeing a
787 compact branch or jump, or reaching a branch or jump delay slot.
788 (mips32_scan_prologue): Terminate scanning upon reaching a branch
789 or jump delay slot, or seeing a second non-prologue instruction.
790 (mips32_instruction_has_delay_slot): Retain instruction
791 examination code only, update arguments accordingly and move
792 instruction fetch pieces to...
793 (mips32_insn_at_pc_has_delay_slot): ... this new function.
794 (micromips_instruction_has_delay_slot): Likewise and to...
795 (micromips_insn_at_pc_has_delay_slot): ... this new function.
796 (mips16_instruction_has_delay_slot): Likewise and to...
797 (mips16_insn_at_pc_has_delay_slot): ... this new function.
798 (mips_single_step_through_delay): Update accordingly.
799 (mips_adjust_breakpoint_address): Likewise.
801 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
803 * mips-tdep.c (micromips_instruction_has_delay_slot): When
804 !mustbe32 also return 1 for 32-bit instructions.
805 (mips16_instruction_has_delay_slot): Likewise. Add an
808 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
810 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
813 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
815 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
817 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
818 for the breakpoint's address. Don't preinitialize `placed_size'.
819 (insert_bp_location): Set `reqstd_address' rather than
821 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
822 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
824 (bkpt_remove_location): Likewise.
825 (deprecated_insert_raw_breakpoint): Likewise.
826 (deprecated_remove_raw_breakpoint): Likewise.
827 (find_single_step_breakpoint): Likewise.
828 * mem-break.c (default_memory_insert_breakpoint): Use
829 `reqstd_address' for the breakpoint's address. Don't set
830 `placed_address' or `placed_size' if breakpoint contents couldn't
831 have been determined.
832 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
833 the breakpoint's address.
834 (remote_insert_hw_breakpoint): Likewise. Don't set
835 `placed_address' or `placed_size' if breakpoint couldn't have been
837 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
838 `reqstd_address' for the breakpoint's address.
839 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
840 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
841 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
842 * microblaze-linux-tdep.c
843 (microblaze_linux_memory_remove_breakpoint): Likewise.
844 * monitor.c (monitor_insert_breakpoint): Likewise.
845 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
846 (procfs_insert_hw_breakpoint): Likewise.
847 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
848 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
849 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
850 * remote-mips.c (mips_insert_breakpoint): Likewise.
851 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
853 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
855 * valops.c (value_assign): Check for bit field assignments
856 before calling architecture-specific register value
857 conversion functions.
859 2014-10-03 Pierre Muller <muller@sourceware.org>
861 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
863 2014-10-02 Pedro Alves <palves@redhat.com>
865 * breakpoint.c (breakpoints_should_be_inserted_now): Use
866 threads_are_executing.
867 * breakpoint.h (breakpoints_should_be_inserted_now): Add
869 * gdbthread.h (threads_are_executing): Declare.
870 (handle_signal_stop) <random signals>: Don't print about the
871 signal here if stopping.
872 (end_stepping_range): Don't notify observers here.
873 (normal_stop): Update the thread list. If stopped by a random
874 signal or a stepping range ended, notify observers.
875 * thread.c (threads_executing): New global.
876 (init_thread_list): Clear 'threads_executing'.
877 (set_executing): Set or clear 'threads_executing'.
878 (threads_are_executing): New function.
879 (update_threads_executing): New function.
880 (update_thread_list): Use it.
882 2014-10-02 Pedro Alves <palves@redhat.com>
885 * breakpoint.c (update_breakpoints_after_exec): Don't create
886 overlay, longjmp, std terminate nor exception breakpoints here.
888 2014-10-02 Pedro Alves <palves@redhat.com>
890 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
892 * inferior.c (find_inferior_for_program_space): Give preference to
893 the current inferior.
894 * inferior.h (find_inferior_for_program_space): Update comment.
895 * progspace.c (switch_to_program_space_and_thread): Prefer the
896 current inferior if it's bound to the program space requested. If
897 the inferior found doesn't have a PID yet, don't bother looking up
899 * progspace.h (switch_to_program_space_and_thread): Adjust
901 * thread.c (any_thread_of_process, any_live_thread_of_process):
902 Give preference to the current thread.
904 2014-10-01 Pedro Alves <palves@redhat.com>
906 * breakpoint.c (insert_bp_location): Error out if inserting a
907 software breakpoint at a read-only address.
908 * target.c (memory_xfer_check_region): New function, factored out
910 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
912 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
913 against the memory region attributes.
915 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
917 * NEWS: Announce new exit-code field in -list-thread-groups
919 * inferior.c (exit_inferior_1): Don't clear exit code.
920 (inferior_appeared): Clear exit code.
921 * mi/mi-main.c (print_one_inferior): Add printing of the exit
924 2014-10-01 Pedro Alves <palves@redhat.com>
926 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
927 GENERATED" along with emacs/vi read-only markers.
928 * regformats/aarch64.dat: Regenerate.
929 * regformats/arm-with-iwmmxt.dat: Regenerate.
930 * regformats/arm-with-neon.dat: Regenerate.
931 * regformats/arm-with-vfpv2.dat: Regenerate.
932 * regformats/arm-with-vfpv3.dat: Regenerate.
933 * regformats/i386/amd64-avx-linux.dat: Regenerate.
934 * regformats/i386/amd64-avx.dat: Regenerate.
935 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
936 * regformats/i386/amd64-avx512.dat: Regenerate.
937 * regformats/i386/amd64-linux.dat: Regenerate.
938 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
939 * regformats/i386/amd64-mpx.dat: Regenerate.
940 * regformats/i386/amd64.dat: Regenerate.
941 * regformats/i386/i386-avx-linux.dat: Regenerate.
942 * regformats/i386/i386-avx.dat: Regenerate.
943 * regformats/i386/i386-avx512-linux.dat: Regenerate.
944 * regformats/i386/i386-avx512.dat: Regenerate.
945 * regformats/i386/i386-linux.dat: Regenerate.
946 * regformats/i386/i386-mmx-linux.dat: Regenerate.
947 * regformats/i386/i386-mmx.dat: Regenerate.
948 * regformats/i386/i386-mpx-linux.dat: Regenerate.
949 * regformats/i386/i386-mpx.dat: Regenerate.
950 * regformats/i386/i386.dat: Regenerate.
951 * regformats/i386/x32-avx-linux.dat: Regenerate.
952 * regformats/i386/x32-avx.dat: Regenerate.
953 * regformats/i386/x32-avx512-linux.dat: Regenerate.
954 * regformats/i386/x32-avx512.dat: Regenerate.
955 * regformats/i386/x32-linux.dat: Regenerate.
956 * regformats/i386/x32.dat: Regenerate.
957 * regformats/microblaze-with-stack-protect.dat: Regenerate.
958 * regformats/mips-dsp-linux.dat: Regenerate.
959 * regformats/mips-linux.dat: Regenerate.
960 * regformats/mips64-dsp-linux.dat: Regenerate.
961 * regformats/mips64-linux.dat: Regenerate.
962 * regformats/nios2-linux.dat: Regenerate.
963 * regformats/rs6000/powerpc-32.dat: Regenerate.
964 * regformats/rs6000/powerpc-32l.dat: Regenerate.
965 * regformats/rs6000/powerpc-64l.dat: Regenerate.
966 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
967 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
968 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
969 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
970 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
971 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
972 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
973 * regformats/s390-linux32.dat: Regenerate.
974 * regformats/s390-linux32v1.dat: Regenerate.
975 * regformats/s390-linux32v2.dat: Regenerate.
976 * regformats/s390-linux64.dat: Regenerate.
977 * regformats/s390-linux64v1.dat: Regenerate.
978 * regformats/s390-linux64v2.dat: Regenerate.
979 * regformats/s390-te-linux64.dat: Regenerate.
980 * regformats/s390x-linux64.dat: Regenerate.
981 * regformats/s390x-linux64v1.dat: Regenerate.
982 * regformats/s390x-linux64v2.dat: Regenerate.
983 * regformats/s390x-te-linux64.dat: Regenerate.
984 * regformats/tic6x-c62x-linux.dat: Regenerate.
985 * regformats/tic6x-c62x.dat: Regenerate.
986 * regformats/tic6x-c64x-linux.dat: Regenerate.
987 * regformats/tic6x-c64x.dat: Regenerate.
988 * regformats/tic6x-c64xp-linux.dat: Regenerate.
989 * regformats/tic6x-c64xp.dat: Regenerate.
991 2014-10-01 Pedro Alves <palves@redhat.com>
993 * features/Makefile: Update comments.
994 (XMLTOC): List all xml files we build C files from.
995 (clean-cfiles): New rule.
997 2014-10-01 Pedro Alves <palves@redhat.com>
999 * features/i386/amd64-avx512-linux.c: Regenerate.
1000 * features/i386/amd64-avx512.c: Regenerate.
1001 * features/i386/x32-avx512-linux.c: Regenerate.
1002 * features/i386/x32-avx512.c: Regenerate.
1004 2014-10-01 Pedro Alves <palves@redhat.com>
1006 * features/Makefile (WHICH): Remove arm-with-m,
1007 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1009 2014-10-01 Pedro Alves <palves@redhat.com>
1011 * features/Makefile (clean): New rule.
1013 2014-10-01 Pedro Alves <palves@redhat.com>
1015 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1016 (zmm14h): Add missing end quotes.
1018 2014-10-01 Pedro Alves <palves@redhat.com>
1020 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1021 * features/aarch64.c: Regenerate.
1023 2014-09-30 Don Breazeal <donb@codesourcery.com>
1025 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1026 code so as to work with follow_fork_inferior.
1027 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1028 (inf_ttrace_create_inferior): Remove reference to
1029 inf_ttrace_vfork_ppid.
1030 (inf_ttrace_attach): Ditto.
1031 (inf_ttrace_detach): Ditto.
1032 (inf_ttrace_kill): Use current_inferior instead of
1033 inf_ttrace_vfork_ppid.
1034 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1035 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1036 inferior away from the parent.
1037 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1039 (follow_fork_inferior): New function.
1040 (follow_inferior_reset_breakpoints): Make function static.
1041 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1042 * linux-nat.c (linux_child_follow_fork): Move target-independent
1043 code to infrun.c:follow_fork_inferior.
1045 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1047 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1048 * gdbarch.c: Regenerate.
1049 * gdbarch.h: Likewise.
1050 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1051 gdbarch method 'regset_from_core_section'.
1052 (get_core_register_section): Remove handling for the case that
1053 regset == NULL and regset_from_core_section is defined.
1054 (get_core_registers): Drop check for deleted method.
1055 * procfs.c (procfs_do_thread_registers): Adjust comment.
1057 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1060 (linux_nat_make_corefile_notes): Remove.
1061 (linux_target_install_ops): Do not set target method
1062 'make_corefile_notes'.
1063 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1065 (linux_corefile_thread_callback): Instead of args->collect, call
1066 linux_collect_thread_registers.
1067 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1068 NULL unless there is a regset iterator.
1069 (linux_make_corefile_notes_1): Remove.
1070 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1071 by linux_make_corefile_notes.
1072 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1076 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1077 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1079 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1081 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1083 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1084 (xtensa_iterate_over_regset_sections): New.
1085 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1087 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1089 * vax-tdep.c (vax_regset_from_core_section): Remove.
1090 (vax_iterate_over_regset_sections): New.
1091 (vax_gdbarch_init): Adjust gdbarch initialization.
1093 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1095 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1096 (tilegx_regset_from_core_section): Remove.
1097 (tilegx_iterate_over_regset_sections): New.
1098 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1100 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1103 (sparc_iterate_over_regset_sections): New.
1104 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1105 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1107 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1108 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1109 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1110 target method 'make_corefile_notes'.
1112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1114 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1115 'sizeof_gregset' and 'sizeof_fpregset'.
1116 * sh-tdep.c (sh_regset_from_core_section): Remove.
1117 (sh_iterate_over_regset_sections): New.
1118 (sh_gdbarch_init): Adjust gdbarch initialization.
1119 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1121 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1126 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1127 (score7_linux_iterate_over_regset_sections): New.
1128 (score_gdbarch_init): Adjust gdbarch initialization.
1130 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1134 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1135 method 'make_corefile_notes'.
1136 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1137 (ppcfbsd_regset_from_core_section): Remove.
1138 (ppcfbsd_iterate_over_regset_sections): New.
1139 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1141 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1142 (ppcnbsd_iterate_over_regset_sections): New.
1143 (ppcnbsd_init_abi): Adjust.
1144 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1145 (ppcobsd_iterate_over_regset_sections): New.
1146 (ppcobsd_init_abi): Adjust.
1147 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1148 (rs6000_aix_iterate_over_regset_sections): New.
1149 (rs6000_aix_init_osabi): Adjust.
1151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1153 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1154 (nios2_regset_from_core_section): Remove.
1155 (nios2_iterate_over_regset_sections): New.
1156 (nios2_linux_init_abi): Adjust gdbarch initialization.
1158 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1161 (am33_iterate_over_regset_sections): New.
1162 (am33_linux_init_osabi): Adjust gdbarch initialization.
1164 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1166 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1167 (mips_linux_iterate_over_regset_sections): New.
1168 (mips_linux_init_abi): Adjust gdbarch initialization.
1169 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1170 (mips64obsd_iterate_over_regset_sections): New.
1171 (mips64obsd_init_abi): Adjust.
1172 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1173 (mipsnbsd_iterate_over_regset_sections): New.
1174 (mipsnbsd_init_abi): Adjust.
1176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1178 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1179 (m88k_iterate_over_regset_sections): New.
1180 (m88k_gdbarch_init): Adjust gdbarch initialization.
1182 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1184 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1185 (ia64_linux_iterate_over_regset_sections): New.
1186 (ia64_linux_init_abi): Adjust gdbarch initialization.
1188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1190 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1191 (m68kbsd_iterate_over_regset_sections): New.
1192 (m68kbsd_init_abi): Adjust gdbarch initialization.
1193 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1194 (m68k_linux_iterate_over_regset_sections): New.
1195 (m68k_linux_init_abi): Adjust gdbarch initialization.
1197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1199 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1200 (m32r_linux_regset_from_core_section): Remove.
1201 (m32r_linux_iterate_over_regset_sections): New.
1202 (m32r_linux_init_abi): Adjust gdbarch initialization.
1204 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1207 (amd64obsd_iterate_over_regset_sections): New.
1208 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1209 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1211 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1212 regset_from_core_section initialization.
1213 * i386-tdep.c (i386_regset_from_core_section): Remove.
1214 (i386_iterate_over_regset_sections): New.
1215 (i386_gdbarch_init): Adjust gdbarch initialization.
1216 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1217 (i386_iterate_over_regset_sections): New prototype.
1218 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1220 (i386obsd_aout_iterate_over_regset_sections): New.
1221 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1222 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1224 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1225 (amd64fbsd_init_abi): Call fbsd_init_abi.
1226 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1227 (i386fbsd4_init_abi): Call fbsd_init_abi.
1228 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1229 target method 'make_corefile_notes'.
1230 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1232 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1234 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1235 (hppa_hpux_iterate_over_regset_sections): New.
1236 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1237 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1238 (hppa_linux_iterate_over_regset_sections): New.
1239 (hppa_linux_init_abi): Adjust.
1240 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1241 (hppanbsd_iterate_over_regset_sections): New.
1242 (hppanbsd_init_abi): Adjust.
1243 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1244 (hppaobsd_iterate_over_regset_sections): New.
1245 (hppaobsd_init_abi): Adjust.
1247 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1249 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1250 (frv_linux_iterate_over_regset_sections): New.
1251 (frv_linux_init_abi): Adjust gdbarch initialization.
1253 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1255 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1256 (armbsd_iterate_over_regset_sections): New prototype.
1257 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1258 (armbsd_iterate_over_regset_sections): New.
1259 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1262 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1264 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1265 (alpha_linux_iterate_over_regset_sections): New.
1266 (alpha_linux_init_abi): Adjust gdbarch initialization.
1267 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1269 (alphanbsd_iterate_over_regset_sections): New prototype.
1271 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1275 (aarch64_linux_iterate_over_regset_sections): New.
1276 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1278 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1280 * fbsd-tdep.c: New file.
1281 * fbsd-tdep.h: New file.
1282 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1283 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1284 (ALLDEPFILES): Add fbsd-tdep.c.
1286 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1290 * gdbarch.h: Regenerate.
1291 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1293 (get_core_register_section): Add parameter 'regset' and use it, if
1294 set. Add parameter 'min_size' and verify the bfd section size
1296 (get_core_registers_cb): Add parameter 'regset' and pass it to
1297 get_core_register section. For the "standard" register sections
1298 ".reg" and ".reg2", set an appropriate default for human_name.
1299 (get_core_registers): Don't abort when the gdbarch has an iterator
1300 but no regset_from_core_section. Add NULL/0 for parameters
1301 'regset'/'min_size' in calls to get_core_register_section.
1302 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1303 'regset' and use it instead of calling the
1304 regset_from_core_section gdbarch method.
1305 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1306 * i386-tdep.c (i386_supply_xstateregset)
1307 (i386_collect_xstateregset, i386_xstateregset): Moved to
1309 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1311 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1312 core file support only if the regset iterator hasn't been set.
1313 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1314 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1315 Moved from i386-tdep.c and renamed to *_linux*.
1316 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1317 each callback invocation. Allow any .reg-xstate size when reading
1319 * amd64-tdep.c (amd64_supply_xstateregset)
1320 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1322 (amd64_regset_from_core_section): Remove.
1323 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1324 install an amd64-specific regset_from_core_section gdbarch method.
1325 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1326 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1327 Moved from amd64-tdep.c and renamed to *_linux*.
1328 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1329 to each callback invocation. Allow any .reg-xstate size when
1330 reading from a core file.
1331 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1332 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1333 each callback invocation.
1334 (arm_linux_init_abi): No longer set the regset_from_core_section
1336 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1337 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1338 each callback invocation.
1339 (ppc_linux_init_abi): No longer set the regset_from_core_section
1341 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1342 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1343 (s390_regset_from_core_section): Remove.
1344 (s390_iterate_over_regset_sections): Add regset parameter to each
1345 callback invocation.
1346 (s390_gdbarch_init): No longer set the regset_from_core_section
1347 gdbarch method. Drop initialization of deleted tdep fields.
1349 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1351 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1352 (amd64_linux_iterate_over_regset_sections): New.
1353 (amd64_linux_init_abi_common): Don't install the regset section
1354 list, but the new iterator in gdbarch.
1355 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1356 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1357 (arm_linux_iterate_over_regset_sections): ...here. New function.
1358 (arm_linux_init_abi): Set iterator instead of section list.
1359 * corelow.c (get_core_registers_cb): New function, logic moved
1361 (get_core_registers): ...loop body here. Use new iterator method
1362 instead of walking through the regset section list.
1363 * gdbarch.sh: Remove 'core_regset_sections'. New method
1364 'iterate_over_regset_sections'. New typedef
1365 'iterate_over_regset_sections_cb'.
1366 * gdbarch.c: Regenerate.
1367 * gdbarch.h: Likewise.
1368 * i386-linux-tdep.c (i386_linux_regset_sections)
1369 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1371 (i386_linux_iterate_over_regset_sections): New.
1372 (i386_linux_init_abi): Don't choose a regset section list, but
1373 install new iterator in gdbarch.
1374 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1375 (linux_collect_regset_section_cb): New function, logic moved
1377 (linux_collect_thread_registers): ...loop body here. Use iterator
1378 method instead of walking through list.
1379 (linux_make_corefile_notes_1): Check for presence of iterator
1380 method instead of regset section list.
1381 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1382 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1383 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1384 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1385 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1386 (ppc_linux_init_abi): Don't choose from above regset section
1387 lists, but install new iterator in gdbarch.
1388 * regset.h (struct core_regset_section): Remove.
1389 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1390 have_linux_v1, have_linux_v2, and have_tdb.
1391 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1392 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1393 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1394 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1395 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1396 (s390_iterate_over_regset_sections): ...here. New function. Use
1398 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1399 regset section lists, but install new iterator.
1401 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1403 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1405 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1407 * progspace.c (print_program_space): Don't prune program spaces
1408 before printing them.
1410 2014-09-25 Pedro Alves <palves@redhat.com>
1412 * infrun.c (user_visible_resume_ptid): Don't check
1413 singlestep_breakpoints_inserted_p.
1415 2014-09-25 Pedro Alves <palves@redhat.com>
1417 * breakpoint.c (should_be_inserted): Add debug output.
1419 2014-09-25 Pedro Alves <palves@redhat.com>
1421 * infrun.c (stepping_past_instruction_at)
1422 (clear_exit_convenience_vars): Point at infrun.h instead of
1424 (handle_signal_stop): Fix typo.
1426 2014-09-24 Yao Qi <yao@codesourcery.com>
1428 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1431 2014-09-22 Gary Benson <gbenson@redhat.com>
1433 * target.c (target_stop): Updated comment.
1435 2014-09-22 Gary Benson <gbenson@redhat.com>
1437 * target/target.h (target_stop_ptid): Renamed as...
1438 (target_stop_and_wait): New function. Updated comment.
1440 (target_continue_ptid): Renamed as...
1441 (target_continue_no_signal): New function. Updated comment.
1444 2014-09-22 Pedro Alves <palves@redhat.com>
1446 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1448 * breakpoint.c (enum ugll_insert_mode): New enum.
1449 (always_inserted_mode): Now a plain boolean.
1450 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1451 (breakpoints_always_inserted_mode): Delete.
1452 (breakpoints_should_be_inserted_now): New function.
1453 (insert_breakpoints): Pass UGLL_INSERT to
1454 update_global_location_list instead of calling
1455 insert_breakpoint_locations manually.
1456 (create_solib_event_breakpoint_1): New, factored out from ...
1457 (create_solib_event_breakpoint): ... this.
1458 (create_and_insert_solib_event_breakpoint): Use
1459 create_solib_event_breakpoint_1 instead of calling
1460 insert_breakpoint_locations manually.
1461 (update_global_location_list): Change parameter type from boolean
1462 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1463 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1464 (update_global_location_list_nothrow): Change parameter type from
1465 boolean to enum ugll_insert_mode.
1466 (_initialize_breakpoint): "breakpoint always-inserted" option is
1467 now a boolean command. Update help text.
1468 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1469 (breakpoints_should_be_inserted_now): New declaration.
1470 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1471 Remove breakpoints_always_inserted_mode check.
1472 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1473 * remote.c (remote_start_remote): Likewise.
1475 2014-09-22 Pedro Alves <palves@redhat.com>
1477 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1478 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1479 Instead, pass UGLL_INSERT to update_global_location_list.
1480 (update_global_location_list): Change parameter type from boolean
1481 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1482 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1483 (create_solib_event_breakpoint_1): New, factored out from ...
1484 (create_solib_event_breakpoint): ... this.
1485 (create_and_insert_solib_event_breakpoint): Use
1486 create_solib_event_breakpoint_1 instead of calling
1487 insert_breakpoint_locations manually.
1488 (update_global_location_list): Handle UGLL_INSERT.
1490 2014-09-22 Pedro Alves <palves@redhat.com>
1492 * breakpoint.c (enum ugll_insert_mode): New enum.
1493 (update_global_location_list)
1494 (update_global_location_list_nothrow): Change parameter type from
1495 boolean to enum ugll_insert_mode. All callers adjusted.
1497 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1499 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1500 SystemTap support in GDB.
1502 2014-09-19 Don Breazeal <donb@codesourcery.com>
1504 * linux-nat.c (linux_handle_extended_wait): Call
1505 linux_ptrace_get_extended_event.
1506 (wait_lwp): Call linux_is_extended_waitstatus.
1507 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1508 and linux_is_extended_waitstatus.
1509 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1510 linux_ptrace_get_extended_event.
1511 (linux_ptrace_get_extended_event): New function.
1512 (linux_is_extended_waitstatus): New function.
1513 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1514 (linux_is_extended_waitstatus): New declarations.
1516 2014-09-19 Yao Qi <yao@codesourcery.com>
1518 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1519 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1520 comments. Callers update.
1521 (dwarf_decode_lines): Likewise.
1522 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1523 comments. Skip the line table if 'lowpc' is greater than
1524 'address'. Don't check
1525 dwarf2_per_objfile->has_section_at_zero.
1527 2014-09-18 Doug Evans <dje@google.com>
1529 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1530 * python/py-symtab.c (stpy_get_producer): New function.
1531 (symtab_object_getset): Add "producer" attribute.
1533 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1536 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1537 (do_captured_read_memory_integer): Remove.
1538 (safe_read_memory_integer): Use target_read_memory directly instead
1539 of catching errors in do_captured_read_memory_integer.
1541 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1543 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1546 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1548 * objc-lang.c (find_implementation_from_class): Remove dead code.
1550 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1553 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1554 "fprintf_unfiltered (gdb_stdlog...)".
1556 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1558 PR breakpoints/12526
1559 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1561 * breakpoint.c (watch_command_1): Use these fields to retain
1562 bitfield information.
1563 (extract_bitfield_from_watchpoint_value): New function.
1564 (watchpoint_check): Use it.
1565 (update_watchpoint): Use it. Optimize the address and length of a
1566 HW watchpoint pointing to a bitfield.
1567 * value.h (unpack_value_bitfield): New prototype.
1568 * value.c (unpack_value_bitfield): Make extern.
1570 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1572 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1574 * gnu-nat.c (inf_threads): New function.
1575 * gnu-nat.h (inf_threads_ftype): New typedef.
1576 (inf_threads): New declaration.
1577 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1578 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1579 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1580 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1581 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1582 (i386_gnu_dr_get_control): New functions.
1583 (reg_addr): New structure.
1584 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1585 i386 debugging register hooks.
1586 * NEWS: Mention this.
1588 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1590 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1591 vector data transfer instructions.
1592 (arm_record_coproc_data_proc): Updated.
1594 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1596 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1597 arm_record_exreg_ld_st_insn.
1598 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1601 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1603 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1604 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1605 processing instructions.
1607 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1609 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1610 for advance SIMD struct ld/st insn.
1611 (thumb2_record_decode_insn_handler): Replace stub handler with
1612 thumb2_record_asimd_struct_ld_st.
1614 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1616 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1617 for asimd, vfp and coprocessor insns.
1618 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1619 and coprocessor insns.
1620 (thumb2_record_coproc_insn): New function.
1621 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1623 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1626 2014-09-13 Doug Evans <xdje42@gmail.com>
1628 * NEWS: Mention new "queue-signal" command.
1629 * infcmd.c (queue_signal_command): New function.
1630 (_initialize_infcmd): Add new queue-signal command.
1632 2014-09-13 Doug Evans <xdje42@gmail.com>
1634 * linux-nat.c (wait_lwp): Add debugging printf.
1635 (linux_nat_wait_1): Ditto.
1637 2014-09-12 Pedro Alves <palves@redhat.com>
1639 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1640 (create_and_insert_solib_event_breakpoint): New functions.
1641 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1642 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1643 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1644 (remove_dbx_link_breakpoint): Delete function.
1645 (insert_dbx_link_bpt_in_file): Use
1646 create_and_insert_solib_event_breakpoint instead of
1647 deprecated_insert_raw_breakpoint.
1648 (procfs_wait): Don't check whether we hit __dbx_link here.
1649 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1651 * solib-irix.c (base_breakpoint): Delete global.
1652 (disable_break): Delete function.
1653 (enable_break): Use create_solib_event_breakpoint
1654 instead of deprecated_insert_raw_breakpoint.
1655 (irix_solib_handle_event): New function.
1656 (irix_solib_create_inferior_hook): Don't run the target or disable
1657 the mapping-complete breakpoint here.
1658 (_initialize_irix_solib): Install irix_solib_handle_event as
1659 so_ops->handle_event hook.
1661 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1662 Ulrich Weigand <uweigand@de.ibm.com>
1665 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1666 instead of read_memory_unsigned_integer.
1668 2014-09-12 Gary Benson <gbenson@redhat.com>
1670 * nat/linux-waitpid.c: Include common-defs.h.
1671 [GDBSERVER]: Add FIXME comment.
1672 [!GDBSERVER]: Don't include defs.h or signal.h.
1673 (linux_debug) [!GDBSERVER]: Remove empty block.
1675 2014-09-12 Gary Benson <gbenson@redhat.com>
1677 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1678 Don't include defs.h or server.h.
1680 2014-09-12 Gary Benson <gbenson@redhat.com>
1682 * nat/linux-btrace.c: Include common-defs.h.
1683 Don't include defs.h, server.h or gdbthread.h.
1684 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1686 2014-09-12 Gary Benson <gbenson@redhat.com>
1688 * common/agent.c: Include common-defs.h.
1689 Don't include defs.h or server.h.
1690 * common/buffer.c: Likewise.
1691 * common/common-debug.c: Likewise.
1692 * common/common-utils.c: Likewise.
1693 * common/errors.c: Likewise.
1694 * common/filestuff.c: Likewise.
1695 * common/format.c: Likewise.
1696 * common/gdb_vecs.c: Likewise.
1697 * common/print-utils.c: Likewise.
1698 * common/ptid.c: Likewise.
1699 * common/rsp-low.c: Likewise.
1700 * common/signals.c: Likewise.
1701 * common/vec.c: Likewise.
1702 * common/xml-utils.c: Likewise.
1703 * nat/linux-osdata.c: Likewise.
1704 * nat/linux-procfs.c: Likewise.
1705 * nat/linux-ptrace.c: Likewise.
1706 * nat/mips-linux-watch.c: Likewise.
1707 * target/waitstatus.c: Likewise.
1709 2014-09-12 Tom Tromey <tromey@redhat.com>
1710 Gary Benson <gbenson@redhat.com>
1712 * common/common-regcache.h: New file.
1713 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1714 * regcache.h: Include common-regcache.h.
1715 (regcache_read_pc): Don't declare.
1716 * regcache.c (get_thread_regcache_for_ptid): New function.
1717 * nat/linux-btrace.c: Don't include regcache.h.
1718 Include common-regcache.h.
1719 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1721 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1723 * regcache.h (struct regset): Declare.
1725 2014-09-11 Pedro Alves <palves@redhat.com>
1728 * main.c: Include "infrun.h".
1729 (catch_command_errors, catch_command_errors_const): Wait for the
1730 foreground command to complete.
1731 * top.c (maybe_wait_sync_command_done): New function, factored out
1733 (maybe_wait_sync_command_done): ... here.
1734 * top.h (maybe_wait_sync_command_done): New declaration.
1736 2014-09-11 Tom Tromey <tromey@redhat.com>
1737 Gary Benson <gbenson@redhat.com>
1739 * common/symbol.h: New file.
1740 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1741 * minsyms.c (find_minimal_symbol_address): New function.
1742 * common/agent.c: Include common/symbol.h.
1743 [!GDBSERVER]: Don't include objfiles.h.
1744 (agent_look_up_symbols): Use find_minimal_symbol_address.
1746 2014-09-11 Gary Benson <gbenson@redhat.com>
1748 * target/target.h (target_stop_ptid, target_continue_ptid):
1750 * target.c (target_stop_ptid, target_continue_ptid): New
1752 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1753 (agent_run_command): Always use target_stop_ptid and
1754 target_continue_ptid.
1756 2014-09-11 Tom Tromey <tromey@redhat.com>
1757 Gary Benson <gbenson@redhat.com>
1759 * target/target.h: New file.
1760 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1761 * target.h: Include target/target.h.
1762 (target_read_memory, target_write_memory): Don't declare.
1763 * target.c (target_read_uint32): New function.
1764 * common/agent.c: Include target/target.h.
1765 [!GDBSERVER]: Don't include target.h.
1766 (helper_thread_id): Type changed to uint32_t.
1767 (agent_get_helper_thread_id): Use target_read_uint32.
1768 (agent_run_command): Always use target_read_memory and
1769 target_write_memory.
1770 (agent_capability): Type changed to uint32_t.
1771 (agent_capability_check): Use target_read_uint32.
1773 2014-09-11 Gary Benson <gbenson@redhat.com>
1775 * common/common-debug.h (show_debug_regs): Declare.
1776 * common/common-debug.c (show_debug_regs): Define.
1777 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1778 all uses with show_debug_regs. Replace all uses that considered
1779 debug_hw_points as a multi-value integer with straight boolean
1781 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1782 with show_debug_regs.
1783 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1784 all uses with show_debug_regs.
1785 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1786 uses with show_debug_regs.
1788 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1790 * findvar.c (address_from_register): Handle targets requiring
1791 a special conversion routine even for plain pointer types.
1793 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1795 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1796 (store_register): Do not call exec_one_dummy_insn.
1798 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1800 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1801 dereference it first. Use value_enclosing_type instead of
1803 (ada_array_length): Likewise.
1805 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1807 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1808 Adjust function implementation and documentation accordingly.
1809 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1810 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1811 Update call to ada_value_ptr_subscript.
1813 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1815 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1816 instead of VAL's type.
1818 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1820 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1822 2014-09-09 Doug Evans <xdje42@gmail.com>
1825 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1826 last parameter to pkg-config, not first.
1827 * configure.ac: Pass --with-guile provided pkg-config path to
1828 GDB_GUILE_PROGRAM_NAMES.
1829 * configure: Regenerate.
1831 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1833 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1836 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1838 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1839 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1840 the list of sections determining GDB_OSABI_IRIX.
1842 2014-09-09 James Hogan <james.hogan@imgtec.com>
1844 * MAINTAINERS (Write After Approval): Add "James Hogan".
1846 2014-09-09 James Hogan <james.hogan@imgtec.com>
1848 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1850 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1852 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1854 2014-09-08 Doug Evans <xdje42@gmail.com>
1857 * guile.c: #include <signal.h>.
1858 (_initialize_guile): Block SIGCHLD while initializing Guile.
1860 Replaces the following, which is reverted.
1862 2014-07-26 Doug Evans <xdje42@gmail.com>
1865 * configure.ac: Add check for header gc/gc.h.
1866 Add check for function setenv.
1867 * configure: Regenerate.
1868 * config.in: Regenerate.
1869 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1871 2014-09-08 Doug Evans <xdje42@gmail.com>
1873 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1874 with named constant. Fix style of pointer comparison.
1875 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1877 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1880 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1881 decide whether we display the command on "show user".
1882 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1883 printing command name.
1884 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1885 * cli/cli-decode.c (cli_user_command_p): Create helper function
1886 to verify whether cmd_list_element is a user-defined command.
1888 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1892 Fix goto out of TRY_CATCH.
1894 2014-09-06 Doug Evans <xdje42@gmail.com>
1895 Tom Tromey <tromey@redhat.com>
1898 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1899 $_any_caller_matches.
1900 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1901 * python/lib/gdb/function/caller_is.py: New file.
1903 2014-09-06 Doug Evans <xdje42@gmail.com>
1905 * infcmd.c (program_info): Fix typo.
1907 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1910 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1911 'number'. New variable 'has_digit'. Rewrite code to deal with
1912 subexpressions on SDT probes.
1914 2014-09-04 Pedro Alves <palves@redhat.com>
1916 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1917 the input is only one character long.
1919 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1922 * f-valprint.c (f_val_print): Specify the correct print option to
1923 use when printing integer values.
1925 2014-09-04 Gary Benson <gbenson@redhat.com>
1927 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1928 Remove code to cope with LWPs wrapped as PIDs.
1929 Add assertions to ensure no wrapped LWPs are passed.
1931 2014-09-04 Pedro Alves <palves@redhat.com>
1933 * value.c (value_ranges_copy_adjusted): New function, factored out
1935 (value_contents_copy_raw): ... here.
1936 (unpack_value_bits_as_long_1): Rename back to ...
1937 (unpack_bits_as_long): ... this. Remove 'original_value' and
1938 'result' parameters. Change return type to LONGEST.
1939 (unpack_value_bits_as_long): Delete.
1940 (unpack_value_field_as_long_1): Delete.
1941 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1942 (unpack_value_bitfield): New function.
1943 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1944 (value_fetch_lazy): Use unpack_value_bitfield.
1945 * value.h (unpack_value_bits_as_long): Delete declaration.
1947 2014-09-03 Sasha Smundak <asmundak@google.com>
1949 * python/py-frame.c (frapy_read_register): New function.
1951 2014-09-03 James Hogan <james.hogan@imgtec.com>
1953 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1954 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1956 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1959 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1961 (add_cmd): Set "completer_handle_brkchars" to NULL.
1962 * cli/cli-decode.h (struct cmd_list_element)
1963 <completer_handle_brkchars>: New field.
1964 * command.h (completer_ftype_void): New typedef.
1965 (set_cmd_completer_handle_brkchars): New prototype.
1966 * completer.c (set_gdb_completion_word_break_characters): New
1968 (complete_line_internal): Call "completer_handle_brkchars"
1969 callback from command.
1970 * completer.h: Include "command.h".
1971 (set_gdb_completion_word_break_characters): New prototype.
1972 * python/py-cmd.c (cmdpy_completer_helper): New function.
1973 (cmdpy_completer_handle_brkchars): New function.
1974 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1975 (cmdpy_init): Set completer_handle_brkchars to
1976 cmdpy_completer_handle_brkchars.
1978 2014-09-03 Gary Benson <gbenson@redhat.com>
1980 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1981 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1982 Loop conditions changed to equivalent form.
1983 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1984 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1985 ALL_DEBUG_ADDRESS_REGISTERS.
1987 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1989 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1992 2014-09-02 Doug Evans <dje@google.com>
1994 * typeprint.c (find_global_typedef): Fix comment.
1996 2014-09-02 Gary Benson <gbenson@redhat.com>
1998 * i386-nat.h: Renamed as...
1999 * x86-nat.h: New file. All type, function and variable name
2000 prefixes changed from "i386_" to "x86_". All references updated.
2001 * i386-nat.c: Renamed as...
2002 * x86-nat.c: New file. All type, function and variable name
2003 prefixes changed from "i386_" to "x86_". All references updated.
2004 * common/i386-xstate.h: Renamed as...
2005 * common/x86-xstate.h: New file. All type, function and variable
2006 name prefixes changed from "i386_" to "x86_". All references
2008 * nat/i386-cpuid.h: Renamed as...
2009 * nat/x86-cpuid.h: New file. All type, function and variable name
2010 prefixes changed from "i386_" to "x86_". All references updated.
2011 * nat/i386-gcc-cpuid.h: Renamed as...
2012 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2013 name prefixes changed from "i386_" to "x86_". All references
2015 * nat/i386-dregs.h: Renamed as...
2016 * nat/x86-dregs.h: New file. All type, function and variable name
2017 prefixes changed from "i386_" to "x86_". All references updated.
2018 * nat/i386-dregs.c: Renamed as...
2019 * nat/x86-dregs.c: New file. All type, function and variable name
2020 prefixes changed from "i386_" to "x86_". All references updated.
2022 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2024 * varobj.c (_initialize_varobj): Move to the end of file.
2026 2014-08-29 Gary Benson <gbenson@redhat.com>
2028 * common/common-exceptions.h: New file.
2029 * common/common-exceptions.c: Likewise.
2030 * Makefile.in (SFILES): Add common/common-exceptions.c.
2031 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2032 (COMMON_OBS): Add common-exceptions.o.
2033 (common-exceptions.o): New rule.
2034 * exceptions.h (common-exceptions.h): Include.
2035 (gdb_setjmp.h): Do not include.
2036 (return_reason): Moved to common-exceptions.h.
2037 (enum return_reason): Likewise.
2038 (RETURN_MASK): Likewise.
2039 (typedef return_mask): Likewise.
2040 (enum errors): Likewise.
2041 (struct gdb_exception): Likewise.
2042 (exceptions_state_mc_init): Likewise.
2043 (exceptions_state_mc_action_iter): Likewise.
2044 (exceptions_state_mc_action_iter_1): Likewise.
2045 (TRY_CATCH): Likewise.
2046 (throw_exception): Likewise.
2047 (throw_verror): Likewise.
2048 (throw_vquit): Likewise.
2049 (throw_error): Likewise.
2050 (throw_quit): Likewise.
2051 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2052 (enum catcher_action): Likewise.
2053 (struct catcher): Likewise.
2054 (current_catcher): Likewise.
2055 (catcher_list_size): Likewise.
2056 (exceptions_state_mc_init): Likewise.
2057 (catcher_pop): Likewise.
2058 (exceptions_state_mc): Likewise.
2059 (exceptions_state_mc_action_iter): Likewise.
2060 (exceptions_state_mc_action_iter_1): Likewise.
2061 (throw_exception): Likewise.
2062 (exception_messages): Likewise.
2063 (exception_messages_size): Likewise.
2064 (throw_it): Likewise.
2065 (throw_verror): Likewise.
2066 (throw_vquit): Likewise.
2067 (throw_error): Likewise.
2068 (throw_quit): Likewise.
2069 (prepare_to_throw_exception): New function.
2071 2014-08-29 Gary Benson <gbenson@redhat.com>
2073 * common/gdb_setjmp.h: New file.
2074 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2075 * configure.ac: Move sigsetjmp check...
2076 * common/common.m4: ...here.
2077 * configure: Regenerate.
2078 * cp-support.c (SIGJMP_BUF): Delete.
2079 (SIGSETJMP): Likewise.
2080 (SIGLONGJMP): Likewise.
2081 * exceptions.h (gdb_setjmp.h): Include.
2082 (setjmp.h): Do not include.
2083 (EXCEPTIONS_SIGJMP_BUF): Delete.
2084 (EXCEPTIONS_SIGSETJMP): Likewise.
2085 (EXCEPTIONS_SIGLONGJMP): Likewise.
2086 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2088 * exceptions.c: Likewise.
2090 2014-08-29 Gary Benson <gbenson@redhat.com>
2092 * cleanups.h: Moved to...
2093 * common/cleanups.h: New file.
2094 * cleanups.c: Moved to...
2095 * common/cleanups.c: New file. Include common-defs.h and
2096 cleanups.h. Do not include defs.h.
2097 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2098 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2099 (cleanups.o): New rule.
2101 2014-08-29 Gary Benson <gbenson@redhat.com>
2103 * common/errors.h (internal_warning): New declaration.
2104 (internal_vwarning): Likewise.
2105 * common/errors.c (internal_warning): New function.
2106 * utils.h (internal_warning): Don't declare.
2107 (internal_vwarning): Likewise.
2108 * utils.c (internal_warning): Removed.
2110 2014-08-29 Gary Benson <gbenson@redhat.com>
2112 * main.c (captured_main): Use warning during startup.
2113 Prefix startup warning messages with command name.
2115 2014-08-29 Gary Benson <gbenson@redhat.com>
2117 * main.c (captured_main): Handle usage errors with error.
2119 2014-08-29 Gary Benson <gbenson@redhat.com>
2121 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2122 exit pair with a call to error. Wrap the message with _().
2124 2014-08-29 Gary Benson <gbenson@redhat.com>
2126 * main.c (captured_main): Replace a fprintf/exit
2127 pair with a call to error. Wrap the message with _().
2129 2014-08-29 Gary Benson <gbenson@redhat.com>
2131 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2132 pairs with calls to error. Wrap the message with _().
2134 2014-08-29 Gary Benson <gbenson@redhat.com>
2136 * utils.c (vwarning): Protect calls to target_terminal_ours
2139 2014-08-29 Gary Benson <gbenson@redhat.com>
2141 * exceptions.c (print_flush): Protect calls to
2142 target_terminal_ours and wrap_here.
2144 2014-08-29 Gary Benson <gbenson@redhat.com>
2146 * utils.h (filtered_printing_initialized): New declaration.
2147 * utils.c (abort_with_message): New function.
2148 (internal_vproblem): Use abort_with_message for first level
2149 recursive internal problems, and if gdb_stderr is not set up.
2150 Protect calls to target_terminal_ours, begin_line and query.
2152 2014-08-28 Doug Evans <dje@google.com>
2154 * symtab.c (in_prologue): Move definition to better spot.
2155 (skip_prologue_using_sal): Ditto.
2157 2014-08-28 Doug Evans <dje@google.com>
2159 * symtab.c (find_function_start_sal): Move definition to better spot.
2161 2014-08-28 Yao Qi <yao@codesourcery.com>
2163 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2164 found_stack_adjust in forward scan. Remove condition check
2165 on found_stack_adjust which is always true. Indent the code.
2167 2014-08-28 Yao Qi <yao@codesourcery.com>
2169 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2170 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2171 (dwarf_decode_lines): Remove argument
2172 want_line_info. Remove condition check on want_line_info.
2175 2014-08-27 Doug Evans <dje@google.com>
2177 * dwarf2read.c (dwarf_record_line): Fix typo.
2179 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2181 * target.h (struct target_ops::to_terminal_save_ours): Remove
2183 (target_terminal_save_ours): Remove macro.
2184 * target-delegates.c: Regenerate.
2185 * inf-child.c (inf_child_target): Don't set the nonexistent
2186 field to_terminal_save_ours.
2187 * inferior.h (child_terminal_save_ours): Remove declaration.
2188 * terminal.h (gdb_save_tty_state): New declaration.
2189 * inflow.c (child_terminal_save_ours): Rename to ...
2190 (gdb_save_tty_state): ... this.
2191 * tui/tui.c: Include terminal.h.
2192 (tui_enable): Use gdb_save_tty_state instead of
2193 target_terminal_save_ours.
2194 (tui_disable): Likewise.
2196 2014-08-25 Doug Evans <dje@google.com>
2198 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2199 Pass NULL instead of 0 for context pointer.
2201 2014-08-25 Yao Qi <yao@codesourcery.com>
2203 * dwarf2read.c: Fix grammatical error.
2205 2014-08-24 Yao Qi <yao@codesourcery.com>
2207 * dwarf2read.c (scan_partial_symbols): Update comments.
2208 Rename argument 'need_pc' with 'set_addrmap'.
2209 (add_partial_namespace): Rename argument 'need_pc' with
2211 (add_partial_module): Likewise.
2212 (add_partial_subprogram): Likewise. Update comments.
2213 (dwarf2_name): Fix typo.
2215 2014-08-22 Doug Evans <dje@google.com>
2218 * dwarf2read.c (dwarf_record_line_p): New function.
2219 (dwarf_decode_lines_1): Ignore subsequent line number entries
2220 for the same line if any entry had a non-zero discriminator.
2222 2014-08-22 Doug Evans <dje@google.com>
2224 * buildsym.h (record_line_ftype): New typedef.
2225 (record_line): Use it.
2226 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2227 (dwarf_decode_lines_1): Call them.
2229 2014-08-22 Yao Qi <yao@codesourcery.com>
2231 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2232 (ctf_end): Remove code.
2234 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2236 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2237 (linux_make_corefile_notes): call update_thread_list, protected against
2240 2014-08-21 Pedro Alves <palves@redhat.com>
2242 * infcmd.c (attach_command): Remove comment.
2244 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2246 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2247 unsigned LONGEST to ULONGEST.
2249 2014-08-20 Pedro Alves <palves@redhat.com>
2251 * Makefile.in (check-read1): New rule.
2253 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2255 * value.c (value_from_contents_and_address): Strip resolved_type's
2256 typedef layers before checking its TYPE_DATA_LOCATION.
2258 2014-08-20 Pedro Alves <palves@redhat.com>
2260 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2262 2014-08-20 Yao Qi <yao@codesourcery.com>
2264 * amd64-tdep.c (amd64_classify): Add a blank line after the
2265 example. Move "*/" to a new line.
2266 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2267 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2268 * dwarf2read.c (psymtab_include_file_name): Likewise.
2270 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2271 Pedro Alves <palves@redhat.com>
2275 * ada-lang.c (coerce_unspec_val_to_type): Use
2276 value_contents_copy_raw.
2277 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2278 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2279 * cp-valprint.c (cp_print_value_fields): Let the common printing
2280 code handle optimized out values.
2281 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2282 * d-valprint.c (dynamic_array_type): Use
2283 value_bits_any_optimized_out.
2284 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2285 check_any_valid fields.
2286 (check_pieced_value_bits): Delete and inline ...
2287 (check_pieced_synthetic_pointer): ... here.
2288 (check_pieced_value_validity): Delete.
2289 (check_pieced_value_invalid): Delete.
2290 (pieced_value_funcs): Remove check_validity and check_any_valid
2292 (read_pieced_value): Use mark_value_bits_optimized_out.
2293 (write_pieced_value): Switch to use
2294 mark_value_bytes_optimized_out.
2295 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2296 of assuming the whole value is optimized out.
2297 * findvar.c (read_frame_register_value): Remove special handling
2298 of optimized out registers.
2299 (value_from_register): Use mark_value_bytes_optimized_out.
2300 * frame-unwind.c (frame_unwind_got_optimized): Use
2301 mark_value_bytes_optimized_out.
2302 * jv-valprint.c (java_value_print): Adjust.
2303 (java_print_value_fields): Let the common printing code handle
2304 optimized out values.
2305 * mips-tdep.c (mips_print_register): Remove special handling of
2306 optimized out registers.
2307 * opencl-lang.c (lval_func_check_validity): Delete.
2308 (lval_func_check_any_valid): Delete.
2309 (opencl_value_funcs): Remove check_validity and check_any_valid
2311 * p-valprint.c (pascal_object_print_value_fields): Let the common
2312 printing code handle optimized out values.
2313 * stack.c (read_frame_arg): Remove special handling of optimized
2314 out values. Fetch both VAL and ENTRYVAL before comparing
2315 contents. Adjust to value_available_contents_eq rename.
2316 * valprint.c (valprint_check_validity)
2317 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2318 (val_print_array_elements): Adjust.
2319 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2320 (value_bits_any_optimized_out): New function.
2321 (value_entirely_covered_by_range_vector): New function, factored
2322 out from value_entirely_unavailable.
2323 (value_entirely_unavailable): Reimplement.
2324 (value_entirely_optimized_out): New function.
2325 (insert_into_bit_range_vector): New function, factored out from
2326 mark_value_bits_unavailable.
2327 (mark_value_bits_unavailable): Reimplement.
2328 (struct ranges_and_idx): New struct.
2329 (find_first_range_overlap_and_match): New function, factored out
2330 from value_available_contents_bits_eq.
2331 (value_available_contents_bits_eq): Rename to ...
2332 (value_contents_bits_eq): ... this. Check both unavailable
2333 contents and optimized out contents.
2334 (value_available_contents_eq): Rename to ...
2335 (value_contents_eq): ... this.
2336 (allocate_value_lazy): Remove reference to the old optimized_out
2338 (allocate_optimized_out_value): Use
2339 mark_value_bytes_optimized_out.
2340 (require_not_optimized_out): Adjust to check whether the
2341 optimized_out vec is empty.
2342 (ranges_copy_adjusted): New function, factored out from
2343 value_contents_copy_raw.
2344 (value_contents_copy_raw): Also copy the optimized out ranges.
2345 Assert the destination ranges aren't optimized out.
2346 (value_contents_copy): Update comment, remove call to
2347 require_not_optimized_out.
2348 (value_contents_equal): Adjust to check whether the optimized_out
2350 (set_value_optimized_out, value_optimized_out_const): Delete.
2351 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2353 (value_entirely_optimized_out, value_bits_valid): Delete.
2354 (value_copy): Take a VEC copy of the 'optimized_out' field.
2355 (value_primitive_field): Remove special handling of optimized out.
2356 (value_fetch_lazy): Assert that lazy values have no unavailable
2357 regions. Use value_bits_any_optimized_out. Remove some special
2358 handling for optimized out values.
2359 * value.h: Add intro comment about <optimized out> and
2361 (struct lval_funcs): Remove check_validity and check_any_valid
2363 (set_value_optimized_out, value_optimized_out_const): Remove.
2364 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2366 (value_bits_any_optimized_out): New declaration.
2367 (value_bits_valid): Delete declaration.
2368 (value_available_contents_eq): Rename to ...
2369 (value_contents_eq): ... this, and extend comments.
2371 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 Fix -fsanitize=address on unreadable inferior strings.
2374 * valprint.c (val_print_string): Fix access before BUFFER.
2376 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2378 * target.c (target_struct_size): Remove.
2379 (target_struct_allocsize): Remove.
2380 (DEFAULT_ALLOCSIZE): Remove.
2381 (target_ops_p): New typedef.
2382 (DEF_VEC_P (target_ops_p)): New vector type.
2383 (target_structs): Change type to VEC (target_ops_p).
2384 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2385 (find_default_run_target): Rewrite for loop following changes to
2388 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2390 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2391 Adjust code accordingly. Adjust function description comment.
2393 2014-08-19 Yao Qi <yao@codesourcery.com>
2395 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2398 2014-08-19 Alan Modra <amodra@gmail.com>
2400 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2401 * config.in: Regenerate.
2402 * configure: Regenerate.
2404 2014-08-19 Tom Tromey <tromey@redhat.com>
2405 Gary Benson <gbenson@redhat.com>
2407 * common/common-debug.h: New file.
2408 * common/common-debug.c: Likewise.
2409 * debug.c: Likewise.
2410 * Makefile.in (SFILES): Add common/common-debug.c.
2411 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2412 (COMMON_OBS): Add common-debug.o and debug.o.
2413 (common-debug.o): New rule.
2414 * common/common-defs.h: Include common-debug.h.
2415 * common/agent.c (debug_agent_printf): New function.
2416 (DEBUG_AGENT): Redefine.
2417 * nat/i386-dregs.c (debug_printf): Undefine.
2419 2014-08-19 Gary Benson <gbenson@redhat.com>
2421 * common/common-defs.h: Include print-utils.h.
2422 * utils.h: Do not include print-utils.h.
2424 2014-08-19 Tom Tromey <tromey@redhat.com>
2425 Gary Benson <gbenson@redhat.com>
2427 * common/common-types.h: New file.
2428 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2429 * common/common-defs.h: Include common-types.h.
2430 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2433 2014-08-19 Tom Tromey <tromey@redhat.com>
2434 Gary Benson <gbenson@redhat.com>
2436 * common/errors.h: New file.
2437 * common/errors.c: Likewise.
2438 * Makefile.in (SFILES): Add common/errors.c.
2439 (HFILES_NO_SRCDIR): Add common/errors.h.
2440 (COMMON_OBS): Add errors.o.
2441 (errors.o): New rule.
2442 * common/common-defs.h: Include errors.h.
2443 * utils.h (perror_with_name, error, verror, warning, vwarning):
2445 * common/common-utils.h: (malloc_failure, internal_error):
2448 2014-08-19 Gary Benson <gbenson@redhat.com>
2450 * utils.c (internal_vproblem): Always print the message.
2452 2014-08-18 Doug Evans <dje@google.com>
2454 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2456 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2458 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2459 Return 0 if TYPE is dynamic.
2460 (print_range): Add handling of dynamic ranges.
2462 2014-08-18 Keven Boell <keven.boell@intel.com>
2463 Joel Brobecker <brobecker@adacore.com>
2465 * gdbtypes.h (struct main_type): Add field "data_location".
2466 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2467 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2468 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2469 a dynamic data location.
2470 (resolve_dynamic_type): Add DW_AT_data_location handling.
2471 (copy_recursive, copy_type): Copy the data_location information
2473 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2474 * value.c (value_from_contents_and_address): Add
2475 DW_AT_data_location handling.
2477 2014-08-18 Keven Boell <keven.boell@intel.com>
2478 Joel Brobecker <brobecker@adacore.com>
2480 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2481 field "get_object_address".
2482 * dwarf2expr.c (execute_stack_op): Add handling for
2483 DW_OP_push_object_address.
2484 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2485 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2486 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2487 (dwarf_expr_get_obj_addr): New function.
2488 (dwarf_expr_ctx_funcs): Add get_object_address field.
2489 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2490 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2491 (dwarf2_evaluate_property): Add parameter "address". Use it.
2492 (needs_get_obj_addr): New function.
2493 (needs_frame_ctx_funcs): Add get_object_address field.
2494 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2495 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2496 (resolve_dynamic_array): Likewise.
2498 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2500 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2501 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2502 fixed value for records and unions for which some GNAT encodings
2505 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2507 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2508 rewrite to avoid "else if" and "else" constructs. Should be
2509 a no-op in practice.
2511 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2513 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2516 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2519 * eval.c: Update all calls to find_overload_match.
2520 * valarith.c: Likewise.
2521 (value_user_defined_cpp_op, value_user_defined_op): New
2522 argument NOSIDE. Update all callers.
2523 * valops.c (find_overload_match): New argument NOSIDE.
2524 * value.h (find_overload_match): Update signature.
2526 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2528 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2529 'items' methods instead of 'iteritems' method on dictionaries.
2531 2014-08-15 Doug Evans <dje@google.com>
2533 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2536 2014-08-15 Doug Evans <dje@google.com>
2538 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2540 2014-08-15 Doug Evans <dje@google.com>
2542 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2544 2014-08-15 Doug Evans <dje@google.com>
2546 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2549 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2551 * dcache.h: Include target.h, to avoid compile time warnings.
2553 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2555 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2556 frame_info" partial declaration.
2557 * gdbarch.h: Regenerate.
2559 2014-08-15 Yao Qi <yao@codesourcery.com>
2561 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2562 Add parameter 'decode_for_pst_p'. Callers update.
2564 2014-08-13 Yao Qi <yao@codesourcery.com>
2567 * configure.ac: Use local variable 'pos'.
2568 * configure: Regenerated.
2570 2014-08-11 Doug Evans <dje@google.com>
2572 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2573 message, it is redundant with "Reading symbols from ..." message.
2575 2014-08-10 Doug Evans <xdje42@gmail.com>
2577 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2579 2014-08-09 Yao Qi <yao@codesourcery.com>
2582 * remote.c (remote_xfer_partial): Remove dead code.
2584 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2586 * ia64-linux-tdep.c: Include "regset.h".
2587 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2588 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2589 (ia64_linux_supply_fpregset): New function.
2590 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2591 (ia64_linux_regset_from_core_section): New function.
2592 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2595 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2597 * m68klinux-tdep.c: Include "regset.h".
2598 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2599 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2600 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2601 (m68k_linux_regset_from_core_section): New function.
2602 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2607 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2608 function. Move logic to...
2609 (tilegx_linux_regmap): ... this new register map.
2610 (tilegx_linux_regset): Refer to register map, replace supply
2611 method by regcache_supply_regset, and add collect method.
2612 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2613 TILEGX_FIRST_EASY_REGNUM.
2615 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2617 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2618 that calls regcache_supply_regset and handles the EPC register
2619 separately. Move main logic to...
2620 (score7_linux_gregmap): ... this new register map.
2621 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2622 (score7_linux_gregset): Refer to register map. Add collect method.
2623 (score7_linux_regset_from_core_section): Replace
2624 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2625 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2626 (struct regset): Delete unused forward declaraction.
2627 (struct pt_regs): Delete structure definition.
2628 (elf_gregset_t): Delete typedef.
2630 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2632 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2633 (nios2_core_regset): Add collect method.
2635 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2638 platform-independent and don't write to read-only input buffer.
2639 (m32r_linux_collect_gregset): New function.
2640 (m32r_linux_gregset): Add collect method.
2642 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644 * hppa-linux-tdep.c (greg_map): Rename to...
2645 (hppa_linux_gregmap): ... this. Also convert to
2646 regcache_map_entry format.
2647 (hppa_linux_supply_regset): Delete function.
2648 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2649 (hppa_linux_fpregmap): ... this new register map.
2650 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2651 register map, replace supply method by regcache_supply_regset, and
2652 add collect method regcache_collect_regset.
2654 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2656 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2657 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2658 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2659 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2660 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2661 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2662 (frv_linux_supply_gregset): Replace main logic by call to
2663 regcache_supply_regset, but keep clearing gr32-gr63.
2664 (frv_linux_supply_fpregset): Delete function.
2665 (frv_linux_gregset): Refer to appropriate register map and add
2666 regcache_collect_regset as the collect method.
2667 (frv_linux_fpregset): Likewise. Also exchange the supply method
2668 by regcache_supply_regset.
2670 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2672 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2673 by call to alpha_supply_int_regs.
2674 (alpha_linux_collect_gregset): New function.
2675 (alpha_linux_supply_fpregset): Replace logic by call to
2676 alpha_supply_fp_regs.
2677 (alpha_linux_collect_fpregset): New function.
2678 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2680 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2682 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2683 by call to regcache_collect_regset.
2684 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2685 instead of aarch64_linux_supply_gregset/_fpregset.
2686 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2687 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2688 header file instead.
2689 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2690 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2691 functions. Move logic to ...
2692 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2694 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2695 refer to new register maps, replace *_regset_from_core by
2696 regcache_supply_regset, and also use regcache_collect_regset.
2697 * aarch64-linux-tdep.h: Include "regset.h".
2698 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2700 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2701 macros, moved from C source file.
2702 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2703 variable declarations.
2705 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707 * s390-linux-nat.c: Include "regset.h".
2708 (regmap_gregset): Delete macro.
2709 (s390_64_regmap_gregset): New register map for
2710 regcache_supply/_collect_regset.
2711 (s390_64_gregset): New regset.
2712 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2713 (regmap_fpregset): Delete macro.
2714 (s390_native_supply, s390_native_collect): Delete functions.
2715 (supply_gregset, fill_gregset): Replace s390-specific regmap
2716 handling by a call to regcache_supply/_collect_regset.
2717 (supply_fpregset, fill_fpregset): Call regcache_supply/
2718 _collect_regset instead of s390_native_supply/_collect.
2719 (fetch_regset, store_regset): Likewise. Also change the last
2720 parameter to a regset instead of a regmap.
2721 (s390_linux_fetch_inferior_registers)
2722 (390_linux_store_inferior_registers): Adjust last parameter in
2723 calls to fetch_regset and store_regset.
2724 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2725 (s390_gregmap): ... this. Also make static const and convert to
2726 regcache_map_entry format.
2727 (s390x_regmap_gregset): Delete.
2728 (s390_regmap_fpregset): Rename to...
2729 (s390_fpregmap): ... this. Make static const and convert to
2730 regcache_map_entry format.
2731 (s390_regmap_upper, s390_regmap_last_break)
2732 (s390x_regmap_last_break, s390_regmap_system_call)
2733 (s390_regmap_tdb): Likewise.
2734 (s390_supply_regset, s390_collect_regset): Remove functions.
2735 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2737 (s390_gregset, s390_fpregset, s390_upper_regset)
2738 (s390_last_break_regset, s390x_last_break_regset)
2739 (s390_system_call_regset, s390_tdb_regset): Make global and
2740 replace s390_supply/_collect_regset by regcache_supply/
2742 (s390x_gregset): Delete.
2743 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2744 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2745 (s390_regmap_fpregset, s390_regmap_last_break)
2746 (s390x_regmap_last_break, s390_regmap_system_call)
2747 (s390_regmap_tdb): Delete global variable declarations.
2748 (s390_gregset, s390_fpregset, s390_last_break_regset)
2749 (s390x_last_break_regset, s390_system_call_regset)
2750 (s390_tdb_regset): New global variable declarations.
2752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2754 * regcache.c: Include "regset.h".
2755 (regcache_transfer_regset): New local function.
2756 (regcache_supply_regset, regcache_collect_regset): New functions.
2757 * regcache.h (struct regcache_map_entry): New structure.
2758 (REGCACHE_MAP_SKIP): New enum value.
2759 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2761 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2764 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2765 (ppc_linux_collect_gregset ): Likewise.
2766 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2767 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2768 (ppc_collect_vrregset): Likewise.
2769 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2772 2014-08-07 Yao Qi <yao@codesourcery.com>
2774 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2775 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2776 * remote.c (remote_read_bytes): Likewise.
2778 2014-08-07 Yao Qi <yao@codesourcery.com>
2780 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2782 2014-08-07 Yao Qi <yao@codesourcery.com>
2785 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2786 TARGET_XFER_OK instead of 0.
2788 2014-08-07 Gary Benson <gbenson@redhat.com>
2790 * common/common-defs.h: Include errno.h.
2791 * defs.h: Do not include errno.h.
2792 * ada-typeprint.c: Likewise.
2793 * c-typeprint.c: Likewise.
2794 * core-regset.c: Likewise.
2795 * corefile.c: Likewise.
2796 * corelow.c: Likewise.
2797 * event-loop.c: Likewise.
2798 * f-typeprint.c: Likewise.
2799 * gnu-nat.c: Likewise.
2800 * go32-nat.c: Likewise.
2801 * i386gnu-nat.c: Likewise.
2802 * m2-typeprint.c: Likewise.
2803 * nat/linux-btrace.c: Likewise.
2804 * p-typeprint.c: Likewise.
2805 * procfs.c: Likewise.
2806 * remote-sim.c: Likewise.
2807 * rs6000-nat.c: Likewise.
2808 * target.c: Likewise.
2809 * typeprint.c: Likewise.
2810 * ui-file.c: Likewise.
2811 * valops.c: Likewise.
2812 * valprint.c: Likewise.
2814 2014-08-07 Gary Benson <gbenson@redhat.com>
2816 * common/common-defs.h: Include string.h.
2817 * aarch64-tdep.c: Do not include string.h.
2818 * ada-exp.y: Likewise.
2819 * ada-lang.c: Likewise.
2820 * ada-lex.l: Likewise.
2821 * ada-typeprint.c: Likewise.
2822 * ada-valprint.c: Likewise.
2823 * aix-thread.c: Likewise.
2824 * alpha-linux-tdep.c: Likewise.
2825 * alpha-mdebug-tdep.c: Likewise.
2826 * alpha-nat.c: Likewise.
2827 * alpha-osf1-tdep.c: Likewise.
2828 * alpha-tdep.c: Likewise.
2829 * alphanbsd-tdep.c: Likewise.
2830 * amd64-dicos-tdep.c: Likewise.
2831 * amd64-linux-tdep.c: Likewise.
2832 * amd64-nat.c: Likewise.
2833 * amd64-sol2-tdep.c: Likewise.
2834 * amd64fbsd-tdep.c: Likewise.
2835 * amd64obsd-tdep.c: Likewise.
2836 * arch-utils.c: Likewise.
2837 * arm-linux-nat.c: Likewise.
2838 * arm-linux-tdep.c: Likewise.
2839 * arm-tdep.c: Likewise.
2840 * arm-wince-tdep.c: Likewise.
2841 * armbsd-tdep.c: Likewise.
2842 * armnbsd-nat.c: Likewise.
2843 * armnbsd-tdep.c: Likewise.
2844 * armobsd-tdep.c: Likewise.
2845 * avr-tdep.c: Likewise.
2846 * ax-gdb.c: Likewise.
2847 * ax-general.c: Likewise.
2848 * bcache.c: Likewise.
2849 * bfin-tdep.c: Likewise.
2850 * breakpoint.c: Likewise.
2851 * build-id.c: Likewise.
2852 * buildsym.c: Likewise.
2853 * c-exp.y: Likewise.
2854 * c-lang.c: Likewise.
2855 * c-typeprint.c: Likewise.
2856 * c-valprint.c: Likewise.
2857 * charset.c: Likewise.
2858 * cli-out.c: Likewise.
2859 * cli/cli-cmds.c: Likewise.
2860 * cli/cli-decode.c: Likewise.
2861 * cli/cli-dump.c: Likewise.
2862 * cli/cli-interp.c: Likewise.
2863 * cli/cli-logging.c: Likewise.
2864 * cli/cli-script.c: Likewise.
2865 * cli/cli-setshow.c: Likewise.
2866 * cli/cli-utils.c: Likewise.
2867 * coffread.c: Likewise.
2868 * common/agent.c: Likewise.
2869 * common/buffer.c: Likewise.
2870 * common/buffer.h: Likewise.
2871 * common/common-utils.c: Likewise.
2872 * common/filestuff.c: Likewise.
2873 * common/filestuff.c: Likewise.
2874 * common/format.c: Likewise.
2875 * common/print-utils.c: Likewise.
2876 * common/rsp-low.c: Likewise.
2877 * common/signals.c: Likewise.
2878 * common/vec.h: Likewise.
2879 * common/xml-utils.c: Likewise.
2880 * core-regset.c: Likewise.
2881 * corefile.c: Likewise.
2882 * corelow.c: Likewise.
2883 * cp-abi.c: Likewise.
2884 * cp-name-parser.y: Likewise.
2885 * cp-support.c: Likewise.
2886 * cp-valprint.c: Likewise.
2887 * cris-tdep.c: Likewise.
2888 * d-exp.y: Likewise.
2889 * darwin-nat.c: Likewise.
2890 * dbxread.c: Likewise.
2891 * dcache.c: Likewise.
2892 * demangle.c: Likewise.
2893 * dicos-tdep.c: Likewise.
2894 * disasm.c: Likewise.
2895 * doublest.c: Likewise.
2896 * dsrec.c: Likewise.
2897 * dummy-frame.c: Likewise.
2898 * dwarf2-frame.c: Likewise.
2899 * dwarf2loc.c: Likewise.
2900 * dwarf2read.c: Likewise.
2901 * elfread.c: Likewise.
2902 * environ.c: Likewise.
2904 * event-loop.c: Likewise.
2905 * exceptions.c: Likewise.
2907 * expprint.c: Likewise.
2908 * f-exp.y: Likewise.
2909 * f-lang.c: Likewise.
2910 * f-typeprint.c: Likewise.
2911 * f-valprint.c: Likewise.
2912 * fbsd-nat.c: Likewise.
2913 * findcmd.c: Likewise.
2914 * findvar.c: Likewise.
2915 * fork-child.c: Likewise.
2916 * frame.c: Likewise.
2917 * frv-linux-tdep.c: Likewise.
2918 * frv-tdep.c: Likewise.
2920 * gdb_bfd.c: Likewise.
2921 * gdbarch.c: Likewise.
2922 * gdbarch.sh: Likewise.
2923 * gdbtypes.c: Likewise.
2924 * gnu-nat.c: Likewise.
2925 * gnu-v2-abi.c: Likewise.
2926 * gnu-v3-abi.c: Likewise.
2927 * go-exp.y: Likewise.
2928 * go-lang.c: Likewise.
2929 * go32-nat.c: Likewise.
2930 * guile/guile.c: Likewise.
2931 * guile/scm-auto-load.c: Likewise.
2932 * hppa-hpux-tdep.c: Likewise.
2933 * hppa-linux-nat.c: Likewise.
2934 * hppanbsd-tdep.c: Likewise.
2935 * hppaobsd-tdep.c: Likewise.
2936 * i386-cygwin-tdep.c: Likewise.
2937 * i386-dicos-tdep.c: Likewise.
2938 * i386-linux-tdep.c: Likewise.
2939 * i386-nto-tdep.c: Likewise.
2940 * i386-sol2-tdep.c: Likewise.
2941 * i386-tdep.c: Likewise.
2942 * i386bsd-tdep.c: Likewise.
2943 * i386gnu-nat.c: Likewise.
2944 * i386nbsd-tdep.c: Likewise.
2945 * i386obsd-tdep.c: Likewise.
2946 * i387-tdep.c: Likewise.
2947 * ia64-libunwind-tdep.c: Likewise.
2948 * ia64-linux-nat.c: Likewise.
2949 * inf-child.c: Likewise.
2950 * inf-ptrace.c: Likewise.
2951 * inf-ttrace.c: Likewise.
2952 * infcall.c: Likewise.
2953 * infcmd.c: Likewise.
2954 * inflow.c: Likewise.
2955 * infrun.c: Likewise.
2956 * interps.c: Likewise.
2957 * iq2000-tdep.c: Likewise.
2958 * irix5-nat.c: Likewise.
2959 * jv-exp.y: Likewise.
2960 * jv-lang.c: Likewise.
2961 * jv-typeprint.c: Likewise.
2962 * jv-valprint.c: Likewise.
2963 * language.c: Likewise.
2964 * linux-fork.c: Likewise.
2965 * linux-nat.c: Likewise.
2966 * lm32-tdep.c: Likewise.
2967 * m2-exp.y: Likewise.
2968 * m2-typeprint.c: Likewise.
2969 * m32c-tdep.c: Likewise.
2970 * m32r-linux-nat.c: Likewise.
2971 * m32r-linux-tdep.c: Likewise.
2972 * m32r-rom.c: Likewise.
2973 * m32r-tdep.c: Likewise.
2974 * m68hc11-tdep.c: Likewise.
2975 * m68k-tdep.c: Likewise.
2976 * m68kbsd-tdep.c: Likewise.
2977 * m68klinux-nat.c: Likewise.
2978 * m68klinux-tdep.c: Likewise.
2979 * m88k-tdep.c: Likewise.
2980 * machoread.c: Likewise.
2981 * macrocmd.c: Likewise.
2983 * mdebugread.c: Likewise.
2984 * mem-break.c: Likewise.
2985 * memattr.c: Likewise.
2986 * memory-map.c: Likewise.
2987 * mep-tdep.c: Likewise.
2988 * mi/mi-cmd-break.c: Likewise.
2989 * mi/mi-cmd-disas.c: Likewise.
2990 * mi/mi-cmd-env.c: Likewise.
2991 * mi/mi-cmd-stack.c: Likewise.
2992 * mi/mi-cmd-var.c: Likewise.
2993 * mi/mi-cmds.c: Likewise.
2994 * mi/mi-console.c: Likewise.
2995 * mi/mi-getopt.c: Likewise.
2996 * mi/mi-interp.c: Likewise.
2997 * mi/mi-main.c: Likewise.
2998 * mi/mi-parse.c: Likewise.
2999 * microblaze-rom.c: Likewise.
3000 * microblaze-tdep.c: Likewise.
3001 * mingw-hdep.c: Likewise.
3002 * minidebug.c: Likewise.
3003 * minsyms.c: Likewise.
3004 * mips-irix-tdep.c: Likewise.
3005 * mips-linux-tdep.c: Likewise.
3006 * mips-tdep.c: Likewise.
3007 * mips64obsd-tdep.c: Likewise.
3008 * mipsnbsd-tdep.c: Likewise.
3009 * mipsread.c: Likewise.
3010 * mn10300-linux-tdep.c: Likewise.
3011 * mn10300-tdep.c: Likewise.
3012 * monitor.c: Likewise.
3013 * moxie-tdep.c: Likewise.
3014 * mt-tdep.c: Likewise.
3015 * nat/linux-btrace.c: Likewise.
3016 * nat/linux-osdata.c: Likewise.
3017 * nat/linux-procfs.c: Likewise.
3018 * nat/linux-ptrace.c: Likewise.
3019 * nat/linux-waitpid.c: Likewise.
3020 * nbsd-tdep.c: Likewise.
3021 * nios2-linux-tdep.c: Likewise.
3022 * nto-procfs.c: Likewise.
3023 * nto-tdep.c: Likewise.
3024 * objc-lang.c: Likewise.
3025 * objfiles.c: Likewise.
3026 * opencl-lang.c: Likewise.
3027 * osabi.c: Likewise.
3028 * osdata.c: Likewise.
3029 * p-exp.y: Likewise.
3030 * p-lang.c: Likewise.
3031 * p-typeprint.c: Likewise.
3032 * parse.c: Likewise.
3033 * posix-hdep.c: Likewise.
3034 * ppc-linux-nat.c: Likewise.
3035 * ppc-sysv-tdep.c: Likewise.
3036 * ppcfbsd-tdep.c: Likewise.
3037 * ppcnbsd-tdep.c: Likewise.
3038 * ppcobsd-tdep.c: Likewise.
3039 * printcmd.c: Likewise.
3040 * procfs.c: Likewise.
3041 * prologue-value.c: Likewise.
3042 * python/py-auto-load.c: Likewise.
3043 * python/py-gdb-readline.c: Likewise.
3044 * ravenscar-thread.c: Likewise.
3045 * regcache.c: Likewise.
3046 * registry.c: Likewise.
3047 * remote-fileio.c: Likewise.
3048 * remote-m32r-sdi.c: Likewise.
3049 * remote-mips.c: Likewise.
3050 * remote-notif.c: Likewise.
3051 * remote-sim.c: Likewise.
3052 * remote.c: Likewise.
3053 * reverse.c: Likewise.
3054 * rs6000-aix-tdep.c: Likewise.
3055 * ser-base.c: Likewise.
3056 * ser-go32.c: Likewise.
3057 * ser-mingw.c: Likewise.
3058 * ser-pipe.c: Likewise.
3059 * ser-tcp.c: Likewise.
3060 * ser-unix.c: Likewise.
3061 * serial.c: Likewise.
3062 * sh-tdep.c: Likewise.
3063 * sh64-tdep.c: Likewise.
3064 * shnbsd-tdep.c: Likewise.
3066 * sol-thread.c: Likewise.
3067 * solib-dsbt.c: Likewise.
3068 * solib-frv.c: Likewise.
3069 * solib-osf.c: Likewise.
3070 * solib-som.c: Likewise.
3071 * solib-spu.c: Likewise.
3072 * solib-target.c: Likewise.
3073 * solib.c: Likewise.
3074 * somread.c: Likewise.
3075 * source.c: Likewise.
3076 * sparc-nat.c: Likewise.
3077 * sparc-sol2-tdep.c: Likewise.
3078 * sparc-tdep.c: Likewise.
3079 * sparc64-tdep.c: Likewise.
3080 * sparc64fbsd-tdep.c: Likewise.
3081 * sparc64nbsd-tdep.c: Likewise.
3082 * sparcnbsd-tdep.c: Likewise.
3083 * spu-linux-nat.c: Likewise.
3084 * spu-multiarch.c: Likewise.
3085 * spu-tdep.c: Likewise.
3086 * stabsread.c: Likewise.
3087 * stack.c: Likewise.
3088 * std-regs.c: Likewise.
3089 * symfile.c: Likewise.
3090 * symmisc.c: Likewise.
3091 * symtab.c: Likewise.
3092 * target.c: Likewise.
3093 * thread.c: Likewise.
3094 * tilegx-linux-nat.c: Likewise.
3095 * tilegx-tdep.c: Likewise.
3097 * tracepoint.c: Likewise.
3098 * tui/tui-command.c: Likewise.
3099 * tui/tui-data.c: Likewise.
3100 * tui/tui-disasm.c: Likewise.
3101 * tui/tui-file.c: Likewise.
3102 * tui/tui-layout.c: Likewise.
3103 * tui/tui-out.c: Likewise.
3104 * tui/tui-regs.c: Likewise.
3105 * tui/tui-source.c: Likewise.
3106 * tui/tui-stack.c: Likewise.
3107 * tui/tui-win.c: Likewise.
3108 * tui/tui-windata.c: Likewise.
3109 * tui/tui-winsource.c: Likewise.
3110 * typeprint.c: Likewise.
3111 * ui-file.c: Likewise.
3112 * ui-out.c: Likewise.
3113 * user-regs.c: Likewise.
3114 * utils.c: Likewise.
3115 * v850-tdep.c: Likewise.
3116 * valarith.c: Likewise.
3117 * valops.c: Likewise.
3118 * valprint.c: Likewise.
3119 * value.c: Likewise.
3120 * varobj.c: Likewise.
3121 * vax-tdep.c: Likewise.
3122 * vaxnbsd-tdep.c: Likewise.
3123 * vaxobsd-tdep.c: Likewise.
3124 * windows-nat.c: Likewise.
3125 * xcoffread.c: Likewise.
3126 * xml-support.c: Likewise.
3127 * xstormy16-tdep.c: Likewise.
3128 * xtensa-linux-nat.c: Likewise.
3130 2014-08-07 Gary Benson <gbenson@redhat.com>
3132 * common/common-defs.h: Include gdb_assert.h.
3133 * aarch64-tdep.c: Do not include gdb_assert.h.
3134 * addrmap.c: Likewise.
3135 * aix-thread.c: Likewise.
3136 * alpha-linux-tdep.c: Likewise.
3137 * alpha-mdebug-tdep.c: Likewise.
3138 * alphanbsd-tdep.c: Likewise.
3139 * amd64-nat.c: Likewise.
3140 * amd64-tdep.c: Likewise.
3141 * amd64bsd-nat.c: Likewise.
3142 * amd64fbsd-nat.c: Likewise.
3143 * amd64fbsd-tdep.c: Likewise.
3144 * amd64nbsd-nat.c: Likewise.
3145 * amd64nbsd-tdep.c: Likewise.
3146 * amd64obsd-nat.c: Likewise.
3147 * amd64obsd-tdep.c: Likewise.
3148 * arch-utils.c: Likewise.
3149 * arm-tdep.c: Likewise.
3150 * armbsd-tdep.c: Likewise.
3152 * bcache.c: Likewise.
3153 * bfin-tdep.c: Likewise.
3154 * blockframe.c: Likewise.
3155 * breakpoint.c: Likewise.
3156 * bsd-kvm.c: Likewise.
3157 * bsd-uthread.c: Likewise.
3158 * buildsym.c: Likewise.
3159 * c-exp.y: Likewise.
3160 * c-lang.c: Likewise.
3161 * charset.c: Likewise.
3162 * cleanups.c: Likewise.
3163 * cli-out.c: Likewise.
3164 * cli/cli-decode.c: Likewise.
3165 * cli/cli-dump.c: Likewise.
3166 * cli/cli-logging.c: Likewise.
3167 * cli/cli-script.c: Likewise.
3168 * cli/cli-utils.c: Likewise.
3169 * coffread.c: Likewise.
3170 * common/common-utils.c: Likewise.
3171 * common/queue.h: Likewise.
3172 * common/signals.c: Likewise.
3173 * common/vec.h: Likewise.
3174 * complaints.c: Likewise.
3175 * completer.c: Likewise.
3176 * corelow.c: Likewise.
3177 * cp-abi.c: Likewise.
3178 * cp-name-parser.y: Likewise.
3179 * cp-namespace.c: Likewise.
3180 * cp-support.c: Likewise.
3181 * cris-tdep.c: Likewise.
3182 * dbxread.c: Likewise.
3183 * dictionary.c: Likewise.
3184 * doublest.c: Likewise.
3185 * dsrec.c: Likewise.
3186 * dummy-frame.c: Likewise.
3187 * dwarf2-frame-tailcall.c: Likewise.
3188 * dwarf2-frame.c: Likewise.
3189 * dwarf2expr.c: Likewise.
3190 * dwarf2loc.c: Likewise.
3191 * dwarf2read.c: Likewise.
3193 * event-loop.c: Likewise.
3194 * exceptions.c: Likewise.
3195 * expprint.c: Likewise.
3196 * f-valprint.c: Likewise.
3197 * fbsd-nat.c: Likewise.
3198 * findvar.c: Likewise.
3199 * frame-unwind.c: Likewise.
3200 * frame.c: Likewise.
3201 * frv-tdep.c: Likewise.
3202 * gcore.c: Likewise.
3203 * gdb-dlfcn.c: Likewise.
3204 * gdb_bfd.c: Likewise.
3205 * gdbarch.c: Likewise.
3206 * gdbarch.sh: Likewise.
3207 * gdbtypes.c: Likewise.
3208 * gnu-nat.c: Likewise.
3209 * gnu-v3-abi.c: Likewise.
3210 * go-lang.c: Likewise.
3211 * guile/scm-exception.c: Likewise.
3212 * guile/scm-gsmob.c: Likewise.
3213 * guile/scm-lazy-string.c: Likewise.
3214 * guile/scm-math.c: Likewise.
3215 * guile/scm-pretty-print.c: Likewise.
3216 * guile/scm-safe-call.c: Likewise.
3217 * guile/scm-utils.c: Likewise.
3218 * guile/scm-value.c: Likewise.
3219 * h8300-tdep.c: Likewise.
3220 * hppa-hpux-nat.c: Likewise.
3221 * hppa-tdep.c: Likewise.
3222 * hppanbsd-tdep.c: Likewise.
3223 * hppaobsd-tdep.c: Likewise.
3224 * i386-darwin-nat.c: Likewise.
3225 * i386-darwin-tdep.c: Likewise.
3226 * i386-nto-tdep.c: Likewise.
3227 * i386-tdep.c: Likewise.
3228 * i386bsd-nat.c: Likewise.
3229 * i386fbsd-tdep.c: Likewise.
3230 * i386gnu-nat.c: Likewise.
3231 * i386nbsd-tdep.c: Likewise.
3232 * i386obsd-tdep.c: Likewise.
3233 * i387-tdep.c: Likewise.
3234 * ia64-libunwind-tdep.c: Likewise.
3235 * ia64-tdep.c: Likewise.
3236 * inf-ptrace.c: Likewise.
3237 * inf-ttrace.c: Likewise.
3238 * infcall.c: Likewise.
3239 * infcmd.c: Likewise.
3240 * infrun.c: Likewise.
3241 * inline-frame.c: Likewise.
3242 * interps.c: Likewise.
3243 * jv-lang.c: Likewise.
3244 * jv-typeprint.c: Likewise.
3245 * linux-fork.c: Likewise.
3246 * linux-nat.c: Likewise.
3247 * linux-thread-db.c: Likewise.
3248 * m32c-tdep.c: Likewise.
3249 * m32r-linux-nat.c: Likewise.
3250 * m32r-tdep.c: Likewise.
3251 * m68k-tdep.c: Likewise.
3252 * m68kbsd-nat.c: Likewise.
3253 * m68kbsd-tdep.c: Likewise.
3254 * m88k-tdep.c: Likewise.
3255 * machoread.c: Likewise.
3256 * macroexp.c: Likewise.
3257 * macrotab.c: Likewise.
3258 * maint.c: Likewise.
3259 * mdebugread.c: Likewise.
3260 * memory-map.c: Likewise.
3261 * mep-tdep.c: Likewise.
3262 * mi/mi-common.c: Likewise.
3263 * microblaze-tdep.c: Likewise.
3264 * mingw-hdep.c: Likewise.
3265 * mips-linux-nat.c: Likewise.
3266 * mips-linux-tdep.c: Likewise.
3267 * mips-tdep.c: Likewise.
3268 * mips64obsd-tdep.c: Likewise.
3269 * mipsnbsd-tdep.c: Likewise.
3270 * mn10300-linux-tdep.c: Likewise.
3271 * mn10300-tdep.c: Likewise.
3272 * moxie-tdep.c: Likewise.
3273 * mt-tdep.c: Likewise.
3274 * nat/linux-btrace.c: Likewise.
3275 * nat/linux-osdata.c: Likewise.
3276 * nat/linux-ptrace.c: Likewise.
3277 * nat/mips-linux-watch.c: Likewise.
3278 * nios2-linux-tdep.c: Likewise.
3279 * nios2-tdep.c: Likewise.
3280 * objc-lang.c: Likewise.
3281 * objfiles.c: Likewise.
3282 * obsd-nat.c: Likewise.
3283 * opencl-lang.c: Likewise.
3284 * osabi.c: Likewise.
3285 * parse.c: Likewise.
3286 * ppc-linux-nat.c: Likewise.
3287 * ppc-sysv-tdep.c: Likewise.
3288 * ppcfbsd-nat.c: Likewise.
3289 * ppcfbsd-tdep.c: Likewise.
3290 * ppcnbsd-nat.c: Likewise.
3291 * ppcnbsd-tdep.c: Likewise.
3292 * ppcobsd-nat.c: Likewise.
3293 * ppcobsd-tdep.c: Likewise.
3294 * printcmd.c: Likewise.
3295 * procfs.c: Likewise.
3296 * prologue-value.c: Likewise.
3297 * psymtab.c: Likewise.
3298 * python/py-lazy-string.c: Likewise.
3299 * python/py-value.c: Likewise.
3300 * regcache.c: Likewise.
3301 * reggroups.c: Likewise.
3302 * registry.c: Likewise.
3303 * remote-sim.c: Likewise.
3304 * remote.c: Likewise.
3305 * rs6000-aix-tdep.c: Likewise.
3306 * rs6000-tdep.c: Likewise.
3307 * s390-linux-tdep.c: Likewise.
3308 * score-tdep.c: Likewise.
3309 * ser-base.c: Likewise.
3310 * ser-mingw.c: Likewise.
3311 * sh-tdep.c: Likewise.
3312 * sh64-tdep.c: Likewise.
3313 * solib-darwin.c: Likewise.
3314 * solib-spu.c: Likewise.
3315 * solib-svr4.c: Likewise.
3316 * source.c: Likewise.
3317 * sparc-nat.c: Likewise.
3318 * sparc-sol2-tdep.c: Likewise.
3319 * sparc-tdep.c: Likewise.
3320 * sparc64-sol2-tdep.c: Likewise.
3321 * sparc64-tdep.c: Likewise.
3322 * sparc64fbsd-tdep.c: Likewise.
3323 * sparc64nbsd-tdep.c: Likewise.
3324 * sparc64obsd-tdep.c: Likewise.
3325 * sparcnbsd-tdep.c: Likewise.
3326 * sparcobsd-tdep.c: Likewise.
3327 * spu-multiarch.c: Likewise.
3328 * spu-tdep.c: Likewise.
3329 * stabsread.c: Likewise.
3330 * stack.c: Likewise.
3331 * symfile.c: Likewise.
3332 * symtab.c: Likewise.
3333 * target-descriptions.c: Likewise.
3334 * target-memory.c: Likewise.
3335 * target.c: Likewise.
3336 * tic6x-linux-tdep.c: Likewise.
3337 * tic6x-tdep.c: Likewise.
3338 * tilegx-linux-nat.c: Likewise.
3339 * tilegx-tdep.c: Likewise.
3341 * tramp-frame.c: Likewise.
3342 * tui/tui-out.c: Likewise.
3343 * tui/tui-winsource.c: Likewise.
3344 * ui-out.c: Likewise.
3345 * user-regs.c: Likewise.
3346 * utils.c: Likewise.
3347 * v850-tdep.c: Likewise.
3348 * valops.c: Likewise.
3349 * value.c: Likewise.
3350 * varobj.c: Likewise.
3351 * vax-nat.c: Likewise.
3352 * xml-syscall.c: Likewise.
3353 * xml-tdesc.c: Likewise.
3354 * xstormy16-tdep.c: Likewise.
3355 * xtensa-linux-nat.c: Likewise.
3356 * xtensa-tdep.c: Likewise.
3358 2014-08-07 Gary Benson <gbenson@redhat.com>
3360 * common/common-defs.h: Include common-utils.h.
3361 * defs.h: Do not include common-utils.h.
3362 * common/gdb_assert.h: Likewise.
3363 * darwin-nat.h: Likewise.
3364 * nat/linux-btrace.c: Likewise.
3365 * target/waitstatus.h: Likewise.
3367 2014-08-07 Gary Benson <gbenson@redhat.com>
3369 * common/common-defs.h: Include ptid.h.
3370 * defs.h: Do not include ptid.h.
3371 * inferior.h: Likewise.
3372 * infrun.h: Likewise.
3373 * nat/linux-btrace.h: Likewise.
3374 * nat/linux-osdata.h: Likewise.
3375 * target/waitstatus.h: Likewise.
3377 2014-08-07 Gary Benson <gbenson@redhat.com>
3379 * common/common-defs.h: Include gdb_locale.h.
3380 * defs.h: Do not include gdb_locale.h.
3382 2014-08-07 Gary Benson <gbenson@redhat.com>
3384 * common/common-defs.h: Include gdb/signals.h.
3385 * defs.h: Do not include gdb/signals.h.
3387 2014-08-07 Gary Benson <gbenson@redhat.com>
3389 * common/common-defs.h: Include pathmax.h.
3390 * defs.h: Do not include pathmax.h.
3392 2014-08-07 Gary Benson <gbenson@redhat.com>
3394 * common/common-defs.h: Include libiberty.h.
3395 * defs.h: Do not include libiberty.h.
3396 * common/queue.h: Likewise.
3397 * cp-name-parser.y: Likewise.
3398 * mi/mi-cmd-catch.c: Likewise.
3399 * python/python.c: Likewise.
3401 2014-08-07 Gary Benson <gbenson@redhat.com>
3403 * common/common-defs.h: Include ansidecl.h.
3404 * defs.h: Do not include ansidecl.h.
3405 * common/buffer.h: Likewise.
3406 * common/common-utils.h: Likewise.
3408 2014-08-07 Gary Benson <gbenson@redhat.com>
3410 * common/common-defs.h: Include stddef.h.
3411 * defs.h: Do not include stddef.h.
3412 * common/common-utils.h: Likewise.
3413 * amd64fbsd-nat.c: Likewise.
3414 * bcache.c: Likewise.
3415 * charset.c: Likewise.
3416 * common/buffer.h: Likewise.
3417 * common/vec.h: Likewise.
3418 * i386bsd-nat.c: Likewise.
3419 * nat/linux-btrace.h: Likewise.
3420 * ppcfbsd-nat.c: Likewise.
3421 * ppcnbsd-tdep.h: Likewise.
3422 * ppcobsd-nat.c: Likewise.
3423 * ppcobsd-tdep.h: Likewise.
3424 * python/py-gdb-readline.c: Likewise.
3426 2014-08-07 Gary Benson <gbenson@redhat.com>
3428 * common/common-defs.h: Include stdarg.h.
3429 * defs.h: Do not include stdarg.h.
3430 * ada-lang.c: Likewise.
3431 * common/common-utils.h: Likewise.
3432 * guile/scm-string.c: Likewise.
3433 * guile/scm-utils.c: Likewise.
3434 * m32c-tdep.c: Likewise.
3436 2014-08-07 Gary Benson <gbenson@redhat.com>
3438 * common/common-defs.h: Include stdlib.h.
3439 * defs.h: Do not include stdlib.h.
3440 * addrmap.c: Likewise.
3441 * bcache.c: Likewise.
3442 * common/buffer.c: Likewise.
3443 * common/common-utils.c: Likewise.
3444 * cp-name-parser.y: Likewise.
3445 * go32-nat.c: Likewise.
3446 * mn10300-linux-tdep.c: Likewise.
3447 * nat/linux-osdata.c: Likewise.
3448 * tui/tui.c: Likewise.
3449 * windows-nat.c: Likewise.
3451 2014-08-07 Gary Benson <gbenson@redhat.com>
3453 * common/common-defs.h: Include stdio.h.
3454 * defs.h: Do not include stdio.h.
3455 * ada-lang.c: Likewise.
3456 * common/buffer.c: Likewise.
3457 * common/common-utils.c: Likewise.
3458 * cp-name-parser.y: Likewise.
3459 * gnu-nat.c: Likewise.
3460 * go32-nat.c: Likewise.
3461 * i386gnu-nat.c: Likewise.
3462 * proc-api.c: Likewise.
3463 * proc-events.c: Likewise.
3464 * proc-flags.c: Likewise.
3465 * proc-why.c: Likewise.
3466 * python/python-internal.h: Likewise.
3467 * target-memory.c: Likewise.
3468 * tui/tui-io.c: Likewise.
3469 * tui/tui.c: Likewise.
3471 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3473 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3474 (scan_dyntag_auxv): Same.
3476 2014-08-06 Yao Qi <yao@codesourcery.com>
3478 * amd64-linux-nat.c: Remove duplicated include
3480 * i386-linux-nat.c: Likewise.
3482 2014-08-06 Yao Qi <yao@codesourcery.com>
3484 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3485 operand" with "Special opcode" in comments.
3487 2014-08-05 Gary Benson <gbenson@redhat.com>
3489 * interps.c (initialize_interps): Remove prototype.
3490 (interpreter_initialized): Remove static global.
3491 (interp_add): Do not call initialize_interps.
3492 (initialize_interps): Remove function.
3494 2014-08-05 Gary Benson <gbenson@redhat.com>
3496 * utils.c (vwarning): Remove spurious va_end.
3498 2014-08-05 Alan Modra <amodra@gmail.com>
3500 * charset.c (convert_between_encodings): Cast result of obstack_base.
3501 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3502 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3503 (read_unwind_info): Use size_t for some locals.
3504 * jit.c (finalize_symtab): Likewise.
3505 * utils.c (hashtab_obstack_allocate): Likewise.
3506 * symmisc.c (print_objfile_statistics): Update format strings.
3508 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3510 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3511 (Changes in GDB 7.8): ... here.
3513 2014-08-04 Tom Tromey <tromey@redhat.com>
3515 * target.c (set_targetdebug): New function.
3516 (initialize_targets): Pass set_targetdebug when creating "set
3519 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3521 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3522 if detecting a variable-sized field that is not the last field.
3523 Fix struct type length computation.
3525 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3527 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3530 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3532 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3533 Remove "+ 8" offset in computation of CHAIN_VMA.
3535 2014-07-31 Doug Evans <dje@google.com>
3537 * inflow.c (child_terminal_inferior): Add comment.
3538 (child_terminal_ours_for_output): Add comment.
3539 (child_terminal_ours): Add comment.
3540 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3541 (linux_nat_terminal_ours): Add comment.
3543 2014-07-31 Gary Benson <gbenson@redhat.com>
3545 * common/btrace-common.h: Do not include defs.h or server.h.
3546 * nat/mips-linux-watch.h: Likewise.
3547 * gdb-dlfcn.h: Do not include defs.h.
3548 * tracefile.h: Likewise.
3550 2014-07-30 Roland McGrath <mcgrathr@google.com>
3552 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3554 2014-07-30 Tom Tromey <tromey@redhat.com>
3556 * bsd-kvm.c (bsd_kvm_open): Constify.
3557 * corelow.c (core_open): Constify.
3558 * ctf.c (ctf_open): Constify.
3559 * dbug-rom.c (dbug_open): Constify.
3560 * exec.c (exec_open): Constify.
3561 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3562 * microblaze-rom.c (picobug_open): Constify.
3563 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3565 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3566 * record-btrace.c (record_btrace_open): Constify.
3567 * record-full.c (record_full_core_open_1, record_full_open_1)
3568 (record_full_open): Constify.
3569 * remote-m32r-sdi.c (m32r_open): Constify.
3570 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3571 (rockhopper_open, lsi_open): Constify.
3572 * remote-sim.c (gdbsim_open): Constify.
3573 * remote.c (remote_open, extended_remote_open, remote_open_1):
3575 * target.h (struct target_ops) <to_open>: Make "arg" const.
3576 * tracefile-tfile.c (tfile_open): Constify.
3578 2014-07-30 Tom Tromey <tromey@redhat.com>
3580 * breakpoint.c (map_breakpoint_numbers): Update.
3581 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3582 (get_number_const): New function.
3583 (get_number): Rewrite using get_number_const.
3584 (init_number_or_range): Make "string" const.
3585 (number_is_in_list): Make "list" const.
3586 * cli/cli-utils.h (get_number_const): Declare.
3587 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3588 (init_number_or_range, number_is_in_list): Update.
3589 * printcmd.c (map_display_numbers): Update.
3590 * value.c (value_from_history_ref): Constify.
3591 * value.h (value_from_history_ref): Update.
3593 2014-07-30 Tom Tromey <tromey@redhat.com>
3595 * corefile.c (hook_type, call_extra_exec_file_hooks)
3596 (specify_exec_file_hook): Constify.
3597 * exec.c (exec_file_attach): Make "filename" const.
3598 * gdbcore.h (deprecated_exec_file_display_hook)
3599 (specify_exec_file_hook, exec_file_attach): Constify.
3600 * main.c (captured_main): Use catch_command_errors_const.
3602 2014-07-30 Tom Tromey <tromey@redhat.com>
3604 * target.c (open_target): New function.
3605 (add_target_with_completer, add_deprecated_target_alias): Use
3606 set_cmd_sfunc, set_cmd_context.
3607 (debug_to_open): Remove.
3608 (setup_target_debug): Update.
3610 2014-07-30 Yao Qi <yao@codesourcery.com>
3612 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3614 * parse.c (exp_iterate): Update comments.
3616 2014-07-30 Gary Benson <gbenson@redhat.com>
3618 * common/common-defs.h: New file.
3619 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3620 * defs.h: Include common-defs.h.
3621 Do not include config.h or build-gnulib/config.h.
3623 2014-07-30 Gary Benson <gbenson@redhat.com>
3625 * common/common-utils.h: Do not include config.h.
3626 * nat/linux-btrace.h: Likewise.
3628 2014-07-30 Gary Benson <gbenson@redhat.com>
3630 * btrace.c: Include defs.h.
3631 * common/ptid.c: Include defs.h or server.h as appropriate.
3632 * nat/mips-linux-watch.c: Likewise.
3634 2014-07-29 Tom Tromey <tromey@redhat.com>
3636 * target.c (target_is_pushed): Simplify.
3638 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3642 2014-07-29 Yao Qi <yao@codesourcery.com>
3645 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3647 2014-07-28 Doug Evans <xdje42@gmail.com>
3650 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3651 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3654 2014-07-28 Will Newton <will.newton@linaro.org>
3656 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3657 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3658 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3659 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3660 (THUMB2_EABI_SYSCALL): Likewise.
3661 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3663 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3664 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3666 2014-07-27 Doug Evans <xdje42@gmail.com>
3668 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3670 2014-07-27 Doug Evans <xdje42@gmail.com>
3672 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3674 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3675 Doug Evans <xdje42@gmail.com>
3678 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3679 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3680 * configure.ac: Try to use guild to compile an scm file, if it fails
3681 then disable guile support.
3682 * configure: Regenerate.
3683 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3685 (GUILE_COMPILED_FILES): New variable.
3686 (GUILE_FILES) Update.
3687 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3688 (stamp-guile): Compile scm files.
3689 * guile/guile.c (boot_guile_support): New function.
3690 (standard_throw_args_p): New function.
3691 (print_standard_throw_error, print_throw_error): New functions.
3692 (handle_boot_error): New function.
3693 (initialize_scheme_side): Rewrite to call boot_guile_support.
3694 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3695 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3697 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3698 Doug Evans <xdje42@gmail.com>
3701 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3702 * guile/lib/gdb/support.scm: New file.
3703 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3704 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3706 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3708 (%assert-type): Ditto, and renamed to assert-type.
3709 (%exception-print-style): Delete.
3711 2014-07-26 Doug Evans <xdje42@gmail.com>
3714 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3715 * configure: Regenerate.
3716 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3718 (PYTHON_FILES): New variable.
3719 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3720 (GUILE_FILES): New variable.
3721 (stamp-python, install-python, uninstall-python): Handle empty
3723 (stamp-guile, install-guile, uninstall-guile): Ditto.
3725 2014-07-26 Doug Evans <xdje42@gmail.com>
3728 * guile/lib/gdb.scm (pretty-printers): Export.
3729 (set-pretty-printers!): Export.
3730 * guile/lib/gdb/printing.scm (gdb module): Update.
3731 (prepend-pretty-printer!, append-pretty-printer!): Update.
3732 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3733 (pretty_printer_list_var): Delete.
3734 (pretty_printer_list): New static global.
3735 (gdbscm_pretty_printers): New function.
3736 (gdbscm_set_pretty_printers_x): New function.
3737 (ppscm_find_pretty_printer_from_gdb): Update.
3738 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3739 (gdbscm_initialize_pretty_printers): Update.
3741 2014-07-26 Doug Evans <xdje42@gmail.com>
3744 * configure.ac: Add check for header gc/gc.h.
3745 Add check for function setenv.
3746 * configure: Regenerate.
3747 * config.in: Regenerate.
3748 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3750 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3752 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3753 variation in gdbarch matching.
3755 2014-07-25 Tom Tromey <tromey@redhat.com>
3757 * exec.c (using_exec_ops): Remove.
3758 (exec_close_1): Update. Remove extraneous block, reindent.
3759 (add_target_sections): Use target_is_pushed.
3761 2014-07-25 Pedro Alves <palves@redhat.com>
3763 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3764 * monitor.c (monitor_create_inferior): Likewise.
3765 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3766 * remote-sim.c (gdbsim_create_inferior): Likewise.
3767 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3768 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3769 * windows-nat.c (do_initial_windows_stuff): Likewise.
3771 2014-07-25 Pedro Alves <palves@redhat.com>
3773 * NEWS: Mention signal passing and "signal" command changes.
3774 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3776 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3778 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3779 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3780 (jump_command): Adjust clear_proceed_status call.
3781 (signal_command): Warn if other thread that are resumed have
3782 signals that will be delivered. Adjust clear_proceed_status call.
3783 (until_next_command, finish_command)
3784 (proceed_after_attach_callback, attach_command_post_wait)
3785 (attach_command): Adjust clear_proceed_status call.
3786 * infrun.c (proceed_after_vfork_done): Likewise.
3787 (proceed_after_attach_callback): Adjust comment.
3788 (clear_proceed_status_thread): Clear stop_signal if not in pass
3790 (clear_proceed_status_callback): Delete.
3791 (clear_proceed_status): New 'step' parameter. Only clear the
3792 proceed status of threads the command being prepared is about to
3794 (proceed): If passed in an explicit signal, override stop_signal
3795 with it. Don't pass the last stop signal to the thread we're
3797 (init_wait_for_inferior): Adjust clear_proceed_status call.
3798 (switch_back_to_stepped_thread): Clear the signal if it should not
3800 * infrun.h (clear_proceed_status): New 'step' parameter.
3801 (user_visible_resume_ptid): Add comment.
3802 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3803 signal is in pass state.
3804 * remote.c (append_pending_thread_resumptions): Likewise.
3805 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3807 2014-07-25 Tom Tromey <tromey@redhat.com>
3809 * target.h (target_stopped_data_address)
3810 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3813 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3815 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3817 (avr_pointer_to_address): Likewise.
3819 2014-07-24 Tom Tromey <tromey@redhat.com>
3821 * monitor.c (compile_pattern): Update.
3822 * target.h (struct target_ops) <to_shortname, to_longname,
3825 2014-07-24 Tom Tromey <tromey@redhat.com>
3827 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3828 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3829 (add_info_alias, add_com): Make "doc" const.
3830 (print_doc_line): Make "str" const.
3831 (delete_cmd): Update.
3832 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3833 (print_doc_line): Update.
3834 * cli/cli-script.c (document_command): Update.
3835 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3836 (add_com, add_info, add_info_alias): Update.
3837 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3838 * python/py-cmd.c (cmdpy_destroyer): Update.
3840 2014-07-24 Tom Tromey <tromey@redhat.com>
3842 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3843 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3844 (help_cmd_list): Constify.
3845 (lookup_cmd): Update.
3846 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3848 (help_cmd_list, apropos_cmd): Update.
3849 * cli/cli-script.c (show_user): Update.
3850 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3851 * cli/cli-setshow.h (cmd_show_list): Update.
3852 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3853 (cmd_show_list): Update.
3854 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3855 * python/py-cmd.c (cmdpy_destroyer): Update.
3857 2014-07-24 Tom Tromey <tromey@redhat.com>
3859 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3860 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3862 * command.h (deprecate_cmd): Update.
3863 * maint.c (maintenance_do_deprecate): Add casts.
3865 2014-07-24 Tom Tromey <tromey@redhat.com>
3867 * cli/cli-decode.c (help_cmd): Make parameter "const".
3868 * cli/cli-decode.h (help_cmd): Update.
3870 2014-07-24 Tom Tromey <tromey@redhat.com>
3872 * stack.c (up_silently_base, down_silently_base): Make argument
3875 2014-07-24 Tom Tromey <tromey@redhat.com>
3877 * solib.c (solib_add): Make "pattern" const.
3878 * solib.h (solib_add): Update.
3880 2014-07-24 Tom Tromey <tromey@redhat.com>
3882 * remote.c (remote_serial_open, print_packet, putpkt)
3883 (putpkt_binary): Constify.
3884 * remote.h (putpkt): Update.
3886 2014-07-24 Tom Tromey <tromey@redhat.com>
3888 * monitor.c (monitor_open): Make "args" const.
3889 * monitor.h (monitor_open): Update.
3891 2014-07-24 Tom Tromey <tromey@redhat.com>
3893 * maint.c (match_bfd_flags): Make "string" const.
3894 (print_bfd_section_info): Remove casts.
3895 (print_objfile_section_info): Make "string" const.
3897 2014-07-24 Tom Tromey <tromey@redhat.com>
3899 * inf-child.c (inf_child_open_target): Make "arg" const.
3900 * inf-child.h (inf_child_open_target): Update.
3902 2014-07-24 Tom Tromey <tromey@redhat.com>
3904 * environ.c (unset_in_environ): Make "var" const.
3905 * environ.h (unset_in_environ): Update.
3907 2014-07-24 Tom Tromey <tromey@redhat.com>
3909 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3911 (scan_filename_with_cleanup): Likewise.
3912 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3913 Make arguments const.
3914 (restore_command): Update.
3916 2014-07-24 Pedro Alves <palves@redhat.com>
3918 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3920 2014-07-24 Tom Tromey <tromey@redhat.com>
3921 Gary Benson <gbenson@redhat.com>
3923 * nat/linux-ptrace.c (additional_flags): New global.
3924 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3925 additional_flags; don't check GDBSERVER.
3926 (linux_ptrace_set_additional_flags): New function.
3927 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3929 * linux-nat.c (_initialize_linux_nat): Call
3930 linux_ptrace_set_additional_flags.
3932 2014-07-24 Tom Tromey <tromey@redhat.com>
3934 * make-target-delegates (munge_type, write_debugmethod): New
3936 (debug_names): New global.
3937 ($TARGET_DEBUG_PRINTER): New global.
3938 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3940 Write debug methods. Generate init_debug_target.
3941 * target-debug.h: New file.
3942 * target-delegates.c: Rebuild.
3943 * target.c: Include target-debug.h.
3944 (debug_target): Hoist definition.
3945 (target_kill, target_get_section_table, target_memory_map)
3946 (target_flash_erase, target_flash_done, target_detach)
3947 (target_disconnect, target_wait, target_resume)
3948 (target_pass_signals, target_program_signals, target_follow_fork)
3949 (target_mourn_inferior, target_search_memory)
3950 (target_thread_address_space, target_close)
3951 (target_find_new_threads, target_core_of_thread)
3952 (target_verify_memory, target_insert_mask_watchpoint)
3953 (target_remove_mask_watchpoint): Remove targetdebug code.
3954 (debug_to_post_attach, debug_to_prepare_to_store)
3955 (debug_to_files_info, debug_to_insert_breakpoint)
3956 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3957 (debug_to_region_ok_for_hw_watchpoint)
3958 (debug_to_can_accel_watchpoint_condition)
3959 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3960 (debug_to_watchpoint_addr_within_range)
3961 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3962 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3963 (debug_to_terminal_init, debug_to_terminal_inferior)
3964 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3965 (debug_to_terminal_save_ours, debug_to_terminal_info)
3966 (debug_to_load, debug_to_post_startup_inferior)
3967 (debug_to_insert_fork_catchpoint)
3968 (debug_to_remove_fork_catchpoint)
3969 (debug_to_insert_vfork_catchpoint)
3970 (debug_to_remove_vfork_catchpoint)
3971 (debug_to_insert_exec_catchpoint)
3972 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3973 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3974 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3975 (setup_target_debug): Call init_debug_target.
3976 * target.h (TARGET_DEBUG_PRINTER): New macro.
3977 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3978 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3980 2014-07-24 Gary Benson <gbenson@redhat.com>
3982 * exceptions.h (throw_vfatal): Renamed to...
3983 (throw_vquit): New declaration.
3984 (throw_quit): Likewise.
3985 * exceptions.c (throw_vfatal): Renamed to...
3986 (throw_vquit): New function.
3987 (throw_quit): Likewise.
3988 (throw_error): Call throw_verror rather than throw_it.
3989 * utils.h (vfatal): Removed.
3991 * utils.c (vfatal): Removed.
3993 (internal_verror): Replaced call to fatal with call to throw_quit.
3994 (quit): Replaced calls to fatal with calls to throw_quit.
3996 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3998 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4001 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4003 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4004 less than zero in conditional expression.
4006 2014-07-23 Tom Tromey <tromey@redhat.com>
4008 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4009 ($INTRO_PART): Don't match whitespace.
4010 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4012 ($METHOD): Add $METHOD_TRAILER.
4014 (scan_target_h): New sub.
4015 Change main loop not to collect state.
4016 * target-delegates.c: Rebuild.
4018 2014-07-23 Gary Benson <gbenson@redhat.com>
4020 * cp-support.c (gdb_demangle): Fix build on systems without
4023 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4025 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4026 for reference entry value target data value.
4028 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4030 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4031 value_available_contents_eq.
4033 2014-07-22 Pedro Alves <palves@redhat.com>
4035 * value.c (allocate_optimized_out_value): Don't mark value as
4038 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4040 * MAINTAINERS (Write After Approval): Update my email address.
4042 2014-07-20 Doug Evans <dje@google.com>
4045 * remote.c (putpkt_binary): Add text to error message.
4047 2014-07-20 Yao Qi <yao@codesourcery.com>
4049 * eval.c: Remove "Chill" from comments.
4050 * gdbtypes.h: Likewise.
4051 * symtab.h: Likewise.
4053 2014-07-20 Yao Qi <yao@codesourcery.com>
4055 * std-operator.def: Update comments to TERNOP_SLICE.
4057 2014-07-20 Yao Qi <yao@codesourcery.com>
4059 * std-operator.def: Remove BINOP_RANGE.
4060 * breakpoint.c (watchpoint_exp_is_const): Update.
4061 * expprint.c (dump_subexp_body_standard): Likewise.
4062 * eval.c (init_array_element): Remove dead code.
4063 (evaluate_subexp_standard): Likewise.
4065 2014-07-20 Yao Qi <yao@codesourcery.com>
4067 * std-operator.def: Remove BINOP_IN.
4068 * breakpoint.c (watchpoint_exp_is_const): Update.
4069 * eval.c (evaluate_subexp_standard): Likewise.
4070 * expprint.c (dump_subexp_body_standard): Likewise.
4072 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4074 * microblaze-tdep.c (microblaze_register_names): Add
4075 the rshr and rslr register names.
4076 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4077 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4078 Use of tdesc_numbered_register. Use of
4079 microblaze_register_g_packet_guesses. Use of
4080 tdesc_use_registers. Use of set_gdbarch_register_type.
4081 (microblaze_register_g_packet_guesses): New.
4082 * microblaze-tdep.h (microblaze_reg_num): Add
4083 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4084 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4085 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4086 * features/microblaze-core.xml: New file.
4087 * features/microblaze-stack-protect.xml: New file.
4088 * features/microblaze-with-stack-protect.c: New file.
4089 * features/microblaze-with-stack-protect.xml: New file.
4090 * features/microblaze.xml: New file.
4091 * features/microblaze.c: New file.
4092 * features/Makefile (microblaze-with-stack-protect): Add
4093 microblaze-with-stack-protect microblaze and microblaze-expedite.
4094 * regformats/microblaze-with-stack-protect.dat: New file.
4095 * regformats/microblaze.dat: New file.
4096 * doc/gdb.texinfo (MicroBlaze Features): Added.
4098 2014-07-18 Tom Tromey <tromey@redhat.com>
4100 * exec.c (exec_ops): Now static.
4101 * exec.h (exec_ops): Don't declare.
4103 2014-07-18 Tom Tromey <tromey@redhat.com>
4105 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4106 to find_target_beneath.
4107 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4108 find_target_beneath.
4109 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4111 2014-07-18 Tom Tromey <tromey@redhat.com>
4114 * utils.c (quit): Use target_supports_terminal_ours.
4115 * target.h (target_supports_terminal_ours): Declare.
4116 * target.c (target_supports_delete_record): Don't check
4117 to_delete_record against NULL.
4118 (target_supports_terminal_ours): New function.
4120 2014-07-18 Tom Tromey <tromey@redhat.com>
4123 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4124 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4125 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4126 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4127 * windows-nat.c (windows_xfer_partial): Always delegate.
4128 * record-btrace.c (record_btrace_xfer_partial): Simplify
4130 (record_btrace_fetch_registers, record_btrace_store_registers)
4131 (record_btrace_prepare_to_store, record_btrace_resume)
4132 (record_btrace_wait, record_btrace_find_new_threads)
4133 (record_btrace_thread_alive): Likewise.
4134 * procfs.c (procfs_xfer_partial): Always delegate.
4135 * corelow.c (core_xfer_partial): Always delegate.
4136 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4138 2014-07-18 Tom Tromey <tromey@redhat.com>
4140 * exec.c (exec_make_note_section): Move earlier.
4142 2014-07-17 Doug Evans <dje@google.com>
4145 * maint.c (count_symtabs_and_blocks): Handle NULL
4146 current_program_space.
4147 (report_command_stats): Check global enabled flag in addition to
4148 recorded enabled flag.
4149 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4151 2014-07-16 Pedro Alves <palves@redhat.com>
4153 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4155 2014-07-16 Tom Tromey <tromey@redhat.com>
4157 * target.h (struct target_ops) <to_delete_record>: Reformat
4160 2014-07-16 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4164 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4166 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4167 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4168 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4169 (avr_pointer_to_address): Likewise.
4170 (avr_address_class_type_flags): New function.
4171 (avr_address_class_type_flags_to_name): Likewise.
4172 (avr_address_class_name_to_type_flags): Likewise.
4173 (avr_gdbarch_init): Set address_class_type_flags,
4174 address_class_type_flags_to_name and
4175 address_class_name_to_type_flags.
4177 2014-07-15 Pedro Alves <palves@redhat.com>
4179 * linux-nat.c (kill_callback): Save errno and work with saved
4182 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4184 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4186 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4188 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4189 breakpoint support correctly.
4191 2014-07-14 Pedro Alves <palves@redhat.com>
4193 * utils.c (prompt_for_continue): Call target_terminal_ours.
4195 2014-07-14 Pedro Alves <palves@redhat.com>
4197 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4198 catch_errors. Don't re-enable stdin or notify observers where,
4200 (fetch_inferior_event_wrapper): Delete.
4202 2014-07-14 Pedro Alves <palves@redhat.com>
4205 * top.c: Include "inf-loop.h".
4206 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4208 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4210 (gdb_readline_wrapper): Store whether the target is async, and
4213 2014-07-14 Pedro Alves <palves@redhat.com>
4216 * top.c (gdb_readline_wrapper_line): Tweak comment.
4217 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4218 the input handler callback.
4220 2014-07-14 Pedro Alves <palves@redhat.com>
4223 * main.c: Include event-top.h.
4224 (handle_command_errors): New function.
4225 (catch_command_errors, catch_command_errors_const): Use it.
4227 2014-07-14 Pedro Alves <palves@redhat.com>
4229 * exceptions.c (catch_command_errors, catch_command_errors_const):
4231 * exceptions.h (catch_command_errors_ftype)
4232 (catch_command_errors_const_ftype): Moved to main.c.
4233 (catch_command_errors, catch_command_errors_const): Delete
4235 * main.c (catch_command_errors_ftype)
4236 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4237 (catch_command_errors, catch_command_errors_const)): Moved here
4238 from exceptions.c and make static.
4240 2014-07-14 Pedro Alves <palves@redhat.com>
4242 * exceptions.c (print_any_exception): Delete.
4243 (catch_exceptions_with_msg): Use exception_print instead of
4244 print_any_exception.
4245 (catch_errors): Use exception_fprintf instead of
4246 print_any_exception.
4247 (catch_command_errors, catch_command_errors_const): Use
4248 exception_print instead of print_any_exception.
4250 2014-07-14 Pedro Alves <palves@redhat.com>
4252 * infcall.c (run_inferior_call): Set 'sync_execution' while
4253 running the inferior call.
4255 2014-07-14 Pedro Alves <palves@redhat.com>
4257 * value.c (value_contents_equal): Delete function.
4258 * value.h (value_contents_equal): Delete declaration.
4260 2014-07-14 Tom Tromey <tromey@redhat.com>
4263 * gdbtypes.c (is_dynamic_type_internal): New function, from
4265 (is_dynamic_type): Rewrite.
4266 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4267 (resolve_dynamic_struct): Likewise.
4268 (resolve_dynamic_type_internal): New function, from
4269 resolve_dynamic_type.
4270 (resolve_dynamic_type): Rewrite.
4272 2014-07-14 Tom Tromey <tromey@redhat.com>
4274 * target.c (target_require_runnable): Also check record_stratum.
4277 2014-07-11 Yao Qi <yao@codesourcery.com>
4279 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4280 thumb_instruction_restores_sp return true.
4282 2014-07-11 Yao Qi <yao@codesourcery.com>
4284 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4285 (thumb_in_function_epilogue_p): Call
4286 thumb_instruction_restores_sp.
4288 2014-07-11 Yao Qi <yao@codesourcery.com>
4290 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4292 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4294 2014-07-11 Gary Benson <gbenson@redhat.com>
4296 * amd64-linux-nat.c (gdbcore.h): Remove include.
4297 (regset.h): Likewise.
4298 (nat/linux-btrace.h): Likewise.
4299 (btrace.h): Likewise.
4300 (gdb_assert.h): Likewise.
4301 (string.h): Likewise.
4302 (sys/uio.h): Likewise.
4303 (sys/debugreg.h): Likewise.
4304 (sys/syscall.h): Likewise.
4305 (sys/procfs.h): Likewise.
4306 (sys/user.h): Likewise.
4307 (asm/ptrace.h): Likewise.
4308 (i386-nat.h): Likewise.
4309 * i386-linux-nat.c (i386-nat.h): Likewise.
4310 (regset.h): Likewise.
4311 (target.h): Likewise.
4312 (linux-nat.h): Likewise.
4313 (nat/linux-btrace.h): Likewise.
4314 (btrace.h): Likewise.
4315 (gdb_assert.h): Likewise.
4316 (string.h): Likewise.
4317 (sys/uio.h): Likewise.
4318 (sys/user.h): Likewise.
4319 (sys/procfs.h): Likewise.
4320 (sys/reg.h): Likewise.
4321 (sys/debugreg.h): Likewise.
4322 (ORIG_EAX): Remove definition.
4324 2014-07-11 Gary Benson <gbenson@redhat.com>
4326 * i386-linux-nat.h: New file.
4327 * x86-linux-nat.h: Likewise.
4328 * x86-linux-nat.c: Likewise.
4329 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4330 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4331 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4332 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4333 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4334 (PTRACE_SETREGSET): Likewise.
4335 (arch_lwp_info): Now in x86-linux-nat.c.
4336 (have_ptrace_getregset): Now in x86-linux-nat.h.
4337 (x86_linux_dr_get): Now in x86-linux-nat.c.
4338 (x86_linux_dr_set): Likewise.
4339 (x86_linux_dr_get_addr): Likewise.
4340 (x86_linux_dr_get_control): Likewise.
4341 (x86_linux_dr_get_status): Likewise.
4342 (update_debug_registers_callback): Likewise.
4343 (x86_linux_dr_set_control): Likewise.
4344 (x86_linux_dr_set_addr): Likewise.
4345 (x86_linux_prepare_to_resume): Likewise.
4346 (x86_linux_new_thread): Likewise.
4347 (x86_linux_new_fork): Likewise.
4348 (x86_linux_get_thread_area): Likewise.
4349 (super_post_startup_inferior): Likewise.
4350 (x86_linux_child_post_startup_inferior): Likewise.
4351 (AMD64_LINUX_USER64_CS): Likewise.
4352 (AMD64_LINUX_X32_DS): Likewise.
4353 (x86_linux_read_description): Likewise.
4354 (x86_linux_enable_btrace): Likewise.
4355 (x86_linux_disable_btrace): Likewise.
4356 (x86_linux_teardown_btrace): Likewise.
4357 (x86_linux_read_btrace): Likewise.
4358 (x86_linux_create_target): Likewise.
4359 (x86_linux_add_target): Likewise.
4360 * i386-linux-nat.c (x86-linux-nat.h): New include.
4361 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4362 (PTRACE_SETREGSET): Likewise.
4363 (arch_lwp_info): Now in x86-linux-nat.c.
4364 (have_ptrace_getregset): Now in x86-linux-nat.h.
4365 (x86_linux_dr_get): Now in x86-linux-nat.c.
4366 (x86_linux_dr_set): Likewise.
4367 (x86_linux_dr_get_addr): Likewise.
4368 (x86_linux_dr_get_control): Likewise.
4369 (x86_linux_dr_get_status): Likewise.
4370 (update_debug_registers_callback): Likewise.
4371 (x86_linux_dr_set_control): Likewise.
4372 (x86_linux_dr_set_addr): Likewise.
4373 (x86_linux_prepare_to_resume): Likewise.
4374 (x86_linux_new_thread): Likewise.
4375 (x86_linux_new_fork): Likewise.
4376 (x86_linux_get_thread_area): Likewise.
4377 (super_post_startup_inferior): Likewise.
4378 (x86_linux_child_post_startup_inferior): Likewise.
4379 (AMD64_LINUX_USER64_CS): Likewise.
4380 (AMD64_LINUX_X32_DS): Likewise.
4381 (x86_linux_read_description): Likewise.
4382 (x86_linux_enable_btrace): Likewise.
4383 (x86_linux_disable_btrace): Likewise.
4384 (x86_linux_teardown_btrace): Likewise.
4385 (x86_linux_read_btrace): Likewise.
4386 (x86_linux_create_target): Likewise.
4387 (x86_linux_add_target): Likewise.
4389 2014-07-11 Gary Benson <gbenson@redhat.com>
4391 * amd64-linux-nat.c: Comment and whitespace changes.
4392 * i386-linux-nat.c: Comment and whitespace changes.
4394 2014-07-11 Gary Benson <gbenson@redhat.com>
4396 * amd64-linux-nat.c (x86_linux_create_target): New function.
4397 (x86_linux_add_target): Likewise.
4398 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4399 * i386-linux-nat.c (x86_linux_create_target): New function.
4400 (x86_linux_add_target): Likewise.
4401 (_initialize_i386_linux_nat): Delegate to the above new functions.
4403 2014-07-11 Gary Benson <gbenson@redhat.com>
4405 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4406 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4407 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4408 (ps_get_thread_area): Delegate to the above.
4410 2014-07-11 Gary Benson <gbenson@redhat.com>
4412 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4413 x86_linux_read_description. All uses updated. amd64-specific
4414 code conditionalized. Conditionalized i386-specific code added.
4415 Redundant cast removed.
4416 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4417 x86_linux_read_description. All uses updated. i386-specific
4418 code conditionalized. Conditionalized amd64-specific code added.
4419 One sizeof replaced with the actual type it is describing.
4421 2014-07-11 Gary Benson <gbenson@redhat.com>
4423 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4424 x86_linux_dr_get. All uses updated.
4425 (amd64_linux_dr_set): Renamed to
4426 x86_linux_dr_set. All uses updated.
4427 (amd64_linux_dr_get_addr): Renamed to
4428 x86_linux_dr_get_addr. All uses updated.
4429 (amd64_linux_dr_get_control): Renamed to
4430 x86_linux_dr_get_control. All uses updated.
4431 (amd64_linux_dr_get_status): Renamed to
4432 x86_linux_dr_get_status. All uses updated.
4433 (amd64_linux_dr_set_control): Renamed to
4434 x86_linux_dr_set_control. All uses updated.
4435 (amd64_linux_dr_set_addr): Renamed to
4436 x86_linux_dr_set_addr. All uses updated.
4437 (amd64_linux_prepare_to_resume): Renamed to
4438 x86_linux_prepare_to_resume. All uses updated.
4439 (amd64_linux_new_thread): Renamed to
4440 x86_linux_new_thread. All uses updated.
4441 (amd64_linux_new_fork): Renamed to
4442 x86_linux_new_fork. All uses updated.
4443 (amd64_linux_child_post_startup_inferior): Renamed to
4444 x86_linux_child_post_startup_inferior. All uses updated.
4445 (amd64_linux_enable_btrace): Renamed to
4446 x86_linux_enable_btrace. All uses updated.
4447 (amd64_linux_disable_btrace): Renamed to
4448 x86_linux_disable_btrace. All uses updated.
4449 (amd64_linux_teardown_btrace): Renamed to
4450 x86_linux_teardown_btrace. All uses updated.
4451 (amd64_linux_read_btrace): Renamed to
4452 x86_linux_read_btrace. All uses updated.
4453 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4454 x86_linux_dr_get. All uses updated.
4455 (i386_linux_dr_set): Renamed to
4456 x86_linux_dr_set. All uses updated.
4457 (i386_linux_dr_get_addr): Renamed to
4458 x86_linux_dr_get_addr. All uses updated.
4459 (i386_linux_dr_get_control): Renamed to
4460 x86_linux_dr_get_control. All uses updated.
4461 (i386_linux_dr_get_status): Renamed to
4462 x86_linux_dr_get_status. All uses updated.
4463 (i386_linux_dr_set_control): Renamed to
4464 x86_linux_dr_set_control. All uses updated.
4465 (i386_linux_dr_set_addr): Renamed to
4466 x86_linux_dr_set_addr. All uses updated.
4467 (i386_linux_prepare_to_resume): Renamed to
4468 x86_linux_prepare_to_resume. All uses updated.
4469 (i386_linux_new_thread): Renamed to
4470 x86_linux_new_thread. All uses updated.
4471 (i386_linux_new_fork): Renamed to
4472 x86_linux_new_fork. All uses updated.
4473 (i386_linux_child_post_startup_inferior): Renamed to
4474 x86_linux_child_post_startup_inferior. All uses updated.
4475 (i386_linux_enable_btrace): Renamed to
4476 x86_linux_enable_btrace. All uses updated.
4477 (i386_linux_disable_btrace): Renamed to
4478 x86_linux_disable_btrace. All uses updated.
4479 (i386_linux_teardown_btrace): Renamed to
4480 x86_linux_teardown_btrace. All uses updated.
4481 (i386_linux_read_btrace): Renamed to
4482 x86_linux_read_btrace. All uses updated.
4484 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4486 * remote.c (extended_remote_post_attach): New function.
4487 (init_extended_remote_ops): Install it as to_post_attach method.
4489 2014-07-09 Pedro Alves <palves@redhat.com>
4491 * infcmd.c (attach_command_post_wait): Don't call
4492 target_terminal_inferior here.
4493 (attach_command): Call it here instead.
4495 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4497 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4499 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4500 from varobj.c, with additional checks.
4501 (c_varobj_ops): Fill in is_path_expr_parent field.
4502 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4503 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4505 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4507 (varobj_default_is_path_expr_parent): New function.
4508 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4509 (varobj_default_is_path_expr_parent): Declare new function.
4511 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4513 * infcmd.c (finish_backward): Turn internal error into normal error.
4515 2014-07-07 Pedro Alves <palves@redhat.com>
4518 * remote.c (async_handle_remote_sigint)
4519 (async_handle_remote_sigint_twice): Call
4520 gdb_call_async_signal_handler instead of
4521 mark_async_signal_handler.
4523 2014-07-07 Tom Tromey <tromey@redhat.com>
4525 * target-delegates.c: Rebuild.
4526 * target.c (target_info_record): Remove.
4527 * record.c (info_record_command): Unconditionally call
4529 * target.h (struct target_ops) <to_info_record>: Use
4530 TARGET_DEFAULT_IGNORE.
4531 (target_info_record): Remove.
4533 2014-07-07 Tom Tromey <tromey@redhat.com>
4535 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4536 TARGET_DEFAULT_NORETURN.
4537 * target.c (generic_tls_error): New function.
4538 (target_translate_tls_address): Don't search target stack.
4539 * target-delegates.c: Rebuild.
4540 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4542 * linux-thread-db.c (thread_db_get_thread_local_address):
4543 Unconditionally call beneath target.
4545 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4547 * cli/cli-logging.c (pop_output_files): Assign targerr to
4550 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4552 * MAINTAINERS (Write After Approval): Update my email address.
4554 2014-07-02 Gary Benson <gbenson@redhat.com>
4556 * proc-service.c (ps_xfer_memory): Update comment.
4557 (ps_pstop): Remove unused function.
4558 (ps_pcontinue): Likewise.
4559 (ps_lstop): Likewise.
4560 (ps_lcontinue): Likewise.
4561 (ps_lgetxregsize): Likewise.
4562 (ps_lgetxregs): Likewise.
4563 (ps_lsetxregs): Likewise.
4564 (ps_plog): Likewise.
4565 (ps_ptread): Likewise.
4566 (ps_ptwrite): Likewise.
4568 2014-07-01 Mark Wielaard <mjw@redhat.com>
4570 * dwarf2read.c (add_array_cv_type): New function.
4571 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4572 (read_tag_volatile_type): Likewise.
4574 2014-07-01 Tom Tromey <tromey@redhat.com>
4576 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4577 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4578 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4579 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4580 * command.h (cmd_cfunc_ftype): Move earlier.
4581 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4582 (add_com, add_info): Use cmd_cfunc_ftype.
4584 2014-06-30 Tom Tromey <tromey@redhat.com>
4586 * symtab.c (operator_chars): Make parameters and return type
4588 (file_matches): Make "files" const.
4589 (struct search_symbols_data) <files>: Now const.
4590 (search_symbols): Make "regexp" and "files" parameters const.
4592 (symtab_symbol_info): Remove cast.
4593 (rbreak_command): Update.
4594 * symtab.h (search_symbols): Update.
4596 2014-06-27 Yao Qi <yao@codesourcery.com>
4598 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4599 Change parameter type to 'struct thread_info *'. Caller
4601 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4603 * dummy-frame.c (struct dummy_frame_id): New.
4604 (dummy_frame_id_eq): New function.
4605 (struct dummy_frame) <id>: Change its type to 'struct
4607 (dummy_frame_push): Add parameter ptid and save it in
4609 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4611 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4613 (lookup_dummy_frame): Change parameter type to 'struct
4614 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4615 instead of frame_id_eq.
4616 (dummy_frame_pop): Add parameter ptid. Callers updated.
4617 Update comments. Compose dummy_frame_id and pass it to
4619 (dummy_frame_discard): Add parameter ptid.
4620 (dummy_frame_sniffer): Compose dummy_frame_id and call
4621 dummy_frame_id_eq instead of frame_id_eq.
4622 (fprint_dummy_frames): Print ptid.
4623 * dummy-frame.h: Remove comments.
4624 (dummy_frame_push): Add ptid in declaration.
4625 (dummy_frame_pop, dummy_frame_discard): Likewise.
4627 2014-06-26 Tom Tromey <tromey@redhat.com>
4629 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4630 * command.h (error_no_arg): Update.
4632 2014-06-26 Tom Tromey <tromey@redhat.com>
4634 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4635 (do_show_command): Make "arg" const.
4636 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4638 2014-06-26 Tom Tromey <tromey@redhat.com>
4640 * record-full.c (record_full_get_bookmark): Make "args" const.
4641 (record_full_goto_bookmark): Make "raw_bookmark" const.
4642 * record.c (record_goto): New function.
4643 (cmd_record_goto): Use it. Now static.
4644 * record.h (record_goto): Declare.
4645 (cmd_record_goto): Remove declaration.
4646 * target-delegates.c: Rebuild.
4647 * target.h (struct target_ops) <to_get_bookmark,
4648 to_goto_bookmark>: Make parameter const.
4650 2014-06-26 Tom Tromey <tromey@redhat.com>
4652 * defs.h (generic_load): Update.
4653 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4654 * monitor.c (monitor_load): Make "args" const.
4655 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4656 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4658 (mips_load): Make "file" const.
4659 * remote-sim.c (gdbsim_load): Make "args" const.
4660 * remote.c (remote_load): Make "name" const.
4661 * symfile.c (generic_load): Make "args" const.
4662 * target-delegates.c: Rebuild.
4663 * target.c (target_load): Make "arg" const.
4664 (debug_to_load): Make "args" const.
4665 * target.h (struct target_ops) <to_load>: Make parameter const.
4666 (target_load): Update.
4668 2014-06-26 Tom Tromey <tromey@redhat.com>
4671 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4672 (dwarf2_physname, read_partial_die)
4673 (guess_partial_die_structure_name, fixup_partial_die)
4674 (guess_full_die_structure_name, anonymous_struct_prefix)
4675 (dwarf2_name): Use per-BFD obstack.
4677 2014-06-26 Yao Qi <yao@codesourcery.com>
4679 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4680 dummyframe and this_id into inner block below.
4682 2014-06-26 Yao Qi <yao@codesourcery.com>
4684 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4685 with "signal_pass[0]" in the initialization of signal_pass.
4687 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4689 * record-btrace.c (record_btrace_generating_corefile)
4690 (record_btrace_prepare_to_generate_core)
4691 (record_btrace_done_generating_core): New.
4692 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4693 (record_btrace_store_registers, record_btrace_prepare_to_store):
4694 Forward request when generating a core file.
4695 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4696 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4697 to_done_generating_core.
4699 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4701 * target.h (target_ops) <to_prepare_to_generate_core>
4702 <to_done_generating_core>: New.
4703 (target_prepare_to_generate_core, target_done_generating_core): New.
4704 * target.c (target_prepare_to_generate_core)
4705 (target_done_generating_core): New.
4706 * target-delegates.c: Regenerate.
4707 * gcore.c: (write_gcore_file): Rename to ...
4708 (write_gcore_file_1): ...this.
4709 (write_gcore_file): Call target_prepare_to_generate_core
4710 and target_done_generating_core.
4712 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4714 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4715 * gcore.c (write_gcore_file): Free memory returned from
4716 make_corefile_notes.
4717 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4718 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4720 2014-06-24 Yao Qi <yao@codesourcery.com>
4722 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4723 (arm_linux_init_abi): Set skip_trampoline_code with
4724 gdbarch_skip_trampoline_code instead of
4725 find_solib_trampoline_target.
4727 2014-06-24 Yao Qi <yao@codesourcery.com>
4729 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4730 arm_skip_bx_reg returns non-zero.
4732 2014-06-24 Yao Qi <yao@codesourcery.com>
4734 * arm-tdep.c (arm_skip_bx_reg): New function.
4735 (arm_skip_stub): Call arm_skip_bx_reg.
4737 2014-06-23 Don Breazeal <donb@codesourcery.com>
4739 * MAINTAINERS: Add myself as write-after-approval maintainer.
4741 2014-06-23 Pedro Alves <palves@redhat.com>
4743 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4744 DR_CONTROL before setting DR0..DR3.
4745 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4746 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4747 bits of DR_CONTROL related to the debug register slot being
4748 disabled. If all slots are vacant, clear local slowdown as well,
4749 and assert DR_CONTROL is 0.
4751 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4753 * python/lib/gdb/command/xmethods.py
4754 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4755 current progspace only if the string "progspace" matches LOCUS_RE.
4757 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4759 Fix --with-system-readline with readline-6.3 patch 5.
4760 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4761 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4764 2014-06-20 Tom Tromey <tromey@redhat.com>
4766 * dwarf2read.c (dw2_get_real_path): Use correct type in
4768 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4770 2014-06-20 Gary Benson <gbenson@redhat.com>
4772 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4773 * common/glibc_thread_db.h: Likewise.
4774 * common/i386-cpuid.h: Likewise.
4775 * common/i386-gcc-cpuid.h: Likewise.
4776 * common/linux-btrace.h: Likewise.
4777 * common/linux-osdata.h: Likewise.
4778 * common/linux-procfs.h: Likewise.
4779 * common/linux-ptrace.h: Likewise.
4780 * common/mips-linux-watch.h: Likewise.
4781 * common/linux-btrace.c: Moved to nat.
4782 * common/linux-osdata.c: Likewise.
4783 * common/linux-procfs.c: Likewise.
4784 * common/linux-ptrace.c: Likewise.
4785 * common/mips-linux-watch.c: Likewise.
4786 * nat/gdb_thread_db.h: Moved from common.
4787 * nat/glibc_thread_db.h: Likewise.
4788 * nat/i386-cpuid.h: Likewise.
4789 * nat/i386-gcc-cpuid.h: Likewise.
4790 * nat/linux-btrace.c: Likewise.
4791 * nat/linux-btrace.h: Likewise.
4792 * nat/linux-osdata.c: Likewise.
4793 * nat/linux-osdata.h: Likewise.
4794 * nat/linux-procfs.c: Likewise.
4795 * nat/linux-procfs.h: Likewise.
4796 * nat/linux-ptrace.c: Likewise.
4797 * nat/linux-ptrace.h: Likewise.
4798 * nat/mips-linux-watch.c: Likewise.
4799 * nat/mips-linux-watch.h: Likewise.
4800 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4801 (object file files): Reordered.
4802 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4803 of glibc_thread_db.h.
4805 2014-06-20 Gary Benson <gbenson@redhat.com>
4807 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4808 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4809 (i386_dr_low): Likewise.
4810 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4811 (i386_dr_low_set_addr): Likewise.
4812 (i386_dr_low_get_addr): Likewise.
4813 (i386_dr_low_can_set_control): Likewise.
4814 (i386_dr_low_set_control): Likewise.
4815 (i386_dr_low_get_control): Likewise.
4816 (i386_dr_low_get_status): Likewise.
4817 (i386_get_debug_register_length): Likewise.
4818 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4819 (i386_dr_low): Likewise.
4820 * nat/i386-dregs.c (i386-low.h): Remove include.
4821 (i386-nat.h): Likewise.
4822 (nat/i386-dregs.h): New include.
4823 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4824 (i386_dr_low_set_addr): Likewise.
4825 (i386_dr_low_get_addr): Likewise.
4826 (i386_dr_low_can_set_control): Likewise.
4827 (i386_dr_low_set_control): Likewise.
4828 (i386_dr_low_get_control): Likewise.
4829 (i386_dr_low_get_status): Likewise.
4830 (i386_get_debug_register_length): Likewise.
4831 (debug_hw_points): Likewise.
4833 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4835 * Makefile.in (SFILES): Add d-exp.y.
4836 (YYFILES): Add d-exp.c.
4837 (YYOBJ): Add d-exp.o.
4838 (local-maintainer-clean): Delete d-exp.c.
4839 * d-exp.y: New file.
4840 * d-lang.h (d_parse): New declaration.
4841 (d_error): New declaration.
4842 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4843 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4844 PREC_ORDER operators.
4845 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4847 2014-06-19 Yao Qi <yao@codesourcery.com>
4849 * gdbthread.h (any_running): Remove the declaration.
4850 * thread.c (any_running): Remove.
4852 2014-06-19 Yao Qi <yao@codesourcery.com>
4854 * gdbthread.h (struct thread_info) <state>: Change its type to
4855 'enum thread_state'. Update comments.
4857 2014-06-19 Pedro Alves <palves@redhat.com>
4859 * gdbthread.h (ALL_THREADS): Delete.
4860 (ALL_NON_EXITED_THREADS): New macro.
4861 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4862 instead of ALL_THREADS.
4863 * infrun.c (find_thread_needs_step_over)
4864 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4865 instead of ALL_THREADS.
4866 * record-btrace.c (record_btrace_open)
4867 (record_btrace_stop_recording, record_btrace_close)
4868 (record_btrace_is_replaying, record_btrace_resume)
4869 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4870 * remote.c (append_pending_thread_resumptions): Likewise.
4871 * thread.c (thread_apply_all_command): Likewise.
4873 2014-06-19 Gary Benson <gbenson@redhat.com>
4875 * i386-nat.c (i386_stopped_by_watchpoint):
4876 Use i386_dr_stopped_by_watchpoint.
4877 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4878 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4880 2014-06-19 Gary Benson <gbenson@redhat.com>
4882 * nat/i386-dregs.c: New file.
4883 * Makefile.in (i386-dregs.o): New rule.
4884 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4885 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4886 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4887 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4888 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4889 * config/i386/go32.mh (NATDEPFILES): Likewise.
4890 * config/i386/linux.mh (NATDEPFILES): Likewise.
4891 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4892 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4893 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4894 * i386-nat.h (debug_hw_points): New declaration.
4895 * i386-nat.c (breakpoint.h): Remove include.
4896 (command.h): Likewise.
4897 (target.h): Likewise.
4898 (gdb_assert.h): Likewise.
4899 (debug_hw_points): Made nonstatic.
4900 (debug_printf): Now in i386-dregs.c.
4901 (TARGET_HAS_DR_LEN_8): Likewise.
4902 (DR_CONTROL_SHIFT): Likewise.
4903 (DR_CONTROL_SIZE): Likewise.
4904 (DR_RW_EXECUTE): Likewise.
4905 (DR_RW_WRITE): Likewise.
4906 (DR_RW_READ): Likewise.
4907 (DR_RW_IORW): Likewise.
4908 (DR_LEN_1): Likewise.
4909 (DR_LEN_2): Likewise.
4910 (DR_LEN_4): Likewise.
4911 (DR_LEN_8): Likewise.
4912 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4913 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4914 (DR_ENABLE_SIZE): Likewise.
4915 (DR_LOCAL_SLOWDOWN): Likewise.
4916 (DR_GLOBAL_SLOWDOWN): Likewise.
4917 (DR_CONTROL_RESERVED): Likewise.
4918 (I386_DR_CONTROL_MASK): Likewise.
4919 (I386_DR_VACANT): Likewise.
4920 (I386_DR_LOCAL_ENABLE): Likewise.
4921 (I386_DR_GLOBAL_ENABLE): Likewise.
4922 (I386_DR_DISABLE): Likewise.
4923 (I386_DR_SET_RW_LEN): Likewise.
4924 (I386_DR_GET_RW_LEN): Likewise.
4925 (I386_DR_WATCH_HIT): Likewise.
4926 (i386_wp_op_t): Likewise.
4927 (i386_show_dr): Likewise.
4928 (i386_length_and_rw_bits): Likewise.
4929 (i386_insert_aligned_watchpoint): Likewise.
4930 (i386_remove_aligned_watchpoint): Likewise.
4931 (i386_handle_nonaligned_watchpoint): Likewise.
4932 (i386_update_inferior_debug_regs): Likewise.
4933 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4934 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4935 (i386_region_ok_for_watchpoint):
4936 Use i386_dr_region_ok_for_watchpoint.
4937 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4939 2014-06-19 Gary Benson <gbenson@redhat.com>
4941 * i386-nat.c (i386_insert_hw_breakpoint): Use
4942 i386_insert_watchpoint.
4943 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4945 2014-06-19 Gary Benson <gbenson@redhat.com>
4947 * i386-nat.c (i386_dr_show): Renamed to
4948 i386_show_dr and made static. All uses updated.
4949 (i386_dr_length_and_rw_bits): Renamed to
4950 i386_length_and_rw_bits and made static.
4952 (i386_dr_insert_aligned_watchpoint): Renamed to
4953 i386_insert_aligned_watchpoint and made static.
4955 (i386_dr_remove_aligned_watchpoint): Renamed to
4956 i386_remove_aligned_watchpoint and made static.
4958 (i386_dr_update_inferior_debug_regs): Renamed to
4959 i386_update_inferior_debug_regs and made static.
4961 * nat/i386-dregs.h (i386_dr_show): Removed.
4962 (i386_dr_length_and_rw_bits): Likewise.
4963 (i386_dr_insert_aligned_watchpoint): Likewise.
4964 (i386_dr_remove_aligned_watchpoint): Likewise.
4965 (i386_dr_update_inferior_debug_regs): Likewise.
4967 2014-06-19 Gary Benson <gbenson@redhat.com>
4969 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4970 * configure: Regenerate.
4971 * config.in: Likewise.
4972 * main.c (signal.h): New include.
4973 (setup_alternate_signal_stack): New function.
4974 (captured_main): Call the above.
4975 * cp-support.c (signal.h): New include.
4976 (catch_demangler_crashes): New flag.
4977 (SIGJMP_BUF): New define.
4978 (SIGSETJMP): Likewise.
4979 (SIGLONGJMP): Likewise.
4980 (gdb_demangle_jmp_buf): New static global.
4981 (gdb_demangle_attempt_core_dump): Likewise.
4982 (gdb_demangle_signal_handler): New function.
4983 (gdb_demangle): If catch_demangler_crashes is set, install the
4984 above signal handler before calling bfd_demangle, and restore
4985 the original signal handler afterwards. Display the offending
4986 symbol and call demangler_warning the first time a segmentation
4988 (_initialize_cp_support): New maint set/show command.
4990 2014-06-19 Gary Benson <gbenson@redhat.com>
4992 * utils.h (resource_limit_kind): New enum.
4993 (can_dump_core): New declaration.
4994 (warn_cant_dump_core): Likewise.
4995 (dump_core): Likewise.
4996 * utils.c (dump_core): Made nonstatic. Added new
4997 parameter "limit_kind".
4998 (can_dump_core): Made nonstatic. Moved printing code to...
4999 (warn_cant_dump_core): New function.
5000 (can_dump_core_warn): Likewise.
5001 (internal_vproblem): Replace calls to can_dump_core with
5002 calls to can_dump_core_warn. Supply new argument to each.
5004 2014-06-19 Gary Benson <gbenson@redhat.com>
5006 * utils.h (demangler_vwarning): New declaration.
5007 (demangler_warning): Likewise.
5008 * utils.c (struct internal_problem)
5009 <user_settable_should_quit>: New field.
5010 <user_settable_should_dump_core>: Likewise
5011 (internal_error_problem): Add values for above new fields.
5012 (internal_warning_problem): Likewise.
5013 (demangler_warning_problem): New static global.
5014 (demangler_vwarning): New function.
5015 (demangler_warning): Likewise.
5016 (add_internal_problem_command): Selectively add commands.
5017 (_initialize_utils): New internal problem command.
5018 * maint.c (maintenance_demangler_warning): New function.
5019 (_initialize_maint_cmds): New command.
5021 2014-06-18 Tom Tromey <tromey@redhat.com>
5023 * f-valprint.c (info_common_command_for_block): Update.
5024 * symtab.h (struct general_symbol_info) <common_block>: Now
5027 2014-06-18 Tom Tromey <tromey@redhat.com>
5029 * symtab.h (struct symtab) <blockvector>: Now const.
5030 * ada-lang.c (ada_add_global_exceptions): Update.
5031 * buildsym.c (augment_type_symtab): Update.
5032 * dwarf2read.c (dw2_lookup_symbol): Update.
5033 * jit.c (finalize_symtab): Update.
5034 * jv-lang.c (add_class_symtab_symbol): Update.
5035 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5037 * objfiles.c (objfile_relocate1): Update.
5038 * psymtab.c (lookup_symbol_aux_psymtabs)
5039 (maintenance_check_psymtabs): Update.
5040 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5042 * spu-tdep.c (spu_catch_start): Update.
5043 * symmisc.c (dump_symtab_1): Update.
5044 * symtab.c (lookup_global_symbol_from_objfile)
5045 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5046 (basic_lookup_transparent_type_quick)
5047 (basic_lookup_transparent_type, find_pc_sect_symtab)
5048 (find_pc_sect_line, search_symbols): Update.
5049 * block.c (find_block_in_blockvector): Make "bl" const.
5050 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5052 (blockvector_contains_pc): Make "bv" const.
5053 (block_for_pc_sect): Update.
5054 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5055 (blockvector_contains_pc): Update.
5056 * breakpoint.c (resolve_sal_pc): Update.
5057 * inline-frame.c (block_starting_point_at): Update.
5059 2014-06-18 Tom Tromey <tromey@redhat.com>
5061 * completer.c (complete_line): Make "line_buffer" const.
5062 * completer.h (complete_line): Update.
5064 2014-06-18 Tom Tromey <tromey@redhat.com>
5066 * symtab.c (add_macro_name): Remove unneeded cast.
5068 2014-06-18 Tom Tromey <tromey@redhat.com>
5070 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5071 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5073 2014-06-18 Tom Tromey <tromey@redhat.com>
5075 * probe.c (info_probes_for_ops): Make "arg" const.
5076 * probe.h (info_probes_for_ops): Update.
5078 2014-06-18 Tom Tromey <tromey@redhat.com>
5080 * varobj.c (varobj_create): Update.
5081 * valops.c (value_of_this): Update.
5082 * tracepoint.c (add_local_symbols, scope_info): Update.
5083 * symtab.h (struct general_symbol_info) <block>: Now const.
5084 * symtab.c (skip_prologue_sal)
5085 (default_make_symbol_completion_list_break_on)
5086 (skip_prologue_using_sal): Update.
5087 * stack.h (iterate_over_block_locals)
5088 (iterate_over_block_local_vars): Update.
5089 * stack.c (print_frame_args): Update.
5090 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5092 (get_selected_block): Make return type const.
5093 * python/py-frame.c (frapy_block): Update.
5094 * python/py-block.c (gdbpy_block_for_pc): Update.
5095 * p-exp.y (%union) <bval>: Now const.
5096 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5097 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5098 * m2-exp.y (%union) <bval>: Now const.
5099 * linespec.c (get_current_search_block): Make return type const.
5100 (create_sals_line_offset, find_label_symbols): Update.
5101 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5103 (block_starting_point_at): Make "block" const.
5104 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5105 (check_exception_resume): Update.
5106 * guile/scm-frame.c (gdbscm_frame_block): Update.
5107 * guile/scm-block.c (gdbscm_lookup_block): Update.
5108 * frame.h (get_frame_block): Update.
5109 (get_selected_block): Make return type const.
5110 * frame.c (frame_id_inner): Update.
5111 * f-valprint.c (info_common_command_for_block)
5112 (info_common_command): Update.
5113 * dwarf2loc.c (dwarf2_find_location_expression)
5114 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5115 (locexpr_describe_location_piece): Update.
5116 * c-exp.y (%union) <bval>: Now const.
5117 * breakpoint.c (resolve_sal_pc): Update.
5118 * blockframe.c (get_frame_block):Make return type const.
5119 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5120 (block_innermost_frame): Update.
5121 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5122 (block_for_pc, block_for_pc_sect): Update.
5123 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5125 (block_for_pc_sect, block_for_pc): Make return type const.
5126 * ax-gdb.c (gen_expr): Update.
5127 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5128 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5129 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5130 (ada_read_var_value): Update.
5131 * ada-exp.y (struct name_info) <block>: Now const.
5133 (block_lookup): Constify.
5135 2014-06-18 Gary Benson <gbenson@redhat.com>
5137 * nat/i386-dregs.h: New file.
5138 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5139 * i386-nat.h (i386-dregs.h): New include.
5140 (DR_FIRSTADDR): Now in i386-dregs.h.
5141 (DR_LASTADDR): Likewise.
5142 (DR_NADDR): Likewise.
5143 (DR_STATUS): Likewise.
5144 (DR_CONTROL): Likewise.
5145 (i386_debug_reg_state): Likewise.
5146 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5148 2014-06-18 Don Breazeal <donb@codesourcery.com>
5150 * breakpoint.c (set_longjmp_breakpoint): Call
5151 momentary_breakpoint_from_master with additional argument.
5152 (set_longjmp_breakpoint_for_call_dummy): Call
5153 momentary_breakpoint_from_master with additional argument.
5154 (set_std_terminate_breakpoint): Call
5155 momentary_breakpoint_from_master with additional argument.
5156 (momentary_breakpoint_from_master): Add argument to function
5157 definition and use it to initialize structure member flag.
5158 (clone_momentary_breakpoint): Call
5159 momentary_breakpoint_from_master with additional argument.
5160 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5161 member flags set in momentary_breakpoint_from_master.
5163 2014-06-18 Gary Benson <gbenson@redhat.com>
5165 * i386-nat.c (i386_show_dr): Renamed to
5166 i386_dr_show and made nonstatic. All uses updated.
5167 (i386_length_and_rw_bits): Renamed to
5168 i386_dr_length_and_rw_bits and made nonstatic.
5170 (i386_insert_aligned_watchpoint): Renamed to
5171 i386_dr_insert_aligned_watchpoint and made nonstatic.
5173 (i386_remove_aligned_watchpoint): Renamed to
5174 i386_dr_remove_aligned_watchpoint and made nonstatic.
5176 (i386_update_inferior_debug_regs): Renamed to
5177 i386_dr_update_inferior_debug_regs and made nonstatic.
5180 2014-06-18 Gary Benson <gbenson@redhat.com>
5182 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5183 (i386_dr_low_can_set_control): Likewise.
5184 (i386_dr_low_set_addr): Likewise.
5185 (i386_dr_low_set_control): Likewise.
5186 (i386_dr_low_get_addr): Likewise.
5187 (i386_dr_low_get_status): Likewise.
5188 (i386_dr_low_get_control): Likewise.
5189 (i386_insert_aligned_watchpoint): Use new macros.
5190 (i386_update_inferior_debug_regs): Likewise.
5191 (i386_stopped_data_address): Likewise.
5193 2014-06-18 Gary Benson <gbenson@redhat.com>
5195 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5196 New parameter. All uses updated.
5198 2014-06-18 Gary Benson <gbenson@redhat.com>
5200 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5203 2014-06-18 Gary Benson <gbenson@redhat.com>
5205 * i386-nat.c (debug_printf): New macro.
5206 (i386_get_debug_register_length): Likewise.
5207 (TARGET_HAS_DR_LEN_8): Use above macro.
5208 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5209 and printf_unfiltered. Use phex to format values.
5211 2014-06-18 Gary Benson <gbenson@redhat.com>
5213 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5216 2014-06-18 Gary Benson <gbenson@redhat.com>
5218 * i386-nat.c: Comment changes.
5220 2014-06-18 Gary Benson <gbenson@redhat.com>
5222 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5224 2014-06-18 Gary Benson <gbenson@redhat.com>
5226 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5227 (i386_insert_aligned_watchpoint): Likewise.
5228 (i386_remove_aligned_watchpoint): Likewise.
5229 (i386_handle_nonaligned_watchpoint): Likewise.
5231 2014-06-18 Gary Benson <gbenson@redhat.com>
5233 * i386-nat.c: Whitespace changes.
5235 2014-06-17 Samuel Bronson <naesten@gmail.com>
5237 * MAINTAINERS: Update Roland McGrath's email address.
5238 Thanks to Sergio Durigan Junior for pointing out that he left
5239 Red Hat a while ago, and giving me a current address.
5241 2014-06-17 Tom Tromey <tromey@redhat.com>
5243 * utils.h (savestring): Remove declaration.
5245 2014-06-17 Tom Tromey <tromey@redhat.com>
5247 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5249 2014-06-16 Keith Seitz <keiths@redhat.com>
5252 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5253 to update the varobj if inferior_ptid is null_ptid.
5255 2014-06-16 Tom Tromey <tromey@redhat.com>
5257 * target.h (struct target_ops) <to_info_proc>: Make parameter
5259 (target_info_proc): Update.
5260 * target.c (target_info_proc): Make "args" const.
5261 * procfs.c (procfs_info_proc): Update.
5262 * linux-tdep.c (linux_info_proc): Update.
5263 (linux_core_info_proc_mappings): Make "args" const.
5264 (linux_core_info_proc): Update.
5265 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5266 * gdbarch.c: Rebuild.
5267 * gdbarch.h: Rebuild.
5268 * corelow.c (core_info_proc): Update.
5270 2014-06-16 Tom Tromey <tromey@redhat.com>
5272 * target.h (struct target_ops) <to_disconnect>: Make parameter
5274 (target_disconnect): Update.
5275 * target.c (target_disconnect): Make "args" const.
5276 * target-delegates.c: Rebuild.
5277 * remote.c (remote_disconnect): Update.
5278 * record.h (record_disconnect): Update.
5279 * record.c (record_disconnect): Update.
5280 * inf-child.c (inf_child_disconnect): Update.
5282 2014-06-16 Tom Tromey <tromey@redhat.com>
5284 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5285 * target.c (debug_to_rcmd, default_rcmd): Update.
5286 * target-delegates.c: Rebuild.
5287 * remote.c (remote_rcmd): Update.
5288 * monitor.c (monitor_rcmd): Update.
5290 2014-06-16 Pedro Alves <palves@redhat.com>
5292 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5293 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5294 have OBJF_SHARED set.
5295 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5296 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5297 instead of OBJF_USERLOADED.
5298 * objfiles.h (OBJF_SHARED): Update comment.
5299 (userloaded_objfile_contains_address_p): Rename to ...
5300 (shared_objfile_contains_address_p): ... this, and update
5302 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5304 (remove_symbol_file_command): Skip objfiles that don't have
5307 2014-06-16 Tom Tromey <tromey@redhat.com>
5309 * minsyms.h (prim_record_minimal_symbol)
5310 (prim_record_minimal_symbol_and_info): Update comments.
5312 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5314 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5315 or --without-guile, according to how GDB was built.
5317 2014-06-13 Tom Tromey <tromey@redhat.com>
5319 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5321 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5323 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5325 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5326 help_list.Pass all_commands, not -1, to help_list.
5327 * cli/cli-dump.c (dump_command, append_command)
5328 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5329 (binary_dump_command, binary_append_command): Pass all_commands,
5330 not -1, to help_list.
5331 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5333 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5335 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5337 * top.c (set_history): Pass all_commands, not -1, to help_list.
5338 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5339 all_commands, not -1, to help_list.
5340 * symfile.c (overlay_command): Pass all_commands, not -1, to
5342 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5344 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5346 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5348 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5349 not -1, to help_list.
5350 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5351 not -1, to help_list.
5352 * maint.c (maintenance_command, maintenance_info_command)
5353 (maintenance_print_command, maintenance_set_cmd): Pass
5354 all_commands, not -1, to help_list.
5355 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5357 * language.c (set_check): Pass all_commands, not -1, to help_list.
5358 * infcmd.c (unset_command): Pass all_commands, not -1, to
5360 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5362 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5364 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5366 * breakpoint.c (save_command): Pass all_commands, not -1, to
5368 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5369 all_commands, not -1, to help_list.
5371 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5373 * regcache.c (struct register_to_invalidate): New structure.
5374 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5376 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5378 2014-06-12 Yao Qi <yao@codesourcery.com>
5380 * varobj.c (varobj_get_num_children): Call
5381 varobj_is_dynamic_p.
5382 (varobj_list_children): Likewise.
5383 (varobj_update): Likewise. Update comments.
5385 2014-06-12 Yao Qi <yao@codesourcery.com>
5387 * varobj.c (varobj_pretty_printed_p): Rename to ...
5388 (varobj_is_dynamic_p): ... this. New function.
5389 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5390 (varobj_is_dynamic_p): Declare.
5391 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5392 (mi_print_value_p, varobj_update_one): Likewise.
5394 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5395 Yao Qi <yao@codesourcery.com>
5397 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5398 (varobj_get_iterator): Wrap up code for pretty-printer by
5399 "#if HAVE_PYTHON" and "#endif".
5400 (update_dynamic_varobj_children): Likewise.
5402 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5403 Yao Qi <yao@codesourcery.com>
5405 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5406 gdb_python_initialized is false. Move some code from varobj.c.
5407 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5408 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5409 (struct varobj_item): Moved to varobj-iter.h".
5410 (varobj_clear_saved_item): New function.
5411 (update_dynamic_varobj_children): Move python-related code to
5413 (free_variable): Call varobj_clear_saved_item and
5416 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5417 Yao Qi <yao@codesourcery.com>
5419 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5420 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5421 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5422 (py-varobj.o): New rule.
5423 * python/py-varobj.c: New file.
5424 * python/python-internal.h (py_varobj_get_iterator): Declare.
5425 * varobj-iter.h: New file.
5426 * varobj.c: Include "varobj-iter.h"
5427 (struct varobj) <child_iter>: Change its type from "PyObject *"
5428 to "struct varobj_iter *".
5429 <saved_item>: Likewise.
5430 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5431 [HAVE_PYTHON] (varobj_get_iterator): New function.
5432 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5433 python-specific code to python/py-varobj.c.
5434 (install_visualizer): Call varobj_iter_delete instead of
5436 * varobj.h (varobj_ensure_python_env): Declare.
5438 2014-06-12 Yao Qi <yao@codesourcery.com>
5440 * varobj.c (struct varobj_item): New structure.
5441 (create_child_with_value): Update declaration.
5442 (varobj_add_child): Replace arguments 'name' and 'value' with
5443 'item'. All callers updated.
5444 (install_dynamic_child): Likewise.
5445 (update_dynamic_varobj_children): Likewise.
5446 (varobj_add_child): Likewise.
5447 (create_child_with_value): Likewise.
5449 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5451 * NEWS: Create a new section for the next release branch.
5452 Rename the section of the current branch, now that it has
5455 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5457 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5458 * version.in: Bump version to 7.8.50.DATE-cvs.
5460 2014-06-11 Pedro Alves <palves@redhat.com>
5463 * ser-mingw.c (net_windows_socket_check_pending): New function.
5464 (net_windows_select_thread): Ignore spurious wakeups. Use
5465 net_windows_socket_check_pending.
5466 (net_windows_wait_handle): Check for pending events with
5467 ioctlsocket, through net_windows_socket_check_pending, instead of
5468 checking the socket's event.
5470 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5472 * python/python-internal.h (gdb_PyObject_GetAttrString)
5473 (gdb_PyObject_HasAttrString): New inline function definitions.
5474 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5475 char * of the second argument to PyObject_GetAttrString.
5477 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5479 * serial.c (serial_write): Fix index of character to be printed
5480 in call to serial_logchar when serial debug traces are enabled.
5482 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5484 * gdbtypes (resolve_dynamic_range): Add function description.
5486 2014-06-09 Pedro Alves <palves@redhat.com>
5488 * linux-nat.c (linux_child_follow_fork): Initialize status with
5489 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5490 inner block. Only pass the signal to PTRACE_DETACH if in pass
5493 2014-06-09 Gary Benson <gbenson@redhat.com>
5495 * common/signals.c (gdb_signal_from_host): Reorder to separate
5496 the always-available ANSI-standard signals from the signals that
5498 (do_gdb_signal_to_host): Likewise.
5499 * proc-events.c (signal_table): Likewise.
5501 2014-06-08 Hui Zhu <hui@codesourcery.com>
5503 * common/linux-ptrace.c (linux_disable_event_reporting): New
5505 * common/linux-ptrace.h (linux_disable_event_reporting): New
5507 * linux-nat.c (linux_child_follow_fork): Do a single step before
5510 2014-06-07 Keith Seitz <keiths@redhat.com>
5514 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5515 from symbol_matches_domain in symtab.c. All local callers
5516 of symbol_matches_domain updated.
5517 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5518 search STRUCT_DOMAIN.
5519 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5520 independently. standard_lookup will do that automatically.
5521 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5522 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5523 (cp_lookup_symbol_in_namespace): Likewise.
5524 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5525 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5526 may return a STRUCT_DOMAIN match.
5527 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5528 * cp-support.c: Include language.h.
5529 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5531 * psymtab.c (match_partial_symbol): Compare the requested
5532 domain with the symbol's domain directly.
5533 (lookup_partial_symbol): Likewise.
5534 * symtab.c (lookup_symbol_in_language): Explain when/why
5535 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5536 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5537 appropriate languages.
5538 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5539 and moved to ada-lang.c
5540 (lookup_block_symbol): Explain that this function only returns
5541 symbol matching the requested DOMAIN.
5542 Compare the requested domain with the symbol's domain directly.
5543 (iterate_over_symbols): Compare the requested domain with the
5544 symbol's domain directly.
5545 * symtab.h (symbol_matches_domain): Remove.
5547 2014-06-06 Doug Evans <xdje42@gmail.com>
5549 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5550 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5551 (gdbscm_guile_version_is_at_least): Declare.
5552 (gdbscm_scm_string_to_int): Declare.
5553 * guile/guile.c (gdbscm_guile_major_version): New global.
5554 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5555 (guile_datadir): New static global.
5556 (gdbscm_guile_data_directory): New function.
5557 (initialize_scheme_side): Update.
5558 (misc_guile_functions): Add guile-data-directory.
5559 (initialize_gdb_module): Fetch guile version number.
5560 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5561 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5562 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5563 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5565 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5566 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5567 * guile/scm-value.c (gdbscm_value_to_string): Only call
5568 scm_port_conversion_strategy if Guile version >= 2.0.6.
5570 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5572 * main.c (print_gdb_help): Add -q and --silent.
5574 2014-06-06 Gary Benson <gbenson@redhat.com>
5576 * common/signals.c: Remove preprocessor conditionals for
5577 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5578 SIGSEGV and SIGTERM.
5579 * proc-events.c: Likewise.
5581 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5583 * symfile.c (symfile_free_objfile): Remove restriction to
5585 * symfile-mem.c (symbol_file_add_from_memory): Call
5586 add_target_sections_of_objfile.
5588 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5590 * guile/scm-value.c (gdbscm_history_append_x): Use
5591 'vlscm_get_value_smob_arg_unsafe' instead of
5592 'vlscm_scm_to_value'.
5594 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5597 * utils.c (printchar): Don't escape at all if quoter is NUL.
5598 Update function documentation to clarify effect of parameter
5600 * remote.c (escape_buffer): Pass '\\' as the quoter to
5601 fputstrn_unfiltered.
5602 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5603 generate the output.
5604 (mi_solib_unloaded): Same.
5606 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5608 * development.sh: Delete.
5609 * Makefile.in (config.status): Adjust dependency on development.sh.
5610 * configure.ac: Adjust development.sh source call.
5611 * configure: Regenerate.
5613 2014-06-04 Doug Evans <xdje42@gmail.com>
5615 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5616 is_scheme_bkpt, spec.
5617 (bpscm_make_breakpoint_smob): Initialize new members.
5618 (gdbscm_create_breakpoint_x): Split into two ...
5619 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5620 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5621 (scheme_function breakpoint_functions): Update.
5622 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5623 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5624 register-breakpoint!.
5626 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5629 * mem-break.c (z_type_supported): Return zero if
5630 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5632 2014-06-04 Tom Tromey <tromey@redhat.com>
5634 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5635 value_from_contents_and_address_unresolved.
5636 (ada_template_to_fixed_record_type_1): Likewise.
5637 (ada_which_variant_applies): Likewise.
5638 * value.h (value_from_contents_and_address_unresolved): Declare.
5639 * value.c (value_from_contents_and_address_unresolved): New
5641 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5642 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5643 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5645 2014-06-04 Tom Tromey <tromey@redhat.com>
5647 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5649 2014-06-04 Tom Tromey <tromey@redhat.com>
5651 * procfs.c (procfs_attach): Make "args" const.
5652 * windows-nat.c (windows_attach): Make "args" const.
5653 * nto-procfs.c (procfs_attach): Make "args" const.
5654 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5655 * go32-nat.c (go32_attach): Make "args" const.
5656 * gnu-nat.c (gnu_attach): Make "args" const.
5657 * darwin-nat.c (darwin_attach): Make "args" const.
5658 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5659 * linux-nat.c (linux_nat_attach): Make "args" const.
5660 * remote.c (extended_remote_attach_1, extended_remote_attach):
5662 * target.h (struct target_ops) <to_attach>: Make "args" const.
5663 (find_default_attach): Likewise.
5664 * utils.c (parse_pid_to_attach): Make "args" const.
5665 * utils.h (parse_pid_to_attach): Update.
5667 2014-06-04 Tom Tromey <tromey@redhat.com>
5669 * target-delegates.c: Rebuild.
5670 * target.c (default_thread_address_space): New function.
5671 (target_thread_address_space): Simplify.
5672 * target.h (struct target_ops) <to_thread_address_space>: Add
5673 TARGET_DEFAULT_FUNC.
5675 2014-06-04 Doug Evans <xdje42@gmail.com>
5677 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5679 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5681 * record-btrace.c: Include event-loop.h and inf-loop.h.
5682 (record_btrace_resume_exec_dir)
5683 (record_btrace_async_inferior_event_handler)
5684 (record_btrace_handle_async_inferior_event): New.
5685 (record_btrace_open): Create async event handler.
5686 (record_btrace_close): Delete async event handler.
5687 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5688 Mark async event handler.
5689 (record_btrace_execution_direction): New.
5690 (init_record_btrace_ops): Initialize to_execution_direction.
5692 2014-06-03 Doug Evans <xdje42@gmail.com>
5694 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5695 (gdbscm_make_parameter): Ditto.
5697 2014-06-03 Doug Evans <dje@google.com>
5699 * exec.c (exec_close_1): Call clear_section_table instead of
5700 resize_section_table.
5701 (clear_section_table): New function.
5702 (resize_section_table): Make static. Rename arg num_added to
5704 * exec.h (clear_section_table): Declare.
5705 (resize_section_table): Delete.
5706 * progspace.c (release_program_space): Call clear_section_table
5707 instead of resize_section_table.
5709 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5711 * NEWS (Python Scripting): Add entry about the new xmethods
5714 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5716 * python/py-xmethods.c: New file.
5717 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5718 (objfpy_dealloc): XDECREF on the new xmethods field.
5719 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5721 (objfpy_get_xmethods): New function.
5722 (objfile_getset): New entry 'xmethods'.
5723 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5724 (pspy_dealloc): XDECREF on the new xmethods field.
5725 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5727 (pspy_get_xmethods): New function.
5728 (pspace_getset): New entry 'xmethods'.
5729 * python/python-internal.h: Add declarations for new functions.
5730 * python/python.c (_initialize_python): Invoke
5731 gdbpy_initialize_xmethods.
5732 * python/lib/gdb/__init__.py (xmethods): New
5734 * python/lib/gdb/xmethod.py: New file.
5735 * python/lib/gdb/command/xmethods.py: New file.
5737 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5739 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5740 best match method returned by find_overload_match is an xmethod.
5741 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5742 the best matching operator returned by find_overload_match is an
5744 * valops.c: #include "extension.h".
5745 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5746 Return void. The list of matching source methods is returned in
5747 "fn_list" and a vector of matching debug method workers is
5748 returned in "xm_worker_vec". Update all callers.
5749 (value_find_oload_method_list): Likewise.
5750 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5751 non-NULL, then the index of the best matching method in this
5752 vector is returned. Update all callers.
5753 (find_overload_match): Include xmethods while performing overload
5756 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5758 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5759 * extension-priv.h (struct extension_language_ops): Add the
5761 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5762 get_matching_xmethod_workers, get_xmethod_argtypes,
5763 invoke_xmethod, free_xmethod_worker,
5764 free_xmethod_worker_vec): New functions.
5765 * extension.h: #include "common/vec.h".
5766 New function declarations.
5767 (struct xmethod_worker): New struct.
5768 (VEC (xmethod_worker_ptr)): New vector type.
5769 (xmethod_worker_ptr): New typedef.
5770 (xmethod_worker_vec): Likewise.
5771 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5773 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5774 (struct builtin_type): New field "xmethod".
5775 * valarith.c (value_ptradd): Assert that the value argument is not
5777 * valops.c (value_must_coerce_to_target): Return 0 for
5778 lval_xcallable values.
5779 * value.c (struct value): New field XM_WORKER in the field
5781 (value_address, value_raw_address): Return 0 for lval_xcallable
5783 (set_value_address): Assert that the value is not an
5785 (value_free): Free the associated xmethod worker when freeing
5786 lval_xcallable values.
5787 (set_value_component_location): Assert that the WHOLE value is not
5789 (value_of_xmethod, call_xmethod): New functions.
5790 * value.h: Declare "struct xmethod_worker".
5791 Declare new functions value_of_xmethod, call_xmethod.
5793 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5794 Pedro Alves <palves@redhat.com>
5796 PR breakpoints/17000
5797 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5798 New function, extracted from software_breakpoint_inserted_here_p.
5799 (software_breakpoint_inserted_here_p): Replace factored out code
5800 by call to find_non_raw_software_breakpoint_inserted_here.
5801 (bp_target_info_copy_insertion_state): New function.
5802 (bkpt_insert_location): Handle the case of a single-step
5803 breakpoint already inserted at the same address.
5804 (bkpt_remove_location): Handle the case of a single-step
5805 breakpoint still inserted at the same address.
5806 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5807 breakpoint already inserted at the same address.
5808 (deprecated_remove_raw_breakpoint): Handle the case of a
5809 non-raw breakpoint still inserted at the same address.
5810 (find_single_step_breakpoint): New function, extracted from
5811 single_step_breakpoint_inserted_here_p.
5812 (find_single_step_breakpoint): New function,
5813 factored out from single_step_breakpoint_inserted_here_p.
5814 (single_step_breakpoint_inserted_here_p): Reimplement.
5816 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5818 Pushed by Joel Brobecker <brobecker@adacore.com>
5819 * source.c (show_substitute_path_command): Fix display of matching
5822 2014-06-03 Gary Benson <gbenson@redhat.com>
5824 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5826 2014-06-02 Doug Evans <xdje42@gmail.com>
5828 Add parameter support for Guile.
5829 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5830 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5831 (scm-param.o): New rule.
5832 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5833 (gdbscm_misc_error): Declare.
5834 (gdbscm_canonicalize_command_name): Declare.
5835 (gdbscm_scm_to_host_string): Declare.
5836 (gdbscm_scm_from_host_string): Declare.
5837 (gdbscm_initialize_parameters): Declare.
5838 * guile/guile.c (initialize_gdb_module): Call
5839 gdbscm_initialize_parameters.
5840 * guile/lib/gdb.scm: Export parameter symbols.
5841 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5842 cmdscm_canonicalize_name and made public. All callers updated.
5843 * guile/scm-exception.c (gdbscm_misc_error): New function.
5844 * guile/scm-param.c: New file.
5845 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5846 (gdbscm_scm_to_host_string): New function.
5847 (gdbscm_scm_from_host_string): New function.
5848 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5850 2014-06-02 Doug Evans <xdje42@gmail.com>
5852 Add command support for Guile.
5853 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5854 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5855 (scm-cmd.o): New rule.
5856 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5857 (gdbscm_user_error_p): Declare.
5858 (gdbscm_parse_command_name): Declare.
5859 (gdbscm_valid_command_class_p): Declare.
5860 (gdbscm_initialize_commands): Declare.
5861 * guile/guile.c (initialize_gdb_module): Call
5862 gdbscm_initialize_commands.
5863 * guile/lib/gdb.scm: Export command symbols.
5864 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5865 (throw-user-error): New function.
5866 * guile/scm-cmd.c: New file.
5867 * guile/scm-exception.c (user_error_symbol): New static global.
5868 (gdbscm_user_error_p): New function.
5869 (gdbscm_initialize_exceptions): Set user_error_symbol.
5870 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5872 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5874 * top.c (command_loop): Handle comments here...
5875 (command_line_input): ... not here.
5877 2014-06-02 Doug Evans <xdje42@gmail.com>
5879 Add progspace support for Guile.
5880 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5881 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5882 (scm-progspace.o): New rule.
5883 * guile/guile-internal.h (pspace_smob): New typedef.
5884 (psscm_pspace_smob_pretty_printers): Declare.
5885 (psscm_pspace_smob_from_pspace): Declare.
5886 (psscm_scm_from_pspace): Declare.
5887 * guile/guile.c (initialize_gdb_module): Call
5888 gdbscm_initialize_pspaces.
5889 * guile/lib/gdb.scm: Export progspace symbols.
5890 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5892 (append-pretty-printer!): Ditto.
5893 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5895 * guile/scm-progspace.c: New file.
5897 2014-06-03 Alan Modra <amodra@gmail.com>
5899 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5900 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5902 2014-06-02 Doug Evans <dje@google.com>
5904 Add support for skeletonless type units.
5905 * dwarf2read.c (struct dwarf2_per_objfile): New member
5906 n_allocated_type_units.
5907 (struct dwarf2_per_objfile) <tu_stats>: New member
5908 nr_all_type_units_reallocs.
5909 (create_signatured_type_table_from_index): Initialize
5910 n_allocated_type_units
5911 (create_all_type_units): Ditto.
5912 (add_type_unit): Move up in file. New arg slot.
5913 All callers updated. Increase space for all_type_units more
5915 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5916 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5917 (lookup_dwp_signatured_type): Ditto.
5918 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5919 All callers updated.
5920 (build_type_psymtabs_1): Leave type_unit_groups as
5921 NULL if no TUs present.
5922 (print_tu_stats): New function.
5923 (process_skeletonless_type_unit): New function.
5924 (process_dwo_file_for_skeletonless_type_units): New
5926 (process_skeletonless_type_units): New function.
5927 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5928 Call print tu_stats if debugging enabled.
5930 2014-06-02 Pedro Alves <palves@redhat.com>
5932 * breakpoint.c (build_target_command_list): Don't build a command
5933 list if we have any duplicate location that isn't a dprintf.
5935 2014-06-02 Pedro Alves <palves@redhat.com>
5937 * breakpoint.c (dprintf_breakpoint_hit): New function.
5938 (initialize_breakpoint_ops): Install it as dprintf's
5939 breakpoint_hit method.
5941 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5943 * source.c (substitute_path_rule_matches): Simplify using
5944 filename_ncmp instead of FILENAME_CMP.
5946 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5948 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5950 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5952 * configure.ac: When Guile is available, check for the
5953 availability of 'scm_new_smob'.
5954 * configure, config.h.in: Regenerate.
5955 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5958 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5960 * frame.c (struct frame_info): Add stop_string field.
5961 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5962 (get_prev_frame_always): Old content moved into
5963 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5964 TRY_CATCH, handle MEMORY_ERROR exceptions.
5965 (frame_stop_reason_string): New function definition.
5966 * frame.h (unwind_stop_reason_to_string): Extend comment to
5967 mention frame_stop_reason_string.
5968 (frame_stop_reason_string): New function declaration.
5969 * stack.c (frame_info): Switch to frame_stop_reason_string.
5970 (backtrace_command_1): Switch to frame_stop_reason_string.
5971 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5972 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5973 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5975 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5977 * frame.c (frame_stop_reason_string): Rename to ...
5978 (unwind_stop_reason_to_string): this.
5979 * frame.h (frame_stop_reason_string): Rename to ...
5980 (unwind_stop_reason_to_string): this.
5981 * stack.c (frame_info): Update call to frame_stop_reason_string.
5982 (backtrace_command_1): Likewise.
5983 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5984 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5986 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5988 * frame.c (remove_prev_frame): New function.
5989 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5992 2014-05-29 Pedro Alves <palves@redhat.com>
5994 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5995 and make it const. When a single-step decays to a continue,
5996 clear 'step', not 'hw_step'. Pass whether the caller wanted
5997 to step to user_visible_resume_ptid, not what we ask the
6000 2014-05-29 Pedro Alves <palves@redhat.com>
6002 * infrun.c (process_event_stop_test, handle_step_into_function)
6003 (handle_step_into_function_backward): Adjust.
6004 Don't set the even thread's stop_step and call stop_waiting before
6005 calling end_stepping_range. Instead do that ...
6006 (end_stepping_range): ... here. Take an ecs pointer parameter.
6008 2014-05-29 Pedro Alves <palves@redhat.com>
6010 * infrun.c (stop_stepping): Rename to ...
6011 (stop_waiting): ... this.
6012 (proceed): Update comment.
6013 (process_event_stop_test, handle_inferior_event)
6014 (handle_signal_stop, handle_step_into_function)
6015 (handle_step_into_function_backward): Update.
6017 2014-05-29 Pedro Alves <palves@redhat.com>
6019 * infcall.c (run_inferior_call): Don't check whether the current
6020 thread is running after the proceed call.
6022 2014-05-29 Pedro Alves <palves@redhat.com>
6023 Tom Tromey <tromey@redhat.com>
6025 * NEWS: Mention "maint set target-async", "set mi-async", and that
6026 background execution commands are now always available.
6027 * target.h (target_async_permitted): Update comment.
6028 * target.c (target_async_permitted, target_async_permitted_1):
6030 (set_target_async_command): Rename to ...
6031 (maint_set_target_async_command): ... this.
6032 (show_target_async_command): Rename to ...
6033 (maint_show_target_async_command): ... this.
6034 (_initialize_target): Adjust.
6035 * infcmd.c (prepare_execution_command): Make extern.
6036 * inferior.h (prepare_execution_command): Declare.
6037 * infrun.c (set_observer_mode): Leave target async alone.
6038 * mi/mi-interp.c (mi_interpreter_init): Install
6039 mi_on_sync_execution_done as sync_execution_done observer.
6040 (mi_on_sync_execution_done): New function.
6041 (mi_execute_command_input_handler): Don't print the prompt if we
6042 just started a synchronous command with an async target.
6043 (mi_on_resume): Check sync_execution before printing prompt.
6044 * mi/mi-main.h (mi_async_p): Declare.
6045 * mi/mi-main.c: Include gdbcmd.h.
6046 (mi_async_p): New function.
6047 (mi_async, mi_async_1): New globals.
6048 (set_mi_async_command, show_mi_async_command, mi_async): New
6050 (exec_continue): Call prepare_execution_command.
6051 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6052 (mi_execute_async_cli_command): Use mi_async_p.
6053 (_initialize_mi_main): Install "set mi-async". Make
6054 "target-async" a deprecated alias.
6056 2014-05-29 Pedro Alves <palves@redhat.com>
6058 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6059 (_initialize_cli_interp): Adjust.
6060 * event-loop.c: Include "observer.h".
6061 (start_event_loop): Notify 'command_error' observers instead of
6062 calling display_gdb_prompt. Remove FIXME comment.
6063 * event-top.c (display_gdb_prompt): Remove call into the
6065 * inf-loop.c: Include "observer.h".
6066 (inferior_event_handler): Notify 'command_error' observers instead
6067 of calling display_gdb_prompt.
6068 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6069 observers instead of calling display_gdb_prompt.
6070 * interps.c (interp_set): Don't call display_gdb_prompt.
6071 (current_interp_display_prompt_p): Delete.
6072 * interps.h (interp_prompt_p): Delete declaration.
6073 (interp_prompt_p_ftype): Delete.
6074 (struct interp_procs) <prompt_proc_p>: Delete field.
6075 (current_interp_display_prompt_p): Delete declaration.
6076 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6077 (_initialize_mi_interp): Adjust.
6078 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6079 'command_error' observers.
6080 (tui_on_sync_execution_done, tui_on_command_error): New
6082 (tui_display_prompt_p): Delete.
6083 (_initialize_tui_interp): Adjust.
6085 2014-05-29 Pedro Alves <palves@redhat.com>
6088 * cli/cli-interp.c: Include infrun.h and observer.h.
6089 (cli_uiout, cli_interp): New globals.
6090 (cli_on_signal_received, cli_on_end_stepping_range)
6091 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6093 (cli_interpreter_init): Install them as 'end_stepping_range',
6094 'signal_received' 'signal_exited', 'exited' and 'no_history'
6096 (_initialize_cli_interp): Remove cli_interp local.
6097 * infrun.c (handle_inferior_event): Call the several stop reason
6098 observers instead of printing the stop reason directly.
6099 (end_stepping_range): New function.
6100 (print_end_stepping_range_reason, print_signal_exited_reason)
6101 (print_exited_reason, print_signal_received_reason)
6102 (print_no_history_reason): Make static, and add an uiout
6103 parameter. Print to that instead of to CURRENT_UIOUT.
6104 * infrun.h (print_end_stepping_range_reason)
6105 (print_signal_exited_reason, print_exited_reason)
6106 (print_signal_received_reason print_no_history_reason): New
6108 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6110 <cli_uiout>: New field.
6111 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6112 uiout for CLI output. Install 'signal_received',
6113 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6115 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6116 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6117 (mi_on_no_history): New functions.
6118 (ui_out_free_cleanup): Delete function.
6119 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6120 instead use the one already stored in the MI interpreter data.
6121 (mi_ui_out): Adjust.
6122 * tui/tui-interp.c: Include infrun.h and observer.h.
6123 (tui_interp): New global.
6124 (tui_on_signal_received, tui_on_end_stepping_range)
6125 (tui_on_signal_exited, tui_on_exited)
6126 (tui_on_no_history): New functions.
6127 (tui_init): Install them as 'end_stepping_range',
6128 'signal_received' 'signal_exited', 'exited' and 'no_history'
6130 (_initialize_tui_interp): Delete tui_interp local.
6132 2014-05-29 Pedro Alves <palves@redhat.com>
6135 * linux-nat.c (linux_nat_resume_callback): Rename the second
6136 parameter to 'except'. Skip LP if it points to EXCEPT.
6137 (linux_nat_resume): Don't mark the event lwp as not stopped
6138 before resuming sibling lwps. Instead ask
6139 linux_nat_resume_callback to skip the event lwp. Mark it as not
6140 stopped after actually resuming it.
6141 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6143 (wait_lwp): Mark the lwp as stopped here.
6144 (stop_wait_callback): Mark the lwp as not stopped right after
6145 resuming it. Don't mark lwps as stopped here.
6146 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6147 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6149 2014-05-29 Pedro Alves <palves@redhat.com>
6152 * infrun.c (resume): Determine how much to resume depending on
6153 whether the caller wanted a step, not whether we can hardware step
6154 the target. Mark all threads that we intend to run as running,
6155 unless we're calling an inferior function.
6156 (normal_stop): If the thread is running an infcall, don't finish
6158 * target.c (target_resume): Don't mark threads as running here.
6160 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6162 * serial.c (_initialize_serial): Remove support for
6163 the "set remotebaud" and "show remotebaud" commands.
6164 * NEWS: Add entry documenting the removal of that command.
6166 2014-05-28 Yao Qi <yao@codesourcery.com>
6168 * charset.c: Fix typo in comments.
6170 2014-05-27 Gary Benson <gbenson@redhat.com>
6172 * utils.c (internal_vproblem): Prompt for a bug report.
6174 2014-05-26 Andy Wingo <wingo@igalia.com>
6176 * guile/scm-arch.c (arscm_mark_arch_smob):
6177 * guile/scm-block.c (bkscm_mark_block_smob)
6178 (bkscm_mark_block_syms_progress_smob):
6179 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6180 * guile/scm-exception.c (exscm_mark_exception_smob):
6181 * guile/scm-frame.c (frscm_mark_frame_smob):
6182 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6183 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6184 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6185 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6186 (ppscm_mark_pretty_printer_worker_smob):
6187 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6188 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6189 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6190 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6192 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6195 2014-05-26 Andy Wingo <wingo@igalia.com>
6196 Doug Evans <xdje42@gmail.com>
6198 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6199 empty_base_class. All uses updated.
6200 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6201 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6203 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6204 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6205 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6206 (gdbscm_gsmob_has_property_p, add_property_name)
6207 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6208 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6209 (gdb-object-has-property?, gdb-object-properties): Remove.
6210 (gdb-object-kind): Renamed from gsmob-kind.
6212 2014-05-26 Andy Wingo <wingo@igalia.com>
6214 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6215 * configure: Regenerate.
6217 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6219 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6221 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6223 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6224 (replay_memory_access_read_only, replay_memory_access_read_write)
6225 (replay_memory_access_types, replay_memory_access)
6226 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6227 (cmd_set_record_btrace, cmd_show_record_btrace)
6228 (cmd_show_replay_memory_access): New.
6229 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6230 (record_btrace_remove_breakpoint): Replace
6231 record_btrace_allow_memory_access with replay_memory_access.
6232 (_initialize_record_btrace): Add commands.
6233 * NEWS: Announce it.
6235 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6237 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6239 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6241 * MAINTAINERS (Write After Approval): Move self back from
6244 2014-05-22 Pedro Alves <palves@redhat.com>
6246 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6247 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6248 (disable_randomization, enum exec_direction_kind)
6249 (execution_direction, stop_registers, start_remote)
6250 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6251 (wait_for_inferior, normal_stop, get_last_target_status)
6252 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6253 (insert_step_resume_breakpoint_at_sal)
6254 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6255 (set_step_info, print_stop_event, signal_stop_state)
6256 (signal_print_state, signal_pass_state, signal_stop_update)
6257 (signal_print_update, signal_pass_update)
6258 (update_signals_program_target, clear_exit_convenience_vars)
6259 (displaced_step_dump_bytes, update_observer_mode)
6260 (signal_catch_update, gdb_signal_from_command): Move
6262 * infrun.h: ... to this new file.
6263 * amd64-tdep.c: Include infrun.h.
6264 * annotate.c: Include infrun.h.
6265 * arch-utils.c: Include infrun.h.
6266 * arm-linux-tdep.c: Include infrun.h.
6267 * arm-tdep.c: Include infrun.h.
6268 * break-catch-sig.c: Include infrun.h.
6269 * breakpoint.c: Include infrun.h.
6270 * common/agent.c: Include infrun.h instead of inferior.h.
6271 * corelow.c: Include infrun.h.
6272 * event-top.c: Include infrun.h.
6273 * go32-nat.c: Include infrun.h.
6274 * i386-tdep.c: Include infrun.h.
6275 * inf-loop.c: Include infrun.h.
6276 * infcall.c: Include infrun.h.
6277 * infcmd.c: Include infrun.h.
6278 * infrun.c: Include infrun.h.
6279 * linux-fork.c: Include infrun.h.
6280 * linux-nat.c: Include infrun.h.
6281 * linux-thread-db.c: Include infrun.h.
6282 * monitor.c: Include infrun.h.
6283 * nto-tdep.c: Include infrun.h.
6284 * procfs.c: Include infrun.h.
6285 * record-btrace.c: Include infrun.h.
6286 * record-full.c: Include infrun.h.
6287 * remote-m32r-sdi.c: Include infrun.h.
6288 * remote-mips.c: Include infrun.h.
6289 * remote-notif.c: Include infrun.h.
6290 * remote-sim.c: Include infrun.h.
6291 * remote.c: Include infrun.h.
6292 * reverse.c: Include infrun.h.
6293 * rs6000-tdep.c: Include infrun.h.
6294 * s390-linux-tdep.c: Include infrun.h.
6295 * solib-irix.c: Include infrun.h.
6296 * solib-osf.c: Include infrun.h.
6297 * solib-svr4.c: Include infrun.h.
6298 * target.c: Include infrun.h.
6299 * top.c: Include infrun.h.
6300 * windows-nat.c: Include infrun.h.
6301 * mi/mi-interp.c: Include infrun.h.
6302 * mi/mi-main.c: Include infrun.h.
6303 * python/py-threadevent.c: Include infrun.h.
6305 2014-05-22 Pedro Alves <palves@redhat.com>
6307 * infrun.c (handle_inferior_event): Store the exit code for
6308 --return-child-result here, instead of ...
6309 (print_exited_reason): ... here.
6311 2014-05-21 Pedro Alves <palves@redhat.com>
6314 * gdbthread.h (struct thread_control_state): New field
6316 * infrun.c (follow_fork): Copy the new thread control field to the
6318 (clear_proceed_status_thread): Clear the new thread control field.
6319 (proceed): Set the new thread control field.
6320 * interps.h (command_interp): Declare.
6321 * interps.c (command_interpreter): New global.
6322 (command_interp): New function.
6323 (interp_exec): Set `command_interpreter' while here.
6324 * cli-out.c (cli_uiout_dtor): New function.
6325 (cli_ui_out_impl): Install it.
6326 * mi/mi-interp.c: Include cli-out.h.
6327 (mi_cmd_interpreter_exec): Add comment.
6328 (restore_current_uiout_cleanup): New function.
6329 (ui_out_free_cleanup): New function.
6330 (mi_on_normal_stop): If finishing an execution command started by
6331 a CLI command, or any kind of breakpoint-like event triggered,
6332 print the stop event to the output (CLI) stream.
6333 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6335 2014-05-21 Pedro Alves <palves@redhat.com>
6337 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6338 current source line having changed.
6339 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6340 * infrun.c (normal_stop): Adjust call to
6341 set_current_sal_from_frame.
6342 * source.c (clear_lines_listed_range): New function.
6343 (set_current_source_symtab_and_line, identify_source_line): Clear
6344 the lines listed range.
6345 (line_info): Handle the first "info line" after the current source
6346 line having changed.
6347 * stack.c (print_stack_frame): Remove center handling.
6348 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6351 2014-05-21 Pedro Alves <palves@redhat.com>
6353 * inf-child.c (inf_child_mourn_inferior): New function.
6354 * inf-child.h (inf_child_mourn_inferior): New declaration.
6355 * darwin-nat.c (darwin_mourn_inferior): Use
6356 inf_child_mourn_inferior.
6357 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6358 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6359 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6360 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6361 * windows-nat.c (windows_mourn_inferior): Likewise.
6363 2014-05-21 Doug Evans <xdje42@gmail.com>
6365 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6367 2014-05-21 Doug Evans <xdje42@gmail.com>
6369 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6370 (gdbscm_out_of_range_error): Ditto.
6371 (gdbscm_memory_error): Ditto.
6372 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6373 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6374 (gdbscm_out_of_range_error): Update.
6375 (gdbscm_memory_error): Update.
6376 (gdbscm_scm_to_target_string_unsafe): Delete.
6378 2014-05-21 Pedro Alves <palves@redhat.com>
6380 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6382 (inf_child_open_target): New function.
6383 (inf_child_open): Use inf_child_open_target to push the target
6384 instead of erroring out.
6385 (inf_child_disconnect, inf_child_close)
6386 (inf_child_maybe_unpush_target): New functions.
6387 (inf_child_target): Install inf_child_disconnect and
6388 inf_child_close. Store a pointer to the returned object.
6389 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6391 * target.c (auto_connect_native_target): New global.
6392 (show_default_run_target): New function.
6393 (find_default_run_target): Return NULL if automatically connecting
6394 to the native target is disabled.
6395 (_initialize_target): Install set/show auto-connect-native-target.
6396 * NEWS: Mention "set auto-connect-native-target", and "target
6398 * linux-nat.c (super_close): New global.
6399 (linux_nat_close): Call super_close.
6400 (linux_nat_add_target): Store a pointer to the base class's
6402 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6403 inf_child_maybe_unpush.
6404 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6406 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6407 the inferior. Use inf_child_maybe_unpush_target.
6408 (inf_ttrace_attach): Don't push the target if it is already
6410 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6411 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6412 after mourning the inferior. Use inf_child_maybe_unpush_target.
6413 (darwin_attach_pid): Don't push the target if it is already
6415 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6416 mourning the inferior. Use inf_child_maybe_unpush_target.
6417 (gnu_detach): Use inf_child_maybe_unpush_target.
6418 * go32-nat.c (go32_create_inferior): Don't push the target if it
6420 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6421 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6422 (procfs_open): Rename to ...
6423 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6424 comments. Can target_preopen before changing node. Call
6425 inf_child_open_target to push the target explicitly.
6426 (procfs_attach): Don't push the target if it is already pushed.
6427 (procfs_detach): Use inf_child_maybe_unpush_target.
6428 (procfs_create_inferior): Don't push the target if it is already
6430 (nto_native_ops): New global.
6431 (procfs_open): Reimplement.
6432 (procfs_native_open): New function.
6433 (init_procfs_targets): Install procfs_native_open as to_open of
6434 "target native". Store a pointer to the "native" target in
6436 * procfs.c (procfs_attach): Don't push the target if it is already
6438 (procfs_detach): Use inf_child_maybe_unpush_target.
6439 (procfs_mourn_inferior): Only unpush the target after mourning the
6440 inferior. Use inf_child_maybe_unpush_target.
6441 (procfs_init_inferior): Don't push the target if it is already
6443 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6444 if it is already pushed.
6446 2014-05-21 Pedro Alves <palves@redhat.com>
6448 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6449 and "procfs" targets are now called "native" instead.
6451 2014-05-21 Pedro Alves <palves@redhat.com>
6453 * go32-nat.c (go32_open): Delete.
6454 (go32_target): Don't override the to_open method.
6456 2014-05-21 Pedro Alves <palves@redhat.com>
6458 * nto-procfs.c (procfs_can_run): New function.
6459 (nto_procfs_ops): New global.
6460 (init_procfs_targets): New, based on procfs_target. Install
6461 "target native" in addition to "target procfs".
6462 (_initialize_procfs): Call init_procfs_targets instead of adding
6465 2014-05-21 Pedro Alves <palves@redhat.com>
6467 * windows-nat.c (windows_target): Don't override to_shortname,
6468 to_longname or to_doc.
6470 2014-05-21 Pedro Alves <palves@redhat.com>
6472 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6475 2014-05-21 Pedro Alves <palves@redhat.com>
6477 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6478 to_shortname, to_longname or to_doc.
6480 2014-05-21 Pedro Alves <palves@redhat.com>
6482 * go32-nat.c (go32_target): Don't override to_shortname,
6483 to_longname or to_doc.
6485 2014-05-21 Pedro Alves <palves@redhat.com>
6487 * inf-child.c (inf_child_open): Remove mention of "child".
6488 (inf_child_target): Rename target to "native" instead of "child".
6490 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6492 * Makefile.in (SFILES): Delete "regset.c".
6493 (COMMON_OBS): Delete "regset.o".
6495 * regset.h (regset_alloc): Delete prototype.
6497 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6499 * sparc-linux-tdep.c (sparc32_linux_gregset)
6500 (sparc32_linux_fpregset): New static regset structures.
6501 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6502 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6504 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6505 (sparc64_linux_fpregset): New static regset structures.
6506 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6507 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6508 New static regset structures.
6509 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6510 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6511 New static regset structures.
6512 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6513 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6514 New static regset structures.
6515 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6516 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6517 New static regset structures.
6518 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6520 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6522 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6523 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6524 register maps ("regmaps") from "*regset" to "*regmap". Do this
6525 for all regmap types and variables.
6526 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6527 (sparc32_linux_supply_core_gregset)
6528 (sparc32_linux_collect_core_gregset)
6529 (sparc32_linux_supply_core_fpregset)
6530 (sparc32_linux_collect_core_fpregset): Likewise.
6531 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6532 (sparc_gregmap, sparc_fpregmap): ... these.
6533 (sparc_supply_gregset, sparc_collect_gregset)
6534 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6535 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6536 (_initialize_sparc_nat): Rename regmaps.
6537 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6538 (sparc_gregmap, sparc_fpregmap): ... these.
6539 (sparc_supply_gregset, sparc_collect_gregset)
6540 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6541 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6543 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6544 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6546 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6548 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6549 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6550 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6552 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6553 (sparc32_bsd_fpregset): Rename to...
6554 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6555 (sparc32_bsd_fpregmap): ... these.
6556 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6557 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6558 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6559 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6560 (struct sparc_gregmap, struct sparc_fpregmap)
6561 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6562 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6563 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6564 (sparc32_supply_regset, sparc32_collect_gregset)
6565 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6567 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6568 (sparc64_linux_ptrace_gregmap): ... this.
6569 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6570 (_initialize_sparc64_linux_nat): Rename regmaps.
6571 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6572 (sparc64_linux_core_gregmap): ... this.
6573 (sparc64_linux_supply_core_gregset)
6574 (sparc64_linux_collect_core_gregset)
6575 (sparc64_linux_supply_core_fpregset)
6576 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6577 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6578 (sparc64_sol2_fpregset): Rename to...
6579 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6580 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6581 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6583 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6584 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6585 (sparc64_bsd_fpregset): Rename to...
6586 (struct sparc_gregmap, sparc64_sol2_gregmap)
6587 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6588 (sparc64_bsd_fpregmap): ... these.
6589 (sparc64_supply_gregset, sparc64_collect_gregset)
6590 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6592 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6593 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6594 (sparc64fbsd_gregmap): ... this.
6595 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6596 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6598 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6599 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6600 (sparc64nbsd_collect_fpregset): Likewise.
6601 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6602 (sparc64nbsd_gregmap): ... this.
6603 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6605 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6606 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6607 (sparc64obsd_gregmap): ... this.
6608 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6610 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6611 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6612 (sparc32nbsd_gregmap): ... this.
6613 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6616 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6618 * score-tdep.c (score7_linux_gregset): New static regset
6620 (score7_linux_regset_from_core_section): Remove dynamic regset
6622 (score_gdbarch_init): Drop allocation of tdep structure.
6623 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6625 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6627 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6629 (am33_regset_from_core_section): Remove dynamic regset
6632 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6634 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6635 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6637 (mips_linux_regset_from_core_section): Remove dynamic regset
6639 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6640 'gregset64', 'fpregset', and 'fpregset64'.
6641 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6642 deleted tdep fields.
6644 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6646 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6648 (amd64_regset_from_core_section): Remove dynamic regset
6650 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6652 (amd64obsd_regset_from_core_section): Remove dynamic regset
6654 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6656 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6657 x86-common regset supply function.
6658 * i386-tdep.c (i386_collect_gregset): Make static.
6659 (i386_gregset): New global regset structure.
6660 (i386_fpregset, i386_xstateregset): New static regset structures.
6661 (i386_regset_from_core_section): Remove dynamic regset
6663 (i386_gdbarch_init): Remove initialization of tdep fields
6664 'gregset', 'fpregset', and 'xstateregset'.
6665 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6666 'fpregset', and 'xstateregset'.
6667 (i386_collect_gregset): Remove prototype.
6668 (i386_gregset): New declaration.
6669 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6671 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6674 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6676 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6677 (arm_linux_vfpregset): New static regset structures.
6678 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6680 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6681 and 'vfpregset' fields.
6683 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6685 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6686 (aarch64_linux_fpregset): New static regset structures.
6687 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6688 of regset structures.
6689 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6692 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6694 * regset.h (struct regset): Remove gdbarch field.
6695 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6696 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6697 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6699 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6700 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6701 (ppc32_linux_vsxregset): Likewise.
6702 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6703 via the regcache instead of the regset.
6704 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6705 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6706 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6707 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6710 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6712 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6713 Constify structures.
6714 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6715 (alphanbsd_aout_gregset): Likewise.
6716 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6717 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6719 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6720 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6722 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6723 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6724 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6725 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6726 * m88k-tdep.c (m88k_gregset): Likewise.
6727 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6728 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6729 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6730 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6731 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6732 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6733 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6734 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6735 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6737 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6738 * sh-tdep.h (sh_corefile_gregset): Likewise.
6739 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6740 * vax-tdep.c (vax_gregset): Likewise.
6742 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6744 Fix TLS access for -static -pthread.
6745 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6746 (try_thread_db_load_1): Initialize it.
6747 (thread_db_get_thread_local_address): Call it if LM is zero.
6748 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6749 * target.h (struct target_ops) (to_get_thread_local_address): Add
6750 load_module_addr comment.
6752 2014-05-21 Pedro Alves <palves@redhat.com>
6754 * dcache.c (dcache_read_memory_partial): If reading the cache line
6755 fails, fallback to reading just the memory the caller wanted.
6757 2014-05-20 Doug Evans <dje@google.com>
6759 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6760 instead of get_current_arch.
6762 2014-05-20 Pedro Alves <palves@redhat.com>
6764 * NEWS: Mention that compare-sections now works with all targets.
6766 * remote.c (PACKET_qCRC): New enum value.
6767 (remote_verify_memory): Don't send qCRC if the target has no
6768 execution. Use packet_support/packet_ok. If the target doesn't
6769 support the qCRC packet, fallback to a deep memory copy.
6770 (compare_sections_command): Say "target image" instead of "remote
6772 (_initialize_remote): Add PACKET_qCRC to the list of config
6773 packets that have no associated command. Extend comment.
6774 * target.c (simple_verify_memory, default_verify_memory): New
6776 * target.h (struct target_ops) <to_verify_memory>: Default to
6777 default_verify_memory.
6778 (simple_verify_memory): New declaration.
6779 * target-delegates.c: Regenerate.
6781 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6783 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6785 2014-05-20 Hui Zhu <hui@codesourcery.com>
6786 Yao Qi <yao@codesourcery.com>
6789 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6790 and change address of sp and pc.
6792 2014-05-19 Tom Tromey <tromey@redhat.com>
6794 * gdbtypes.c (rank_function): Use XNEWVEC.
6795 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6797 2014-05-19 Doug Evans <dje@google.com>
6799 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6800 build_type_unit_groups and moved closer to only caller. Remove
6801 arguments. All references updated. Remove outdated .gdb_index
6803 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6804 build_type_psymtabs_1.
6806 2014-05-19 Doug Evans <dje@google.com>
6808 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6809 n_type_unit_groups, all_type_unit_groups. All uses removed.
6810 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6811 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6812 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6813 (add_type_unit_group_to_table): Delete.
6815 2014-05-19 Doug Evans <dje@google.com>
6817 * eval.c (evaluate_subexp_standard): Add some comments.
6819 2014-05-17 Doug Evans <xdje42@gmail.com>
6821 * progspace.c (remove_program_space): Delete, unused.
6822 * progspace.h (remove_program_space): Ditto.
6824 2014-05-17 Doug Evans <xdje42@gmail.com>
6826 * inferior.c (prune_inferiors): Fix comment.
6827 (remove_inferior_command): Call prune_program_spaces.
6829 2014-05-16 Doug Evans <dje@google.com>
6831 New command line option -D.
6833 * main.c (set_gdb_data_directory): New function.
6834 (captured_main): Recognize -D. Flag error for --data-directory "".
6835 Call set_gdb_data_directory.
6836 (print_gdb_help): Print --data-directory, -D.
6837 * main.h (set_gdb_data_directory): Declare.
6838 * top.c (staged_gdb_datadir): New static global.
6839 (set_gdb_datadir): Call set_gdb_data_directory
6840 (show_gdb_datadir): New function.
6841 (init_main): Update init of data-directory parameter.
6843 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6845 Import the "dirfd" gnulib module.
6846 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6847 * gnulib/aclocal.m4: Update.
6848 * gnulib/config.in: Update.
6849 * gnulib/configure: Update.
6850 * gnulib/import/Makefile.am: Update.
6851 * gnulib/import/Makefile.in: Update.
6852 * gnulib/import/dirfd.c: New.
6853 * gnulib/import/m4/dirfd.m4: New.
6854 * gnulib/import/m4/gnulib-cache.m4: Update.
6855 * gnulib/import/m4/gnulib-comp.m4: Update.
6857 2014-05-16 Pierre Muller <muller@sourceware.org>
6858 Yao Qi <yao@codesourcery.com>
6860 * valprint.c (print_wchar): Move the code on checking whether
6861 W is a printable wide char to the default branch of switch
6862 statement below. Call wchar_printable instead of gdb_iswprint.
6864 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6866 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6867 ldr.w and ldrd instructions.
6869 2014-05-15 Doug Evans <dje@google.com>
6871 * dwarf2read.c (read_structure_type): Delete outdated comments.
6873 2014-05-14 Tom Tromey <tromey@redhat.com>
6875 * macrocmd.c (print_macro_definition): Reindent.
6877 2014-05-13 Doug Evans <xdje42@gmail.com>
6879 * python/py-cmd.c (cmdpy_completer): Add comment.
6880 (completers): Make const.
6882 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6884 * infrun.c (resume): Remove should_resume (unused). Move up
6885 declaration of resume_ptid.
6887 2014-05-13 Tom Tromey <tromey@redhat.com>
6889 * language.h (unop_type_check): Remove.
6890 (binop_type_check): Don't declare.
6892 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6894 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6895 call to regcache_raw_collect.
6897 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6899 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6900 mi_console->quote as the quoting character.
6902 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6904 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6906 2014-04-29 Tom Tromey <tromey@redhat.com>
6908 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6909 "show debug varobj".
6911 2014-05-07 Kyle McMartin <kyle@redhat.com>
6913 Pushed by Joel Brobecker <brobecker@adacore.com>.
6914 * aarch64-tdep.c (aarch64_software_single_step): New function.
6915 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6916 with aarch64_software_single_step.
6918 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6922 2014-05-05 Keith Seitz <keiths@redhat.com>
6924 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6925 variable or history value is successfully parsed.
6927 2014-05-05 Yao Qi <yao@codesourcery.com>
6928 Pedro Alves <palves@redhat.com>
6930 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6931 address of blocks that intersects the requested range. Trim
6932 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6934 * ctf.c (ctf_xfer_partial): Likewise.
6936 2014-05-05 Yao Qi <yao@codesourcery.com>
6938 * printcmd.c (display_command): Remove the check to
6939 target_has_execution.
6941 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6943 * ppcobsd-nat.c: Include "obsd-nat.h".
6944 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6946 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6948 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6950 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6951 and 16-bit signed and unsigned arguments. Update comment.
6952 (stap_parse_probe_arguments): Extend code to handle such
6953 arguments. Use warning instead of complaint to notify about
6954 unrecognized bitness.
6956 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6958 PR breakpoints/16889
6959 * stap-probe.c (stap_parse_probe_arguments): Simplify
6960 check for non-prefixed probes (i.e., probes whose
6961 arguments do not start with "N@"). Always set the
6962 argument type to a sane value.
6964 2014-05-01 David Taylor <dtaylor@emc.com>
6966 * remote.c (compare_sections_command): Add -r option to compare
6967 all loadable read-only sections.
6969 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6971 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6972 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6974 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6975 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6976 Remove unused CORE_ADDR argument. Update all callers.
6978 2014-04-29 Pedro Alves <palves@redhat.com>
6980 * remote.c (struct packet_config) <detect>: Extend comment.
6981 (add_packet_config_cmd): Don't set the config's detect or support
6983 (init_all_packet_configs): Also initialize the config's 'detect'
6985 (reset_all_packet_configs_support): New function.
6986 (remote_open_1): Call reset_all_packet_configs_support instead of
6987 init_all_packet_configs.
6988 (_initialize_remote): Initialize all packet configs. Assert that
6989 all packets have an associated command, except a few known
6992 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6994 * dwarf2read.c (read_subrange_type): Handle dynamic
6995 DW_AT_lower_bound attributes.
6997 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6999 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7000 dynamic bounds before computing its upper bound.
7001 (ada_discrete_type_low_bound): Same as above with the lower bound.
7003 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7005 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7006 range types. Adjust the array handling implementation to
7007 take advantage of this change.
7008 (resolve_dynamic_range): New function, mostly extracted from
7009 resolve_dynamic_bounds.
7010 (resolve_dynamic_array): New function, mostly extracted from
7011 resolve_dynamic_bounds.
7012 (resolve_dynamic_bounds): Delete.
7013 (resolve_dynamic_type): Reimplement. Add handling of
7014 TYPE_CODE_RANGE types.
7016 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7018 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7019 handling of parallel ___XA types.
7021 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7023 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7024 unnecessary second call to static_unwrap_type.
7026 2014-04-27 Hui Zhu <hui@codesourcery.com>
7028 * stack.c (print_frame_info): Call do_gdb_disassembly with
7029 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7031 2014-04-26 Doug Evans <xdje42@gmail.com>
7033 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7035 2014-04-25 Pedro Alves <palves@redhat.com>
7038 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7039 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7040 and newline from built string.
7041 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7042 (linux_ptrace_attach_fail_reason): ... this.
7043 * linux-nat.c (linux_nat_attach): Adjust to use
7044 linux_ptrace_attach_fail_reason.
7046 2014-04-25 Pedro Alves <palves@redhat.com>
7048 * remote.c (struct remote_state): Remove multi_process_aware,
7049 non_stop_aware, cond_tracepoints, cond_breakpoints,
7050 breakpoint_commands, fast_tracepoints, static_tracepoints,
7051 install_in_trace, disconnected_tracing,
7052 enable_disable_tracepoints, string_tracing, and
7053 augmented_libraries_svr4_read fields.
7054 (remote_multi_process_p): Move further below in the file.
7055 (struct packet_config): Add comments.
7056 (update_packet_config): Delete function.
7057 (show_packet_config_cmd): Use packet_config_support.
7058 (add_packet_config_cmd): Use NULL as set callback.
7059 (packet_ok): "set remote foo-packet"-style commands no longer
7060 change config->supported -- adjust.
7061 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7062 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7063 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7064 (PACKET_QNonStop, PACKET_multiprocess_feature)
7065 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7066 (PACKET_DisconnectedTracing_feature)
7067 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7068 (set_remote_protocol_packet_cmd): Delete function.
7069 (packet_config_support, packet_support): New functions.
7070 (set_remote_protocol_Z_packet_cmd): Don't call
7071 update_packet_config.
7072 (remote_query_attached, remote_pass_signals)
7073 (remote_program_signals, remote_threads_info)
7074 (remote_threads_extra_info, remote_start_remote): Use
7076 (remote_start_remote): Use packet_config_support and
7078 (init_all_packet_configs): Set all packets to unknown support,
7079 instead of calling update_packet_config.
7080 (remote_check_symbols): Use packet_support.
7081 (remote_supported_packet): Unconditionally set the packet config's
7083 (remote_multi_process_feature, remote_non_stop_feature)
7084 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7085 (remote_breakpoint_commands_feature)
7086 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7087 (remote_install_in_trace_feature)
7088 (remote_disconnected_tracing_feature)
7089 (remote_enable_disable_tracepoint_feature)
7090 (remote_string_tracing_feature)
7091 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7092 (remote_protocol_features): Adjust to use remote_supported_packet
7093 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7094 "ConditionalTracepoints", "ConditionalBreakpoints",
7095 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7096 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7097 "EnableDisableTracepoints", and "tracenz".
7098 (remote_query_supported): Use packet_support.
7099 (remote_open_1): Adjust.
7100 (extended_remote_attach_1): Use packet_support. Switch on the
7101 result of packet_ok instead of checking whether the packet ended
7103 (remote_vcont_resume): Use packet_support.
7104 (remote_resume, remote_stop_ns, fetch_register_using_p)
7105 (remote_prepare_to_store, store_register_using_P)
7106 (check_binary_download, remote_write_bytes): Use packet_support.
7107 (remote_vkill): Use packet_support. Switch on the result of
7108 packet_ok instead of checking whether the packet ended up
7110 (extended_remote_supports_disable_randomization): Use
7112 (extended_remote_run): Switch on the result of packet_ok instead
7113 of checking whether the packet ended up disabled.
7114 (remote_insert_breakpoint, remote_remove_breakpoint)
7115 (remote_insert_watchpoint, remote_remove_watchpoint)
7116 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7118 (remote_search_memory): Use packet_config_support.
7119 (remote_get_thread_local_address, remote_get_tib_address)
7120 (remote_hostio_send_command, remote_can_execute_reverse): Use
7122 (remote_supports_cond_tracepoints)
7123 (remote_supports_cond_breakpoints)
7124 (remote_supports_fast_tracepoints)
7125 (remote_supports_static_tracepoints)
7126 (remote_supports_install_in_trace)
7127 (remote_supports_enable_disable_tracepoint)
7128 (remote_supports_string_tracing)
7129 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7130 the packet config says the feature is enabled or disabled.
7131 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7132 (remote_get_trace_status): Use packet_support.
7133 (remote_set_disconnected_tracing): Adjust to check whether the
7134 feature is enabled with packet_support.
7135 (remote_set_trace_buffer_size, remote_use_agent)
7136 (remote_can_use_agent, remote_supports_btrace): Use
7138 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7139 Use packet_config_support.
7140 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7141 the packet config says the feature is enabled or disabled.
7142 (set_range_stepping): Use packet_support.
7144 2014-04-25 Tom Tromey <tromey@redhat.com>
7146 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7149 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7151 * NEWS: Mention support for C99 variable length arrays.
7153 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7155 * ada-lang.c (standard_exc): Expand introductory comment.
7157 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7158 Walfred Tedeschi <walfred.tedeschi@intel.com>
7160 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7162 (amd64_linux_read_description): Add code to handle AVX512 xstate
7163 mask and return respective tdesc.
7164 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7165 and features/i386/x32-avx512-linux.c.
7166 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7167 (amd64_linux_core_read_description): Add code to handle AVX512
7168 xstate mask and return respective tdesc.
7169 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7170 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7172 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7173 (tdesc_amd64_avx512_linux): New prototype.
7174 (tdesc_x32_avx512_linux): Likewise.
7175 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7176 features/i386/x32-avx512.c.
7177 (amd64_ymm_avx512_names): New register names for pseudo
7179 (amd64_ymmh_avx512_names): New register names for raw registers
7181 (amd64_k_names): New register names for K registers.
7182 (amd64_zmmh_names): New register names for ZMM raw registers.
7183 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7184 (amd64_xmm_avx512_names): New register names for XMM16-31
7186 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7188 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7189 if feature is present.
7190 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7191 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7192 (AMD64_NUM_REGS): Adjust to new number of registers.
7193 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7194 registers supplied via XSTATE by AVX512 registers.
7195 (i386_linux_read_description): Add case for AVX512.
7196 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7197 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7198 (i386_linux_core_read_description): Add case for AVX512.
7199 (i386_linux_init_abi): Install supported register note section
7201 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7203 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7204 registers to be number of zmm7h + 1.
7205 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7206 * i386-tdep.c: Include features/i386/i386-avx512.c.
7207 (i386_zmm_names): Add ZMM pseudo register names array.
7208 (i386_zmmh_names): Add ZMM raw register names array.
7209 (i386_k_names): Add K raw register names array.
7210 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7211 registers. AVX512 has 16 more ZMM registers than there are YMM
7213 (i386_zmmh_regnum_p): Add function to look up register number of
7215 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7216 (i386_k_regnum_p): Likewise for K raw registers.
7217 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7218 registers added by AVX512.
7219 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7220 registers added by AVX512.
7221 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7223 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7224 (i386_pseudo_register_name): Add ZMM pseudo registers.
7225 (i386_zmm_type): Construct and return vector registers type for ZMM
7227 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7228 ZMM0-31 pseudo registers and K registers.
7229 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7230 and YMM16-31 registers from register cache.
7231 (i386_pseudo_register_write): Add code to write K, ZMM and
7233 (i386_register_reggroup_p): Add code to include/exclude AVX512
7234 registers in/from respective register groups.
7235 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7236 registers if feature is present in xcr0.
7237 (i386_gdbarch_init): Add code to initialize AVX512 feature
7238 variables in tdep structure, wire in pseudo registers and call
7239 initialize_tdesc_i386_avx512.
7240 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7242 (i386_regnum): Add AVX512 registers.
7243 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7244 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7245 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7246 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7248 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7249 (i386_ymm_avx512_regnum_p): Likewise.
7250 (i386_k_regnum_p): Likewise.
7251 (i386_zmm_regnum_p): Likewise.
7252 (i386_zmmh_regnum_p): Likewise.
7253 * i387-tdep.c : Update year in copyright notice.
7254 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7256 (XSAVE_YMM_AVX512_ADDR): New macro.
7257 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7259 (XSAVE_XMM_AVX512_ADDR): New macro.
7260 (xsave_avx512_k_offset): New table for K register offsets in
7262 (XSAVE_AVX512_K_ADDR): New macro.
7263 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7265 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7266 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7268 (i387_collect_xsave): Add code to collect AVX512 registers from
7270 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7271 of XMM16-31 registers.
7272 (I387_NUM_K_REGS): New define for number of K registers.
7273 (I387_K0_REGNUM): New define for K0 register number.
7274 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7275 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7276 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7278 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7279 (I387_XMM16_REGNUM): New define for XMM16 register number.
7280 (I387_YMM0_REGNUM): New define for YMM0 register number.
7281 (I387_KEND_REGNUM): New define for last K register number.
7282 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7283 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7285 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7287 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7289 * features/Makefile: Add AVX512 related files.
7290 * features/i386/32bit-avx512.xml: New file.
7291 * features/i386/64bit-avx512.xml: Likewise.
7292 * features/i386/amd64-avx512-linux.c: Likewise.
7293 * features/i386/amd64-avx512-linux.xml: Likewise.
7294 * features/i386/amd64-avx512.c: Likewise.
7295 * features/i386/amd64-avx512.xml: Likewise.
7296 * features/i386/i386-avx512-linux.c: Likewise.
7297 * features/i386/i386-avx512-linux.xml: Likewise.
7298 * features/i386/i386-avx512.c: Likewise.
7299 * features/i386/i386-avx512.xml: Likewise.
7300 * features/i386/x32-avx512-linux.c: Likewise.
7301 * features/i386/x32-avx512-linux.xml: Likewise.
7302 * features/i386/x32-avx512.c: Likewise.
7303 * features/i386/x32-avx512.xml: Likewise.
7304 * regformats/i386/amd64-avx512-linux.dat: New file.
7305 * regformats/i386/amd64-avx512.dat: Likewise.
7306 * regformats/i386/i386-avx512-linux.dat: Likewise.
7307 * regformats/i386/i386-avx512.dat: Likewise.
7308 * regformats/i386/x32-avx512-linux.dat: Likewise.
7309 * regformats/i386/x32-avx512.dat: Likewise.
7310 * NEWS: Add note about new support for AVX512.
7313 2014-04-23 Pedro Alves <palves@redhat.com>
7315 * breakpoint.c (insert_bp_location): Tolerate errors if the
7316 breakpoint is set in a user-loaded objfile.
7317 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7318 location is marked shlib_disabled. If the breakpoint is set in a
7319 user-loaded objfile is a GDB-side memory breakpoint, validate it
7320 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7321 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7323 * mem-break.c (memory_validate_breakpoint): New function.
7324 * objfiles.c (userloaded_objfile_contains_address_p): New
7326 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7327 * target.h (memory_validate_breakpoint): New declaration.
7329 2014-04-23 Pedro Alves <palves@redhat.com>
7331 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7332 the breakpoint is set in a shared library, only suppress
7333 errors for software breakpoints, not hardware breakpoints.
7335 2014-04-22 Pedro Alves <palves@redhat.com>
7337 * infrun.c (schedlock_applies): New function, factored out from
7338 find_thread_needs_step_over.
7339 (find_thread_needs_step_over): Use it.
7340 (switch_back_to_stepped_thread): Always clear trap_expected if the
7341 step over is finished. Return early if scheduler locking applies.
7342 Look for the stepping thread and a potential step-over thread with
7344 (currently_stepping_or_nexting_callback): Delete.
7346 2014-04-22 Nick Clifton <nickc@redhat.com>
7348 * NEWS: Mention that ARM sim now supports tracing.
7350 2014-04-22 Yao Qi <yao@codesourcery.com>
7352 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7354 * tracefile.c (tracefile_fetch_registers): ... it. New
7356 * tracefile.h (tracefile_fetch_registers): Declare.
7357 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7358 tracefile_fetch_registers.
7360 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7363 * windows-nat.c (thread_rec): Don't display a warning when
7364 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7365 fails for any reason, set th->suspended to -1, so that we don't
7366 try to resume such a thread. Also, don't return NULL in these
7367 cases, to avoid completely ruin the session due to "PC register is
7368 not available" error.
7369 (do_windows_fetch_inferior_registers): Check errors in
7370 GetThreadContext call.
7371 (windows_continue): Accept an additional argument KILLED; if not
7372 zero, ignore errors in the SetThreadContext call, since the
7373 inferior was killed and is shutting down.
7374 (windows_resume, get_windows_debug_event)
7375 (windows_create_inferior, windows_mourn_inferior)
7376 (windows_kill_inferior): All callers of windows_continue changed
7377 to adjust to its new calling sequence.
7379 2014-04-19 Yao Qi <yao@codesourcery.com>
7381 * ctf.c (ctf_open): Call post_create_inferior.
7383 2014-04-19 Yao Qi <yao@codesourcery.com>
7385 * ctf.c (handle_id): New static variable.
7386 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7387 value. Get the declaration of event "register" and get length
7388 of field "contents".
7390 2014-04-19 Yao Qi <yao@codesourcery.com>
7392 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7394 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7396 * valops.c (oload_method_static): Remove unnecessary argument
7397 METHOD. Update all callers.
7399 2014-04-18 Pedro alves <palves@redhat.com>
7400 Tom Tromey <tromey@redhat.com>
7403 * frame.c (get_prev_frame_1): Rename to ...
7404 (get_prev_frame_always): ... this, and make extern. Adjust.
7405 (skip_artificial_frames): Use get_prev_frame_always.
7406 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7407 (get_frame_unwind_stop_reason): Adjust to rename.
7408 * frame.h (get_prev_frame_always): Declare.
7409 * inline-frame.c: Include frame.h.
7410 (inline_frame_this_id): Use get_prev_frame_always.
7412 2014-04-18 Tristan Gingold <gingold@adacore.com>
7414 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7415 code by using bfd_mach_o_get_base_address.
7417 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7419 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7420 (spu_ax_pseudo_register_collect): New function.
7421 (spu_ax_pseudo_register_push_stack): Likewise.
7422 (spu_dwarf_reg_to_regnum): Likewise.
7423 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7425 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7427 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7428 Replace FRAME argument with FRAME_ID.
7429 * gdbarch.c, gdbarch.h: Regenerate.
7430 * findvar.c (default_value_from_register): Add GDBARCH argument;
7431 replace FRAME by FRAME_ID. No longer call get_frame_id.
7432 (value_from_register): Update call to gdbarch_value_from_register.
7433 * value.h (default_value_from_register): Update prototype.
7434 * s390-linux-tdep.c (s390_value_from_register): Update interface
7435 and call to default_value_from_register.
7436 * spu-tdep.c (spu_value_from_register): Likewise.
7438 * findvar.c (address_from_register): Remove TYPE argument.
7439 Do not call value_from_register; use gdbarch_value_from_register
7440 with null_frame_id instead.
7441 * value.h (address_from_register): Update prototype.
7442 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7443 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7444 address_from_register interface change.
7446 2014-04-17 Yao Qi <yao@codesourcery.com>
7448 * gdbtypes.h: Update comments to link to types and macros'
7451 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7453 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7455 2014-04-16 Keith Seitz <keiths@redhat.com>
7458 * dwarf2read.c (skip_one_die): Check that all relative-offset
7459 sibling DIEs fall within range of the current reader's buffer.
7460 (read_partial_die): Likewise.
7462 2014-04-16 Keith Seitz <keiths@redhat.com>
7465 * cp-namespace.c (lookup_symbol_file): If the type name of
7466 `this' is NULL, return immediately.
7468 2014-04-14 Keith Seitz <keiths@redhat.com>
7471 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7472 from symbol_matches_domain in symtab.c. All local callers
7473 of symbol_matches_domain updated.
7474 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7475 search STRUCT_DOMAIN.
7476 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7477 independently. standard_lookup will do that automatically.
7478 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7479 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7480 (cp_lookup_symbol_in_namespace): Likewise.
7481 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7482 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7483 may return a STRUCT_DOMAIN match.
7484 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7485 * cp-support.c: Include language.h.
7486 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7488 * psymtab.c (match_partial_symbol): Compare the requested
7489 domain with the symbol's domain directly.
7490 (lookup_partial_symbol): Likewise.
7491 * symtab.c (lookup_symbol_in_language): Explain when/why
7492 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7493 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7494 appropriate languages.
7495 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7496 and moved to ada-lang.c
7497 (lookup_block_symbol): Explain that this function only returns
7498 symbol matching the requested DOMAIN.
7499 Compare the requested domain with the symbol's domain directly.
7500 (iterate_over_symbols): Compare the requested domain with the
7501 symbol's domain directly.
7502 * symtab.h (symbol_matches_domain): Remove.
7504 2014-04-14 Tom Tromey <tromey@redhat.com>
7507 * c-exp.y (type_aggregate_p): New function.
7508 (qualified_name, classify_inner_name): Use it.
7509 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7510 and TYPE_TARGET_TYPE of an enum type.
7511 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7513 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7514 handle TYPE_DECLARED_CLASS.
7515 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7517 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7518 * valops.c (enum_constant_from_type): New function.
7519 (value_aggregate_elt): Use it.
7520 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7523 2014-04-14 Tom Tromey <tromey@redhat.com>
7525 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7526 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7528 * value.h (value_aggregate_elt): Update.
7530 2014-04-14 Tom Tromey <tromey@redhat.com>
7532 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7534 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7536 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7537 (evaluate_subexp_standard): Pass noside argument.
7538 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7539 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7540 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7541 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7542 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7544 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7546 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7547 points to a constant blob.
7549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7551 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7552 property and store it as the high bound and flag the range accordingly.
7553 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7554 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7555 * gdbtypes.h (enum range_flags): New enum.
7556 (struct range_bounds): Add flags member.
7558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7560 * c-typeprint.c (c_type_print_varspec_suffix): Added
7561 check for not yet resolved high bound. If unresolved, print
7562 "variable length" string to the console instead of random
7565 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7567 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7569 (ada_template_to_fixed_record_type_1): Likewise.
7570 (ada_to_fixed_type_1): Likewise.
7571 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7572 (cp_print_value): Likewise.
7573 * d-valprint.c (dynamic_array_type): Likewise.
7574 * findvar.c (address_of_variable): Likewise.
7575 * jv-valprint.c (java_value_print): Likewise.
7576 * valops.c (value_ind): Likewise.
7577 * value.c (coerce_ref): Likewise.
7579 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7581 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7582 value and retrieve the dynamic type size.
7584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7586 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7587 passed to sizeof is dynamic evaluate the argument to compute the length.
7589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7590 Joel Brobecker <brobecker@adacore.com>
7592 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7593 (dwarf2_evaluate_property): New function.
7594 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7595 * dwarf2read.c (attr_to_dynamic_prop): New function.
7596 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7598 * gdbtypes.c: Include dwarf2loc.h.
7599 (is_dynamic_type): New function.
7600 (resolve_dynamic_type): New function.
7601 (resolve_dynamic_bounds): New function.
7602 (get_type_length): New function.
7603 (check_typedef): Use get_type_length to compute type length.
7604 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7605 (TYPE_LOW_BOUND_KIND): New macro.
7606 (is_dynamic_type): New function prototype.
7607 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7608 to resolve dynamic properties of the type. Update comment.
7609 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7611 2014-04-14 Richard Henderson <rth@redhat.com>
7613 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7615 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7616 Doug Evans <xdje42@gmail.com>
7618 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7619 dereference TYPE_CODE_REF values.
7621 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7623 Revert the following changes due to regressions:
7625 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7626 (dwarf2_evaluate_property): New function.
7627 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7628 * dwarf2read.c (attr_to_dynamic_prop): New function.
7629 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7631 * gdbtypes.c: Include dwarf2loc.h.
7632 (is_dynamic_type): New function.
7633 (resolve_dynamic_type): New function.
7634 (resolve_dynamic_bounds): New function.
7635 (get_type_length): New function.
7636 (check_typedef): Use get_type_length to compute type length.
7637 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7638 (TYPE_LOW_BOUND_KIND): New macro.
7639 (is_dynamic_type): New function prototype.
7640 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7641 to resolve dynamic properties of the type. Update comment.
7642 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7644 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7645 passed to sizeof is dynamic evaluate the argument to compute the length.
7647 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7648 value and retrieve the dynamic type size.
7650 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7651 (ada_template_to_fixed_record_type_1): Likewise.
7652 (ada_to_fixed_type_1): Likewise.
7653 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7654 (cp_print_value): Likewise.
7655 * d-valprint.c (dynamic_array_type): Likewise.
7656 * eval.c (evaluate_subexp_with_coercion): Likewise.
7657 * findvar.c (address_of_variable): Likewise.
7658 * jv-valprint.c (java_value_print): Likewise.
7659 * valops.c (value_ind): Likewise.
7660 * value.c (coerce_ref): Likewise.
7662 * c-typeprint.c (c_type_print_varspec_suffix): Added
7663 check for not yet resolved high bound. If unresolved, print
7664 "variable length" string to the console instead of random
7667 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7668 property and store it as the high bound and flag the range accordingly.
7669 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7670 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7671 * gdbtypes.h (enum range_flags): New enum.
7672 (struct range_bounds): Add flags member.
7674 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7675 points to a constant blob.
7677 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7678 (evaluate_subexp_standard): Pass noside argument.
7679 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7680 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7681 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7682 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7683 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7685 2014-04-11 Keith Seitz <keiths@redhat.com>
7688 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7689 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7692 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7694 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7695 (evaluate_subexp_standard): Pass noside argument.
7696 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7697 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7698 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7699 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7700 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7702 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7704 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7705 points to a constant blob.
7707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7709 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7710 property and store it as the high bound and flag the range accordingly.
7711 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7712 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7713 * gdbtypes.h (enum range_flags): New enum.
7714 (struct range_bounds): Add flags member.
7716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7718 * c-typeprint.c (c_type_print_varspec_suffix): Added
7719 check for not yet resolved high bound. If unresolved, print
7720 "variable length" string to the console instead of random
7723 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7725 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7726 (ada_template_to_fixed_record_type_1): Likewise.
7727 (ada_to_fixed_type_1): Likewise.
7728 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7729 (cp_print_value): Likewise.
7730 * d-valprint.c (dynamic_array_type): Likewise.
7731 * eval.c (evaluate_subexp_with_coercion): Likewise.
7732 * findvar.c (address_of_variable): Likewise.
7733 * jv-valprint.c (java_value_print): Likewise.
7734 * valops.c (value_ind): Likewise.
7735 * value.c (coerce_ref): Likewise.
7737 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7739 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7740 value and retrieve the dynamic type size.
7742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7744 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7745 passed to sizeof is dynamic evaluate the argument to compute the length.
7747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7750 (dwarf2_evaluate_property): New function.
7751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7752 * dwarf2read.c (attr_to_dynamic_prop): New function.
7753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7755 * gdbtypes.c: Include dwarf2loc.h.
7756 (is_dynamic_type): New function.
7757 (resolve_dynamic_type): New function.
7758 (resolve_dynamic_bounds): New function.
7759 (get_type_length): New function.
7760 (check_typedef): Use get_type_length to compute type length.
7761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7762 (TYPE_LOW_BOUND_KIND): New macro.
7763 (is_dynamic_type): New function prototype.
7764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7765 to resolve dynamic properties of the type. Update comment.
7766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7768 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7770 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7771 declaring high/low bounds and change uses accordingly. Call
7772 create_range_type instead of create_static_range_type.
7773 * gdbtypes.c (create_range_type): New function.
7774 (create_range_type): Convert bounds into struct bound_prop and pass
7775 them to create_range_type.
7776 * gdbtypes.h (struct bound_prop): New struct.
7777 (create_range_type): New function prototype.
7778 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7779 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7780 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7782 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7784 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7786 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7787 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7788 * ada-lang.c: All uses of create_range_type updated.
7789 * coffread.c: All uses of create_range_type updated.
7790 * dwarf2read.c: All uses of create_range_type updated.
7791 * f-exp.y: All uses of create_range_type updated.
7792 * m2-valprint.c: All uses of create_range_type updated.
7793 * mdebugread.c: All uses of create_range_type updated.
7794 * stabsread.c: All uses of create_range_type updated.
7795 * valops.c: All uses of create_range_type updated.
7796 * valprint.c: All uses of create_range_type updated.
7798 2014-04-10 Pedro Alves <palves@redhat.com>
7800 * breakpoint.c (single_step_breakpoints)
7801 (single_step_gdbarch): Move up in the file.
7802 (one_breakpoint_xfer_memory): New function, factored out from ...
7803 (breakpoint_xfer_memory): ... here. Also process single-step
7806 2014-04-09 Tristan Gingold <gingold@adacore.com>
7808 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7810 (darwin_decode_exception_message): Free port only after use.
7812 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7814 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7815 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7816 when setting the size of call_length.
7818 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7820 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7821 dereference TYPE_CODE_REF values.
7823 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7825 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7826 end of warning message.
7828 2014-04-03 Doug Evans <dje@google.com>
7830 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7831 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7833 2014-04-02 Alan Modra <amodra@gmail.com>
7835 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7836 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7837 (struct symbol_file_add_from_memory_args): Add size field.
7838 (find_vdso_size): New function.
7839 (add_vsyscall_page): Attempt to find vdso size.
7841 2014-04-01 Doug Evans <dje@google.com>
7843 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7845 2014-04-01 Tristan Gingold <gingold@adacore.com>
7847 * darwin-nat.c (darwin_encode_reply): Add prototype.
7848 (darwin_decode_exception_message): Reply to unknown inferiors.
7849 (darwin_decode_message): Handle message by id. Ignore message
7850 to unknown inferior.
7851 (darwin_wait): Discard unknown messages, add debug trace.
7853 2014-03-31 Doug Evans <dje@google.com>
7855 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7858 2014-03-31 Doug Evans <dje@google.com>
7860 New option "set print symbol-loading".
7862 * solib.c (solib_read_symbols): Only print symbol loading messages
7864 (solib_add): If symbol loading is in "brief" mode, notify user
7865 symbols are being loaded.
7866 (reload_shared_libraries_1): Ditto.
7867 * symfile.c (print_symbol_loading_off): New static global.
7868 (print_symbol_loading_brief): New static global.
7869 (print_symbol_loading_full): New static global.
7870 (print_symbol_loading_enums): New static global.
7871 (print_symbol_loading): New static global.
7872 (print_symbol_loading_p): New function.
7873 (symbol_file_add_with_addrs): Only print symbol loading messages
7875 (_initialize_symfile): Register "print symbol-loading" set/show
7877 * symfile.h (print_symbol_loading_p): Declare.
7879 2014-03-30 Doug Evans <xdje42@gmail.com>
7881 * infrun.c (set_last_target_status): New function.
7882 (handle_inferior_event): Call it.
7884 2014-03-30 Doug Evans <xdje42@gmail.com>
7886 * inferior.h (enum stop_kind): Improve comment.
7888 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7890 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7891 a reference, strip the reference layer before calling
7892 the lang_ops value_has_mutated callback.
7894 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7896 Remove some globals from our parser.
7897 * language.c (unk_lang_parser): Add "struct parser_state"
7899 * language.h (struct language_defn) <la_parser>: Likewise.
7900 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7901 (initialize_expout): Add "struct parser_state" argument.
7902 Rewrite function to use the parser state.
7903 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7904 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7905 write_exp_elt_longcst, write_exp_elt_dblcst,
7906 write_exp_elt_decfloatcst, write_exp_elt_type,
7907 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7908 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7909 write_dollar_variable): Likewise.
7910 (parse_exp_in_context_1): Use parser state.
7911 (insert_type_address_space): Add "struct parser_state" argument.
7913 (increase_expout_size): New function.
7914 * parser-defs.h: Forward declare "struct language_defn" and
7915 "struct parser_state".
7916 (expout, expout_size, expout_ptr): Remove extern declarations.
7917 (parse_gdbarch, parse_language): Rewrite macro declarations to
7918 accept the parser state.
7919 (struct parser_state): New struct.
7920 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7921 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7922 write_exp_elt_decfloatcst, write_exp_elt_type,
7923 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7924 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7925 write_exp_msymbol, write_dollar_variable,
7926 mark_struct_expression, insert_type_address_space): Add "struct
7927 parser_state" argument.
7928 (increase_expout_size): New function.
7929 * utils.c (do_clear_parser_state): New function.
7930 (make_cleanup_clear_parser_state): Likewise.
7931 * utils.h (make_cleanup_clear_parser_state): New function
7933 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7934 Update calls to write_exp* in order to pass the parser state.
7935 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7936 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7937 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7938 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7939 * stap-probe.c (stap_parse_register_operand): Likewise.
7940 (stap_parse_single_operand): Likewise.
7941 (stap_parse_argument_1): Likewise.
7942 (stap_parse_argument): Use parser state.
7943 * stap-probe.h: Include "parser-defs.h".
7944 (struct stap_parse_info) <pstate>: New field.
7945 * c-exp.y (parse_type): Rewrite to use parser state.
7946 (yyparse): Redefine to c_parse_internal.
7947 (pstate): New global variable.
7948 (parse_number): Add "struct parser_state" argument.
7949 (write_destructor_name): Likewise.
7950 (type_exp): Update calls to write_exp* and similars in order to
7952 (exp1, exp, variable, qualified_name, space_identifier,
7953 typename, typebase): Likewise.
7954 (write_destructor_name, parse_number, lex_one_token,
7955 classify_name, classify_inner_name, c_parse): Add "struct
7956 parser_state" argument. Update function to use parser state.
7957 * c-lang.h: Forward declare "struct parser_state".
7958 (c_parse): Add "struct parser_state" argument.
7959 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7960 (yyparse): Redefine macro to ada_parse_internal.
7961 (pstate): New variable.
7962 (write_int, write_object_renaming, write_var_or_type,
7963 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7964 type_int, type_long, type_long_long, type_float, type_double,
7965 type_long_double, type_char, type_boolean, type_system_address):
7966 Add "struct parser_state" argument.
7967 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7968 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7969 var_or_type, aggregate, aggregate_component_list,
7970 positional_list, others, component_group,
7971 component_associations): Update calls to write_exp* and similar
7972 functions in order to use parser state.
7973 (ada_parse, write_var_from_sym, write_int,
7974 write_exp_op_with_string, write_object_renaming,
7975 find_primitive_type, write_selectors, write_ambiguous_var,
7976 write_var_or_type, write_name_assoc, type_int, type_long,
7977 type_long_long, type_float, type_double, type_long_double,
7978 type_char, type_boolean, type_system_address): Add "struct
7979 parser_state" argument. Adjust function to use parser state.
7980 * ada-lang.c (parse): Likewise.
7981 * ada-lang.h: Forward declare "struct parser_state".
7982 (ada_parse): Add "struct parser_state" argument.
7983 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7984 calls to both functions.
7985 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7987 (yyparse): Redefine macro to f_parse_internal.
7988 (pstate): New variable.
7989 (parse_number): Add "struct parser_state" argument.
7990 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7991 and similars in order to use parser state.
7992 (parse_number): Adjust code to use parser state.
7994 (f_parse): New function.
7995 * f-lang.h: Forward declare "struct parser_state".
7996 (f_parse): Add "struct parser_state" argument.
7997 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7999 (yyparse): Redefine macro for java_parse_internal.
8000 (pstate): New variable.
8001 (push_expression_name, push_expression_name, insert_exp): Add
8002 "struct parser_state" argument.
8003 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8004 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8005 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8006 PostIncrementExpression, PostDecrementExpression,
8007 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8008 UnaryExpressionNotPlusMinus, CastExpression,
8009 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8010 RelationalExpression, EqualityExpression, AndExpression,
8011 ExclusiveOrExpression, InclusiveOrExpression,
8012 ConditionalAndExpression, ConditionalOrExpression,
8013 ConditionalExpression, Assignment, LeftHandSide): Update
8014 calls to write_exp* and similars in order to use parser state.
8015 (parse_number): Ajust code to use parser state.
8017 (java_parse): New function.
8018 (push_variable): Add "struct parser_state" argument. Adjust
8019 code to user parser state.
8020 (push_fieldnames, push_qualified_expression_name,
8021 push_expression_name, insert_exp): Likewise.
8022 * jv-lang.h: Forward declare "struct parser_state".
8023 (java_parse): Add "struct parser_state" argument.
8024 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8026 (yyparse): Redefine macro to m2_parse_internal.
8027 (pstate): New variable.
8028 (type_exp, exp, fblock, variable, type): Update calls to
8029 write_exp* and similars to use parser state.
8031 (m2_parse): New function.
8032 * m2-lang.h: Forward declare "struct parser_state".
8033 (m2_parse): Add "struct parser_state" argument.
8034 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8035 * objc-lang.h: Forward declare "struct parser_state".
8036 (end_msglist): Add "struct parser_state" argument.
8037 * p-exp.y (parse_type): Rewrite macro to use parser state.
8038 (yyparse): Redefine macro to pascal_parse_internal.
8039 (pstate): New variable.
8040 (parse_number): Add "struct parser_state" argument.
8041 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8042 write_exp* and similars in order to use parser state.
8043 (parse_number, yylex): Adjust code to use parser state.
8044 (pascal_parse): New function.
8045 * p-lang.h: Forward declare "struct parser_state".
8046 (pascal_parse): Add "struct parser_state" argument.
8047 * go-exp.y (parse_type): Rewrite macro to use parser state.
8048 (yyparse): Redefine macro to go_parse_internal.
8049 (pstate): New variable.
8050 (parse_number): Add "struct parser_state" argument.
8051 (type_exp, exp1, exp, variable, type): Update calls to
8052 write_exp* and similars in order to use parser state.
8053 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8054 to use parser state.
8055 (go_parse): Likewise.
8056 * go-lang.h: Forward declare "struct parser_state".
8057 (go_parse): Add "struct parser_state" argument.
8059 2014-03-27 Doug Evans <dje@google.com>
8061 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8063 2014-03-27 Doug Evans <dje@google.com>
8065 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8066 Remove argument abbrev_section. All callers updated.
8068 2014-03-27 Doug Evans <dje@google.com>
8070 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8071 addr_base, ranges_base.
8073 2014-03-26 Keith Seitz <keiths@redhat.com>
8075 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8076 types, not VAR_DOMAIN.
8078 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8080 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8082 * features/nios2-linux.c: Regenerated.
8083 * features/nios2.c: Regenerated.
8085 2014-03-25 Pedro Alves <palves@redhat.com>
8087 * cli/cli-script.c (script_from_file): Force the interpreter to
8090 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8092 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8093 small stack allocation.
8095 2014-03-24 Tristan Gingold <gingold@adacore.com>
8097 * darwin-nat.c (exc_server): Remove unused prototype.
8098 (darwin_dump_message): Correctly display data on x86_64.
8099 (darwin_encode_reply): Fix style.
8100 Add comments and fix indentation.
8102 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8104 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8106 2014-03-22 Doug Evans <xdje42@gmail.com>
8108 * infcmd.c: Whitespace fixes.
8109 (interrupt_command): Merge two function comments into one.
8111 2014-03-22 Doug Evans <xdje42@gmail.com>
8113 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8116 2014-03-22 Yao Qi <yao@codesourcery.com>
8118 * remote.c (target_read_live_memory): Remove.
8119 (memory_xfer_live_readonly_partial): Rename it to
8120 remote_xfer_live_readonly_partial. Remove argument 'object'.
8121 All callers updated. Call remote_read_bytes_1
8122 instead of target_read_live_memory.
8123 * tracepoint.c (set_traceframe_number): Remove.
8124 (make_cleanup_restore_traceframe_number): Likewise .
8125 * tracepoint.h (set_traceframe_number): Remove declaration.
8126 (make_cleanup_restore_traceframe_number): Likewise.
8128 2014-03-22 Yao Qi <yao@codesourcery.com>
8130 * remote.c (remote_read_bytes): Move code on reading from the
8132 (remote_read_bytes_1): ... here. New function.
8134 2014-03-22 Yao Qi <yao@codesourcery.com>
8136 * ctf.c (ctf_xfer_partial): Check the return value of
8137 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8138 return TARGET_XFER_UNAVAILABLE.
8139 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8140 * target.c (target_read_live_memory): Move it to remote.c.
8141 (memory_xfer_live_readonly_partial): Likewise.
8142 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8143 * remote.c (target_read_live_memory): Moved from target.c.
8144 (memory_xfer_live_readonly_partial): Likewise.
8145 (remote_read_bytes): Factored out from
8146 memory_xfer_partial_1.
8148 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8150 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8153 2014-03-21 Pedro Alves <palves@redhat.com>
8155 * infrun.c (normal_stop): Extend comment.
8157 2014-03-21 Hui Zhu <hui@codesourcery.com>
8158 Pedro Alves <palves@redhat.com>
8160 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8162 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8163 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8164 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8166 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8168 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8169 `z' formatted output modifier.
8171 2014-03-20 Tom Tromey <tromey@redhat.com>
8172 Sergio Durigan Junior <sergiodj@redhat.com>
8174 * probe.c (parse_probes): Turn assert into an ordinary error.
8175 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8176 exceptions when parsing probes. Rearrange the code for clarity.
8178 2014-03-20 Tom Tromey <tromey@redhat.com>
8181 * top.c (execute_command): Only dispatch events if the command
8184 2014-03-20 Tom Tromey <tromey@redhat.com>
8187 * infcall.c: Include event-top.h.
8188 (run_inferior_call): Call async_disable_stdin if needed.
8190 2014-03-20 Pedro Alves <palves@redhat.com>
8192 * infrun.c (prepare_to_proceed): Delete.
8193 (thread_still_needs_step_over): New function.
8194 (find_thread_needs_step_over): New function.
8195 (proceed): If the current thread needs a step-over, set its
8196 steping_over_breakpoint flag. Adjust to use
8197 find_thread_needs_step_over instead of prepare_to_proceed.
8198 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8199 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8201 (switch_back_to_stepped_thread): Step over breakpoints of all
8202 threads not the stepping thread, before switching back to the
8205 2014-03-20 Pedro Alves <palves@redhat.com>
8207 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8209 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8210 * infrun.c (saved_singlestep_ptid)
8211 (stepping_past_singlestep_breakpoint): Delete.
8212 (resume): Remove stepping_past_singlestep_breakpoint handling.
8213 (proceed): Store the prev_pc of the stepping thread too.
8214 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8216 (enum infwait_states): Delete infwait_thread_hop_state.
8217 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8219 (handle_inferior_event): Adjust.
8220 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8221 handling and the thread-hop code. Before removing single-step
8222 breakpoints, check whether the thread hit a single-step breakpoint
8223 of another thread. If it did, the trap is not a random signal.
8224 (switch_back_to_stepped_thread): If the event thread hit a
8225 single-step breakpoint, unblock it before switching to the
8226 stepping thread. Handle the case of the stepped thread having
8228 (keep_going): Handle the case of the current thread moving past a
8229 single-step breakpoint.
8231 2014-03-20 Pedro Alves <palves@redhat.com>
8234 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8235 are being stepped over.
8236 (breakpoint_address_match): Make extern.
8237 * breakpoint.h (breakpoint_address_match): New declaration.
8238 * inferior.h (stepping_past_instruction_at): New declaration.
8239 * infrun.c (struct step_over_info): New type.
8240 (step_over_info): New global.
8241 (set_step_over_info, clear_step_over_info)
8242 (stepping_past_instruction_at): New functions.
8243 (handle_inferior_event): Clear the step-over info when
8244 trap_expected is cleared.
8245 (resume): Remove now stale comment.
8246 (clear_proceed_status): Clear step-over info.
8247 (proceed): Adjust step-over handling to set or clear the step-over
8248 info instead of removing all breakpoints.
8249 (handle_signal_stop): When setting up a thread-hop, don't remove
8251 (stop_stepping): Clear step-over info.
8252 (keep_going): Adjust step-over handling to set or clear step-over
8253 info and then always inserting breakpoints, instead of removing
8254 all breakpoints when stepping over one.
8256 2014-03-20 Pedro Alves <palves@redhat.com>
8258 * infrun.c (previous_inferior_ptid): Adjust comment.
8259 (deferred_step_ptid): Delete.
8260 (infrun_thread_ptid_changed, prepare_to_proceed)
8261 (init_wait_for_inferior): Adjust.
8262 (handle_signal_stop): Delete deferred_step_ptid handling.
8264 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8267 * defs.h (sync_quit_force_run): New declaration.
8268 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8269 * event-top.c (async_sigterm_handler): New declaration.
8270 (async_sigterm_token): New variable.
8271 (async_init_signals): Create also async_sigterm_token.
8272 (async_sigterm_handler): New function.
8273 (sync_quit_force_run): New variable.
8274 (handle_sigterm): Replace quit_force call by other calls.
8275 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8277 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8279 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8280 offset into SPE pseudo registers.
8282 2014-03-18 Pedro Alves <palves@redhat.com>
8285 * inferior.h (print_stop_event): Declare.
8286 * infrun.c (print_stop_event): New, factored out from ...
8287 (normal_stop): ... this.
8288 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8289 of bpstat_print/print_stack_frame.
8291 2014-03-17 Tom Tromey <tromey@redhat.com>
8293 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8295 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8297 * ada-lang.c (decode_constrained_packed_array): Perform a
8298 minimal coercion for reference with coerce_ref instead of
8301 2014-03-17 Tristan Gingold <gingold@adacore.com>
8303 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8304 (darwin_solib_create_inferior_hook): Emit a warning if version
8307 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8309 * python/py-value.c (get_field_flag): Cast flag_name argument to
8310 PyObject_GetAttrString to support Python 2.4.
8312 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8315 (Global Maintainers): Remove Jan Kratochvil.
8317 2014-03-14 Pedro Alves <palves@redhat.com>
8319 * inferior.h (terminal_ours_for_output): Rename to ...
8320 (child_terminal_ours_for_output): ... this.
8321 (terminal_save_ours): Rename to ...
8322 (child_terminal_save_ours): ... this.
8323 (terminal_ours): Rename to ...
8324 (child_terminal_ours): ... this.
8325 (terminal_inferior): Rename to ...
8326 (child_terminal_inferior): ... this.
8327 (terminal_init_inferior): Rename to ...
8328 (child_terminal_init_inferior): ... this.
8329 (terminal_init_inferior_with_pgrp): Rename to ...
8330 (child_terminal_init_inferior_with_pgrp): ... this.
8331 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8332 (child_terminal_init_with_pgrp): ... this.
8333 (terminal_save_ours): Rename to ...
8334 (child_terminal_save_ours): ... this.
8335 (terminal_init_inferior): Rename to ...
8336 (child_terminal_init): ... this. Adjust.
8337 (terminal_inferior): Rename to ...
8338 (child_terminal_inferior): ... this.
8339 (terminal_ours_for_output): Rename to ...
8340 (child_terminal_ours_for_output): ... this. Adjust.
8341 (terminal_ours): Rename to ...
8342 (child_terminal_ours): ... this.
8343 (terminal_ours_1): Rename to ...
8344 (child_terminal_ours_1): ... this. Adjust.
8345 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8346 * windows-nat.c (do_initial_windows_stuff): Adjust.
8347 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8348 (gnu_terminal_init): ... this. Adjust.
8349 (gnu_target): Adjust.
8350 * inf-child.c (inf_child_target): Adjust.
8352 2014-03-13 Doug Evans <xdje42@gmail.com>
8355 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8358 2014-03-13 Doug Evans <xdje42@gmail.com>
8360 * value.c (record_latest_value): Call release_value_or_incref
8361 instead of release_value.
8363 2014-03-13 Pedro Alves <palves@redhat.com>
8365 * procfs.c (procfs_target): Don't override to_shortname,
8366 to_longname or to_doc.
8368 2014-03-13 Pedro Alves <palves@redhat.com>
8370 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8371 Unix in user visible strings.
8373 2014-03-12 Stan Shebs <stan@codesourcery.com>
8375 * gdbtypes.h: Annotate comments for Doxygen, add a page
8376 block comment with some general info.
8378 2014-03-12 Pedro Alves <palves@redhat.com>
8380 * infcmd.c (prepare_execution_command): New function, factored out
8381 from several execution commands.
8382 (run_command_1, continue_command, step_1, jump_command)
8383 (signal_command, until_command, advance_command, finish_command)
8384 (attach_command): Use prepare_execution_command.
8386 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8388 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8391 (struct arm_linux_thread_points): Removed.
8392 (struct arm_linux_process_info): New.
8393 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8394 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8395 (arm_linux_find_breakpoints_by_tid): Removed.
8396 (struct arch_lwp_info): New.
8397 (arm_linux_find_process_pid): New functions.
8398 (arm_linux_add_process): New functions.
8399 (arm_linux_process_info_get): New functions.
8400 (arm_linux_forget_process): New function.
8401 (arm_linux_get_debug_reg_state): New function.
8402 (struct update_registers_data): New.
8403 (update_registers_callback): New function.
8404 (arm_linux_insert_hw_breakpoint1): Updated.
8405 (arm_linux_remove_hw_breakpoint1): Updated.
8406 (arm_linux_insert_hw_breakpoint): Updated.
8407 (arm_linux_remove_hw_breakpoint): Updated.
8408 (arm_linux_insert_watchpoint): Updated.
8409 (arm_linux_remove_watchpoint): Updated.
8410 (arm_linux_new_thread): Updated.
8411 (arm_linux_prepare_to_resume): New function.
8412 (arm_linux_new_fork): New function.
8413 (_initialize_arm_linux_nat): Updated.
8415 2014-03-12 Pedro Alves <palves@redhat.com>
8417 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8419 2014-03-12 Tom Tromey <tromey@redhat.com>
8421 * inf-child.c (return_zero): New function.
8422 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8423 * aix-thread.c (aix_thread_inferior_created): New function.
8424 (aix_thread_attach): Remove.
8425 (init_aix_thread_ops): Don't set to_attach.
8426 (_initialize_aix_thread): Register inferior_created observer.
8427 * corelow.c (init_core_ops): Don't set to_attach or
8429 * exec.c (init_exec_ops): Don't set to_attach or
8431 * infcmd.c (run_command_1): Use find_run_target. Make direct
8433 (attach_command): Use find_attach_target. Make direct target
8435 * record-btrace.c (init_record_btrace_ops): Don't set
8437 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8439 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8440 set to_create_inferior.
8441 * target.c (complete_target_initialization): Add assertion.
8442 (target_create_inferior): Remove.
8443 (find_default_attach, find_default_create_inferior): Remove.
8444 (find_attach_target, find_run_target): New functions.
8445 (find_default_is_async_p, find_default_can_async_p)
8446 (target_supports_non_stop, target_attach): Remove.
8447 (init_dummy_target): Don't set to_create_inferior or
8448 to_supports_non_stop.
8449 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8450 TARGET_DEFAULT_FUNC.
8451 <to_create_inferior>: Add comment.
8452 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8453 TARGET_DEFAULT_RETURN.
8454 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8455 (find_attach_target, find_run_target): Declare.
8456 (target_create_inferior): Remove.
8457 (target_has_execution_1): Update comment.
8458 (target_supports_non_stop): Remove.
8459 * target-delegates.c: Rebuild.
8461 2014-03-12 Pedro Alves <palves@redhat.com>
8463 * inf-child.h: Update comment to not mention Unix.
8465 2014-03-12 Pedro Alves <palves@redhat.com>
8467 * inf-child.c: Update top comment to not mention Unix. Add
8468 generic comment describing how this target is meant to be used.
8469 (inf_child_post_attach, inf_child_post_startup_inferior)
8470 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8473 2014-03-12 Pedro Alves <palves@redhat.com>
8475 * nto-procfs.c: Include inf-child.h.
8476 (procfs_ops): Delete global.
8477 (procfs_can_run): Delete method.
8478 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8479 target pointer instead of referencing procfs_ops.
8480 (procfs_prepare_to_store): Delete.
8481 (init_procfs_ops): Delete function.
8482 (procfs_target): New function, based on init_procfs_ops, but
8483 inherit inf_child_target.
8484 (_initialize_procfs): Use procfs_target.
8486 2014-03-12 Pedro Alves <palves@redhat.com>
8488 * windows-nat.c: Include inf-child.h.
8489 (windows_ops): Delete global.
8490 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8492 (init_windows_ops): Delete function.
8493 (windows_target): New function, based on init_windows_ops, but
8494 inherit inf_child_target.
8495 (_initialize_windows_nat): Use windows_target. Install x86
8496 specific target methods here.
8498 2014-03-10 Doug Evans <xdje42@gmail.com>
8500 * guile/guile.c (call_initialize_gdb_module): New function.
8501 (initialize_guile): Replace call to scm_init_guile with call to
8504 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8506 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8507 in call to TYPE_CODE macro.
8509 2014-03-10 Jerome Guitton <guitton@adacore.com>
8511 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8512 Resolve tagged types to full view.
8514 2014-03-10 Hui Zhu <hui@codesourcery.com>
8516 * target.h (target_insert_breakpoint): Remove "hardware" from its
8519 2014-03-07 Doug Evans <dje@google.com>
8521 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8523 2014-03-07 Doug Evans <dje@google.com>
8525 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8526 Remove unused local comp_dir_attr. Assert exactly one of
8527 stub_comp_unit_die, stub_comp_dir is non-NULL.
8529 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8531 * target.h (complete_target_initialization, add_target):
8534 2014-03-07 Pedro Alves <palves@redhat.com>
8536 * go32-nat.c: Include inf-child.h.
8537 (go32_ops): Delete global.
8538 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8540 (go32_create_inferior): Push the passed in target pointer instead
8541 of referencing go32_ops.
8542 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8543 (go32_target): New function, based on init_go32_ops, but inherit
8545 (_initialize_go32_nat): Use go32_target. Move parts of
8548 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8550 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8551 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8552 SYMBOL_VALUE_ADDRESS.
8553 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8555 2014-03-06 Yao Qi <yao@codesourcery.com>
8557 * breakpoint.c (get_tracepoint_by_number): Remove argument
8558 optional_p. All callers updated. Adjust comments. Update
8560 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8562 2014-03-06 Yao Qi <yao@codesourcery.com>
8564 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8565 early if get_number returns zero. Use 'p' instead of 'args'.
8567 2014-03-06 Yao Qi <yao@codesourcery.com>
8569 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8572 2014-03-06 Yao Qi <yao@codesourcery.com>
8574 PR breakpoints/16508
8575 * tracepoint.c (check_trace_running): New function.
8576 (trace_find_command): Move code to check_trace_running and
8577 call check_trace_running.
8578 (trace_find_pc_command): Likewise.
8579 (trace_find_tracepoint_command): Likewise.
8580 (trace_find_line_command): Likewise.
8581 (trace_find_range_command): Likewise.
8582 * tracepoint.h (check_trace_running): Likewise.
8583 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8585 2014-03-06 Yao Qi <yao@codesourcery.com>
8587 * target.h (struct target_ops) <to_traceframe_info>: Use
8588 TARGET_DEFAULT_NORETURN (tcomplain ()).
8589 * target-delegates.c: Regenerated.
8591 2014-03-05 Pedro Alves <palves@redhat.com>
8594 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8595 void. Update comment.
8596 (dcache_xfer_memory): Delete.
8597 (dcache_read_memory_partial): New, based on the read bits of
8599 (dcache_update): Add status parameter. Use ULONGEST for len, and
8600 adjust. Discard cache lines if the reason for the update was
8602 * dcache.h (dcache_xfer_memory): Delete declaration.
8603 (dcache_read_memory_partial): New declaration.
8604 (dcache_update): Update prototype.
8605 * target.c (raw_memory_xfer_partial): Update the dcache here.
8606 (memory_xfer_partial_1): Don't handle dcache writes here.
8608 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8610 * remote-sim.c (gdbsim_load): Add const to prog.
8612 2014-03-03 Tom Tromey <tromey@redhat.com>
8614 * elfread.c (probe_key): Change to bfd_data.
8615 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8616 now per-BFD, not per-objfile.
8617 * stap-probe.c (stap_probe_destroy): Update comment.
8618 (handle_stap_probe): Allocate on the per-BFD obstack.
8620 2014-03-03 Tom Tromey <tromey@redhat.com>
8622 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8623 * breakpoint.c (create_longjmp_master_breakpoint): Use
8625 (add_location_to_breakpoint, bkpt_probe_insert_location)
8626 (bkpt_probe_remove_location): Update.
8627 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8628 * elfread.c (elf_symfile_relocate_probe): Remove.
8629 (elf_probe_fns): Update.
8630 (insert_exception_resume_breakpoint): Change type of "probe"
8631 parameter to bound_probe.
8632 (check_exception_resume): Update.
8633 * objfiles.c (objfile_relocate1): Don't relocate probes.
8634 * probe.c (bound_probe_s): New typedef.
8635 (parse_probes): Use get_probe_address. Set sal's objfile.
8636 (find_probe_by_pc): Return a bound_probe.
8637 (collect_probes): Return a VEC(bound_probe_s).
8638 (compare_probes): Update.
8639 (gen_ui_out_table_header_info): Change type of "probes"
8641 (info_probes_for_ops): Update.
8642 (get_probe_address): New function.
8643 (probe_safe_evaluate_at_pc): Update.
8644 * probe.h (struct probe_ops) <get_probe_address>: New field.
8645 <set_semaphore, clear_semaphore>: Add objfile parameter.
8646 (struct probe) <objfile>: Remove field.
8648 <address>: Update comment.
8649 (struct bound_probe): New.
8650 (find_probe_by_pc): Return a bound_probe.
8651 (get_probe_address): Declare.
8652 * solib-svr4.c (struct probe_and_action) <address>: New field.
8653 (hash_probe_and_action, equal_probe_and_action): Update.
8654 (register_solib_event_probe): Add address parameter.
8655 (solib_event_probe_at): Update.
8656 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8658 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8659 (stap_get_probe_address): New function.
8660 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8661 (compile_probe_arg): Update.
8662 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8664 (handle_stap_probe): Don't relocate the probe.
8665 (stap_relocate): Remove.
8666 (stap_gen_info_probes_table_values): Update.
8667 (stap_probe_ops): Remove stap_relocate.
8668 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8669 (debug_sym_probe_fns): Update.
8670 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8671 * symtab.c (init_sal): Use memset.
8672 * symtab.h (struct symtab_and_line) <objfile>: New field.
8673 * tracepoint.c (start_tracing, stop_tracing): Update.
8675 2014-03-03 Tom Tromey <tromey@redhat.com>
8677 * probe.h (parse_probes, find_probe_by_pc)
8678 (find_probes_in_objfile): Fix comments.
8680 2014-03-02 Doug Evans <xdje42@gmail.com>
8682 * infrun.c (handle_signal_stop): Replace test for
8683 TARGET_WAITKIND_STOPPED with an assert.
8685 2014-03-02 Doug Evans <xdje42@gmail.com>
8687 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8689 2014-03-02 Doug Evans <xdje42@gmail.com>
8691 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8693 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8695 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8697 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8699 * i386obsd-nat.c: Include "obsd-nat.h".
8700 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8702 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8704 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8706 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8708 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8710 * mips64obsd-nat.c: Include "obsd-nath".
8711 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8713 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8715 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8717 * amd64obsd-nat.c: Include "obsd-nat,h.
8718 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8720 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8722 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8724 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8725 (find_overload_match): Update call to find_oload_champ.
8726 (find_oload_champ_namespace_loop): Likewise
8728 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8730 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8732 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8733 * config/sparc/obsd64.mh: New file.
8734 * sparc64obsd-nat.c: New file.
8736 * obsd-nat.h: New file.
8737 * obsd-nat.c: New file.
8738 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8739 (ALLDEPFILES): Add obsd-nat.c.
8741 2014-02-28 Tom Tromey <tromey@redhat.com>
8743 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8744 * cli-out.h (cli_ui_out_impl): Now const.
8745 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8746 * ui-out.c (struct ui_out) <impl>: Now const.
8747 (default_ui_out_impl): Now const.
8748 (ui_out_new): Make 'impl' parameter const.
8749 * ui-out.h (ui_out_new): Update.
8751 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8753 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8755 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8757 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8759 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8761 Additional PR 8882 fix.
8762 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8764 2014-02-27 Pedro Alves <palves@redhat.com>
8766 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8769 2014-02-27 Pedro Alves <palves@redhat.com>
8772 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8773 * nat/linux-waitpid.c: Include string.h.
8774 (status_to_str): Moved here and made extern.
8775 * nat/linux-waitpid.h (status_to_str): New declaration.
8777 2014-02-27 Hui Zhu <hui@codesourcery.com>
8780 * infrun.c (ptid_match): Move ...
8781 * common/ptid.c (ptid_match): ... here.
8782 * inferior.h (ptid_match): Move ...
8783 * common/ptid.h (ptid_match): ... here.
8785 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8787 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8788 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8791 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8793 * obsd-tdep.c (obsd_auxv_parse): New function.
8794 (obsd_init_abi): Set auxv_parse.
8796 * gdbarch.sh (auxv_parse): New.
8797 * gdbarch.h: Regenerated.
8798 * gdbarch.c: Regenerated.
8799 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8801 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8803 * guile/scm-value.c (gdbscm_history_append_x): New function.
8804 (value_functions): Add it.
8806 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8808 * dwarf2read.c (attr_value_as_address): New function.
8809 (dwarf2_find_base_address, read_call_site_scope): Use
8810 attr_value_as_address in place of DW_ADDR.
8811 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8812 the low and high addresses. Slight rework of the handling
8813 of the high pc being a constant form, and limit it to
8814 DWARF verson 4 or higher.
8815 (dwarf2_record_block_ranges): Likewise.
8816 (read_partial_die): Likewise.
8817 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8819 2014-02-26 Tom Tromey <tromey@redhat.com>
8821 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8823 2014-02-26 Tom Tromey <tromey@redhat.com>
8825 * elfread.c (elf_read_minimal_symbols): Return early if
8826 minimal symbols have already been read. Add "ei" parameter.
8827 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8828 * minsyms.c (prim_record_minimal_symbol_full): Update.
8829 * objfiles.h (struct objstats) <n_minsyms>: Move...
8830 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8831 * symmisc.c (print_objfile_statistics): Update.
8833 2014-02-26 Tom Tromey <tromey@redhat.com>
8835 * elfread.c (elf_read_minimal_symbols): New function, from
8837 (elf_symfile_read): Call it.
8839 2014-02-26 Tom Tromey <tromey@redhat.com>
8841 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8842 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8843 (lookup_minimal_symbol_solib_trampoline)
8844 (lookup_minimal_symbol_by_pc_section_1)
8845 (lookup_minimal_symbol_and_objfile): Update.
8846 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8847 Don't allocate a minimal symbol if minsyms have already been read.
8848 (build_minimal_symbol_hash_tables): Update.
8849 (install_minimal_symbols): Do nothing if minsyms already read.
8850 Use the per-BFD obstack.
8851 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8852 * objfiles.c (allocate_objfile): Call
8853 terminate_minimal_symbol_table later.
8854 (have_minimal_symbols): Update.
8855 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8856 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8857 Move from struct objfile.
8858 <minsyms_read>: New field.
8859 (struct objfile) <msymbols, minimal_symbol_count,
8860 msymbol_hash, msymbol_demangled_hash>: Move.
8861 (ALL_OBJFILE_MSYMBOLS): Update.
8862 * symfile.c (read_symbols): Set minsyms_read.
8863 (reread_symbols): Update.
8864 * symmisc.c (dump_objfile, dump_msymbols): Update.
8866 2014-02-26 Tom Tromey <tromey@redhat.com>
8868 * minsyms.c (msymbols_sort): Remove.
8869 * minsyms.h (msymbols_sort): Remove.
8870 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8871 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8872 * elfread.c (elf_symtab_read): Don't add section offsets.
8873 * xcoffread.c (record_minimal_symbol): Don't add section offset
8874 to minimal symbol address.
8875 * somread.c (text_offset, data_offset): Remove.
8876 (som_symtab_read): Don't add section offsets to minimal symbol
8878 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8879 Don't add section offsets to minimal symbols.
8880 * coffread.c (coff_symtab_read): Don't add section offsets
8881 to minimal symbol addresses.
8882 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8883 to minimal symbol addresses.
8884 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8885 section offset to minimal symbol addresses.
8886 * mdebugread.c (parse_partial_symbols): Don't add section
8887 offset to minimal symbol addresses.
8888 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8889 offset to minimal symbol addresses.
8891 2014-02-26 Tom Tromey <tromey@redhat.com>
8893 * ada-lang.c (ada_main_name): Update.
8894 (ada_add_standard_exceptions): Update.
8895 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8896 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8897 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8898 * auxv.c (ld_so_xfer_auxv): Update.
8899 * avr-tdep.c (avr_scan_prologue): Update.
8900 * ax-gdb.c (gen_var_ref): Update.
8901 * blockframe.c (get_pc_function_start)
8902 (find_pc_partial_function_gnu_ifunc): Update.
8903 * breakpoint.c (create_overlay_event_breakpoint)
8904 (create_longjmp_master_breakpoint)
8905 (create_std_terminate_master_breakpoint)
8906 (create_exception_master_breakpoint): Update.
8907 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8908 * c-valprint.c (c_val_print): Update.
8909 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8910 * common/agent.c (agent_look_up_symbols): Update.
8911 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8912 * dwarf2loc.c (call_site_to_target_addr): Update.
8913 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8914 * elfread.c (elf_gnu_ifunc_record_cache)
8915 (elf_gnu_ifunc_resolve_by_got): Update.
8916 * findvar.c (default_read_var_value): Update.
8917 * frame.c (inside_main_func): Update.
8918 * frv-tdep.c (frv_frame_this_id): Update.
8919 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8920 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8922 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8923 (hppa_hpux_find_dummy_bpaddr): Update.
8924 * hppa-tdep.c (hppa_symbol_address): Update.
8925 * infcmd.c (until_next_command): Update.
8926 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8928 * linespec.c (minsym_found, add_minsym): Update.
8929 * linux-nat.c (get_signo): Update.
8930 * linux-thread-db.c (inferior_has_bug): Update.
8931 * m32c-tdep.c (m32c_return_value)
8932 (m32c_m16c_address_to_pointer): Update.
8933 * m32r-tdep.c (m32r_frame_this_id): Update.
8934 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8935 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8936 * maint.c (maintenance_translate_address): Update.
8937 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8938 (frob_address): New function.
8939 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8940 frob_address. Rename parameter to "pc_in".
8941 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8943 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8945 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8946 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8947 * objc-lang.c (find_objc_msgsend): Update.
8948 * objfiles.c (objfile_relocate1): Update.
8949 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8950 * p-valprint.c (pascal_val_print): Update.
8951 * parse.c (write_exp_msymbol): Update.
8952 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8953 (ppc_elfv2_skip_entrypoint): Update.
8954 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8955 * printcmd.c (build_address_symbolic, msym_info)
8956 (address_info): Update.
8957 * proc-service.c (ps_pglobal_lookup): Update.
8958 * psymtab.c (find_pc_sect_psymtab_closer)
8959 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8960 Change msymbol parameter to bound_minimal_symbol.
8961 * ravenscar-thread.c (get_running_thread_id): Update.
8962 * remote.c (remote_check_symbols): Update.
8963 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8965 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8966 * solib-dsbt.c (lm_base): Update.
8967 * solib-frv.c (lm_base, main_got): Update.
8968 * solib-irix.c (locate_base): Update.
8969 * solib-som.c (som_solib_create_inferior_hook)
8970 (link_map_start): Update.
8971 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8972 * solib-svr4.c (elf_locate_base, enable_break): Update.
8973 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8974 (flush_ea_cache): Update.
8975 * stabsread.c (define_symbol, scan_file_globals): Update.
8976 * stack.c (find_frame_funname): Update.
8977 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8978 (debug_qf_find_pc_sect_symtab): Update.
8979 * symfile.c (simple_read_overlay_table)
8980 (simple_overlay_update): Update.
8981 * symfile.h (struct quick_symbol_functions)
8982 <find_pc_sect_symtab>: Change type of msymbol to
8983 bound_minimal_symbol.
8984 * symmisc.c (dump_msymbols): Update.
8985 * symtab.c (find_pc_sect_symtab_via_partial)
8986 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8987 (search_symbols, print_msymbol_info): Update.
8988 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8989 (MSYMBOL_VALUE_ADDRESS): Redefine.
8990 (BMSYMBOL_VALUE_ADDRESS): New macro.
8991 * tracepoint.c (scope_info): Update.
8992 * tui/tui-disasm.c (tui_find_disassembly_address)
8993 (tui_get_begin_asm_address): Update.
8994 * valops.c (find_function_in_inferior): Update.
8995 * value.c (value_static_field, value_fn_field): Update.
8997 2014-02-26 Tom Tromey <tromey@redhat.com>
8999 * ada-lang.c (ada_update_initial_language): Update.
9000 (ada_main_name, ada_has_this_exception_support): Update.
9001 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9002 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9003 * arm-tdep.c (arm_skip_stub): Update.
9004 * auxv.c (ld_so_xfer_auxv): Update.
9005 * avr-tdep.c (avr_scan_prologue): Update.
9006 * ax-gdb.c (gen_var_ref): Update.
9007 * breakpoint.c (struct breakpoint_objfile_data)
9008 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9009 type to bound_minimal_symbol.
9010 (create_overlay_event_breakpoint)
9011 (create_longjmp_master_breakpoint)
9012 (create_std_terminate_master_breakpoint)
9013 (create_exception_master_breakpoint): Update.
9014 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9015 * c-exp.y (classify_name): Update.
9016 * coffread.c (coff_symfile_read): Update.
9017 * common/agent.c (agent_look_up_symbols): Update.
9018 * d-lang.c (d_main_name): Update.
9019 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9020 * dec-thread.c (enable_dec_thread): Update.
9021 * dwarf2loc.c (call_site_to_target_addr): Update.
9022 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9023 * eval.c (evaluate_subexp_standard): Update.
9024 * findvar.c (struct minsym_lookup_data) <result>: Change type
9025 to bound_minimal_symbol.
9027 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9028 * frame.c (inside_main_func): Update.
9029 * frv-tdep.c (frv_frame_this_id): Update.
9030 * gcore.c (call_target_sbrk): Update.
9031 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9032 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9034 * go-lang.c (go_main_name): Update.
9035 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9036 (hppa_hpux_find_import_stub_for_addr): Update.
9037 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9038 Update. Change return type.
9039 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9041 * jit.c (jit_breakpoint_re_set_internal): Update.
9042 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9044 * linux-nat.c (get_signo): Update.
9045 * linux-thread-db.c (inferior_has_bug): Update
9046 * m32c-tdep.c (m32c_return_value)
9047 (m32c_m16c_address_to_pointer): Update.
9048 * m32r-tdep.c (m32r_frame_this_id): Update.
9049 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9050 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9051 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9052 lookup_minimal_symbol. Change return type.
9053 (lookup_minimal_symbol): Remove.
9054 (lookup_bound_minimal_symbol): Update.
9055 (lookup_minimal_symbol_text): Change return type.
9056 (lookup_minimal_symbol_solib_trampoline): Change return type.
9057 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9058 (lookup_minimal_symbol_solib_trampoline): Change return type.
9059 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9060 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9061 (value_nsstring, find_imps): Update.
9062 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9063 * p-lang.c (pascal_main_name): Update.
9064 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9065 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9066 * proc-service.c (ps_pglobal_lookup): Update.
9067 * ravenscar-thread.c (get_running_thread_msymbol): Change
9069 (has_ravenscar_runtime, get_running_thread_id): Update.
9070 * remote.c (remote_check_symbols): Update.
9071 * sol-thread.c (ps_pglobal_lookup): Update.
9072 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9073 * solib-dsbt.c (lm_base): Update.
9074 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9076 * solib-irix.c (locate_base): Update.
9077 * solib-som.c (som_solib_create_inferior_hook)
9078 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9080 * solib-spu.c (spu_enable_break): Update.
9081 * solib-svr4.c (elf_locate_base, enable_break): Update.
9082 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9083 (flush_ea_cache): Update.
9084 * stabsread.c (define_symbol): Update.
9085 * symfile.c (simple_read_overlay_table): Update.
9086 * symtab.c (find_pc_sect_line): Update.
9087 * tracepoint.c (scope_info): Update.
9088 * tui-disasm.c (tui_get_begin_asm_address): Update.
9089 * value.c (value_static_field): Update.
9091 2014-02-26 Tom Tromey <tromey@redhat.com>
9093 * minsyms.c (prim_record_minimal_symbol_full): Use
9094 SET_MSYMBOL_VALUE_ADDRESS.
9095 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9096 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9097 SET_MSYMBOL_VALUE_ADDRESS.
9098 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9099 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9101 2014-02-26 Tom Tromey <tromey@redhat.com>
9103 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9104 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9105 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9106 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9107 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9108 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9109 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9110 * ada-lang.c (ada_main_name): Update.
9111 (ada_lookup_simple_minsym): Update.
9112 (ada_make_symbol_completion_list): Update.
9113 (ada_add_standard_exceptions): Update.
9114 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9115 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9116 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9117 * arm-tdep.c (skip_prologue_function): Update.
9118 (arm_skip_stack_protector, arm_skip_stub): Update.
9119 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9120 (arm_wince_skip_main_prologue): Update.
9121 * auxv.c (ld_so_xfer_auxv): Update.
9122 * avr-tdep.c (avr_scan_prologue): Update.
9123 * ax-gdb.c (gen_var_ref): Update.
9124 * block.c (call_site_for_pc): Update.
9125 * blockframe.c (get_pc_function_start): Update.
9126 (find_pc_partial_function_gnu_ifunc): Update.
9127 * breakpoint.c (create_overlay_event_breakpoint): Update.
9128 (create_longjmp_master_breakpoint): Update.
9129 (create_std_terminate_master_breakpoint): Update.
9130 (create_exception_master_breakpoint): Update.
9131 (resolve_sal_pc): Update.
9132 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9133 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9135 * c-valprint.c (c_val_print): Update.
9136 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9137 * coffread.c (coff_symfile_read): Update.
9138 * common/agent.c (agent_look_up_symbols): Update.
9139 * dbxread.c (find_stab_function_addr): Update.
9140 (end_psymtab): Update.
9141 * dwarf2loc.c (call_site_to_target_addr): Update.
9142 (func_verify_no_selftailcall): Update.
9143 (tailcall_dump): Update.
9144 (call_site_find_chain_1): Update.
9145 (dwarf_expr_reg_to_entry_parameter): Update.
9146 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9147 (elf_gnu_ifunc_resolve_by_got): Update.
9148 * f-valprint.c (info_common_command): Update.
9149 * findvar.c (read_var_value): Update.
9150 * frame.c (get_prev_frame_1): Update.
9151 (inside_main_func): Update.
9152 * frv-tdep.c (frv_skip_main_prologue): Update.
9153 (frv_frame_this_id): Update.
9154 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9155 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9156 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9157 (gnuv3_skip_trampoline): Update.
9158 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9159 (hppa64_hpux_in_solib_call_trampoline): Update.
9160 (hppa_hpux_skip_trampoline_code): Update.
9161 (hppa64_hpux_search_dummy_call_sequence): Update.
9162 (hppa_hpux_find_import_stub_for_addr): Update.
9163 (hppa_hpux_find_dummy_bpaddr): Update.
9164 * hppa-tdep.c (hppa_symbol_address)
9165 (hppa_lookup_stub_minimal_symbol): Update.
9166 * i386-tdep.c (i386_skip_main_prologue): Update.
9167 (i386_pe_skip_trampoline_code): Update.
9168 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9169 * infcall.c (get_function_name): Update.
9170 * infcmd.c (until_next_command): Update.
9171 * jit.c (jit_breakpoint_re_set_internal): Update.
9172 (jit_inferior_init): Update.
9173 * linespec.c (minsym_found): Update.
9174 (add_minsym): Update.
9175 * linux-fork.c (info_checkpoints_command): Update.
9176 * linux-nat.c (get_signo): Update.
9177 * linux-thread-db.c (inferior_has_bug): Update.
9178 * m32c-tdep.c (m32c_return_value): Update.
9179 (m32c_m16c_address_to_pointer): Update.
9180 (m32c_m16c_pointer_to_address): Update.
9181 * m32r-tdep.c (m32r_frame_this_id): Update.
9182 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9183 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9184 * maint.c (maintenance_translate_address): Update.
9185 * minsyms.c (add_minsym_to_hash_table): Update.
9186 (add_minsym_to_demangled_hash_table): Update.
9187 (msymbol_objfile): Update.
9188 (lookup_minimal_symbol): Update.
9189 (iterate_over_minimal_symbols): Update.
9190 (lookup_minimal_symbol_text): Update.
9191 (lookup_minimal_symbol_by_pc_name): Update.
9192 (lookup_minimal_symbol_solib_trampoline): Update.
9193 (lookup_minimal_symbol_by_pc_section_1): Update.
9194 (lookup_minimal_symbol_and_objfile): Update.
9195 (prim_record_minimal_symbol_full): Update.
9196 (compare_minimal_symbols): Update.
9197 (compact_minimal_symbols): Update.
9198 (build_minimal_symbol_hash_tables): Update.
9199 (install_minimal_symbols): Update.
9200 (terminate_minimal_symbol_table): Update.
9201 (find_solib_trampoline_target): Update.
9202 (minimal_symbol_upper_bound): Update.
9203 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9204 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9205 (mips_skip_pic_trampoline_code): Update.
9206 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9207 * objc-lang.c (selectors_info): Update.
9208 (classes_info): Update.
9209 (find_methods): Update.
9210 (find_imps): Update.
9211 (find_objc_msgsend): Update.
9212 * objfiles.c (objfile_relocate1): Update.
9213 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9214 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9215 * p-valprint.c (pascal_val_print): Update.
9216 * parse.c (write_exp_msymbol): Update.
9217 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9218 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9219 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9220 * printcmd.c (build_address_symbolic): Update.
9222 (address_info): Update.
9223 * proc-service.c (ps_pglobal_lookup): Update.
9224 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9225 (find_pc_sect_psymtab): Update.
9226 * python/py-framefilter.c (py_print_frame): Update.
9227 * ravenscar-thread.c (get_running_thread_id): Update.
9228 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9230 * remote.c (remote_check_symbols): Update.
9231 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9232 (rs6000_skip_trampoline_code): Update.
9233 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9234 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9235 * solib-dsbt.c (lm_base): Update.
9236 * solib-frv.c (lm_base): Update.
9238 * solib-irix.c (locate_base): Update.
9239 * solib-som.c (som_solib_create_inferior_hook): Update.
9240 (som_solib_desire_dynamic_linker_symbols): Update.
9241 (link_map_start): Update.
9242 * solib-spu.c (spu_enable_break): Update.
9243 (ocl_enable_break): Update.
9244 * solib-svr4.c (elf_locate_base): Update.
9245 (enable_break): Update.
9246 * spu-tdep.c (spu_get_overlay_table): Update.
9247 (spu_catch_start): Update.
9248 (flush_ea_cache): Update.
9249 * stabsread.c (define_symbol): Update.
9250 (scan_file_globals): Update.
9251 * stack.c (find_frame_funname): Update.
9252 (frame_info): Update.
9253 * symfile.c (simple_read_overlay_table): Update.
9254 (simple_overlay_update): Update.
9255 * symmisc.c (dump_msymbols): Update.
9256 * symtab.c (fixup_section): Update.
9257 (find_pc_sect_line): Update.
9258 (skip_prologue_sal): Update.
9259 (search_symbols): Update.
9260 (print_msymbol_info): Update.
9261 (rbreak_command): Update.
9262 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9263 (completion_list_objc_symbol): Update.
9264 (default_make_symbol_completion_list_break_on): Update.
9265 * tracepoint.c (scope_info): Update.
9266 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9267 (tui_get_begin_asm_address): Update.
9268 * valops.c (find_function_in_inferior): Update.
9269 * value.c (value_static_field): Update.
9270 (value_fn_field): Update.
9272 2014-02-26 Tom Tromey <tromey@redhat.com>
9274 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9275 bound minimal symbols. Move code that knows about minsym
9277 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9279 * minsyms.h (minimal_symbol_upper_bound): Declare.
9280 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9281 minimal_symbol_upper_bound.
9283 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9285 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9286 Use the type's name if its basic type does not have a tag.
9288 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9290 * dwarf2read.c (read_subrange_type): Add comment.
9292 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9294 * dwarf2read.c (update_enumeration_type_from_children): New
9295 function, mostly extracted from process_structure_scope.
9296 (read_enumeration_type): Call update_enumeration_type_from_children.
9297 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9298 and flag_flag_enum fields.
9300 2014-02-26 Pedro Alves <palves@redhat.com>
9302 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9303 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9304 to_xfer_partial method.
9306 2014-02-26 Pedro Alves <palves@redhat.com>
9308 * target.c (complete_target_initialization): Don't install
9309 default_xfer_partial as to_xfer_partial hook.
9311 (update_current_target): Don't INHERIT nor de_fault
9312 deprecated_xfer_memory. Delete de_fault macro.
9313 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9314 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9315 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9318 2014-02-26 Pedro Alves <palves@redhat.com>
9320 * go32-nat.c (my_write_child): New function.
9321 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9322 (go32_xfer_partial): New function.
9323 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9324 Instead install a to_xfer_partial hook.
9326 2014-02-26 Pedro Alves <palves@redhat.com>
9328 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9329 to_xfer_partial helper. Rewrite.
9330 (procfs_xfer_partial): New function.
9331 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9332 Install a to_xfer_partial hook.
9334 2014-02-26 Pedro Alves <palves@redhat.com>
9336 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9337 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9338 (m32r_xfer_partial): New function.
9339 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9340 Install a to_xfer_partial hook.
9342 2014-02-26 Pedro Alves <palves@redhat.com>
9344 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9346 (mips_xfer_partial): New function.
9347 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9348 hook. Install a to_xfer_partial hook.
9350 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9352 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9353 * gdbtypes.c (create_array_type_with_stride): New function,
9354 renaming create_array_type, but with an added parameter
9355 called "bit_stride".
9356 (create_array_type): Re-implement using
9357 create_array_type_with_stride.
9358 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9359 and DW_AT_bit_stride attributes.
9361 2014-02-26 Pedro Alves <palves@redhat.com>
9363 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9364 task-specific breakpoints.
9366 2014-02-25 Pedro Alves <palves@redhat.com>
9368 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9369 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9371 2014-02-25 Stan Shebs <stan@codesourcery.com>
9373 * defs.h: Annotate comments for Doxygen.
9375 2014-02-25 Tom Tromey <tromey@redhat.com>
9377 * target.h (target_ignore): Don't declare.
9378 * target.c (target_ignore): Remove.
9380 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9383 * auto-load.c (auto_load_objfile_script_1): Change filename to
9386 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9388 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9389 documentation. Adjust prototype to match the target_ops
9390 to_xfer_partial method. Adjust implementation accordingly.
9392 2014-02-25 Hui Zhu <hui@codesourcery.com>
9394 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9397 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9399 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9400 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9401 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9402 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9403 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9404 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9405 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9406 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9408 (rl78_register_type): Use a data pointer type for SP and
9409 new pseudo registers mentioned above. Use a 16 bit integer
9410 type for all other register pairs.
9411 (rl78_register_name, rl78_g10_register_name): Update for
9412 new pseudo registers.
9413 (rl78_pseudo_register_read): Likewise.
9414 (rl78_pseudo_register_write): Likewise.
9415 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9416 to the newly added pseudo registers.
9418 2014-02-24 Doug Evans <dje@google.com>
9420 * value.c (record_latest_value): Fix comment.
9421 * printcmd.c (print_command_1): Remove code to handle -1 return from
9422 record_latest_value.
9424 2014-02-24 Pedro Alves <palves@redhat.com>
9426 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9427 deprecated_xfer_memory hook.
9428 (procfs_xfer_partial): Call procfs_xfer_memory instead
9429 of the deprecated_xfer_memory target hook.
9430 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9433 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9435 * windows-nat.c (windows_xfer_shared_libraries): Return
9436 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9437 requested object is TARGET_OBJECT_LIBRARIES.
9439 2014-02-24 Yao Qi <yao@codesourcery.com>
9441 * target.h (enum target_xfer_status)
9442 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9443 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9445 * corefile.c (memory_error_message): User updated.
9446 * exec.c (section_table_read_available_memory): Likewise.
9447 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9448 * target.c (target_xfer_status_to_string): Likewise.
9449 (raw_memory_xfer_partial): Likewise.
9450 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9451 * valops.c (read_value_memory): Likewise.
9452 * exec.h: Update comments.
9454 2014-02-24 Yao Qi <yao@codesourcery.com>
9456 * target.c (target_xfer_status_to_string): Rename argument err
9458 * target.h (target_xfer_status_to_string): Update declaration.
9459 Replace target_xfer_error_to_string with
9460 target_xfer_status_to_string in comment.
9462 2014-02-24 Yao Qi <yao@codesourcery.com>
9464 * mips-linux-nat.c (super_close): Update its type.
9465 (mips_linux_close): Pass 'self' to super_close.
9467 2014-02-24 Yao Qi <yao@codesourcery.com>
9469 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9470 * corefile.c (read_memory): Adjusted.
9471 * target.c (target_write_with_progress): Adjusted.
9473 2014-02-23 Yao Qi <yao@codesourcery.com>
9477 2013-10-25 Yao Qi <yao@codesourcery.com>
9479 * remote.c (remote_traceframe_info): Return early if
9480 traceframe is not selected.
9482 2013-07-19 Yao Qi <yao@codesourcery.com>
9484 * target.c (update_current_target): Change the default action
9485 of 'to_traceframe_info' from tcomplain to return_zero.
9486 * target.h (struct target_ops) <to_traceframe_info>: Add more
9489 2014-02-23 Yao Qi <yao@codesourcery.com>
9491 * valops.c (read_value_memory): Rewrite it. Call
9492 target_xfer_partial in a loop.
9493 * exec.h (section_table_available_memory): Remove declaration.
9494 Move comments to ...
9495 * exec.c (section_table_available_memory): ... here. Make it
9498 2014-02-23 Yao Qi <yao@codesourcery.com>
9500 * exec.c (section_table_read_available_memory): New function.
9501 * exec.h (section_table_read_available_memory): Declare.
9502 * ctf.c (ctf_xfer_partial): Call
9503 section_table_read_available_memory.
9504 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9506 2014-02-23 Yao Qi <yao@codesourcery.com>
9508 * ctf.c (ctf_xfer_partial): Move code to ...
9509 * exec.c (exec_read_partial_read_only): ... it. New function.
9510 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9511 * tracefile.c: Include "exec.h".
9512 * exec.h (exec_read_partial_read_only): Declare.
9514 2014-02-23 Yao Qi <yao@codesourcery.com>
9516 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9517 (tfile_has_memory): Remove.
9518 (init_tfile_ops): Don't set fields to_has_all_memory and
9519 to_has_memory of tfile_ops.
9520 * tracefile.c (tracefile_has_all_memory): New function.
9521 (tracefile_has_memory): New function.
9522 (init_tracefile_ops): Initialize fields to_has_all_memory and
9523 to_has_memory of 'ops'.
9525 2014-02-23 Yao Qi <yao@codesourcery.com>
9527 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9528 (ctf_thread_alive, ctf_get_trace_status): Remove.
9529 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9531 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9532 (tfile_has_stack, tfile_has_registers): Remove.
9533 (tfile_thread_alive): Remove.
9534 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9536 * tracefile.c (tracefile_has_stack): New function.
9537 (tracefile_has_registers): New function.
9538 (tracefile_thread_alive): New function.
9539 (tracefile_get_trace_status): New function.
9540 (init_tracefile_ops): New function.
9541 * tracefile.h (init_tracefile_ops): Declare.
9543 2014-02-23 Yao Qi <yao@codesourcery.com>
9545 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9546 (O_LARGEFILE): Likewise.
9547 (tfile_ops): Likewise.
9548 (TRACE_HEADER_SIZE): Likewise.
9549 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9550 (cur_data_size): Likewise.
9551 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9552 (tfile_close, tfile_files_info): Likewise.
9553 (tfile_get_trace_status): Likewise.
9554 (tfile_get_tracepoint_status): Likewise.
9555 (tfile_get_traceframe_address): Likewise.
9556 (tfile_trace_find, match_blocktype): Likewise.
9557 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9558 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9559 (tfile_get_trace_state_variable_value): Likewise.
9560 (tfile_has_all_memory, tfile_has_memory): Likewise.
9561 (tfile_has_stack, tfile_has_registers): Likewise.
9562 (tfile_thread_alive, build_traceframe_info): Likewise.
9563 (tfile_traceframe_info, init_tfile_ops): Likewise.
9564 (_initialize_tracepoint): Don't call init_tfile_ops
9565 and add_target_with_completer.
9566 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9567 exec.h, completer.h and filenames.h.
9568 (_initialize_tracefile_tfile): New function.
9570 2014-02-23 Yao Qi <yao@codesourcery.com>
9572 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9574 (HFILES_NO_SRCDIR): Add tracefile.h.
9575 * ctf.c: Include "tracefile.h".
9576 * tracefile.h: New file.
9577 * tracefile.c: New file
9578 * tracefile-tfile.c: New file.
9579 * tracepoint.c: Include "tracefile.h".
9580 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9581 (stop_reason_names): Add const.
9582 (trace_file_writer_xfree): Move it to tracefile.c.
9583 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9584 (trace_save_ctf): Likewise.
9585 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9586 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9587 (tfile_write_header, tfile_write_regblock_type): Likewise.
9588 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9589 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9590 (tfile_write_raw_data, tfile_end): Likewise.
9591 (tfile_trace_file_writer_new): Likewise.
9592 (free_uploaded_tp): Make it extern.
9593 (free_uploaded_tsv): Make it extern.
9594 (_initialize_tracepoint): Move code to register command 'tsave'
9596 * tracepoint.h (stop_reason_names): Declare.
9597 (struct trace_frame_write_ops): Move it to tracefile.h.
9598 (struct trace_file_write_ops): Likewise.
9599 (struct trace_file_writer): Likewise.
9600 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9602 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9605 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9607 (get_cores_used_by_process): New parameter num_cores, use it.
9608 (linux_xfer_osdata_processes): Pass num_cores to it.
9609 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9612 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9614 * target.c (memory_xfer_partial): Fix length arg in call to
9615 breakpoint_xfer_memory.
9617 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9620 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9621 number comes after the + or - signs. Adjust length of register
9622 name to be extracted.
9624 2014-02-20 Tom Tromey <tromey@redhat.com>
9626 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9627 (ada_varobj_ops): Mark "extern".
9629 2014-02-20 Tom Tromey <tromey@redhat.com>
9631 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9633 2014-02-20 Doug Evans <xdje42@gmail.com>
9635 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9636 All callers updated.
9637 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9638 All callers updated.
9639 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9640 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9642 2014-02-20 lin zuojian <manjian2006@gmail.com>
9643 Joel Brobecker <brobecker@adacore.com>
9644 Doug Evans <xdje42@gmail.com>
9647 * dwarf2read.c (struct die_info): New member in_process.
9648 (reset_die_in_process): New function.
9649 (process_die): Set it at the start, reset when returning.
9650 (inherit_abstract_dies): Only call process_die if origin_child_die
9651 not already being processed.
9653 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9655 * windows-nat.c (handle_unload_dll): Add function documentation.
9656 (do_initial_windows_stuff): Add comment explaining why we wait
9657 until after inferior initialization has finished before
9658 processing all DLLs.
9660 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9662 * windows-nat.c (get_module_name): Delete.
9663 (windows_get_exec_module_filename): New function, mostly
9664 inspired from get_module_name.
9665 (windows_pid_to_exec_file): Replace call to get_module_name
9666 by call to windows_get_exec_module_filename.
9668 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9670 * windows-nat.c (handle_load_dll): Rewrite this function's
9671 introductory comment. Remove code using get_module_name
9672 to get the DLL's name.
9674 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9676 * windows-nat.c (get_windows_debug_event): Ignore
9677 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9678 if windows_initialization_done == 0.
9679 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9680 Adjust implementation to always load all DLLs.
9681 (do_initial_windows_stuff): Replace call to
9682 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9684 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9686 * windows-nat.c (_initialize_windows_nat): Deprecate the
9687 "dll-symbols" command. Turn the "add-shared-symbol-files"
9688 and "assf" aliases into commands, and deprecate them as well.
9689 * NEWS: Add entry explaining that "dll-symbols" and its two
9690 aliases are now deprecated.
9692 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9694 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9695 new-line in debug string. Remove trailing spaces.
9697 2014-02-19 Stan Shebs <stan@codesourcery.com>
9699 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9701 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9703 * NEWS: Add entry for the new feature
9704 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9707 2014-02-19 Stan Shebs <stan@codesourcery.com>
9709 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9711 2014-02-19 Pedro Alves <palves@redhat.com>
9713 * common/ptid.h (struct ptid): Mention that process_stratum
9714 targets should prefer ptid.lwp.
9716 2014-02-19 Pedro Alves <palves@redhat.com>
9718 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9719 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9720 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9721 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9722 store remote thread ids rather than ptid.tid.
9723 (_initialize_remote): Adjust.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * target.c (target_get_unwinder): Rewrite.
9728 (target_get_tailcall_unwinder): Rewrite.
9729 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9730 (record_btrace_to_get_tailcall_unwinder): New function.
9731 (init_record_btrace_ops): Update.
9732 * target.h (struct target_ops) <to_get_unwinder,
9733 to_get_tailcall_unwinder>: Now function pointers. Use
9734 TARGET_DEFAULT_RETURN.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9740 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9746 * target-delegates.c: Rebuild.
9747 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9748 TARGET_DEFAULT_FUNC.
9749 * target.c (default_target_decr_pc_after_break): Rename from
9750 forward_target_decr_pc_after_break. Simplify.
9751 (target_decr_pc_after_break): Rely on delegation.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target.c (update_current_target): Do not INHERIT to_doc or
9756 to_magic. Do not de_fault to_open or to_close.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * gcore.h (objfile_find_memory_regions): Declare.
9761 * gcore.c (objfile_find_memory_regions): No longer static. Add
9763 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9764 * exec.c: Include gcore.h.
9765 (exec_set_find_memory_regions): Remove.
9766 (exec_find_memory_regions): Remove.
9767 (exec_do_find_memory_regions): Remove.
9768 (init_exec_ops): Update.
9769 * defs.h (exec_set_find_memory_regions): Remove.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target-delegates.c: Rebuild.
9774 * target.h (struct target_ops) <to_extra_thread_info,
9775 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9776 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9777 not 0, in TARGET_DEFAULT_RETURN.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.c (complete_target_initialization): Remove casts. Use
9782 return_zero_has_execution.
9783 (return_zero): Add "ignore" argument.
9784 (return_zero_has_execution): New function.
9785 (init_dummy_target): Remove casts. Use
9786 return_zero_has_execution.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target.c (update_current_target): Update comments. Do not
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9797 * corelow.c (core_read_description): Delegate when needed.
9798 * remote.c (remote_read_description): Delegate when needed.
9799 * target-delegates.c: Rebuild.
9800 * target.c (target_read_description): Rewrite.
9801 * target.h (struct target_ops) <to_read_description>: Update
9802 comment. Use TARGET_DEFAULT_RETURN.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9809 (find_default_run_target): Check against delegate_can_run.
9810 * target.h (struct target_ops) <to_can_run>: Use
9811 TARGET_DEFAULT_RETURN.
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9815 * target-delegates.c: Rebuild.
9816 * target.c (target_disconnect): Unconditionally delegate.
9817 * target.h (struct target_ops) <to_disconnect>: Use
9818 TARGET_DEFAULT_NORETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * record.c (record_stop): Unconditionally delegate.
9823 * target-delegates.c: Rebuild.
9824 * target.c (target_stop_recording): Unconditionally delegate.
9825 * target.h (struct target_ops) <to_stop_recording>: Use
9826 TARGET_DEFAULT_IGNORE.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target-delegates.c: Rebuild.
9831 * target.c (target_enable_btrace): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_enable_btrace>: Use
9833 TARGET_DEFAULT_NORETURN.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_read_btrace): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_read_btrace>: Use
9840 TARGET_DEFAULT_NORETURN.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_teardown_btrace): Unconditionally delegate.
9846 * target.h (struct target_ops) <to_teardown_btrace>: Use
9847 TARGET_DEFAULT_NORETURN.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target-delegates.c: Rebuild.
9852 * target.c (target_disable_btrace): Unconditionally delegate.
9853 * target.h (struct target_ops) <to_disable_btrace>: Use
9854 TARGET_DEFAULT_NORETURN.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (default_search_memory): New function.
9860 (simple_search_memory): Update comment.
9861 (target_search_memory): Unconditionally delegate.
9862 * target.h (struct target_ops) <to_search_memory>: Use
9863 TARGET_DEFAULT_FUNC.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * auxv.c (default_auxv_parse): No longer static.
9868 (target_auxv_parse): Unconditionally delegate.
9869 * auxv.h (default_auxv_parse): Declare.
9870 * target-delegates.c: Rebuild.
9871 * target.c: Include auxv.h.
9872 * target.h (struct target_ops) <to_auxv_parse>: Use
9873 TARGET_DEFAULT_FUNC.
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target-delegates.c: Rebuild.
9878 * target.c (target_memory_map): Unconditionally delegate.
9879 * target.h (struct target_ops) <to_memory_map>: Use
9880 TARGET_DEFAULT_RETURN.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * target-delegates.c: Rebuild.
9885 * target.c (target_thread_alive): Unconditionally delegate.
9886 * target.h (struct target_ops) <to_thread_alive>: Use
9887 TARGET_DEFAULT_RETURN.
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9891 * target-delegates.c: Rebuild.
9892 * target.c (target_save_record): Unconditionally delegate.
9893 * target.h (struct target_ops) <to_save_record>: Use
9894 TARGET_DEFAULT_NORETURN.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target-delegates.c: Rebuild.
9899 * target.c (target_delete_record): Unconditionally delegate.
9900 * target.h (struct target_ops) <to_delete_record>: Use
9901 TARGET_DEFAULT_NORETURN.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target-delegates.c: Rebuild.
9906 * target.c (target_record_is_replaying): Unconditionally
9908 * target.h (struct target_ops) <to_record_is_replaying>: Use
9909 TARGET_DEFAULT_RETURN.
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9913 * target-delegates.c: Rebuild.
9914 * target.c (target_goto_record_begin): Unconditionally delegate.
9915 * target.h (struct target_ops) <to_goto_record_begin>: Use
9916 TARGET_DEFAULT_NORETURN.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (target_goto_record_end): Unconditionally delegate.
9922 * target.h (struct target_ops) <to_goto_record_end>: Use
9923 TARGET_DEFAULT_NORETURN.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target-delegates.c: Rebuild.
9928 * target.c (target_goto_record): Unconditionally delegate.
9929 * target.h (struct target_ops) <to_goto_record>: Use
9930 TARGET_DEFAULT_NORETURN.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (target_insn_history): Unconditionally delegate.
9936 * target.h (struct target_ops) <to_insn_history>: Use
9937 TARGET_DEFAULT_NORETURN.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target-delegates.c: Rebuild.
9942 * target.c (target_insn_history_from): Unconditionally delegate.
9943 * target.h (struct target_ops) <to_insn_history_from>: Use
9944 TARGET_DEFAULT_NORETURN.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (target_insn_history_range): Unconditionally delegate.
9950 * target.h (struct target_ops) <to_insn_history_range>: Use
9951 TARGET_DEFAULT_NORETURN.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target-delegates.c: Rebuild.
9956 * target.c (target_call_history): Unconditionally delegate.
9957 * target.h (struct target_ops) <to_call_history>: Use
9958 TARGET_DEFAULT_NORETURN.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * target-delegates.c: Rebuild.
9963 * target.c (target_call_history_from): Unconditionally delegate.
9964 * target.h (struct target_ops) <to_call_history_from>: Use
9965 TARGET_DEFAULT_NORETURN.
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target-delegates.c: Rebuild.
9970 * target.c (target_call_history_range): Unconditionally delegate.
9971 * target.h (struct target_ops) <to_call_history_range>: Use
9972 TARGET_DEFAULT_NORETURN.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_verify_memory): Unconditionally delegate.
9978 * target.h (struct target_ops) <to_verify_memory>: Use
9979 TARGET_DEFAULT_NORETURN.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target-delegates.c: Rebuild.
9984 * target.c (target_core_of_thread): Unconditionally delegate.
9985 * target.h (struct target_ops) <to_core_of_thread>: Use
9986 TARGET_DEFAULT_RETURN.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (target_flash_done): Unconditionally delegate.
9992 * target.h (struct target_ops) <to_flash_done>: Use
9993 TARGET_DEFAULT_NORETURN.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target-delegates.c: Rebuild.
9998 * target.c (target_flash_erase): Unconditionally delegate.
9999 * target.h (struct target_ops) <to_flash_erase>: Use
10000 TARGET_DEFAULT_NORETURN.
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10004 * target-delegates.c: Rebuild.
10005 * target.c (target_get_section_table): Unconditionally delegate.
10006 * target.h (struct target_ops) <to_get_section_table>: Use
10007 TARGET_DEFAULT_RETURN.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (target_pid_to_str): Unconditionally delegate.
10013 (init_dummy_target): Don't initialize to_pid_to_str.
10014 (default_pid_to_str): Rename from dummy_pid_to_str.
10015 * target.h (struct target_ops) <to_pid_to_str>: Use
10016 TARGET_DEFAULT_FUNC.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target-delegates.c: Rebuild.
10021 * target.c (target_find_new_threads): Unconditionally delegate.
10022 * target.h (struct target_ops) <to_find_new_threads>: Use
10023 TARGET_DEFAULT_RETURN.
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * target-delegates.c: Rebuild.
10028 * target.c (target_program_signals): Unconditionally delegate.
10029 * target.h (struct target_ops) <to_program_signals>: Use
10030 TARGET_DEFAULT_IGNORE.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_pass_signals): Unconditionally delegate.
10036 * target.h (struct target_ops) <to_pass_signals>: Use
10037 TARGET_DEFAULT_IGNORE.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (default_mourn_inferior): New function.
10043 (target_mourn_inferior): Unconditionally delegate.
10044 * target.h (struct target_ops) <to_mourn_inferior>: Use
10045 TARGET_DEFAULT_FUNC.
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target-delegates.c: Rebuild.
10050 * target.c (default_follow_fork): New function.
10051 (target_follow_fork): Unconditionally delegate.
10052 * target.h (struct target_ops) <to_follow_fork>: Use
10053 TARGET_DEFAULT_FUNC.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (target_kill): Unconditionally delegate.
10059 * target.h (struct target_ops) <to_kill>: Use
10060 TARGET_DEFAULT_NORETURN.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target-delegates.c: Rebuild.
10065 * target.c (target_masked_watch_num_registers): Unconditionally
10067 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10068 Use TARGET_DEFAULT_RETURN.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target-delegates.c: Rebuild.
10073 * target.c (target_remove_mask_watchpoint): Unconditionally
10075 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (target_insert_mask_watchpoint): Unconditionally
10083 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10084 TARGET_DEFAULT_RETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (target_ranged_break_num_registers): Unconditionally
10091 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10092 Use TARGET_DEFAULT_RETURN.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (target_fetch_registers): Unconditionally delegate.
10098 * target.h (struct target_ops) <to_fetch_registers>: Use
10099 TARGET_DEFAULT_NORETURN.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10106 * target.h (struct target_ops) <to_stop>: Use
10107 TARGET_DEFAULT_IGNORE.
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target-delegates.c: Rebuild.
10112 * target.c (update_current_target): Don't inherit or default
10113 to_can_run_breakpoint_commands.
10114 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10115 Use TARGET_DEFAULT_RETURN.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * target-delegates.c: Rebuild.
10120 * target.c (update_current_target): Don't inherit or default
10121 to_supports_evaluation_of_breakpoint_conditions.
10122 * target.h (struct target_ops)
10123 <to_supports_evaluation_of_breakpoint_conditions>: Use
10124 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
10131 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10132 Use TARGET_DEFAULT_RETURN.
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
10139 * target.h (struct target_ops) <to_can_use_agent>: Use
10140 TARGET_DEFAULT_RETURN.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10147 * target.h (struct target_ops) <to_use_agent>: Use
10148 TARGET_DEFAULT_NORETURN.
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * target-delegates.c: Rebuild.
10153 * target.c (update_current_target): Don't inherit or default
10154 to_traceframe_info.
10155 (return_null): Remove.
10156 * target.h (struct target_ops) <to_traceframe_info>: Use
10157 TARGET_DEFAULT_RETURN.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_static_tracepoint_markers_by_strid.
10164 * target.h (struct target_ops)
10165 <to_static_tracepoint_markers_by_strid>: Use
10166 TARGET_DEFAULT_NORETURN.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target-delegates.c: Rebuild.
10171 * target.c (update_current_target): Don't inherit or default
10172 to_static_tracepoint_marker_at.
10173 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10174 Use TARGET_DEFAULT_RETURN.
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10178 * target-delegates.c: Rebuild.
10179 * target.c (update_current_target): Don't inherit or default
10180 to_set_permissions.
10181 * target.h (struct target_ops) <to_set_permissions>: Use
10182 TARGET_DEFAULT_IGNORE.
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * target-delegates.c: Rebuild.
10187 * target.c (update_current_target): Don't inherit or default
10188 to_get_tib_address.
10189 * target.h (struct target_ops) <to_get_tib_address>: Use
10190 TARGET_DEFAULT_NORETURN.
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10194 * target-delegates.c: Rebuild.
10195 * target.c (update_current_target): Don't inherit or default
10196 to_set_trace_notes.
10197 * target.h (struct target_ops) <to_set_trace_notes>: Use
10198 TARGET_DEFAULT_RETURN.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't initialize
10204 to_set_trace_buffer_size.
10205 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10206 TARGET_DEFAULT_IGNORE.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (update_current_target): Don't inherit or default
10212 to_set_circular_trace_buffer.
10213 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10214 TARGET_DEFAULT_IGNORE.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10220 to_set_disconnected_tracing.
10221 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10222 TARGET_DEFAULT_IGNORE.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10228 to_get_min_fast_tracepoint_insn_len.
10229 (return_minus_one): Remove.
10230 * target.h (struct target_ops)
10231 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10237 to_get_raw_trace_data.
10238 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10239 TARGET_DEFAULT_NORETURN.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_upload_trace_state_variables.
10246 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10247 Use TARGET_DEFAULT_RETURN.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_upload_tracepoints.
10254 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10255 TARGET_DEFAULT_RETURN.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_save_trace_data.
10262 * target.h (struct target_ops) <to_save_trace_data>: Use
10263 TARGET_DEFAULT_NORETURN.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_get_trace_state_variable_value.
10270 * target.h (struct target_ops)
10271 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10278 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target-delegates.c: Rebuild.
10283 * target.c (update_current_target): Don't inherit or default
10285 * target.h (struct target_ops) <to_trace_stop>: Use
10286 TARGET_DEFAULT_NORETURN.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (update_current_target): Don't inherit or default
10292 to_get_tracepoint_status.
10293 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10294 TARGET_DEFAULT_NORETURN.
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10298 * target-delegates.c: Rebuild.
10299 * target.c (update_current_target): Don't inherit or default
10300 to_get_trace_status.
10301 * target.h (struct target_ops) <to_get_trace_status>: Use
10302 TARGET_DEFAULT_RETURN.
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target-delegates.c: Rebuild.
10307 * target.c (update_current_target): Don't inherit or default
10309 * target.h (struct target_ops) <to_trace_start>: Use
10310 TARGET_DEFAULT_NORETURN.
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10314 * target-delegates.c: Rebuild.
10315 * target.c (update_current_target): Don't inherit or default
10316 to_trace_set_readonly_regions.
10317 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10318 Use TARGET_DEFAULT_NORETURN.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * target-delegates.c: Rebuild.
10323 * target.c (update_current_target): Don't inherit or default
10324 to_disable_tracepoint.
10325 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10326 TARGET_DEFAULT_NORETURN.
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target-delegates.c: Rebuild.
10331 * target.c (update_current_target): Don't inherit or default
10332 to_enable_tracepoint.
10333 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10334 TARGET_DEFAULT_NORETURN.
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
10340 to_download_trace_state_variable.
10341 * target.h (struct target_ops) <to_download_trace_state_variable>:
10342 Use TARGET_DEFAULT_NORETURN.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (update_current_target): Don't inherit or default
10348 to_can_download_tracepoint.
10349 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10350 TARGET_DEFAULT_RETURN.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target-delegates.c: Rebuild.
10355 * target.c (update_current_target): Don't inherit or default
10356 to_download_tracepoint.
10357 * target.h (struct target_ops) <to_download_tracepoint>: Use
10358 TARGET_DEFAULT_NORETURN.
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10362 * target-delegates.c: Rebuild.
10363 * target.c (update_current_target): Don't inherit or default
10365 * target.h (struct target_ops) <to_trace_init>: Use
10366 TARGET_DEFAULT_RETURN.
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10370 * target-delegates.c: Rebuild.
10371 * target.c (update_current_target): Don't inherit or default
10372 to_supports_string_tracing.
10373 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10374 TARGET_DEFAULT_RETURN.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target-delegates.c: Rebuild.
10379 * target.c (update_current_target): Don't inherit or default
10380 to_supports_enable_disable_tracepoint.
10381 * target.h (struct target_ops)
10382 <to_supports_enable_disable_tracepoint>: Use
10383 TARGET_DEFAULT_RETURN.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_supports_multi_process.
10390 * target.h (struct target_ops) <to_supports_multi_process>: Use
10391 TARGET_DEFAULT_RETURN.
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_get_ada_task_ptid.
10398 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10399 TARGET_DEFAULT_FUNC.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_thread_architecture.
10406 * target.h (struct target_ops) <to_thread_architecture>: Use
10407 TARGET_DEFAULT_FUNC.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_execution_direction.
10414 * target.h (struct target_ops) <to_execution_direction>: Use
10415 TARGET_DEFAULT_FUNC.
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10421 to_can_execute_reverse.
10422 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10423 TARGET_DEFAULT_RETURN.
10424 (target_can_execute_reverse): Unconditionally delegate.
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10431 (dummy_goto_bookmark): Remove.
10432 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10433 * target.h (struct target_ops) <to_goto_bookmark>: Use
10434 TARGET_DEFAULT_NORETURN.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10441 (dummy_get_bookmark): Remove.
10442 (init_dummy_target): Don't inherit or default to_get_bookmark.
10443 * target.h (struct target_ops) <to_get_bookmark>: Use
10444 TARGET_DEFAULT_NORETURN
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10448 * target-delegates.c: Rebuild.
10449 * target.c (update_current_target): Don't inherit or default
10450 to_make_corefile_notes.
10451 (init_dummy_target): Don't initialize to_make_corefile_notes.
10452 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10453 TARGET_DEFAULT_FUNC.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_find_memory_regions.
10460 (init_dummy_target): Don't initialize to_find_memory_regions.
10461 * target.h (struct target_ops) <to_find_memory_regions>: Use
10462 TARGET_DEFAULT_FUNC.
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10466 * target-delegates.c: Rebuild.
10467 * target.c (update_current_target): Don't inherit or default
10469 * target.h (struct target_ops) <to_log_command>: Use
10470 TARGET_DEFAULT_IGNORE.
10471 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
10478 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10479 TARGET_DEFAULT_RETURN.
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_thread_name): Unconditionally delegate.
10487 * target.h (struct target_ops) <to_thread_name>: Use
10488 TARGET_DEFAULT_RETURN.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_extra_thread_info.
10495 * target.h (struct target_ops) <to_extra_thread_info>: Use
10496 TARGET_DEFAULT_RETURN.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10503 * target.h (struct target_ops) <to_has_exited>: Use
10504 TARGET_DEFAULT_RETURN..
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target-delegates.c: Rebuild.
10509 * target.c (update_current_target): Don't inherit or default
10510 to_set_syscall_catchpoint.
10511 (return_one): Remove.
10512 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10513 TARGET_DEFAULT_RETURN.
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10519 to_insert_exec_catchpoint.
10520 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10521 TARGET_DEFAULT_RETURN.
10523 2014-01-08 Tom Tromey <tromey@redhat.com>
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10527 to_insert_exec_catchpoint.
10528 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10529 TARGET_DEFAULT_RETURN.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_remove_vfork_catchpoint.
10536 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10537 TARGET_DEFAULT_RETURN.
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10541 * target-delegates.c: Rebuild.
10542 * target.c (update_current_target): Don't inherit or default
10543 to_insert_vfork_catchpoint.
10544 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10545 TARGET_DEFAULT_RETURN.
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target-delegates.c: Rebuild.
10550 * target.c (update_current_target): Don't inherit or default
10551 to_remove_fork_catchpoint.
10552 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10553 TARGET_DEFAULT_RETURN.
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_insert_fork_catchpoint.
10560 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10561 TARGET_DEFAULT_RETURN.
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10565 * target-delegates.c: Rebuild.
10566 * target.c (update_current_target): Don't inherit or default
10567 to_post_startup_inferior.
10568 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10569 TARGET_DEFAULT_IGNORE.
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target-delegates.c: Rebuild.
10574 * target.c (update_current_target): Don't inherit or default
10576 * target.h (struct target_ops) <to_load>: Use
10577 TARGET_DEFAULT_NORETURN.
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10584 * target.h (struct target_ops) <to_terminal_info>: Use
10585 TARGET_DEFAULT_FUNC.
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_terminal_save_ours.
10592 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10593 TARGET_DEFAULT_IGNORE.
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10600 * target.h (struct target_ops) <to_terminal_ours>: Use
10601 TARGET_DEFAULT_IGNORE.
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_terminal_ours_for_output.
10608 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10609 TARGET_DEFAULT_IGNORE.
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't inherit or default
10615 to_terminal_inferior.
10616 * target.h (struct target_ops) <to_terminal_inferior>: Use
10617 TARGET_DEFAULT_IGNORE.
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10624 * target.h (struct target_ops) <to_terminal_init>: Use
10625 TARGET_DEFAULT_IGNORE.
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_can_accel_watchpoint_condition.
10632 * target.h (struct target_ops)
10633 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_region_ok_for_hw_watchpoint.
10640 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10641 Use TARGET_DEFAULT_FUNC.
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10645 * target-delegates.c: Rebuild.
10646 * target.c (update_current_target): Don't inherit or default
10647 to_watchpoint_addr_within_range.
10648 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10649 Use TARGET_DEFAULT_FUNC.
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10653 * target-delegates.c: Rebuild.
10654 * target.c (update_current_target): Don't inherit or default
10655 to_remove_watchpoint.
10656 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10657 TARGET_DEFAULT_NORETURN.
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10661 * target-delegates.c: Rebuild.
10662 * target.c (update_current_target): Don't inherit or default
10663 to_insert_watchpoint.
10664 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10665 TARGET_DEFAULT_RETURN.
10667 2014-02-19 Tom Tromey <tromey@redhat.com>
10669 * target-delegates.c: Rebuild.
10670 * target.c (update_current_target): Don't inherit or default
10671 to_remove_hw_breakpoint.
10672 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10673 TARGET_DEFAULT_RETURN.
10675 2014-02-19 Tom Tromey <tromey@redhat.com>
10677 * target-delegates.c: Rebuild.
10678 * target.c (update_current_target): Don't inherit or default
10679 to_insert_hw_breakpoint.
10680 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10681 TARGET_DEFAULT_RETURN.
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10685 * target-delegates.c: Rebuild.
10686 * target.c (update_current_target): Don't inherit or default
10687 to_can_use_hw_breakpoint.
10688 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10689 TARGET_DEFAULT_RETURN.
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10696 * target.h (struct target_ops) <to_files_info>: Use
10697 TARGET_DEFAULT_IGNORE.
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10701 * target-delegates.c: Rebuild.
10702 * target.c (update_current_target): Don't inherit or default
10704 * target.h (struct target_ops) <to_store>: Use
10705 TARGET_DEFAULT_NORETURN.
10707 2014-02-19 Tom Tromey <tromey@redhat.com>
10709 * target-delegates.c: Rebuild.
10710 * target.c (update_current_target): Don't inherit or default
10712 * target.h (struct target_ops) <to_post_attach>: Use
10713 TARGET_DEFAULT_IGNORE.
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * target-delegates.c: Rebuild.
10718 * target.c (update_current_target): Don't inherit or default
10720 (default_rcmd): New function.
10721 (do_monitor_command): Unconditionally delegate.
10722 * target.h (struct target_ops) <to_rmcd>: Use
10723 TARGET_DEFAULT_FUNC.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target-delegates.c: Rebuild.
10728 * target.c (init_dummy_target): Don't initialize to_attach.
10729 (target_attach): Unconditionally delegate.
10730 * target.h (struct target_ops) <to_attach>: Use
10731 TARGET_DEFAULT_FUNC.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target-delegates.c: Rebuild.
10736 * target.c (target_detach): Unconditionally delegate.
10737 (init_dummy_target): Don't initialize to_detach.
10738 * target.h (struct target_ops) <to_detach>: Use
10739 TARGET_DEFAULT_IGNORE.
10741 2014-02-19 Tom Tromey <tromey@redhat.com>
10743 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10745 (target_augmented_libraries_svr4_read): Add argument.
10746 * target.c (update_current_target): Update.
10747 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target.h (struct target_ops) <to_call_history_range>: Add
10754 * target.c (target_call_history_range): Add argument.
10755 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10757 (record_btrace_call_history_from): Update.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target.h (struct target_ops) <to_call_history_from>: Add
10763 * target.c (target_call_history_from): Add argument.
10764 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10767 2014-02-19 Tom Tromey <tromey@redhat.com>
10769 * target.h (struct target_ops) <to_call_history>: Add argument.
10770 * target.c (target_call_history): Add argument.
10771 * record-btrace.c (record_btrace_call_history): Add 'self'
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10776 * target.h (struct target_ops) <to_insn_history_range>: Add
10778 * target.c (target_insn_history_range): Add argument.
10779 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10781 (record_btrace_insn_history_from): Update.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target.h (struct target_ops) <to_insn_history_from>: Add
10787 * target.c (target_insn_history_from): Add argument.
10788 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target.h (struct target_ops) <to_insn_history>: Add argument.
10794 * target.c (target_insn_history): Add argument.
10795 * record-btrace.c (record_btrace_insn_history): Add 'self'
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10800 * target.h (struct target_ops) <to_goto_record>: Add argument.
10801 * target.c (target_goto_record): Add argument.
10802 * record-full.c (record_full_goto): Add 'self' argument.
10803 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10808 * target.c (target_goto_record_end): Add argument.
10809 * record-full.c (record_full_goto_end): Add 'self' argument.
10810 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target.h (struct target_ops) <to_goto_record_begin>: Add
10816 * target.c (target_goto_record_begin): Add argument.
10817 * record-full.c (record_full_goto_begin): Add 'self' argument.
10818 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10821 2014-02-19 Tom Tromey <tromey@redhat.com>
10823 * target.h (struct target_ops) <to_record_is_replaying>: Add
10825 * target.c (target_record_is_replaying): Add argument.
10826 * record-full.c (record_full_is_replaying): Add 'self' argument.
10827 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10829 (record_btrace_xfer_partial, record_btrace_store_registers)
10830 (record_btrace_prepare_to_store, record_btrace_resume)
10831 (record_btrace_wait, record_btrace_decr_pc_after_break)
10832 (record_btrace_find_new_threads, record_btrace_thread_alive):
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10837 * target.h (struct target_ops) <to_delete_record>: Add argument.
10838 * target.c (target_delete_record): Add argument.
10839 * record-full.c (record_full_delete): Add 'self' argument.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target.h (struct target_ops) <to_save_record>: Add argument.
10844 * target.c (target_save_record): Add argument.
10845 * record-full.c (record_full_save): Add 'self' argument.
10846 (record_full_save): Add 'self' argument.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target.h (struct target_ops) <to_info_record>: Add argument.
10851 * target.c (target_info_record): Add argument.
10852 * record.c (info_record_command): Add argument.
10853 * record-full.c (record_full_info): Add 'self' argument.
10854 * record-btrace.c (record_btrace_info): Add 'self' argument.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10859 * target.c (target_stop_recording): Add argument.
10860 * record.c (record_stop): Add argument.
10861 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10867 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10868 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10870 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10871 (_initialize_amd64_linux_nat): Use it.
10872 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10873 (_initialize_i386_linux_nat): Use it.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10878 * target.c (target_teardown_btrace): Add argument.
10879 * remote.c (remote_teardown_btrace): Add 'self' argument.
10880 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10882 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10887 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10888 * target.c (target_disable_btrace): Add argument.
10889 * remote.c (remote_disable_btrace): Add 'self' argument.
10890 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10892 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10898 * target.c (target_enable_btrace): Add argument.
10899 * remote.c (remote_enable_btrace): Add 'self' argument.
10900 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10902 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10908 (target_can_use_agent): Add argument.
10909 * target.c (update_current_target): Update.
10910 * remote.c (remote_can_use_agent): Add 'self' argument.
10911 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target.h (struct target_ops) <to_use_agent>: Add argument.
10916 (target_use_agent): Add argument.
10917 * target.c (update_current_target): Update.
10918 * remote.c (remote_use_agent): Add 'self' argument.
10919 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10924 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10925 (target_traceframe_info): Add argument.
10926 * target.c (update_current_target): Update.
10927 * remote.c (remote_traceframe_info): Add 'self' argument.
10928 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target.h (target_static_tracepoint_markers_by_strid): Add
10934 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10936 * target.c (update_current_target): Update.
10937 * remote.c (struct target_ops)
10938 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10939 * linux-nat.c (struct target_ops)
10940 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10944 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10946 (target_static_tracepoint_marker_at): Add argument.
10947 * target.c (update_current_target): Update.
10948 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10954 (target_set_permissions): Add argument.
10955 * target.c (update_current_target): Update.
10956 * remote.c (remote_set_permissions): Add 'self' argument.
10957 (remote_start_remote): Update.
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10962 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10963 (target_get_tib_address): Add argument.
10964 * target.c (update_current_target): Update.
10965 * remote.c (remote_get_tib_address): Add 'self' argument.
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10970 (target_set_trace_notes): Add argument.
10971 * target.c (update_current_target): Update.
10972 * remote.c (remote_set_trace_notes): Add 'self' argument.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10978 (target_set_trace_buffer_size): Add argument.
10979 * target.c (update_current_target): Update.
10980 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10984 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10986 (target_set_circular_trace_buffer): Add argument.
10987 * target.c (update_current_target): Update.
10988 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10993 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10995 (target_set_disconnected_tracing): Add argument.
10996 * target.c (update_current_target): Update.
10997 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10999 2014-02-19 Tom Tromey <tromey@redhat.com>
11001 * target.h (struct target_ops)
11002 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11003 (target_get_min_fast_tracepoint_insn_len): Add argument.
11004 * target.c (update_current_target): Update.
11005 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11012 (target_get_raw_trace_data): Add argument.
11013 * target.c (update_current_target): Update.
11014 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11020 (target_upload_trace_state_variables): Add argument.
11021 * target.c (update_current_target): Update.
11022 * remote.c (remote_upload_trace_state_variables): Add 'self'
11024 (remote_start_remote): Update.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11030 (target_upload_tracepoints): Add argument.
11031 * target.c (update_current_target): Update.
11032 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11033 (remote_start_remote): Update.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11038 (target_save_trace_data): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_save_trace_data): Add 'self' argument.
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11046 * target.h (struct target_ops)
11047 <to_get_trace_state_variable_value>: Add argument.
11048 (target_get_trace_state_variable_value): Add argument.
11049 * target.c (update_current_target): Update.
11050 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11052 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11057 * target.h (struct target_ops) <to_trace_find>: Add argument.
11058 (target_trace_find): Add argument.
11059 * target.c (update_current_target): Update.
11060 * remote.c (remote_trace_find): Add 'self' argument.
11061 * ctf.c (ctf_trace_find): Add 'self' argument.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11066 (target_trace_stop): Add argument.
11067 * target.c (update_current_target): Update.
11068 * remote.c (remote_trace_stop): Add 'self' argument.
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11072 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11073 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11075 (target_get_tracepoint_status): Add argument.
11076 * target.c (update_current_target): Update.
11077 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11081 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11082 * target.h (struct target_ops) <to_get_trace_status>: Add
11084 (target_get_trace_status): Add argument.
11085 * target.c (update_current_target): Update.
11086 * remote.c (remote_get_trace_status): Add 'self' argument.
11087 (remote_start_remote, remote_can_download_tracepoint): Update.
11088 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops) <to_trace_start>: Add argument.
11093 (target_trace_start): Add argument.
11094 * target.c (update_current_target): Update.
11095 * remote.c (remote_trace_start): Add 'self' argument.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11101 (target_trace_set_readonly_regions): Add argument.
11102 * target.c (update_current_target): Update.
11103 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11110 (target_disable_tracepoint): Add argument.
11111 * target.c (update_current_target): Update.
11112 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11118 (target_enable_tracepoint): Add argument.
11119 * target.c (update_current_target): Update.
11120 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target.h (struct target_ops) <to_download_trace_state_variable>:
11126 (target_download_trace_state_variable): Add argument.
11127 * target.c (update_current_target): Update.
11128 * remote.c (remote_download_trace_state_variable): Add 'self'
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11135 (target_can_download_tracepoint): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11141 * target.h (struct target_ops) <to_download_tracepoint>: Add
11143 (target_download_tracepoint): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_download_tracepoint): Add 'self' argument.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target.h (struct target_ops) <to_trace_init>: Add argument.
11150 (target_trace_init): Add argument.
11151 * target.c (update_current_target): Update.
11152 * remote.c (remote_trace_init): Add 'self' argument.
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11157 * target.c (target_fileio_readlink): Add argument.
11158 * remote.c (remote_hostio_readlink): Add 'self' argument.
11159 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11163 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11164 * target.c (target_fileio_unlink): Add argument.
11165 * remote.c (remote_hostio_unlink): Add 'self' argument.
11166 (remote_file_delete): Update.
11167 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11171 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11172 * target.c (target_fileio_close): Add argument.
11173 * remote.c (remote_hostio_close): Add 'self' argument.
11174 (remote_hostio_close_cleanup): Update.
11175 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11177 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11181 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11182 * target.c (target_fileio_pread): Add argument.
11183 * remote.c (remote_hostio_pread): Add 'self' argument.
11184 (remote_bfd_iovec_pread, remote_file_get): Update.
11185 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11190 * target.c (target_fileio_pwrite): Add argument.
11191 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11192 (remote_file_put): Update.
11193 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11198 * target.c (target_fileio_open): Add argument.
11199 * remote.c (remote_hostio_open): Add 'self' argument.
11200 (remote_bfd_iovec_open): Add 'self' argument.
11201 (remote_file_put): Add 'self' argument.
11202 (remote_file_get): Add 'self' argument.
11203 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11209 (target_can_run_breakpoint_commands): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11213 (remote_insert_breakpoint): Add 'self' argument.
11214 (remote_insert_hw_breakpoint): Add 'self' argument.
11215 (remote_can_run_breakpoint_commands): Add 'self' argument.
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11219 * target.h (struct target_ops)
11220 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11221 (target_supports_evaluation_of_breakpoint_conditions): Add
11223 * target.c (update_current_target): Update.
11224 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11226 (remote_insert_breakpoint): Add 'self' argument.
11227 (remote_insert_hw_breakpoint): Add 'self' argument.
11228 (remote_supports_cond_breakpoints): Add 'self' argument.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11234 (target_supports_string_tracing): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops)
11241 <to_supports_disable_randomization>: Add argument.
11242 * target.c (find_default_supports_disable_randomization): Add
11244 (target_supports_disable_randomization): Add argument.
11245 (find_default_supports_disable_randomization): Add 'self'
11247 * remote.c (extended_remote_supports_disable_randomization): Add
11249 (remote_supports_disable_randomization): Add 'self' argument.
11250 (extended_remote_create_inferior): Update.
11251 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target.h (struct target_ops)
11257 <to_supports_enable_disable_tracepoint>: Add argument.
11258 (target_supports_enable_disable_tracepoint): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target.h (struct target_ops) <to_supports_multi_process>: Add
11267 (target_supports_multi_process): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_supports_multi_process): Add 'self' argument.
11270 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11272 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.h (struct target_ops) <to_execution_direction>: Add
11279 (target_execution_direction): Add argument.
11280 * target.c (default_execution_direction): Add 'self' argument.
11281 * record-full.c (record_full_execution_direction): Add 'self'
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11288 (target_can_execute_reverse): Add argument.
11289 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11290 * record-full.c (record_full_can_execute_reverse): Add 'self'
11292 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11297 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11298 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11300 (target_get_ada_task_ptid): Add argument.
11301 * target.c (update_current_target): Update.
11302 (default_get_ada_task_ptid): Add 'self' argument.
11303 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11304 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11305 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11307 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11309 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11311 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11313 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11314 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11320 (target_goto_bookmark): Add argument.
11321 * target.c (dummy_goto_bookmark): Add 'self' argument.
11322 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11326 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11327 (target_get_bookmark): Add argument.
11328 * target.c (dummy_get_bookmark): Add 'self' argument.
11329 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11331 2014-02-19 Tom Tromey <tromey@redhat.com>
11333 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11335 (target_make_corefile_notes): Add argument.
11336 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11337 * procfs.c (procfs_make_note_section): Add 'self' argument.
11338 (procfs_make_note_section): Add 'self' argument.
11339 (procfs_make_note_section): Add 'self' argument.
11340 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11342 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11343 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11344 * exec.c (exec_make_note_section): Add 'self' argument.
11345 (exec_make_note_section): Add 'self' argument.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * target.h (struct target_ops) <to_find_memory_regions>: Add
11351 (target_find_memory_regions): Add argument.
11352 * target.c (dummy_find_memory_regions): Add 'self' argument.
11353 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11354 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11355 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11356 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11357 * exec. (exec_do_find_memory_regions): New global.
11358 (exec_set_find_memory_regions): Rewrite.
11359 (exec_find_memory_regions): New function.
11360 (init_exec_ops): Use exec_find_memory_regions.
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11364 * target.h (struct target_ops) <to_supports_non_stop>: Add
11366 * target.c (find_default_supports_non_stop): Add argument.
11367 (target_supports_non_stop): Add argument.
11368 (find_default_supports_non_stop): Add 'self' argument.
11369 * remote.c (remote_supports_non_stop): Add 'self' argument.
11370 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target.h (struct target_ops) <to_log_command>: Add argument.
11375 (target_log_command): Add argument.
11376 * serial.h (serial_log_command): Add 'self' argument.
11377 * serial.c (serial_log_command): Add 'self' argument.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11382 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11384 (target_pid_to_exec_file): Add argument.
11385 * target.c (debug_to_pid_to_exec_file): Add argument.
11386 (update_current_target): Update.
11387 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11388 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11389 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11390 (linux_handle_extended_wait): Update.
11391 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11392 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11393 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11394 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11398 * target.h (struct target_ops) <to_rcmd>: Add argument.
11399 (target_rcmd): Add argument.
11400 * target.c (debug_to_rcmd): Add argument.
11401 (update_current_target, do_monitor_command): Update.
11402 * remote.c (remote_rcmd): Add 'self' argument.
11403 * monitor.c (monitor_rcmd): Add 'self' argument.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * windows-nat.c (windows_stop): Add 'self' argument.
11408 * target.h (struct target_ops) <to_stop>: Add argument.
11409 * target.c (target_stop): Add argument.
11410 (debug_to_stop): Add argument.
11411 (update_current_target): Update.
11412 * remote.c (remote_stop): Add 'self' argument.
11413 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11414 (gdbsim_cntrl_c): Update.
11415 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11416 * procfs.c (procfs_stop): Add 'self' argument.
11417 * nto-procfs.c (procfs_stop): Add 'self' argument.
11418 * monitor.c (monitor_stop): Add 'self' argument.
11419 (monitor_open): Update.
11420 * linux-nat.c (linux_nat_stop): Add argument.
11421 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11422 * gnu-nat.c (gnu_stop): Add 'self' argument.
11423 * darwin-nat.c (darwin_stop): Add 'self' argument.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target.h (struct target_ops) <to_thread_name>: Add argument.
11428 * target.c (target_thread_name): Add argument.
11429 (update_current_target): Update.
11430 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target.h (struct target_ops) <to_extra_thread_info>: Add
11436 (target_extra_thread_info): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_threads_extra_info): Add 'self' argument.
11439 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11441 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11442 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11443 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11445 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11447 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11449 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11452 2014-02-19 Tom Tromey <tromey@redhat.com>
11454 * target.h (struct target_ops) <to_program_signals>: Add argument.
11455 * target.c (target_program_signals): Add argument.
11456 * remote.c (remote_program_signals): Add 'self' argument.
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11460 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11461 * target.c (target_pass_signals): Add argument.
11462 * remote.c (remote_pass_signals): Add 'self' argument.
11463 (remote_start_remote): Update.
11464 * procfs.c (procfs_pass_signals): Add 'self' argument.
11465 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11466 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11467 (linux_nat_create_inferior, linux_nat_attach): Update.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * windows-nat.c (windows_can_run): Add 'self' argument.
11472 * target.h (struct target_ops) <to_can_run>: Add argument.
11473 (target_can_run): Add argument.
11474 * target.c (debug_to_can_run): Add argument.
11475 (update_current_target): Update.
11476 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11477 * inf-child.c (inf_child_can_run): Add 'self' argument.
11478 * go32-nat.c (go32_can_run): Add 'self' argument.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_has_exited>: Add argument.
11483 (target_has_exited): Add argument.
11484 * target.c (debug_to_has_exited): Add argument.
11485 (update_current_target): Update.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11491 (target_set_syscall_catchpoint): Add argument.
11492 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11494 * target.c (update_current_target): Update.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11500 (target_remove_exec_catchpoint): Add argument.
11501 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11502 (update_current_target): Update.
11503 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11508 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11510 (target_insert_exec_catchpoint): Add argument.
11511 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11512 (update_current_target): Update.
11513 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11520 (target_remove_vfork_catchpoint): Add argument.
11521 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11522 (update_current_target): Update.
11523 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11530 (target_insert_vfork_catchpoint): Add argument.
11531 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11532 (update_current_target): Update.
11533 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11538 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11540 (target_remove_fork_catchpoint): Add argument.
11541 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11542 (update_current_target): Update.
11543 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11550 (target_insert_fork_catchpoint): Add argument.
11551 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11552 (update_current_target): Update.
11553 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11560 (target_post_startup_inferior): Add argument.
11561 * target.c (debug_to_post_startup_inferior): Add argument.
11562 (update_current_target): Update.
11563 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11565 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11567 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11569 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11571 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11573 (super_post_startup_inferior): Likewise.
11574 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11576 (super_post_startup_inferior): Likewise.
11577 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11578 Add 'self' argument.
11579 (super_post_startup_inferior): Likewise.
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11583 * target.h (struct target_ops) <to_load>: Add argument.
11584 * target.c (target_load): Add argument.
11585 (debug_to_load): Add argument.
11586 (update_current_target): Update.
11587 * remote.c (remote_load): Add 'self' argument.
11588 * remote-sim.c (gdbsim_load): Add 'self' argument.
11589 * remote-mips.c (mips_load): Add 'self' argument.
11590 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11591 * monitor.c (monitor_load): Add 'self' argument.
11592 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11597 (target_terminal_info): Add argument.
11598 * target.c (debug_to_terminal_info): Add argument.
11599 (default_terminal_info): Likewise.
11600 * inflow.c (child_terminal_info): Add 'self' argument.
11601 * inferior.h (child_terminal_info): Add 'self' argument.
11602 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11606 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11608 (target_terminal_save_ours): Add argument.
11609 * target.c (debug_to_terminal_save_ours): Add argument.
11610 (update_current_target): Update.
11611 * inflow.c (terminal_save_ours): Add 'self' argument.
11612 * inferior.h (terminal_save_ours): Add 'self' argument.
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11616 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11617 (target_terminal_ours): Add argument.
11618 * target.c (debug_to_terminal_ours): Add argument.
11619 (update_current_target): Update.
11620 * remote.c (remote_terminal_ours): Add 'self' argument.
11621 (remote_close): Update.
11622 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11623 * inflow.c (terminal_ours): Add 'self' argument.
11624 * inferior.h (terminal_ours): Add 'self' argument.
11625 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11627 2014-02-19 Pedro Alves <palves@redhat.com>
11628 Tom Tromey <tromey@redhat.com>
11630 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11632 (target_terminal_ours_for_output): Add argument.
11633 * target.c (debug_to_terminal_ours_for_output): Add argument.
11634 (update_current_target): Update.
11635 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11636 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11637 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * target.h (struct target_ops) <to_terminal_inferior>: Add
11643 * target.c (target_terminal_inferior): Add argument.
11644 (update_current_target): Update.
11645 * remote.c (remote_terminal_inferior): Add 'self' argument.
11646 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11647 * inflow.c (terminal_inferior): Add 'self' argument.
11648 * inferior.h (terminal_inferior): Add 'self' argument.
11649 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11650 (go32_terminal_inferior): Add 'self' argument.
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11654 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11655 (target_terminal_init): Add argument.
11656 * target.c (debug_to_terminal_init): Add argument.
11657 (update_current_target): Update.
11658 * inflow.c (terminal_init_inferior): Add 'self' argument.
11659 * inferior.h (terminal_init_inferior): Add 'self' argument.
11660 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11661 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11663 2014-02-19 Tom Tromey <tromey@redhat.com>
11665 * target.h (struct target_ops)
11666 <to_can_accel_watchpoint_condition>: Add argument.
11667 (target_can_accel_watchpoint_condition): Add argument.
11668 * target.c (debug_to_can_accel_watchpoint_condition): Add
11670 (update_current_target): Update.
11671 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11678 (target_region_ok_for_hw_watchpoint): Add argument.
11679 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11680 (default_region_ok_for_hw_watchpoint): Add argument.
11681 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11682 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11684 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11686 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11688 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11690 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11692 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11694 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11695 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11697 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11698 Add 'self' argument.
11700 2014-02-19 Tom Tromey <tromey@redhat.com>
11702 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11704 (target_insert_watchpoint): Add argument.
11705 * target.c (debug_to_insert_watchpoint): Add argument.
11706 (update_current_target): Update.
11707 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11708 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11709 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11710 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11711 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11712 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11714 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11715 (procfs_insert_hw_watchpoint): Add 'self' argument.
11716 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11718 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11720 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11722 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11723 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11725 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11732 (target_remove_watchpoint): Add argument.
11733 * target.c (debug_to_remove_watchpoint): Add argument.
11734 (update_current_target): Update.
11735 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11736 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11737 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11738 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11739 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11740 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11742 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11743 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11745 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11747 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11749 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11750 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11752 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11759 (target_remove_hw_breakpoint): Add argument.
11760 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11761 (update_current_target): Update.
11762 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11763 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11765 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11766 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11768 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11773 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11775 (target_insert_hw_breakpoint): Add argument.
11776 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11777 (update_current_target): Update.
11778 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11779 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11781 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11782 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11783 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11785 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11792 (target_can_use_hardware_watchpoint): Add argument.
11793 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11794 (update_current_target): Update.
11795 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11797 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11799 * remote.c (remote_check_watch_resources): Add 'self' argument.
11800 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11801 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11803 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11804 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11806 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11808 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11810 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11812 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11814 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11816 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11817 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11819 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target.h (struct target_ops) <to_post_attach>: Add argument.
11825 (target_post_attach): Add argument.
11826 * target.c (debug_to_post_attach): Add argument.
11827 (update_current_target): Update.
11828 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11829 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11830 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11831 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11832 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11834 2014-02-19 Tom Tromey <tromey@redhat.com>
11836 * windows-nat.c (windows_close): Add 'self' argument.
11837 * tracepoint.c (tfile_close): Add 'self' argument.
11838 * target.h (struct target_ops) <to_close>: Add argument.
11839 * target.c (target_close): Add argument.
11840 (update_current_target): Update.
11841 * remote.c (remote_close): Add 'self' argument.
11842 * remote-sim.c (gdbsim_close): Add 'self' argument.
11843 * remote-mips.c (mips_close): Add 'self' argument.
11844 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11845 * record-full.c (record_full_close): Add 'self' argument.
11846 * record-btrace.c (record_btrace_close): Add 'self' argument.
11847 * monitor.h (monitor_close): Add 'self' argument.
11848 * monitor.c (monitor_close): Add 'self' argument.
11849 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11850 * linux-nat.c (linux_nat_close): Add argument.
11851 * go32-nat.c (go32_close): Add 'self' argument.
11852 * exec.c (exec_close_1): Add 'self' argument.
11853 * ctf.c (ctf_close): Add 'self' argument.
11854 * corelow.c (core_close): Add 'self' argument.
11855 (core_close_cleanup): Update.
11856 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11857 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * remote.c (remote_load): New function.
11862 (init_remote_ops): Use it.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11868 * common/linux-btrace.h (linux_supports_btrace): Update.
11869 * remote.c (remote_supports_btrace): Add "self" argument.
11870 * target-delegates.c: Rebuild.
11871 * target.c (target_supports_btrace): Remove.
11872 * target.h (struct target_ops) <to_supports_btrace>: Add
11873 target_ops argument.
11874 (target_supports_btrace): New define.
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * record-full.c (record_full_beneath_to_resume_ops)
11879 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11880 (record_full_beneath_to_wait)
11881 (record_full_beneath_to_store_registers_ops)
11882 (record_full_beneath_to_store_registers)
11883 (record_full_beneath_to_xfer_partial_ops)
11884 (record_full_beneath_to_xfer_partial)
11885 (record_full_beneath_to_insert_breakpoint_ops)
11886 (record_full_beneath_to_insert_breakpoint)
11887 (record_full_beneath_to_remove_breakpoint_ops)
11888 (record_full_beneath_to_remove_breakpoint)
11889 (record_full_beneath_to_stopped_by_watchpoint)
11890 (record_full_beneath_to_stopped_data_address)
11891 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11892 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11893 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11894 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11895 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11896 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11897 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11898 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11899 (record_full_resume, record_full_wait_1)
11900 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11901 (record_full_store_registers, record_full_xfer_partial)
11902 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11903 (record_full_async, record_full_core_xfer_partial): Use target
11905 * target-delegates.c: Rebuild.
11906 * target.c (current_xfer_partial): Remove.
11907 (update_current_target): Do not INHERIT or de_fault
11908 to_insert_breakpoint, to_remove_breakpoint,
11909 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11910 to_is_async_p, to_async. Do not set to_xfer_partial field.
11911 (default_xfer_partial): Simplify.
11912 (current_xfer_partial): Remove.
11913 (target_wait, target_resume): Simplify.
11914 (find_default_can_async_p, find_default_is_async_p): Update.
11915 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11916 to_xfer_partial, to_stopped_by_watchpoint,
11917 to_stopped_data_address.
11918 (target_store_registers): Simplify.
11919 (forward_target_remove_breakpoint)
11920 (forward_target_insert_breakpoint): Remove.
11921 (target_remove_breakpoint, target_insert_breakpoint)
11922 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11923 * target.h (struct target_ops) <to_resume, to_wait,
11924 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11925 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11926 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11928 (forward_target_remove_breakpoint)
11929 (forward_target_insert_breakpoint): Remove.
11930 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11932 (record_btrace_insert_breakpoint): Delegate directly.
11934 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target-delegates.c: New file.
11938 * target.c: Include target-delegates.c.
11939 (init_dummy_target): Call install_dummy_methods.
11940 (complete_target_initialization): Call install_delegators.
11941 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11942 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11943 * make-target-delegates: New file.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * record.c (find_record_target): Use find_target_at.
11948 * target.c (find_target_at): New function.
11949 * target.h (find_target_at): Declare.
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11953 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11954 Add 'ops' argument.
11955 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11957 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11958 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11960 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11962 * linux-nat.c (save_sigtrap): Update.
11963 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11964 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11965 (linux_nat_close): Update.
11966 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11968 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11970 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11971 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11972 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11973 (tmp_to_async): Add 'ops' argument.
11974 (record_full_stopped_by_watchpoint, record_full_async)
11975 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11977 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11978 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11979 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11980 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11981 (remote_is_async_p, remote_async): Add 'ops' argument.
11982 (remote_stopped_data_address): Update.
11983 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11984 * target.c (update_current_target)
11985 (find_default_can_async_p, find_default_is_async_p): Update.
11986 (init_dummy_target): Update.
11987 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11988 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11989 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11990 (target_can_async_p, target_is_async_p, target_async)
11991 (target_stopped_by_watchpoint): Update.
11993 2014-02-19 Yao Qi <yao@codesourcery.com>
11996 * gdbarch.sh: Remove startup_gdbarch.
11997 * gdbarch.c: Regenerated.
11998 * gdbarch.h: Likewise.
12000 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12002 * rl78-tdep.c (rl78_g10_register_name): New function.
12003 (rl78_return_value): Add g10 support.
12004 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12007 2014-02-17 Doug Evans <xdje42@gmail.com>
12009 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12010 (SUBDIR_GUILE_SRCS): Ditto.
12011 (scm-gsmob.o): Ditto.
12013 2014-02-17 Yao Qi <yao@codesourcery.com>
12015 * gnu-nat.c (ILL_RPC): Declare defined function.
12017 2014-02-17 Yao Qi <yao@codesourcery.com>
12019 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12020 mach_msg_type_number_t.
12021 (gnu_write_inferior): Likewise.
12023 2014-02-17 Yao Qi <yao@codesourcery.com>
12025 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12027 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12028 (inf_validate_procs, inf_signal): Likewise.
12029 (S_exception_raise_request): Likewise.
12030 (do_mach_notify_dead_name): Likewise.
12031 (steal_exc_port): Likewise.
12032 (gnu_read_inferior): Change 'copy_count''s type to
12033 mach_msg_type_number_t.
12034 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12037 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12039 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12040 flag. Adjust all users; in particular...
12041 (gnu_wait): ..., don't decrement its value in here...
12042 (gnu_create_inferior): ..., and instead set the flag in here,
12043 around the startup_inferior call, and call that one with
12044 START_INFERIOR_TRAPS_EXPECTED.
12046 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12047 (ILL_RPC): ... new macro.
12048 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12049 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12050 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12051 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12052 functions with ILL_RPC macro.
12053 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12054 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12055 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12056 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12057 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12058 (S_proc_getlogin_reply, S_proc_getsid_reply)
12059 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12060 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12061 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12062 (S_proc_getnports_reply, S_proc_is_important_reply)
12063 (S_proc_get_code_reply): New stub functions, generated with
12066 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12067 collected the type check structures.
12069 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12071 2014-02-14 Doug Evans <dje@google.com>
12073 * target.c (target_write_partial): Fix result type.
12075 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12077 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12078 the proper offsets to access fpregset_t.
12080 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12082 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12083 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12084 * h8300-tdep.c (setmachinelist): Remove global.
12085 * hppa-tdep.c (hppa_sigtramp): Remove global.
12086 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12087 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12088 * ravenscar-thread.c (update_target_observer): Remove global.
12089 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12091 2014-02-12 Tom Tromey <tromey@redhat.com>
12093 * common/rsp-low.c: Update comments.
12094 * common/rsp-low.h: Update comments.
12096 2014-02-12 Tom Tromey <tromey@redhat.com>
12098 * common/rsp-low.c (convert_ascii_to_int): Remove.
12099 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12101 2014-02-12 Tom Tromey <tromey@redhat.com>
12103 * common/rsp-low.h (unhexify): Don't declare.
12104 * common/rsp-low.c (unhexify): Remove.
12106 2014-02-12 Tom Tromey <tromey@redhat.com>
12108 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12109 * common/rsp-low.c (convert_int_to_ascii): Remove.
12111 2014-02-12 Tom Tromey <tromey@redhat.com>
12113 * common/rsp-low.h (hexify): Don't declare.
12114 * common/rsp-low.c (hexify): Remove.
12116 2014-02-12 Tom Tromey <tromey@redhat.com>
12118 * common/rsp-low.c (hexify): Never take strlen of argument.
12120 2014-02-12 Tom Tromey <tromey@redhat.com>
12122 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12123 * remote.c (extended_remote_run, remote_rcmd)
12124 (remote_download_trace_state_variable, remote_save_trace_data)
12125 (remote_set_trace_notes): Update.
12126 * tracepoint.c (encode_source_string, tfile_write_status)
12127 (tfile_write_uploaded_tsv): Update.
12129 2014-02-12 Tom Tromey <tromey@redhat.com>
12131 * tracepoint.c: Include rsp-low.h.
12132 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12133 * remote.c: Include rsp-low.h.
12134 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12135 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12136 (remote_unescape_input): Move to common/rsp-low.c.
12137 * common/rsp-low.h: New file.
12138 * common/rsp-low.c: New file.
12139 * Makefile.in (SFILES): Add common/rsp-low.c.
12140 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12141 (COMMON_OBS): Add rsp-low.o.
12142 (rsp-low.o): New target.
12144 2014-02-12 Tom Tromey <tromey@redhat.com>
12146 * utils.h: Include print-utils.h.
12147 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12148 (int_string, core_addr_to_string, core_addr_to_string_nz)
12149 (hex_string, hex_string_custom): Don't declare.
12150 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12151 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12152 (hex_string_custom, int_string, core_addr_to_string)
12153 (core_addr_to_string_nz, host_address_to_string): Move to
12154 common/print-utils.c.
12155 * common/print-utils.h: New file.
12156 * common/print-utils.c: New file
12157 * Makefile.in (SFILES): Add common/print-utils.c.
12158 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12159 (COMMON_OBS): Add print-utils.o.
12160 (print-utils.o): New target.
12162 2014-02-12 Tom Tromey <tromey@redhat.com>
12164 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12166 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12168 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12170 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12172 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12173 if a PT_IO ptrace request returns sucessfully but indicates that 0
12174 bytes were transferred.
12176 2014-02-12 Pedro Alves <palves@redhat.com>
12177 Kevin Buettner <kevinb@redhat.com>
12179 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12180 TYPE_INSTANCE_FLAG_CODE_SPACE.
12182 2014-02-12 Pedro Alves <palves@redhat.com>
12184 * h8300-tdep.c (pseudo_from_raw_register)
12185 (raw_from_pseudo_register): New functions.
12186 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12189 2014-02-12 Pedro Alves <palves@redhat.com>
12191 * h8300-tdep.c (h8300_register_sim_regno): New function.
12192 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12193 gdbarch_register_sim_regno hook.
12195 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12197 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12199 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12201 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12203 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12205 * obsd-tdep.h (obsd_init_abi): New prototype.
12206 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12207 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12208 (obsd_init_abi): New functions.
12209 * i386obsd-tdep.c: Include "obsd-tdep.h".
12210 (i386obsd_init_abi): Call obsd_init_abi.
12211 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12212 (amd64obsd_init_abi): Call obsd_init_abi.
12213 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12214 obsd-tdep.c to gdb_target_obs.
12216 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12218 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12219 double float arguments to 16-byte in the argument slots.
12221 2014-02-11 Doug Evans <xdje42@gmail.com>
12223 * configure.ac: Don't crash if pkg-config is not found and guile
12224 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12226 * configure: Regenerate.
12228 2014-02-11 Yao Qi <yao@codesourcery.com>
12230 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12231 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12232 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12233 * gnu-nat.c (gnu_xfer_memory): Likewise.
12234 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12235 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12236 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12237 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12239 2014-02-11 Yao Qi <yao@codesourcery.com>
12241 * target.h (enum target_xfer_error): Rename to ...
12242 (enum target_xfer_status): ... it. New. All users updated.
12243 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12245 (TARGET_XFER_STATUS_ERROR_P): New macro.
12246 (target_xfer_error_to_string): Remove declaration.
12247 (target_xfer_status_to_string): Declare.
12248 (target_xfer_partial_ftype): Adjust it.
12249 (struct target_ops) <to_xfer_partial>: Return
12250 target_xfer_status. Add argument xfered_len. Update
12252 * target.c (target_xfer_error_to_string): Rename to ...
12253 (target_xfer_status_to_string): ... it. New. All callers
12255 (target_read_live_memory): Likewise. Call target_xfer_partial
12256 instead of target_read.
12257 (memory_xfer_live_readonly_partial): Return
12258 target_xfer_status. Add argument xfered_len.
12259 (raw_memory_xfer_partial): Likewise.
12260 (memory_xfer_partial_1): Likewise.
12261 (memory_xfer_partial): Likewise.
12262 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12263 properly. Update debug message.
12264 (default_xfer_partial, current_xfer_partial): Likewise.
12265 (target_write_partial): Likewise.
12266 (target_read_partial): Likewise. All callers updated.
12267 (read_whatever_is_readable): Likewise.
12268 (target_write_with_progress): Likewise.
12269 (target_read_alloc_1): Likewise.
12271 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12272 * auxv.c (procfs_xfer_auxv): Likewise.
12273 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12274 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12275 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12276 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12277 * corefile.c (read_memory): Adjust.
12278 * corelow.c (core_xfer_partial): Likewise.
12279 * ctf.c (ctf_xfer_partial): Likewise.
12280 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12282 (darwin_xfer_partial): Likewise.
12283 * exec.c (section_table_xfer_memory_partial): Likewise. All
12285 (exec_xfer_partial): Likewise.
12286 * exec.h (section_table_xfer_memory_partial): Update
12288 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12290 (gnu_xfer_partial): Likewise.
12291 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12292 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12293 (ia64_hpux_xfer_solib_got): Likewise.
12294 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12295 type of 'partial_len' to ULONGEST.
12296 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12297 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12298 (linux_nat_xfer_partial): Likewise.
12299 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12300 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12301 * monitor.c (monitor_xfer_memory): Likewise.
12302 (monitor_xfer_partial): Likewise.
12303 * procfs.c (procfs_xfer_partial): Likewise.
12304 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12305 * record-full.c (record_full_xfer_partial): Likewise.
12306 (record_full_core_xfer_partial): Likewise.
12307 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12308 (gdbsim_xfer_partial): Likewise.
12309 * remote.c (remote_write_bytes_aux): Likewise. All callers
12311 (remote_write_bytes, remote_read_bytes): Likewise. All
12313 (remote_flash_erase): Likewise. All callers updated.
12314 (remote_write_qxfer): Likewise. All callers updated.
12315 (remote_read_qxfer): Likewise. All callers updated.
12316 (remote_xfer_partial): Likewise.
12317 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12318 (rs6000_xfer_shared_libraries): Likewise.
12319 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12320 (sol_thread_xfer_partial): Likewise.
12321 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12322 (sparc_xfer_partial): Likewise.
12323 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12325 (spu_xfer_partial): Likewise.
12326 * spu-multiarch.c (spu_xfer_partial): Likewise.
12327 * tracepoint.c (tfile_xfer_partial): Likewise.
12328 * windows-nat.c (windows_xfer_memory): Likewise.
12329 (windows_xfer_shared_libraries): Likewise.
12330 (windows_xfer_partial): Likewise.
12331 * valprint.c: Replace 'target_xfer_error' with
12332 'target_xfer_status' in comments.
12334 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12336 Checked in by Joel Brobecker <brobecker@adacore.com>.
12337 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12339 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12341 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12342 function parameters.
12344 2014-02-10 Will Newton <will.newton@linaro.org>
12346 * elfread.c (elf_rel_plt_read): Look for a .got section if
12347 looking up .got.plt fails.
12348 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12349 on address passed to elf_gnu_ifunc_record_cache.
12350 (elf_gnu_ifunc_resolve_addr): Likewise.
12351 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12353 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12355 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12356 (X_RETTURN): New macro.
12357 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12359 * sparc64-tdep.c (sparc64_init_abi): Hook
12360 sparc_in_function_epilogue_p.
12362 2014-02-10 Gary Benson <gbenson@redhat.com>
12364 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12365 Rename name_matcher to symbol_matcher.
12367 2014-02-10 Gary Benson <gbenson@redhat.com>
12369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12370 Use expand_symtabs_file_matcher_ftype and
12371 expand_symtabs_symbol_matcher_ftype.
12373 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12375 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12376 (struct ada_symbol_cache): New.
12377 (ada_free_symbol_cache): Forward declare.
12378 (struct ada_pspace_data): New.
12379 (ada_pspace_data_handle): New static global.
12380 (get_ada_pspace_data, ada_pspace_data_cleanup)
12381 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12382 (cache_space, cache): Delete, now folded inside struct
12384 (ada_get_symbol_cache): New function.
12385 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12387 (_initialize_ada_language): Remove initialization of cache_space.
12388 Move call to observer_attach_inferior_exit up, grouping it
12389 with the other observer registrations inside this function.
12390 Rename command to be more general. Add call to
12391 register_program_space_data_with_cleanup.
12393 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12395 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12396 ada_new_objfile_observer.
12397 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12398 (_initialize_tasks): Update uses of ada_new_objfile_observer
12399 and ada_tasks_normal_stop_observer.
12401 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12403 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12404 returned by the 'Length attribute to integer.
12406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12408 * ada-lang.c (_initialize_ada_language): Initialize
12409 cache_space obstack.
12411 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12413 * ada-lang.c (HASH_SIZE): New macro.
12414 (struct cache_entry): New type.
12415 (cache_space, cache): New static globals.
12416 (ada_clear_symbol_cache, find_entry): New functions.
12417 (lookup_cached_symbol, cache_symbol): Implement.
12418 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12419 (_initialize_ada_language): Attach ada_new_objfile_observer
12420 and ada_free_objfile_observer.
12422 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12424 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12425 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12426 struct block * parameter.
12427 (ada_lookup_symbol_list_worker): Constify local variable "block".
12428 Remove cast which is no longer necessary.
12430 2014-02-10 Doug Evans <xdje42@gmail.com>
12432 Add Guile as an extension language.
12433 * NEWS: Mention Guile scripting.
12434 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12435 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12436 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12437 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12438 (CLIBS): Add GUILE_LIBS.
12439 (install-guile): New rule.
12440 (guile.o): New rule.
12441 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12442 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12443 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12444 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12445 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12446 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12447 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12448 * configure.ac: New option --with-guile.
12449 * configure: Regenerate.
12450 * config.in: Regenerate.
12451 * auto-load.c: Remove #include "python/python.h". Add #include
12452 "gdb/section-scripts.h".
12453 (source_section_scripts): Handle Guile scripts.
12454 (_initialize_auto_load): Add name of Guile objfile script to
12455 scripts-directory help text.
12456 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12457 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12458 (struct breakpoint): New member scm_bp_object.
12459 * defs.h (enum command_control_type): New value guile_control.
12460 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12462 (show_user): Update comment.
12463 (_initialize_cli_cmds): Update help text for "show user". Update help
12464 text for max-user-call-depth.
12465 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12467 (multi_line_command_p): Add guile_control.
12468 (print_command_lines): Handle guile_control.
12469 (execute_control_command, recurse_read_control_structure): Ditto.
12470 (process_next_line): Recognize "guile" commands.
12471 * disasm.c (gdb_disassemble_info): Make non-static.
12472 * disasm.h: #include "dis-asm.h".
12473 (struct gdbarch): Add forward decl.
12474 (gdb_disassemble_info): Declare.
12475 * extension.c: #include "guile/guile.h".
12476 (extension_languages): Add guile.
12477 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12478 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12479 * gdbtypes.c (get_unsigned_type_max): New function.
12480 (get_signed_type_minmax): New function.
12481 * gdbtypes.h (get_unsigned_type_max): Declare.
12482 (get_signed_type_minmax): Declare.
12483 * guile/README: New file.
12484 * guile/guile-internal.h: New file.
12485 * guile/guile.c: New file.
12486 * guile/guile.h: New file.
12487 * guile/scm-arch.c: New file.
12488 * guile/scm-auto-load.c: New file.
12489 * guile/scm-block.c: New file.
12490 * guile/scm-breakpoint.c: New file.
12491 * guile/scm-disasm.c: New file.
12492 * guile/scm-exception.c: New file.
12493 * guile/scm-frame.c: New file.
12494 * guile/scm-gsmob.c: New file.
12495 * guile/scm-iterator.c: New file.
12496 * guile/scm-lazy-string.c: New file.
12497 * guile/scm-math.c: New file.
12498 * guile/scm-objfile.c: New file.
12499 * guile/scm-ports.c: New file.
12500 * guile/scm-pretty-print.c: New file.
12501 * guile/scm-safe-call.c: New file.
12502 * guile/scm-string.c: New file.
12503 * guile/scm-symbol.c: New file.
12504 * guile/scm-symtab.c: New file.
12505 * guile/scm-type.c: New file.
12506 * guile/scm-utils.c: New file.
12507 * guile/scm-value.c: New file.
12508 * guile/lib/gdb.scm: New file.
12509 * guile/lib/gdb/boot.scm: New file.
12510 * guile/lib/gdb/experimental.scm: New file.
12511 * guile/lib/gdb/init.scm: New file.
12512 * guile/lib/gdb/iterator.scm: New file.
12513 * guile/lib/gdb/printing.scm: New file.
12514 * guile/lib/gdb/types.scm: New file.
12515 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12516 (VPATH): Add $(GUILE_SRCDIR).
12517 (GUILE_DIR): New variable.
12518 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12519 (all): Add stamp-guile dependency.
12520 (stamp-guile): New rule.
12521 (clean-guile, install-guile, uninstall-guile): New rules.
12522 (install-only): Add install-guile dependency.
12523 (uninstall): Add uninstall-guile dependency.
12524 (clean): Add clean-guile dependency.
12526 2014-02-09 Doug Evans <xdje42@gmail.com>
12528 Revert this patch (which I approved, mea culpa).
12530 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12532 * Makefile.in (all-lib): Remove.
12533 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12535 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12537 Fix Python stack corruption.
12538 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12541 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12543 * Makefile.in (all-lib): Remove.
12544 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12546 2014-02-07 Doug Evans <dje@google.com>
12548 * extension-priv.h (extension_language_script_ops): Add comment.
12549 (extension_language_ops): Add comment.
12550 (active_ext_lang_state): Fix typo in comment.
12552 2014-02-07 Pedro Alves <palves@redhat.com>
12554 PR breakpoints/16292
12555 * infrun.c (handle_signal_stop) <signal arrives while stepping
12556 over a breakpoint>: Switch back to the stepping thread.
12558 2014-02-07 Yao Qi <yao@codesourcery.com>
12560 * target.c (target_xfer_partial): Return zero if LEN is zero.
12562 2014-02-07 Yao Qi <yao@codesourcery.com>
12564 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12565 (ld_so_xfer_auxv): Likewise.
12566 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12567 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12568 * corelow.c (core_xfer_partial): Likewise.
12569 * ctf.c (ctf_xfer_partial): Likewise.
12570 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12571 (darwin_xfer_partial): Likewise.
12572 * exec.c (exec_xfer_partial): Likewise.
12573 * gnu-nat.c (gnu_xfer_partial): Likewise.
12574 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12575 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12576 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12577 * linux-nat.c (linux_xfer_siginfo): Likewise.
12578 (linux_proc_xfer_spu): Likewise.
12579 * procfs.c (procfs_xfer_partial): Likewise.
12580 * record-full.c (record_full_xfer_partial): Likewise.
12581 (record_full_core_xfer_partial): Likewise.
12582 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12583 * remote.c (remote_write_qxfer): Likewise.
12584 (remote_write_qxfer, remote_read_qxfer): Likewise.
12585 (remote_xfer_partial): Likewise.
12586 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12587 (rs6000_xfer_shared_libraries): Likewise.
12588 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12589 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12590 (spu_xfer_partial): Likewise.
12591 * target.c (memory_xfer_partial_1): Likewise.
12592 * tracepoint.c (tfile_xfer_partial): Likewise.
12593 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12594 (windows_xfer_partial): Likewise.
12596 2014-02-07 Yao Qi <yao@codesourcery.com>
12598 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12600 (core_xfer_shared_libraries_aix): Likewise.
12601 * gdbarch.c, gdbarch.h: Regenerated.
12602 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12603 ULONGEST. Change 'len_avail' type to ULONGEST.
12604 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12605 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12607 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12609 2014-02-07 Yao Qi <yao@codesourcery.com>
12611 * corefile.c (memory_error): Get 'exception' from ERR and pass
12612 'exception' to throw_error.
12614 2014-02-06 Doug Evans <xdje42@gmail.com>
12616 * configure.ac (libpython checking): Remove all but python.o from
12617 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12618 * configure: Regenerate.
12620 * Makefile.in (SFILES): Add extension.c.
12621 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12622 (COMMON_OBS): Add extension.o.
12623 * extension.h: New file.
12624 * extension-priv.h: New file.
12625 * extension.c: New file.
12627 * python/python-internal.h: #include "extension.h".
12628 (gdbpy_auto_load_enabled): Declare.
12629 (gdbpy_apply_val_pretty_printer): Declare.
12630 (gdbpy_apply_frame_filter): Declare.
12631 (gdbpy_preserve_values): Declare.
12632 (gdbpy_breakpoint_cond_says_stop): Declare.
12633 (gdbpy_breakpoint_has_cond): Declare.
12634 (void source_python_script_for_objfile): Delete.
12635 * python/python.c: #include "extension-priv.h".
12636 Delete inclusion of "observer.h".
12637 (extension_language_python): Moved here and renamed from
12638 script_language_python in py-auto-load.c.
12639 Redefined to be of type extension_language_defn.
12640 (python_extension_script_ops): New global.
12641 (python_extension_ops): New global.
12642 (struct python_env): New member previous_active.
12643 (restore_python_env): Call restore_active_ext_lang.
12644 (ensure_python_env): Call set_active_ext_lang.
12645 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12647 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12649 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12651 (gdbpy_eval_from_control_command): Renamed from
12652 eval_python_from_control_command, made static. New arg extlang.
12653 (gdbpy_source_script) Renamed from source_python_script, made static.
12655 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12656 result to int. New arg extlang.
12657 (gdbpy_source_objfile_script): Renamed from
12658 source_python_script_for_objfile, made static. New arg extlang.
12659 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12660 static. New args extlang, extlang_printers. Change result type to
12662 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12663 static. New arg extlang. Rename arg printers to extlang_printers
12664 and change type to ext_lang_type_printers *.
12665 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12666 static. Replace argument arg with extlang, extlang_printers.
12667 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12668 (!HAVE_PYTHON, source_python_script): Delete.
12669 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12670 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12671 (!HAVE_PYTHON, start_type_printers): Delete.
12672 (!HAVE_PYTHON, apply_type_printers): Delete.
12673 (!HAVE_PYTHON, free_type_printers): Delete.
12674 (_initialize_python): Delete call to observer_attach_before_prompt.
12675 (finalize_python): Set/restore active extension language.
12676 (gdbpy_finish_initialization) Renamed from
12677 finish_python_initialization, made static. New arg extlang.
12678 (gdbpy_initialized): New function.
12679 * python/python.h: #include "extension.h". Delete #include
12680 "value.h", "mi/mi-cmds.h".
12681 (extension_language_python): Declare.
12682 (GDBPY_AUTO_FILE_NAME): Delete.
12683 (enum py_bt_status): Moved to extension.h and renamed to
12684 ext_lang_bt_status.
12685 (enum frame_filter_flags): Moved to extension.h.
12686 (enum py_frame_args): Moved to extension.h and renamed to
12687 ext_lang_frame_args.
12688 (finish_python_initialization): Delete.
12689 (eval_python_from_control_command): Delete.
12690 (source_python_script): Delete.
12691 (apply_val_pretty_printer): Delete.
12692 (apply_frame_filter): Delete.
12693 (preserve_python_values): Delete.
12694 (gdbpy_script_language_defn): Delete.
12695 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12696 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12698 * auto-load.c: #include "extension.h".
12699 (GDB_AUTO_FILE_NAME): Delete.
12700 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12701 (script_language_gdb): Delete, moved to extension.c and renamed to
12702 extension_language_gdb.
12703 (source_gdb_script_for_objfile): Delete.
12704 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12705 (loaded_script): Change type of language member to
12706 struct extension_language_defn *.
12707 (init_loaded_scripts_info): Initialize
12708 unsupported_script_warning_printed.
12709 (maybe_add_script): Make static. Change type of language arg to
12710 struct extension_language_defn *.
12711 (clear_section_scripts): Reset unsupported_script_warning_printed.
12712 (auto_load_objfile_script_1): Rewrite to use extension language API.
12713 (auto_load_objfile_script): Make public. Remove support-compiled-in
12714 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12715 (source_section_scripts): Rewrite to use extension language API.
12716 (load_auto_scripts_for_objfile): Rewrite to use
12717 auto_load_scripts_for_objfile.
12718 (collect_matching_scripts_data): Change type of language member to
12719 struct extension_language_defn *.
12720 (auto_load_info_scripts): Change type of language arg to
12721 struct extension_language_defn *.
12722 (unsupported_script_warning_print): New function.
12723 (script_not_found_warning_print): Make static.
12724 (_initialize_auto_load): Rewrite construction of scripts-directory
12726 * auto-load.h (struct objfile): Add forward decl.
12727 (struct script_language): Delete.
12728 (struct auto_load_pspace_info): Add forward decl.
12729 (struct extension_language_defn): Add forward decl.
12730 (maybe_add_script): Delete.
12731 (auto_load_objfile_script): Declare.
12732 (script_not_found_warning_print): Delete.
12733 (auto_load_info_scripts): Update prototype.
12734 (auto_load_gdb_scripts_enabled): Declare.
12735 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12736 auto_load_python_scripts_enabled and made public.
12737 (script_language_python): Delete, moved to python.c.
12738 (gdbpy_script_language_defn): Delete.
12739 (info_auto_load_python_scripts): Update to use
12740 extension_language_python.
12742 * breakpoint.c (condition_command): Replace call to
12743 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12744 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12745 with call to breakpoint_ext_lang_cond_says_stop.
12746 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12747 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12748 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12749 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12751 (local_setattro): Print name of extension language with existing
12754 * valprint.c (val_print, value_print): Update to call
12755 apply_ext_lang_val_pretty_printer.
12756 * cp-valprint.c (cp_print_value): Update call to
12757 apply_ext_lang_val_pretty_printer.
12758 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12759 (gdbpy_apply_val_pretty_printer): Renamed from
12760 apply_val_pretty_printer. New arg extlang.
12761 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12763 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12764 extension language API.
12765 * cli/cli-script.c (execute_control_command): Update to call
12766 eval_ext_lang_from_control_command.
12768 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12769 enum ext_lang_bt_status values. Update call to
12770 apply_ext_lang_frame_filter.
12771 (mi_cmd_stack_list_locals): Ditto.
12772 (mi_cmd_stack_list_args): Ditto.
12773 (mi_cmd_stack_list_variables): Ditto.
12774 * mi/mi-main.c: Delete #include "python/python-internal.h".
12775 Add #include "extension.h".
12776 (mi_cmd_list_features): Replace reference to python internal variable
12777 gdb_python_initialized with call to ext_lang_initialized_p.
12779 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12780 Update to use enum ext_lang_frame_args. Update to call
12781 apply_ext_lang_frame_filter.
12782 * python/py-framefilter.c (extract_sym): Update to use enum
12783 ext_lang_bt_status.
12784 (extract_value, py_print_type, py_print_value): Ditto.
12785 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12786 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12787 (py_print_frame): Ditto.
12788 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12789 New arg extlang. Update to use enum ext_lang_bt_status.
12791 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12792 finish_python_initialization. Replace with call to
12793 finish_ext_lang_initialization.
12795 * typeprint.c (do_free_global_table): Update to call
12796 free_ext_lang_type_printers.
12797 (create_global_typedef_table): Update to call
12798 start_ext_lang_type_printers.
12799 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12800 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12801 (type_print_options): Change type of global_printers from "void *"
12802 to "struct ext_lang_type_printers *".
12804 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12805 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12806 (gdbpy_preserve_values): Renamed from preserve_python_values.
12808 (!HAVE_PYTHON, preserve_python_values): Delete.
12810 * utils.c (quit_flag): Delete, moved to extension.c.
12811 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12814 * eval.c: Delete #include "python/python.h".
12815 * main.c: Delete #include "python/python.h".
12817 * defs.h: Update comment.
12819 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12823 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12825 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12828 2014-02-05 Yao Qi <yao@codesourcery.com>
12830 * remote.c (remote_pass_signals): Remove local 'buf' and use
12832 (remote_program_signals): Likewise.
12834 2014-02-05 Yao Qi <yao@codesourcery.com>
12836 * ctf.c: Include "inferior.h" and "gdbthread.h".
12837 (CTF_PID): A new macro.
12838 (ctf_open): Call inferior_appeared and add_thread_silent.
12839 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12840 (ctf_thread_alive): New function.
12841 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12843 2014-02-05 Yao Qi <yao@codesourcery.com>
12847 2013-05-24 Yao Qi <yao@codesourcery.com>
12849 * tracepoint.c (TFILE_PID): Remove.
12850 (tfile_open): Don't add thread and inferior.
12851 (tfile_close): Don't set 'inferior_ptid'. Don't call
12852 exit_inferior_silent.
12853 (tfile_thread_alive): Remove.
12854 (init_tfile_ops): Don't set field 'to_thread_alive' of
12857 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12859 * remote.c (remote_start_remote): Call remote_check_symbols even
12860 if only symbol-file (not file) has been given.
12862 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12864 * gdbarch.sh (skip_entrypoint): New callback.
12865 * gdbarch.c, gdbarch.h: Regenerate.
12866 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12867 * infrun.c (fill_in_stop_func): Likewise.
12868 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12869 (ppc_elfv2_elf_make_msymbol_special): New function.
12870 (ppc_elfv2_skip_entrypoint): Likewise.
12871 (ppc_linux_init_abi): Install them for ELFv2.
12873 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12875 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12876 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12877 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12878 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12879 structures returned in GPRs.
12881 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12884 offset to the stack parameter list for the ELFv2 ABI.
12886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12888 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12889 set_gdbarch_convert_from_func_ptr_addr and
12890 set_gdbarch_elf_make_msymbol_special for ELFv1.
12891 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12892 function descriptors on ELFv1.
12893 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12894 set up r12 at function entry.
12896 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12898 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12899 (struct gdbarch_tdep): New member elf_abi.
12901 * rs6000-tdep.c: Include "elf/ppc64.h".
12902 (rs6000_gdbarch_init): Detect ELF ABI version.
12904 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12906 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12907 within a register pair holding a DFP 128-bit value on little-endian.
12908 (ppc64_sysv_abi_return_value_base): Likewise.
12909 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12910 (dfp_pseudo_register_write): Likewise.
12912 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12914 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12915 offset on little-endian when passing _Decimal32.
12916 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12920 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12921 of the overlapped FP register within the VSX register on little-
12923 (efpr_pseudo_register_write): Likewise.
12925 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12927 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12928 offset on little-endian when passing small structures.
12930 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12932 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12933 (struct ppc64_sysv_argpos): New data structure.
12934 (ppc64_sysv_abi_push_float): Remove.
12935 (ppc64_sysv_abi_push_val): New function.
12936 (ppc64_sysv_abi_push_integer): Likewise.
12937 (ppc64_sysv_abi_push_freg): Likewise.
12938 (ppc64_sysv_abi_push_vreg): Likewise.
12939 (ppc64_sysv_abi_push_param): Likewise.
12940 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12941 (ppc64_sysv_abi_return_value_base): New function.
12942 (ppc64_sysv_abi_return_value): Refactor to use it.
12944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12946 * NEWS: Document new target powerpc64le-*-linux*.
12948 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12950 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12951 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12953 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12954 register set used in ELF core dumps. Add floating-point register set.
12956 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12958 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12959 dwarf2_to_gdb[] table using symbolic constants. Adjust
12960 penultimate entry from number representing the PC register
12961 to symbolic constant representing the MDR register. Add
12962 constant for the PC register to the end of the table.
12964 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12966 * bsd-kvm.c: Include <sys/param.h>
12968 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12970 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12972 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12974 * ada-lang.h (clear_ada_sym_cache): Delete.
12976 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12978 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12980 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12982 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12983 the sigreturn register save area only if the syscall is
12986 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12988 * valops.c (value_slice): Minor reformatting.
12990 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12992 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12994 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12996 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12997 New static globals.
12998 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12999 (ada_ignore_descriptive_types_p): New static global.
13000 (find_parallel_type_by_descriptive_type): Return immediately
13001 if ada_ignore_descriptive_types_p is set.
13002 (_initialize_ada_language): Register new commands "maintenance
13003 set ada", "maintenance show ada", "maintenance set ada
13004 ignore-descriptive-types" and "maintenance show ada
13005 ignore-descriptive-types".
13006 * NEWS: Add entry for new "maint ada set/show
13007 ignore-descriptive-types" commands.
13009 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13011 * record-btrace.c (record_btrace_close): Call btrace_teardown
13014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13016 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13021 * ada-typeprint (type_is_full_subrange_of_target_type):
13023 (print_range): Add parameter bounds_prefered_p. If not set,
13024 try printing range types using the name of their base type.
13025 (print_range_type): Add parameter bounds_prefered_p.
13026 Use it in call to print_range.
13027 (print_array_type, ada_print_type): Update calls to print_range
13028 and print_range_type.
13030 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13032 * ada-typeprint.c (print_array_type, print_choices, print_range)
13033 (print_range_bound, print_dynamic_range_bound, print_range_type):
13034 Remove declaration.
13036 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13038 * ada-typeprint.c (print_range): Add missing empty line
13039 after local declaration.
13041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13043 * ada-valprint.c (print_optional_low_bound): Get index_type's
13044 target type for as long as it is a TYPE_CODE_RANGE.
13046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13048 * procfs.c (procfs_make_note_section): Remove assertion and
13049 associated comment.
13051 2014-01-24 Yao Qi <yao@codesourcery.com>
13053 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13054 * corelow.c (get_core_siginfo): Likewise.
13056 2014-01-24 Yao Qi <yao@codesourcery.com>
13058 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13059 ULONGEST. Don't check 'len' is negative.
13060 (remote_write_bytes): Change type of 'len' to ULONGEST.
13062 2014-01-23 Tom Tromey <tromey@redhat.com>
13065 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13066 Handle exception from frame.block.
13067 (FrameVars.fetch_frame_locals): Likewise.
13069 2014-01-23 Tom Tromey <tromey@redhat.com>
13072 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13073 on a NULL pointer. Move "goto error" to correct place.
13075 2014-01-23 Tom Tromey <tromey@redhat.com>
13078 * python/py-framefilter.c (apply_frame_filter): Call
13079 ensure_python_env after computing gdbarch.
13081 2014-01-23 Yao Qi <yao@codesourcery.com>
13083 * target.c (raw_memory_xfer_partial): Change argument type
13084 from void * to gdb_byte *.
13085 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13087 2014-01-22 Doug Evans <dje@google.com>
13089 New gdbserver option --debug-format=timestamp.
13090 * NEWS: Mention it.
13092 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13094 * syscalls/s390x-linux.xml: New file.
13095 * syscalls/s390-linux.xml: New file.
13096 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13097 (XML_SYSCALL_FILENAME_S390X): Likewise.
13098 (op_svc): New enum value for SVC opcode.
13099 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13100 (s390_linux_get_syscall_number): New function.
13101 (s390_gdbarch_init): Register '*get_syscall_number' and the
13102 syscall xml file name.
13103 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13104 "s390-linux.xml" and "s390x-linux.xml".
13105 * NEWS: Announce new feature.
13107 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13109 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13111 2014-01-22 Pedro Alves <palves@redhat.com>
13113 * xtensa-config.c: Include defs.h.
13115 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13117 * common/common-utils.h: Add "ARI:" comment beside __func__
13120 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13122 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13123 documentation a bit.
13125 2014-01-21 Roland McGrath <mcgrathr@google.com>
13127 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13128 * configure: Regenerate.
13129 * aclocal.m4: Regenerate.
13130 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13131 New substituted variables.
13132 (install-strip): New target.
13133 (INSTALL_SCRIPT): New substituted variable.
13134 (FLAGS_TO_PASS): Add it.
13135 (install-only): Use $(INSTALL_SCRIPT) rather than
13136 $(INSTALL_PROGRAM) for gcore.
13138 2014-01-20 Tom Tromey <tromey@redhat.com>
13140 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13143 2014-01-20 Tom Tromey <tromey@redhat.com>
13145 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13146 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13147 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13148 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13149 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13150 (struct cmd_list_element) <flags>: Remove.
13151 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13152 doc_allocated>: New fields.
13153 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13155 * maint.c (maintenance_do_deprecate): Update.
13156 * top.c (execute_command): Update.
13158 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13160 * xtensa-linux-nat.c: Include asm/ptrace.h.
13162 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13164 * Makefile.in (SFILES): Add d-support.c.
13165 (COMMON_OBS): Add d-support.o.
13166 * d-lang.h (d_parse_symbol): Add comment, now defined in
13168 * d-lang.c (parse_call_convention)
13169 (parse_attributes, parse_function_types)
13170 (parse_function_args, parse_type, parse_identifier)
13171 (call_convention_p, d_parse_symbol): Move functions to ...
13172 * d-support.c: ... New file.
13174 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13176 * d-lang.h (d_parse_symbol): Add declaration.
13177 * d-lang.c (extract_identifiers)
13178 (extract_type_info): Remove functions.
13179 (parse_call_convention, parse_attributes)
13180 (parse_function_types, parse_function_args)
13181 (parse_type, parse_identifier, call_convention_p)
13182 (d_parse_symbol): New functions.
13183 (d_demangle): Use d_parse_symbol to demangle D symbols.
13185 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13187 * d-lang.h (struct builtin_d_type): New data type.
13188 (builtin_d_type): Add declaration.
13189 * d-lang.c (d_language_arch_info, build_d_types)
13190 (builtin_d_type): New functions.
13191 (enum d_primitive_types): New data type.
13192 (d_language_defn): Change c_language_arch_info to
13193 d_language_arch_info.
13194 (d_type_data): New static variable.
13195 (_initialize_d_language): Initialize d_type_data.
13197 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13199 * d-lang.h (d_main_name): Add declaration.
13200 * d-lang.c (d_main_name): New function.
13201 * symtab.c (find_main_name): Add call to d_main_name.
13203 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13205 * d-lang.c (d_language_defn): Change macro_expansion_c to
13206 macro_expansion_no.
13208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13210 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13212 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13214 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13215 gdb_exception" declaration.
13216 * remote.c (getpkt_or_notif_sane): Likewise.
13218 2014-01-17 Doug Evans <dje@google.com>
13220 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13221 function, contents of dirnames_to_char_ptr_vec_append moved here.
13222 (delim_string_to_char_ptr_vec): New function.
13223 (dirnames_to_char_ptr_vec_append): Rewrite.
13224 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13226 2014-01-17 Doug Evans <dje@google.com>
13228 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13230 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13231 #include "common-utils.h".
13232 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13233 * common/vec.h (VEC_ASSERT_PASS): Update.
13234 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13235 (MACH_CHECK_ERROR): Update.
13237 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13239 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13241 * gdbarch.h: Regenerate.
13243 2014-01-16 Tom Tromey <tromey@redhat.com>
13245 * value.c (struct value) <regnum>: Move earlier.
13247 2014-01-16 Tom Tromey <tromey@redhat.com>
13249 * remote.c (extended_remote_create_inferior): Rename from
13250 extended_remote_create_inferior_1. Add "ops" argument. Remove
13251 old implementation.
13253 2014-01-16 Pedro Alves <palves@redhat.com>
13255 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13256 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13259 2014-01-16 Doug Evans <dje@google.com>
13261 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13265 * btrace.h (btrace_thread_flag): New.
13266 (struct btrace_thread_info) <flags>: New.
13267 * record-btrace.c (record_btrace_resume_thread)
13268 (record_btrace_find_thread_to_move, btrace_step_no_history)
13269 (btrace_step_stopped, record_btrace_start_replaying)
13270 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13271 (record_btrace_find_resume_thread): New.
13272 (record_btrace_resume, record_btrace_wait): Extend.
13273 (record_btrace_can_execute_reverse): New.
13274 (record_btrace_open): Fail in non-stop mode.
13275 (record_btrace_set_replay): Split into this, ...
13276 (record_btrace_stop_replaying): ... this, ...
13277 (record_btrace_clear_histories): ... and this.
13278 (init_record_btrace_ops): Init to_can_execute_reverse.
13279 * NEWS: Announce it.
13281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13283 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13284 (forward_target_decr_pc_after_break)
13285 (target_decr_pc_after_break): New.
13286 * target.c (forward_target_decr_pc_after_break)
13287 (target_decr_pc_after_break): New.
13288 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13289 instead of gdbarch_decr_pc_after_break.
13290 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13291 instead of gdbarch_decr_pc_after_break.
13292 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13293 instead of gdbarch_decr_pc_after_break.
13294 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13295 instead of gdbarch_decr_pc_after_break.
13296 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13297 instead of gdbarch_decr_pc_after_break.
13298 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13299 instead of gdbarch_decr_pc_after_break.
13301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13303 * btrace.c: Include regcache.h.
13304 (btrace_add_pc): New.
13305 (btrace_enable): Call btrace_add_pc.
13306 (btrace_is_empty): New.
13307 * btrace.h (btrace_is_empty): New.
13308 * record-btrace.c (require_btrace, record_btrace_info): Call
13311 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13313 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13314 Support delta reads.
13315 (linux_disable_btrace): Change return type.
13316 * common/linux-btrace.h (linux_read_btrace): Change parameters
13317 and return type to allow error reporting. Update users.
13318 (linux_disable_btrace): Change return type. Update users.
13319 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13321 (btrace_error): New.
13322 (btrace_block) <begin>: Comment on BEGIN == 0.
13323 * btrace.c (btrace_compute_ftrace): Start from the end of
13325 (btrace_stitch_trace, btrace_clear_history): New.
13326 (btrace_fetch): Read delta trace, return if replaying.
13327 (btrace_clear): Move clear history code to btrace_clear_history.
13328 (parse_xml_btrace): Throw an error if parsing failed.
13329 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13330 and return type to allow error reporting.
13331 (target_read_btrace): Change parameters and return type to allow
13333 * target.c (target_read_btrace): Update.
13334 * remote.c (remote_read_btrace): Support delta reads. Pass
13336 * NEWS: Announce it.
13338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13340 * record.h (record_btrace_frame_unwind)
13341 (record_btrace_tailcall_frame_unwind): New declarations.
13342 * dwarf2-frame: Include record.h
13343 (dwarf2_frame_cfa): Throw an error for btrace frames.
13344 * record-btrace.c: Include hashtab.h.
13345 (btrace_get_bfun_name): New.
13346 (btrace_call_history): Call btrace_get_bfun_name.
13347 (struct btrace_frame_cache): New.
13349 (bfcache_hash, bfcache_eq, bfcache_new): New.
13350 (btrace_get_frame_function): New.
13351 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13352 (record_btrace_frame_this_id): Compute own id.
13353 (record_btrace_frame_prev_register): Provide PC, throw_error
13354 for all other registers.
13355 (record_btrace_frame_sniffer): Detect btrace frames.
13356 (record_btrace_tailcall_frame_sniffer): New.
13357 (record_btrace_frame_dealloc_cache): New.
13358 (record_btrace_frame_unwind): Add new functions.
13359 (record_btrace_tailcall_frame_unwind): New.
13360 (_initialize_record_btrace): Allocate cache.
13361 * btrace.c (btrace_clear): Call reinit_frame_cache.
13362 * NEWS: Announce it.
13364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13366 * record-btrace.c (record_btrace_set_replay)
13367 (record_btrace_goto_begin, record_btrace_goto_end)
13368 (record_btrace_goto): New.
13369 (init_record_btrace_ops): Initialize them.
13370 * NEWS: Announce it.
13372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13374 * record-btrace.c (record_btrace_find_new_threads)
13375 (record_btrace_thread_alive): New.
13376 (init_record_btrace_ops): Initialize to_find_new_threads and
13379 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13381 * record-btrace.c (record_btrace_resume): New.
13382 (record_btrace_wait): New.
13383 (init_record_btrace_ops): Initialize to_wait and to_resume.
13385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13387 * record-btrace.c (record_btrace_xfer_partial)
13388 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13389 (record_btrace_allow_memory_access): New.
13390 (init_record_btrace_ops): Initialize new methods.
13391 * target.c (raw_memory_xfer_partial): Bail out if target reports
13392 that this memory is not available.
13394 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13396 * target.h (target_ops) <to_insert_breakpoint>
13397 <to_remove_breakpoint>: Add target_ops parameter.
13398 (forward_target_insert_breakpoint): New.
13399 (forward_target_remove_breakpoint): New.
13400 (memory_remove_breakpoint, memory_insert_breakpoint):
13401 Add target_ops parameter.
13402 * target.c (target_insert_breakpoint): Split into this and ...
13403 (forward_target_insert_breakpoint): ... this.
13404 (target_remove_breakpoint): Split into this and ...
13405 (forward_target_remove_breakpoint): ... this.
13406 (debug_to_insert_breakpoint): Add target_ops parameter.
13407 Call forward_target_insert_breakpoint.
13408 (debug_to_remove_breakpoint): Add target_ops parameter.
13409 Call forward_target_remove_breakpoint.
13410 (update_current_target): Do not inherit or default to_insert_breakpoint
13411 and to_remove_breakpoint.
13412 * corelow.c (ignore): Add target_ops parameter.
13413 * exec.c (ignore): Add target_ops parameter.
13414 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13415 Add target_ops parameter.
13416 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13417 Add target_ops parameter.
13418 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13419 Add target_ops parameter.
13420 * record-full.c (record_full_beneath_to_insert_breakpoint)
13421 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13422 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13423 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13424 (record_full_core_remove_breakpoint): Add target_ops parameter.
13426 (record_full_beneath_to_insert_breakpoint_ops)
13427 (record_full_beneath_to_remove_breakpoint_ops)
13428 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13429 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13430 tmp_to_remove_breakpoint_ops,
13431 record_full_beneath_to_insert_breakpoint_ops, and
13432 record_full_beneath_to_remove_breakpoint_ops.
13433 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13434 (m32r_remove_breakpoint): Add target_ops parameter.
13435 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13436 Add target_ops parameter.
13437 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13438 Add target_ops parameter.
13440 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13441 Markus Metzger <markus.t.metzger@intel.com>
13443 * record-btrace.c: Include frame-unwind.h.
13444 (record_btrace_frame_unwind_stop_reason)
13445 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13446 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13448 (init_record_btrace_ops): Install it.
13450 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13452 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13455 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13457 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13460 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13462 * frame-unwind.c: Include target.h.
13463 (frame_unwind_try_unwinder): New function with code from ...
13464 (frame_unwind_find_by_frame): ... here. New variable
13465 unwinder_from_target, call also target_get_unwinder)
13466 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13467 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13468 * target.h (struct target_ops): New fields to_get_unwinder and
13469 to_get_tailcall_unwinder.
13470 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13472 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13474 * record-btrace.c (record_btrace_fetch_registers)
13475 (record_btrace_store_registers)
13476 (record_btrace_to_prepare_to_store): New.
13477 (init_record_btrace_ops): Add the above.
13479 2014-01-16 Tom Tromey <tromey@redhat.com>
13481 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13482 * target.h (struct target_ops) <to_prepare_to_store>: Add
13484 (target_prepare_to_store): Add argument.
13485 * target.c (debug_to_prepare_to_store): Add argument.
13486 (update_current_target): Update.
13487 * remote.c (remote_prepare_to_store): Add 'self' argument.
13488 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13489 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13490 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13491 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13493 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13494 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13495 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13496 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13497 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13501 * btrace.h (replay) <replay>: New.
13502 (btrace_is_replaying): New.
13503 * btrace.c (btrace_clear): Free replay iterator.
13504 (btrace_is_replaying): New.
13505 * record-btrace.c (record_btrace_is_replaying): New.
13506 (record_btrace_info): Print insn number if replaying.
13507 (record_btrace_insn_history): Start at replay position.
13508 (record_btrace_call_history): Start at replay position.
13509 (init_record_btrace_ops): Init to_record_is_replaying.
13511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13513 * record-btrace.c (record_btrace_insn_history_range): Include
13515 (record_btrace_insn_history_from): Adjust range.
13516 (record_btrace_call_history_range): Include
13518 (record_btrace_call_history_from): Adjust range.
13519 * NEWS: Announce changes.
13521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13523 * record.h (enum record_print_flag)
13524 <record_print_indent_calls>: New.
13525 * record.c (get_call_history_modifiers): Recognize /c modifier.
13526 (_initialize_record): Document /c modifier.
13527 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13528 Reorder fields. Optionally indent the function name. Update
13530 * NEWS: Announce changes.
13532 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13534 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13538 * btrace.c (ftrace_new_function): Start counting at one.
13539 * record-btrace.c (record_btrace_info): Adjust number of calls
13541 * NEWS: Announce it.
13543 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13545 * record-btrace.c (btrace_call_history_insn_range): Print
13546 insn range as [begin, end].
13548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13550 * btrace.h (struct btrace_func_link): New.
13551 (enum btrace_function_flag): New.
13552 (struct btrace_inst): Rename to ...
13553 (struct btrace_insn): ...this. Update all users.
13554 (struct btrace_func) <ibegin, iend>: Remove.
13555 (struct btrace_func_link): New.
13556 (struct btrace_func): Rename to ...
13557 (struct btrace_function): ...this. Update all users.
13558 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13559 (number, level, flags>: New.
13560 (struct btrace_insn_iterator): Rename to ...
13561 (struct btrace_insn_history): ...this.
13563 (struct btrace_insn_iterator, btrace_call_iterator): New.
13564 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13565 (struct btrace_target_info) <begin, end, level>
13566 <insn_history, call_history>: New.
13567 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13568 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13569 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13570 (btrace_call_number, btrace_call_begin, btrace_call_end)
13571 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13572 (btrace_find_function_by_number, btrace_set_insn_history)
13573 (btrace_set_call_history): New.
13574 * btrace.c (btrace_init_insn_iterator)
13575 (btrace_init_func_iterator, compute_itrace): Remove.
13576 (ftrace_print_function_name, ftrace_print_filename)
13577 (ftrace_skip_file): Change
13578 parameter to const.
13579 (ftrace_init_func): Remove.
13580 (ftrace_debug): Use new btrace_function fields.
13581 (ftrace_function_switched): Also consider gaining and
13582 losing symbol information).
13583 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13584 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13585 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13587 (ftrace_new_function): Move. Remove debug print.
13588 (ftrace_update_lines, ftrace_update_insns): New.
13589 (ftrace_update_function): Check for call, ret, and jump.
13590 (compute_ftrace): Renamed to ...
13591 (btrace_compute_ftrace): ...this. Rewritten to compute call
13593 (btrace_fetch, btrace_clear): Updated.
13594 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13595 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13596 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13597 (btrace_call_number, btrace_call_begin, btrace_call_end)
13598 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13599 (btrace_find_function_by_number, btrace_set_insn_history)
13600 (btrace_set_call_history): New.
13601 * record-btrace.c (require_btrace): Use new btrace thread
13603 (record_btrace_info, btrace_insn_history)
13604 (record_btrace_insn_history, record_btrace_insn_history_range):
13605 Use new btrace thread info fields and new iterator.
13606 (btrace_func_history_src_line): Rename to ...
13607 (btrace_call_history_src_line): ...this. Use new btrace
13608 thread info fields.
13609 (btrace_func_history): Rename to ...
13610 (btrace_call_history): ...this. Use new btrace thread info
13611 fields and new iterator.
13612 (record_btrace_call_history, record_btrace_call_history_range):
13613 Use new btrace thread info fields and new iterator.
13615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13617 * frame.h (frame_id_build_unavailable_stack_special): New.
13618 * frame.c (frame_id_build_unavailable_stack_special): New.
13620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13623 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13624 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13626 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13627 (i386_insn_is_jump, i386_jmp_p): New.
13628 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13629 insn_is_jump to gdbarch.
13630 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13631 * gdbarch.h: Regenerated.
13632 * gdbarch.c: Regenerated.
13633 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13634 (default_insn_is_jump): New.
13635 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13636 (default_insn_is_jump): New.
13638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13640 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13642 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13643 (btrace_read_type) <btrace_read_new>: Change to ...
13644 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13648 * common/linux-btrace.c (linux_read_btrace): Free trace from
13649 previous iteration.
13651 2014-01-15 Doug Evans <dje@google.com>
13653 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13656 2014-01-15 Tom Tromey <tromey@redhat.com>
13658 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13659 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13660 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13661 (set_objfile_main_name): New function.
13662 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13663 language_of_main>: New fields.
13664 (set_objfile_main_name): Declare.
13665 * symtab.c (find_main_name): Loop over objfiles to find the main
13667 (set_main_name): Now static.
13668 (get_main_info): Add comment.
13669 * symtab.h (set_main_name): Don't declare.
13671 2014-01-15 Tom Tromey <tromey@redhat.com>
13673 * symtab.c (main_progspace_key): New global.
13674 (struct main_info): New.
13675 (name_of_main, language_of_main): Remove.
13676 (get_main_info, main_info_cleanup): New function.
13677 (set_main_name, main_name, main_language): Use get_main_info.
13678 (_initialize_symtab): Initialize main_progspace_key.
13680 2014-01-15 Tom Tromey <tromey@redhat.com>
13682 * dbxread.c (process_one_symbol): Update.
13683 * dwarf2read.c (read_partial_die): Update.
13684 * symfile.c (set_initial_language): Call main_language.
13685 * symtab.c (language_of_main): Now static.
13686 (set_main_name): Add 'lang' parameter.
13687 (find_main_name): Update.
13688 (main_language): New function.
13689 (symtab_observer_executable_changed): Update.
13690 * symtab.h (set_main_name): Update.
13691 (language_of_main): Remove.
13692 (main_language): Declare.
13694 2014-01-15 Tom Tromey <tromey@redhat.com>
13696 * symfile.c (init_entry_point_info): Use new "initialized" field.
13698 * objfiles.h (struct entry_point) <initialized>: New field.
13699 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13700 (struct objfile) <ei>: ...here. Remove.
13701 * objfiles.c (entry_point_address_query): Update.
13703 2014-01-15 Tom Tromey <tromey@redhat.com>
13705 * objfiles.c (entry_point_address_query): Relocate entry point
13707 (objfile_relocate1): Do not relocate entry point address.
13708 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13709 <the_bfd_section_index>: New field.
13710 * symfile.c (init_entry_point_info): Find the entry point's
13713 2014-01-15 Tom Tromey <tromey@redhat.com>
13715 * solib-frv.c (enable_break): Use entry_point_address_query.
13717 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13719 * NEWS: Add note on improved process record-replay on
13720 arm*-linux* targets.
13722 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13724 * arm-tdep.c (enum arm_record_result): New enum.
13725 (arm_record_unsupported_insn): New function.
13726 (arm_record_coproc_data_proc): Removed.
13727 (thumb2_record_ld_st_multiple): New function.
13728 (thumb2_record_ld_st_dual_ex_tbb): New function.
13729 (thumb2_record_data_proc_sreg_mimm): New function.
13730 (thumb2_record_ps_dest_generic): New function.
13731 (thumb2_record_branch_misc_cntrl): New function.
13732 (thumb2_record_str_single_data): New function.
13733 (thumb2_record_ld_mem_hints): New function.
13734 (thumb2_record_ld_word): New function.
13735 (thumb2_record_lmul_lmla_div): New function.
13736 (thumb2_record_decode_insn_handler): New function.
13737 (decode_insn): Add thumb32 instruction handlers.
13739 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13741 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13742 (struct arm_linux_record_tdep): Declare.
13743 (arm_canonicalize_syscall): New function.
13744 (arm_all_but_pc_registers_record): New function.
13745 (arm_linux_syscall_record): New function.
13746 (arm_linux_init_abi): Add syscall recording constructs.
13747 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13748 decoding. (arm_record_coproc_data_proc): Update arm syscall
13750 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13751 <arm_syscall_record>: New field.
13752 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13755 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13757 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13758 register for push instruction recording.
13760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13762 * arm-tdep.c (thumb_record_misc): Update to correct logical
13763 error while recording ldm, ldmia and pop instructions.
13765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13767 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13769 2014-01-15 Pedro Alves <palves@redhat.com>
13771 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13772 (go32_resume, go32_fetch_registers, store_register)
13773 (go32_store_registers, go32_prepare_to_store)
13774 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13775 (go32_create_inferior, go32_can_run, go32_terminal_init)
13776 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13779 2014-01-15 Tom Tromey <tromey@redhat.com>
13781 * target.h (async_callback_ftype): New typedef.
13782 (struct target_ops) <to_async>: Use it.
13784 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13786 * python/py-value.c (get_field_type): Remove unnecessary curly
13787 braces for single-statement if block.
13789 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13791 * python/py-type.c (convert_field): Add missing empty line
13792 after declarations.
13794 2014-01-14 Doug Evans <dje@google.com>
13796 * symfile.h (expand_symtabs_matching): Renamed from
13797 expand_partial_symbol_names. Update prototype.
13798 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13799 * symfile.c (expand_symtabs_matching): Renamed from
13800 expand_partial_symbol_names. New args file_matcher, kind.
13801 Rename arg fun to symbol_matcher.
13802 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13803 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13804 ada_expand_partial_symbol_name.
13805 (ada_make_symbol_completion_list): Update to call
13806 expand_symtabs_matching.
13807 (ada_add_global_exceptions): Call expand_symtabs_matching.
13808 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13809 call map_symbol_filenames.
13810 * symtab.c (sources_info): Update to call map_symbol_filenames.
13811 (search_symbols): Call expand_symtabs_matching.
13812 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13813 (default_make_symbol_completion_list_break_on): Update to call
13814 expand_symtabs_matching.
13815 (make_source_files_completion_list): Update to call
13816 map_symbol_filenames.
13818 2014-01-14 Doug Evans <dje@google.com>
13820 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13821 (expand_symtabs_symbol_matcher_ftype): New typedef.
13822 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13823 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13824 * symfile.c (expand_partial_symbol_names): Update to use
13825 expand_symtabs_symbol_matcher_ftype.
13826 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13827 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13828 Arg name_matcher renamed to symbol_matcher.
13829 * psymtab.c (recursively_search_psymtabs): Update to use
13830 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13832 (expand_symtabs_matching_via_partial): Update to use
13833 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13834 Arg name_matcher renamed to symbol_matcher.
13836 2014-01-14 Doug Evans <dje@google.com>
13838 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13839 (map_partial_symbol_filenames): Ditto.
13840 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13841 (map_partial_symbol_filenames): Ditto.
13842 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13843 (map_partial_symbol_filenames): Ditto.
13844 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13845 (map_partial_symbol_filenames): Ditto.
13846 * symtab.c: Delete #include "psymtab.h".
13848 2014-01-14 Pedro Alves <palves@redhat.com>
13849 Tom Tromey <tromey@redhat.com>
13851 * infrun.c (use_displaced_stepping): Use find_record_target
13852 instead of RECORD_IS_USED.
13853 (adjust_pc_after_break): Use record_full_is_used instead of
13855 * record-btrace.c (record_btrace_open): Call record_preopen
13856 instead of checking RECORD_IS_USED.
13857 * record-full.c (record_full_shortname)
13858 (record_full_core_shortname): New globals.
13859 (record_full_is_used): New function.
13860 (find_full_open): Call record_preopen instead of checking
13862 (init_record_full_ops): Set the target's shortname to
13863 record_full_shortname.
13864 (init_record_full_core_ops): Set the target's shortname to
13865 record_full_core_shortname.
13866 * record-full.h (record_full_is_used): Declare.
13867 * record.c (find_record_target): Make extern.
13868 (record_preopen): New function.
13869 * record.h (RECORD_IS_USED): Delete macro.
13870 (find_record_target, record_preopen): Declare functions.
13872 2014-01-14 Yao Qi <yao@codesourcery.com>
13874 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13875 'len''s type to ULONGEST.
13876 (core_xfer_shared_libraries_aix): Likewise.
13877 * gdbarch.c, gdbarch.h: Regenerated.
13878 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13879 Change type of 'len' to ULONGEST.
13880 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13881 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13883 2014-01-14 Yao Qi <yao@codesourcery.com>
13885 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13886 type of 'len' to ULONGEST.
13887 (linux_xfer_osdata_processgroups): Likewise.
13888 (linux_xfer_osdata_threads): Likewise.
13889 (linux_xfer_osdata_fds): Likewise.
13890 (linux_xfer_osdata_isockets): Likewise.
13891 (linux_xfer_osdata_shm): Likewise.
13892 (linux_xfer_osdata_sem): Likewise.
13893 (linux_xfer_osdata_msg): Likewise.
13894 (linux_common_xfer_osdata): Likewise.
13895 (struct osdata_type) <getter>: Likewise.
13896 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13899 2014-01-14 Yao Qi <yao@codesourcery.com>
13901 * target.h (target_xfer_partial_ftype): Update.
13902 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13904 * aix-thread.c (aix_thread_xfer_partial): Change type of
13905 argument 'len' to ULONGEST.
13906 * auxv.c (procfs_xfer_auxv): Likewise.
13907 (ld_so_xfer_auxv): Likewise.
13908 (memory_xfer_auxv): Likewise.
13909 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13910 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13911 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13912 * corelow.c (core_xfer_partial): Likewise.
13913 * ctf.c (ctf_xfer_partial): Likewise.
13914 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13916 (darwin_read_dyld_info): Likewise.
13917 (darwin_xfer_partial): Likewise.
13918 * exec.c (section_table_xfer_memory_partial): Likewise.
13919 (exec_xfer_partial): Likewise.
13920 * exec.h (section_table_xfer_memory_partial): Update
13922 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13923 instead of plongest.
13924 (gnu_xfer_partial): Likewise.
13925 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13926 (ia64_hpux_xfer_solib_got): Likewise.
13927 (ia64_hpux_xfer_partial): Likewise.
13928 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13929 * inf-ptrace.c (inf_ptrace_xfer_partial):
13930 * inf-ttrace.c (inf_ttrace_xfer_partial):
13931 * linux-nat.c (linux_xfer_siginfo): Likewise.
13932 (linux_nat_xfer_partial): Likewise.
13933 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13934 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13935 * monitor.c (monitor_xfer_memory): Likewise.
13936 (monitor_xfer_partial): Likewise.
13937 * procfs.c (procfs_xfer_partial): Likewise.
13938 * record-full.c (record_full_xfer_partial): Likewise.
13939 (record_full_core_xfer_partial): Likewise.
13940 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13941 instead of plongest.
13942 (gdbsim_xfer_partial): Likewise.
13943 * remote.c (remote_xfer_partial): Likewise.
13944 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13945 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13947 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13948 (rs6000_xfer_shared_libraries): Likewise.
13949 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13950 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13951 (sparc_xfer_partial): Likewise.
13952 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13953 (spu_xfer_partial): Likewise.
13954 * spu-multiarch.c (spu_xfer_partial): Likewise.
13955 * target.c (target_read_live_memory): Likewise.
13956 (memory_xfer_live_readonly_partial): Likewise.
13957 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13958 (target_xfer_partial, default_xfer_partial): Likewise.
13959 (current_xfer_partial): Likewise.
13960 * tracepoint.c (tfile_xfer_partial): Likewise.
13961 * windows-nat.c (windows_xfer_memory): Likewise. Call
13962 pulongest instead of plongest.
13963 (windows_xfer_partial): Likewise.
13964 (windows_xfer_shared_libraries): Likewise.
13966 2014-01-14 Yao Qi <yao@codesourcery.com>
13968 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13969 target_xfer_partial_ftype.
13971 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13975 * valops.c (value_struct_elt_bitpos): New function
13976 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13977 object to 'None' if the field name is an empty string ("").
13978 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13979 attribute to look for a field when 'name' is 'None'.
13980 (get_field_type): New function
13982 2014-01-13 Doug Evans <dje@google.com>
13985 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13986 (try_open_dwop_file): Ditto.
13987 * gdb_bfd.c: #include "vec.h".
13988 (bfdp): New typedef.
13989 (struct gdb_bfd_data): New member included_bfds.
13990 (gdb_bfd_unref): Unref all included bfds.
13991 (gdb_bfd_record_inclusion): New function.
13992 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13994 2014-01-13 Tom Tromey <tromey@redhat.com>
13996 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13998 2014-01-13 Tom Tromey <tromey@redhat.com>
14000 * defs.h (use_windows): Remove.
14001 * gdb.c (main): Update.
14002 * main.c (captured_main, gdb_main): Update.
14003 * main.h (struct captured_main_args) <use_windows>: Remove.
14004 * top.c (use_windows): Remove.
14006 2014-01-13 Tom Tromey <tromey@redhat.com>
14008 * defs.h (deprecated_flush_hook): Remove.
14010 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14013 * linux-thread-db.c (try_thread_db_load): Add parameter
14014 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14015 (try_thread_db_load_from_pdir_1): Move it there from here.
14016 (try_thread_db_load_from_sdir): Update caller.
14017 (try_thread_db_load_from_dir): Move it there from here.
14019 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14021 * regformats/regdat.sh: Always rewrite the register file.
14023 2014-01-13 Pedro Alves <palves@redhat.com>
14025 * Makefile.in (CHECK_HEADERS): New variable.
14026 (check-headers:): New rule.
14028 2014-01-13 Tom Tromey <tromey@redhat.com>
14030 * cli/cli-setshow.c (do_set_command): Update.
14031 * defs.h (deprecated_set_hook): Remove.
14032 * top.c (deprecated_set_hook): Remove.
14034 2014-01-13 Pedro Alves <palves@redhat.com>
14036 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14037 the tracepoint if the PC is a pseudo-register.
14039 2014-01-13 Tom Tromey <tromey@redhat.com>
14041 * defs.h (XCALLOC): Remove.
14042 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14043 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14044 * dwarf2loc.c (allocate_piece_closure): Likewise.
14045 * elfread.c (elf_symfile_segments): Likewise.
14046 (elf_symfile_segments): Likewise.
14047 * gdbtypes.c (copy_type_recursive): Likewise.
14048 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14049 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14050 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14052 * mt-tdep.c (mt_gdbarch_init): Likewise.
14053 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14055 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14056 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14057 * registry.c (registry_alloc_data): Likewise.
14058 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14059 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14060 * serial.c (serial_fdopen_ops): Likewise.
14061 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14063 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14064 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14067 2014-01-13 Tom Tromey <tromey@redhat.com>
14069 * defs.h (XMALLOC): Remove.
14070 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14071 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14072 * cli-out.c (struct ui_out *): Likewise.
14073 * cli/cli-dump.c (add_dump_command): Likewise.
14074 (add_dump_command): Likewise.
14075 * complaints.c (get_complaints): Likewise.
14076 (find_complaint): Likewise.
14077 * dwarf2-frame.c (execute_cfa_program): Likewise.
14078 * dwarf2read.c (abbrev_table_read_table): Likewise.
14079 * gdbarch.sh: Likewise.
14080 * gdbarch.c: Rebuild.
14081 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14082 * interps.c (interp_new): Likewise.
14083 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14084 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14085 * mi/mi-console.c (mi_console_file_new): Likewise.
14086 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14087 * mi/mi-out.c (mi_out_new): Likewise.
14088 * mi/mi-parse.c (mi_parse): Likewise.
14089 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14090 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14091 * observer.c (xalloc_observer_list_node): Likewise.
14092 * regcache.c (regcache_xmalloc_1): Likewise.
14093 * reggroups.c (reggroup_new): Likewise.
14094 (_initialize_reggroup): Likewise.
14095 * registry.c (register_data_with_cleanup): Likewise.
14096 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14097 * ser-base.c (serial_ttystate): Likewise.
14098 * ser-mingw.c (make_pipe_state): Likewise.
14099 * ser-pipe.c (pipe_open): Likewise.
14100 * serial.c (serial_open): Likewise.
14101 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14102 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14103 (tui_alloc_win_info): Likewise.
14104 (tui_add_content_elements): Likewise.
14105 * tui/tui-file.c (tui_file_new): Likewise.
14106 * tui/tui-out.c (tui_out_new): Likewise.
14107 * ui-file.c (mem_file_new): Likewise.
14108 * ui-out.c (push_level): Likewise.
14109 (make_cleanup_ui_out_end): Likewise.
14110 (append_header_to_list): Likewise.
14111 (ui_out_new): Likewise.
14112 * user-regs.c (user_reg_add_builtin): Likewise.
14114 2014-01-13 Tom Tromey <tromey@redhat.com>
14116 * defs.h (XZALLOC): Remove.
14117 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14118 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14119 (get_ada_tasks_inferior_data): Likewise.
14120 * auto-load.c (get_auto_load_pspace_data): Likewise.
14121 * auxv.c (get_auxv_inferior_data): Likewise.
14122 * bfd-target.c (target_bfd_reopen): Likewise.
14123 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14124 (deprecated_insert_raw_breakpoint): Likewise.
14125 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14126 * corelow.c (core_open): Likewise.
14127 * darwin-nat.c (darwin_check_new_threads): Likewise.
14128 (darwin_attach_pid): Likewise.
14129 * dummy-frame.c (dummy_frame_push): Likewise.
14130 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14131 * dwarf2loc.c (allocate_piece_closure): Likewise.
14132 * elfread.c (elf_symfile_segments): Likewise.
14133 * eval.c (ptrmath_type_p): Likewise.
14134 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14135 * gdbtypes.c (alloc_type_arch): Likewise.
14136 (alloc_type_instance): Likewise.
14137 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14138 * inf-child.c (inf_child_can_use_agent): Likewise.
14139 * inflow.c (get_inflow_inferior_data): Likewise.
14140 * infrun.c (save_infcall_suspend_state): Likewise.
14141 * jit.c (jit_reader_load): Likewise.
14142 (get_jit_objfile_data): Likewise.
14143 (get_jit_program_space_data): Likewise.
14144 (jit_object_open_impl): Likewise.
14145 (jit_symtab_open_impl): Likewise.
14146 (jit_block_open_impl): Likewise.
14147 (jit_frame_sniffer): Likewise.
14148 * linux-fork.c (add_fork): Likewise.
14149 * maint.c (make_command_stats_cleanup): Likewise.
14150 * objfiles.c (get_objfile_pspace_data): Likewise.
14151 * opencl-lang.c (struct lval_closure): Likewise.
14152 * osdata.c (osdata_start_osdata): Likewise.
14153 * progspace.c (new_address_space): Likewise.
14154 (add_program_space): Likewise.
14155 * remote-sim.c (get_sim_inferior_data): Likewise.
14156 * sh-tdep.c (sh_gdbarch_init): Likewise.
14157 * skip.c (Ignore): Likewise.
14158 (skip_delete_command): Likewise.
14159 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14160 (library_list_start_library): Likewise.
14161 (solib_aix_current_sos): Likewise.
14162 * solib-darwin.c (get_darwin_info): Likewise.
14163 (darwin_current_sos): Likewise.
14164 * solib-dsbt.c (get_dsbt_info): Likewise.
14165 * solib-ia64-hpux.c (new_so_list): Likewise.
14166 (ia64_hpux_get_solib_linkage_addr): Likewise.
14167 * solib-spu.c (append_ocl_sos): Likewise.
14168 (spu_current_sos): Likewise.
14169 * solib-svr4.c (get_svr4_info): Likewise.
14170 (svr4_keep_data_in_core): Likewise.
14171 (library_list_start_library): Likewise.
14172 (svr4_default_sos): Likewise.
14173 (svr4_read_so_list): Likewise.
14174 * solib-target.c (library_list_start_library): Likewise.
14175 (solib_target_current_sos): Likewise.
14176 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14177 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14178 * symfile.c (default_symfile_segments): Likewise.
14179 * target-descriptions.c (tdesc_data_init): Likewise.
14180 (tdesc_create_reg): Likewise.
14181 (struct tdesc_type *): Likewise.
14182 (tdesc_create_vector): Likewise.
14183 (tdesc_set_struct_size): Likewise.
14184 (struct tdesc_type *): Likewise.
14185 (tdesc_free_feature): Likewise.
14186 (tdesc_create_feature): Likewise.
14187 * windows-nat.c (windows_add_thread): Likewise.
14188 (windows_make_so): Likewise.
14189 * xml-support.c (gdb_xml_body_text): Likewise.
14190 (gdb_xml_create_parser_and_cleanup): Likewise.
14191 (xml_process_xincludes): Likewise.
14192 * xml-syscall.c (allocate_syscalls_info): Likewise.
14193 (syscall_create_syscall_desc): Likewise.
14195 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14197 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14198 function, with code from i386_stap_parse_special_token.
14199 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14200 (i386_stap_parse_special_token): Move code to the two functions
14201 above; simplify it.
14203 2014-01-09 Pedro Alves <palves@redhat.com>
14204 Hui Zhu <hui@codesourcery.com>
14207 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14208 bp_err_string. Don't mark the location shlib_disabled if the
14209 error thrown wasn't a generic or memory error. Catch errors
14210 thrown while inserting breakpoints in overlayed code. Output
14211 error message of software breakpoints.
14212 * remote.c (remote_insert_breakpoint): If this breakpoint has
14213 target-side commands but this stub doesn't support Z0 packets,
14214 throw NOT_SUPPORTED_ERROR error.
14215 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14216 * target.h (target_insert_breakpoint): Extend comment.
14217 (target_insert_hw_breakpoint): Add comment.
14219 2014-01-08 Pedro Alves <palves@redhat.com>
14221 * remote.c (remote_add_thread): Add threads silently if starting
14223 (remote_notice_new_inferior): If in all-stop, and starting up,
14224 don't call notice_new_inferior.
14225 (get_current_thread): New function, factored out from ...
14226 (add_current_inferior_and_thread): ... this. Adjust.
14227 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14228 found any thread, then select the remote's current thread as GDB's
14229 current thread too.
14231 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14233 * NEWS: Create a new section for the next release branch.
14234 Rename the section of the current branch, now that it has
14237 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14239 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14240 * version.in: Bump version to 7.7.50.DATE-cvs.
14242 2014-01-08 Yao Qi <yao@codesourcery.com>
14244 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14245 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14246 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14248 2014-01-08 Yao Qi <yao@codesourcery.com>
14250 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14251 return value of bfd_get_filename to symbol_file_add_from_bfd.
14253 2014-01-08 Pierre Muller <muller@sourceware.org>
14256 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14257 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14258 to prim_record_mininal_symbol_and_info.
14259 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14260 in call to prim_record_minimal_symbol_and_info.
14261 (read_pe_exported_syms): Set index field of section_data.
14263 2014-01-07 Andrew Pinski <apinski@cavium.com>
14265 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14266 * features/aarch64.c: Regenerate.
14268 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14270 * target.c (return_null): Define.
14271 (update_current_target): Use it instead of return_zero for
14272 functions that return a pointer.
14274 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14276 * source.c (add_path): Fix check for duplicated paths in the previously
14279 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14281 * ada-lang.c: Remove duplicated include statements.
14282 * alphabsd-nat.c: Ditto.
14283 * amd64-darwin-tdep.c: Ditto.
14284 * amd64fbsd-nat.c: Ditto.
14285 * auto-load.c: Ditto.
14287 * breakpoint.c: Ditto.
14288 * dbxread.c: Ditto.
14289 * fork-child.c: Ditto.
14290 * gdb_usleep.c: Ditto.
14291 * i386-darwin-tdep.c: Ditto.
14292 * i386fbsd-nat.c: Ditto.
14294 * inferior.c: Ditto.
14295 * jv-lang.c: Ditto.
14296 * linux-nat.c: Ditto.
14297 * linux-tdep.c: Ditto.
14298 * m68kbsd-nat.c: Ditto.
14299 * m68klinux-nat.c: Ditto.
14300 * microblaze-tdep.c: Ditto.
14301 * mips-linux-tdep.c: Ditto.
14302 * mn10300-tdep.c: Ditto.
14303 * nto-tdep.c: Ditto.
14304 * opencl-lang.c: Ditto.
14306 * printcmd.c: Ditto.
14307 * regcache.c: Ditto.
14308 * remote-m32r-sdi.c: Ditto.
14310 * symfile.c: Ditto.
14312 * tilegx-linux-nat.c: Ditto.
14313 * tilegx-tdep.c: Ditto.
14314 * tracepoint.c: Ditto.
14316 * vaxbsd-nat.c: Ditto.
14317 * windows-nat.c: Ditto.
14318 * xtensa-tdep.c: Ditto.
14320 2014-01-07 Yao Qi <yao@codesourcery.com>
14322 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14324 2014-01-07 Yao Qi <yao@codesourcery.com>
14325 Joel Brobecker <brobecker@adacore.com>
14327 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14328 (pdc_write_regs): Likewise.
14329 (fetch_regs_kernel_thread): Likewise.
14330 (store_regs_kernel_thread): Likewise.
14332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14334 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14335 tagged type objects to their actual type.
14337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14339 * ada-valprint.c (print_field_values): Add "language" parameter.
14340 Update calls to print_field_values and print_variant_part.
14341 Pass new parameter "language" in call to val_print instead
14342 of "current_language". Replace call to ada_val_print by call
14344 (print_variant_part): Add "language" parameter.
14345 (ada_val_print_struct_union): Update call to print_field_values.
14347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14349 * ada-valprint.c (ui_memcpy): Delete.
14350 (ada_print_floating): Update documentation. Add empty line
14351 between between function documentation and implementation.
14352 Delete variable "buffer". Use ui_file_xstrdup in place of
14353 ui_file_put. Minor adjustments following this change.
14355 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14357 * ada-valprint.c (ada_val_print_string): New function,
14358 extracted from ada_val_print_array.
14359 (ada_val_print_array): Replace extracted code by call
14360 to ada_val_print_string followed by a return. Move
14361 "else" branch to the function's top block.
14363 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14365 * ada-valprint.c (ada_val_print_array): Move implementation
14366 down. Rename parameter "offset" and "val" into "offset_aligned"
14367 and "original_value" respectively. Add parameter "offset".
14369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14371 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14372 re-organizing the code. Change the "???" message printed
14373 when target type is a TYPE_CODE_UNDEF into
14374 "<ref to undefined type>".
14376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14378 * ada-valprint.c (print_record): Delete, implementation inlined...
14379 (ada_val_print_struct_union): ... here. Remove call to
14380 ada_check_typedef in inlined implementation.
14382 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14384 * ada-valprint.c (ada_val_print_gnat_array): New function,
14385 extracted from ada_val_print_1;
14386 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14387 (ada_val_print_flt, ada_val_print_struct_union)
14388 (ada_val_print_ref): Likewise.
14389 (ada_val_print_1): Delete variables i and elttype.
14390 Replace extracted-out code by call to corresponding
14393 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14395 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14397 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14399 * ada-valprint.c (ada_val_print_1): Replace calls to
14400 ada_val_print_1 by calls to val_print.
14402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14404 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14405 Update calls to self accordingly. Replace calls to c_val_print
14406 by calls to val_print.
14408 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14410 * ada-valprint.c (print_record): Delete declaration.
14411 (adjust_type_signedness, ada_val_print_1): Likewise.
14412 (ada_val_print): Move function implementation down.
14413 (print_variant_part, print_field_values, print_record):
14414 Move function implementation up.
14416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14418 * python/py-type.c (typy_get_name): New function.
14419 (type_object_getset): Add entry for attribute "name".
14420 * NEWS: Add entry mentioning this new attribute.
14422 2014-01-07 Yao Qi <yao@codesourcery.com>
14424 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14427 2014-01-07 Yao Qi <yao@codesourcery.com>
14429 * gnu-nat.c (info_port_rights): Add qualifier const to
14432 2014-01-07 Yao Qi <yao@codesourcery.com>
14434 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14436 2014-01-07 Yao Qi <yao@codesourcery.com>
14438 * gnu-nat.c (make_inf) Update declaration.
14439 (make_inf): Make it static.
14440 (inf_set_traced): Likewise.
14441 (inf_port_to_thread, inf_task_died_status): Likewise.
14443 2014-01-07 Yao Qi <yao@codesourcery.com>
14445 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14447 2014-01-07 Yao Qi <yao@codesourcery.com>
14449 * gnu-nat.c (_initialize_gnu_nat): Declare.
14451 2014-01-07 Yao Qi <yao@codesourcery.com>
14453 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14455 (struct gdbarch_info) <byte_order>: Change type to
14457 <byte_order_for_code>: Likewise.
14458 * gdbarch.c, gdbarch.h: Regenerated.
14460 2014-01-06 Sasha Smundak <asmundak@google.com>
14462 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14464 2014-01-06 Tom Tromey <tromey@redhat.com>
14466 * doublest.c (convert_doublest_to_floatformat): Use const, not
14468 * somread.c (som_symtab_read): Likewise.
14470 2014-01-07 Hui Zhu <hui@codesourcery.com>
14472 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14473 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14474 (gdb_bfd_fopen): Ditto.
14475 (gdb_bfd_openr): Ditto.
14476 (gdb_bfd_openw): Ditto.
14477 (gdb_bfd_openr_iovec): Ditto.
14478 (gdb_bfd_fdopenr): Ditto.
14479 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14480 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14482 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14484 * symfile-mem.c (symbol_file_add_from_memory): Removed
14485 gdb_bfd_stash_filename.
14487 2014-01-03 Doug Evans <dje@google.com>
14489 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14492 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14494 Update year range in copyright notice of all files.
14496 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14498 * top.c (print_gdb_version): Set copyright year to 2014.
14500 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14502 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14504 For older changes see ChangeLog-2013.
14510 version-control: never