1 2014-10-26 Doug Evans <xdje42@gmail.com>
3 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
6 2014-10-26 Doug Evans <xdje42@gmail.com>
8 * parser-defs.h (block_found): Move decl from here ...
9 * symtab.h (block_found): ... to here.
11 2014-10-26 Doug Evans <xdje42@gmail.com>
13 * symtab.h (struct field_of_this_result): Fix typo in comment.
14 (lookup_symbol_in_language): Move function comment here.
15 (lookup_symbol): Improve function comment.
16 (basic_lookup_symbol_nonlocal): Ditto.
17 (lookup_symbol_static, lookup_symbol_global): Ditto.
18 (lookup_symbol_aux_block): Ditto.
19 (lookup_language_this): Add function comment.
20 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
22 (lookup_block_symbol): Improve function comment.
23 (lookup_struct): Fix capitalization in function comment.
24 (lookup_transparent_type): Add function comment.
25 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
26 Improve function comment.
27 (lookup_objfile_from_block): Add function comment.
28 * symtab.c (lookup_symbol_in_language): Update function comment.
29 (lookup_symbol, lookup_language_this): Ditto.
30 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
31 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
32 (basic_lookup_symbol_nonlocal): Ditto.
33 (lookup_symbol_static, lookup_symbol_global): Ditto.
34 (lookup_transparent_type, lookup_block_symbol): Ditto.
36 2014-10-25 Doug Evans <xdje42@gmail.com>
38 * symtab.c (types_info): Delete forward decl.
39 (functions_info, variables_info, sources_info): Ditto.
40 (_initialize_symtab): Rewrite forward decl to use
41 initialize_file_ftype.
43 2014-10-25 Doug Evans <xdje42@gmail.com>
45 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
47 2014-10-25 Doug Evans <xdje42@gmail.com>
49 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
50 of local var child_die.
52 2014-10-24 Don Breazeal <donb@codesourcery.com>
54 * infrun.c (follow_fork_inferior): Update fork message printing
55 to use target_terminal_ours_for_output instead of
56 target_terminal_ours, to use _() for all format strings, to print
57 "vfork" instead of "fork" for vforks, and to add a detach message.
58 (handle_vfork_child_exec_or_exit): Update message printing to use
59 target_terminal_ours_for_output instead of target_terminal_ours, to
60 use _() for all format strings, and to fix some formatting.
62 2014-10-24 Pedro Alves <palves@redhat.com>
64 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
65 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
66 * config/vax/vax.mh: Delete.
67 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
68 obsolete configurations section.
69 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
70 * vax-nat.c: Delete file.
72 2014-10-24 Pedro Alves <palves@redhat.com>
74 * NEWS (Removed targets): Add OS/arch column.
76 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
78 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
79 on the arg type of a constructor only if it is of reference type.
81 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
83 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
84 accessors and constants from nios2 opcodes update.
85 (nios2_get_next_pc): Likewise.
87 2014-10-19 Doug Evans <xdje42@gmail.com>
89 * gdbthread.h (set_running): Fix comment.
90 (set_executing, finish_thread_state): Fix comment.
92 2014-10-18 Doug Evans <xdje42@gmail.com>
94 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
96 2014-10-17 Doug Evans <dje@google.com>
98 * NEWS: Mention new event gdb.clear_objfiles.
99 * python/py-event.h (emit_clear_objfiles_event): Clear
100 * python/py-events.h (events_object): New member clear_objfiles.
101 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
103 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
104 emit clear_objfiles event.
105 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
107 (emit_clear_objfiles_event): New function.
108 (clear_objfiles): New event.
109 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
111 * python/python.c (_initialize_python): Call
112 gdbpy_initialize_clear_objfiles_event.
114 2014-10-17 Doug Evans <dje@google.com>
116 * NEWS: Mention new gdb.Objfile.progspace attribute.
117 * python/py-objfile.c (objfpy_get_progspace): New function.
118 (objfile_getset): New entry for "progspace".
120 2014-10-17 Pedro Alves <palves@redhat.com>
123 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
124 returns a copy of the input.
125 (run_command_1, continue_command, step_1, jump_command)
126 (signal_command, until_command, advance_command, finish_command)
127 (attach_command): Adjust and install a cleanup to free the
130 2014-10-17 Pedro Alves <palves@redhat.com>
133 * infcmd.c (continue_1): If continuing all threads in the
134 foreground, make sure the inferior's terminal settings are put in
137 2014-10-17 Pedro Alves <palves@redhat.com>
140 * annotate.c (annotate_breakpoints_invalid): Use
141 target_terminal_our_for_output instead of target_terminal_ours.
142 Give back the terminal to the target.
143 (annotate_frames_invalid): Likewise.
145 2014-10-17 Pedro Alves <palves@redhat.com>
147 * target.c (enum terminal_state): New enum.
148 (terminal_state): New global.
149 (target_terminal_init): New function.
150 (target_terminal_inferior): Skip if inferior already owns the
152 (target_terminal_ours, target_terminal_ours_for_output): New
154 * target.h (target_terminal_init): Convert to function prototype.
155 (target_terminal_ours_for_output): Convert to function prototype
157 (target_terminal_ours): Convert to function prototype and tweak
159 * windows-nat.c (do_initial_windows_stuff): Call
160 target_terminal_init instead of child_terminal_init_with_pgrp.
162 2014-10-17 Pedro Alves <palves@redhat.com>
164 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
165 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
166 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
168 * NEWS: Mention that support for alpha*-*-osf* has been removed.
169 * ada-lang.h [__alpha__ && __osf__]
170 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
171 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
172 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
174 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
176 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
177 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
178 * configure: Regenerate.
179 * configure.ac: Remove references to osf.
180 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
181 section. Remove all other references to osf.
182 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
183 Remove all other references to osf.
184 * dec-thread.c: Delete file.
185 * defs.h (GDB_OSABI_OSF1): Delete.
186 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
188 * osabi.c (gdb_osabi_names): Delete "OSF/1".
189 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
191 (unconditionally_kill_inferior)
192 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
193 * solib-osf.c: Delete file.
195 2014-10-17 Pedro Alves <palves@redhat.com>
197 * remote.c (clear_threads_listing_context): Move higher up, out of
198 the HAVE_LIBEXPAT guard.
200 2014-10-16 Tristan Gingold <gingold@adacore.com>
202 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
203 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
206 2014-10-15 Pedro Alves <palves@redhat.com>
208 * dec-thread.c (dec_thread_count_gdb_threads)
209 (dec_thread_add_gdb_thread): Delete.
210 (dec_thread_update_thread_list): Delete.
211 (dec_thread_find_new_threads): Rename to ...
212 (dec_thread_update_thread_list): ... this. Delete GDB-size
213 threads that are no longer found in dec_thread_list.
214 (resync_thread_list): Delete.
215 (dec_thread_wait): Call dec_thread_update_thread_list instead of
218 2014-10-15 Pedro Alves <palves@redhat.com>
220 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
221 * remote.c (remote_update_thread_list): Skip calling prune_threads
222 if any thread listing method is supported, and instead walk over
223 the set of remote threads listed, deleting those that are not
224 found in GDB's thread list.
226 2014-10-15 Pedro Alves <palves@redhat.com>
228 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
229 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
230 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
231 (bsd_uthread_target): Adjust.
232 * corelow.c (core_open): Adjust.
233 * dec-thread.c (dec_thread_find_new_threads): Update comment.
234 (dec_thread_update_thread_list): New function.
235 (init_dec_thread_ops): Adjust.
236 * gdbthread.h (prune_threads): New declaration.
237 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
238 (thread_db_update_thread_list): ... this. Call prune_threads.
239 (init_thread_db_ops): Adjust.
240 * nto-procfs.c (procfs_find_new_threads): Rename to ...
241 (procfs_update_thread_list): ... this. Call prune_threads.
242 (procfs_attach, procfs_create_inferior, init_procfs_targets):
244 * obsd-nat.c (obsd_find_new_threads): Rename to ...
245 (obsd_update_thread_list): ... this. Call prune_threads.
246 (obsd_add_target): Adjust.
247 * procfs.c (procfs_target): Adjust.
248 (procfs_notice_thread): Update comment.
249 (procfs_find_new_threads): Rename to ...
250 (procfs_update_thread_list): ... this. Call prune_threads.
251 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
253 (ravenscar_wait): Adjust.
254 (ravenscar_find_new_threads): Rename to ...
255 (ravenscar_update_thread_list): ... this. Call prune_threads.
256 (init_ravenscar_thread_ops): Adjust.
257 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
258 (record_btrace_update_thread_list): ... this. Adjust comment.
259 (init_record_btrace_ops): Adjust.
260 * remote.c (remote_threads_info): Rename to ...
261 (remote_update_thread_list): ... this. Call prune_threads.
262 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
264 * sol-thread.c (check_for_thread_db): Adjust.
265 (sol_find_new_threads_callback): Rename to ...
266 (sol_update_thread_list_callback): ... this.
267 (sol_find_new_threads): Rename to ...
268 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
269 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
270 * target-delegates.c: Regenerate.
271 * target.c (target_find_new_threads): Rename to ...
272 (target_update_thread_list): ... this.
273 * target.h (struct target_ops): Rename to_find_new_threads field
274 to to_update_thread_list.
275 (target_find_new_threads): Rename to ...
276 (target_update_thread_list): ... this.
277 * thread.c (prune_threads): Make extern.
278 (update_thread_list): Adjust.
280 2014-10-15 Pedro Alves <palves@redhat.com>
282 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
283 Add describing comment. Return -1 if the qL packet is not
285 (struct thread_item, thread_item_t): Move higher up in
286 the file. Add comments.
287 (struct threads_parsing_context): Move higher up in
288 the file, add comments, and remote to ...
289 (struct threads_listing_context): ... this.
290 (remote_newthread_step): Don't add the thread to GDB's thread
291 database here. Instead push it to the thread_listing_context
293 (remote_find_new_threads): Rename to ...
294 (remote_get_threads_with_ql): ... this. Add target_ops and
295 targets_listing_context parameters. Pass down context.
296 (start_thread): Adjust.
297 (clear_threads_parsing_context): Rename to ...
298 (clear_threads_listing_context): ... this.
299 (remote_get_threads_with_qxfer): New, with parts salvaged from old
301 (remote_get_threads_with_qthreadinfo): Ditto.
302 (remote_threads_info): Reimplement.
304 2014-10-15 Pedro Alves <palves@redhat.com>
306 * infrun.c (resume): Don't force displaced-stepping for all
307 single-steps on software single-stepping archs.
309 2014-10-15 Pedro Alves <palves@redhat.com>
311 * breakpoint.c (single_step_breakpoints): Delete global.
312 (insert_single_step_breakpoint): Adjust to store the breakpoint
313 pointer in the current thread.
314 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
315 (cancel_single_step_breakpoints): Delete functions.
316 (breakpoint_has_location_inserted_here): Make extern.
317 (single_step_breakpoint_inserted_here_p): Adjust to walk the
319 * breakpoint.h (breakpoint_has_location_inserted_here): New
321 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
322 (cancel_single_step_breakpoints): Remove declarations.
323 * gdbthread.h (struct thread_control_state)
324 <single_step_breakpoints>: New field.
325 (delete_single_step_breakpoints)
326 (thread_has_single_step_breakpoints_set)
327 (thread_has_single_step_breakpoint_here): New declarations.
328 * infrun.c (follow_exec): Also clear the single-step breakpoints.
329 (singlestep_breakpoints_inserted_p, singlestep_ptid)
330 (singlestep_pc): Delete globals.
331 (infrun_thread_ptid_changed): Remove references to removed
333 (resume_cleanups): Delete the current thread's single-step
335 (maybe_software_singlestep): Remove references to removed globals.
336 (resume): Adjust to use thread_has_single_step_breakpoints_set and
337 delete_single_step_breakpoints.
338 (init_wait_for_inferior): Remove references to removed globals.
339 (delete_thread_infrun_breakpoints): Delete the thread's
340 single-step breakpoints too.
341 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
342 single-step breakpoints here.
343 (delete_stopped_threads_single_step_breakpoints): New function.
344 (adjust_pc_after_break): Adjust to use
345 thread_has_single_step_breakpoints_set.
346 (handle_inferior_event): Remove references to removed globals.
347 Use delete_stopped_threads_single_step_breakpoints.
348 (handle_signal_stop): Adjust to per-thread single-step
349 breakpoints. Swap test order to do cheaper tests first.
350 (switch_back_to_stepped_thread): Extend debug output. Remove
351 references to removed globals.
352 * record-full.c (record_full_wait_1): Adjust to per-thread
353 single-step breakpoints.
354 * thread.c (delete_single_step_breakpoints)
355 (thread_has_single_step_breakpoints_set)
356 (thread_has_single_step_breakpoint_here): New functions.
357 (clear_thread_inferior_resources): Also delete the thread's
358 single-step breakpoints.
360 2014-10-15 Pedro Alves <palves@redhat.com>
362 * thread.c (delete_thread_breakpoint): New function.
363 (delete_step_resume_breakpoint)
364 (delete_exception_resume_breakpoint): Use it.
365 (delete_at_next_stop): New function.
366 (clear_thread_inferior_resources): Use delete_at_next_stop.
368 2014-10-15 Pedro Alves <palves@redhat.com>
370 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
371 (breakpoint_inserted_here_p): ... here. Remove special case for
372 software single-step breakpoints.
373 (find_non_raw_software_breakpoint_inserted_here): Inline ...
374 (software_breakpoint_inserted_here_p): ... here. Remove special
375 case for software single-step breakpoints.
376 (bp_target_info_copy_insertion_state)
377 (deprecated_insert_raw_breakpoint)
378 (deprecated_remove_raw_breakpoint): Delete functions.
379 * breakpoint.h (deprecated_insert_raw_breakpoint)
380 (deprecated_remove_raw_breakpoint): Remove declarations.
382 2014-10-15 Pedro Alves <palves@redhat.com>
385 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
386 Delete array globals.
387 (single_step_breakpoints): New global.
388 (breakpoint_xfer_memory): Remove special handling for single-step
390 (update_breakpoints_after_exec): Delete bp_single_step
392 (detach_breakpoints): Remove special handling for single-step
394 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
395 (bpstat_stop_status): Add comment.
396 (bpstat_what, bptype_string, print_one_breakpoint_location)
397 (adjust_breakpoint_address, init_bp_location): Handle
399 (new_single_step_breakpoint): New function.
400 (set_momentary_breakpoint, bkpt_remove_location): Remove special
401 handling for single-step breakpoints.
402 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
403 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
405 (detach_single_step_breakpoints, find_single_step_breakpoint):
407 (breakpoint_has_location_inserted_here): New function.
408 (single_step_breakpoint_inserted_here_p): Rewrite.
409 * breakpoint.h: Remove FIXME.
410 (enum bptype) <bp_single_step>: New enum value.
411 (insert_single_step_breakpoint): Update comment.
412 * infrun.c (resume_cleanups)
413 (delete_step_thread_step_resume_breakpoint): Remove single-step
415 (fetch_inferior_event): Install a cleanup that removes infrun
417 (switch_back_to_stepped_thread) <expect thread advanced also>:
418 Clear step-over info.
420 2014-10-15 Pedro Alves <palves@redhat.com>
422 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
423 (delete_thread_infrun_breakpoints): New function, with parts
424 salvaged from delete_step_resume_breakpoint_callback.
425 (delete_step_thread_step_resume_breakpoint): Delete.
426 (for_each_just_stopped_thread_callback_func): New typedef.
427 (for_each_just_stopped_thread): New function.
428 (delete_just_stopped_threads_infrun_breakpoints): New function.
429 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
430 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
432 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
434 2014-10-15 Pedro Alves <palves@redhat.com>
436 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
437 trying to step past a non-steppable watchpoint.
438 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
440 * infrun.c (struct step_over_info): Add new field
441 'nonsteppable_watchpoint_p' and adjust comments.
442 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
444 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
445 (stepping_past_nonsteppable_watchpoint): New function.
446 (step_over_info_valid_p): Also return true if stepping past a
447 nonsteppable watchpoint.
448 (proceed): Adjust call to set_step_over_info. Remove reference to
450 (init_wait_for_inferior): Remove reference to init_infwait_state.
451 (waiton_ptid): Delete global.
452 (struct execution_control_state)
453 <stepped_after_stopped_by_watchpoint>: Delete field.
454 (wait_for_inferior, fetch_inferior_event): Always pass
455 minus_one_ptid to target_wait.
456 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
458 (init_infwait_state): Delete function.
459 (handle_inferior_event): Remove infwait_state handling.
460 (handle_signal_stop) <watchpoints handling>: Adjust after
461 stepped_after_stopped_by_watchpoint removal. Don't remove
462 breakpoints here nor set infwait_state. Set the thread's
463 stepping_over_watchpoint flag, and call keep_going instead.
464 (keep_going): Handle stepping_over_watchpoint. Adjust
465 set_step_over_info calls.
466 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
469 2014-10-15 Pedro Alves <palves@redhat.com>
471 * infrun.c (step_over_info_valid_p): New function.
472 (resume): Use step_over_info_valid_p instead of checking the
473 threads's trap_expected flag.
475 2014-10-15 Doug Evans <dje@google.com>
476 Walfred Tedeschi <walfred.tedeschi@intel.com>
479 * python/lib/gdb/__init__.py (packages): Add "printer".
480 * python/lib/gdb/command/bound_registers.py: Moved to ...
481 * python/lib/gdb/printer/bound_registers.py: ... here.
482 Add printer to global set of builtin printers. Rename printer from
483 "bound" to "mpx_bound128".
484 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
485 registered as global "builtin" printer.
486 (add_builtin_pretty_printer): New function.
487 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
488 gdb/printer/__init__.py.
490 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
492 * Makefile.in (SFILES): Remove d-support.c.
493 (COMMON_OBS): Remove d-support.o.
494 * d-lang.h (d_parse_symbol): Remove declaration.
495 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
496 * d-support.c: Remove file.
498 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
500 * gdb/infrun.c (process_event_stop_test): Apply
501 gdbarch_addr_bits_remove to longjmp resume address.
503 2014-10-15 Pedro Alves <palves@redhat.com>
505 * regformats/microblaze.dat: Delete file.
507 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
509 * features/Makefile (microblaze-expedite): Replace pc with rpc.
510 * regformats/microblaze-with-stack-protect.dat: Regenerate.
512 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
514 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
517 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
521 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
524 2014-10-14 Joel Brobecker <brobecker@adacore.com>
526 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
527 of the case where the second operand is a pointer.
528 <BINOP_SUB>: Likewise.
530 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
532 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
533 only if it is not NULL.
534 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
535 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
536 (struct probe_ops) <clear_semaphore>: Likewise.
537 * tracepoint.c (start_tracing): Call set_semaphore only if it is
539 (stop_tracing): Likewise, for clear_semaphore.
541 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
543 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
544 using language_c, instead of current_language.
546 2014-10-13 Doug Evans <dje@google.com>
548 * python/py-objfile.c (objfpy_initialize): New function.
549 (objfpy_new, objfile_to_objfile_object): Call it.
550 * python/py-progspace.c (pspy_initialize): New function.
551 (pspy_new, pspace_to_pspace_object): Call it.
553 2014-10-13 Miroslav Franc <mfranc@redhat.com>
554 Jan Kratochvil <jan.kratochvil@redhat.com>
556 Fix "save breakpoints" for "catch" command.
557 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
560 2014-10-12 Miroslav Franc <mfranc@redhat.com>
562 Fix "save breakpoints" for "disable $bpnum" command.
563 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
565 2014-10-10 Pedro Alves <palves@redhat.com>
567 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
568 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
569 (HFILES_NO_SRCDIR): Remove solib-irix.h.
570 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
572 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
573 * configure.ac: Remove references to IRIX.
574 * configure.host: Add *-*-irix* to the obsolete hosts section.
575 Remove all other references to irix.
576 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
579 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
581 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
582 isn't valid, release the tdesc arch data and return NULL.
584 2014-10-10 Pedro Alves <palves@redhat.com>
586 * linux-tdep.c: Include observer.h.
587 (linux_inferior_data): New global.
588 (struct linux_info): New structure.
589 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
590 (get_linux_inferior_data): New functions.
591 (linux_vsyscall_range): Rename to ...
592 (linux_vsyscall_range_raw): ... this.
593 (linux_vsyscall_range): New function; handles caching.
594 (_initialize_linux_tdep): Register linux_inferior_data. Install
595 inferior_exit and inferior_appeared observers.
597 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
598 Pedro Alves <palves@redhat.com>
601 * solib-svr4.c (svr4_read_so_list): Rename to ...
602 (svr4_current_sos_1): ... this and change the function comment.
603 (svr4_current_sos): New function.
605 2014-10-10 Pedro Alves <palves@redhat.com>
607 * arch-utils.c (default_vsyscall_range): New function.
608 * arch-utils.h (default_vsyscall_range): New declaration.
609 * gdbarch.sh (vsyscall_range): New hook.
610 * gdbarch.h, gdbarch.c: Regenerate.
611 * linux-tdep.c (linux_vsyscall_range): New function.
612 (linux_init_abi): Install linux_vsyscall_range as
613 vsyscall_range gdbarch hook.
614 * memrange.c (address_in_mem_range): New function.
615 * memrange.h (address_in_mem_range): New declaration.
616 * symfile-mem.c (find_vdso_size): Delete function.
617 (add_vsyscall_page): Use gdbarch_vsyscall_range.
619 2014-10-10 Pedro Alves <palves@redhat.com>
621 * infrun.c (normal_stop): Fix typo in comment.
623 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
626 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
627 typo when using logical AND to determine instruction type.
629 2014-10-09 Yao Qi <yao@codesourcery.com>
631 * infrun.c (handle_signal_stop): Remove local variable
634 2014-10-08 Stan Shebs <stan@codesourcery.com>
636 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
638 2014-10-08 Gary Benson <gbenson@redhat.com>
640 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
642 2014-10-08 Gary Benson <gbenson@redhat.com>
644 * common/common-defs.h: Include common-exceptions.h.
645 * exceptions.h: Do not include common-exceptions.h.
647 2014-10-08 Gary Benson <gbenson@redhat.com>
649 * common/common-defs.h: Include cleanups.h.
650 * common/common-exceptions.c: Do not include cleanups.h.
653 2014-10-08 Gary Benson <gbenson@redhat.com>
655 * ada-lang.c: Do not include exceptions.h.
656 * ada-valprint.c: Likewise.
657 * amd64-tdep.c: Likewise.
658 * auto-load.c: Likewise.
660 * break-catch-throw.c: Likewise.
661 * breakpoint.c: Likewise.
662 * btrace.c: Likewise.
663 * c-lang.c: Likewise.
664 * cli/cli-cmds.c: Likewise.
665 * cli/cli-interp.c: Likewise.
666 * cli/cli-script.c: Likewise.
667 * completer.c: Likewise.
668 * corefile.c: Likewise.
669 * corelow.c: Likewise.
670 * cp-abi.c: Likewise.
671 * cp-support.c: Likewise.
672 * cp-valprint.c: Likewise.
673 * darwin-nat.c: Likewise.
674 * dwarf2-frame-tailcall.c: Likewise.
675 * dwarf2-frame.c: Likewise.
676 * dwarf2loc.c: Likewise.
677 * dwarf2read.c: Likewise.
679 * event-loop.c: Likewise.
680 * event-top.c: Likewise.
681 * f-valprint.c: Likewise.
682 * frame-unwind.c: Likewise.
684 * gdbtypes.c: Likewise.
685 * gnu-v2-abi.c: Likewise.
686 * gnu-v3-abi.c: Likewise.
687 * guile/scm-auto-load.c: Likewise.
688 * guile/scm-breakpoint.c: Likewise.
689 * guile/scm-cmd.c: Likewise.
690 * guile/scm-frame.c: Likewise.
691 * guile/scm-lazy-string.c: Likewise.
692 * guile/scm-param.c: Likewise.
693 * guile/scm-symbol.c: Likewise.
694 * guile/scm-type.c: Likewise.
695 * hppa-hpux-tdep.c: Likewise.
696 * i386-tdep.c: Likewise.
697 * inf-loop.c: Likewise.
698 * infcall.c: Likewise.
699 * infcmd.c: Likewise.
700 * infrun.c: Likewise.
701 * interps.c: Likewise.
702 * interps.h: Likewise.
704 * linespec.c: Likewise.
705 * linux-nat.c: Likewise.
706 * linux-thread-db.c: Likewise.
707 * m32r-rom.c: Likewise.
709 * memory-map.c: Likewise.
710 * mi/mi-cmd-break.c: Likewise.
711 * mi/mi-cmd-stack.c: Likewise.
712 * mi/mi-interp.c: Likewise.
713 * mi/mi-main.c: Likewise.
714 * monitor.c: Likewise.
715 * nto-procfs.c: Likewise.
716 * objc-lang.c: Likewise.
717 * p-valprint.c: Likewise.
719 * ppc-linux-tdep.c: Likewise.
720 * printcmd.c: Likewise.
722 * python/py-auto-load.c: Likewise.
723 * python/py-breakpoint.c: Likewise.
724 * python/py-cmd.c: Likewise.
725 * python/py-finishbreakpoint.c: Likewise.
726 * python/py-frame.c: Likewise.
727 * python/py-framefilter.c: Likewise.
728 * python/py-function.c: Likewise.
729 * python/py-gdb-readline.c: Likewise.
730 * python/py-inferior.c: Likewise.
731 * python/py-infthread.c: Likewise.
732 * python/py-lazy-string.c: Likewise.
733 * python/py-linetable.c: Likewise.
734 * python/py-param.c: Likewise.
735 * python/py-prettyprint.c: Likewise.
736 * python/py-symbol.c: Likewise.
737 * python/py-type.c: Likewise.
738 * python/py-value.c: Likewise.
739 * python/python-internal.h: Likewise.
740 * python/python.c: Likewise.
741 * record-btrace.c: Likewise.
742 * record-full.c: Likewise.
743 * regcache.c: Likewise.
744 * remote-fileio.c: Likewise.
745 * remote-mips.c: Likewise.
746 * remote.c: Likewise.
747 * rs6000-aix-tdep.c: Likewise.
748 * rs6000-nat.c: Likewise.
750 * solib-darwin.c: Likewise.
751 * solib-dsbt.c: Likewise.
752 * solib-frv.c: Likewise.
753 * solib-ia64-hpux.c: Likewise.
754 * solib-spu.c: Likewise.
755 * solib-svr4.c: Likewise.
757 * spu-tdep.c: Likewise.
759 * stap-probe.c: Likewise.
760 * symfile-mem.c: Likewise.
761 * symmisc.c: Likewise.
762 * target.c: Likewise.
763 * thread.c: Likewise.
765 * tracepoint.c: Likewise.
766 * tui/tui-interp.c: Likewise.
767 * typeprint.c: Likewise.
769 * valarith.c: Likewise.
770 * valops.c: Likewise.
771 * valprint.c: Likewise.
773 * varobj.c: Likewise.
774 * windows-nat.c: Likewise.
775 * xml-support.c: Likewise.
777 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
779 * mips-tdep.c (add_offset_16): Rewrite to implement what the
781 (extended_mips16_next_pc): Update accordingly.
783 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
785 * mips-tdep.c (mips16_instruction_is_compact_branch): New
787 (micromips_instruction_is_compact_branch): Likewise.
788 (mips16_scan_prologue): Terminate scanning upon seeing a branch
789 or a compact jump, reaching a jump delay slot, or seeing a
790 second non-prologue instruction.
791 (micromips_scan_prologue): Also terminate scanning upon seeing a
792 compact branch or jump, or reaching a branch or jump delay slot.
793 (mips32_scan_prologue): Terminate scanning upon reaching a branch
794 or jump delay slot, or seeing a second non-prologue instruction.
795 (mips32_instruction_has_delay_slot): Retain instruction
796 examination code only, update arguments accordingly and move
797 instruction fetch pieces to...
798 (mips32_insn_at_pc_has_delay_slot): ... this new function.
799 (micromips_instruction_has_delay_slot): Likewise and to...
800 (micromips_insn_at_pc_has_delay_slot): ... this new function.
801 (mips16_instruction_has_delay_slot): Likewise and to...
802 (mips16_insn_at_pc_has_delay_slot): ... this new function.
803 (mips_single_step_through_delay): Update accordingly.
804 (mips_adjust_breakpoint_address): Likewise.
806 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
808 * mips-tdep.c (micromips_instruction_has_delay_slot): When
809 !mustbe32 also return 1 for 32-bit instructions.
810 (mips16_instruction_has_delay_slot): Likewise. Add an
813 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
815 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
818 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
820 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
822 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
823 for the breakpoint's address. Don't preinitialize `placed_size'.
824 (insert_bp_location): Set `reqstd_address' rather than
826 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
827 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
829 (bkpt_remove_location): Likewise.
830 (deprecated_insert_raw_breakpoint): Likewise.
831 (deprecated_remove_raw_breakpoint): Likewise.
832 (find_single_step_breakpoint): Likewise.
833 * mem-break.c (default_memory_insert_breakpoint): Use
834 `reqstd_address' for the breakpoint's address. Don't set
835 `placed_address' or `placed_size' if breakpoint contents couldn't
836 have been determined.
837 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
838 the breakpoint's address.
839 (remote_insert_hw_breakpoint): Likewise. Don't set
840 `placed_address' or `placed_size' if breakpoint couldn't have been
842 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
843 `reqstd_address' for the breakpoint's address.
844 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
845 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
846 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
847 * microblaze-linux-tdep.c
848 (microblaze_linux_memory_remove_breakpoint): Likewise.
849 * monitor.c (monitor_insert_breakpoint): Likewise.
850 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
851 (procfs_insert_hw_breakpoint): Likewise.
852 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
853 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
854 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
855 * remote-mips.c (mips_insert_breakpoint): Likewise.
856 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
858 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
860 * valops.c (value_assign): Check for bit field assignments
861 before calling architecture-specific register value
862 conversion functions.
864 2014-10-03 Pierre Muller <muller@sourceware.org>
866 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
868 2014-10-02 Pedro Alves <palves@redhat.com>
870 * breakpoint.c (breakpoints_should_be_inserted_now): Use
871 threads_are_executing.
872 * breakpoint.h (breakpoints_should_be_inserted_now): Add
874 * gdbthread.h (threads_are_executing): Declare.
875 (handle_signal_stop) <random signals>: Don't print about the
876 signal here if stopping.
877 (end_stepping_range): Don't notify observers here.
878 (normal_stop): Update the thread list. If stopped by a random
879 signal or a stepping range ended, notify observers.
880 * thread.c (threads_executing): New global.
881 (init_thread_list): Clear 'threads_executing'.
882 (set_executing): Set or clear 'threads_executing'.
883 (threads_are_executing): New function.
884 (update_threads_executing): New function.
885 (update_thread_list): Use it.
887 2014-10-02 Pedro Alves <palves@redhat.com>
890 * breakpoint.c (update_breakpoints_after_exec): Don't create
891 overlay, longjmp, std terminate nor exception breakpoints here.
893 2014-10-02 Pedro Alves <palves@redhat.com>
895 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
897 * inferior.c (find_inferior_for_program_space): Give preference to
898 the current inferior.
899 * inferior.h (find_inferior_for_program_space): Update comment.
900 * progspace.c (switch_to_program_space_and_thread): Prefer the
901 current inferior if it's bound to the program space requested. If
902 the inferior found doesn't have a PID yet, don't bother looking up
904 * progspace.h (switch_to_program_space_and_thread): Adjust
906 * thread.c (any_thread_of_process, any_live_thread_of_process):
907 Give preference to the current thread.
909 2014-10-01 Pedro Alves <palves@redhat.com>
911 * breakpoint.c (insert_bp_location): Error out if inserting a
912 software breakpoint at a read-only address.
913 * target.c (memory_xfer_check_region): New function, factored out
915 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
917 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
918 against the memory region attributes.
920 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
922 * NEWS: Announce new exit-code field in -list-thread-groups
924 * inferior.c (exit_inferior_1): Don't clear exit code.
925 (inferior_appeared): Clear exit code.
926 * mi/mi-main.c (print_one_inferior): Add printing of the exit
929 2014-10-01 Pedro Alves <palves@redhat.com>
931 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
932 GENERATED" along with emacs/vi read-only markers.
933 * regformats/aarch64.dat: Regenerate.
934 * regformats/arm-with-iwmmxt.dat: Regenerate.
935 * regformats/arm-with-neon.dat: Regenerate.
936 * regformats/arm-with-vfpv2.dat: Regenerate.
937 * regformats/arm-with-vfpv3.dat: Regenerate.
938 * regformats/i386/amd64-avx-linux.dat: Regenerate.
939 * regformats/i386/amd64-avx.dat: Regenerate.
940 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
941 * regformats/i386/amd64-avx512.dat: Regenerate.
942 * regformats/i386/amd64-linux.dat: Regenerate.
943 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
944 * regformats/i386/amd64-mpx.dat: Regenerate.
945 * regformats/i386/amd64.dat: Regenerate.
946 * regformats/i386/i386-avx-linux.dat: Regenerate.
947 * regformats/i386/i386-avx.dat: Regenerate.
948 * regformats/i386/i386-avx512-linux.dat: Regenerate.
949 * regformats/i386/i386-avx512.dat: Regenerate.
950 * regformats/i386/i386-linux.dat: Regenerate.
951 * regformats/i386/i386-mmx-linux.dat: Regenerate.
952 * regformats/i386/i386-mmx.dat: Regenerate.
953 * regformats/i386/i386-mpx-linux.dat: Regenerate.
954 * regformats/i386/i386-mpx.dat: Regenerate.
955 * regformats/i386/i386.dat: Regenerate.
956 * regformats/i386/x32-avx-linux.dat: Regenerate.
957 * regformats/i386/x32-avx.dat: Regenerate.
958 * regformats/i386/x32-avx512-linux.dat: Regenerate.
959 * regformats/i386/x32-avx512.dat: Regenerate.
960 * regformats/i386/x32-linux.dat: Regenerate.
961 * regformats/i386/x32.dat: Regenerate.
962 * regformats/microblaze-with-stack-protect.dat: Regenerate.
963 * regformats/mips-dsp-linux.dat: Regenerate.
964 * regformats/mips-linux.dat: Regenerate.
965 * regformats/mips64-dsp-linux.dat: Regenerate.
966 * regformats/mips64-linux.dat: Regenerate.
967 * regformats/nios2-linux.dat: Regenerate.
968 * regformats/rs6000/powerpc-32.dat: Regenerate.
969 * regformats/rs6000/powerpc-32l.dat: Regenerate.
970 * regformats/rs6000/powerpc-64l.dat: Regenerate.
971 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
972 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
973 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
974 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
975 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
976 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
977 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
978 * regformats/s390-linux32.dat: Regenerate.
979 * regformats/s390-linux32v1.dat: Regenerate.
980 * regformats/s390-linux32v2.dat: Regenerate.
981 * regformats/s390-linux64.dat: Regenerate.
982 * regformats/s390-linux64v1.dat: Regenerate.
983 * regformats/s390-linux64v2.dat: Regenerate.
984 * regformats/s390-te-linux64.dat: Regenerate.
985 * regformats/s390x-linux64.dat: Regenerate.
986 * regformats/s390x-linux64v1.dat: Regenerate.
987 * regformats/s390x-linux64v2.dat: Regenerate.
988 * regformats/s390x-te-linux64.dat: Regenerate.
989 * regformats/tic6x-c62x-linux.dat: Regenerate.
990 * regformats/tic6x-c62x.dat: Regenerate.
991 * regformats/tic6x-c64x-linux.dat: Regenerate.
992 * regformats/tic6x-c64x.dat: Regenerate.
993 * regformats/tic6x-c64xp-linux.dat: Regenerate.
994 * regformats/tic6x-c64xp.dat: Regenerate.
996 2014-10-01 Pedro Alves <palves@redhat.com>
998 * features/Makefile: Update comments.
999 (XMLTOC): List all xml files we build C files from.
1000 (clean-cfiles): New rule.
1002 2014-10-01 Pedro Alves <palves@redhat.com>
1004 * features/i386/amd64-avx512-linux.c: Regenerate.
1005 * features/i386/amd64-avx512.c: Regenerate.
1006 * features/i386/x32-avx512-linux.c: Regenerate.
1007 * features/i386/x32-avx512.c: Regenerate.
1009 2014-10-01 Pedro Alves <palves@redhat.com>
1011 * features/Makefile (WHICH): Remove arm-with-m,
1012 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1014 2014-10-01 Pedro Alves <palves@redhat.com>
1016 * features/Makefile (clean): New rule.
1018 2014-10-01 Pedro Alves <palves@redhat.com>
1020 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1021 (zmm14h): Add missing end quotes.
1023 2014-10-01 Pedro Alves <palves@redhat.com>
1025 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1026 * features/aarch64.c: Regenerate.
1028 2014-09-30 Don Breazeal <donb@codesourcery.com>
1030 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1031 code so as to work with follow_fork_inferior.
1032 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1033 (inf_ttrace_create_inferior): Remove reference to
1034 inf_ttrace_vfork_ppid.
1035 (inf_ttrace_attach): Ditto.
1036 (inf_ttrace_detach): Ditto.
1037 (inf_ttrace_kill): Use current_inferior instead of
1038 inf_ttrace_vfork_ppid.
1039 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1040 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1041 inferior away from the parent.
1042 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1044 (follow_fork_inferior): New function.
1045 (follow_inferior_reset_breakpoints): Make function static.
1046 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1047 * linux-nat.c (linux_child_follow_fork): Move target-independent
1048 code to infrun.c:follow_fork_inferior.
1050 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1052 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1053 * gdbarch.c: Regenerate.
1054 * gdbarch.h: Likewise.
1055 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1056 gdbarch method 'regset_from_core_section'.
1057 (get_core_register_section): Remove handling for the case that
1058 regset == NULL and regset_from_core_section is defined.
1059 (get_core_registers): Drop check for deleted method.
1060 * procfs.c (procfs_do_thread_registers): Adjust comment.
1062 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1064 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1065 (linux_nat_make_corefile_notes): Remove.
1066 (linux_target_install_ops): Do not set target method
1067 'make_corefile_notes'.
1068 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1070 (linux_corefile_thread_callback): Instead of args->collect, call
1071 linux_collect_thread_registers.
1072 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1073 NULL unless there is a regset iterator.
1074 (linux_make_corefile_notes_1): Remove.
1075 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1076 by linux_make_corefile_notes.
1077 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1079 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1082 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1084 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1088 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1089 (xtensa_iterate_over_regset_sections): New.
1090 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094 * vax-tdep.c (vax_regset_from_core_section): Remove.
1095 (vax_iterate_over_regset_sections): New.
1096 (vax_gdbarch_init): Adjust gdbarch initialization.
1098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1101 (tilegx_regset_from_core_section): Remove.
1102 (tilegx_iterate_over_regset_sections): New.
1103 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1107 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1108 (sparc_iterate_over_regset_sections): New.
1109 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1110 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1112 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1113 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1114 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1115 target method 'make_corefile_notes'.
1117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1119 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1120 'sizeof_gregset' and 'sizeof_fpregset'.
1121 * sh-tdep.c (sh_regset_from_core_section): Remove.
1122 (sh_iterate_over_regset_sections): New.
1123 (sh_gdbarch_init): Adjust gdbarch initialization.
1124 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1126 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1132 (score7_linux_iterate_over_regset_sections): New.
1133 (score_gdbarch_init): Adjust gdbarch initialization.
1135 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1137 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1139 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1140 method 'make_corefile_notes'.
1141 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1142 (ppcfbsd_regset_from_core_section): Remove.
1143 (ppcfbsd_iterate_over_regset_sections): New.
1144 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1146 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1147 (ppcnbsd_iterate_over_regset_sections): New.
1148 (ppcnbsd_init_abi): Adjust.
1149 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1150 (ppcobsd_iterate_over_regset_sections): New.
1151 (ppcobsd_init_abi): Adjust.
1152 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1153 (rs6000_aix_iterate_over_regset_sections): New.
1154 (rs6000_aix_init_osabi): Adjust.
1156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1159 (nios2_regset_from_core_section): Remove.
1160 (nios2_iterate_over_regset_sections): New.
1161 (nios2_linux_init_abi): Adjust gdbarch initialization.
1163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1165 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1166 (am33_iterate_over_regset_sections): New.
1167 (am33_linux_init_osabi): Adjust gdbarch initialization.
1169 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1171 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1172 (mips_linux_iterate_over_regset_sections): New.
1173 (mips_linux_init_abi): Adjust gdbarch initialization.
1174 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1175 (mips64obsd_iterate_over_regset_sections): New.
1176 (mips64obsd_init_abi): Adjust.
1177 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1178 (mipsnbsd_iterate_over_regset_sections): New.
1179 (mipsnbsd_init_abi): Adjust.
1181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1184 (m88k_iterate_over_regset_sections): New.
1185 (m88k_gdbarch_init): Adjust gdbarch initialization.
1187 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1189 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1190 (ia64_linux_iterate_over_regset_sections): New.
1191 (ia64_linux_init_abi): Adjust gdbarch initialization.
1193 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1195 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1196 (m68kbsd_iterate_over_regset_sections): New.
1197 (m68kbsd_init_abi): Adjust gdbarch initialization.
1198 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1199 (m68k_linux_iterate_over_regset_sections): New.
1200 (m68k_linux_init_abi): Adjust gdbarch initialization.
1202 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1204 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1205 (m32r_linux_regset_from_core_section): Remove.
1206 (m32r_linux_iterate_over_regset_sections): New.
1207 (m32r_linux_init_abi): Adjust gdbarch initialization.
1209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1211 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1212 (amd64obsd_iterate_over_regset_sections): New.
1213 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1214 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1216 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1217 regset_from_core_section initialization.
1218 * i386-tdep.c (i386_regset_from_core_section): Remove.
1219 (i386_iterate_over_regset_sections): New.
1220 (i386_gdbarch_init): Adjust gdbarch initialization.
1221 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1222 (i386_iterate_over_regset_sections): New prototype.
1223 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1225 (i386obsd_aout_iterate_over_regset_sections): New.
1226 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1227 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1229 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1230 (amd64fbsd_init_abi): Call fbsd_init_abi.
1231 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1232 (i386fbsd4_init_abi): Call fbsd_init_abi.
1233 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1234 target method 'make_corefile_notes'.
1235 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1237 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1239 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1240 (hppa_hpux_iterate_over_regset_sections): New.
1241 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1242 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1243 (hppa_linux_iterate_over_regset_sections): New.
1244 (hppa_linux_init_abi): Adjust.
1245 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1246 (hppanbsd_iterate_over_regset_sections): New.
1247 (hppanbsd_init_abi): Adjust.
1248 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1249 (hppaobsd_iterate_over_regset_sections): New.
1250 (hppaobsd_init_abi): Adjust.
1252 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1254 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1255 (frv_linux_iterate_over_regset_sections): New.
1256 (frv_linux_init_abi): Adjust gdbarch initialization.
1258 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1260 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1261 (armbsd_iterate_over_regset_sections): New prototype.
1262 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1263 (armbsd_iterate_over_regset_sections): New.
1264 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1267 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1269 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1270 (alpha_linux_iterate_over_regset_sections): New.
1271 (alpha_linux_init_abi): Adjust gdbarch initialization.
1272 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1274 (alphanbsd_iterate_over_regset_sections): New prototype.
1276 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1278 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1280 (aarch64_linux_iterate_over_regset_sections): New.
1281 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1285 * fbsd-tdep.c: New file.
1286 * fbsd-tdep.h: New file.
1287 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1288 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1289 (ALLDEPFILES): Add fbsd-tdep.c.
1291 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1293 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1295 * gdbarch.h: Regenerate.
1296 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1298 (get_core_register_section): Add parameter 'regset' and use it, if
1299 set. Add parameter 'min_size' and verify the bfd section size
1301 (get_core_registers_cb): Add parameter 'regset' and pass it to
1302 get_core_register section. For the "standard" register sections
1303 ".reg" and ".reg2", set an appropriate default for human_name.
1304 (get_core_registers): Don't abort when the gdbarch has an iterator
1305 but no regset_from_core_section. Add NULL/0 for parameters
1306 'regset'/'min_size' in calls to get_core_register_section.
1307 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1308 'regset' and use it instead of calling the
1309 regset_from_core_section gdbarch method.
1310 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1311 * i386-tdep.c (i386_supply_xstateregset)
1312 (i386_collect_xstateregset, i386_xstateregset): Moved to
1314 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1316 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1317 core file support only if the regset iterator hasn't been set.
1318 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1319 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1320 Moved from i386-tdep.c and renamed to *_linux*.
1321 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1322 each callback invocation. Allow any .reg-xstate size when reading
1324 * amd64-tdep.c (amd64_supply_xstateregset)
1325 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1327 (amd64_regset_from_core_section): Remove.
1328 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1329 install an amd64-specific regset_from_core_section gdbarch method.
1330 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1331 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1332 Moved from amd64-tdep.c and renamed to *_linux*.
1333 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1334 to each callback invocation. Allow any .reg-xstate size when
1335 reading from a core file.
1336 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1337 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1338 each callback invocation.
1339 (arm_linux_init_abi): No longer set the regset_from_core_section
1341 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1342 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1343 each callback invocation.
1344 (ppc_linux_init_abi): No longer set the regset_from_core_section
1346 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1347 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1348 (s390_regset_from_core_section): Remove.
1349 (s390_iterate_over_regset_sections): Add regset parameter to each
1350 callback invocation.
1351 (s390_gdbarch_init): No longer set the regset_from_core_section
1352 gdbarch method. Drop initialization of deleted tdep fields.
1354 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1357 (amd64_linux_iterate_over_regset_sections): New.
1358 (amd64_linux_init_abi_common): Don't install the regset section
1359 list, but the new iterator in gdbarch.
1360 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1361 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1362 (arm_linux_iterate_over_regset_sections): ...here. New function.
1363 (arm_linux_init_abi): Set iterator instead of section list.
1364 * corelow.c (get_core_registers_cb): New function, logic moved
1366 (get_core_registers): ...loop body here. Use new iterator method
1367 instead of walking through the regset section list.
1368 * gdbarch.sh: Remove 'core_regset_sections'. New method
1369 'iterate_over_regset_sections'. New typedef
1370 'iterate_over_regset_sections_cb'.
1371 * gdbarch.c: Regenerate.
1372 * gdbarch.h: Likewise.
1373 * i386-linux-tdep.c (i386_linux_regset_sections)
1374 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1376 (i386_linux_iterate_over_regset_sections): New.
1377 (i386_linux_init_abi): Don't choose a regset section list, but
1378 install new iterator in gdbarch.
1379 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1380 (linux_collect_regset_section_cb): New function, logic moved
1382 (linux_collect_thread_registers): ...loop body here. Use iterator
1383 method instead of walking through list.
1384 (linux_make_corefile_notes_1): Check for presence of iterator
1385 method instead of regset section list.
1386 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1387 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1388 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1389 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1390 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1391 (ppc_linux_init_abi): Don't choose from above regset section
1392 lists, but install new iterator in gdbarch.
1393 * regset.h (struct core_regset_section): Remove.
1394 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1395 have_linux_v1, have_linux_v2, and have_tdb.
1396 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1397 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1398 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1399 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1400 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1401 (s390_iterate_over_regset_sections): ...here. New function. Use
1403 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1404 regset section lists, but install new iterator.
1406 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1408 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1410 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1412 * progspace.c (print_program_space): Don't prune program spaces
1413 before printing them.
1415 2014-09-25 Pedro Alves <palves@redhat.com>
1417 * infrun.c (user_visible_resume_ptid): Don't check
1418 singlestep_breakpoints_inserted_p.
1420 2014-09-25 Pedro Alves <palves@redhat.com>
1422 * breakpoint.c (should_be_inserted): Add debug output.
1424 2014-09-25 Pedro Alves <palves@redhat.com>
1426 * infrun.c (stepping_past_instruction_at)
1427 (clear_exit_convenience_vars): Point at infrun.h instead of
1429 (handle_signal_stop): Fix typo.
1431 2014-09-24 Yao Qi <yao@codesourcery.com>
1433 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1436 2014-09-22 Gary Benson <gbenson@redhat.com>
1438 * target.c (target_stop): Updated comment.
1440 2014-09-22 Gary Benson <gbenson@redhat.com>
1442 * target/target.h (target_stop_ptid): Renamed as...
1443 (target_stop_and_wait): New function. Updated comment.
1445 (target_continue_ptid): Renamed as...
1446 (target_continue_no_signal): New function. Updated comment.
1449 2014-09-22 Pedro Alves <palves@redhat.com>
1451 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1453 * breakpoint.c (enum ugll_insert_mode): New enum.
1454 (always_inserted_mode): Now a plain boolean.
1455 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1456 (breakpoints_always_inserted_mode): Delete.
1457 (breakpoints_should_be_inserted_now): New function.
1458 (insert_breakpoints): Pass UGLL_INSERT to
1459 update_global_location_list instead of calling
1460 insert_breakpoint_locations manually.
1461 (create_solib_event_breakpoint_1): New, factored out from ...
1462 (create_solib_event_breakpoint): ... this.
1463 (create_and_insert_solib_event_breakpoint): Use
1464 create_solib_event_breakpoint_1 instead of calling
1465 insert_breakpoint_locations manually.
1466 (update_global_location_list): Change parameter type from boolean
1467 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1468 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1469 (update_global_location_list_nothrow): Change parameter type from
1470 boolean to enum ugll_insert_mode.
1471 (_initialize_breakpoint): "breakpoint always-inserted" option is
1472 now a boolean command. Update help text.
1473 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1474 (breakpoints_should_be_inserted_now): New declaration.
1475 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1476 Remove breakpoints_always_inserted_mode check.
1477 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1478 * remote.c (remote_start_remote): Likewise.
1480 2014-09-22 Pedro Alves <palves@redhat.com>
1482 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1483 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1484 Instead, pass UGLL_INSERT to update_global_location_list.
1485 (update_global_location_list): Change parameter type from boolean
1486 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1487 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1488 (create_solib_event_breakpoint_1): New, factored out from ...
1489 (create_solib_event_breakpoint): ... this.
1490 (create_and_insert_solib_event_breakpoint): Use
1491 create_solib_event_breakpoint_1 instead of calling
1492 insert_breakpoint_locations manually.
1493 (update_global_location_list): Handle UGLL_INSERT.
1495 2014-09-22 Pedro Alves <palves@redhat.com>
1497 * breakpoint.c (enum ugll_insert_mode): New enum.
1498 (update_global_location_list)
1499 (update_global_location_list_nothrow): Change parameter type from
1500 boolean to enum ugll_insert_mode. All callers adjusted.
1502 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1504 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1505 SystemTap support in GDB.
1507 2014-09-19 Don Breazeal <donb@codesourcery.com>
1509 * linux-nat.c (linux_handle_extended_wait): Call
1510 linux_ptrace_get_extended_event.
1511 (wait_lwp): Call linux_is_extended_waitstatus.
1512 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1513 and linux_is_extended_waitstatus.
1514 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1515 linux_ptrace_get_extended_event.
1516 (linux_ptrace_get_extended_event): New function.
1517 (linux_is_extended_waitstatus): New function.
1518 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1519 (linux_is_extended_waitstatus): New declarations.
1521 2014-09-19 Yao Qi <yao@codesourcery.com>
1523 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1524 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1525 comments. Callers update.
1526 (dwarf_decode_lines): Likewise.
1527 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1528 comments. Skip the line table if 'lowpc' is greater than
1529 'address'. Don't check
1530 dwarf2_per_objfile->has_section_at_zero.
1532 2014-09-18 Doug Evans <dje@google.com>
1534 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1535 * python/py-symtab.c (stpy_get_producer): New function.
1536 (symtab_object_getset): Add "producer" attribute.
1538 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1541 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1542 (do_captured_read_memory_integer): Remove.
1543 (safe_read_memory_integer): Use target_read_memory directly instead
1544 of catching errors in do_captured_read_memory_integer.
1546 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1548 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1551 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1553 * objc-lang.c (find_implementation_from_class): Remove dead code.
1555 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1558 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1559 "fprintf_unfiltered (gdb_stdlog...)".
1561 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1563 PR breakpoints/12526
1564 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1566 * breakpoint.c (watch_command_1): Use these fields to retain
1567 bitfield information.
1568 (extract_bitfield_from_watchpoint_value): New function.
1569 (watchpoint_check): Use it.
1570 (update_watchpoint): Use it. Optimize the address and length of a
1571 HW watchpoint pointing to a bitfield.
1572 * value.h (unpack_value_bitfield): New prototype.
1573 * value.c (unpack_value_bitfield): Make extern.
1575 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1577 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1579 * gnu-nat.c (inf_threads): New function.
1580 * gnu-nat.h (inf_threads_ftype): New typedef.
1581 (inf_threads): New declaration.
1582 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1583 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1584 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1585 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1586 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1587 (i386_gnu_dr_get_control): New functions.
1588 (reg_addr): New structure.
1589 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1590 i386 debugging register hooks.
1591 * NEWS: Mention this.
1593 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1595 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1596 vector data transfer instructions.
1597 (arm_record_coproc_data_proc): Updated.
1599 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1601 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1602 arm_record_exreg_ld_st_insn.
1603 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1606 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1608 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1609 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1610 processing instructions.
1612 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1614 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1615 for advance SIMD struct ld/st insn.
1616 (thumb2_record_decode_insn_handler): Replace stub handler with
1617 thumb2_record_asimd_struct_ld_st.
1619 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1621 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1622 for asimd, vfp and coprocessor insns.
1623 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1624 and coprocessor insns.
1625 (thumb2_record_coproc_insn): New function.
1626 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1628 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1631 2014-09-13 Doug Evans <xdje42@gmail.com>
1633 * NEWS: Mention new "queue-signal" command.
1634 * infcmd.c (queue_signal_command): New function.
1635 (_initialize_infcmd): Add new queue-signal command.
1637 2014-09-13 Doug Evans <xdje42@gmail.com>
1639 * linux-nat.c (wait_lwp): Add debugging printf.
1640 (linux_nat_wait_1): Ditto.
1642 2014-09-12 Pedro Alves <palves@redhat.com>
1644 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1645 (create_and_insert_solib_event_breakpoint): New functions.
1646 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1647 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1648 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1649 (remove_dbx_link_breakpoint): Delete function.
1650 (insert_dbx_link_bpt_in_file): Use
1651 create_and_insert_solib_event_breakpoint instead of
1652 deprecated_insert_raw_breakpoint.
1653 (procfs_wait): Don't check whether we hit __dbx_link here.
1654 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1656 * solib-irix.c (base_breakpoint): Delete global.
1657 (disable_break): Delete function.
1658 (enable_break): Use create_solib_event_breakpoint
1659 instead of deprecated_insert_raw_breakpoint.
1660 (irix_solib_handle_event): New function.
1661 (irix_solib_create_inferior_hook): Don't run the target or disable
1662 the mapping-complete breakpoint here.
1663 (_initialize_irix_solib): Install irix_solib_handle_event as
1664 so_ops->handle_event hook.
1666 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1667 Ulrich Weigand <uweigand@de.ibm.com>
1670 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1671 instead of read_memory_unsigned_integer.
1673 2014-09-12 Gary Benson <gbenson@redhat.com>
1675 * nat/linux-waitpid.c: Include common-defs.h.
1676 [GDBSERVER]: Add FIXME comment.
1677 [!GDBSERVER]: Don't include defs.h or signal.h.
1678 (linux_debug) [!GDBSERVER]: Remove empty block.
1680 2014-09-12 Gary Benson <gbenson@redhat.com>
1682 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1683 Don't include defs.h or server.h.
1685 2014-09-12 Gary Benson <gbenson@redhat.com>
1687 * nat/linux-btrace.c: Include common-defs.h.
1688 Don't include defs.h, server.h or gdbthread.h.
1689 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1691 2014-09-12 Gary Benson <gbenson@redhat.com>
1693 * common/agent.c: Include common-defs.h.
1694 Don't include defs.h or server.h.
1695 * common/buffer.c: Likewise.
1696 * common/common-debug.c: Likewise.
1697 * common/common-utils.c: Likewise.
1698 * common/errors.c: Likewise.
1699 * common/filestuff.c: Likewise.
1700 * common/format.c: Likewise.
1701 * common/gdb_vecs.c: Likewise.
1702 * common/print-utils.c: Likewise.
1703 * common/ptid.c: Likewise.
1704 * common/rsp-low.c: Likewise.
1705 * common/signals.c: Likewise.
1706 * common/vec.c: Likewise.
1707 * common/xml-utils.c: Likewise.
1708 * nat/linux-osdata.c: Likewise.
1709 * nat/linux-procfs.c: Likewise.
1710 * nat/linux-ptrace.c: Likewise.
1711 * nat/mips-linux-watch.c: Likewise.
1712 * target/waitstatus.c: Likewise.
1714 2014-09-12 Tom Tromey <tromey@redhat.com>
1715 Gary Benson <gbenson@redhat.com>
1717 * common/common-regcache.h: New file.
1718 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1719 * regcache.h: Include common-regcache.h.
1720 (regcache_read_pc): Don't declare.
1721 * regcache.c (get_thread_regcache_for_ptid): New function.
1722 * nat/linux-btrace.c: Don't include regcache.h.
1723 Include common-regcache.h.
1724 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1726 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1728 * regcache.h (struct regset): Declare.
1730 2014-09-11 Pedro Alves <palves@redhat.com>
1733 * main.c: Include "infrun.h".
1734 (catch_command_errors, catch_command_errors_const): Wait for the
1735 foreground command to complete.
1736 * top.c (maybe_wait_sync_command_done): New function, factored out
1738 (maybe_wait_sync_command_done): ... here.
1739 * top.h (maybe_wait_sync_command_done): New declaration.
1741 2014-09-11 Tom Tromey <tromey@redhat.com>
1742 Gary Benson <gbenson@redhat.com>
1744 * common/symbol.h: New file.
1745 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1746 * minsyms.c (find_minimal_symbol_address): New function.
1747 * common/agent.c: Include common/symbol.h.
1748 [!GDBSERVER]: Don't include objfiles.h.
1749 (agent_look_up_symbols): Use find_minimal_symbol_address.
1751 2014-09-11 Gary Benson <gbenson@redhat.com>
1753 * target/target.h (target_stop_ptid, target_continue_ptid):
1755 * target.c (target_stop_ptid, target_continue_ptid): New
1757 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1758 (agent_run_command): Always use target_stop_ptid and
1759 target_continue_ptid.
1761 2014-09-11 Tom Tromey <tromey@redhat.com>
1762 Gary Benson <gbenson@redhat.com>
1764 * target/target.h: New file.
1765 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1766 * target.h: Include target/target.h.
1767 (target_read_memory, target_write_memory): Don't declare.
1768 * target.c (target_read_uint32): New function.
1769 * common/agent.c: Include target/target.h.
1770 [!GDBSERVER]: Don't include target.h.
1771 (helper_thread_id): Type changed to uint32_t.
1772 (agent_get_helper_thread_id): Use target_read_uint32.
1773 (agent_run_command): Always use target_read_memory and
1774 target_write_memory.
1775 (agent_capability): Type changed to uint32_t.
1776 (agent_capability_check): Use target_read_uint32.
1778 2014-09-11 Gary Benson <gbenson@redhat.com>
1780 * common/common-debug.h (show_debug_regs): Declare.
1781 * common/common-debug.c (show_debug_regs): Define.
1782 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1783 all uses with show_debug_regs. Replace all uses that considered
1784 debug_hw_points as a multi-value integer with straight boolean
1786 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1787 with show_debug_regs.
1788 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1789 all uses with show_debug_regs.
1790 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1791 uses with show_debug_regs.
1793 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1795 * findvar.c (address_from_register): Handle targets requiring
1796 a special conversion routine even for plain pointer types.
1798 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1800 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1801 (store_register): Do not call exec_one_dummy_insn.
1803 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1805 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1806 dereference it first. Use value_enclosing_type instead of
1808 (ada_array_length): Likewise.
1810 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1812 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1813 Adjust function implementation and documentation accordingly.
1814 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1815 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1816 Update call to ada_value_ptr_subscript.
1818 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1820 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1821 instead of VAL's type.
1823 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1825 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1827 2014-09-09 Doug Evans <xdje42@gmail.com>
1830 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1831 last parameter to pkg-config, not first.
1832 * configure.ac: Pass --with-guile provided pkg-config path to
1833 GDB_GUILE_PROGRAM_NAMES.
1834 * configure: Regenerate.
1836 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1838 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1841 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1843 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1844 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1845 the list of sections determining GDB_OSABI_IRIX.
1847 2014-09-09 James Hogan <james.hogan@imgtec.com>
1849 * MAINTAINERS (Write After Approval): Add "James Hogan".
1851 2014-09-09 James Hogan <james.hogan@imgtec.com>
1853 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1855 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1857 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1859 2014-09-08 Doug Evans <xdje42@gmail.com>
1862 * guile.c: #include <signal.h>.
1863 (_initialize_guile): Block SIGCHLD while initializing Guile.
1865 Replaces the following, which is reverted.
1867 2014-07-26 Doug Evans <xdje42@gmail.com>
1870 * configure.ac: Add check for header gc/gc.h.
1871 Add check for function setenv.
1872 * configure: Regenerate.
1873 * config.in: Regenerate.
1874 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1876 2014-09-08 Doug Evans <xdje42@gmail.com>
1878 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1879 with named constant. Fix style of pointer comparison.
1880 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1882 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1885 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1886 decide whether we display the command on "show user".
1887 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1888 printing command name.
1889 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1890 * cli/cli-decode.c (cli_user_command_p): Create helper function
1891 to verify whether cmd_list_element is a user-defined command.
1893 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1896 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1897 Fix goto out of TRY_CATCH.
1899 2014-09-06 Doug Evans <xdje42@gmail.com>
1900 Tom Tromey <tromey@redhat.com>
1903 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1904 $_any_caller_matches.
1905 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1906 * python/lib/gdb/function/caller_is.py: New file.
1908 2014-09-06 Doug Evans <xdje42@gmail.com>
1910 * infcmd.c (program_info): Fix typo.
1912 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1915 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1916 'number'. New variable 'has_digit'. Rewrite code to deal with
1917 subexpressions on SDT probes.
1919 2014-09-04 Pedro Alves <palves@redhat.com>
1921 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1922 the input is only one character long.
1924 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1927 * f-valprint.c (f_val_print): Specify the correct print option to
1928 use when printing integer values.
1930 2014-09-04 Gary Benson <gbenson@redhat.com>
1932 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1933 Remove code to cope with LWPs wrapped as PIDs.
1934 Add assertions to ensure no wrapped LWPs are passed.
1936 2014-09-04 Pedro Alves <palves@redhat.com>
1938 * value.c (value_ranges_copy_adjusted): New function, factored out
1940 (value_contents_copy_raw): ... here.
1941 (unpack_value_bits_as_long_1): Rename back to ...
1942 (unpack_bits_as_long): ... this. Remove 'original_value' and
1943 'result' parameters. Change return type to LONGEST.
1944 (unpack_value_bits_as_long): Delete.
1945 (unpack_value_field_as_long_1): Delete.
1946 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1947 (unpack_value_bitfield): New function.
1948 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1949 (value_fetch_lazy): Use unpack_value_bitfield.
1950 * value.h (unpack_value_bits_as_long): Delete declaration.
1952 2014-09-03 Sasha Smundak <asmundak@google.com>
1954 * python/py-frame.c (frapy_read_register): New function.
1956 2014-09-03 James Hogan <james.hogan@imgtec.com>
1958 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1959 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1961 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1964 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1966 (add_cmd): Set "completer_handle_brkchars" to NULL.
1967 * cli/cli-decode.h (struct cmd_list_element)
1968 <completer_handle_brkchars>: New field.
1969 * command.h (completer_ftype_void): New typedef.
1970 (set_cmd_completer_handle_brkchars): New prototype.
1971 * completer.c (set_gdb_completion_word_break_characters): New
1973 (complete_line_internal): Call "completer_handle_brkchars"
1974 callback from command.
1975 * completer.h: Include "command.h".
1976 (set_gdb_completion_word_break_characters): New prototype.
1977 * python/py-cmd.c (cmdpy_completer_helper): New function.
1978 (cmdpy_completer_handle_brkchars): New function.
1979 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1980 (cmdpy_init): Set completer_handle_brkchars to
1981 cmdpy_completer_handle_brkchars.
1983 2014-09-03 Gary Benson <gbenson@redhat.com>
1985 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1986 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1987 Loop conditions changed to equivalent form.
1988 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1989 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1990 ALL_DEBUG_ADDRESS_REGISTERS.
1992 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1994 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1997 2014-09-02 Doug Evans <dje@google.com>
1999 * typeprint.c (find_global_typedef): Fix comment.
2001 2014-09-02 Gary Benson <gbenson@redhat.com>
2003 * i386-nat.h: Renamed as...
2004 * x86-nat.h: New file. All type, function and variable name
2005 prefixes changed from "i386_" to "x86_". All references updated.
2006 * i386-nat.c: Renamed as...
2007 * x86-nat.c: New file. All type, function and variable name
2008 prefixes changed from "i386_" to "x86_". All references updated.
2009 * common/i386-xstate.h: Renamed as...
2010 * common/x86-xstate.h: New file. All type, function and variable
2011 name prefixes changed from "i386_" to "x86_". All references
2013 * nat/i386-cpuid.h: Renamed as...
2014 * nat/x86-cpuid.h: New file. All type, function and variable name
2015 prefixes changed from "i386_" to "x86_". All references updated.
2016 * nat/i386-gcc-cpuid.h: Renamed as...
2017 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2018 name prefixes changed from "i386_" to "x86_". All references
2020 * nat/i386-dregs.h: Renamed as...
2021 * nat/x86-dregs.h: New file. All type, function and variable name
2022 prefixes changed from "i386_" to "x86_". All references updated.
2023 * nat/i386-dregs.c: Renamed as...
2024 * nat/x86-dregs.c: New file. All type, function and variable name
2025 prefixes changed from "i386_" to "x86_". All references updated.
2027 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2029 * varobj.c (_initialize_varobj): Move to the end of file.
2031 2014-08-29 Gary Benson <gbenson@redhat.com>
2033 * common/common-exceptions.h: New file.
2034 * common/common-exceptions.c: Likewise.
2035 * Makefile.in (SFILES): Add common/common-exceptions.c.
2036 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2037 (COMMON_OBS): Add common-exceptions.o.
2038 (common-exceptions.o): New rule.
2039 * exceptions.h (common-exceptions.h): Include.
2040 (gdb_setjmp.h): Do not include.
2041 (return_reason): Moved to common-exceptions.h.
2042 (enum return_reason): Likewise.
2043 (RETURN_MASK): Likewise.
2044 (typedef return_mask): Likewise.
2045 (enum errors): Likewise.
2046 (struct gdb_exception): Likewise.
2047 (exceptions_state_mc_init): Likewise.
2048 (exceptions_state_mc_action_iter): Likewise.
2049 (exceptions_state_mc_action_iter_1): Likewise.
2050 (TRY_CATCH): Likewise.
2051 (throw_exception): Likewise.
2052 (throw_verror): Likewise.
2053 (throw_vquit): Likewise.
2054 (throw_error): Likewise.
2055 (throw_quit): Likewise.
2056 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2057 (enum catcher_action): Likewise.
2058 (struct catcher): Likewise.
2059 (current_catcher): Likewise.
2060 (catcher_list_size): Likewise.
2061 (exceptions_state_mc_init): Likewise.
2062 (catcher_pop): Likewise.
2063 (exceptions_state_mc): Likewise.
2064 (exceptions_state_mc_action_iter): Likewise.
2065 (exceptions_state_mc_action_iter_1): Likewise.
2066 (throw_exception): Likewise.
2067 (exception_messages): Likewise.
2068 (exception_messages_size): Likewise.
2069 (throw_it): Likewise.
2070 (throw_verror): Likewise.
2071 (throw_vquit): Likewise.
2072 (throw_error): Likewise.
2073 (throw_quit): Likewise.
2074 (prepare_to_throw_exception): New function.
2076 2014-08-29 Gary Benson <gbenson@redhat.com>
2078 * common/gdb_setjmp.h: New file.
2079 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2080 * configure.ac: Move sigsetjmp check...
2081 * common/common.m4: ...here.
2082 * configure: Regenerate.
2083 * cp-support.c (SIGJMP_BUF): Delete.
2084 (SIGSETJMP): Likewise.
2085 (SIGLONGJMP): Likewise.
2086 * exceptions.h (gdb_setjmp.h): Include.
2087 (setjmp.h): Do not include.
2088 (EXCEPTIONS_SIGJMP_BUF): Delete.
2089 (EXCEPTIONS_SIGSETJMP): Likewise.
2090 (EXCEPTIONS_SIGLONGJMP): Likewise.
2091 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2093 * exceptions.c: Likewise.
2095 2014-08-29 Gary Benson <gbenson@redhat.com>
2097 * cleanups.h: Moved to...
2098 * common/cleanups.h: New file.
2099 * cleanups.c: Moved to...
2100 * common/cleanups.c: New file. Include common-defs.h and
2101 cleanups.h. Do not include defs.h.
2102 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2103 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2104 (cleanups.o): New rule.
2106 2014-08-29 Gary Benson <gbenson@redhat.com>
2108 * common/errors.h (internal_warning): New declaration.
2109 (internal_vwarning): Likewise.
2110 * common/errors.c (internal_warning): New function.
2111 * utils.h (internal_warning): Don't declare.
2112 (internal_vwarning): Likewise.
2113 * utils.c (internal_warning): Removed.
2115 2014-08-29 Gary Benson <gbenson@redhat.com>
2117 * main.c (captured_main): Use warning during startup.
2118 Prefix startup warning messages with command name.
2120 2014-08-29 Gary Benson <gbenson@redhat.com>
2122 * main.c (captured_main): Handle usage errors with error.
2124 2014-08-29 Gary Benson <gbenson@redhat.com>
2126 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2127 exit pair with a call to error. Wrap the message with _().
2129 2014-08-29 Gary Benson <gbenson@redhat.com>
2131 * main.c (captured_main): Replace a fprintf/exit
2132 pair with a call to error. Wrap the message with _().
2134 2014-08-29 Gary Benson <gbenson@redhat.com>
2136 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2137 pairs with calls to error. Wrap the message with _().
2139 2014-08-29 Gary Benson <gbenson@redhat.com>
2141 * utils.c (vwarning): Protect calls to target_terminal_ours
2144 2014-08-29 Gary Benson <gbenson@redhat.com>
2146 * exceptions.c (print_flush): Protect calls to
2147 target_terminal_ours and wrap_here.
2149 2014-08-29 Gary Benson <gbenson@redhat.com>
2151 * utils.h (filtered_printing_initialized): New declaration.
2152 * utils.c (abort_with_message): New function.
2153 (internal_vproblem): Use abort_with_message for first level
2154 recursive internal problems, and if gdb_stderr is not set up.
2155 Protect calls to target_terminal_ours, begin_line and query.
2157 2014-08-28 Doug Evans <dje@google.com>
2159 * symtab.c (in_prologue): Move definition to better spot.
2160 (skip_prologue_using_sal): Ditto.
2162 2014-08-28 Doug Evans <dje@google.com>
2164 * symtab.c (find_function_start_sal): Move definition to better spot.
2166 2014-08-28 Yao Qi <yao@codesourcery.com>
2168 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2169 found_stack_adjust in forward scan. Remove condition check
2170 on found_stack_adjust which is always true. Indent the code.
2172 2014-08-28 Yao Qi <yao@codesourcery.com>
2174 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2175 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2176 (dwarf_decode_lines): Remove argument
2177 want_line_info. Remove condition check on want_line_info.
2180 2014-08-27 Doug Evans <dje@google.com>
2182 * dwarf2read.c (dwarf_record_line): Fix typo.
2184 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2186 * target.h (struct target_ops::to_terminal_save_ours): Remove
2188 (target_terminal_save_ours): Remove macro.
2189 * target-delegates.c: Regenerate.
2190 * inf-child.c (inf_child_target): Don't set the nonexistent
2191 field to_terminal_save_ours.
2192 * inferior.h (child_terminal_save_ours): Remove declaration.
2193 * terminal.h (gdb_save_tty_state): New declaration.
2194 * inflow.c (child_terminal_save_ours): Rename to ...
2195 (gdb_save_tty_state): ... this.
2196 * tui/tui.c: Include terminal.h.
2197 (tui_enable): Use gdb_save_tty_state instead of
2198 target_terminal_save_ours.
2199 (tui_disable): Likewise.
2201 2014-08-25 Doug Evans <dje@google.com>
2203 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2204 Pass NULL instead of 0 for context pointer.
2206 2014-08-25 Yao Qi <yao@codesourcery.com>
2208 * dwarf2read.c: Fix grammatical error.
2210 2014-08-24 Yao Qi <yao@codesourcery.com>
2212 * dwarf2read.c (scan_partial_symbols): Update comments.
2213 Rename argument 'need_pc' with 'set_addrmap'.
2214 (add_partial_namespace): Rename argument 'need_pc' with
2216 (add_partial_module): Likewise.
2217 (add_partial_subprogram): Likewise. Update comments.
2218 (dwarf2_name): Fix typo.
2220 2014-08-22 Doug Evans <dje@google.com>
2223 * dwarf2read.c (dwarf_record_line_p): New function.
2224 (dwarf_decode_lines_1): Ignore subsequent line number entries
2225 for the same line if any entry had a non-zero discriminator.
2227 2014-08-22 Doug Evans <dje@google.com>
2229 * buildsym.h (record_line_ftype): New typedef.
2230 (record_line): Use it.
2231 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2232 (dwarf_decode_lines_1): Call them.
2234 2014-08-22 Yao Qi <yao@codesourcery.com>
2236 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2237 (ctf_end): Remove code.
2239 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2241 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2242 (linux_make_corefile_notes): call update_thread_list, protected against
2245 2014-08-21 Pedro Alves <palves@redhat.com>
2247 * infcmd.c (attach_command): Remove comment.
2249 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2251 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2252 unsigned LONGEST to ULONGEST.
2254 2014-08-20 Pedro Alves <palves@redhat.com>
2256 * Makefile.in (check-read1): New rule.
2258 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2260 * value.c (value_from_contents_and_address): Strip resolved_type's
2261 typedef layers before checking its TYPE_DATA_LOCATION.
2263 2014-08-20 Pedro Alves <palves@redhat.com>
2265 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2267 2014-08-20 Yao Qi <yao@codesourcery.com>
2269 * amd64-tdep.c (amd64_classify): Add a blank line after the
2270 example. Move "*/" to a new line.
2271 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2272 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2273 * dwarf2read.c (psymtab_include_file_name): Likewise.
2275 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2276 Pedro Alves <palves@redhat.com>
2280 * ada-lang.c (coerce_unspec_val_to_type): Use
2281 value_contents_copy_raw.
2282 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2283 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2284 * cp-valprint.c (cp_print_value_fields): Let the common printing
2285 code handle optimized out values.
2286 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2287 * d-valprint.c (dynamic_array_type): Use
2288 value_bits_any_optimized_out.
2289 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2290 check_any_valid fields.
2291 (check_pieced_value_bits): Delete and inline ...
2292 (check_pieced_synthetic_pointer): ... here.
2293 (check_pieced_value_validity): Delete.
2294 (check_pieced_value_invalid): Delete.
2295 (pieced_value_funcs): Remove check_validity and check_any_valid
2297 (read_pieced_value): Use mark_value_bits_optimized_out.
2298 (write_pieced_value): Switch to use
2299 mark_value_bytes_optimized_out.
2300 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2301 of assuming the whole value is optimized out.
2302 * findvar.c (read_frame_register_value): Remove special handling
2303 of optimized out registers.
2304 (value_from_register): Use mark_value_bytes_optimized_out.
2305 * frame-unwind.c (frame_unwind_got_optimized): Use
2306 mark_value_bytes_optimized_out.
2307 * jv-valprint.c (java_value_print): Adjust.
2308 (java_print_value_fields): Let the common printing code handle
2309 optimized out values.
2310 * mips-tdep.c (mips_print_register): Remove special handling of
2311 optimized out registers.
2312 * opencl-lang.c (lval_func_check_validity): Delete.
2313 (lval_func_check_any_valid): Delete.
2314 (opencl_value_funcs): Remove check_validity and check_any_valid
2316 * p-valprint.c (pascal_object_print_value_fields): Let the common
2317 printing code handle optimized out values.
2318 * stack.c (read_frame_arg): Remove special handling of optimized
2319 out values. Fetch both VAL and ENTRYVAL before comparing
2320 contents. Adjust to value_available_contents_eq rename.
2321 * valprint.c (valprint_check_validity)
2322 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2323 (val_print_array_elements): Adjust.
2324 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2325 (value_bits_any_optimized_out): New function.
2326 (value_entirely_covered_by_range_vector): New function, factored
2327 out from value_entirely_unavailable.
2328 (value_entirely_unavailable): Reimplement.
2329 (value_entirely_optimized_out): New function.
2330 (insert_into_bit_range_vector): New function, factored out from
2331 mark_value_bits_unavailable.
2332 (mark_value_bits_unavailable): Reimplement.
2333 (struct ranges_and_idx): New struct.
2334 (find_first_range_overlap_and_match): New function, factored out
2335 from value_available_contents_bits_eq.
2336 (value_available_contents_bits_eq): Rename to ...
2337 (value_contents_bits_eq): ... this. Check both unavailable
2338 contents and optimized out contents.
2339 (value_available_contents_eq): Rename to ...
2340 (value_contents_eq): ... this.
2341 (allocate_value_lazy): Remove reference to the old optimized_out
2343 (allocate_optimized_out_value): Use
2344 mark_value_bytes_optimized_out.
2345 (require_not_optimized_out): Adjust to check whether the
2346 optimized_out vec is empty.
2347 (ranges_copy_adjusted): New function, factored out from
2348 value_contents_copy_raw.
2349 (value_contents_copy_raw): Also copy the optimized out ranges.
2350 Assert the destination ranges aren't optimized out.
2351 (value_contents_copy): Update comment, remove call to
2352 require_not_optimized_out.
2353 (value_contents_equal): Adjust to check whether the optimized_out
2355 (set_value_optimized_out, value_optimized_out_const): Delete.
2356 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2358 (value_entirely_optimized_out, value_bits_valid): Delete.
2359 (value_copy): Take a VEC copy of the 'optimized_out' field.
2360 (value_primitive_field): Remove special handling of optimized out.
2361 (value_fetch_lazy): Assert that lazy values have no unavailable
2362 regions. Use value_bits_any_optimized_out. Remove some special
2363 handling for optimized out values.
2364 * value.h: Add intro comment about <optimized out> and
2366 (struct lval_funcs): Remove check_validity and check_any_valid
2368 (set_value_optimized_out, value_optimized_out_const): Remove.
2369 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2371 (value_bits_any_optimized_out): New declaration.
2372 (value_bits_valid): Delete declaration.
2373 (value_available_contents_eq): Rename to ...
2374 (value_contents_eq): ... this, and extend comments.
2376 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2378 Fix -fsanitize=address on unreadable inferior strings.
2379 * valprint.c (val_print_string): Fix access before BUFFER.
2381 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2383 * target.c (target_struct_size): Remove.
2384 (target_struct_allocsize): Remove.
2385 (DEFAULT_ALLOCSIZE): Remove.
2386 (target_ops_p): New typedef.
2387 (DEF_VEC_P (target_ops_p)): New vector type.
2388 (target_structs): Change type to VEC (target_ops_p).
2389 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2390 (find_default_run_target): Rewrite for loop following changes to
2393 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2395 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2396 Adjust code accordingly. Adjust function description comment.
2398 2014-08-19 Yao Qi <yao@codesourcery.com>
2400 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2403 2014-08-19 Alan Modra <amodra@gmail.com>
2405 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2406 * config.in: Regenerate.
2407 * configure: Regenerate.
2409 2014-08-19 Tom Tromey <tromey@redhat.com>
2410 Gary Benson <gbenson@redhat.com>
2412 * common/common-debug.h: New file.
2413 * common/common-debug.c: Likewise.
2414 * debug.c: Likewise.
2415 * Makefile.in (SFILES): Add common/common-debug.c.
2416 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2417 (COMMON_OBS): Add common-debug.o and debug.o.
2418 (common-debug.o): New rule.
2419 * common/common-defs.h: Include common-debug.h.
2420 * common/agent.c (debug_agent_printf): New function.
2421 (DEBUG_AGENT): Redefine.
2422 * nat/i386-dregs.c (debug_printf): Undefine.
2424 2014-08-19 Gary Benson <gbenson@redhat.com>
2426 * common/common-defs.h: Include print-utils.h.
2427 * utils.h: Do not include print-utils.h.
2429 2014-08-19 Tom Tromey <tromey@redhat.com>
2430 Gary Benson <gbenson@redhat.com>
2432 * common/common-types.h: New file.
2433 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2434 * common/common-defs.h: Include common-types.h.
2435 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2438 2014-08-19 Tom Tromey <tromey@redhat.com>
2439 Gary Benson <gbenson@redhat.com>
2441 * common/errors.h: New file.
2442 * common/errors.c: Likewise.
2443 * Makefile.in (SFILES): Add common/errors.c.
2444 (HFILES_NO_SRCDIR): Add common/errors.h.
2445 (COMMON_OBS): Add errors.o.
2446 (errors.o): New rule.
2447 * common/common-defs.h: Include errors.h.
2448 * utils.h (perror_with_name, error, verror, warning, vwarning):
2450 * common/common-utils.h: (malloc_failure, internal_error):
2453 2014-08-19 Gary Benson <gbenson@redhat.com>
2455 * utils.c (internal_vproblem): Always print the message.
2457 2014-08-18 Doug Evans <dje@google.com>
2459 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2461 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2463 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2464 Return 0 if TYPE is dynamic.
2465 (print_range): Add handling of dynamic ranges.
2467 2014-08-18 Keven Boell <keven.boell@intel.com>
2468 Joel Brobecker <brobecker@adacore.com>
2470 * gdbtypes.h (struct main_type): Add field "data_location".
2471 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2472 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2473 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2474 a dynamic data location.
2475 (resolve_dynamic_type): Add DW_AT_data_location handling.
2476 (copy_recursive, copy_type): Copy the data_location information
2478 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2479 * value.c (value_from_contents_and_address): Add
2480 DW_AT_data_location handling.
2482 2014-08-18 Keven Boell <keven.boell@intel.com>
2483 Joel Brobecker <brobecker@adacore.com>
2485 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2486 field "get_object_address".
2487 * dwarf2expr.c (execute_stack_op): Add handling for
2488 DW_OP_push_object_address.
2489 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2490 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2491 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2492 (dwarf_expr_get_obj_addr): New function.
2493 (dwarf_expr_ctx_funcs): Add get_object_address field.
2494 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2495 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2496 (dwarf2_evaluate_property): Add parameter "address". Use it.
2497 (needs_get_obj_addr): New function.
2498 (needs_frame_ctx_funcs): Add get_object_address field.
2499 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2500 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2501 (resolve_dynamic_array): Likewise.
2503 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2505 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2506 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2507 fixed value for records and unions for which some GNAT encodings
2510 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2512 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2513 rewrite to avoid "else if" and "else" constructs. Should be
2514 a no-op in practice.
2516 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2518 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2521 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2524 * eval.c: Update all calls to find_overload_match.
2525 * valarith.c: Likewise.
2526 (value_user_defined_cpp_op, value_user_defined_op): New
2527 argument NOSIDE. Update all callers.
2528 * valops.c (find_overload_match): New argument NOSIDE.
2529 * value.h (find_overload_match): Update signature.
2531 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2533 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2534 'items' methods instead of 'iteritems' method on dictionaries.
2536 2014-08-15 Doug Evans <dje@google.com>
2538 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2541 2014-08-15 Doug Evans <dje@google.com>
2543 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2545 2014-08-15 Doug Evans <dje@google.com>
2547 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2549 2014-08-15 Doug Evans <dje@google.com>
2551 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2554 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2556 * dcache.h: Include target.h, to avoid compile time warnings.
2558 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2560 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2561 frame_info" partial declaration.
2562 * gdbarch.h: Regenerate.
2564 2014-08-15 Yao Qi <yao@codesourcery.com>
2566 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2567 Add parameter 'decode_for_pst_p'. Callers update.
2569 2014-08-13 Yao Qi <yao@codesourcery.com>
2572 * configure.ac: Use local variable 'pos'.
2573 * configure: Regenerated.
2575 2014-08-11 Doug Evans <dje@google.com>
2577 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2578 message, it is redundant with "Reading symbols from ..." message.
2580 2014-08-10 Doug Evans <xdje42@gmail.com>
2582 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2584 2014-08-09 Yao Qi <yao@codesourcery.com>
2587 * remote.c (remote_xfer_partial): Remove dead code.
2589 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591 * ia64-linux-tdep.c: Include "regset.h".
2592 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2593 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2594 (ia64_linux_supply_fpregset): New function.
2595 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2596 (ia64_linux_regset_from_core_section): New function.
2597 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2600 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2602 * m68klinux-tdep.c: Include "regset.h".
2603 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2604 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2605 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2606 (m68k_linux_regset_from_core_section): New function.
2607 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2613 function. Move logic to...
2614 (tilegx_linux_regmap): ... this new register map.
2615 (tilegx_linux_regset): Refer to register map, replace supply
2616 method by regcache_supply_regset, and add collect method.
2617 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2618 TILEGX_FIRST_EASY_REGNUM.
2620 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2622 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2623 that calls regcache_supply_regset and handles the EPC register
2624 separately. Move main logic to...
2625 (score7_linux_gregmap): ... this new register map.
2626 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2627 (score7_linux_gregset): Refer to register map. Add collect method.
2628 (score7_linux_regset_from_core_section): Replace
2629 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2630 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2631 (struct regset): Delete unused forward declaraction.
2632 (struct pt_regs): Delete structure definition.
2633 (elf_gregset_t): Delete typedef.
2635 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2638 (nios2_core_regset): Add collect method.
2640 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2642 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2643 platform-independent and don't write to read-only input buffer.
2644 (m32r_linux_collect_gregset): New function.
2645 (m32r_linux_gregset): Add collect method.
2647 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2649 * hppa-linux-tdep.c (greg_map): Rename to...
2650 (hppa_linux_gregmap): ... this. Also convert to
2651 regcache_map_entry format.
2652 (hppa_linux_supply_regset): Delete function.
2653 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2654 (hppa_linux_fpregmap): ... this new register map.
2655 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2656 register map, replace supply method by regcache_supply_regset, and
2657 add collect method regcache_collect_regset.
2659 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2662 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2663 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2664 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2665 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2666 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2667 (frv_linux_supply_gregset): Replace main logic by call to
2668 regcache_supply_regset, but keep clearing gr32-gr63.
2669 (frv_linux_supply_fpregset): Delete function.
2670 (frv_linux_gregset): Refer to appropriate register map and add
2671 regcache_collect_regset as the collect method.
2672 (frv_linux_fpregset): Likewise. Also exchange the supply method
2673 by regcache_supply_regset.
2675 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2678 by call to alpha_supply_int_regs.
2679 (alpha_linux_collect_gregset): New function.
2680 (alpha_linux_supply_fpregset): Replace logic by call to
2681 alpha_supply_fp_regs.
2682 (alpha_linux_collect_fpregset): New function.
2683 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2685 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2687 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2688 by call to regcache_collect_regset.
2689 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2690 instead of aarch64_linux_supply_gregset/_fpregset.
2691 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2692 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2693 header file instead.
2694 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2695 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2696 functions. Move logic to ...
2697 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2699 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2700 refer to new register maps, replace *_regset_from_core by
2701 regcache_supply_regset, and also use regcache_collect_regset.
2702 * aarch64-linux-tdep.h: Include "regset.h".
2703 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2705 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2706 macros, moved from C source file.
2707 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2708 variable declarations.
2710 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2712 * s390-linux-nat.c: Include "regset.h".
2713 (regmap_gregset): Delete macro.
2714 (s390_64_regmap_gregset): New register map for
2715 regcache_supply/_collect_regset.
2716 (s390_64_gregset): New regset.
2717 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2718 (regmap_fpregset): Delete macro.
2719 (s390_native_supply, s390_native_collect): Delete functions.
2720 (supply_gregset, fill_gregset): Replace s390-specific regmap
2721 handling by a call to regcache_supply/_collect_regset.
2722 (supply_fpregset, fill_fpregset): Call regcache_supply/
2723 _collect_regset instead of s390_native_supply/_collect.
2724 (fetch_regset, store_regset): Likewise. Also change the last
2725 parameter to a regset instead of a regmap.
2726 (s390_linux_fetch_inferior_registers)
2727 (390_linux_store_inferior_registers): Adjust last parameter in
2728 calls to fetch_regset and store_regset.
2729 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2730 (s390_gregmap): ... this. Also make static const and convert to
2731 regcache_map_entry format.
2732 (s390x_regmap_gregset): Delete.
2733 (s390_regmap_fpregset): Rename to...
2734 (s390_fpregmap): ... this. Make static const and convert to
2735 regcache_map_entry format.
2736 (s390_regmap_upper, s390_regmap_last_break)
2737 (s390x_regmap_last_break, s390_regmap_system_call)
2738 (s390_regmap_tdb): Likewise.
2739 (s390_supply_regset, s390_collect_regset): Remove functions.
2740 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2742 (s390_gregset, s390_fpregset, s390_upper_regset)
2743 (s390_last_break_regset, s390x_last_break_regset)
2744 (s390_system_call_regset, s390_tdb_regset): Make global and
2745 replace s390_supply/_collect_regset by regcache_supply/
2747 (s390x_gregset): Delete.
2748 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2749 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2750 (s390_regmap_fpregset, s390_regmap_last_break)
2751 (s390x_regmap_last_break, s390_regmap_system_call)
2752 (s390_regmap_tdb): Delete global variable declarations.
2753 (s390_gregset, s390_fpregset, s390_last_break_regset)
2754 (s390x_last_break_regset, s390_system_call_regset)
2755 (s390_tdb_regset): New global variable declarations.
2757 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2759 * regcache.c: Include "regset.h".
2760 (regcache_transfer_regset): New local function.
2761 (regcache_supply_regset, regcache_collect_regset): New functions.
2762 * regcache.h (struct regcache_map_entry): New structure.
2763 (REGCACHE_MAP_SKIP): New enum value.
2764 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2766 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2768 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2769 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2770 (ppc_linux_collect_gregset ): Likewise.
2771 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2772 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2773 (ppc_collect_vrregset): Likewise.
2774 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2777 2014-08-07 Yao Qi <yao@codesourcery.com>
2779 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2780 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2781 * remote.c (remote_read_bytes): Likewise.
2783 2014-08-07 Yao Qi <yao@codesourcery.com>
2785 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2787 2014-08-07 Yao Qi <yao@codesourcery.com>
2790 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2791 TARGET_XFER_OK instead of 0.
2793 2014-08-07 Gary Benson <gbenson@redhat.com>
2795 * common/common-defs.h: Include errno.h.
2796 * defs.h: Do not include errno.h.
2797 * ada-typeprint.c: Likewise.
2798 * c-typeprint.c: Likewise.
2799 * core-regset.c: Likewise.
2800 * corefile.c: Likewise.
2801 * corelow.c: Likewise.
2802 * event-loop.c: Likewise.
2803 * f-typeprint.c: Likewise.
2804 * gnu-nat.c: Likewise.
2805 * go32-nat.c: Likewise.
2806 * i386gnu-nat.c: Likewise.
2807 * m2-typeprint.c: Likewise.
2808 * nat/linux-btrace.c: Likewise.
2809 * p-typeprint.c: Likewise.
2810 * procfs.c: Likewise.
2811 * remote-sim.c: Likewise.
2812 * rs6000-nat.c: Likewise.
2813 * target.c: Likewise.
2814 * typeprint.c: Likewise.
2815 * ui-file.c: Likewise.
2816 * valops.c: Likewise.
2817 * valprint.c: Likewise.
2819 2014-08-07 Gary Benson <gbenson@redhat.com>
2821 * common/common-defs.h: Include string.h.
2822 * aarch64-tdep.c: Do not include string.h.
2823 * ada-exp.y: Likewise.
2824 * ada-lang.c: Likewise.
2825 * ada-lex.l: Likewise.
2826 * ada-typeprint.c: Likewise.
2827 * ada-valprint.c: Likewise.
2828 * aix-thread.c: Likewise.
2829 * alpha-linux-tdep.c: Likewise.
2830 * alpha-mdebug-tdep.c: Likewise.
2831 * alpha-nat.c: Likewise.
2832 * alpha-osf1-tdep.c: Likewise.
2833 * alpha-tdep.c: Likewise.
2834 * alphanbsd-tdep.c: Likewise.
2835 * amd64-dicos-tdep.c: Likewise.
2836 * amd64-linux-tdep.c: Likewise.
2837 * amd64-nat.c: Likewise.
2838 * amd64-sol2-tdep.c: Likewise.
2839 * amd64fbsd-tdep.c: Likewise.
2840 * amd64obsd-tdep.c: Likewise.
2841 * arch-utils.c: Likewise.
2842 * arm-linux-nat.c: Likewise.
2843 * arm-linux-tdep.c: Likewise.
2844 * arm-tdep.c: Likewise.
2845 * arm-wince-tdep.c: Likewise.
2846 * armbsd-tdep.c: Likewise.
2847 * armnbsd-nat.c: Likewise.
2848 * armnbsd-tdep.c: Likewise.
2849 * armobsd-tdep.c: Likewise.
2850 * avr-tdep.c: Likewise.
2851 * ax-gdb.c: Likewise.
2852 * ax-general.c: Likewise.
2853 * bcache.c: Likewise.
2854 * bfin-tdep.c: Likewise.
2855 * breakpoint.c: Likewise.
2856 * build-id.c: Likewise.
2857 * buildsym.c: Likewise.
2858 * c-exp.y: Likewise.
2859 * c-lang.c: Likewise.
2860 * c-typeprint.c: Likewise.
2861 * c-valprint.c: Likewise.
2862 * charset.c: Likewise.
2863 * cli-out.c: Likewise.
2864 * cli/cli-cmds.c: Likewise.
2865 * cli/cli-decode.c: Likewise.
2866 * cli/cli-dump.c: Likewise.
2867 * cli/cli-interp.c: Likewise.
2868 * cli/cli-logging.c: Likewise.
2869 * cli/cli-script.c: Likewise.
2870 * cli/cli-setshow.c: Likewise.
2871 * cli/cli-utils.c: Likewise.
2872 * coffread.c: Likewise.
2873 * common/agent.c: Likewise.
2874 * common/buffer.c: Likewise.
2875 * common/buffer.h: Likewise.
2876 * common/common-utils.c: Likewise.
2877 * common/filestuff.c: Likewise.
2878 * common/filestuff.c: Likewise.
2879 * common/format.c: Likewise.
2880 * common/print-utils.c: Likewise.
2881 * common/rsp-low.c: Likewise.
2882 * common/signals.c: Likewise.
2883 * common/vec.h: Likewise.
2884 * common/xml-utils.c: Likewise.
2885 * core-regset.c: Likewise.
2886 * corefile.c: Likewise.
2887 * corelow.c: Likewise.
2888 * cp-abi.c: Likewise.
2889 * cp-name-parser.y: Likewise.
2890 * cp-support.c: Likewise.
2891 * cp-valprint.c: Likewise.
2892 * cris-tdep.c: Likewise.
2893 * d-exp.y: Likewise.
2894 * darwin-nat.c: Likewise.
2895 * dbxread.c: Likewise.
2896 * dcache.c: Likewise.
2897 * demangle.c: Likewise.
2898 * dicos-tdep.c: Likewise.
2899 * disasm.c: Likewise.
2900 * doublest.c: Likewise.
2901 * dsrec.c: Likewise.
2902 * dummy-frame.c: Likewise.
2903 * dwarf2-frame.c: Likewise.
2904 * dwarf2loc.c: Likewise.
2905 * dwarf2read.c: Likewise.
2906 * elfread.c: Likewise.
2907 * environ.c: Likewise.
2909 * event-loop.c: Likewise.
2910 * exceptions.c: Likewise.
2912 * expprint.c: Likewise.
2913 * f-exp.y: Likewise.
2914 * f-lang.c: Likewise.
2915 * f-typeprint.c: Likewise.
2916 * f-valprint.c: Likewise.
2917 * fbsd-nat.c: Likewise.
2918 * findcmd.c: Likewise.
2919 * findvar.c: Likewise.
2920 * fork-child.c: Likewise.
2921 * frame.c: Likewise.
2922 * frv-linux-tdep.c: Likewise.
2923 * frv-tdep.c: Likewise.
2925 * gdb_bfd.c: Likewise.
2926 * gdbarch.c: Likewise.
2927 * gdbarch.sh: Likewise.
2928 * gdbtypes.c: Likewise.
2929 * gnu-nat.c: Likewise.
2930 * gnu-v2-abi.c: Likewise.
2931 * gnu-v3-abi.c: Likewise.
2932 * go-exp.y: Likewise.
2933 * go-lang.c: Likewise.
2934 * go32-nat.c: Likewise.
2935 * guile/guile.c: Likewise.
2936 * guile/scm-auto-load.c: Likewise.
2937 * hppa-hpux-tdep.c: Likewise.
2938 * hppa-linux-nat.c: Likewise.
2939 * hppanbsd-tdep.c: Likewise.
2940 * hppaobsd-tdep.c: Likewise.
2941 * i386-cygwin-tdep.c: Likewise.
2942 * i386-dicos-tdep.c: Likewise.
2943 * i386-linux-tdep.c: Likewise.
2944 * i386-nto-tdep.c: Likewise.
2945 * i386-sol2-tdep.c: Likewise.
2946 * i386-tdep.c: Likewise.
2947 * i386bsd-tdep.c: Likewise.
2948 * i386gnu-nat.c: Likewise.
2949 * i386nbsd-tdep.c: Likewise.
2950 * i386obsd-tdep.c: Likewise.
2951 * i387-tdep.c: Likewise.
2952 * ia64-libunwind-tdep.c: Likewise.
2953 * ia64-linux-nat.c: Likewise.
2954 * inf-child.c: Likewise.
2955 * inf-ptrace.c: Likewise.
2956 * inf-ttrace.c: Likewise.
2957 * infcall.c: Likewise.
2958 * infcmd.c: Likewise.
2959 * inflow.c: Likewise.
2960 * infrun.c: Likewise.
2961 * interps.c: Likewise.
2962 * iq2000-tdep.c: Likewise.
2963 * irix5-nat.c: Likewise.
2964 * jv-exp.y: Likewise.
2965 * jv-lang.c: Likewise.
2966 * jv-typeprint.c: Likewise.
2967 * jv-valprint.c: Likewise.
2968 * language.c: Likewise.
2969 * linux-fork.c: Likewise.
2970 * linux-nat.c: Likewise.
2971 * lm32-tdep.c: Likewise.
2972 * m2-exp.y: Likewise.
2973 * m2-typeprint.c: Likewise.
2974 * m32c-tdep.c: Likewise.
2975 * m32r-linux-nat.c: Likewise.
2976 * m32r-linux-tdep.c: Likewise.
2977 * m32r-rom.c: Likewise.
2978 * m32r-tdep.c: Likewise.
2979 * m68hc11-tdep.c: Likewise.
2980 * m68k-tdep.c: Likewise.
2981 * m68kbsd-tdep.c: Likewise.
2982 * m68klinux-nat.c: Likewise.
2983 * m68klinux-tdep.c: Likewise.
2984 * m88k-tdep.c: Likewise.
2985 * machoread.c: Likewise.
2986 * macrocmd.c: Likewise.
2988 * mdebugread.c: Likewise.
2989 * mem-break.c: Likewise.
2990 * memattr.c: Likewise.
2991 * memory-map.c: Likewise.
2992 * mep-tdep.c: Likewise.
2993 * mi/mi-cmd-break.c: Likewise.
2994 * mi/mi-cmd-disas.c: Likewise.
2995 * mi/mi-cmd-env.c: Likewise.
2996 * mi/mi-cmd-stack.c: Likewise.
2997 * mi/mi-cmd-var.c: Likewise.
2998 * mi/mi-cmds.c: Likewise.
2999 * mi/mi-console.c: Likewise.
3000 * mi/mi-getopt.c: Likewise.
3001 * mi/mi-interp.c: Likewise.
3002 * mi/mi-main.c: Likewise.
3003 * mi/mi-parse.c: Likewise.
3004 * microblaze-rom.c: Likewise.
3005 * microblaze-tdep.c: Likewise.
3006 * mingw-hdep.c: Likewise.
3007 * minidebug.c: Likewise.
3008 * minsyms.c: Likewise.
3009 * mips-irix-tdep.c: Likewise.
3010 * mips-linux-tdep.c: Likewise.
3011 * mips-tdep.c: Likewise.
3012 * mips64obsd-tdep.c: Likewise.
3013 * mipsnbsd-tdep.c: Likewise.
3014 * mipsread.c: Likewise.
3015 * mn10300-linux-tdep.c: Likewise.
3016 * mn10300-tdep.c: Likewise.
3017 * monitor.c: Likewise.
3018 * moxie-tdep.c: Likewise.
3019 * mt-tdep.c: Likewise.
3020 * nat/linux-btrace.c: Likewise.
3021 * nat/linux-osdata.c: Likewise.
3022 * nat/linux-procfs.c: Likewise.
3023 * nat/linux-ptrace.c: Likewise.
3024 * nat/linux-waitpid.c: Likewise.
3025 * nbsd-tdep.c: Likewise.
3026 * nios2-linux-tdep.c: Likewise.
3027 * nto-procfs.c: Likewise.
3028 * nto-tdep.c: Likewise.
3029 * objc-lang.c: Likewise.
3030 * objfiles.c: Likewise.
3031 * opencl-lang.c: Likewise.
3032 * osabi.c: Likewise.
3033 * osdata.c: Likewise.
3034 * p-exp.y: Likewise.
3035 * p-lang.c: Likewise.
3036 * p-typeprint.c: Likewise.
3037 * parse.c: Likewise.
3038 * posix-hdep.c: Likewise.
3039 * ppc-linux-nat.c: Likewise.
3040 * ppc-sysv-tdep.c: Likewise.
3041 * ppcfbsd-tdep.c: Likewise.
3042 * ppcnbsd-tdep.c: Likewise.
3043 * ppcobsd-tdep.c: Likewise.
3044 * printcmd.c: Likewise.
3045 * procfs.c: Likewise.
3046 * prologue-value.c: Likewise.
3047 * python/py-auto-load.c: Likewise.
3048 * python/py-gdb-readline.c: Likewise.
3049 * ravenscar-thread.c: Likewise.
3050 * regcache.c: Likewise.
3051 * registry.c: Likewise.
3052 * remote-fileio.c: Likewise.
3053 * remote-m32r-sdi.c: Likewise.
3054 * remote-mips.c: Likewise.
3055 * remote-notif.c: Likewise.
3056 * remote-sim.c: Likewise.
3057 * remote.c: Likewise.
3058 * reverse.c: Likewise.
3059 * rs6000-aix-tdep.c: Likewise.
3060 * ser-base.c: Likewise.
3061 * ser-go32.c: Likewise.
3062 * ser-mingw.c: Likewise.
3063 * ser-pipe.c: Likewise.
3064 * ser-tcp.c: Likewise.
3065 * ser-unix.c: Likewise.
3066 * serial.c: Likewise.
3067 * sh-tdep.c: Likewise.
3068 * sh64-tdep.c: Likewise.
3069 * shnbsd-tdep.c: Likewise.
3071 * sol-thread.c: Likewise.
3072 * solib-dsbt.c: Likewise.
3073 * solib-frv.c: Likewise.
3074 * solib-osf.c: Likewise.
3075 * solib-som.c: Likewise.
3076 * solib-spu.c: Likewise.
3077 * solib-target.c: Likewise.
3078 * solib.c: Likewise.
3079 * somread.c: Likewise.
3080 * source.c: Likewise.
3081 * sparc-nat.c: Likewise.
3082 * sparc-sol2-tdep.c: Likewise.
3083 * sparc-tdep.c: Likewise.
3084 * sparc64-tdep.c: Likewise.
3085 * sparc64fbsd-tdep.c: Likewise.
3086 * sparc64nbsd-tdep.c: Likewise.
3087 * sparcnbsd-tdep.c: Likewise.
3088 * spu-linux-nat.c: Likewise.
3089 * spu-multiarch.c: Likewise.
3090 * spu-tdep.c: Likewise.
3091 * stabsread.c: Likewise.
3092 * stack.c: Likewise.
3093 * std-regs.c: Likewise.
3094 * symfile.c: Likewise.
3095 * symmisc.c: Likewise.
3096 * symtab.c: Likewise.
3097 * target.c: Likewise.
3098 * thread.c: Likewise.
3099 * tilegx-linux-nat.c: Likewise.
3100 * tilegx-tdep.c: Likewise.
3102 * tracepoint.c: Likewise.
3103 * tui/tui-command.c: Likewise.
3104 * tui/tui-data.c: Likewise.
3105 * tui/tui-disasm.c: Likewise.
3106 * tui/tui-file.c: Likewise.
3107 * tui/tui-layout.c: Likewise.
3108 * tui/tui-out.c: Likewise.
3109 * tui/tui-regs.c: Likewise.
3110 * tui/tui-source.c: Likewise.
3111 * tui/tui-stack.c: Likewise.
3112 * tui/tui-win.c: Likewise.
3113 * tui/tui-windata.c: Likewise.
3114 * tui/tui-winsource.c: Likewise.
3115 * typeprint.c: Likewise.
3116 * ui-file.c: Likewise.
3117 * ui-out.c: Likewise.
3118 * user-regs.c: Likewise.
3119 * utils.c: Likewise.
3120 * v850-tdep.c: Likewise.
3121 * valarith.c: Likewise.
3122 * valops.c: Likewise.
3123 * valprint.c: Likewise.
3124 * value.c: Likewise.
3125 * varobj.c: Likewise.
3126 * vax-tdep.c: Likewise.
3127 * vaxnbsd-tdep.c: Likewise.
3128 * vaxobsd-tdep.c: Likewise.
3129 * windows-nat.c: Likewise.
3130 * xcoffread.c: Likewise.
3131 * xml-support.c: Likewise.
3132 * xstormy16-tdep.c: Likewise.
3133 * xtensa-linux-nat.c: Likewise.
3135 2014-08-07 Gary Benson <gbenson@redhat.com>
3137 * common/common-defs.h: Include gdb_assert.h.
3138 * aarch64-tdep.c: Do not include gdb_assert.h.
3139 * addrmap.c: Likewise.
3140 * aix-thread.c: Likewise.
3141 * alpha-linux-tdep.c: Likewise.
3142 * alpha-mdebug-tdep.c: Likewise.
3143 * alphanbsd-tdep.c: Likewise.
3144 * amd64-nat.c: Likewise.
3145 * amd64-tdep.c: Likewise.
3146 * amd64bsd-nat.c: Likewise.
3147 * amd64fbsd-nat.c: Likewise.
3148 * amd64fbsd-tdep.c: Likewise.
3149 * amd64nbsd-nat.c: Likewise.
3150 * amd64nbsd-tdep.c: Likewise.
3151 * amd64obsd-nat.c: Likewise.
3152 * amd64obsd-tdep.c: Likewise.
3153 * arch-utils.c: Likewise.
3154 * arm-tdep.c: Likewise.
3155 * armbsd-tdep.c: Likewise.
3157 * bcache.c: Likewise.
3158 * bfin-tdep.c: Likewise.
3159 * blockframe.c: Likewise.
3160 * breakpoint.c: Likewise.
3161 * bsd-kvm.c: Likewise.
3162 * bsd-uthread.c: Likewise.
3163 * buildsym.c: Likewise.
3164 * c-exp.y: Likewise.
3165 * c-lang.c: Likewise.
3166 * charset.c: Likewise.
3167 * cleanups.c: Likewise.
3168 * cli-out.c: Likewise.
3169 * cli/cli-decode.c: Likewise.
3170 * cli/cli-dump.c: Likewise.
3171 * cli/cli-logging.c: Likewise.
3172 * cli/cli-script.c: Likewise.
3173 * cli/cli-utils.c: Likewise.
3174 * coffread.c: Likewise.
3175 * common/common-utils.c: Likewise.
3176 * common/queue.h: Likewise.
3177 * common/signals.c: Likewise.
3178 * common/vec.h: Likewise.
3179 * complaints.c: Likewise.
3180 * completer.c: Likewise.
3181 * corelow.c: Likewise.
3182 * cp-abi.c: Likewise.
3183 * cp-name-parser.y: Likewise.
3184 * cp-namespace.c: Likewise.
3185 * cp-support.c: Likewise.
3186 * cris-tdep.c: Likewise.
3187 * dbxread.c: Likewise.
3188 * dictionary.c: Likewise.
3189 * doublest.c: Likewise.
3190 * dsrec.c: Likewise.
3191 * dummy-frame.c: Likewise.
3192 * dwarf2-frame-tailcall.c: Likewise.
3193 * dwarf2-frame.c: Likewise.
3194 * dwarf2expr.c: Likewise.
3195 * dwarf2loc.c: Likewise.
3196 * dwarf2read.c: Likewise.
3198 * event-loop.c: Likewise.
3199 * exceptions.c: Likewise.
3200 * expprint.c: Likewise.
3201 * f-valprint.c: Likewise.
3202 * fbsd-nat.c: Likewise.
3203 * findvar.c: Likewise.
3204 * frame-unwind.c: Likewise.
3205 * frame.c: Likewise.
3206 * frv-tdep.c: Likewise.
3207 * gcore.c: Likewise.
3208 * gdb-dlfcn.c: Likewise.
3209 * gdb_bfd.c: Likewise.
3210 * gdbarch.c: Likewise.
3211 * gdbarch.sh: Likewise.
3212 * gdbtypes.c: Likewise.
3213 * gnu-nat.c: Likewise.
3214 * gnu-v3-abi.c: Likewise.
3215 * go-lang.c: Likewise.
3216 * guile/scm-exception.c: Likewise.
3217 * guile/scm-gsmob.c: Likewise.
3218 * guile/scm-lazy-string.c: Likewise.
3219 * guile/scm-math.c: Likewise.
3220 * guile/scm-pretty-print.c: Likewise.
3221 * guile/scm-safe-call.c: Likewise.
3222 * guile/scm-utils.c: Likewise.
3223 * guile/scm-value.c: Likewise.
3224 * h8300-tdep.c: Likewise.
3225 * hppa-hpux-nat.c: Likewise.
3226 * hppa-tdep.c: Likewise.
3227 * hppanbsd-tdep.c: Likewise.
3228 * hppaobsd-tdep.c: Likewise.
3229 * i386-darwin-nat.c: Likewise.
3230 * i386-darwin-tdep.c: Likewise.
3231 * i386-nto-tdep.c: Likewise.
3232 * i386-tdep.c: Likewise.
3233 * i386bsd-nat.c: Likewise.
3234 * i386fbsd-tdep.c: Likewise.
3235 * i386gnu-nat.c: Likewise.
3236 * i386nbsd-tdep.c: Likewise.
3237 * i386obsd-tdep.c: Likewise.
3238 * i387-tdep.c: Likewise.
3239 * ia64-libunwind-tdep.c: Likewise.
3240 * ia64-tdep.c: Likewise.
3241 * inf-ptrace.c: Likewise.
3242 * inf-ttrace.c: Likewise.
3243 * infcall.c: Likewise.
3244 * infcmd.c: Likewise.
3245 * infrun.c: Likewise.
3246 * inline-frame.c: Likewise.
3247 * interps.c: Likewise.
3248 * jv-lang.c: Likewise.
3249 * jv-typeprint.c: Likewise.
3250 * linux-fork.c: Likewise.
3251 * linux-nat.c: Likewise.
3252 * linux-thread-db.c: Likewise.
3253 * m32c-tdep.c: Likewise.
3254 * m32r-linux-nat.c: Likewise.
3255 * m32r-tdep.c: Likewise.
3256 * m68k-tdep.c: Likewise.
3257 * m68kbsd-nat.c: Likewise.
3258 * m68kbsd-tdep.c: Likewise.
3259 * m88k-tdep.c: Likewise.
3260 * machoread.c: Likewise.
3261 * macroexp.c: Likewise.
3262 * macrotab.c: Likewise.
3263 * maint.c: Likewise.
3264 * mdebugread.c: Likewise.
3265 * memory-map.c: Likewise.
3266 * mep-tdep.c: Likewise.
3267 * mi/mi-common.c: Likewise.
3268 * microblaze-tdep.c: Likewise.
3269 * mingw-hdep.c: Likewise.
3270 * mips-linux-nat.c: Likewise.
3271 * mips-linux-tdep.c: Likewise.
3272 * mips-tdep.c: Likewise.
3273 * mips64obsd-tdep.c: Likewise.
3274 * mipsnbsd-tdep.c: Likewise.
3275 * mn10300-linux-tdep.c: Likewise.
3276 * mn10300-tdep.c: Likewise.
3277 * moxie-tdep.c: Likewise.
3278 * mt-tdep.c: Likewise.
3279 * nat/linux-btrace.c: Likewise.
3280 * nat/linux-osdata.c: Likewise.
3281 * nat/linux-ptrace.c: Likewise.
3282 * nat/mips-linux-watch.c: Likewise.
3283 * nios2-linux-tdep.c: Likewise.
3284 * nios2-tdep.c: Likewise.
3285 * objc-lang.c: Likewise.
3286 * objfiles.c: Likewise.
3287 * obsd-nat.c: Likewise.
3288 * opencl-lang.c: Likewise.
3289 * osabi.c: Likewise.
3290 * parse.c: Likewise.
3291 * ppc-linux-nat.c: Likewise.
3292 * ppc-sysv-tdep.c: Likewise.
3293 * ppcfbsd-nat.c: Likewise.
3294 * ppcfbsd-tdep.c: Likewise.
3295 * ppcnbsd-nat.c: Likewise.
3296 * ppcnbsd-tdep.c: Likewise.
3297 * ppcobsd-nat.c: Likewise.
3298 * ppcobsd-tdep.c: Likewise.
3299 * printcmd.c: Likewise.
3300 * procfs.c: Likewise.
3301 * prologue-value.c: Likewise.
3302 * psymtab.c: Likewise.
3303 * python/py-lazy-string.c: Likewise.
3304 * python/py-value.c: Likewise.
3305 * regcache.c: Likewise.
3306 * reggroups.c: Likewise.
3307 * registry.c: Likewise.
3308 * remote-sim.c: Likewise.
3309 * remote.c: Likewise.
3310 * rs6000-aix-tdep.c: Likewise.
3311 * rs6000-tdep.c: Likewise.
3312 * s390-linux-tdep.c: Likewise.
3313 * score-tdep.c: Likewise.
3314 * ser-base.c: Likewise.
3315 * ser-mingw.c: Likewise.
3316 * sh-tdep.c: Likewise.
3317 * sh64-tdep.c: Likewise.
3318 * solib-darwin.c: Likewise.
3319 * solib-spu.c: Likewise.
3320 * solib-svr4.c: Likewise.
3321 * source.c: Likewise.
3322 * sparc-nat.c: Likewise.
3323 * sparc-sol2-tdep.c: Likewise.
3324 * sparc-tdep.c: Likewise.
3325 * sparc64-sol2-tdep.c: Likewise.
3326 * sparc64-tdep.c: Likewise.
3327 * sparc64fbsd-tdep.c: Likewise.
3328 * sparc64nbsd-tdep.c: Likewise.
3329 * sparc64obsd-tdep.c: Likewise.
3330 * sparcnbsd-tdep.c: Likewise.
3331 * sparcobsd-tdep.c: Likewise.
3332 * spu-multiarch.c: Likewise.
3333 * spu-tdep.c: Likewise.
3334 * stabsread.c: Likewise.
3335 * stack.c: Likewise.
3336 * symfile.c: Likewise.
3337 * symtab.c: Likewise.
3338 * target-descriptions.c: Likewise.
3339 * target-memory.c: Likewise.
3340 * target.c: Likewise.
3341 * tic6x-linux-tdep.c: Likewise.
3342 * tic6x-tdep.c: Likewise.
3343 * tilegx-linux-nat.c: Likewise.
3344 * tilegx-tdep.c: Likewise.
3346 * tramp-frame.c: Likewise.
3347 * tui/tui-out.c: Likewise.
3348 * tui/tui-winsource.c: Likewise.
3349 * ui-out.c: Likewise.
3350 * user-regs.c: Likewise.
3351 * utils.c: Likewise.
3352 * v850-tdep.c: Likewise.
3353 * valops.c: Likewise.
3354 * value.c: Likewise.
3355 * varobj.c: Likewise.
3356 * vax-nat.c: Likewise.
3357 * xml-syscall.c: Likewise.
3358 * xml-tdesc.c: Likewise.
3359 * xstormy16-tdep.c: Likewise.
3360 * xtensa-linux-nat.c: Likewise.
3361 * xtensa-tdep.c: Likewise.
3363 2014-08-07 Gary Benson <gbenson@redhat.com>
3365 * common/common-defs.h: Include common-utils.h.
3366 * defs.h: Do not include common-utils.h.
3367 * common/gdb_assert.h: Likewise.
3368 * darwin-nat.h: Likewise.
3369 * nat/linux-btrace.c: Likewise.
3370 * target/waitstatus.h: Likewise.
3372 2014-08-07 Gary Benson <gbenson@redhat.com>
3374 * common/common-defs.h: Include ptid.h.
3375 * defs.h: Do not include ptid.h.
3376 * inferior.h: Likewise.
3377 * infrun.h: Likewise.
3378 * nat/linux-btrace.h: Likewise.
3379 * nat/linux-osdata.h: Likewise.
3380 * target/waitstatus.h: Likewise.
3382 2014-08-07 Gary Benson <gbenson@redhat.com>
3384 * common/common-defs.h: Include gdb_locale.h.
3385 * defs.h: Do not include gdb_locale.h.
3387 2014-08-07 Gary Benson <gbenson@redhat.com>
3389 * common/common-defs.h: Include gdb/signals.h.
3390 * defs.h: Do not include gdb/signals.h.
3392 2014-08-07 Gary Benson <gbenson@redhat.com>
3394 * common/common-defs.h: Include pathmax.h.
3395 * defs.h: Do not include pathmax.h.
3397 2014-08-07 Gary Benson <gbenson@redhat.com>
3399 * common/common-defs.h: Include libiberty.h.
3400 * defs.h: Do not include libiberty.h.
3401 * common/queue.h: Likewise.
3402 * cp-name-parser.y: Likewise.
3403 * mi/mi-cmd-catch.c: Likewise.
3404 * python/python.c: Likewise.
3406 2014-08-07 Gary Benson <gbenson@redhat.com>
3408 * common/common-defs.h: Include ansidecl.h.
3409 * defs.h: Do not include ansidecl.h.
3410 * common/buffer.h: Likewise.
3411 * common/common-utils.h: Likewise.
3413 2014-08-07 Gary Benson <gbenson@redhat.com>
3415 * common/common-defs.h: Include stddef.h.
3416 * defs.h: Do not include stddef.h.
3417 * common/common-utils.h: Likewise.
3418 * amd64fbsd-nat.c: Likewise.
3419 * bcache.c: Likewise.
3420 * charset.c: Likewise.
3421 * common/buffer.h: Likewise.
3422 * common/vec.h: Likewise.
3423 * i386bsd-nat.c: Likewise.
3424 * nat/linux-btrace.h: Likewise.
3425 * ppcfbsd-nat.c: Likewise.
3426 * ppcnbsd-tdep.h: Likewise.
3427 * ppcobsd-nat.c: Likewise.
3428 * ppcobsd-tdep.h: Likewise.
3429 * python/py-gdb-readline.c: Likewise.
3431 2014-08-07 Gary Benson <gbenson@redhat.com>
3433 * common/common-defs.h: Include stdarg.h.
3434 * defs.h: Do not include stdarg.h.
3435 * ada-lang.c: Likewise.
3436 * common/common-utils.h: Likewise.
3437 * guile/scm-string.c: Likewise.
3438 * guile/scm-utils.c: Likewise.
3439 * m32c-tdep.c: Likewise.
3441 2014-08-07 Gary Benson <gbenson@redhat.com>
3443 * common/common-defs.h: Include stdlib.h.
3444 * defs.h: Do not include stdlib.h.
3445 * addrmap.c: Likewise.
3446 * bcache.c: Likewise.
3447 * common/buffer.c: Likewise.
3448 * common/common-utils.c: Likewise.
3449 * cp-name-parser.y: Likewise.
3450 * go32-nat.c: Likewise.
3451 * mn10300-linux-tdep.c: Likewise.
3452 * nat/linux-osdata.c: Likewise.
3453 * tui/tui.c: Likewise.
3454 * windows-nat.c: Likewise.
3456 2014-08-07 Gary Benson <gbenson@redhat.com>
3458 * common/common-defs.h: Include stdio.h.
3459 * defs.h: Do not include stdio.h.
3460 * ada-lang.c: Likewise.
3461 * common/buffer.c: Likewise.
3462 * common/common-utils.c: Likewise.
3463 * cp-name-parser.y: Likewise.
3464 * gnu-nat.c: Likewise.
3465 * go32-nat.c: Likewise.
3466 * i386gnu-nat.c: Likewise.
3467 * proc-api.c: Likewise.
3468 * proc-events.c: Likewise.
3469 * proc-flags.c: Likewise.
3470 * proc-why.c: Likewise.
3471 * python/python-internal.h: Likewise.
3472 * target-memory.c: Likewise.
3473 * tui/tui-io.c: Likewise.
3474 * tui/tui.c: Likewise.
3476 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3478 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3479 (scan_dyntag_auxv): Same.
3481 2014-08-06 Yao Qi <yao@codesourcery.com>
3483 * amd64-linux-nat.c: Remove duplicated include
3485 * i386-linux-nat.c: Likewise.
3487 2014-08-06 Yao Qi <yao@codesourcery.com>
3489 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3490 operand" with "Special opcode" in comments.
3492 2014-08-05 Gary Benson <gbenson@redhat.com>
3494 * interps.c (initialize_interps): Remove prototype.
3495 (interpreter_initialized): Remove static global.
3496 (interp_add): Do not call initialize_interps.
3497 (initialize_interps): Remove function.
3499 2014-08-05 Gary Benson <gbenson@redhat.com>
3501 * utils.c (vwarning): Remove spurious va_end.
3503 2014-08-05 Alan Modra <amodra@gmail.com>
3505 * charset.c (convert_between_encodings): Cast result of obstack_base.
3506 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3507 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3508 (read_unwind_info): Use size_t for some locals.
3509 * jit.c (finalize_symtab): Likewise.
3510 * utils.c (hashtab_obstack_allocate): Likewise.
3511 * symmisc.c (print_objfile_statistics): Update format strings.
3513 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3515 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3516 (Changes in GDB 7.8): ... here.
3518 2014-08-04 Tom Tromey <tromey@redhat.com>
3520 * target.c (set_targetdebug): New function.
3521 (initialize_targets): Pass set_targetdebug when creating "set
3524 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3526 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3527 if detecting a variable-sized field that is not the last field.
3528 Fix struct type length computation.
3530 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3532 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3535 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3537 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3538 Remove "+ 8" offset in computation of CHAIN_VMA.
3540 2014-07-31 Doug Evans <dje@google.com>
3542 * inflow.c (child_terminal_inferior): Add comment.
3543 (child_terminal_ours_for_output): Add comment.
3544 (child_terminal_ours): Add comment.
3545 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3546 (linux_nat_terminal_ours): Add comment.
3548 2014-07-31 Gary Benson <gbenson@redhat.com>
3550 * common/btrace-common.h: Do not include defs.h or server.h.
3551 * nat/mips-linux-watch.h: Likewise.
3552 * gdb-dlfcn.h: Do not include defs.h.
3553 * tracefile.h: Likewise.
3555 2014-07-30 Roland McGrath <mcgrathr@google.com>
3557 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3559 2014-07-30 Tom Tromey <tromey@redhat.com>
3561 * bsd-kvm.c (bsd_kvm_open): Constify.
3562 * corelow.c (core_open): Constify.
3563 * ctf.c (ctf_open): Constify.
3564 * dbug-rom.c (dbug_open): Constify.
3565 * exec.c (exec_open): Constify.
3566 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3567 * microblaze-rom.c (picobug_open): Constify.
3568 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3570 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3571 * record-btrace.c (record_btrace_open): Constify.
3572 * record-full.c (record_full_core_open_1, record_full_open_1)
3573 (record_full_open): Constify.
3574 * remote-m32r-sdi.c (m32r_open): Constify.
3575 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3576 (rockhopper_open, lsi_open): Constify.
3577 * remote-sim.c (gdbsim_open): Constify.
3578 * remote.c (remote_open, extended_remote_open, remote_open_1):
3580 * target.h (struct target_ops) <to_open>: Make "arg" const.
3581 * tracefile-tfile.c (tfile_open): Constify.
3583 2014-07-30 Tom Tromey <tromey@redhat.com>
3585 * breakpoint.c (map_breakpoint_numbers): Update.
3586 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3587 (get_number_const): New function.
3588 (get_number): Rewrite using get_number_const.
3589 (init_number_or_range): Make "string" const.
3590 (number_is_in_list): Make "list" const.
3591 * cli/cli-utils.h (get_number_const): Declare.
3592 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3593 (init_number_or_range, number_is_in_list): Update.
3594 * printcmd.c (map_display_numbers): Update.
3595 * value.c (value_from_history_ref): Constify.
3596 * value.h (value_from_history_ref): Update.
3598 2014-07-30 Tom Tromey <tromey@redhat.com>
3600 * corefile.c (hook_type, call_extra_exec_file_hooks)
3601 (specify_exec_file_hook): Constify.
3602 * exec.c (exec_file_attach): Make "filename" const.
3603 * gdbcore.h (deprecated_exec_file_display_hook)
3604 (specify_exec_file_hook, exec_file_attach): Constify.
3605 * main.c (captured_main): Use catch_command_errors_const.
3607 2014-07-30 Tom Tromey <tromey@redhat.com>
3609 * target.c (open_target): New function.
3610 (add_target_with_completer, add_deprecated_target_alias): Use
3611 set_cmd_sfunc, set_cmd_context.
3612 (debug_to_open): Remove.
3613 (setup_target_debug): Update.
3615 2014-07-30 Yao Qi <yao@codesourcery.com>
3617 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3619 * parse.c (exp_iterate): Update comments.
3621 2014-07-30 Gary Benson <gbenson@redhat.com>
3623 * common/common-defs.h: New file.
3624 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3625 * defs.h: Include common-defs.h.
3626 Do not include config.h or build-gnulib/config.h.
3628 2014-07-30 Gary Benson <gbenson@redhat.com>
3630 * common/common-utils.h: Do not include config.h.
3631 * nat/linux-btrace.h: Likewise.
3633 2014-07-30 Gary Benson <gbenson@redhat.com>
3635 * btrace.c: Include defs.h.
3636 * common/ptid.c: Include defs.h or server.h as appropriate.
3637 * nat/mips-linux-watch.c: Likewise.
3639 2014-07-29 Tom Tromey <tromey@redhat.com>
3641 * target.c (target_is_pushed): Simplify.
3643 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3647 2014-07-29 Yao Qi <yao@codesourcery.com>
3650 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3652 2014-07-28 Doug Evans <xdje42@gmail.com>
3655 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3656 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3659 2014-07-28 Will Newton <will.newton@linaro.org>
3661 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3662 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3663 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3664 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3665 (THUMB2_EABI_SYSCALL): Likewise.
3666 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3668 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3669 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3671 2014-07-27 Doug Evans <xdje42@gmail.com>
3673 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3675 2014-07-27 Doug Evans <xdje42@gmail.com>
3677 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3679 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3680 Doug Evans <xdje42@gmail.com>
3683 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3684 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3685 * configure.ac: Try to use guild to compile an scm file, if it fails
3686 then disable guile support.
3687 * configure: Regenerate.
3688 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3690 (GUILE_COMPILED_FILES): New variable.
3691 (GUILE_FILES) Update.
3692 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3693 (stamp-guile): Compile scm files.
3694 * guile/guile.c (boot_guile_support): New function.
3695 (standard_throw_args_p): New function.
3696 (print_standard_throw_error, print_throw_error): New functions.
3697 (handle_boot_error): New function.
3698 (initialize_scheme_side): Rewrite to call boot_guile_support.
3699 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3700 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3702 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3703 Doug Evans <xdje42@gmail.com>
3706 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3707 * guile/lib/gdb/support.scm: New file.
3708 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3709 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3711 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3713 (%assert-type): Ditto, and renamed to assert-type.
3714 (%exception-print-style): Delete.
3716 2014-07-26 Doug Evans <xdje42@gmail.com>
3719 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3720 * configure: Regenerate.
3721 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3723 (PYTHON_FILES): New variable.
3724 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3725 (GUILE_FILES): New variable.
3726 (stamp-python, install-python, uninstall-python): Handle empty
3728 (stamp-guile, install-guile, uninstall-guile): Ditto.
3730 2014-07-26 Doug Evans <xdje42@gmail.com>
3733 * guile/lib/gdb.scm (pretty-printers): Export.
3734 (set-pretty-printers!): Export.
3735 * guile/lib/gdb/printing.scm (gdb module): Update.
3736 (prepend-pretty-printer!, append-pretty-printer!): Update.
3737 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3738 (pretty_printer_list_var): Delete.
3739 (pretty_printer_list): New static global.
3740 (gdbscm_pretty_printers): New function.
3741 (gdbscm_set_pretty_printers_x): New function.
3742 (ppscm_find_pretty_printer_from_gdb): Update.
3743 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3744 (gdbscm_initialize_pretty_printers): Update.
3746 2014-07-26 Doug Evans <xdje42@gmail.com>
3749 * configure.ac: Add check for header gc/gc.h.
3750 Add check for function setenv.
3751 * configure: Regenerate.
3752 * config.in: Regenerate.
3753 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3755 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3757 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3758 variation in gdbarch matching.
3760 2014-07-25 Tom Tromey <tromey@redhat.com>
3762 * exec.c (using_exec_ops): Remove.
3763 (exec_close_1): Update. Remove extraneous block, reindent.
3764 (add_target_sections): Use target_is_pushed.
3766 2014-07-25 Pedro Alves <palves@redhat.com>
3768 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3769 * monitor.c (monitor_create_inferior): Likewise.
3770 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3771 * remote-sim.c (gdbsim_create_inferior): Likewise.
3772 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3773 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3774 * windows-nat.c (do_initial_windows_stuff): Likewise.
3776 2014-07-25 Pedro Alves <palves@redhat.com>
3778 * NEWS: Mention signal passing and "signal" command changes.
3779 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3781 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3783 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3784 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3785 (jump_command): Adjust clear_proceed_status call.
3786 (signal_command): Warn if other thread that are resumed have
3787 signals that will be delivered. Adjust clear_proceed_status call.
3788 (until_next_command, finish_command)
3789 (proceed_after_attach_callback, attach_command_post_wait)
3790 (attach_command): Adjust clear_proceed_status call.
3791 * infrun.c (proceed_after_vfork_done): Likewise.
3792 (proceed_after_attach_callback): Adjust comment.
3793 (clear_proceed_status_thread): Clear stop_signal if not in pass
3795 (clear_proceed_status_callback): Delete.
3796 (clear_proceed_status): New 'step' parameter. Only clear the
3797 proceed status of threads the command being prepared is about to
3799 (proceed): If passed in an explicit signal, override stop_signal
3800 with it. Don't pass the last stop signal to the thread we're
3802 (init_wait_for_inferior): Adjust clear_proceed_status call.
3803 (switch_back_to_stepped_thread): Clear the signal if it should not
3805 * infrun.h (clear_proceed_status): New 'step' parameter.
3806 (user_visible_resume_ptid): Add comment.
3807 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3808 signal is in pass state.
3809 * remote.c (append_pending_thread_resumptions): Likewise.
3810 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3812 2014-07-25 Tom Tromey <tromey@redhat.com>
3814 * target.h (target_stopped_data_address)
3815 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3818 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3820 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3822 (avr_pointer_to_address): Likewise.
3824 2014-07-24 Tom Tromey <tromey@redhat.com>
3826 * monitor.c (compile_pattern): Update.
3827 * target.h (struct target_ops) <to_shortname, to_longname,
3830 2014-07-24 Tom Tromey <tromey@redhat.com>
3832 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3833 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3834 (add_info_alias, add_com): Make "doc" const.
3835 (print_doc_line): Make "str" const.
3836 (delete_cmd): Update.
3837 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3838 (print_doc_line): Update.
3839 * cli/cli-script.c (document_command): Update.
3840 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3841 (add_com, add_info, add_info_alias): Update.
3842 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3843 * python/py-cmd.c (cmdpy_destroyer): Update.
3845 2014-07-24 Tom Tromey <tromey@redhat.com>
3847 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3848 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3849 (help_cmd_list): Constify.
3850 (lookup_cmd): Update.
3851 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3853 (help_cmd_list, apropos_cmd): Update.
3854 * cli/cli-script.c (show_user): Update.
3855 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3856 * cli/cli-setshow.h (cmd_show_list): Update.
3857 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3858 (cmd_show_list): Update.
3859 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3860 * python/py-cmd.c (cmdpy_destroyer): Update.
3862 2014-07-24 Tom Tromey <tromey@redhat.com>
3864 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3865 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3867 * command.h (deprecate_cmd): Update.
3868 * maint.c (maintenance_do_deprecate): Add casts.
3870 2014-07-24 Tom Tromey <tromey@redhat.com>
3872 * cli/cli-decode.c (help_cmd): Make parameter "const".
3873 * cli/cli-decode.h (help_cmd): Update.
3875 2014-07-24 Tom Tromey <tromey@redhat.com>
3877 * stack.c (up_silently_base, down_silently_base): Make argument
3880 2014-07-24 Tom Tromey <tromey@redhat.com>
3882 * solib.c (solib_add): Make "pattern" const.
3883 * solib.h (solib_add): Update.
3885 2014-07-24 Tom Tromey <tromey@redhat.com>
3887 * remote.c (remote_serial_open, print_packet, putpkt)
3888 (putpkt_binary): Constify.
3889 * remote.h (putpkt): Update.
3891 2014-07-24 Tom Tromey <tromey@redhat.com>
3893 * monitor.c (monitor_open): Make "args" const.
3894 * monitor.h (monitor_open): Update.
3896 2014-07-24 Tom Tromey <tromey@redhat.com>
3898 * maint.c (match_bfd_flags): Make "string" const.
3899 (print_bfd_section_info): Remove casts.
3900 (print_objfile_section_info): Make "string" const.
3902 2014-07-24 Tom Tromey <tromey@redhat.com>
3904 * inf-child.c (inf_child_open_target): Make "arg" const.
3905 * inf-child.h (inf_child_open_target): Update.
3907 2014-07-24 Tom Tromey <tromey@redhat.com>
3909 * environ.c (unset_in_environ): Make "var" const.
3910 * environ.h (unset_in_environ): Update.
3912 2014-07-24 Tom Tromey <tromey@redhat.com>
3914 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3916 (scan_filename_with_cleanup): Likewise.
3917 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3918 Make arguments const.
3919 (restore_command): Update.
3921 2014-07-24 Pedro Alves <palves@redhat.com>
3923 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3925 2014-07-24 Tom Tromey <tromey@redhat.com>
3926 Gary Benson <gbenson@redhat.com>
3928 * nat/linux-ptrace.c (additional_flags): New global.
3929 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3930 additional_flags; don't check GDBSERVER.
3931 (linux_ptrace_set_additional_flags): New function.
3932 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3934 * linux-nat.c (_initialize_linux_nat): Call
3935 linux_ptrace_set_additional_flags.
3937 2014-07-24 Tom Tromey <tromey@redhat.com>
3939 * make-target-delegates (munge_type, write_debugmethod): New
3941 (debug_names): New global.
3942 ($TARGET_DEBUG_PRINTER): New global.
3943 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3945 Write debug methods. Generate init_debug_target.
3946 * target-debug.h: New file.
3947 * target-delegates.c: Rebuild.
3948 * target.c: Include target-debug.h.
3949 (debug_target): Hoist definition.
3950 (target_kill, target_get_section_table, target_memory_map)
3951 (target_flash_erase, target_flash_done, target_detach)
3952 (target_disconnect, target_wait, target_resume)
3953 (target_pass_signals, target_program_signals, target_follow_fork)
3954 (target_mourn_inferior, target_search_memory)
3955 (target_thread_address_space, target_close)
3956 (target_find_new_threads, target_core_of_thread)
3957 (target_verify_memory, target_insert_mask_watchpoint)
3958 (target_remove_mask_watchpoint): Remove targetdebug code.
3959 (debug_to_post_attach, debug_to_prepare_to_store)
3960 (debug_to_files_info, debug_to_insert_breakpoint)
3961 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3962 (debug_to_region_ok_for_hw_watchpoint)
3963 (debug_to_can_accel_watchpoint_condition)
3964 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3965 (debug_to_watchpoint_addr_within_range)
3966 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3967 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3968 (debug_to_terminal_init, debug_to_terminal_inferior)
3969 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3970 (debug_to_terminal_save_ours, debug_to_terminal_info)
3971 (debug_to_load, debug_to_post_startup_inferior)
3972 (debug_to_insert_fork_catchpoint)
3973 (debug_to_remove_fork_catchpoint)
3974 (debug_to_insert_vfork_catchpoint)
3975 (debug_to_remove_vfork_catchpoint)
3976 (debug_to_insert_exec_catchpoint)
3977 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3978 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3979 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3980 (setup_target_debug): Call init_debug_target.
3981 * target.h (TARGET_DEBUG_PRINTER): New macro.
3982 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3983 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3985 2014-07-24 Gary Benson <gbenson@redhat.com>
3987 * exceptions.h (throw_vfatal): Renamed to...
3988 (throw_vquit): New declaration.
3989 (throw_quit): Likewise.
3990 * exceptions.c (throw_vfatal): Renamed to...
3991 (throw_vquit): New function.
3992 (throw_quit): Likewise.
3993 (throw_error): Call throw_verror rather than throw_it.
3994 * utils.h (vfatal): Removed.
3996 * utils.c (vfatal): Removed.
3998 (internal_verror): Replaced call to fatal with call to throw_quit.
3999 (quit): Replaced calls to fatal with calls to throw_quit.
4001 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4003 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4006 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4008 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4009 less than zero in conditional expression.
4011 2014-07-23 Tom Tromey <tromey@redhat.com>
4013 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4014 ($INTRO_PART): Don't match whitespace.
4015 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4017 ($METHOD): Add $METHOD_TRAILER.
4019 (scan_target_h): New sub.
4020 Change main loop not to collect state.
4021 * target-delegates.c: Rebuild.
4023 2014-07-23 Gary Benson <gbenson@redhat.com>
4025 * cp-support.c (gdb_demangle): Fix build on systems without
4028 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4030 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4031 for reference entry value target data value.
4033 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4035 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4036 value_available_contents_eq.
4038 2014-07-22 Pedro Alves <palves@redhat.com>
4040 * value.c (allocate_optimized_out_value): Don't mark value as
4043 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4045 * MAINTAINERS (Write After Approval): Update my email address.
4047 2014-07-20 Doug Evans <dje@google.com>
4050 * remote.c (putpkt_binary): Add text to error message.
4052 2014-07-20 Yao Qi <yao@codesourcery.com>
4054 * eval.c: Remove "Chill" from comments.
4055 * gdbtypes.h: Likewise.
4056 * symtab.h: Likewise.
4058 2014-07-20 Yao Qi <yao@codesourcery.com>
4060 * std-operator.def: Update comments to TERNOP_SLICE.
4062 2014-07-20 Yao Qi <yao@codesourcery.com>
4064 * std-operator.def: Remove BINOP_RANGE.
4065 * breakpoint.c (watchpoint_exp_is_const): Update.
4066 * expprint.c (dump_subexp_body_standard): Likewise.
4067 * eval.c (init_array_element): Remove dead code.
4068 (evaluate_subexp_standard): Likewise.
4070 2014-07-20 Yao Qi <yao@codesourcery.com>
4072 * std-operator.def: Remove BINOP_IN.
4073 * breakpoint.c (watchpoint_exp_is_const): Update.
4074 * eval.c (evaluate_subexp_standard): Likewise.
4075 * expprint.c (dump_subexp_body_standard): Likewise.
4077 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4079 * microblaze-tdep.c (microblaze_register_names): Add
4080 the rshr and rslr register names.
4081 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4082 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4083 Use of tdesc_numbered_register. Use of
4084 microblaze_register_g_packet_guesses. Use of
4085 tdesc_use_registers. Use of set_gdbarch_register_type.
4086 (microblaze_register_g_packet_guesses): New.
4087 * microblaze-tdep.h (microblaze_reg_num): Add
4088 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4089 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4090 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4091 * features/microblaze-core.xml: New file.
4092 * features/microblaze-stack-protect.xml: New file.
4093 * features/microblaze-with-stack-protect.c: New file.
4094 * features/microblaze-with-stack-protect.xml: New file.
4095 * features/microblaze.xml: New file.
4096 * features/microblaze.c: New file.
4097 * features/Makefile (microblaze-with-stack-protect): Add
4098 microblaze-with-stack-protect microblaze and microblaze-expedite.
4099 * regformats/microblaze-with-stack-protect.dat: New file.
4100 * regformats/microblaze.dat: New file.
4101 * doc/gdb.texinfo (MicroBlaze Features): Added.
4103 2014-07-18 Tom Tromey <tromey@redhat.com>
4105 * exec.c (exec_ops): Now static.
4106 * exec.h (exec_ops): Don't declare.
4108 2014-07-18 Tom Tromey <tromey@redhat.com>
4110 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4111 to find_target_beneath.
4112 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4113 find_target_beneath.
4114 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4116 2014-07-18 Tom Tromey <tromey@redhat.com>
4119 * utils.c (quit): Use target_supports_terminal_ours.
4120 * target.h (target_supports_terminal_ours): Declare.
4121 * target.c (target_supports_delete_record): Don't check
4122 to_delete_record against NULL.
4123 (target_supports_terminal_ours): New function.
4125 2014-07-18 Tom Tromey <tromey@redhat.com>
4128 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4129 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4130 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4131 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4132 * windows-nat.c (windows_xfer_partial): Always delegate.
4133 * record-btrace.c (record_btrace_xfer_partial): Simplify
4135 (record_btrace_fetch_registers, record_btrace_store_registers)
4136 (record_btrace_prepare_to_store, record_btrace_resume)
4137 (record_btrace_wait, record_btrace_find_new_threads)
4138 (record_btrace_thread_alive): Likewise.
4139 * procfs.c (procfs_xfer_partial): Always delegate.
4140 * corelow.c (core_xfer_partial): Always delegate.
4141 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4143 2014-07-18 Tom Tromey <tromey@redhat.com>
4145 * exec.c (exec_make_note_section): Move earlier.
4147 2014-07-17 Doug Evans <dje@google.com>
4150 * maint.c (count_symtabs_and_blocks): Handle NULL
4151 current_program_space.
4152 (report_command_stats): Check global enabled flag in addition to
4153 recorded enabled flag.
4154 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4156 2014-07-16 Pedro Alves <palves@redhat.com>
4158 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4160 2014-07-16 Tom Tromey <tromey@redhat.com>
4162 * target.h (struct target_ops) <to_delete_record>: Reformat
4165 2014-07-16 Tom Tromey <tromey@redhat.com>
4167 * target-delegates.c: Rebuild.
4169 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4171 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4172 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4173 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4174 (avr_pointer_to_address): Likewise.
4175 (avr_address_class_type_flags): New function.
4176 (avr_address_class_type_flags_to_name): Likewise.
4177 (avr_address_class_name_to_type_flags): Likewise.
4178 (avr_gdbarch_init): Set address_class_type_flags,
4179 address_class_type_flags_to_name and
4180 address_class_name_to_type_flags.
4182 2014-07-15 Pedro Alves <palves@redhat.com>
4184 * linux-nat.c (kill_callback): Save errno and work with saved
4187 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4189 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4191 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4193 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4194 breakpoint support correctly.
4196 2014-07-14 Pedro Alves <palves@redhat.com>
4198 * utils.c (prompt_for_continue): Call target_terminal_ours.
4200 2014-07-14 Pedro Alves <palves@redhat.com>
4202 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4203 catch_errors. Don't re-enable stdin or notify observers where,
4205 (fetch_inferior_event_wrapper): Delete.
4207 2014-07-14 Pedro Alves <palves@redhat.com>
4210 * top.c: Include "inf-loop.h".
4211 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4213 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4215 (gdb_readline_wrapper): Store whether the target is async, and
4218 2014-07-14 Pedro Alves <palves@redhat.com>
4221 * top.c (gdb_readline_wrapper_line): Tweak comment.
4222 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4223 the input handler callback.
4225 2014-07-14 Pedro Alves <palves@redhat.com>
4228 * main.c: Include event-top.h.
4229 (handle_command_errors): New function.
4230 (catch_command_errors, catch_command_errors_const): Use it.
4232 2014-07-14 Pedro Alves <palves@redhat.com>
4234 * exceptions.c (catch_command_errors, catch_command_errors_const):
4236 * exceptions.h (catch_command_errors_ftype)
4237 (catch_command_errors_const_ftype): Moved to main.c.
4238 (catch_command_errors, catch_command_errors_const): Delete
4240 * main.c (catch_command_errors_ftype)
4241 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4242 (catch_command_errors, catch_command_errors_const)): Moved here
4243 from exceptions.c and make static.
4245 2014-07-14 Pedro Alves <palves@redhat.com>
4247 * exceptions.c (print_any_exception): Delete.
4248 (catch_exceptions_with_msg): Use exception_print instead of
4249 print_any_exception.
4250 (catch_errors): Use exception_fprintf instead of
4251 print_any_exception.
4252 (catch_command_errors, catch_command_errors_const): Use
4253 exception_print instead of print_any_exception.
4255 2014-07-14 Pedro Alves <palves@redhat.com>
4257 * infcall.c (run_inferior_call): Set 'sync_execution' while
4258 running the inferior call.
4260 2014-07-14 Pedro Alves <palves@redhat.com>
4262 * value.c (value_contents_equal): Delete function.
4263 * value.h (value_contents_equal): Delete declaration.
4265 2014-07-14 Tom Tromey <tromey@redhat.com>
4268 * gdbtypes.c (is_dynamic_type_internal): New function, from
4270 (is_dynamic_type): Rewrite.
4271 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4272 (resolve_dynamic_struct): Likewise.
4273 (resolve_dynamic_type_internal): New function, from
4274 resolve_dynamic_type.
4275 (resolve_dynamic_type): Rewrite.
4277 2014-07-14 Tom Tromey <tromey@redhat.com>
4279 * target.c (target_require_runnable): Also check record_stratum.
4282 2014-07-11 Yao Qi <yao@codesourcery.com>
4284 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4285 thumb_instruction_restores_sp return true.
4287 2014-07-11 Yao Qi <yao@codesourcery.com>
4289 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4290 (thumb_in_function_epilogue_p): Call
4291 thumb_instruction_restores_sp.
4293 2014-07-11 Yao Qi <yao@codesourcery.com>
4295 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4297 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4299 2014-07-11 Gary Benson <gbenson@redhat.com>
4301 * amd64-linux-nat.c (gdbcore.h): Remove include.
4302 (regset.h): Likewise.
4303 (nat/linux-btrace.h): Likewise.
4304 (btrace.h): Likewise.
4305 (gdb_assert.h): Likewise.
4306 (string.h): Likewise.
4307 (sys/uio.h): Likewise.
4308 (sys/debugreg.h): Likewise.
4309 (sys/syscall.h): Likewise.
4310 (sys/procfs.h): Likewise.
4311 (sys/user.h): Likewise.
4312 (asm/ptrace.h): Likewise.
4313 (i386-nat.h): Likewise.
4314 * i386-linux-nat.c (i386-nat.h): Likewise.
4315 (regset.h): Likewise.
4316 (target.h): Likewise.
4317 (linux-nat.h): Likewise.
4318 (nat/linux-btrace.h): Likewise.
4319 (btrace.h): Likewise.
4320 (gdb_assert.h): Likewise.
4321 (string.h): Likewise.
4322 (sys/uio.h): Likewise.
4323 (sys/user.h): Likewise.
4324 (sys/procfs.h): Likewise.
4325 (sys/reg.h): Likewise.
4326 (sys/debugreg.h): Likewise.
4327 (ORIG_EAX): Remove definition.
4329 2014-07-11 Gary Benson <gbenson@redhat.com>
4331 * i386-linux-nat.h: New file.
4332 * x86-linux-nat.h: Likewise.
4333 * x86-linux-nat.c: Likewise.
4334 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4335 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4336 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4337 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4338 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4339 (PTRACE_SETREGSET): Likewise.
4340 (arch_lwp_info): Now in x86-linux-nat.c.
4341 (have_ptrace_getregset): Now in x86-linux-nat.h.
4342 (x86_linux_dr_get): Now in x86-linux-nat.c.
4343 (x86_linux_dr_set): Likewise.
4344 (x86_linux_dr_get_addr): Likewise.
4345 (x86_linux_dr_get_control): Likewise.
4346 (x86_linux_dr_get_status): Likewise.
4347 (update_debug_registers_callback): Likewise.
4348 (x86_linux_dr_set_control): Likewise.
4349 (x86_linux_dr_set_addr): Likewise.
4350 (x86_linux_prepare_to_resume): Likewise.
4351 (x86_linux_new_thread): Likewise.
4352 (x86_linux_new_fork): Likewise.
4353 (x86_linux_get_thread_area): Likewise.
4354 (super_post_startup_inferior): Likewise.
4355 (x86_linux_child_post_startup_inferior): Likewise.
4356 (AMD64_LINUX_USER64_CS): Likewise.
4357 (AMD64_LINUX_X32_DS): Likewise.
4358 (x86_linux_read_description): Likewise.
4359 (x86_linux_enable_btrace): Likewise.
4360 (x86_linux_disable_btrace): Likewise.
4361 (x86_linux_teardown_btrace): Likewise.
4362 (x86_linux_read_btrace): Likewise.
4363 (x86_linux_create_target): Likewise.
4364 (x86_linux_add_target): Likewise.
4365 * i386-linux-nat.c (x86-linux-nat.h): New include.
4366 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4367 (PTRACE_SETREGSET): Likewise.
4368 (arch_lwp_info): Now in x86-linux-nat.c.
4369 (have_ptrace_getregset): Now in x86-linux-nat.h.
4370 (x86_linux_dr_get): Now in x86-linux-nat.c.
4371 (x86_linux_dr_set): Likewise.
4372 (x86_linux_dr_get_addr): Likewise.
4373 (x86_linux_dr_get_control): Likewise.
4374 (x86_linux_dr_get_status): Likewise.
4375 (update_debug_registers_callback): Likewise.
4376 (x86_linux_dr_set_control): Likewise.
4377 (x86_linux_dr_set_addr): Likewise.
4378 (x86_linux_prepare_to_resume): Likewise.
4379 (x86_linux_new_thread): Likewise.
4380 (x86_linux_new_fork): Likewise.
4381 (x86_linux_get_thread_area): Likewise.
4382 (super_post_startup_inferior): Likewise.
4383 (x86_linux_child_post_startup_inferior): Likewise.
4384 (AMD64_LINUX_USER64_CS): Likewise.
4385 (AMD64_LINUX_X32_DS): Likewise.
4386 (x86_linux_read_description): Likewise.
4387 (x86_linux_enable_btrace): Likewise.
4388 (x86_linux_disable_btrace): Likewise.
4389 (x86_linux_teardown_btrace): Likewise.
4390 (x86_linux_read_btrace): Likewise.
4391 (x86_linux_create_target): Likewise.
4392 (x86_linux_add_target): Likewise.
4394 2014-07-11 Gary Benson <gbenson@redhat.com>
4396 * amd64-linux-nat.c: Comment and whitespace changes.
4397 * i386-linux-nat.c: Comment and whitespace changes.
4399 2014-07-11 Gary Benson <gbenson@redhat.com>
4401 * amd64-linux-nat.c (x86_linux_create_target): New function.
4402 (x86_linux_add_target): Likewise.
4403 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4404 * i386-linux-nat.c (x86_linux_create_target): New function.
4405 (x86_linux_add_target): Likewise.
4406 (_initialize_i386_linux_nat): Delegate to the above new functions.
4408 2014-07-11 Gary Benson <gbenson@redhat.com>
4410 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4411 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4412 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4413 (ps_get_thread_area): Delegate to the above.
4415 2014-07-11 Gary Benson <gbenson@redhat.com>
4417 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4418 x86_linux_read_description. All uses updated. amd64-specific
4419 code conditionalized. Conditionalized i386-specific code added.
4420 Redundant cast removed.
4421 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4422 x86_linux_read_description. All uses updated. i386-specific
4423 code conditionalized. Conditionalized amd64-specific code added.
4424 One sizeof replaced with the actual type it is describing.
4426 2014-07-11 Gary Benson <gbenson@redhat.com>
4428 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4429 x86_linux_dr_get. All uses updated.
4430 (amd64_linux_dr_set): Renamed to
4431 x86_linux_dr_set. All uses updated.
4432 (amd64_linux_dr_get_addr): Renamed to
4433 x86_linux_dr_get_addr. All uses updated.
4434 (amd64_linux_dr_get_control): Renamed to
4435 x86_linux_dr_get_control. All uses updated.
4436 (amd64_linux_dr_get_status): Renamed to
4437 x86_linux_dr_get_status. All uses updated.
4438 (amd64_linux_dr_set_control): Renamed to
4439 x86_linux_dr_set_control. All uses updated.
4440 (amd64_linux_dr_set_addr): Renamed to
4441 x86_linux_dr_set_addr. All uses updated.
4442 (amd64_linux_prepare_to_resume): Renamed to
4443 x86_linux_prepare_to_resume. All uses updated.
4444 (amd64_linux_new_thread): Renamed to
4445 x86_linux_new_thread. All uses updated.
4446 (amd64_linux_new_fork): Renamed to
4447 x86_linux_new_fork. All uses updated.
4448 (amd64_linux_child_post_startup_inferior): Renamed to
4449 x86_linux_child_post_startup_inferior. All uses updated.
4450 (amd64_linux_enable_btrace): Renamed to
4451 x86_linux_enable_btrace. All uses updated.
4452 (amd64_linux_disable_btrace): Renamed to
4453 x86_linux_disable_btrace. All uses updated.
4454 (amd64_linux_teardown_btrace): Renamed to
4455 x86_linux_teardown_btrace. All uses updated.
4456 (amd64_linux_read_btrace): Renamed to
4457 x86_linux_read_btrace. All uses updated.
4458 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4459 x86_linux_dr_get. All uses updated.
4460 (i386_linux_dr_set): Renamed to
4461 x86_linux_dr_set. All uses updated.
4462 (i386_linux_dr_get_addr): Renamed to
4463 x86_linux_dr_get_addr. All uses updated.
4464 (i386_linux_dr_get_control): Renamed to
4465 x86_linux_dr_get_control. All uses updated.
4466 (i386_linux_dr_get_status): Renamed to
4467 x86_linux_dr_get_status. All uses updated.
4468 (i386_linux_dr_set_control): Renamed to
4469 x86_linux_dr_set_control. All uses updated.
4470 (i386_linux_dr_set_addr): Renamed to
4471 x86_linux_dr_set_addr. All uses updated.
4472 (i386_linux_prepare_to_resume): Renamed to
4473 x86_linux_prepare_to_resume. All uses updated.
4474 (i386_linux_new_thread): Renamed to
4475 x86_linux_new_thread. All uses updated.
4476 (i386_linux_new_fork): Renamed to
4477 x86_linux_new_fork. All uses updated.
4478 (i386_linux_child_post_startup_inferior): Renamed to
4479 x86_linux_child_post_startup_inferior. All uses updated.
4480 (i386_linux_enable_btrace): Renamed to
4481 x86_linux_enable_btrace. All uses updated.
4482 (i386_linux_disable_btrace): Renamed to
4483 x86_linux_disable_btrace. All uses updated.
4484 (i386_linux_teardown_btrace): Renamed to
4485 x86_linux_teardown_btrace. All uses updated.
4486 (i386_linux_read_btrace): Renamed to
4487 x86_linux_read_btrace. All uses updated.
4489 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4491 * remote.c (extended_remote_post_attach): New function.
4492 (init_extended_remote_ops): Install it as to_post_attach method.
4494 2014-07-09 Pedro Alves <palves@redhat.com>
4496 * infcmd.c (attach_command_post_wait): Don't call
4497 target_terminal_inferior here.
4498 (attach_command): Call it here instead.
4500 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4502 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4504 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4505 from varobj.c, with additional checks.
4506 (c_varobj_ops): Fill in is_path_expr_parent field.
4507 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4508 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4510 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4512 (varobj_default_is_path_expr_parent): New function.
4513 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4514 (varobj_default_is_path_expr_parent): Declare new function.
4516 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4518 * infcmd.c (finish_backward): Turn internal error into normal error.
4520 2014-07-07 Pedro Alves <palves@redhat.com>
4523 * remote.c (async_handle_remote_sigint)
4524 (async_handle_remote_sigint_twice): Call
4525 gdb_call_async_signal_handler instead of
4526 mark_async_signal_handler.
4528 2014-07-07 Tom Tromey <tromey@redhat.com>
4530 * target-delegates.c: Rebuild.
4531 * target.c (target_info_record): Remove.
4532 * record.c (info_record_command): Unconditionally call
4534 * target.h (struct target_ops) <to_info_record>: Use
4535 TARGET_DEFAULT_IGNORE.
4536 (target_info_record): Remove.
4538 2014-07-07 Tom Tromey <tromey@redhat.com>
4540 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4541 TARGET_DEFAULT_NORETURN.
4542 * target.c (generic_tls_error): New function.
4543 (target_translate_tls_address): Don't search target stack.
4544 * target-delegates.c: Rebuild.
4545 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4547 * linux-thread-db.c (thread_db_get_thread_local_address):
4548 Unconditionally call beneath target.
4550 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4552 * cli/cli-logging.c (pop_output_files): Assign targerr to
4555 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * MAINTAINERS (Write After Approval): Update my email address.
4559 2014-07-02 Gary Benson <gbenson@redhat.com>
4561 * proc-service.c (ps_xfer_memory): Update comment.
4562 (ps_pstop): Remove unused function.
4563 (ps_pcontinue): Likewise.
4564 (ps_lstop): Likewise.
4565 (ps_lcontinue): Likewise.
4566 (ps_lgetxregsize): Likewise.
4567 (ps_lgetxregs): Likewise.
4568 (ps_lsetxregs): Likewise.
4569 (ps_plog): Likewise.
4570 (ps_ptread): Likewise.
4571 (ps_ptwrite): Likewise.
4573 2014-07-01 Mark Wielaard <mjw@redhat.com>
4575 * dwarf2read.c (add_array_cv_type): New function.
4576 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4577 (read_tag_volatile_type): Likewise.
4579 2014-07-01 Tom Tromey <tromey@redhat.com>
4581 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4582 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4583 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4584 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4585 * command.h (cmd_cfunc_ftype): Move earlier.
4586 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4587 (add_com, add_info): Use cmd_cfunc_ftype.
4589 2014-06-30 Tom Tromey <tromey@redhat.com>
4591 * symtab.c (operator_chars): Make parameters and return type
4593 (file_matches): Make "files" const.
4594 (struct search_symbols_data) <files>: Now const.
4595 (search_symbols): Make "regexp" and "files" parameters const.
4597 (symtab_symbol_info): Remove cast.
4598 (rbreak_command): Update.
4599 * symtab.h (search_symbols): Update.
4601 2014-06-27 Yao Qi <yao@codesourcery.com>
4603 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4604 Change parameter type to 'struct thread_info *'. Caller
4606 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4608 * dummy-frame.c (struct dummy_frame_id): New.
4609 (dummy_frame_id_eq): New function.
4610 (struct dummy_frame) <id>: Change its type to 'struct
4612 (dummy_frame_push): Add parameter ptid and save it in
4614 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4616 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4618 (lookup_dummy_frame): Change parameter type to 'struct
4619 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4620 instead of frame_id_eq.
4621 (dummy_frame_pop): Add parameter ptid. Callers updated.
4622 Update comments. Compose dummy_frame_id and pass it to
4624 (dummy_frame_discard): Add parameter ptid.
4625 (dummy_frame_sniffer): Compose dummy_frame_id and call
4626 dummy_frame_id_eq instead of frame_id_eq.
4627 (fprint_dummy_frames): Print ptid.
4628 * dummy-frame.h: Remove comments.
4629 (dummy_frame_push): Add ptid in declaration.
4630 (dummy_frame_pop, dummy_frame_discard): Likewise.
4632 2014-06-26 Tom Tromey <tromey@redhat.com>
4634 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4635 * command.h (error_no_arg): Update.
4637 2014-06-26 Tom Tromey <tromey@redhat.com>
4639 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4640 (do_show_command): Make "arg" const.
4641 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4643 2014-06-26 Tom Tromey <tromey@redhat.com>
4645 * record-full.c (record_full_get_bookmark): Make "args" const.
4646 (record_full_goto_bookmark): Make "raw_bookmark" const.
4647 * record.c (record_goto): New function.
4648 (cmd_record_goto): Use it. Now static.
4649 * record.h (record_goto): Declare.
4650 (cmd_record_goto): Remove declaration.
4651 * target-delegates.c: Rebuild.
4652 * target.h (struct target_ops) <to_get_bookmark,
4653 to_goto_bookmark>: Make parameter const.
4655 2014-06-26 Tom Tromey <tromey@redhat.com>
4657 * defs.h (generic_load): Update.
4658 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4659 * monitor.c (monitor_load): Make "args" const.
4660 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4661 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4663 (mips_load): Make "file" const.
4664 * remote-sim.c (gdbsim_load): Make "args" const.
4665 * remote.c (remote_load): Make "name" const.
4666 * symfile.c (generic_load): Make "args" const.
4667 * target-delegates.c: Rebuild.
4668 * target.c (target_load): Make "arg" const.
4669 (debug_to_load): Make "args" const.
4670 * target.h (struct target_ops) <to_load>: Make parameter const.
4671 (target_load): Update.
4673 2014-06-26 Tom Tromey <tromey@redhat.com>
4676 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4677 (dwarf2_physname, read_partial_die)
4678 (guess_partial_die_structure_name, fixup_partial_die)
4679 (guess_full_die_structure_name, anonymous_struct_prefix)
4680 (dwarf2_name): Use per-BFD obstack.
4682 2014-06-26 Yao Qi <yao@codesourcery.com>
4684 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4685 dummyframe and this_id into inner block below.
4687 2014-06-26 Yao Qi <yao@codesourcery.com>
4689 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4690 with "signal_pass[0]" in the initialization of signal_pass.
4692 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4694 * record-btrace.c (record_btrace_generating_corefile)
4695 (record_btrace_prepare_to_generate_core)
4696 (record_btrace_done_generating_core): New.
4697 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4698 (record_btrace_store_registers, record_btrace_prepare_to_store):
4699 Forward request when generating a core file.
4700 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4701 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4702 to_done_generating_core.
4704 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4706 * target.h (target_ops) <to_prepare_to_generate_core>
4707 <to_done_generating_core>: New.
4708 (target_prepare_to_generate_core, target_done_generating_core): New.
4709 * target.c (target_prepare_to_generate_core)
4710 (target_done_generating_core): New.
4711 * target-delegates.c: Regenerate.
4712 * gcore.c: (write_gcore_file): Rename to ...
4713 (write_gcore_file_1): ...this.
4714 (write_gcore_file): Call target_prepare_to_generate_core
4715 and target_done_generating_core.
4717 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4719 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4720 * gcore.c (write_gcore_file): Free memory returned from
4721 make_corefile_notes.
4722 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4723 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4725 2014-06-24 Yao Qi <yao@codesourcery.com>
4727 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4728 (arm_linux_init_abi): Set skip_trampoline_code with
4729 gdbarch_skip_trampoline_code instead of
4730 find_solib_trampoline_target.
4732 2014-06-24 Yao Qi <yao@codesourcery.com>
4734 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4735 arm_skip_bx_reg returns non-zero.
4737 2014-06-24 Yao Qi <yao@codesourcery.com>
4739 * arm-tdep.c (arm_skip_bx_reg): New function.
4740 (arm_skip_stub): Call arm_skip_bx_reg.
4742 2014-06-23 Don Breazeal <donb@codesourcery.com>
4744 * MAINTAINERS: Add myself as write-after-approval maintainer.
4746 2014-06-23 Pedro Alves <palves@redhat.com>
4748 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4749 DR_CONTROL before setting DR0..DR3.
4750 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4751 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4752 bits of DR_CONTROL related to the debug register slot being
4753 disabled. If all slots are vacant, clear local slowdown as well,
4754 and assert DR_CONTROL is 0.
4756 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4758 * python/lib/gdb/command/xmethods.py
4759 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4760 current progspace only if the string "progspace" matches LOCUS_RE.
4762 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4764 Fix --with-system-readline with readline-6.3 patch 5.
4765 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4766 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4769 2014-06-20 Tom Tromey <tromey@redhat.com>
4771 * dwarf2read.c (dw2_get_real_path): Use correct type in
4773 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4775 2014-06-20 Gary Benson <gbenson@redhat.com>
4777 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4778 * common/glibc_thread_db.h: Likewise.
4779 * common/i386-cpuid.h: Likewise.
4780 * common/i386-gcc-cpuid.h: Likewise.
4781 * common/linux-btrace.h: Likewise.
4782 * common/linux-osdata.h: Likewise.
4783 * common/linux-procfs.h: Likewise.
4784 * common/linux-ptrace.h: Likewise.
4785 * common/mips-linux-watch.h: Likewise.
4786 * common/linux-btrace.c: Moved to nat.
4787 * common/linux-osdata.c: Likewise.
4788 * common/linux-procfs.c: Likewise.
4789 * common/linux-ptrace.c: Likewise.
4790 * common/mips-linux-watch.c: Likewise.
4791 * nat/gdb_thread_db.h: Moved from common.
4792 * nat/glibc_thread_db.h: Likewise.
4793 * nat/i386-cpuid.h: Likewise.
4794 * nat/i386-gcc-cpuid.h: Likewise.
4795 * nat/linux-btrace.c: Likewise.
4796 * nat/linux-btrace.h: Likewise.
4797 * nat/linux-osdata.c: Likewise.
4798 * nat/linux-osdata.h: Likewise.
4799 * nat/linux-procfs.c: Likewise.
4800 * nat/linux-procfs.h: Likewise.
4801 * nat/linux-ptrace.c: Likewise.
4802 * nat/linux-ptrace.h: Likewise.
4803 * nat/mips-linux-watch.c: Likewise.
4804 * nat/mips-linux-watch.h: Likewise.
4805 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4806 (object file files): Reordered.
4807 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4808 of glibc_thread_db.h.
4810 2014-06-20 Gary Benson <gbenson@redhat.com>
4812 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4813 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4814 (i386_dr_low): Likewise.
4815 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4816 (i386_dr_low_set_addr): Likewise.
4817 (i386_dr_low_get_addr): Likewise.
4818 (i386_dr_low_can_set_control): Likewise.
4819 (i386_dr_low_set_control): Likewise.
4820 (i386_dr_low_get_control): Likewise.
4821 (i386_dr_low_get_status): Likewise.
4822 (i386_get_debug_register_length): Likewise.
4823 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4824 (i386_dr_low): Likewise.
4825 * nat/i386-dregs.c (i386-low.h): Remove include.
4826 (i386-nat.h): Likewise.
4827 (nat/i386-dregs.h): New include.
4828 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4829 (i386_dr_low_set_addr): Likewise.
4830 (i386_dr_low_get_addr): Likewise.
4831 (i386_dr_low_can_set_control): Likewise.
4832 (i386_dr_low_set_control): Likewise.
4833 (i386_dr_low_get_control): Likewise.
4834 (i386_dr_low_get_status): Likewise.
4835 (i386_get_debug_register_length): Likewise.
4836 (debug_hw_points): Likewise.
4838 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4840 * Makefile.in (SFILES): Add d-exp.y.
4841 (YYFILES): Add d-exp.c.
4842 (YYOBJ): Add d-exp.o.
4843 (local-maintainer-clean): Delete d-exp.c.
4844 * d-exp.y: New file.
4845 * d-lang.h (d_parse): New declaration.
4846 (d_error): New declaration.
4847 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4848 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4849 PREC_ORDER operators.
4850 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4852 2014-06-19 Yao Qi <yao@codesourcery.com>
4854 * gdbthread.h (any_running): Remove the declaration.
4855 * thread.c (any_running): Remove.
4857 2014-06-19 Yao Qi <yao@codesourcery.com>
4859 * gdbthread.h (struct thread_info) <state>: Change its type to
4860 'enum thread_state'. Update comments.
4862 2014-06-19 Pedro Alves <palves@redhat.com>
4864 * gdbthread.h (ALL_THREADS): Delete.
4865 (ALL_NON_EXITED_THREADS): New macro.
4866 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4867 instead of ALL_THREADS.
4868 * infrun.c (find_thread_needs_step_over)
4869 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4870 instead of ALL_THREADS.
4871 * record-btrace.c (record_btrace_open)
4872 (record_btrace_stop_recording, record_btrace_close)
4873 (record_btrace_is_replaying, record_btrace_resume)
4874 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4875 * remote.c (append_pending_thread_resumptions): Likewise.
4876 * thread.c (thread_apply_all_command): Likewise.
4878 2014-06-19 Gary Benson <gbenson@redhat.com>
4880 * i386-nat.c (i386_stopped_by_watchpoint):
4881 Use i386_dr_stopped_by_watchpoint.
4882 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4883 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4885 2014-06-19 Gary Benson <gbenson@redhat.com>
4887 * nat/i386-dregs.c: New file.
4888 * Makefile.in (i386-dregs.o): New rule.
4889 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4890 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4891 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4892 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4893 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4894 * config/i386/go32.mh (NATDEPFILES): Likewise.
4895 * config/i386/linux.mh (NATDEPFILES): Likewise.
4896 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4897 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4898 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4899 * i386-nat.h (debug_hw_points): New declaration.
4900 * i386-nat.c (breakpoint.h): Remove include.
4901 (command.h): Likewise.
4902 (target.h): Likewise.
4903 (gdb_assert.h): Likewise.
4904 (debug_hw_points): Made nonstatic.
4905 (debug_printf): Now in i386-dregs.c.
4906 (TARGET_HAS_DR_LEN_8): Likewise.
4907 (DR_CONTROL_SHIFT): Likewise.
4908 (DR_CONTROL_SIZE): Likewise.
4909 (DR_RW_EXECUTE): Likewise.
4910 (DR_RW_WRITE): Likewise.
4911 (DR_RW_READ): Likewise.
4912 (DR_RW_IORW): Likewise.
4913 (DR_LEN_1): Likewise.
4914 (DR_LEN_2): Likewise.
4915 (DR_LEN_4): Likewise.
4916 (DR_LEN_8): Likewise.
4917 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4918 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4919 (DR_ENABLE_SIZE): Likewise.
4920 (DR_LOCAL_SLOWDOWN): Likewise.
4921 (DR_GLOBAL_SLOWDOWN): Likewise.
4922 (DR_CONTROL_RESERVED): Likewise.
4923 (I386_DR_CONTROL_MASK): Likewise.
4924 (I386_DR_VACANT): Likewise.
4925 (I386_DR_LOCAL_ENABLE): Likewise.
4926 (I386_DR_GLOBAL_ENABLE): Likewise.
4927 (I386_DR_DISABLE): Likewise.
4928 (I386_DR_SET_RW_LEN): Likewise.
4929 (I386_DR_GET_RW_LEN): Likewise.
4930 (I386_DR_WATCH_HIT): Likewise.
4931 (i386_wp_op_t): Likewise.
4932 (i386_show_dr): Likewise.
4933 (i386_length_and_rw_bits): Likewise.
4934 (i386_insert_aligned_watchpoint): Likewise.
4935 (i386_remove_aligned_watchpoint): Likewise.
4936 (i386_handle_nonaligned_watchpoint): Likewise.
4937 (i386_update_inferior_debug_regs): Likewise.
4938 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4939 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4940 (i386_region_ok_for_watchpoint):
4941 Use i386_dr_region_ok_for_watchpoint.
4942 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4944 2014-06-19 Gary Benson <gbenson@redhat.com>
4946 * i386-nat.c (i386_insert_hw_breakpoint): Use
4947 i386_insert_watchpoint.
4948 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4950 2014-06-19 Gary Benson <gbenson@redhat.com>
4952 * i386-nat.c (i386_dr_show): Renamed to
4953 i386_show_dr and made static. All uses updated.
4954 (i386_dr_length_and_rw_bits): Renamed to
4955 i386_length_and_rw_bits and made static.
4957 (i386_dr_insert_aligned_watchpoint): Renamed to
4958 i386_insert_aligned_watchpoint and made static.
4960 (i386_dr_remove_aligned_watchpoint): Renamed to
4961 i386_remove_aligned_watchpoint and made static.
4963 (i386_dr_update_inferior_debug_regs): Renamed to
4964 i386_update_inferior_debug_regs and made static.
4966 * nat/i386-dregs.h (i386_dr_show): Removed.
4967 (i386_dr_length_and_rw_bits): Likewise.
4968 (i386_dr_insert_aligned_watchpoint): Likewise.
4969 (i386_dr_remove_aligned_watchpoint): Likewise.
4970 (i386_dr_update_inferior_debug_regs): Likewise.
4972 2014-06-19 Gary Benson <gbenson@redhat.com>
4974 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4975 * configure: Regenerate.
4976 * config.in: Likewise.
4977 * main.c (signal.h): New include.
4978 (setup_alternate_signal_stack): New function.
4979 (captured_main): Call the above.
4980 * cp-support.c (signal.h): New include.
4981 (catch_demangler_crashes): New flag.
4982 (SIGJMP_BUF): New define.
4983 (SIGSETJMP): Likewise.
4984 (SIGLONGJMP): Likewise.
4985 (gdb_demangle_jmp_buf): New static global.
4986 (gdb_demangle_attempt_core_dump): Likewise.
4987 (gdb_demangle_signal_handler): New function.
4988 (gdb_demangle): If catch_demangler_crashes is set, install the
4989 above signal handler before calling bfd_demangle, and restore
4990 the original signal handler afterwards. Display the offending
4991 symbol and call demangler_warning the first time a segmentation
4993 (_initialize_cp_support): New maint set/show command.
4995 2014-06-19 Gary Benson <gbenson@redhat.com>
4997 * utils.h (resource_limit_kind): New enum.
4998 (can_dump_core): New declaration.
4999 (warn_cant_dump_core): Likewise.
5000 (dump_core): Likewise.
5001 * utils.c (dump_core): Made nonstatic. Added new
5002 parameter "limit_kind".
5003 (can_dump_core): Made nonstatic. Moved printing code to...
5004 (warn_cant_dump_core): New function.
5005 (can_dump_core_warn): Likewise.
5006 (internal_vproblem): Replace calls to can_dump_core with
5007 calls to can_dump_core_warn. Supply new argument to each.
5009 2014-06-19 Gary Benson <gbenson@redhat.com>
5011 * utils.h (demangler_vwarning): New declaration.
5012 (demangler_warning): Likewise.
5013 * utils.c (struct internal_problem)
5014 <user_settable_should_quit>: New field.
5015 <user_settable_should_dump_core>: Likewise
5016 (internal_error_problem): Add values for above new fields.
5017 (internal_warning_problem): Likewise.
5018 (demangler_warning_problem): New static global.
5019 (demangler_vwarning): New function.
5020 (demangler_warning): Likewise.
5021 (add_internal_problem_command): Selectively add commands.
5022 (_initialize_utils): New internal problem command.
5023 * maint.c (maintenance_demangler_warning): New function.
5024 (_initialize_maint_cmds): New command.
5026 2014-06-18 Tom Tromey <tromey@redhat.com>
5028 * f-valprint.c (info_common_command_for_block): Update.
5029 * symtab.h (struct general_symbol_info) <common_block>: Now
5032 2014-06-18 Tom Tromey <tromey@redhat.com>
5034 * symtab.h (struct symtab) <blockvector>: Now const.
5035 * ada-lang.c (ada_add_global_exceptions): Update.
5036 * buildsym.c (augment_type_symtab): Update.
5037 * dwarf2read.c (dw2_lookup_symbol): Update.
5038 * jit.c (finalize_symtab): Update.
5039 * jv-lang.c (add_class_symtab_symbol): Update.
5040 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5042 * objfiles.c (objfile_relocate1): Update.
5043 * psymtab.c (lookup_symbol_aux_psymtabs)
5044 (maintenance_check_psymtabs): Update.
5045 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5047 * spu-tdep.c (spu_catch_start): Update.
5048 * symmisc.c (dump_symtab_1): Update.
5049 * symtab.c (lookup_global_symbol_from_objfile)
5050 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5051 (basic_lookup_transparent_type_quick)
5052 (basic_lookup_transparent_type, find_pc_sect_symtab)
5053 (find_pc_sect_line, search_symbols): Update.
5054 * block.c (find_block_in_blockvector): Make "bl" const.
5055 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5057 (blockvector_contains_pc): Make "bv" const.
5058 (block_for_pc_sect): Update.
5059 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5060 (blockvector_contains_pc): Update.
5061 * breakpoint.c (resolve_sal_pc): Update.
5062 * inline-frame.c (block_starting_point_at): Update.
5064 2014-06-18 Tom Tromey <tromey@redhat.com>
5066 * completer.c (complete_line): Make "line_buffer" const.
5067 * completer.h (complete_line): Update.
5069 2014-06-18 Tom Tromey <tromey@redhat.com>
5071 * symtab.c (add_macro_name): Remove unneeded cast.
5073 2014-06-18 Tom Tromey <tromey@redhat.com>
5075 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5076 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5078 2014-06-18 Tom Tromey <tromey@redhat.com>
5080 * probe.c (info_probes_for_ops): Make "arg" const.
5081 * probe.h (info_probes_for_ops): Update.
5083 2014-06-18 Tom Tromey <tromey@redhat.com>
5085 * varobj.c (varobj_create): Update.
5086 * valops.c (value_of_this): Update.
5087 * tracepoint.c (add_local_symbols, scope_info): Update.
5088 * symtab.h (struct general_symbol_info) <block>: Now const.
5089 * symtab.c (skip_prologue_sal)
5090 (default_make_symbol_completion_list_break_on)
5091 (skip_prologue_using_sal): Update.
5092 * stack.h (iterate_over_block_locals)
5093 (iterate_over_block_local_vars): Update.
5094 * stack.c (print_frame_args): Update.
5095 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5097 (get_selected_block): Make return type const.
5098 * python/py-frame.c (frapy_block): Update.
5099 * python/py-block.c (gdbpy_block_for_pc): Update.
5100 * p-exp.y (%union) <bval>: Now const.
5101 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5102 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5103 * m2-exp.y (%union) <bval>: Now const.
5104 * linespec.c (get_current_search_block): Make return type const.
5105 (create_sals_line_offset, find_label_symbols): Update.
5106 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5108 (block_starting_point_at): Make "block" const.
5109 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5110 (check_exception_resume): Update.
5111 * guile/scm-frame.c (gdbscm_frame_block): Update.
5112 * guile/scm-block.c (gdbscm_lookup_block): Update.
5113 * frame.h (get_frame_block): Update.
5114 (get_selected_block): Make return type const.
5115 * frame.c (frame_id_inner): Update.
5116 * f-valprint.c (info_common_command_for_block)
5117 (info_common_command): Update.
5118 * dwarf2loc.c (dwarf2_find_location_expression)
5119 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5120 (locexpr_describe_location_piece): Update.
5121 * c-exp.y (%union) <bval>: Now const.
5122 * breakpoint.c (resolve_sal_pc): Update.
5123 * blockframe.c (get_frame_block):Make return type const.
5124 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5125 (block_innermost_frame): Update.
5126 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5127 (block_for_pc, block_for_pc_sect): Update.
5128 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5130 (block_for_pc_sect, block_for_pc): Make return type const.
5131 * ax-gdb.c (gen_expr): Update.
5132 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5133 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5134 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5135 (ada_read_var_value): Update.
5136 * ada-exp.y (struct name_info) <block>: Now const.
5138 (block_lookup): Constify.
5140 2014-06-18 Gary Benson <gbenson@redhat.com>
5142 * nat/i386-dregs.h: New file.
5143 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5144 * i386-nat.h (i386-dregs.h): New include.
5145 (DR_FIRSTADDR): Now in i386-dregs.h.
5146 (DR_LASTADDR): Likewise.
5147 (DR_NADDR): Likewise.
5148 (DR_STATUS): Likewise.
5149 (DR_CONTROL): Likewise.
5150 (i386_debug_reg_state): Likewise.
5151 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5153 2014-06-18 Don Breazeal <donb@codesourcery.com>
5155 * breakpoint.c (set_longjmp_breakpoint): Call
5156 momentary_breakpoint_from_master with additional argument.
5157 (set_longjmp_breakpoint_for_call_dummy): Call
5158 momentary_breakpoint_from_master with additional argument.
5159 (set_std_terminate_breakpoint): Call
5160 momentary_breakpoint_from_master with additional argument.
5161 (momentary_breakpoint_from_master): Add argument to function
5162 definition and use it to initialize structure member flag.
5163 (clone_momentary_breakpoint): Call
5164 momentary_breakpoint_from_master with additional argument.
5165 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5166 member flags set in momentary_breakpoint_from_master.
5168 2014-06-18 Gary Benson <gbenson@redhat.com>
5170 * i386-nat.c (i386_show_dr): Renamed to
5171 i386_dr_show and made nonstatic. All uses updated.
5172 (i386_length_and_rw_bits): Renamed to
5173 i386_dr_length_and_rw_bits and made nonstatic.
5175 (i386_insert_aligned_watchpoint): Renamed to
5176 i386_dr_insert_aligned_watchpoint and made nonstatic.
5178 (i386_remove_aligned_watchpoint): Renamed to
5179 i386_dr_remove_aligned_watchpoint and made nonstatic.
5181 (i386_update_inferior_debug_regs): Renamed to
5182 i386_dr_update_inferior_debug_regs and made nonstatic.
5185 2014-06-18 Gary Benson <gbenson@redhat.com>
5187 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5188 (i386_dr_low_can_set_control): Likewise.
5189 (i386_dr_low_set_addr): Likewise.
5190 (i386_dr_low_set_control): Likewise.
5191 (i386_dr_low_get_addr): Likewise.
5192 (i386_dr_low_get_status): Likewise.
5193 (i386_dr_low_get_control): Likewise.
5194 (i386_insert_aligned_watchpoint): Use new macros.
5195 (i386_update_inferior_debug_regs): Likewise.
5196 (i386_stopped_data_address): Likewise.
5198 2014-06-18 Gary Benson <gbenson@redhat.com>
5200 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5201 New parameter. All uses updated.
5203 2014-06-18 Gary Benson <gbenson@redhat.com>
5205 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5208 2014-06-18 Gary Benson <gbenson@redhat.com>
5210 * i386-nat.c (debug_printf): New macro.
5211 (i386_get_debug_register_length): Likewise.
5212 (TARGET_HAS_DR_LEN_8): Use above macro.
5213 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5214 and printf_unfiltered. Use phex to format values.
5216 2014-06-18 Gary Benson <gbenson@redhat.com>
5218 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5221 2014-06-18 Gary Benson <gbenson@redhat.com>
5223 * i386-nat.c: Comment changes.
5225 2014-06-18 Gary Benson <gbenson@redhat.com>
5227 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5229 2014-06-18 Gary Benson <gbenson@redhat.com>
5231 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5232 (i386_insert_aligned_watchpoint): Likewise.
5233 (i386_remove_aligned_watchpoint): Likewise.
5234 (i386_handle_nonaligned_watchpoint): Likewise.
5236 2014-06-18 Gary Benson <gbenson@redhat.com>
5238 * i386-nat.c: Whitespace changes.
5240 2014-06-17 Samuel Bronson <naesten@gmail.com>
5242 * MAINTAINERS: Update Roland McGrath's email address.
5243 Thanks to Sergio Durigan Junior for pointing out that he left
5244 Red Hat a while ago, and giving me a current address.
5246 2014-06-17 Tom Tromey <tromey@redhat.com>
5248 * utils.h (savestring): Remove declaration.
5250 2014-06-17 Tom Tromey <tromey@redhat.com>
5252 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5254 2014-06-16 Keith Seitz <keiths@redhat.com>
5257 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5258 to update the varobj if inferior_ptid is null_ptid.
5260 2014-06-16 Tom Tromey <tromey@redhat.com>
5262 * target.h (struct target_ops) <to_info_proc>: Make parameter
5264 (target_info_proc): Update.
5265 * target.c (target_info_proc): Make "args" const.
5266 * procfs.c (procfs_info_proc): Update.
5267 * linux-tdep.c (linux_info_proc): Update.
5268 (linux_core_info_proc_mappings): Make "args" const.
5269 (linux_core_info_proc): Update.
5270 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5271 * gdbarch.c: Rebuild.
5272 * gdbarch.h: Rebuild.
5273 * corelow.c (core_info_proc): Update.
5275 2014-06-16 Tom Tromey <tromey@redhat.com>
5277 * target.h (struct target_ops) <to_disconnect>: Make parameter
5279 (target_disconnect): Update.
5280 * target.c (target_disconnect): Make "args" const.
5281 * target-delegates.c: Rebuild.
5282 * remote.c (remote_disconnect): Update.
5283 * record.h (record_disconnect): Update.
5284 * record.c (record_disconnect): Update.
5285 * inf-child.c (inf_child_disconnect): Update.
5287 2014-06-16 Tom Tromey <tromey@redhat.com>
5289 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5290 * target.c (debug_to_rcmd, default_rcmd): Update.
5291 * target-delegates.c: Rebuild.
5292 * remote.c (remote_rcmd): Update.
5293 * monitor.c (monitor_rcmd): Update.
5295 2014-06-16 Pedro Alves <palves@redhat.com>
5297 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5298 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5299 have OBJF_SHARED set.
5300 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5301 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5302 instead of OBJF_USERLOADED.
5303 * objfiles.h (OBJF_SHARED): Update comment.
5304 (userloaded_objfile_contains_address_p): Rename to ...
5305 (shared_objfile_contains_address_p): ... this, and update
5307 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5309 (remove_symbol_file_command): Skip objfiles that don't have
5312 2014-06-16 Tom Tromey <tromey@redhat.com>
5314 * minsyms.h (prim_record_minimal_symbol)
5315 (prim_record_minimal_symbol_and_info): Update comments.
5317 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5319 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5320 or --without-guile, according to how GDB was built.
5322 2014-06-13 Tom Tromey <tromey@redhat.com>
5324 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5326 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5328 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5330 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5331 help_list.Pass all_commands, not -1, to help_list.
5332 * cli/cli-dump.c (dump_command, append_command)
5333 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5334 (binary_dump_command, binary_append_command): Pass all_commands,
5335 not -1, to help_list.
5336 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5338 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5340 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5342 * top.c (set_history): Pass all_commands, not -1, to help_list.
5343 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5344 all_commands, not -1, to help_list.
5345 * symfile.c (overlay_command): Pass all_commands, not -1, to
5347 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5349 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5351 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5353 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5354 not -1, to help_list.
5355 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5356 not -1, to help_list.
5357 * maint.c (maintenance_command, maintenance_info_command)
5358 (maintenance_print_command, maintenance_set_cmd): Pass
5359 all_commands, not -1, to help_list.
5360 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5362 * language.c (set_check): Pass all_commands, not -1, to help_list.
5363 * infcmd.c (unset_command): Pass all_commands, not -1, to
5365 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5367 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5369 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5371 * breakpoint.c (save_command): Pass all_commands, not -1, to
5373 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5374 all_commands, not -1, to help_list.
5376 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5378 * regcache.c (struct register_to_invalidate): New structure.
5379 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5381 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5383 2014-06-12 Yao Qi <yao@codesourcery.com>
5385 * varobj.c (varobj_get_num_children): Call
5386 varobj_is_dynamic_p.
5387 (varobj_list_children): Likewise.
5388 (varobj_update): Likewise. Update comments.
5390 2014-06-12 Yao Qi <yao@codesourcery.com>
5392 * varobj.c (varobj_pretty_printed_p): Rename to ...
5393 (varobj_is_dynamic_p): ... this. New function.
5394 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5395 (varobj_is_dynamic_p): Declare.
5396 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5397 (mi_print_value_p, varobj_update_one): Likewise.
5399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5400 Yao Qi <yao@codesourcery.com>
5402 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5403 (varobj_get_iterator): Wrap up code for pretty-printer by
5404 "#if HAVE_PYTHON" and "#endif".
5405 (update_dynamic_varobj_children): Likewise.
5407 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5408 Yao Qi <yao@codesourcery.com>
5410 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5411 gdb_python_initialized is false. Move some code from varobj.c.
5412 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5413 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5414 (struct varobj_item): Moved to varobj-iter.h".
5415 (varobj_clear_saved_item): New function.
5416 (update_dynamic_varobj_children): Move python-related code to
5418 (free_variable): Call varobj_clear_saved_item and
5421 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5422 Yao Qi <yao@codesourcery.com>
5424 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5425 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5426 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5427 (py-varobj.o): New rule.
5428 * python/py-varobj.c: New file.
5429 * python/python-internal.h (py_varobj_get_iterator): Declare.
5430 * varobj-iter.h: New file.
5431 * varobj.c: Include "varobj-iter.h"
5432 (struct varobj) <child_iter>: Change its type from "PyObject *"
5433 to "struct varobj_iter *".
5434 <saved_item>: Likewise.
5435 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5436 [HAVE_PYTHON] (varobj_get_iterator): New function.
5437 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5438 python-specific code to python/py-varobj.c.
5439 (install_visualizer): Call varobj_iter_delete instead of
5441 * varobj.h (varobj_ensure_python_env): Declare.
5443 2014-06-12 Yao Qi <yao@codesourcery.com>
5445 * varobj.c (struct varobj_item): New structure.
5446 (create_child_with_value): Update declaration.
5447 (varobj_add_child): Replace arguments 'name' and 'value' with
5448 'item'. All callers updated.
5449 (install_dynamic_child): Likewise.
5450 (update_dynamic_varobj_children): Likewise.
5451 (varobj_add_child): Likewise.
5452 (create_child_with_value): Likewise.
5454 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5456 * NEWS: Create a new section for the next release branch.
5457 Rename the section of the current branch, now that it has
5460 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5462 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5463 * version.in: Bump version to 7.8.50.DATE-cvs.
5465 2014-06-11 Pedro Alves <palves@redhat.com>
5468 * ser-mingw.c (net_windows_socket_check_pending): New function.
5469 (net_windows_select_thread): Ignore spurious wakeups. Use
5470 net_windows_socket_check_pending.
5471 (net_windows_wait_handle): Check for pending events with
5472 ioctlsocket, through net_windows_socket_check_pending, instead of
5473 checking the socket's event.
5475 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5477 * python/python-internal.h (gdb_PyObject_GetAttrString)
5478 (gdb_PyObject_HasAttrString): New inline function definitions.
5479 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5480 char * of the second argument to PyObject_GetAttrString.
5482 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5484 * serial.c (serial_write): Fix index of character to be printed
5485 in call to serial_logchar when serial debug traces are enabled.
5487 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5489 * gdbtypes (resolve_dynamic_range): Add function description.
5491 2014-06-09 Pedro Alves <palves@redhat.com>
5493 * linux-nat.c (linux_child_follow_fork): Initialize status with
5494 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5495 inner block. Only pass the signal to PTRACE_DETACH if in pass
5498 2014-06-09 Gary Benson <gbenson@redhat.com>
5500 * common/signals.c (gdb_signal_from_host): Reorder to separate
5501 the always-available ANSI-standard signals from the signals that
5503 (do_gdb_signal_to_host): Likewise.
5504 * proc-events.c (signal_table): Likewise.
5506 2014-06-08 Hui Zhu <hui@codesourcery.com>
5508 * common/linux-ptrace.c (linux_disable_event_reporting): New
5510 * common/linux-ptrace.h (linux_disable_event_reporting): New
5512 * linux-nat.c (linux_child_follow_fork): Do a single step before
5515 2014-06-07 Keith Seitz <keiths@redhat.com>
5519 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5520 from symbol_matches_domain in symtab.c. All local callers
5521 of symbol_matches_domain updated.
5522 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5523 search STRUCT_DOMAIN.
5524 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5525 independently. standard_lookup will do that automatically.
5526 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5527 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5528 (cp_lookup_symbol_in_namespace): Likewise.
5529 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5530 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5531 may return a STRUCT_DOMAIN match.
5532 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5533 * cp-support.c: Include language.h.
5534 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5536 * psymtab.c (match_partial_symbol): Compare the requested
5537 domain with the symbol's domain directly.
5538 (lookup_partial_symbol): Likewise.
5539 * symtab.c (lookup_symbol_in_language): Explain when/why
5540 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5541 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5542 appropriate languages.
5543 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5544 and moved to ada-lang.c
5545 (lookup_block_symbol): Explain that this function only returns
5546 symbol matching the requested DOMAIN.
5547 Compare the requested domain with the symbol's domain directly.
5548 (iterate_over_symbols): Compare the requested domain with the
5549 symbol's domain directly.
5550 * symtab.h (symbol_matches_domain): Remove.
5552 2014-06-06 Doug Evans <xdje42@gmail.com>
5554 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5555 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5556 (gdbscm_guile_version_is_at_least): Declare.
5557 (gdbscm_scm_string_to_int): Declare.
5558 * guile/guile.c (gdbscm_guile_major_version): New global.
5559 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5560 (guile_datadir): New static global.
5561 (gdbscm_guile_data_directory): New function.
5562 (initialize_scheme_side): Update.
5563 (misc_guile_functions): Add guile-data-directory.
5564 (initialize_gdb_module): Fetch guile version number.
5565 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5566 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5567 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5568 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5570 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5571 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5572 * guile/scm-value.c (gdbscm_value_to_string): Only call
5573 scm_port_conversion_strategy if Guile version >= 2.0.6.
5575 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5577 * main.c (print_gdb_help): Add -q and --silent.
5579 2014-06-06 Gary Benson <gbenson@redhat.com>
5581 * common/signals.c: Remove preprocessor conditionals for
5582 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5583 SIGSEGV and SIGTERM.
5584 * proc-events.c: Likewise.
5586 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5588 * symfile.c (symfile_free_objfile): Remove restriction to
5590 * symfile-mem.c (symbol_file_add_from_memory): Call
5591 add_target_sections_of_objfile.
5593 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5595 * guile/scm-value.c (gdbscm_history_append_x): Use
5596 'vlscm_get_value_smob_arg_unsafe' instead of
5597 'vlscm_scm_to_value'.
5599 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5602 * utils.c (printchar): Don't escape at all if quoter is NUL.
5603 Update function documentation to clarify effect of parameter
5605 * remote.c (escape_buffer): Pass '\\' as the quoter to
5606 fputstrn_unfiltered.
5607 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5608 generate the output.
5609 (mi_solib_unloaded): Same.
5611 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5613 * development.sh: Delete.
5614 * Makefile.in (config.status): Adjust dependency on development.sh.
5615 * configure.ac: Adjust development.sh source call.
5616 * configure: Regenerate.
5618 2014-06-04 Doug Evans <xdje42@gmail.com>
5620 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5621 is_scheme_bkpt, spec.
5622 (bpscm_make_breakpoint_smob): Initialize new members.
5623 (gdbscm_create_breakpoint_x): Split into two ...
5624 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5625 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5626 (scheme_function breakpoint_functions): Update.
5627 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5628 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5629 register-breakpoint!.
5631 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5634 * mem-break.c (z_type_supported): Return zero if
5635 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5637 2014-06-04 Tom Tromey <tromey@redhat.com>
5639 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5640 value_from_contents_and_address_unresolved.
5641 (ada_template_to_fixed_record_type_1): Likewise.
5642 (ada_which_variant_applies): Likewise.
5643 * value.h (value_from_contents_and_address_unresolved): Declare.
5644 * value.c (value_from_contents_and_address_unresolved): New
5646 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5647 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5648 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5650 2014-06-04 Tom Tromey <tromey@redhat.com>
5652 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5654 2014-06-04 Tom Tromey <tromey@redhat.com>
5656 * procfs.c (procfs_attach): Make "args" const.
5657 * windows-nat.c (windows_attach): Make "args" const.
5658 * nto-procfs.c (procfs_attach): Make "args" const.
5659 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5660 * go32-nat.c (go32_attach): Make "args" const.
5661 * gnu-nat.c (gnu_attach): Make "args" const.
5662 * darwin-nat.c (darwin_attach): Make "args" const.
5663 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5664 * linux-nat.c (linux_nat_attach): Make "args" const.
5665 * remote.c (extended_remote_attach_1, extended_remote_attach):
5667 * target.h (struct target_ops) <to_attach>: Make "args" const.
5668 (find_default_attach): Likewise.
5669 * utils.c (parse_pid_to_attach): Make "args" const.
5670 * utils.h (parse_pid_to_attach): Update.
5672 2014-06-04 Tom Tromey <tromey@redhat.com>
5674 * target-delegates.c: Rebuild.
5675 * target.c (default_thread_address_space): New function.
5676 (target_thread_address_space): Simplify.
5677 * target.h (struct target_ops) <to_thread_address_space>: Add
5678 TARGET_DEFAULT_FUNC.
5680 2014-06-04 Doug Evans <xdje42@gmail.com>
5682 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5684 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5686 * record-btrace.c: Include event-loop.h and inf-loop.h.
5687 (record_btrace_resume_exec_dir)
5688 (record_btrace_async_inferior_event_handler)
5689 (record_btrace_handle_async_inferior_event): New.
5690 (record_btrace_open): Create async event handler.
5691 (record_btrace_close): Delete async event handler.
5692 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5693 Mark async event handler.
5694 (record_btrace_execution_direction): New.
5695 (init_record_btrace_ops): Initialize to_execution_direction.
5697 2014-06-03 Doug Evans <xdje42@gmail.com>
5699 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5700 (gdbscm_make_parameter): Ditto.
5702 2014-06-03 Doug Evans <dje@google.com>
5704 * exec.c (exec_close_1): Call clear_section_table instead of
5705 resize_section_table.
5706 (clear_section_table): New function.
5707 (resize_section_table): Make static. Rename arg num_added to
5709 * exec.h (clear_section_table): Declare.
5710 (resize_section_table): Delete.
5711 * progspace.c (release_program_space): Call clear_section_table
5712 instead of resize_section_table.
5714 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5716 * NEWS (Python Scripting): Add entry about the new xmethods
5719 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5721 * python/py-xmethods.c: New file.
5722 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5723 (objfpy_dealloc): XDECREF on the new xmethods field.
5724 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5726 (objfpy_get_xmethods): New function.
5727 (objfile_getset): New entry 'xmethods'.
5728 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5729 (pspy_dealloc): XDECREF on the new xmethods field.
5730 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5732 (pspy_get_xmethods): New function.
5733 (pspace_getset): New entry 'xmethods'.
5734 * python/python-internal.h: Add declarations for new functions.
5735 * python/python.c (_initialize_python): Invoke
5736 gdbpy_initialize_xmethods.
5737 * python/lib/gdb/__init__.py (xmethods): New
5739 * python/lib/gdb/xmethod.py: New file.
5740 * python/lib/gdb/command/xmethods.py: New file.
5742 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5744 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5745 best match method returned by find_overload_match is an xmethod.
5746 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5747 the best matching operator returned by find_overload_match is an
5749 * valops.c: #include "extension.h".
5750 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5751 Return void. The list of matching source methods is returned in
5752 "fn_list" and a vector of matching debug method workers is
5753 returned in "xm_worker_vec". Update all callers.
5754 (value_find_oload_method_list): Likewise.
5755 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5756 non-NULL, then the index of the best matching method in this
5757 vector is returned. Update all callers.
5758 (find_overload_match): Include xmethods while performing overload
5761 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5763 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5764 * extension-priv.h (struct extension_language_ops): Add the
5766 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5767 get_matching_xmethod_workers, get_xmethod_argtypes,
5768 invoke_xmethod, free_xmethod_worker,
5769 free_xmethod_worker_vec): New functions.
5770 * extension.h: #include "common/vec.h".
5771 New function declarations.
5772 (struct xmethod_worker): New struct.
5773 (VEC (xmethod_worker_ptr)): New vector type.
5774 (xmethod_worker_ptr): New typedef.
5775 (xmethod_worker_vec): Likewise.
5776 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5778 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5779 (struct builtin_type): New field "xmethod".
5780 * valarith.c (value_ptradd): Assert that the value argument is not
5782 * valops.c (value_must_coerce_to_target): Return 0 for
5783 lval_xcallable values.
5784 * value.c (struct value): New field XM_WORKER in the field
5786 (value_address, value_raw_address): Return 0 for lval_xcallable
5788 (set_value_address): Assert that the value is not an
5790 (value_free): Free the associated xmethod worker when freeing
5791 lval_xcallable values.
5792 (set_value_component_location): Assert that the WHOLE value is not
5794 (value_of_xmethod, call_xmethod): New functions.
5795 * value.h: Declare "struct xmethod_worker".
5796 Declare new functions value_of_xmethod, call_xmethod.
5798 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5799 Pedro Alves <palves@redhat.com>
5801 PR breakpoints/17000
5802 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5803 New function, extracted from software_breakpoint_inserted_here_p.
5804 (software_breakpoint_inserted_here_p): Replace factored out code
5805 by call to find_non_raw_software_breakpoint_inserted_here.
5806 (bp_target_info_copy_insertion_state): New function.
5807 (bkpt_insert_location): Handle the case of a single-step
5808 breakpoint already inserted at the same address.
5809 (bkpt_remove_location): Handle the case of a single-step
5810 breakpoint still inserted at the same address.
5811 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5812 breakpoint already inserted at the same address.
5813 (deprecated_remove_raw_breakpoint): Handle the case of a
5814 non-raw breakpoint still inserted at the same address.
5815 (find_single_step_breakpoint): New function, extracted from
5816 single_step_breakpoint_inserted_here_p.
5817 (find_single_step_breakpoint): New function,
5818 factored out from single_step_breakpoint_inserted_here_p.
5819 (single_step_breakpoint_inserted_here_p): Reimplement.
5821 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5823 Pushed by Joel Brobecker <brobecker@adacore.com>
5824 * source.c (show_substitute_path_command): Fix display of matching
5827 2014-06-03 Gary Benson <gbenson@redhat.com>
5829 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5831 2014-06-02 Doug Evans <xdje42@gmail.com>
5833 Add parameter support for Guile.
5834 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5835 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5836 (scm-param.o): New rule.
5837 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5838 (gdbscm_misc_error): Declare.
5839 (gdbscm_canonicalize_command_name): Declare.
5840 (gdbscm_scm_to_host_string): Declare.
5841 (gdbscm_scm_from_host_string): Declare.
5842 (gdbscm_initialize_parameters): Declare.
5843 * guile/guile.c (initialize_gdb_module): Call
5844 gdbscm_initialize_parameters.
5845 * guile/lib/gdb.scm: Export parameter symbols.
5846 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5847 cmdscm_canonicalize_name and made public. All callers updated.
5848 * guile/scm-exception.c (gdbscm_misc_error): New function.
5849 * guile/scm-param.c: New file.
5850 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5851 (gdbscm_scm_to_host_string): New function.
5852 (gdbscm_scm_from_host_string): New function.
5853 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5855 2014-06-02 Doug Evans <xdje42@gmail.com>
5857 Add command support for Guile.
5858 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5859 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5860 (scm-cmd.o): New rule.
5861 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5862 (gdbscm_user_error_p): Declare.
5863 (gdbscm_parse_command_name): Declare.
5864 (gdbscm_valid_command_class_p): Declare.
5865 (gdbscm_initialize_commands): Declare.
5866 * guile/guile.c (initialize_gdb_module): Call
5867 gdbscm_initialize_commands.
5868 * guile/lib/gdb.scm: Export command symbols.
5869 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5870 (throw-user-error): New function.
5871 * guile/scm-cmd.c: New file.
5872 * guile/scm-exception.c (user_error_symbol): New static global.
5873 (gdbscm_user_error_p): New function.
5874 (gdbscm_initialize_exceptions): Set user_error_symbol.
5875 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5877 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5879 * top.c (command_loop): Handle comments here...
5880 (command_line_input): ... not here.
5882 2014-06-02 Doug Evans <xdje42@gmail.com>
5884 Add progspace support for Guile.
5885 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5886 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5887 (scm-progspace.o): New rule.
5888 * guile/guile-internal.h (pspace_smob): New typedef.
5889 (psscm_pspace_smob_pretty_printers): Declare.
5890 (psscm_pspace_smob_from_pspace): Declare.
5891 (psscm_scm_from_pspace): Declare.
5892 * guile/guile.c (initialize_gdb_module): Call
5893 gdbscm_initialize_pspaces.
5894 * guile/lib/gdb.scm: Export progspace symbols.
5895 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5897 (append-pretty-printer!): Ditto.
5898 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5900 * guile/scm-progspace.c: New file.
5902 2014-06-03 Alan Modra <amodra@gmail.com>
5904 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5905 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5907 2014-06-02 Doug Evans <dje@google.com>
5909 Add support for skeletonless type units.
5910 * dwarf2read.c (struct dwarf2_per_objfile): New member
5911 n_allocated_type_units.
5912 (struct dwarf2_per_objfile) <tu_stats>: New member
5913 nr_all_type_units_reallocs.
5914 (create_signatured_type_table_from_index): Initialize
5915 n_allocated_type_units
5916 (create_all_type_units): Ditto.
5917 (add_type_unit): Move up in file. New arg slot.
5918 All callers updated. Increase space for all_type_units more
5920 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5921 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5922 (lookup_dwp_signatured_type): Ditto.
5923 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5924 All callers updated.
5925 (build_type_psymtabs_1): Leave type_unit_groups as
5926 NULL if no TUs present.
5927 (print_tu_stats): New function.
5928 (process_skeletonless_type_unit): New function.
5929 (process_dwo_file_for_skeletonless_type_units): New
5931 (process_skeletonless_type_units): New function.
5932 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5933 Call print tu_stats if debugging enabled.
5935 2014-06-02 Pedro Alves <palves@redhat.com>
5937 * breakpoint.c (build_target_command_list): Don't build a command
5938 list if we have any duplicate location that isn't a dprintf.
5940 2014-06-02 Pedro Alves <palves@redhat.com>
5942 * breakpoint.c (dprintf_breakpoint_hit): New function.
5943 (initialize_breakpoint_ops): Install it as dprintf's
5944 breakpoint_hit method.
5946 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5948 * source.c (substitute_path_rule_matches): Simplify using
5949 filename_ncmp instead of FILENAME_CMP.
5951 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5953 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5955 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5957 * configure.ac: When Guile is available, check for the
5958 availability of 'scm_new_smob'.
5959 * configure, config.h.in: Regenerate.
5960 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5963 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5965 * frame.c (struct frame_info): Add stop_string field.
5966 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5967 (get_prev_frame_always): Old content moved into
5968 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5969 TRY_CATCH, handle MEMORY_ERROR exceptions.
5970 (frame_stop_reason_string): New function definition.
5971 * frame.h (unwind_stop_reason_to_string): Extend comment to
5972 mention frame_stop_reason_string.
5973 (frame_stop_reason_string): New function declaration.
5974 * stack.c (frame_info): Switch to frame_stop_reason_string.
5975 (backtrace_command_1): Switch to frame_stop_reason_string.
5976 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5977 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5978 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5980 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5982 * frame.c (frame_stop_reason_string): Rename to ...
5983 (unwind_stop_reason_to_string): this.
5984 * frame.h (frame_stop_reason_string): Rename to ...
5985 (unwind_stop_reason_to_string): this.
5986 * stack.c (frame_info): Update call to frame_stop_reason_string.
5987 (backtrace_command_1): Likewise.
5988 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5989 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5991 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5993 * frame.c (remove_prev_frame): New function.
5994 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5997 2014-05-29 Pedro Alves <palves@redhat.com>
5999 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6000 and make it const. When a single-step decays to a continue,
6001 clear 'step', not 'hw_step'. Pass whether the caller wanted
6002 to step to user_visible_resume_ptid, not what we ask the
6005 2014-05-29 Pedro Alves <palves@redhat.com>
6007 * infrun.c (process_event_stop_test, handle_step_into_function)
6008 (handle_step_into_function_backward): Adjust.
6009 Don't set the even thread's stop_step and call stop_waiting before
6010 calling end_stepping_range. Instead do that ...
6011 (end_stepping_range): ... here. Take an ecs pointer parameter.
6013 2014-05-29 Pedro Alves <palves@redhat.com>
6015 * infrun.c (stop_stepping): Rename to ...
6016 (stop_waiting): ... this.
6017 (proceed): Update comment.
6018 (process_event_stop_test, handle_inferior_event)
6019 (handle_signal_stop, handle_step_into_function)
6020 (handle_step_into_function_backward): Update.
6022 2014-05-29 Pedro Alves <palves@redhat.com>
6024 * infcall.c (run_inferior_call): Don't check whether the current
6025 thread is running after the proceed call.
6027 2014-05-29 Pedro Alves <palves@redhat.com>
6028 Tom Tromey <tromey@redhat.com>
6030 * NEWS: Mention "maint set target-async", "set mi-async", and that
6031 background execution commands are now always available.
6032 * target.h (target_async_permitted): Update comment.
6033 * target.c (target_async_permitted, target_async_permitted_1):
6035 (set_target_async_command): Rename to ...
6036 (maint_set_target_async_command): ... this.
6037 (show_target_async_command): Rename to ...
6038 (maint_show_target_async_command): ... this.
6039 (_initialize_target): Adjust.
6040 * infcmd.c (prepare_execution_command): Make extern.
6041 * inferior.h (prepare_execution_command): Declare.
6042 * infrun.c (set_observer_mode): Leave target async alone.
6043 * mi/mi-interp.c (mi_interpreter_init): Install
6044 mi_on_sync_execution_done as sync_execution_done observer.
6045 (mi_on_sync_execution_done): New function.
6046 (mi_execute_command_input_handler): Don't print the prompt if we
6047 just started a synchronous command with an async target.
6048 (mi_on_resume): Check sync_execution before printing prompt.
6049 * mi/mi-main.h (mi_async_p): Declare.
6050 * mi/mi-main.c: Include gdbcmd.h.
6051 (mi_async_p): New function.
6052 (mi_async, mi_async_1): New globals.
6053 (set_mi_async_command, show_mi_async_command, mi_async): New
6055 (exec_continue): Call prepare_execution_command.
6056 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6057 (mi_execute_async_cli_command): Use mi_async_p.
6058 (_initialize_mi_main): Install "set mi-async". Make
6059 "target-async" a deprecated alias.
6061 2014-05-29 Pedro Alves <palves@redhat.com>
6063 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6064 (_initialize_cli_interp): Adjust.
6065 * event-loop.c: Include "observer.h".
6066 (start_event_loop): Notify 'command_error' observers instead of
6067 calling display_gdb_prompt. Remove FIXME comment.
6068 * event-top.c (display_gdb_prompt): Remove call into the
6070 * inf-loop.c: Include "observer.h".
6071 (inferior_event_handler): Notify 'command_error' observers instead
6072 of calling display_gdb_prompt.
6073 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6074 observers instead of calling display_gdb_prompt.
6075 * interps.c (interp_set): Don't call display_gdb_prompt.
6076 (current_interp_display_prompt_p): Delete.
6077 * interps.h (interp_prompt_p): Delete declaration.
6078 (interp_prompt_p_ftype): Delete.
6079 (struct interp_procs) <prompt_proc_p>: Delete field.
6080 (current_interp_display_prompt_p): Delete declaration.
6081 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6082 (_initialize_mi_interp): Adjust.
6083 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6084 'command_error' observers.
6085 (tui_on_sync_execution_done, tui_on_command_error): New
6087 (tui_display_prompt_p): Delete.
6088 (_initialize_tui_interp): Adjust.
6090 2014-05-29 Pedro Alves <palves@redhat.com>
6093 * cli/cli-interp.c: Include infrun.h and observer.h.
6094 (cli_uiout, cli_interp): New globals.
6095 (cli_on_signal_received, cli_on_end_stepping_range)
6096 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6098 (cli_interpreter_init): Install them as 'end_stepping_range',
6099 'signal_received' 'signal_exited', 'exited' and 'no_history'
6101 (_initialize_cli_interp): Remove cli_interp local.
6102 * infrun.c (handle_inferior_event): Call the several stop reason
6103 observers instead of printing the stop reason directly.
6104 (end_stepping_range): New function.
6105 (print_end_stepping_range_reason, print_signal_exited_reason)
6106 (print_exited_reason, print_signal_received_reason)
6107 (print_no_history_reason): Make static, and add an uiout
6108 parameter. Print to that instead of to CURRENT_UIOUT.
6109 * infrun.h (print_end_stepping_range_reason)
6110 (print_signal_exited_reason, print_exited_reason)
6111 (print_signal_received_reason print_no_history_reason): New
6113 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6115 <cli_uiout>: New field.
6116 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6117 uiout for CLI output. Install 'signal_received',
6118 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6120 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6121 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6122 (mi_on_no_history): New functions.
6123 (ui_out_free_cleanup): Delete function.
6124 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6125 instead use the one already stored in the MI interpreter data.
6126 (mi_ui_out): Adjust.
6127 * tui/tui-interp.c: Include infrun.h and observer.h.
6128 (tui_interp): New global.
6129 (tui_on_signal_received, tui_on_end_stepping_range)
6130 (tui_on_signal_exited, tui_on_exited)
6131 (tui_on_no_history): New functions.
6132 (tui_init): Install them as 'end_stepping_range',
6133 'signal_received' 'signal_exited', 'exited' and 'no_history'
6135 (_initialize_tui_interp): Delete tui_interp local.
6137 2014-05-29 Pedro Alves <palves@redhat.com>
6140 * linux-nat.c (linux_nat_resume_callback): Rename the second
6141 parameter to 'except'. Skip LP if it points to EXCEPT.
6142 (linux_nat_resume): Don't mark the event lwp as not stopped
6143 before resuming sibling lwps. Instead ask
6144 linux_nat_resume_callback to skip the event lwp. Mark it as not
6145 stopped after actually resuming it.
6146 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6148 (wait_lwp): Mark the lwp as stopped here.
6149 (stop_wait_callback): Mark the lwp as not stopped right after
6150 resuming it. Don't mark lwps as stopped here.
6151 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6152 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6154 2014-05-29 Pedro Alves <palves@redhat.com>
6157 * infrun.c (resume): Determine how much to resume depending on
6158 whether the caller wanted a step, not whether we can hardware step
6159 the target. Mark all threads that we intend to run as running,
6160 unless we're calling an inferior function.
6161 (normal_stop): If the thread is running an infcall, don't finish
6163 * target.c (target_resume): Don't mark threads as running here.
6165 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6167 * serial.c (_initialize_serial): Remove support for
6168 the "set remotebaud" and "show remotebaud" commands.
6169 * NEWS: Add entry documenting the removal of that command.
6171 2014-05-28 Yao Qi <yao@codesourcery.com>
6173 * charset.c: Fix typo in comments.
6175 2014-05-27 Gary Benson <gbenson@redhat.com>
6177 * utils.c (internal_vproblem): Prompt for a bug report.
6179 2014-05-26 Andy Wingo <wingo@igalia.com>
6181 * guile/scm-arch.c (arscm_mark_arch_smob):
6182 * guile/scm-block.c (bkscm_mark_block_smob)
6183 (bkscm_mark_block_syms_progress_smob):
6184 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6185 * guile/scm-exception.c (exscm_mark_exception_smob):
6186 * guile/scm-frame.c (frscm_mark_frame_smob):
6187 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6188 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6189 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6190 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6191 (ppscm_mark_pretty_printer_worker_smob):
6192 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6193 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6194 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6195 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6197 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6200 2014-05-26 Andy Wingo <wingo@igalia.com>
6201 Doug Evans <xdje42@gmail.com>
6203 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6204 empty_base_class. All uses updated.
6205 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6206 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6208 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6209 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6210 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6211 (gdbscm_gsmob_has_property_p, add_property_name)
6212 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6213 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6214 (gdb-object-has-property?, gdb-object-properties): Remove.
6215 (gdb-object-kind): Renamed from gsmob-kind.
6217 2014-05-26 Andy Wingo <wingo@igalia.com>
6219 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6220 * configure: Regenerate.
6222 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6224 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6226 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6228 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6229 (replay_memory_access_read_only, replay_memory_access_read_write)
6230 (replay_memory_access_types, replay_memory_access)
6231 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6232 (cmd_set_record_btrace, cmd_show_record_btrace)
6233 (cmd_show_replay_memory_access): New.
6234 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6235 (record_btrace_remove_breakpoint): Replace
6236 record_btrace_allow_memory_access with replay_memory_access.
6237 (_initialize_record_btrace): Add commands.
6238 * NEWS: Announce it.
6240 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6242 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6244 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6246 * MAINTAINERS (Write After Approval): Move self back from
6249 2014-05-22 Pedro Alves <palves@redhat.com>
6251 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6252 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6253 (disable_randomization, enum exec_direction_kind)
6254 (execution_direction, stop_registers, start_remote)
6255 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6256 (wait_for_inferior, normal_stop, get_last_target_status)
6257 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6258 (insert_step_resume_breakpoint_at_sal)
6259 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6260 (set_step_info, print_stop_event, signal_stop_state)
6261 (signal_print_state, signal_pass_state, signal_stop_update)
6262 (signal_print_update, signal_pass_update)
6263 (update_signals_program_target, clear_exit_convenience_vars)
6264 (displaced_step_dump_bytes, update_observer_mode)
6265 (signal_catch_update, gdb_signal_from_command): Move
6267 * infrun.h: ... to this new file.
6268 * amd64-tdep.c: Include infrun.h.
6269 * annotate.c: Include infrun.h.
6270 * arch-utils.c: Include infrun.h.
6271 * arm-linux-tdep.c: Include infrun.h.
6272 * arm-tdep.c: Include infrun.h.
6273 * break-catch-sig.c: Include infrun.h.
6274 * breakpoint.c: Include infrun.h.
6275 * common/agent.c: Include infrun.h instead of inferior.h.
6276 * corelow.c: Include infrun.h.
6277 * event-top.c: Include infrun.h.
6278 * go32-nat.c: Include infrun.h.
6279 * i386-tdep.c: Include infrun.h.
6280 * inf-loop.c: Include infrun.h.
6281 * infcall.c: Include infrun.h.
6282 * infcmd.c: Include infrun.h.
6283 * infrun.c: Include infrun.h.
6284 * linux-fork.c: Include infrun.h.
6285 * linux-nat.c: Include infrun.h.
6286 * linux-thread-db.c: Include infrun.h.
6287 * monitor.c: Include infrun.h.
6288 * nto-tdep.c: Include infrun.h.
6289 * procfs.c: Include infrun.h.
6290 * record-btrace.c: Include infrun.h.
6291 * record-full.c: Include infrun.h.
6292 * remote-m32r-sdi.c: Include infrun.h.
6293 * remote-mips.c: Include infrun.h.
6294 * remote-notif.c: Include infrun.h.
6295 * remote-sim.c: Include infrun.h.
6296 * remote.c: Include infrun.h.
6297 * reverse.c: Include infrun.h.
6298 * rs6000-tdep.c: Include infrun.h.
6299 * s390-linux-tdep.c: Include infrun.h.
6300 * solib-irix.c: Include infrun.h.
6301 * solib-osf.c: Include infrun.h.
6302 * solib-svr4.c: Include infrun.h.
6303 * target.c: Include infrun.h.
6304 * top.c: Include infrun.h.
6305 * windows-nat.c: Include infrun.h.
6306 * mi/mi-interp.c: Include infrun.h.
6307 * mi/mi-main.c: Include infrun.h.
6308 * python/py-threadevent.c: Include infrun.h.
6310 2014-05-22 Pedro Alves <palves@redhat.com>
6312 * infrun.c (handle_inferior_event): Store the exit code for
6313 --return-child-result here, instead of ...
6314 (print_exited_reason): ... here.
6316 2014-05-21 Pedro Alves <palves@redhat.com>
6319 * gdbthread.h (struct thread_control_state): New field
6321 * infrun.c (follow_fork): Copy the new thread control field to the
6323 (clear_proceed_status_thread): Clear the new thread control field.
6324 (proceed): Set the new thread control field.
6325 * interps.h (command_interp): Declare.
6326 * interps.c (command_interpreter): New global.
6327 (command_interp): New function.
6328 (interp_exec): Set `command_interpreter' while here.
6329 * cli-out.c (cli_uiout_dtor): New function.
6330 (cli_ui_out_impl): Install it.
6331 * mi/mi-interp.c: Include cli-out.h.
6332 (mi_cmd_interpreter_exec): Add comment.
6333 (restore_current_uiout_cleanup): New function.
6334 (ui_out_free_cleanup): New function.
6335 (mi_on_normal_stop): If finishing an execution command started by
6336 a CLI command, or any kind of breakpoint-like event triggered,
6337 print the stop event to the output (CLI) stream.
6338 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6340 2014-05-21 Pedro Alves <palves@redhat.com>
6342 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6343 current source line having changed.
6344 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6345 * infrun.c (normal_stop): Adjust call to
6346 set_current_sal_from_frame.
6347 * source.c (clear_lines_listed_range): New function.
6348 (set_current_source_symtab_and_line, identify_source_line): Clear
6349 the lines listed range.
6350 (line_info): Handle the first "info line" after the current source
6351 line having changed.
6352 * stack.c (print_stack_frame): Remove center handling.
6353 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6356 2014-05-21 Pedro Alves <palves@redhat.com>
6358 * inf-child.c (inf_child_mourn_inferior): New function.
6359 * inf-child.h (inf_child_mourn_inferior): New declaration.
6360 * darwin-nat.c (darwin_mourn_inferior): Use
6361 inf_child_mourn_inferior.
6362 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6363 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6364 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6365 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6366 * windows-nat.c (windows_mourn_inferior): Likewise.
6368 2014-05-21 Doug Evans <xdje42@gmail.com>
6370 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6372 2014-05-21 Doug Evans <xdje42@gmail.com>
6374 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6375 (gdbscm_out_of_range_error): Ditto.
6376 (gdbscm_memory_error): Ditto.
6377 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6378 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6379 (gdbscm_out_of_range_error): Update.
6380 (gdbscm_memory_error): Update.
6381 (gdbscm_scm_to_target_string_unsafe): Delete.
6383 2014-05-21 Pedro Alves <palves@redhat.com>
6385 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6387 (inf_child_open_target): New function.
6388 (inf_child_open): Use inf_child_open_target to push the target
6389 instead of erroring out.
6390 (inf_child_disconnect, inf_child_close)
6391 (inf_child_maybe_unpush_target): New functions.
6392 (inf_child_target): Install inf_child_disconnect and
6393 inf_child_close. Store a pointer to the returned object.
6394 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6396 * target.c (auto_connect_native_target): New global.
6397 (show_default_run_target): New function.
6398 (find_default_run_target): Return NULL if automatically connecting
6399 to the native target is disabled.
6400 (_initialize_target): Install set/show auto-connect-native-target.
6401 * NEWS: Mention "set auto-connect-native-target", and "target
6403 * linux-nat.c (super_close): New global.
6404 (linux_nat_close): Call super_close.
6405 (linux_nat_add_target): Store a pointer to the base class's
6407 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6408 inf_child_maybe_unpush.
6409 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6411 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6412 the inferior. Use inf_child_maybe_unpush_target.
6413 (inf_ttrace_attach): Don't push the target if it is already
6415 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6416 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6417 after mourning the inferior. Use inf_child_maybe_unpush_target.
6418 (darwin_attach_pid): Don't push the target if it is already
6420 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6421 mourning the inferior. Use inf_child_maybe_unpush_target.
6422 (gnu_detach): Use inf_child_maybe_unpush_target.
6423 * go32-nat.c (go32_create_inferior): Don't push the target if it
6425 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6426 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6427 (procfs_open): Rename to ...
6428 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6429 comments. Can target_preopen before changing node. Call
6430 inf_child_open_target to push the target explicitly.
6431 (procfs_attach): Don't push the target if it is already pushed.
6432 (procfs_detach): Use inf_child_maybe_unpush_target.
6433 (procfs_create_inferior): Don't push the target if it is already
6435 (nto_native_ops): New global.
6436 (procfs_open): Reimplement.
6437 (procfs_native_open): New function.
6438 (init_procfs_targets): Install procfs_native_open as to_open of
6439 "target native". Store a pointer to the "native" target in
6441 * procfs.c (procfs_attach): Don't push the target if it is already
6443 (procfs_detach): Use inf_child_maybe_unpush_target.
6444 (procfs_mourn_inferior): Only unpush the target after mourning the
6445 inferior. Use inf_child_maybe_unpush_target.
6446 (procfs_init_inferior): Don't push the target if it is already
6448 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6449 if it is already pushed.
6451 2014-05-21 Pedro Alves <palves@redhat.com>
6453 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6454 and "procfs" targets are now called "native" instead.
6456 2014-05-21 Pedro Alves <palves@redhat.com>
6458 * go32-nat.c (go32_open): Delete.
6459 (go32_target): Don't override the to_open method.
6461 2014-05-21 Pedro Alves <palves@redhat.com>
6463 * nto-procfs.c (procfs_can_run): New function.
6464 (nto_procfs_ops): New global.
6465 (init_procfs_targets): New, based on procfs_target. Install
6466 "target native" in addition to "target procfs".
6467 (_initialize_procfs): Call init_procfs_targets instead of adding
6470 2014-05-21 Pedro Alves <palves@redhat.com>
6472 * windows-nat.c (windows_target): Don't override to_shortname,
6473 to_longname or to_doc.
6475 2014-05-21 Pedro Alves <palves@redhat.com>
6477 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6480 2014-05-21 Pedro Alves <palves@redhat.com>
6482 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6483 to_shortname, to_longname or to_doc.
6485 2014-05-21 Pedro Alves <palves@redhat.com>
6487 * go32-nat.c (go32_target): Don't override to_shortname,
6488 to_longname or to_doc.
6490 2014-05-21 Pedro Alves <palves@redhat.com>
6492 * inf-child.c (inf_child_open): Remove mention of "child".
6493 (inf_child_target): Rename target to "native" instead of "child".
6495 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6497 * Makefile.in (SFILES): Delete "regset.c".
6498 (COMMON_OBS): Delete "regset.o".
6500 * regset.h (regset_alloc): Delete prototype.
6502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6504 * sparc-linux-tdep.c (sparc32_linux_gregset)
6505 (sparc32_linux_fpregset): New static regset structures.
6506 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6507 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6509 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6510 (sparc64_linux_fpregset): New static regset structures.
6511 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6512 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6513 New static regset structures.
6514 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6515 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6516 New static regset structures.
6517 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6518 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6519 New static regset structures.
6520 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6521 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6522 New static regset structures.
6523 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6525 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6527 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6528 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6529 register maps ("regmaps") from "*regset" to "*regmap". Do this
6530 for all regmap types and variables.
6531 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6532 (sparc32_linux_supply_core_gregset)
6533 (sparc32_linux_collect_core_gregset)
6534 (sparc32_linux_supply_core_fpregset)
6535 (sparc32_linux_collect_core_fpregset): Likewise.
6536 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6537 (sparc_gregmap, sparc_fpregmap): ... these.
6538 (sparc_supply_gregset, sparc_collect_gregset)
6539 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6540 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6541 (_initialize_sparc_nat): Rename regmaps.
6542 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6543 (sparc_gregmap, sparc_fpregmap): ... these.
6544 (sparc_supply_gregset, sparc_collect_gregset)
6545 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6546 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6548 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6549 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6551 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6553 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6554 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6555 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6557 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6558 (sparc32_bsd_fpregset): Rename to...
6559 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6560 (sparc32_bsd_fpregmap): ... these.
6561 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6562 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6563 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6564 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6565 (struct sparc_gregmap, struct sparc_fpregmap)
6566 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6567 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6568 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6569 (sparc32_supply_regset, sparc32_collect_gregset)
6570 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6572 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6573 (sparc64_linux_ptrace_gregmap): ... this.
6574 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6575 (_initialize_sparc64_linux_nat): Rename regmaps.
6576 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6577 (sparc64_linux_core_gregmap): ... this.
6578 (sparc64_linux_supply_core_gregset)
6579 (sparc64_linux_collect_core_gregset)
6580 (sparc64_linux_supply_core_fpregset)
6581 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6582 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6583 (sparc64_sol2_fpregset): Rename to...
6584 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6585 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6586 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6588 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6589 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6590 (sparc64_bsd_fpregset): Rename to...
6591 (struct sparc_gregmap, sparc64_sol2_gregmap)
6592 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6593 (sparc64_bsd_fpregmap): ... these.
6594 (sparc64_supply_gregset, sparc64_collect_gregset)
6595 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6597 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6598 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6599 (sparc64fbsd_gregmap): ... this.
6600 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6601 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6603 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6604 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6605 (sparc64nbsd_collect_fpregset): Likewise.
6606 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6607 (sparc64nbsd_gregmap): ... this.
6608 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6610 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6611 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6612 (sparc64obsd_gregmap): ... this.
6613 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6615 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6616 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6617 (sparc32nbsd_gregmap): ... this.
6618 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6621 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6623 * score-tdep.c (score7_linux_gregset): New static regset
6625 (score7_linux_regset_from_core_section): Remove dynamic regset
6627 (score_gdbarch_init): Drop allocation of tdep structure.
6628 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6632 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6634 (am33_regset_from_core_section): Remove dynamic regset
6637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6639 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6640 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6642 (mips_linux_regset_from_core_section): Remove dynamic regset
6644 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6645 'gregset64', 'fpregset', and 'fpregset64'.
6646 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6647 deleted tdep fields.
6649 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6651 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6653 (amd64_regset_from_core_section): Remove dynamic regset
6655 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6657 (amd64obsd_regset_from_core_section): Remove dynamic regset
6659 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6661 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6662 x86-common regset supply function.
6663 * i386-tdep.c (i386_collect_gregset): Make static.
6664 (i386_gregset): New global regset structure.
6665 (i386_fpregset, i386_xstateregset): New static regset structures.
6666 (i386_regset_from_core_section): Remove dynamic regset
6668 (i386_gdbarch_init): Remove initialization of tdep fields
6669 'gregset', 'fpregset', and 'xstateregset'.
6670 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6671 'fpregset', and 'xstateregset'.
6672 (i386_collect_gregset): Remove prototype.
6673 (i386_gregset): New declaration.
6674 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6676 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6679 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6681 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6682 (arm_linux_vfpregset): New static regset structures.
6683 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6685 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6686 and 'vfpregset' fields.
6688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6690 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6691 (aarch64_linux_fpregset): New static regset structures.
6692 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6693 of regset structures.
6694 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6697 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6699 * regset.h (struct regset): Remove gdbarch field.
6700 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6701 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6702 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6704 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6705 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6706 (ppc32_linux_vsxregset): Likewise.
6707 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6708 via the regcache instead of the regset.
6709 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6710 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6711 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6712 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6715 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6717 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6718 Constify structures.
6719 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6720 (alphanbsd_aout_gregset): Likewise.
6721 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6722 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6724 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6725 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6727 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6728 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6729 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6730 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6731 * m88k-tdep.c (m88k_gregset): Likewise.
6732 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6733 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6734 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6735 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6736 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6737 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6738 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6739 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6740 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6742 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6743 * sh-tdep.h (sh_corefile_gregset): Likewise.
6744 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6745 * vax-tdep.c (vax_gregset): Likewise.
6747 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6749 Fix TLS access for -static -pthread.
6750 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6751 (try_thread_db_load_1): Initialize it.
6752 (thread_db_get_thread_local_address): Call it if LM is zero.
6753 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6754 * target.h (struct target_ops) (to_get_thread_local_address): Add
6755 load_module_addr comment.
6757 2014-05-21 Pedro Alves <palves@redhat.com>
6759 * dcache.c (dcache_read_memory_partial): If reading the cache line
6760 fails, fallback to reading just the memory the caller wanted.
6762 2014-05-20 Doug Evans <dje@google.com>
6764 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6765 instead of get_current_arch.
6767 2014-05-20 Pedro Alves <palves@redhat.com>
6769 * NEWS: Mention that compare-sections now works with all targets.
6771 * remote.c (PACKET_qCRC): New enum value.
6772 (remote_verify_memory): Don't send qCRC if the target has no
6773 execution. Use packet_support/packet_ok. If the target doesn't
6774 support the qCRC packet, fallback to a deep memory copy.
6775 (compare_sections_command): Say "target image" instead of "remote
6777 (_initialize_remote): Add PACKET_qCRC to the list of config
6778 packets that have no associated command. Extend comment.
6779 * target.c (simple_verify_memory, default_verify_memory): New
6781 * target.h (struct target_ops) <to_verify_memory>: Default to
6782 default_verify_memory.
6783 (simple_verify_memory): New declaration.
6784 * target-delegates.c: Regenerate.
6786 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6788 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6790 2014-05-20 Hui Zhu <hui@codesourcery.com>
6791 Yao Qi <yao@codesourcery.com>
6794 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6795 and change address of sp and pc.
6797 2014-05-19 Tom Tromey <tromey@redhat.com>
6799 * gdbtypes.c (rank_function): Use XNEWVEC.
6800 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6802 2014-05-19 Doug Evans <dje@google.com>
6804 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6805 build_type_unit_groups and moved closer to only caller. Remove
6806 arguments. All references updated. Remove outdated .gdb_index
6808 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6809 build_type_psymtabs_1.
6811 2014-05-19 Doug Evans <dje@google.com>
6813 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6814 n_type_unit_groups, all_type_unit_groups. All uses removed.
6815 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6816 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6817 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6818 (add_type_unit_group_to_table): Delete.
6820 2014-05-19 Doug Evans <dje@google.com>
6822 * eval.c (evaluate_subexp_standard): Add some comments.
6824 2014-05-17 Doug Evans <xdje42@gmail.com>
6826 * progspace.c (remove_program_space): Delete, unused.
6827 * progspace.h (remove_program_space): Ditto.
6829 2014-05-17 Doug Evans <xdje42@gmail.com>
6831 * inferior.c (prune_inferiors): Fix comment.
6832 (remove_inferior_command): Call prune_program_spaces.
6834 2014-05-16 Doug Evans <dje@google.com>
6836 New command line option -D.
6838 * main.c (set_gdb_data_directory): New function.
6839 (captured_main): Recognize -D. Flag error for --data-directory "".
6840 Call set_gdb_data_directory.
6841 (print_gdb_help): Print --data-directory, -D.
6842 * main.h (set_gdb_data_directory): Declare.
6843 * top.c (staged_gdb_datadir): New static global.
6844 (set_gdb_datadir): Call set_gdb_data_directory
6845 (show_gdb_datadir): New function.
6846 (init_main): Update init of data-directory parameter.
6848 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6850 Import the "dirfd" gnulib module.
6851 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6852 * gnulib/aclocal.m4: Update.
6853 * gnulib/config.in: Update.
6854 * gnulib/configure: Update.
6855 * gnulib/import/Makefile.am: Update.
6856 * gnulib/import/Makefile.in: Update.
6857 * gnulib/import/dirfd.c: New.
6858 * gnulib/import/m4/dirfd.m4: New.
6859 * gnulib/import/m4/gnulib-cache.m4: Update.
6860 * gnulib/import/m4/gnulib-comp.m4: Update.
6862 2014-05-16 Pierre Muller <muller@sourceware.org>
6863 Yao Qi <yao@codesourcery.com>
6865 * valprint.c (print_wchar): Move the code on checking whether
6866 W is a printable wide char to the default branch of switch
6867 statement below. Call wchar_printable instead of gdb_iswprint.
6869 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6871 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6872 ldr.w and ldrd instructions.
6874 2014-05-15 Doug Evans <dje@google.com>
6876 * dwarf2read.c (read_structure_type): Delete outdated comments.
6878 2014-05-14 Tom Tromey <tromey@redhat.com>
6880 * macrocmd.c (print_macro_definition): Reindent.
6882 2014-05-13 Doug Evans <xdje42@gmail.com>
6884 * python/py-cmd.c (cmdpy_completer): Add comment.
6885 (completers): Make const.
6887 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6889 * infrun.c (resume): Remove should_resume (unused). Move up
6890 declaration of resume_ptid.
6892 2014-05-13 Tom Tromey <tromey@redhat.com>
6894 * language.h (unop_type_check): Remove.
6895 (binop_type_check): Don't declare.
6897 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6899 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6900 call to regcache_raw_collect.
6902 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6904 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6905 mi_console->quote as the quoting character.
6907 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6909 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6911 2014-04-29 Tom Tromey <tromey@redhat.com>
6913 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6914 "show debug varobj".
6916 2014-05-07 Kyle McMartin <kyle@redhat.com>
6918 Pushed by Joel Brobecker <brobecker@adacore.com>.
6919 * aarch64-tdep.c (aarch64_software_single_step): New function.
6920 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6921 with aarch64_software_single_step.
6923 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6927 2014-05-05 Keith Seitz <keiths@redhat.com>
6929 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6930 variable or history value is successfully parsed.
6932 2014-05-05 Yao Qi <yao@codesourcery.com>
6933 Pedro Alves <palves@redhat.com>
6935 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6936 address of blocks that intersects the requested range. Trim
6937 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6939 * ctf.c (ctf_xfer_partial): Likewise.
6941 2014-05-05 Yao Qi <yao@codesourcery.com>
6943 * printcmd.c (display_command): Remove the check to
6944 target_has_execution.
6946 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6948 * ppcobsd-nat.c: Include "obsd-nat.h".
6949 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6951 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6953 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6955 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6956 and 16-bit signed and unsigned arguments. Update comment.
6957 (stap_parse_probe_arguments): Extend code to handle such
6958 arguments. Use warning instead of complaint to notify about
6959 unrecognized bitness.
6961 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6963 PR breakpoints/16889
6964 * stap-probe.c (stap_parse_probe_arguments): Simplify
6965 check for non-prefixed probes (i.e., probes whose
6966 arguments do not start with "N@"). Always set the
6967 argument type to a sane value.
6969 2014-05-01 David Taylor <dtaylor@emc.com>
6971 * remote.c (compare_sections_command): Add -r option to compare
6972 all loadable read-only sections.
6974 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6976 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6977 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6979 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6980 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6981 Remove unused CORE_ADDR argument. Update all callers.
6983 2014-04-29 Pedro Alves <palves@redhat.com>
6985 * remote.c (struct packet_config) <detect>: Extend comment.
6986 (add_packet_config_cmd): Don't set the config's detect or support
6988 (init_all_packet_configs): Also initialize the config's 'detect'
6990 (reset_all_packet_configs_support): New function.
6991 (remote_open_1): Call reset_all_packet_configs_support instead of
6992 init_all_packet_configs.
6993 (_initialize_remote): Initialize all packet configs. Assert that
6994 all packets have an associated command, except a few known
6997 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6999 * dwarf2read.c (read_subrange_type): Handle dynamic
7000 DW_AT_lower_bound attributes.
7002 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7004 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7005 dynamic bounds before computing its upper bound.
7006 (ada_discrete_type_low_bound): Same as above with the lower bound.
7008 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7010 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7011 range types. Adjust the array handling implementation to
7012 take advantage of this change.
7013 (resolve_dynamic_range): New function, mostly extracted from
7014 resolve_dynamic_bounds.
7015 (resolve_dynamic_array): New function, mostly extracted from
7016 resolve_dynamic_bounds.
7017 (resolve_dynamic_bounds): Delete.
7018 (resolve_dynamic_type): Reimplement. Add handling of
7019 TYPE_CODE_RANGE types.
7021 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7023 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7024 handling of parallel ___XA types.
7026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7028 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7029 unnecessary second call to static_unwrap_type.
7031 2014-04-27 Hui Zhu <hui@codesourcery.com>
7033 * stack.c (print_frame_info): Call do_gdb_disassembly with
7034 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7036 2014-04-26 Doug Evans <xdje42@gmail.com>
7038 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7040 2014-04-25 Pedro Alves <palves@redhat.com>
7043 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7044 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7045 and newline from built string.
7046 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7047 (linux_ptrace_attach_fail_reason): ... this.
7048 * linux-nat.c (linux_nat_attach): Adjust to use
7049 linux_ptrace_attach_fail_reason.
7051 2014-04-25 Pedro Alves <palves@redhat.com>
7053 * remote.c (struct remote_state): Remove multi_process_aware,
7054 non_stop_aware, cond_tracepoints, cond_breakpoints,
7055 breakpoint_commands, fast_tracepoints, static_tracepoints,
7056 install_in_trace, disconnected_tracing,
7057 enable_disable_tracepoints, string_tracing, and
7058 augmented_libraries_svr4_read fields.
7059 (remote_multi_process_p): Move further below in the file.
7060 (struct packet_config): Add comments.
7061 (update_packet_config): Delete function.
7062 (show_packet_config_cmd): Use packet_config_support.
7063 (add_packet_config_cmd): Use NULL as set callback.
7064 (packet_ok): "set remote foo-packet"-style commands no longer
7065 change config->supported -- adjust.
7066 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7067 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7068 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7069 (PACKET_QNonStop, PACKET_multiprocess_feature)
7070 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7071 (PACKET_DisconnectedTracing_feature)
7072 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7073 (set_remote_protocol_packet_cmd): Delete function.
7074 (packet_config_support, packet_support): New functions.
7075 (set_remote_protocol_Z_packet_cmd): Don't call
7076 update_packet_config.
7077 (remote_query_attached, remote_pass_signals)
7078 (remote_program_signals, remote_threads_info)
7079 (remote_threads_extra_info, remote_start_remote): Use
7081 (remote_start_remote): Use packet_config_support and
7083 (init_all_packet_configs): Set all packets to unknown support,
7084 instead of calling update_packet_config.
7085 (remote_check_symbols): Use packet_support.
7086 (remote_supported_packet): Unconditionally set the packet config's
7088 (remote_multi_process_feature, remote_non_stop_feature)
7089 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7090 (remote_breakpoint_commands_feature)
7091 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7092 (remote_install_in_trace_feature)
7093 (remote_disconnected_tracing_feature)
7094 (remote_enable_disable_tracepoint_feature)
7095 (remote_string_tracing_feature)
7096 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7097 (remote_protocol_features): Adjust to use remote_supported_packet
7098 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7099 "ConditionalTracepoints", "ConditionalBreakpoints",
7100 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7101 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7102 "EnableDisableTracepoints", and "tracenz".
7103 (remote_query_supported): Use packet_support.
7104 (remote_open_1): Adjust.
7105 (extended_remote_attach_1): Use packet_support. Switch on the
7106 result of packet_ok instead of checking whether the packet ended
7108 (remote_vcont_resume): Use packet_support.
7109 (remote_resume, remote_stop_ns, fetch_register_using_p)
7110 (remote_prepare_to_store, store_register_using_P)
7111 (check_binary_download, remote_write_bytes): Use packet_support.
7112 (remote_vkill): Use packet_support. Switch on the result of
7113 packet_ok instead of checking whether the packet ended up
7115 (extended_remote_supports_disable_randomization): Use
7117 (extended_remote_run): Switch on the result of packet_ok instead
7118 of checking whether the packet ended up disabled.
7119 (remote_insert_breakpoint, remote_remove_breakpoint)
7120 (remote_insert_watchpoint, remote_remove_watchpoint)
7121 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7123 (remote_search_memory): Use packet_config_support.
7124 (remote_get_thread_local_address, remote_get_tib_address)
7125 (remote_hostio_send_command, remote_can_execute_reverse): Use
7127 (remote_supports_cond_tracepoints)
7128 (remote_supports_cond_breakpoints)
7129 (remote_supports_fast_tracepoints)
7130 (remote_supports_static_tracepoints)
7131 (remote_supports_install_in_trace)
7132 (remote_supports_enable_disable_tracepoint)
7133 (remote_supports_string_tracing)
7134 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7135 the packet config says the feature is enabled or disabled.
7136 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7137 (remote_get_trace_status): Use packet_support.
7138 (remote_set_disconnected_tracing): Adjust to check whether the
7139 feature is enabled with packet_support.
7140 (remote_set_trace_buffer_size, remote_use_agent)
7141 (remote_can_use_agent, remote_supports_btrace): Use
7143 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7144 Use packet_config_support.
7145 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7146 the packet config says the feature is enabled or disabled.
7147 (set_range_stepping): Use packet_support.
7149 2014-04-25 Tom Tromey <tromey@redhat.com>
7151 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7154 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7156 * NEWS: Mention support for C99 variable length arrays.
7158 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7160 * ada-lang.c (standard_exc): Expand introductory comment.
7162 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7163 Walfred Tedeschi <walfred.tedeschi@intel.com>
7165 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7167 (amd64_linux_read_description): Add code to handle AVX512 xstate
7168 mask and return respective tdesc.
7169 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7170 and features/i386/x32-avx512-linux.c.
7171 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7172 (amd64_linux_core_read_description): Add code to handle AVX512
7173 xstate mask and return respective tdesc.
7174 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7175 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7177 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7178 (tdesc_amd64_avx512_linux): New prototype.
7179 (tdesc_x32_avx512_linux): Likewise.
7180 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7181 features/i386/x32-avx512.c.
7182 (amd64_ymm_avx512_names): New register names for pseudo
7184 (amd64_ymmh_avx512_names): New register names for raw registers
7186 (amd64_k_names): New register names for K registers.
7187 (amd64_zmmh_names): New register names for ZMM raw registers.
7188 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7189 (amd64_xmm_avx512_names): New register names for XMM16-31
7191 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7193 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7194 if feature is present.
7195 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7196 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7197 (AMD64_NUM_REGS): Adjust to new number of registers.
7198 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7199 registers supplied via XSTATE by AVX512 registers.
7200 (i386_linux_read_description): Add case for AVX512.
7201 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7202 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7203 (i386_linux_core_read_description): Add case for AVX512.
7204 (i386_linux_init_abi): Install supported register note section
7206 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7208 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7209 registers to be number of zmm7h + 1.
7210 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7211 * i386-tdep.c: Include features/i386/i386-avx512.c.
7212 (i386_zmm_names): Add ZMM pseudo register names array.
7213 (i386_zmmh_names): Add ZMM raw register names array.
7214 (i386_k_names): Add K raw register names array.
7215 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7216 registers. AVX512 has 16 more ZMM registers than there are YMM
7218 (i386_zmmh_regnum_p): Add function to look up register number of
7220 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7221 (i386_k_regnum_p): Likewise for K raw registers.
7222 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7223 registers added by AVX512.
7224 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7225 registers added by AVX512.
7226 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7228 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7229 (i386_pseudo_register_name): Add ZMM pseudo registers.
7230 (i386_zmm_type): Construct and return vector registers type for ZMM
7232 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7233 ZMM0-31 pseudo registers and K registers.
7234 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7235 and YMM16-31 registers from register cache.
7236 (i386_pseudo_register_write): Add code to write K, ZMM and
7238 (i386_register_reggroup_p): Add code to include/exclude AVX512
7239 registers in/from respective register groups.
7240 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7241 registers if feature is present in xcr0.
7242 (i386_gdbarch_init): Add code to initialize AVX512 feature
7243 variables in tdep structure, wire in pseudo registers and call
7244 initialize_tdesc_i386_avx512.
7245 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7247 (i386_regnum): Add AVX512 registers.
7248 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7249 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7250 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7251 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7253 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7254 (i386_ymm_avx512_regnum_p): Likewise.
7255 (i386_k_regnum_p): Likewise.
7256 (i386_zmm_regnum_p): Likewise.
7257 (i386_zmmh_regnum_p): Likewise.
7258 * i387-tdep.c : Update year in copyright notice.
7259 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7261 (XSAVE_YMM_AVX512_ADDR): New macro.
7262 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7264 (XSAVE_XMM_AVX512_ADDR): New macro.
7265 (xsave_avx512_k_offset): New table for K register offsets in
7267 (XSAVE_AVX512_K_ADDR): New macro.
7268 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7270 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7271 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7273 (i387_collect_xsave): Add code to collect AVX512 registers from
7275 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7276 of XMM16-31 registers.
7277 (I387_NUM_K_REGS): New define for number of K registers.
7278 (I387_K0_REGNUM): New define for K0 register number.
7279 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7280 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7281 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7283 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7284 (I387_XMM16_REGNUM): New define for XMM16 register number.
7285 (I387_YMM0_REGNUM): New define for YMM0 register number.
7286 (I387_KEND_REGNUM): New define for last K register number.
7287 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7288 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7290 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7292 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7294 * features/Makefile: Add AVX512 related files.
7295 * features/i386/32bit-avx512.xml: New file.
7296 * features/i386/64bit-avx512.xml: Likewise.
7297 * features/i386/amd64-avx512-linux.c: Likewise.
7298 * features/i386/amd64-avx512-linux.xml: Likewise.
7299 * features/i386/amd64-avx512.c: Likewise.
7300 * features/i386/amd64-avx512.xml: Likewise.
7301 * features/i386/i386-avx512-linux.c: Likewise.
7302 * features/i386/i386-avx512-linux.xml: Likewise.
7303 * features/i386/i386-avx512.c: Likewise.
7304 * features/i386/i386-avx512.xml: Likewise.
7305 * features/i386/x32-avx512-linux.c: Likewise.
7306 * features/i386/x32-avx512-linux.xml: Likewise.
7307 * features/i386/x32-avx512.c: Likewise.
7308 * features/i386/x32-avx512.xml: Likewise.
7309 * regformats/i386/amd64-avx512-linux.dat: New file.
7310 * regformats/i386/amd64-avx512.dat: Likewise.
7311 * regformats/i386/i386-avx512-linux.dat: Likewise.
7312 * regformats/i386/i386-avx512.dat: Likewise.
7313 * regformats/i386/x32-avx512-linux.dat: Likewise.
7314 * regformats/i386/x32-avx512.dat: Likewise.
7315 * NEWS: Add note about new support for AVX512.
7318 2014-04-23 Pedro Alves <palves@redhat.com>
7320 * breakpoint.c (insert_bp_location): Tolerate errors if the
7321 breakpoint is set in a user-loaded objfile.
7322 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7323 location is marked shlib_disabled. If the breakpoint is set in a
7324 user-loaded objfile is a GDB-side memory breakpoint, validate it
7325 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7326 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7328 * mem-break.c (memory_validate_breakpoint): New function.
7329 * objfiles.c (userloaded_objfile_contains_address_p): New
7331 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7332 * target.h (memory_validate_breakpoint): New declaration.
7334 2014-04-23 Pedro Alves <palves@redhat.com>
7336 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7337 the breakpoint is set in a shared library, only suppress
7338 errors for software breakpoints, not hardware breakpoints.
7340 2014-04-22 Pedro Alves <palves@redhat.com>
7342 * infrun.c (schedlock_applies): New function, factored out from
7343 find_thread_needs_step_over.
7344 (find_thread_needs_step_over): Use it.
7345 (switch_back_to_stepped_thread): Always clear trap_expected if the
7346 step over is finished. Return early if scheduler locking applies.
7347 Look for the stepping thread and a potential step-over thread with
7349 (currently_stepping_or_nexting_callback): Delete.
7351 2014-04-22 Nick Clifton <nickc@redhat.com>
7353 * NEWS: Mention that ARM sim now supports tracing.
7355 2014-04-22 Yao Qi <yao@codesourcery.com>
7357 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7359 * tracefile.c (tracefile_fetch_registers): ... it. New
7361 * tracefile.h (tracefile_fetch_registers): Declare.
7362 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7363 tracefile_fetch_registers.
7365 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7368 * windows-nat.c (thread_rec): Don't display a warning when
7369 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7370 fails for any reason, set th->suspended to -1, so that we don't
7371 try to resume such a thread. Also, don't return NULL in these
7372 cases, to avoid completely ruin the session due to "PC register is
7373 not available" error.
7374 (do_windows_fetch_inferior_registers): Check errors in
7375 GetThreadContext call.
7376 (windows_continue): Accept an additional argument KILLED; if not
7377 zero, ignore errors in the SetThreadContext call, since the
7378 inferior was killed and is shutting down.
7379 (windows_resume, get_windows_debug_event)
7380 (windows_create_inferior, windows_mourn_inferior)
7381 (windows_kill_inferior): All callers of windows_continue changed
7382 to adjust to its new calling sequence.
7384 2014-04-19 Yao Qi <yao@codesourcery.com>
7386 * ctf.c (ctf_open): Call post_create_inferior.
7388 2014-04-19 Yao Qi <yao@codesourcery.com>
7390 * ctf.c (handle_id): New static variable.
7391 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7392 value. Get the declaration of event "register" and get length
7393 of field "contents".
7395 2014-04-19 Yao Qi <yao@codesourcery.com>
7397 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7399 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7401 * valops.c (oload_method_static): Remove unnecessary argument
7402 METHOD. Update all callers.
7404 2014-04-18 Pedro alves <palves@redhat.com>
7405 Tom Tromey <tromey@redhat.com>
7408 * frame.c (get_prev_frame_1): Rename to ...
7409 (get_prev_frame_always): ... this, and make extern. Adjust.
7410 (skip_artificial_frames): Use get_prev_frame_always.
7411 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7412 (get_frame_unwind_stop_reason): Adjust to rename.
7413 * frame.h (get_prev_frame_always): Declare.
7414 * inline-frame.c: Include frame.h.
7415 (inline_frame_this_id): Use get_prev_frame_always.
7417 2014-04-18 Tristan Gingold <gingold@adacore.com>
7419 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7420 code by using bfd_mach_o_get_base_address.
7422 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7424 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7425 (spu_ax_pseudo_register_collect): New function.
7426 (spu_ax_pseudo_register_push_stack): Likewise.
7427 (spu_dwarf_reg_to_regnum): Likewise.
7428 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7430 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7432 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7433 Replace FRAME argument with FRAME_ID.
7434 * gdbarch.c, gdbarch.h: Regenerate.
7435 * findvar.c (default_value_from_register): Add GDBARCH argument;
7436 replace FRAME by FRAME_ID. No longer call get_frame_id.
7437 (value_from_register): Update call to gdbarch_value_from_register.
7438 * value.h (default_value_from_register): Update prototype.
7439 * s390-linux-tdep.c (s390_value_from_register): Update interface
7440 and call to default_value_from_register.
7441 * spu-tdep.c (spu_value_from_register): Likewise.
7443 * findvar.c (address_from_register): Remove TYPE argument.
7444 Do not call value_from_register; use gdbarch_value_from_register
7445 with null_frame_id instead.
7446 * value.h (address_from_register): Update prototype.
7447 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7448 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7449 address_from_register interface change.
7451 2014-04-17 Yao Qi <yao@codesourcery.com>
7453 * gdbtypes.h: Update comments to link to types and macros'
7456 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7458 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7460 2014-04-16 Keith Seitz <keiths@redhat.com>
7463 * dwarf2read.c (skip_one_die): Check that all relative-offset
7464 sibling DIEs fall within range of the current reader's buffer.
7465 (read_partial_die): Likewise.
7467 2014-04-16 Keith Seitz <keiths@redhat.com>
7470 * cp-namespace.c (lookup_symbol_file): If the type name of
7471 `this' is NULL, return immediately.
7473 2014-04-14 Keith Seitz <keiths@redhat.com>
7476 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7477 from symbol_matches_domain in symtab.c. All local callers
7478 of symbol_matches_domain updated.
7479 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7480 search STRUCT_DOMAIN.
7481 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7482 independently. standard_lookup will do that automatically.
7483 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7484 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7485 (cp_lookup_symbol_in_namespace): Likewise.
7486 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7487 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7488 may return a STRUCT_DOMAIN match.
7489 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7490 * cp-support.c: Include language.h.
7491 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7493 * psymtab.c (match_partial_symbol): Compare the requested
7494 domain with the symbol's domain directly.
7495 (lookup_partial_symbol): Likewise.
7496 * symtab.c (lookup_symbol_in_language): Explain when/why
7497 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7498 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7499 appropriate languages.
7500 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7501 and moved to ada-lang.c
7502 (lookup_block_symbol): Explain that this function only returns
7503 symbol matching the requested DOMAIN.
7504 Compare the requested domain with the symbol's domain directly.
7505 (iterate_over_symbols): Compare the requested domain with the
7506 symbol's domain directly.
7507 * symtab.h (symbol_matches_domain): Remove.
7509 2014-04-14 Tom Tromey <tromey@redhat.com>
7512 * c-exp.y (type_aggregate_p): New function.
7513 (qualified_name, classify_inner_name): Use it.
7514 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7515 and TYPE_TARGET_TYPE of an enum type.
7516 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7518 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7519 handle TYPE_DECLARED_CLASS.
7520 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7522 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7523 * valops.c (enum_constant_from_type): New function.
7524 (value_aggregate_elt): Use it.
7525 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7528 2014-04-14 Tom Tromey <tromey@redhat.com>
7530 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7531 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7533 * value.h (value_aggregate_elt): Update.
7535 2014-04-14 Tom Tromey <tromey@redhat.com>
7537 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7539 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7541 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7542 (evaluate_subexp_standard): Pass noside argument.
7543 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7544 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7545 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7546 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7547 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7549 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7552 points to a constant blob.
7554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7556 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7557 property and store it as the high bound and flag the range accordingly.
7558 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7559 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7560 * gdbtypes.h (enum range_flags): New enum.
7561 (struct range_bounds): Add flags member.
7563 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7565 * c-typeprint.c (c_type_print_varspec_suffix): Added
7566 check for not yet resolved high bound. If unresolved, print
7567 "variable length" string to the console instead of random
7570 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7572 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7574 (ada_template_to_fixed_record_type_1): Likewise.
7575 (ada_to_fixed_type_1): Likewise.
7576 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7577 (cp_print_value): Likewise.
7578 * d-valprint.c (dynamic_array_type): Likewise.
7579 * findvar.c (address_of_variable): Likewise.
7580 * jv-valprint.c (java_value_print): Likewise.
7581 * valops.c (value_ind): Likewise.
7582 * value.c (coerce_ref): Likewise.
7584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7586 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7587 value and retrieve the dynamic type size.
7589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7591 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7592 passed to sizeof is dynamic evaluate the argument to compute the length.
7594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7595 Joel Brobecker <brobecker@adacore.com>
7597 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7598 (dwarf2_evaluate_property): New function.
7599 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7600 * dwarf2read.c (attr_to_dynamic_prop): New function.
7601 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7603 * gdbtypes.c: Include dwarf2loc.h.
7604 (is_dynamic_type): New function.
7605 (resolve_dynamic_type): New function.
7606 (resolve_dynamic_bounds): New function.
7607 (get_type_length): New function.
7608 (check_typedef): Use get_type_length to compute type length.
7609 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7610 (TYPE_LOW_BOUND_KIND): New macro.
7611 (is_dynamic_type): New function prototype.
7612 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7613 to resolve dynamic properties of the type. Update comment.
7614 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7616 2014-04-14 Richard Henderson <rth@redhat.com>
7618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7620 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7621 Doug Evans <xdje42@gmail.com>
7623 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7624 dereference TYPE_CODE_REF values.
7626 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7628 Revert the following changes due to regressions:
7630 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7631 (dwarf2_evaluate_property): New function.
7632 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7633 * dwarf2read.c (attr_to_dynamic_prop): New function.
7634 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7636 * gdbtypes.c: Include dwarf2loc.h.
7637 (is_dynamic_type): New function.
7638 (resolve_dynamic_type): New function.
7639 (resolve_dynamic_bounds): New function.
7640 (get_type_length): New function.
7641 (check_typedef): Use get_type_length to compute type length.
7642 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7643 (TYPE_LOW_BOUND_KIND): New macro.
7644 (is_dynamic_type): New function prototype.
7645 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7646 to resolve dynamic properties of the type. Update comment.
7647 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7649 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7650 passed to sizeof is dynamic evaluate the argument to compute the length.
7652 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7653 value and retrieve the dynamic type size.
7655 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7656 (ada_template_to_fixed_record_type_1): Likewise.
7657 (ada_to_fixed_type_1): Likewise.
7658 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7659 (cp_print_value): Likewise.
7660 * d-valprint.c (dynamic_array_type): Likewise.
7661 * eval.c (evaluate_subexp_with_coercion): Likewise.
7662 * findvar.c (address_of_variable): Likewise.
7663 * jv-valprint.c (java_value_print): Likewise.
7664 * valops.c (value_ind): Likewise.
7665 * value.c (coerce_ref): Likewise.
7667 * c-typeprint.c (c_type_print_varspec_suffix): Added
7668 check for not yet resolved high bound. If unresolved, print
7669 "variable length" string to the console instead of random
7672 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7673 property and store it as the high bound and flag the range accordingly.
7674 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7675 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7676 * gdbtypes.h (enum range_flags): New enum.
7677 (struct range_bounds): Add flags member.
7679 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7680 points to a constant blob.
7682 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7683 (evaluate_subexp_standard): Pass noside argument.
7684 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7685 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7686 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7687 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7688 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7690 2014-04-11 Keith Seitz <keiths@redhat.com>
7693 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7694 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7697 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7699 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7700 (evaluate_subexp_standard): Pass noside argument.
7701 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7702 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7703 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7704 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7705 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7707 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7709 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7710 points to a constant blob.
7712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7714 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7715 property and store it as the high bound and flag the range accordingly.
7716 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7717 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7718 * gdbtypes.h (enum range_flags): New enum.
7719 (struct range_bounds): Add flags member.
7721 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7723 * c-typeprint.c (c_type_print_varspec_suffix): Added
7724 check for not yet resolved high bound. If unresolved, print
7725 "variable length" string to the console instead of random
7728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7730 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7731 (ada_template_to_fixed_record_type_1): Likewise.
7732 (ada_to_fixed_type_1): Likewise.
7733 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7734 (cp_print_value): Likewise.
7735 * d-valprint.c (dynamic_array_type): Likewise.
7736 * eval.c (evaluate_subexp_with_coercion): Likewise.
7737 * findvar.c (address_of_variable): Likewise.
7738 * jv-valprint.c (java_value_print): Likewise.
7739 * valops.c (value_ind): Likewise.
7740 * value.c (coerce_ref): Likewise.
7742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7744 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7745 value and retrieve the dynamic type size.
7747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7749 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7750 passed to sizeof is dynamic evaluate the argument to compute the length.
7752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7754 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7755 (dwarf2_evaluate_property): New function.
7756 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7757 * dwarf2read.c (attr_to_dynamic_prop): New function.
7758 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7760 * gdbtypes.c: Include dwarf2loc.h.
7761 (is_dynamic_type): New function.
7762 (resolve_dynamic_type): New function.
7763 (resolve_dynamic_bounds): New function.
7764 (get_type_length): New function.
7765 (check_typedef): Use get_type_length to compute type length.
7766 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7767 (TYPE_LOW_BOUND_KIND): New macro.
7768 (is_dynamic_type): New function prototype.
7769 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7770 to resolve dynamic properties of the type. Update comment.
7771 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7773 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7775 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7776 declaring high/low bounds and change uses accordingly. Call
7777 create_range_type instead of create_static_range_type.
7778 * gdbtypes.c (create_range_type): New function.
7779 (create_range_type): Convert bounds into struct bound_prop and pass
7780 them to create_range_type.
7781 * gdbtypes.h (struct bound_prop): New struct.
7782 (create_range_type): New function prototype.
7783 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7784 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7785 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7787 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7791 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7792 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7793 * ada-lang.c: All uses of create_range_type updated.
7794 * coffread.c: All uses of create_range_type updated.
7795 * dwarf2read.c: All uses of create_range_type updated.
7796 * f-exp.y: All uses of create_range_type updated.
7797 * m2-valprint.c: All uses of create_range_type updated.
7798 * mdebugread.c: All uses of create_range_type updated.
7799 * stabsread.c: All uses of create_range_type updated.
7800 * valops.c: All uses of create_range_type updated.
7801 * valprint.c: All uses of create_range_type updated.
7803 2014-04-10 Pedro Alves <palves@redhat.com>
7805 * breakpoint.c (single_step_breakpoints)
7806 (single_step_gdbarch): Move up in the file.
7807 (one_breakpoint_xfer_memory): New function, factored out from ...
7808 (breakpoint_xfer_memory): ... here. Also process single-step
7811 2014-04-09 Tristan Gingold <gingold@adacore.com>
7813 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7815 (darwin_decode_exception_message): Free port only after use.
7817 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7819 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7820 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7821 when setting the size of call_length.
7823 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7825 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7826 dereference TYPE_CODE_REF values.
7828 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7830 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7831 end of warning message.
7833 2014-04-03 Doug Evans <dje@google.com>
7835 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7836 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7838 2014-04-02 Alan Modra <amodra@gmail.com>
7840 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7841 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7842 (struct symbol_file_add_from_memory_args): Add size field.
7843 (find_vdso_size): New function.
7844 (add_vsyscall_page): Attempt to find vdso size.
7846 2014-04-01 Doug Evans <dje@google.com>
7848 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7850 2014-04-01 Tristan Gingold <gingold@adacore.com>
7852 * darwin-nat.c (darwin_encode_reply): Add prototype.
7853 (darwin_decode_exception_message): Reply to unknown inferiors.
7854 (darwin_decode_message): Handle message by id. Ignore message
7855 to unknown inferior.
7856 (darwin_wait): Discard unknown messages, add debug trace.
7858 2014-03-31 Doug Evans <dje@google.com>
7860 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7863 2014-03-31 Doug Evans <dje@google.com>
7865 New option "set print symbol-loading".
7867 * solib.c (solib_read_symbols): Only print symbol loading messages
7869 (solib_add): If symbol loading is in "brief" mode, notify user
7870 symbols are being loaded.
7871 (reload_shared_libraries_1): Ditto.
7872 * symfile.c (print_symbol_loading_off): New static global.
7873 (print_symbol_loading_brief): New static global.
7874 (print_symbol_loading_full): New static global.
7875 (print_symbol_loading_enums): New static global.
7876 (print_symbol_loading): New static global.
7877 (print_symbol_loading_p): New function.
7878 (symbol_file_add_with_addrs): Only print symbol loading messages
7880 (_initialize_symfile): Register "print symbol-loading" set/show
7882 * symfile.h (print_symbol_loading_p): Declare.
7884 2014-03-30 Doug Evans <xdje42@gmail.com>
7886 * infrun.c (set_last_target_status): New function.
7887 (handle_inferior_event): Call it.
7889 2014-03-30 Doug Evans <xdje42@gmail.com>
7891 * inferior.h (enum stop_kind): Improve comment.
7893 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7895 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7896 a reference, strip the reference layer before calling
7897 the lang_ops value_has_mutated callback.
7899 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7901 Remove some globals from our parser.
7902 * language.c (unk_lang_parser): Add "struct parser_state"
7904 * language.h (struct language_defn) <la_parser>: Likewise.
7905 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7906 (initialize_expout): Add "struct parser_state" argument.
7907 Rewrite function to use the parser state.
7908 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7909 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7910 write_exp_elt_longcst, write_exp_elt_dblcst,
7911 write_exp_elt_decfloatcst, write_exp_elt_type,
7912 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7913 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7914 write_dollar_variable): Likewise.
7915 (parse_exp_in_context_1): Use parser state.
7916 (insert_type_address_space): Add "struct parser_state" argument.
7918 (increase_expout_size): New function.
7919 * parser-defs.h: Forward declare "struct language_defn" and
7920 "struct parser_state".
7921 (expout, expout_size, expout_ptr): Remove extern declarations.
7922 (parse_gdbarch, parse_language): Rewrite macro declarations to
7923 accept the parser state.
7924 (struct parser_state): New struct.
7925 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7926 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7927 write_exp_elt_decfloatcst, write_exp_elt_type,
7928 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7929 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7930 write_exp_msymbol, write_dollar_variable,
7931 mark_struct_expression, insert_type_address_space): Add "struct
7932 parser_state" argument.
7933 (increase_expout_size): New function.
7934 * utils.c (do_clear_parser_state): New function.
7935 (make_cleanup_clear_parser_state): Likewise.
7936 * utils.h (make_cleanup_clear_parser_state): New function
7938 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7939 Update calls to write_exp* in order to pass the parser state.
7940 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7942 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7943 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7944 * stap-probe.c (stap_parse_register_operand): Likewise.
7945 (stap_parse_single_operand): Likewise.
7946 (stap_parse_argument_1): Likewise.
7947 (stap_parse_argument): Use parser state.
7948 * stap-probe.h: Include "parser-defs.h".
7949 (struct stap_parse_info) <pstate>: New field.
7950 * c-exp.y (parse_type): Rewrite to use parser state.
7951 (yyparse): Redefine to c_parse_internal.
7952 (pstate): New global variable.
7953 (parse_number): Add "struct parser_state" argument.
7954 (write_destructor_name): Likewise.
7955 (type_exp): Update calls to write_exp* and similars in order to
7957 (exp1, exp, variable, qualified_name, space_identifier,
7958 typename, typebase): Likewise.
7959 (write_destructor_name, parse_number, lex_one_token,
7960 classify_name, classify_inner_name, c_parse): Add "struct
7961 parser_state" argument. Update function to use parser state.
7962 * c-lang.h: Forward declare "struct parser_state".
7963 (c_parse): Add "struct parser_state" argument.
7964 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7965 (yyparse): Redefine macro to ada_parse_internal.
7966 (pstate): New variable.
7967 (write_int, write_object_renaming, write_var_or_type,
7968 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7969 type_int, type_long, type_long_long, type_float, type_double,
7970 type_long_double, type_char, type_boolean, type_system_address):
7971 Add "struct parser_state" argument.
7972 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7973 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7974 var_or_type, aggregate, aggregate_component_list,
7975 positional_list, others, component_group,
7976 component_associations): Update calls to write_exp* and similar
7977 functions in order to use parser state.
7978 (ada_parse, write_var_from_sym, write_int,
7979 write_exp_op_with_string, write_object_renaming,
7980 find_primitive_type, write_selectors, write_ambiguous_var,
7981 write_var_or_type, write_name_assoc, type_int, type_long,
7982 type_long_long, type_float, type_double, type_long_double,
7983 type_char, type_boolean, type_system_address): Add "struct
7984 parser_state" argument. Adjust function to use parser state.
7985 * ada-lang.c (parse): Likewise.
7986 * ada-lang.h: Forward declare "struct parser_state".
7987 (ada_parse): Add "struct parser_state" argument.
7988 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7989 calls to both functions.
7990 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7992 (yyparse): Redefine macro to f_parse_internal.
7993 (pstate): New variable.
7994 (parse_number): Add "struct parser_state" argument.
7995 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7996 and similars in order to use parser state.
7997 (parse_number): Adjust code to use parser state.
7999 (f_parse): New function.
8000 * f-lang.h: Forward declare "struct parser_state".
8001 (f_parse): Add "struct parser_state" argument.
8002 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8004 (yyparse): Redefine macro for java_parse_internal.
8005 (pstate): New variable.
8006 (push_expression_name, push_expression_name, insert_exp): Add
8007 "struct parser_state" argument.
8008 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8009 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8010 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8011 PostIncrementExpression, PostDecrementExpression,
8012 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8013 UnaryExpressionNotPlusMinus, CastExpression,
8014 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8015 RelationalExpression, EqualityExpression, AndExpression,
8016 ExclusiveOrExpression, InclusiveOrExpression,
8017 ConditionalAndExpression, ConditionalOrExpression,
8018 ConditionalExpression, Assignment, LeftHandSide): Update
8019 calls to write_exp* and similars in order to use parser state.
8020 (parse_number): Ajust code to use parser state.
8022 (java_parse): New function.
8023 (push_variable): Add "struct parser_state" argument. Adjust
8024 code to user parser state.
8025 (push_fieldnames, push_qualified_expression_name,
8026 push_expression_name, insert_exp): Likewise.
8027 * jv-lang.h: Forward declare "struct parser_state".
8028 (java_parse): Add "struct parser_state" argument.
8029 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8031 (yyparse): Redefine macro to m2_parse_internal.
8032 (pstate): New variable.
8033 (type_exp, exp, fblock, variable, type): Update calls to
8034 write_exp* and similars to use parser state.
8036 (m2_parse): New function.
8037 * m2-lang.h: Forward declare "struct parser_state".
8038 (m2_parse): Add "struct parser_state" argument.
8039 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8040 * objc-lang.h: Forward declare "struct parser_state".
8041 (end_msglist): Add "struct parser_state" argument.
8042 * p-exp.y (parse_type): Rewrite macro to use parser state.
8043 (yyparse): Redefine macro to pascal_parse_internal.
8044 (pstate): New variable.
8045 (parse_number): Add "struct parser_state" argument.
8046 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8047 write_exp* and similars in order to use parser state.
8048 (parse_number, yylex): Adjust code to use parser state.
8049 (pascal_parse): New function.
8050 * p-lang.h: Forward declare "struct parser_state".
8051 (pascal_parse): Add "struct parser_state" argument.
8052 * go-exp.y (parse_type): Rewrite macro to use parser state.
8053 (yyparse): Redefine macro to go_parse_internal.
8054 (pstate): New variable.
8055 (parse_number): Add "struct parser_state" argument.
8056 (type_exp, exp1, exp, variable, type): Update calls to
8057 write_exp* and similars in order to use parser state.
8058 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8059 to use parser state.
8060 (go_parse): Likewise.
8061 * go-lang.h: Forward declare "struct parser_state".
8062 (go_parse): Add "struct parser_state" argument.
8064 2014-03-27 Doug Evans <dje@google.com>
8066 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8068 2014-03-27 Doug Evans <dje@google.com>
8070 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8071 Remove argument abbrev_section. All callers updated.
8073 2014-03-27 Doug Evans <dje@google.com>
8075 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8076 addr_base, ranges_base.
8078 2014-03-26 Keith Seitz <keiths@redhat.com>
8080 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8081 types, not VAR_DOMAIN.
8083 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8085 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8087 * features/nios2-linux.c: Regenerated.
8088 * features/nios2.c: Regenerated.
8090 2014-03-25 Pedro Alves <palves@redhat.com>
8092 * cli/cli-script.c (script_from_file): Force the interpreter to
8095 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8097 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8098 small stack allocation.
8100 2014-03-24 Tristan Gingold <gingold@adacore.com>
8102 * darwin-nat.c (exc_server): Remove unused prototype.
8103 (darwin_dump_message): Correctly display data on x86_64.
8104 (darwin_encode_reply): Fix style.
8105 Add comments and fix indentation.
8107 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8109 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8111 2014-03-22 Doug Evans <xdje42@gmail.com>
8113 * infcmd.c: Whitespace fixes.
8114 (interrupt_command): Merge two function comments into one.
8116 2014-03-22 Doug Evans <xdje42@gmail.com>
8118 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8121 2014-03-22 Yao Qi <yao@codesourcery.com>
8123 * remote.c (target_read_live_memory): Remove.
8124 (memory_xfer_live_readonly_partial): Rename it to
8125 remote_xfer_live_readonly_partial. Remove argument 'object'.
8126 All callers updated. Call remote_read_bytes_1
8127 instead of target_read_live_memory.
8128 * tracepoint.c (set_traceframe_number): Remove.
8129 (make_cleanup_restore_traceframe_number): Likewise .
8130 * tracepoint.h (set_traceframe_number): Remove declaration.
8131 (make_cleanup_restore_traceframe_number): Likewise.
8133 2014-03-22 Yao Qi <yao@codesourcery.com>
8135 * remote.c (remote_read_bytes): Move code on reading from the
8137 (remote_read_bytes_1): ... here. New function.
8139 2014-03-22 Yao Qi <yao@codesourcery.com>
8141 * ctf.c (ctf_xfer_partial): Check the return value of
8142 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8143 return TARGET_XFER_UNAVAILABLE.
8144 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8145 * target.c (target_read_live_memory): Move it to remote.c.
8146 (memory_xfer_live_readonly_partial): Likewise.
8147 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8148 * remote.c (target_read_live_memory): Moved from target.c.
8149 (memory_xfer_live_readonly_partial): Likewise.
8150 (remote_read_bytes): Factored out from
8151 memory_xfer_partial_1.
8153 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8155 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8158 2014-03-21 Pedro Alves <palves@redhat.com>
8160 * infrun.c (normal_stop): Extend comment.
8162 2014-03-21 Hui Zhu <hui@codesourcery.com>
8163 Pedro Alves <palves@redhat.com>
8165 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8167 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8168 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8169 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8171 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8173 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8174 `z' formatted output modifier.
8176 2014-03-20 Tom Tromey <tromey@redhat.com>
8177 Sergio Durigan Junior <sergiodj@redhat.com>
8179 * probe.c (parse_probes): Turn assert into an ordinary error.
8180 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8181 exceptions when parsing probes. Rearrange the code for clarity.
8183 2014-03-20 Tom Tromey <tromey@redhat.com>
8186 * top.c (execute_command): Only dispatch events if the command
8189 2014-03-20 Tom Tromey <tromey@redhat.com>
8192 * infcall.c: Include event-top.h.
8193 (run_inferior_call): Call async_disable_stdin if needed.
8195 2014-03-20 Pedro Alves <palves@redhat.com>
8197 * infrun.c (prepare_to_proceed): Delete.
8198 (thread_still_needs_step_over): New function.
8199 (find_thread_needs_step_over): New function.
8200 (proceed): If the current thread needs a step-over, set its
8201 steping_over_breakpoint flag. Adjust to use
8202 find_thread_needs_step_over instead of prepare_to_proceed.
8203 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8204 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8206 (switch_back_to_stepped_thread): Step over breakpoints of all
8207 threads not the stepping thread, before switching back to the
8210 2014-03-20 Pedro Alves <palves@redhat.com>
8212 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8214 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8215 * infrun.c (saved_singlestep_ptid)
8216 (stepping_past_singlestep_breakpoint): Delete.
8217 (resume): Remove stepping_past_singlestep_breakpoint handling.
8218 (proceed): Store the prev_pc of the stepping thread too.
8219 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8221 (enum infwait_states): Delete infwait_thread_hop_state.
8222 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8224 (handle_inferior_event): Adjust.
8225 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8226 handling and the thread-hop code. Before removing single-step
8227 breakpoints, check whether the thread hit a single-step breakpoint
8228 of another thread. If it did, the trap is not a random signal.
8229 (switch_back_to_stepped_thread): If the event thread hit a
8230 single-step breakpoint, unblock it before switching to the
8231 stepping thread. Handle the case of the stepped thread having
8233 (keep_going): Handle the case of the current thread moving past a
8234 single-step breakpoint.
8236 2014-03-20 Pedro Alves <palves@redhat.com>
8239 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8240 are being stepped over.
8241 (breakpoint_address_match): Make extern.
8242 * breakpoint.h (breakpoint_address_match): New declaration.
8243 * inferior.h (stepping_past_instruction_at): New declaration.
8244 * infrun.c (struct step_over_info): New type.
8245 (step_over_info): New global.
8246 (set_step_over_info, clear_step_over_info)
8247 (stepping_past_instruction_at): New functions.
8248 (handle_inferior_event): Clear the step-over info when
8249 trap_expected is cleared.
8250 (resume): Remove now stale comment.
8251 (clear_proceed_status): Clear step-over info.
8252 (proceed): Adjust step-over handling to set or clear the step-over
8253 info instead of removing all breakpoints.
8254 (handle_signal_stop): When setting up a thread-hop, don't remove
8256 (stop_stepping): Clear step-over info.
8257 (keep_going): Adjust step-over handling to set or clear step-over
8258 info and then always inserting breakpoints, instead of removing
8259 all breakpoints when stepping over one.
8261 2014-03-20 Pedro Alves <palves@redhat.com>
8263 * infrun.c (previous_inferior_ptid): Adjust comment.
8264 (deferred_step_ptid): Delete.
8265 (infrun_thread_ptid_changed, prepare_to_proceed)
8266 (init_wait_for_inferior): Adjust.
8267 (handle_signal_stop): Delete deferred_step_ptid handling.
8269 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8272 * defs.h (sync_quit_force_run): New declaration.
8273 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8274 * event-top.c (async_sigterm_handler): New declaration.
8275 (async_sigterm_token): New variable.
8276 (async_init_signals): Create also async_sigterm_token.
8277 (async_sigterm_handler): New function.
8278 (sync_quit_force_run): New variable.
8279 (handle_sigterm): Replace quit_force call by other calls.
8280 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8282 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8284 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8285 offset into SPE pseudo registers.
8287 2014-03-18 Pedro Alves <palves@redhat.com>
8290 * inferior.h (print_stop_event): Declare.
8291 * infrun.c (print_stop_event): New, factored out from ...
8292 (normal_stop): ... this.
8293 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8294 of bpstat_print/print_stack_frame.
8296 2014-03-17 Tom Tromey <tromey@redhat.com>
8298 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8300 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8302 * ada-lang.c (decode_constrained_packed_array): Perform a
8303 minimal coercion for reference with coerce_ref instead of
8306 2014-03-17 Tristan Gingold <gingold@adacore.com>
8308 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8309 (darwin_solib_create_inferior_hook): Emit a warning if version
8312 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8314 * python/py-value.c (get_field_flag): Cast flag_name argument to
8315 PyObject_GetAttrString to support Python 2.4.
8317 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8319 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8320 (Global Maintainers): Remove Jan Kratochvil.
8322 2014-03-14 Pedro Alves <palves@redhat.com>
8324 * inferior.h (terminal_ours_for_output): Rename to ...
8325 (child_terminal_ours_for_output): ... this.
8326 (terminal_save_ours): Rename to ...
8327 (child_terminal_save_ours): ... this.
8328 (terminal_ours): Rename to ...
8329 (child_terminal_ours): ... this.
8330 (terminal_inferior): Rename to ...
8331 (child_terminal_inferior): ... this.
8332 (terminal_init_inferior): Rename to ...
8333 (child_terminal_init_inferior): ... this.
8334 (terminal_init_inferior_with_pgrp): Rename to ...
8335 (child_terminal_init_inferior_with_pgrp): ... this.
8336 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8337 (child_terminal_init_with_pgrp): ... this.
8338 (terminal_save_ours): Rename to ...
8339 (child_terminal_save_ours): ... this.
8340 (terminal_init_inferior): Rename to ...
8341 (child_terminal_init): ... this. Adjust.
8342 (terminal_inferior): Rename to ...
8343 (child_terminal_inferior): ... this.
8344 (terminal_ours_for_output): Rename to ...
8345 (child_terminal_ours_for_output): ... this. Adjust.
8346 (terminal_ours): Rename to ...
8347 (child_terminal_ours): ... this.
8348 (terminal_ours_1): Rename to ...
8349 (child_terminal_ours_1): ... this. Adjust.
8350 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8351 * windows-nat.c (do_initial_windows_stuff): Adjust.
8352 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8353 (gnu_terminal_init): ... this. Adjust.
8354 (gnu_target): Adjust.
8355 * inf-child.c (inf_child_target): Adjust.
8357 2014-03-13 Doug Evans <xdje42@gmail.com>
8360 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8363 2014-03-13 Doug Evans <xdje42@gmail.com>
8365 * value.c (record_latest_value): Call release_value_or_incref
8366 instead of release_value.
8368 2014-03-13 Pedro Alves <palves@redhat.com>
8370 * procfs.c (procfs_target): Don't override to_shortname,
8371 to_longname or to_doc.
8373 2014-03-13 Pedro Alves <palves@redhat.com>
8375 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8376 Unix in user visible strings.
8378 2014-03-12 Stan Shebs <stan@codesourcery.com>
8380 * gdbtypes.h: Annotate comments for Doxygen, add a page
8381 block comment with some general info.
8383 2014-03-12 Pedro Alves <palves@redhat.com>
8385 * infcmd.c (prepare_execution_command): New function, factored out
8386 from several execution commands.
8387 (run_command_1, continue_command, step_1, jump_command)
8388 (signal_command, until_command, advance_command, finish_command)
8389 (attach_command): Use prepare_execution_command.
8391 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8393 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8396 (struct arm_linux_thread_points): Removed.
8397 (struct arm_linux_process_info): New.
8398 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8399 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8400 (arm_linux_find_breakpoints_by_tid): Removed.
8401 (struct arch_lwp_info): New.
8402 (arm_linux_find_process_pid): New functions.
8403 (arm_linux_add_process): New functions.
8404 (arm_linux_process_info_get): New functions.
8405 (arm_linux_forget_process): New function.
8406 (arm_linux_get_debug_reg_state): New function.
8407 (struct update_registers_data): New.
8408 (update_registers_callback): New function.
8409 (arm_linux_insert_hw_breakpoint1): Updated.
8410 (arm_linux_remove_hw_breakpoint1): Updated.
8411 (arm_linux_insert_hw_breakpoint): Updated.
8412 (arm_linux_remove_hw_breakpoint): Updated.
8413 (arm_linux_insert_watchpoint): Updated.
8414 (arm_linux_remove_watchpoint): Updated.
8415 (arm_linux_new_thread): Updated.
8416 (arm_linux_prepare_to_resume): New function.
8417 (arm_linux_new_fork): New function.
8418 (_initialize_arm_linux_nat): Updated.
8420 2014-03-12 Pedro Alves <palves@redhat.com>
8422 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8424 2014-03-12 Tom Tromey <tromey@redhat.com>
8426 * inf-child.c (return_zero): New function.
8427 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8428 * aix-thread.c (aix_thread_inferior_created): New function.
8429 (aix_thread_attach): Remove.
8430 (init_aix_thread_ops): Don't set to_attach.
8431 (_initialize_aix_thread): Register inferior_created observer.
8432 * corelow.c (init_core_ops): Don't set to_attach or
8434 * exec.c (init_exec_ops): Don't set to_attach or
8436 * infcmd.c (run_command_1): Use find_run_target. Make direct
8438 (attach_command): Use find_attach_target. Make direct target
8440 * record-btrace.c (init_record_btrace_ops): Don't set
8442 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8444 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8445 set to_create_inferior.
8446 * target.c (complete_target_initialization): Add assertion.
8447 (target_create_inferior): Remove.
8448 (find_default_attach, find_default_create_inferior): Remove.
8449 (find_attach_target, find_run_target): New functions.
8450 (find_default_is_async_p, find_default_can_async_p)
8451 (target_supports_non_stop, target_attach): Remove.
8452 (init_dummy_target): Don't set to_create_inferior or
8453 to_supports_non_stop.
8454 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8455 TARGET_DEFAULT_FUNC.
8456 <to_create_inferior>: Add comment.
8457 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8458 TARGET_DEFAULT_RETURN.
8459 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8460 (find_attach_target, find_run_target): Declare.
8461 (target_create_inferior): Remove.
8462 (target_has_execution_1): Update comment.
8463 (target_supports_non_stop): Remove.
8464 * target-delegates.c: Rebuild.
8466 2014-03-12 Pedro Alves <palves@redhat.com>
8468 * inf-child.h: Update comment to not mention Unix.
8470 2014-03-12 Pedro Alves <palves@redhat.com>
8472 * inf-child.c: Update top comment to not mention Unix. Add
8473 generic comment describing how this target is meant to be used.
8474 (inf_child_post_attach, inf_child_post_startup_inferior)
8475 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8478 2014-03-12 Pedro Alves <palves@redhat.com>
8480 * nto-procfs.c: Include inf-child.h.
8481 (procfs_ops): Delete global.
8482 (procfs_can_run): Delete method.
8483 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8484 target pointer instead of referencing procfs_ops.
8485 (procfs_prepare_to_store): Delete.
8486 (init_procfs_ops): Delete function.
8487 (procfs_target): New function, based on init_procfs_ops, but
8488 inherit inf_child_target.
8489 (_initialize_procfs): Use procfs_target.
8491 2014-03-12 Pedro Alves <palves@redhat.com>
8493 * windows-nat.c: Include inf-child.h.
8494 (windows_ops): Delete global.
8495 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8497 (init_windows_ops): Delete function.
8498 (windows_target): New function, based on init_windows_ops, but
8499 inherit inf_child_target.
8500 (_initialize_windows_nat): Use windows_target. Install x86
8501 specific target methods here.
8503 2014-03-10 Doug Evans <xdje42@gmail.com>
8505 * guile/guile.c (call_initialize_gdb_module): New function.
8506 (initialize_guile): Replace call to scm_init_guile with call to
8509 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8511 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8512 in call to TYPE_CODE macro.
8514 2014-03-10 Jerome Guitton <guitton@adacore.com>
8516 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8517 Resolve tagged types to full view.
8519 2014-03-10 Hui Zhu <hui@codesourcery.com>
8521 * target.h (target_insert_breakpoint): Remove "hardware" from its
8524 2014-03-07 Doug Evans <dje@google.com>
8526 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8528 2014-03-07 Doug Evans <dje@google.com>
8530 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8531 Remove unused local comp_dir_attr. Assert exactly one of
8532 stub_comp_unit_die, stub_comp_dir is non-NULL.
8534 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8536 * target.h (complete_target_initialization, add_target):
8539 2014-03-07 Pedro Alves <palves@redhat.com>
8541 * go32-nat.c: Include inf-child.h.
8542 (go32_ops): Delete global.
8543 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8545 (go32_create_inferior): Push the passed in target pointer instead
8546 of referencing go32_ops.
8547 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8548 (go32_target): New function, based on init_go32_ops, but inherit
8550 (_initialize_go32_nat): Use go32_target. Move parts of
8553 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8555 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8556 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8557 SYMBOL_VALUE_ADDRESS.
8558 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8560 2014-03-06 Yao Qi <yao@codesourcery.com>
8562 * breakpoint.c (get_tracepoint_by_number): Remove argument
8563 optional_p. All callers updated. Adjust comments. Update
8565 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8567 2014-03-06 Yao Qi <yao@codesourcery.com>
8569 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8570 early if get_number returns zero. Use 'p' instead of 'args'.
8572 2014-03-06 Yao Qi <yao@codesourcery.com>
8574 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8577 2014-03-06 Yao Qi <yao@codesourcery.com>
8579 PR breakpoints/16508
8580 * tracepoint.c (check_trace_running): New function.
8581 (trace_find_command): Move code to check_trace_running and
8582 call check_trace_running.
8583 (trace_find_pc_command): Likewise.
8584 (trace_find_tracepoint_command): Likewise.
8585 (trace_find_line_command): Likewise.
8586 (trace_find_range_command): Likewise.
8587 * tracepoint.h (check_trace_running): Likewise.
8588 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8590 2014-03-06 Yao Qi <yao@codesourcery.com>
8592 * target.h (struct target_ops) <to_traceframe_info>: Use
8593 TARGET_DEFAULT_NORETURN (tcomplain ()).
8594 * target-delegates.c: Regenerated.
8596 2014-03-05 Pedro Alves <palves@redhat.com>
8599 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8600 void. Update comment.
8601 (dcache_xfer_memory): Delete.
8602 (dcache_read_memory_partial): New, based on the read bits of
8604 (dcache_update): Add status parameter. Use ULONGEST for len, and
8605 adjust. Discard cache lines if the reason for the update was
8607 * dcache.h (dcache_xfer_memory): Delete declaration.
8608 (dcache_read_memory_partial): New declaration.
8609 (dcache_update): Update prototype.
8610 * target.c (raw_memory_xfer_partial): Update the dcache here.
8611 (memory_xfer_partial_1): Don't handle dcache writes here.
8613 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8615 * remote-sim.c (gdbsim_load): Add const to prog.
8617 2014-03-03 Tom Tromey <tromey@redhat.com>
8619 * elfread.c (probe_key): Change to bfd_data.
8620 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8621 now per-BFD, not per-objfile.
8622 * stap-probe.c (stap_probe_destroy): Update comment.
8623 (handle_stap_probe): Allocate on the per-BFD obstack.
8625 2014-03-03 Tom Tromey <tromey@redhat.com>
8627 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8628 * breakpoint.c (create_longjmp_master_breakpoint): Use
8630 (add_location_to_breakpoint, bkpt_probe_insert_location)
8631 (bkpt_probe_remove_location): Update.
8632 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8633 * elfread.c (elf_symfile_relocate_probe): Remove.
8634 (elf_probe_fns): Update.
8635 (insert_exception_resume_breakpoint): Change type of "probe"
8636 parameter to bound_probe.
8637 (check_exception_resume): Update.
8638 * objfiles.c (objfile_relocate1): Don't relocate probes.
8639 * probe.c (bound_probe_s): New typedef.
8640 (parse_probes): Use get_probe_address. Set sal's objfile.
8641 (find_probe_by_pc): Return a bound_probe.
8642 (collect_probes): Return a VEC(bound_probe_s).
8643 (compare_probes): Update.
8644 (gen_ui_out_table_header_info): Change type of "probes"
8646 (info_probes_for_ops): Update.
8647 (get_probe_address): New function.
8648 (probe_safe_evaluate_at_pc): Update.
8649 * probe.h (struct probe_ops) <get_probe_address>: New field.
8650 <set_semaphore, clear_semaphore>: Add objfile parameter.
8651 (struct probe) <objfile>: Remove field.
8653 <address>: Update comment.
8654 (struct bound_probe): New.
8655 (find_probe_by_pc): Return a bound_probe.
8656 (get_probe_address): Declare.
8657 * solib-svr4.c (struct probe_and_action) <address>: New field.
8658 (hash_probe_and_action, equal_probe_and_action): Update.
8659 (register_solib_event_probe): Add address parameter.
8660 (solib_event_probe_at): Update.
8661 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8663 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8664 (stap_get_probe_address): New function.
8665 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8666 (compile_probe_arg): Update.
8667 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8669 (handle_stap_probe): Don't relocate the probe.
8670 (stap_relocate): Remove.
8671 (stap_gen_info_probes_table_values): Update.
8672 (stap_probe_ops): Remove stap_relocate.
8673 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8674 (debug_sym_probe_fns): Update.
8675 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8676 * symtab.c (init_sal): Use memset.
8677 * symtab.h (struct symtab_and_line) <objfile>: New field.
8678 * tracepoint.c (start_tracing, stop_tracing): Update.
8680 2014-03-03 Tom Tromey <tromey@redhat.com>
8682 * probe.h (parse_probes, find_probe_by_pc)
8683 (find_probes_in_objfile): Fix comments.
8685 2014-03-02 Doug Evans <xdje42@gmail.com>
8687 * infrun.c (handle_signal_stop): Replace test for
8688 TARGET_WAITKIND_STOPPED with an assert.
8690 2014-03-02 Doug Evans <xdje42@gmail.com>
8692 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8694 2014-03-02 Doug Evans <xdje42@gmail.com>
8696 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8698 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8700 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8702 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8704 * i386obsd-nat.c: Include "obsd-nat.h".
8705 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8707 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8709 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8711 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8713 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8715 * mips64obsd-nat.c: Include "obsd-nath".
8716 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8718 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8720 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8722 * amd64obsd-nat.c: Include "obsd-nat,h.
8723 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8725 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8727 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8729 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8730 (find_overload_match): Update call to find_oload_champ.
8731 (find_oload_champ_namespace_loop): Likewise
8733 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8735 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8737 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8738 * config/sparc/obsd64.mh: New file.
8739 * sparc64obsd-nat.c: New file.
8741 * obsd-nat.h: New file.
8742 * obsd-nat.c: New file.
8743 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8744 (ALLDEPFILES): Add obsd-nat.c.
8746 2014-02-28 Tom Tromey <tromey@redhat.com>
8748 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8749 * cli-out.h (cli_ui_out_impl): Now const.
8750 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8751 * ui-out.c (struct ui_out) <impl>: Now const.
8752 (default_ui_out_impl): Now const.
8753 (ui_out_new): Make 'impl' parameter const.
8754 * ui-out.h (ui_out_new): Update.
8756 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8758 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8760 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8762 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8764 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8766 Additional PR 8882 fix.
8767 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8769 2014-02-27 Pedro Alves <palves@redhat.com>
8771 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8774 2014-02-27 Pedro Alves <palves@redhat.com>
8777 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8778 * nat/linux-waitpid.c: Include string.h.
8779 (status_to_str): Moved here and made extern.
8780 * nat/linux-waitpid.h (status_to_str): New declaration.
8782 2014-02-27 Hui Zhu <hui@codesourcery.com>
8785 * infrun.c (ptid_match): Move ...
8786 * common/ptid.c (ptid_match): ... here.
8787 * inferior.h (ptid_match): Move ...
8788 * common/ptid.h (ptid_match): ... here.
8790 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8792 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8793 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8796 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8798 * obsd-tdep.c (obsd_auxv_parse): New function.
8799 (obsd_init_abi): Set auxv_parse.
8801 * gdbarch.sh (auxv_parse): New.
8802 * gdbarch.h: Regenerated.
8803 * gdbarch.c: Regenerated.
8804 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8806 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8808 * guile/scm-value.c (gdbscm_history_append_x): New function.
8809 (value_functions): Add it.
8811 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8813 * dwarf2read.c (attr_value_as_address): New function.
8814 (dwarf2_find_base_address, read_call_site_scope): Use
8815 attr_value_as_address in place of DW_ADDR.
8816 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8817 the low and high addresses. Slight rework of the handling
8818 of the high pc being a constant form, and limit it to
8819 DWARF verson 4 or higher.
8820 (dwarf2_record_block_ranges): Likewise.
8821 (read_partial_die): Likewise.
8822 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8824 2014-02-26 Tom Tromey <tromey@redhat.com>
8826 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8828 2014-02-26 Tom Tromey <tromey@redhat.com>
8830 * elfread.c (elf_read_minimal_symbols): Return early if
8831 minimal symbols have already been read. Add "ei" parameter.
8832 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8833 * minsyms.c (prim_record_minimal_symbol_full): Update.
8834 * objfiles.h (struct objstats) <n_minsyms>: Move...
8835 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8836 * symmisc.c (print_objfile_statistics): Update.
8838 2014-02-26 Tom Tromey <tromey@redhat.com>
8840 * elfread.c (elf_read_minimal_symbols): New function, from
8842 (elf_symfile_read): Call it.
8844 2014-02-26 Tom Tromey <tromey@redhat.com>
8846 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8847 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8848 (lookup_minimal_symbol_solib_trampoline)
8849 (lookup_minimal_symbol_by_pc_section_1)
8850 (lookup_minimal_symbol_and_objfile): Update.
8851 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8852 Don't allocate a minimal symbol if minsyms have already been read.
8853 (build_minimal_symbol_hash_tables): Update.
8854 (install_minimal_symbols): Do nothing if minsyms already read.
8855 Use the per-BFD obstack.
8856 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8857 * objfiles.c (allocate_objfile): Call
8858 terminate_minimal_symbol_table later.
8859 (have_minimal_symbols): Update.
8860 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8861 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8862 Move from struct objfile.
8863 <minsyms_read>: New field.
8864 (struct objfile) <msymbols, minimal_symbol_count,
8865 msymbol_hash, msymbol_demangled_hash>: Move.
8866 (ALL_OBJFILE_MSYMBOLS): Update.
8867 * symfile.c (read_symbols): Set minsyms_read.
8868 (reread_symbols): Update.
8869 * symmisc.c (dump_objfile, dump_msymbols): Update.
8871 2014-02-26 Tom Tromey <tromey@redhat.com>
8873 * minsyms.c (msymbols_sort): Remove.
8874 * minsyms.h (msymbols_sort): Remove.
8875 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8876 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8877 * elfread.c (elf_symtab_read): Don't add section offsets.
8878 * xcoffread.c (record_minimal_symbol): Don't add section offset
8879 to minimal symbol address.
8880 * somread.c (text_offset, data_offset): Remove.
8881 (som_symtab_read): Don't add section offsets to minimal symbol
8883 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8884 Don't add section offsets to minimal symbols.
8885 * coffread.c (coff_symtab_read): Don't add section offsets
8886 to minimal symbol addresses.
8887 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8888 to minimal symbol addresses.
8889 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8890 section offset to minimal symbol addresses.
8891 * mdebugread.c (parse_partial_symbols): Don't add section
8892 offset to minimal symbol addresses.
8893 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8894 offset to minimal symbol addresses.
8896 2014-02-26 Tom Tromey <tromey@redhat.com>
8898 * ada-lang.c (ada_main_name): Update.
8899 (ada_add_standard_exceptions): Update.
8900 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8901 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8902 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8903 * auxv.c (ld_so_xfer_auxv): Update.
8904 * avr-tdep.c (avr_scan_prologue): Update.
8905 * ax-gdb.c (gen_var_ref): Update.
8906 * blockframe.c (get_pc_function_start)
8907 (find_pc_partial_function_gnu_ifunc): Update.
8908 * breakpoint.c (create_overlay_event_breakpoint)
8909 (create_longjmp_master_breakpoint)
8910 (create_std_terminate_master_breakpoint)
8911 (create_exception_master_breakpoint): Update.
8912 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8913 * c-valprint.c (c_val_print): Update.
8914 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8915 * common/agent.c (agent_look_up_symbols): Update.
8916 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8917 * dwarf2loc.c (call_site_to_target_addr): Update.
8918 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8919 * elfread.c (elf_gnu_ifunc_record_cache)
8920 (elf_gnu_ifunc_resolve_by_got): Update.
8921 * findvar.c (default_read_var_value): Update.
8922 * frame.c (inside_main_func): Update.
8923 * frv-tdep.c (frv_frame_this_id): Update.
8924 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8925 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8927 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8928 (hppa_hpux_find_dummy_bpaddr): Update.
8929 * hppa-tdep.c (hppa_symbol_address): Update.
8930 * infcmd.c (until_next_command): Update.
8931 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8933 * linespec.c (minsym_found, add_minsym): Update.
8934 * linux-nat.c (get_signo): Update.
8935 * linux-thread-db.c (inferior_has_bug): Update.
8936 * m32c-tdep.c (m32c_return_value)
8937 (m32c_m16c_address_to_pointer): Update.
8938 * m32r-tdep.c (m32r_frame_this_id): Update.
8939 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8940 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8941 * maint.c (maintenance_translate_address): Update.
8942 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8943 (frob_address): New function.
8944 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8945 frob_address. Rename parameter to "pc_in".
8946 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8948 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8950 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8951 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8952 * objc-lang.c (find_objc_msgsend): Update.
8953 * objfiles.c (objfile_relocate1): Update.
8954 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8955 * p-valprint.c (pascal_val_print): Update.
8956 * parse.c (write_exp_msymbol): Update.
8957 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8958 (ppc_elfv2_skip_entrypoint): Update.
8959 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8960 * printcmd.c (build_address_symbolic, msym_info)
8961 (address_info): Update.
8962 * proc-service.c (ps_pglobal_lookup): Update.
8963 * psymtab.c (find_pc_sect_psymtab_closer)
8964 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8965 Change msymbol parameter to bound_minimal_symbol.
8966 * ravenscar-thread.c (get_running_thread_id): Update.
8967 * remote.c (remote_check_symbols): Update.
8968 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8970 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8971 * solib-dsbt.c (lm_base): Update.
8972 * solib-frv.c (lm_base, main_got): Update.
8973 * solib-irix.c (locate_base): Update.
8974 * solib-som.c (som_solib_create_inferior_hook)
8975 (link_map_start): Update.
8976 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8977 * solib-svr4.c (elf_locate_base, enable_break): Update.
8978 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8979 (flush_ea_cache): Update.
8980 * stabsread.c (define_symbol, scan_file_globals): Update.
8981 * stack.c (find_frame_funname): Update.
8982 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8983 (debug_qf_find_pc_sect_symtab): Update.
8984 * symfile.c (simple_read_overlay_table)
8985 (simple_overlay_update): Update.
8986 * symfile.h (struct quick_symbol_functions)
8987 <find_pc_sect_symtab>: Change type of msymbol to
8988 bound_minimal_symbol.
8989 * symmisc.c (dump_msymbols): Update.
8990 * symtab.c (find_pc_sect_symtab_via_partial)
8991 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8992 (search_symbols, print_msymbol_info): Update.
8993 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8994 (MSYMBOL_VALUE_ADDRESS): Redefine.
8995 (BMSYMBOL_VALUE_ADDRESS): New macro.
8996 * tracepoint.c (scope_info): Update.
8997 * tui/tui-disasm.c (tui_find_disassembly_address)
8998 (tui_get_begin_asm_address): Update.
8999 * valops.c (find_function_in_inferior): Update.
9000 * value.c (value_static_field, value_fn_field): Update.
9002 2014-02-26 Tom Tromey <tromey@redhat.com>
9004 * ada-lang.c (ada_update_initial_language): Update.
9005 (ada_main_name, ada_has_this_exception_support): Update.
9006 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9007 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9008 * arm-tdep.c (arm_skip_stub): Update.
9009 * auxv.c (ld_so_xfer_auxv): Update.
9010 * avr-tdep.c (avr_scan_prologue): Update.
9011 * ax-gdb.c (gen_var_ref): Update.
9012 * breakpoint.c (struct breakpoint_objfile_data)
9013 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9014 type to bound_minimal_symbol.
9015 (create_overlay_event_breakpoint)
9016 (create_longjmp_master_breakpoint)
9017 (create_std_terminate_master_breakpoint)
9018 (create_exception_master_breakpoint): Update.
9019 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9020 * c-exp.y (classify_name): Update.
9021 * coffread.c (coff_symfile_read): Update.
9022 * common/agent.c (agent_look_up_symbols): Update.
9023 * d-lang.c (d_main_name): Update.
9024 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9025 * dec-thread.c (enable_dec_thread): Update.
9026 * dwarf2loc.c (call_site_to_target_addr): Update.
9027 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9028 * eval.c (evaluate_subexp_standard): Update.
9029 * findvar.c (struct minsym_lookup_data) <result>: Change type
9030 to bound_minimal_symbol.
9032 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9033 * frame.c (inside_main_func): Update.
9034 * frv-tdep.c (frv_frame_this_id): Update.
9035 * gcore.c (call_target_sbrk): Update.
9036 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9037 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9039 * go-lang.c (go_main_name): Update.
9040 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9041 (hppa_hpux_find_import_stub_for_addr): Update.
9042 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9043 Update. Change return type.
9044 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9046 * jit.c (jit_breakpoint_re_set_internal): Update.
9047 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9049 * linux-nat.c (get_signo): Update.
9050 * linux-thread-db.c (inferior_has_bug): Update
9051 * m32c-tdep.c (m32c_return_value)
9052 (m32c_m16c_address_to_pointer): Update.
9053 * m32r-tdep.c (m32r_frame_this_id): Update.
9054 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9055 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9056 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9057 lookup_minimal_symbol. Change return type.
9058 (lookup_minimal_symbol): Remove.
9059 (lookup_bound_minimal_symbol): Update.
9060 (lookup_minimal_symbol_text): Change return type.
9061 (lookup_minimal_symbol_solib_trampoline): Change return type.
9062 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9063 (lookup_minimal_symbol_solib_trampoline): Change return type.
9064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9065 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9066 (value_nsstring, find_imps): Update.
9067 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9068 * p-lang.c (pascal_main_name): Update.
9069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9070 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9071 * proc-service.c (ps_pglobal_lookup): Update.
9072 * ravenscar-thread.c (get_running_thread_msymbol): Change
9074 (has_ravenscar_runtime, get_running_thread_id): Update.
9075 * remote.c (remote_check_symbols): Update.
9076 * sol-thread.c (ps_pglobal_lookup): Update.
9077 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9078 * solib-dsbt.c (lm_base): Update.
9079 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9081 * solib-irix.c (locate_base): Update.
9082 * solib-som.c (som_solib_create_inferior_hook)
9083 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9085 * solib-spu.c (spu_enable_break): Update.
9086 * solib-svr4.c (elf_locate_base, enable_break): Update.
9087 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9088 (flush_ea_cache): Update.
9089 * stabsread.c (define_symbol): Update.
9090 * symfile.c (simple_read_overlay_table): Update.
9091 * symtab.c (find_pc_sect_line): Update.
9092 * tracepoint.c (scope_info): Update.
9093 * tui-disasm.c (tui_get_begin_asm_address): Update.
9094 * value.c (value_static_field): Update.
9096 2014-02-26 Tom Tromey <tromey@redhat.com>
9098 * minsyms.c (prim_record_minimal_symbol_full): Use
9099 SET_MSYMBOL_VALUE_ADDRESS.
9100 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9101 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9102 SET_MSYMBOL_VALUE_ADDRESS.
9103 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9104 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9106 2014-02-26 Tom Tromey <tromey@redhat.com>
9108 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9109 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9110 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9111 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9112 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9113 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9114 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9115 * ada-lang.c (ada_main_name): Update.
9116 (ada_lookup_simple_minsym): Update.
9117 (ada_make_symbol_completion_list): Update.
9118 (ada_add_standard_exceptions): Update.
9119 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9120 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9121 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9122 * arm-tdep.c (skip_prologue_function): Update.
9123 (arm_skip_stack_protector, arm_skip_stub): Update.
9124 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9125 (arm_wince_skip_main_prologue): Update.
9126 * auxv.c (ld_so_xfer_auxv): Update.
9127 * avr-tdep.c (avr_scan_prologue): Update.
9128 * ax-gdb.c (gen_var_ref): Update.
9129 * block.c (call_site_for_pc): Update.
9130 * blockframe.c (get_pc_function_start): Update.
9131 (find_pc_partial_function_gnu_ifunc): Update.
9132 * breakpoint.c (create_overlay_event_breakpoint): Update.
9133 (create_longjmp_master_breakpoint): Update.
9134 (create_std_terminate_master_breakpoint): Update.
9135 (create_exception_master_breakpoint): Update.
9136 (resolve_sal_pc): Update.
9137 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9138 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9140 * c-valprint.c (c_val_print): Update.
9141 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9142 * coffread.c (coff_symfile_read): Update.
9143 * common/agent.c (agent_look_up_symbols): Update.
9144 * dbxread.c (find_stab_function_addr): Update.
9145 (end_psymtab): Update.
9146 * dwarf2loc.c (call_site_to_target_addr): Update.
9147 (func_verify_no_selftailcall): Update.
9148 (tailcall_dump): Update.
9149 (call_site_find_chain_1): Update.
9150 (dwarf_expr_reg_to_entry_parameter): Update.
9151 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9152 (elf_gnu_ifunc_resolve_by_got): Update.
9153 * f-valprint.c (info_common_command): Update.
9154 * findvar.c (read_var_value): Update.
9155 * frame.c (get_prev_frame_1): Update.
9156 (inside_main_func): Update.
9157 * frv-tdep.c (frv_skip_main_prologue): Update.
9158 (frv_frame_this_id): Update.
9159 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9160 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9161 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9162 (gnuv3_skip_trampoline): Update.
9163 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9164 (hppa64_hpux_in_solib_call_trampoline): Update.
9165 (hppa_hpux_skip_trampoline_code): Update.
9166 (hppa64_hpux_search_dummy_call_sequence): Update.
9167 (hppa_hpux_find_import_stub_for_addr): Update.
9168 (hppa_hpux_find_dummy_bpaddr): Update.
9169 * hppa-tdep.c (hppa_symbol_address)
9170 (hppa_lookup_stub_minimal_symbol): Update.
9171 * i386-tdep.c (i386_skip_main_prologue): Update.
9172 (i386_pe_skip_trampoline_code): Update.
9173 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9174 * infcall.c (get_function_name): Update.
9175 * infcmd.c (until_next_command): Update.
9176 * jit.c (jit_breakpoint_re_set_internal): Update.
9177 (jit_inferior_init): Update.
9178 * linespec.c (minsym_found): Update.
9179 (add_minsym): Update.
9180 * linux-fork.c (info_checkpoints_command): Update.
9181 * linux-nat.c (get_signo): Update.
9182 * linux-thread-db.c (inferior_has_bug): Update.
9183 * m32c-tdep.c (m32c_return_value): Update.
9184 (m32c_m16c_address_to_pointer): Update.
9185 (m32c_m16c_pointer_to_address): Update.
9186 * m32r-tdep.c (m32r_frame_this_id): Update.
9187 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9188 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9189 * maint.c (maintenance_translate_address): Update.
9190 * minsyms.c (add_minsym_to_hash_table): Update.
9191 (add_minsym_to_demangled_hash_table): Update.
9192 (msymbol_objfile): Update.
9193 (lookup_minimal_symbol): Update.
9194 (iterate_over_minimal_symbols): Update.
9195 (lookup_minimal_symbol_text): Update.
9196 (lookup_minimal_symbol_by_pc_name): Update.
9197 (lookup_minimal_symbol_solib_trampoline): Update.
9198 (lookup_minimal_symbol_by_pc_section_1): Update.
9199 (lookup_minimal_symbol_and_objfile): Update.
9200 (prim_record_minimal_symbol_full): Update.
9201 (compare_minimal_symbols): Update.
9202 (compact_minimal_symbols): Update.
9203 (build_minimal_symbol_hash_tables): Update.
9204 (install_minimal_symbols): Update.
9205 (terminate_minimal_symbol_table): Update.
9206 (find_solib_trampoline_target): Update.
9207 (minimal_symbol_upper_bound): Update.
9208 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9209 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9210 (mips_skip_pic_trampoline_code): Update.
9211 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9212 * objc-lang.c (selectors_info): Update.
9213 (classes_info): Update.
9214 (find_methods): Update.
9215 (find_imps): Update.
9216 (find_objc_msgsend): Update.
9217 * objfiles.c (objfile_relocate1): Update.
9218 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9219 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9220 * p-valprint.c (pascal_val_print): Update.
9221 * parse.c (write_exp_msymbol): Update.
9222 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9223 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9224 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9225 * printcmd.c (build_address_symbolic): Update.
9227 (address_info): Update.
9228 * proc-service.c (ps_pglobal_lookup): Update.
9229 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9230 (find_pc_sect_psymtab): Update.
9231 * python/py-framefilter.c (py_print_frame): Update.
9232 * ravenscar-thread.c (get_running_thread_id): Update.
9233 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9235 * remote.c (remote_check_symbols): Update.
9236 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9237 (rs6000_skip_trampoline_code): Update.
9238 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9239 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9240 * solib-dsbt.c (lm_base): Update.
9241 * solib-frv.c (lm_base): Update.
9243 * solib-irix.c (locate_base): Update.
9244 * solib-som.c (som_solib_create_inferior_hook): Update.
9245 (som_solib_desire_dynamic_linker_symbols): Update.
9246 (link_map_start): Update.
9247 * solib-spu.c (spu_enable_break): Update.
9248 (ocl_enable_break): Update.
9249 * solib-svr4.c (elf_locate_base): Update.
9250 (enable_break): Update.
9251 * spu-tdep.c (spu_get_overlay_table): Update.
9252 (spu_catch_start): Update.
9253 (flush_ea_cache): Update.
9254 * stabsread.c (define_symbol): Update.
9255 (scan_file_globals): Update.
9256 * stack.c (find_frame_funname): Update.
9257 (frame_info): Update.
9258 * symfile.c (simple_read_overlay_table): Update.
9259 (simple_overlay_update): Update.
9260 * symmisc.c (dump_msymbols): Update.
9261 * symtab.c (fixup_section): Update.
9262 (find_pc_sect_line): Update.
9263 (skip_prologue_sal): Update.
9264 (search_symbols): Update.
9265 (print_msymbol_info): Update.
9266 (rbreak_command): Update.
9267 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9268 (completion_list_objc_symbol): Update.
9269 (default_make_symbol_completion_list_break_on): Update.
9270 * tracepoint.c (scope_info): Update.
9271 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9272 (tui_get_begin_asm_address): Update.
9273 * valops.c (find_function_in_inferior): Update.
9274 * value.c (value_static_field): Update.
9275 (value_fn_field): Update.
9277 2014-02-26 Tom Tromey <tromey@redhat.com>
9279 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9280 bound minimal symbols. Move code that knows about minsym
9282 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9284 * minsyms.h (minimal_symbol_upper_bound): Declare.
9285 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9286 minimal_symbol_upper_bound.
9288 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9290 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9291 Use the type's name if its basic type does not have a tag.
9293 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9295 * dwarf2read.c (read_subrange_type): Add comment.
9297 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9299 * dwarf2read.c (update_enumeration_type_from_children): New
9300 function, mostly extracted from process_structure_scope.
9301 (read_enumeration_type): Call update_enumeration_type_from_children.
9302 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9303 and flag_flag_enum fields.
9305 2014-02-26 Pedro Alves <palves@redhat.com>
9307 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9308 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9309 to_xfer_partial method.
9311 2014-02-26 Pedro Alves <palves@redhat.com>
9313 * target.c (complete_target_initialization): Don't install
9314 default_xfer_partial as to_xfer_partial hook.
9316 (update_current_target): Don't INHERIT nor de_fault
9317 deprecated_xfer_memory. Delete de_fault macro.
9318 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9319 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9320 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9323 2014-02-26 Pedro Alves <palves@redhat.com>
9325 * go32-nat.c (my_write_child): New function.
9326 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9327 (go32_xfer_partial): New function.
9328 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9329 Instead install a to_xfer_partial hook.
9331 2014-02-26 Pedro Alves <palves@redhat.com>
9333 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9334 to_xfer_partial helper. Rewrite.
9335 (procfs_xfer_partial): New function.
9336 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9337 Install a to_xfer_partial hook.
9339 2014-02-26 Pedro Alves <palves@redhat.com>
9341 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9342 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9343 (m32r_xfer_partial): New function.
9344 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9345 Install a to_xfer_partial hook.
9347 2014-02-26 Pedro Alves <palves@redhat.com>
9349 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9351 (mips_xfer_partial): New function.
9352 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9353 hook. Install a to_xfer_partial hook.
9355 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9357 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9358 * gdbtypes.c (create_array_type_with_stride): New function,
9359 renaming create_array_type, but with an added parameter
9360 called "bit_stride".
9361 (create_array_type): Re-implement using
9362 create_array_type_with_stride.
9363 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9364 and DW_AT_bit_stride attributes.
9366 2014-02-26 Pedro Alves <palves@redhat.com>
9368 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9369 task-specific breakpoints.
9371 2014-02-25 Pedro Alves <palves@redhat.com>
9373 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9374 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9376 2014-02-25 Stan Shebs <stan@codesourcery.com>
9378 * defs.h: Annotate comments for Doxygen.
9380 2014-02-25 Tom Tromey <tromey@redhat.com>
9382 * target.h (target_ignore): Don't declare.
9383 * target.c (target_ignore): Remove.
9385 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9388 * auto-load.c (auto_load_objfile_script_1): Change filename to
9391 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9393 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9394 documentation. Adjust prototype to match the target_ops
9395 to_xfer_partial method. Adjust implementation accordingly.
9397 2014-02-25 Hui Zhu <hui@codesourcery.com>
9399 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9402 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9404 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9405 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9406 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9407 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9408 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9409 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9410 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9411 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9413 (rl78_register_type): Use a data pointer type for SP and
9414 new pseudo registers mentioned above. Use a 16 bit integer
9415 type for all other register pairs.
9416 (rl78_register_name, rl78_g10_register_name): Update for
9417 new pseudo registers.
9418 (rl78_pseudo_register_read): Likewise.
9419 (rl78_pseudo_register_write): Likewise.
9420 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9421 to the newly added pseudo registers.
9423 2014-02-24 Doug Evans <dje@google.com>
9425 * value.c (record_latest_value): Fix comment.
9426 * printcmd.c (print_command_1): Remove code to handle -1 return from
9427 record_latest_value.
9429 2014-02-24 Pedro Alves <palves@redhat.com>
9431 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9432 deprecated_xfer_memory hook.
9433 (procfs_xfer_partial): Call procfs_xfer_memory instead
9434 of the deprecated_xfer_memory target hook.
9435 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9438 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9440 * windows-nat.c (windows_xfer_shared_libraries): Return
9441 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9442 requested object is TARGET_OBJECT_LIBRARIES.
9444 2014-02-24 Yao Qi <yao@codesourcery.com>
9446 * target.h (enum target_xfer_status)
9447 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9448 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9450 * corefile.c (memory_error_message): User updated.
9451 * exec.c (section_table_read_available_memory): Likewise.
9452 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9453 * target.c (target_xfer_status_to_string): Likewise.
9454 (raw_memory_xfer_partial): Likewise.
9455 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9456 * valops.c (read_value_memory): Likewise.
9457 * exec.h: Update comments.
9459 2014-02-24 Yao Qi <yao@codesourcery.com>
9461 * target.c (target_xfer_status_to_string): Rename argument err
9463 * target.h (target_xfer_status_to_string): Update declaration.
9464 Replace target_xfer_error_to_string with
9465 target_xfer_status_to_string in comment.
9467 2014-02-24 Yao Qi <yao@codesourcery.com>
9469 * mips-linux-nat.c (super_close): Update its type.
9470 (mips_linux_close): Pass 'self' to super_close.
9472 2014-02-24 Yao Qi <yao@codesourcery.com>
9474 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9475 * corefile.c (read_memory): Adjusted.
9476 * target.c (target_write_with_progress): Adjusted.
9478 2014-02-23 Yao Qi <yao@codesourcery.com>
9482 2013-10-25 Yao Qi <yao@codesourcery.com>
9484 * remote.c (remote_traceframe_info): Return early if
9485 traceframe is not selected.
9487 2013-07-19 Yao Qi <yao@codesourcery.com>
9489 * target.c (update_current_target): Change the default action
9490 of 'to_traceframe_info' from tcomplain to return_zero.
9491 * target.h (struct target_ops) <to_traceframe_info>: Add more
9494 2014-02-23 Yao Qi <yao@codesourcery.com>
9496 * valops.c (read_value_memory): Rewrite it. Call
9497 target_xfer_partial in a loop.
9498 * exec.h (section_table_available_memory): Remove declaration.
9499 Move comments to ...
9500 * exec.c (section_table_available_memory): ... here. Make it
9503 2014-02-23 Yao Qi <yao@codesourcery.com>
9505 * exec.c (section_table_read_available_memory): New function.
9506 * exec.h (section_table_read_available_memory): Declare.
9507 * ctf.c (ctf_xfer_partial): Call
9508 section_table_read_available_memory.
9509 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9511 2014-02-23 Yao Qi <yao@codesourcery.com>
9513 * ctf.c (ctf_xfer_partial): Move code to ...
9514 * exec.c (exec_read_partial_read_only): ... it. New function.
9515 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9516 * tracefile.c: Include "exec.h".
9517 * exec.h (exec_read_partial_read_only): Declare.
9519 2014-02-23 Yao Qi <yao@codesourcery.com>
9521 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9522 (tfile_has_memory): Remove.
9523 (init_tfile_ops): Don't set fields to_has_all_memory and
9524 to_has_memory of tfile_ops.
9525 * tracefile.c (tracefile_has_all_memory): New function.
9526 (tracefile_has_memory): New function.
9527 (init_tracefile_ops): Initialize fields to_has_all_memory and
9528 to_has_memory of 'ops'.
9530 2014-02-23 Yao Qi <yao@codesourcery.com>
9532 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9533 (ctf_thread_alive, ctf_get_trace_status): Remove.
9534 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9536 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9537 (tfile_has_stack, tfile_has_registers): Remove.
9538 (tfile_thread_alive): Remove.
9539 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9541 * tracefile.c (tracefile_has_stack): New function.
9542 (tracefile_has_registers): New function.
9543 (tracefile_thread_alive): New function.
9544 (tracefile_get_trace_status): New function.
9545 (init_tracefile_ops): New function.
9546 * tracefile.h (init_tracefile_ops): Declare.
9548 2014-02-23 Yao Qi <yao@codesourcery.com>
9550 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9551 (O_LARGEFILE): Likewise.
9552 (tfile_ops): Likewise.
9553 (TRACE_HEADER_SIZE): Likewise.
9554 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9555 (cur_data_size): Likewise.
9556 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9557 (tfile_close, tfile_files_info): Likewise.
9558 (tfile_get_trace_status): Likewise.
9559 (tfile_get_tracepoint_status): Likewise.
9560 (tfile_get_traceframe_address): Likewise.
9561 (tfile_trace_find, match_blocktype): Likewise.
9562 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9563 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9564 (tfile_get_trace_state_variable_value): Likewise.
9565 (tfile_has_all_memory, tfile_has_memory): Likewise.
9566 (tfile_has_stack, tfile_has_registers): Likewise.
9567 (tfile_thread_alive, build_traceframe_info): Likewise.
9568 (tfile_traceframe_info, init_tfile_ops): Likewise.
9569 (_initialize_tracepoint): Don't call init_tfile_ops
9570 and add_target_with_completer.
9571 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9572 exec.h, completer.h and filenames.h.
9573 (_initialize_tracefile_tfile): New function.
9575 2014-02-23 Yao Qi <yao@codesourcery.com>
9577 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9579 (HFILES_NO_SRCDIR): Add tracefile.h.
9580 * ctf.c: Include "tracefile.h".
9581 * tracefile.h: New file.
9582 * tracefile.c: New file
9583 * tracefile-tfile.c: New file.
9584 * tracepoint.c: Include "tracefile.h".
9585 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9586 (stop_reason_names): Add const.
9587 (trace_file_writer_xfree): Move it to tracefile.c.
9588 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9589 (trace_save_ctf): Likewise.
9590 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9591 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9592 (tfile_write_header, tfile_write_regblock_type): Likewise.
9593 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9594 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9595 (tfile_write_raw_data, tfile_end): Likewise.
9596 (tfile_trace_file_writer_new): Likewise.
9597 (free_uploaded_tp): Make it extern.
9598 (free_uploaded_tsv): Make it extern.
9599 (_initialize_tracepoint): Move code to register command 'tsave'
9601 * tracepoint.h (stop_reason_names): Declare.
9602 (struct trace_frame_write_ops): Move it to tracefile.h.
9603 (struct trace_file_write_ops): Likewise.
9604 (struct trace_file_writer): Likewise.
9605 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9607 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9610 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9612 (get_cores_used_by_process): New parameter num_cores, use it.
9613 (linux_xfer_osdata_processes): Pass num_cores to it.
9614 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9617 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9619 * target.c (memory_xfer_partial): Fix length arg in call to
9620 breakpoint_xfer_memory.
9622 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9625 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9626 number comes after the + or - signs. Adjust length of register
9627 name to be extracted.
9629 2014-02-20 Tom Tromey <tromey@redhat.com>
9631 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9632 (ada_varobj_ops): Mark "extern".
9634 2014-02-20 Tom Tromey <tromey@redhat.com>
9636 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9638 2014-02-20 Doug Evans <xdje42@gmail.com>
9640 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9641 All callers updated.
9642 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9643 All callers updated.
9644 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9645 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9647 2014-02-20 lin zuojian <manjian2006@gmail.com>
9648 Joel Brobecker <brobecker@adacore.com>
9649 Doug Evans <xdje42@gmail.com>
9652 * dwarf2read.c (struct die_info): New member in_process.
9653 (reset_die_in_process): New function.
9654 (process_die): Set it at the start, reset when returning.
9655 (inherit_abstract_dies): Only call process_die if origin_child_die
9656 not already being processed.
9658 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9660 * windows-nat.c (handle_unload_dll): Add function documentation.
9661 (do_initial_windows_stuff): Add comment explaining why we wait
9662 until after inferior initialization has finished before
9663 processing all DLLs.
9665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9667 * windows-nat.c (get_module_name): Delete.
9668 (windows_get_exec_module_filename): New function, mostly
9669 inspired from get_module_name.
9670 (windows_pid_to_exec_file): Replace call to get_module_name
9671 by call to windows_get_exec_module_filename.
9673 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9675 * windows-nat.c (handle_load_dll): Rewrite this function's
9676 introductory comment. Remove code using get_module_name
9677 to get the DLL's name.
9679 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9681 * windows-nat.c (get_windows_debug_event): Ignore
9682 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9683 if windows_initialization_done == 0.
9684 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9685 Adjust implementation to always load all DLLs.
9686 (do_initial_windows_stuff): Replace call to
9687 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9691 * windows-nat.c (_initialize_windows_nat): Deprecate the
9692 "dll-symbols" command. Turn the "add-shared-symbol-files"
9693 and "assf" aliases into commands, and deprecate them as well.
9694 * NEWS: Add entry explaining that "dll-symbols" and its two
9695 aliases are now deprecated.
9697 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9699 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9700 new-line in debug string. Remove trailing spaces.
9702 2014-02-19 Stan Shebs <stan@codesourcery.com>
9704 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9706 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9708 * NEWS: Add entry for the new feature
9709 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9712 2014-02-19 Stan Shebs <stan@codesourcery.com>
9714 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9716 2014-02-19 Pedro Alves <palves@redhat.com>
9718 * common/ptid.h (struct ptid): Mention that process_stratum
9719 targets should prefer ptid.lwp.
9721 2014-02-19 Pedro Alves <palves@redhat.com>
9723 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9724 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9725 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9726 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9727 store remote thread ids rather than ptid.tid.
9728 (_initialize_remote): Adjust.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.c (target_get_unwinder): Rewrite.
9733 (target_get_tailcall_unwinder): Rewrite.
9734 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9735 (record_btrace_to_get_tailcall_unwinder): New function.
9736 (init_record_btrace_ops): Update.
9737 * target.h (struct target_ops) <to_get_unwinder,
9738 to_get_tailcall_unwinder>: Now function pointers. Use
9739 TARGET_DEFAULT_RETURN.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9745 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9751 * target-delegates.c: Rebuild.
9752 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9753 TARGET_DEFAULT_FUNC.
9754 * target.c (default_target_decr_pc_after_break): Rename from
9755 forward_target_decr_pc_after_break. Simplify.
9756 (target_decr_pc_after_break): Rely on delegation.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target.c (update_current_target): Do not INHERIT to_doc or
9761 to_magic. Do not de_fault to_open or to_close.
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9765 * gcore.h (objfile_find_memory_regions): Declare.
9766 * gcore.c (objfile_find_memory_regions): No longer static. Add
9768 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9769 * exec.c: Include gcore.h.
9770 (exec_set_find_memory_regions): Remove.
9771 (exec_find_memory_regions): Remove.
9772 (exec_do_find_memory_regions): Remove.
9773 (init_exec_ops): Update.
9774 * defs.h (exec_set_find_memory_regions): Remove.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target-delegates.c: Rebuild.
9779 * target.h (struct target_ops) <to_extra_thread_info,
9780 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9781 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9782 not 0, in TARGET_DEFAULT_RETURN.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target.c (complete_target_initialization): Remove casts. Use
9787 return_zero_has_execution.
9788 (return_zero): Add "ignore" argument.
9789 (return_zero_has_execution): New function.
9790 (init_dummy_target): Remove casts. Use
9791 return_zero_has_execution.
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9795 * target.c (update_current_target): Update comments. Do not
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9802 * corelow.c (core_read_description): Delegate when needed.
9803 * remote.c (remote_read_description): Delegate when needed.
9804 * target-delegates.c: Rebuild.
9805 * target.c (target_read_description): Rewrite.
9806 * target.h (struct target_ops) <to_read_description>: Update
9807 comment. Use TARGET_DEFAULT_RETURN.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target-delegates.c: Rebuild.
9812 * target.c (update_current_target): Don't inherit or default
9814 (find_default_run_target): Check against delegate_can_run.
9815 * target.h (struct target_ops) <to_can_run>: Use
9816 TARGET_DEFAULT_RETURN.
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9820 * target-delegates.c: Rebuild.
9821 * target.c (target_disconnect): Unconditionally delegate.
9822 * target.h (struct target_ops) <to_disconnect>: Use
9823 TARGET_DEFAULT_NORETURN.
9825 2014-02-19 Tom Tromey <tromey@redhat.com>
9827 * record.c (record_stop): Unconditionally delegate.
9828 * target-delegates.c: Rebuild.
9829 * target.c (target_stop_recording): Unconditionally delegate.
9830 * target.h (struct target_ops) <to_stop_recording>: Use
9831 TARGET_DEFAULT_IGNORE.
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9835 * target-delegates.c: Rebuild.
9836 * target.c (target_enable_btrace): Unconditionally delegate.
9837 * target.h (struct target_ops) <to_enable_btrace>: Use
9838 TARGET_DEFAULT_NORETURN.
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9842 * target-delegates.c: Rebuild.
9843 * target.c (target_read_btrace): Unconditionally delegate.
9844 * target.h (struct target_ops) <to_read_btrace>: Use
9845 TARGET_DEFAULT_NORETURN.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target-delegates.c: Rebuild.
9850 * target.c (target_teardown_btrace): Unconditionally delegate.
9851 * target.h (struct target_ops) <to_teardown_btrace>: Use
9852 TARGET_DEFAULT_NORETURN.
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target-delegates.c: Rebuild.
9857 * target.c (target_disable_btrace): Unconditionally delegate.
9858 * target.h (struct target_ops) <to_disable_btrace>: Use
9859 TARGET_DEFAULT_NORETURN.
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target-delegates.c: Rebuild.
9864 * target.c (default_search_memory): New function.
9865 (simple_search_memory): Update comment.
9866 (target_search_memory): Unconditionally delegate.
9867 * target.h (struct target_ops) <to_search_memory>: Use
9868 TARGET_DEFAULT_FUNC.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * auxv.c (default_auxv_parse): No longer static.
9873 (target_auxv_parse): Unconditionally delegate.
9874 * auxv.h (default_auxv_parse): Declare.
9875 * target-delegates.c: Rebuild.
9876 * target.c: Include auxv.h.
9877 * target.h (struct target_ops) <to_auxv_parse>: Use
9878 TARGET_DEFAULT_FUNC.
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9882 * target-delegates.c: Rebuild.
9883 * target.c (target_memory_map): Unconditionally delegate.
9884 * target.h (struct target_ops) <to_memory_map>: Use
9885 TARGET_DEFAULT_RETURN.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target-delegates.c: Rebuild.
9890 * target.c (target_thread_alive): Unconditionally delegate.
9891 * target.h (struct target_ops) <to_thread_alive>: Use
9892 TARGET_DEFAULT_RETURN.
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9896 * target-delegates.c: Rebuild.
9897 * target.c (target_save_record): Unconditionally delegate.
9898 * target.h (struct target_ops) <to_save_record>: Use
9899 TARGET_DEFAULT_NORETURN.
9901 2014-02-19 Tom Tromey <tromey@redhat.com>
9903 * target-delegates.c: Rebuild.
9904 * target.c (target_delete_record): Unconditionally delegate.
9905 * target.h (struct target_ops) <to_delete_record>: Use
9906 TARGET_DEFAULT_NORETURN.
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target-delegates.c: Rebuild.
9911 * target.c (target_record_is_replaying): Unconditionally
9913 * target.h (struct target_ops) <to_record_is_replaying>: Use
9914 TARGET_DEFAULT_RETURN.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target-delegates.c: Rebuild.
9919 * target.c (target_goto_record_begin): Unconditionally delegate.
9920 * target.h (struct target_ops) <to_goto_record_begin>: Use
9921 TARGET_DEFAULT_NORETURN.
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9925 * target-delegates.c: Rebuild.
9926 * target.c (target_goto_record_end): Unconditionally delegate.
9927 * target.h (struct target_ops) <to_goto_record_end>: Use
9928 TARGET_DEFAULT_NORETURN.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target-delegates.c: Rebuild.
9933 * target.c (target_goto_record): Unconditionally delegate.
9934 * target.h (struct target_ops) <to_goto_record>: Use
9935 TARGET_DEFAULT_NORETURN.
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9939 * target-delegates.c: Rebuild.
9940 * target.c (target_insn_history): Unconditionally delegate.
9941 * target.h (struct target_ops) <to_insn_history>: Use
9942 TARGET_DEFAULT_NORETURN.
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target-delegates.c: Rebuild.
9947 * target.c (target_insn_history_from): Unconditionally delegate.
9948 * target.h (struct target_ops) <to_insn_history_from>: Use
9949 TARGET_DEFAULT_NORETURN.
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target-delegates.c: Rebuild.
9954 * target.c (target_insn_history_range): Unconditionally delegate.
9955 * target.h (struct target_ops) <to_insn_history_range>: Use
9956 TARGET_DEFAULT_NORETURN.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (target_call_history): Unconditionally delegate.
9962 * target.h (struct target_ops) <to_call_history>: Use
9963 TARGET_DEFAULT_NORETURN.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target-delegates.c: Rebuild.
9968 * target.c (target_call_history_from): Unconditionally delegate.
9969 * target.h (struct target_ops) <to_call_history_from>: Use
9970 TARGET_DEFAULT_NORETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (target_call_history_range): Unconditionally delegate.
9976 * target.h (struct target_ops) <to_call_history_range>: Use
9977 TARGET_DEFAULT_NORETURN.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target-delegates.c: Rebuild.
9982 * target.c (target_verify_memory): Unconditionally delegate.
9983 * target.h (struct target_ops) <to_verify_memory>: Use
9984 TARGET_DEFAULT_NORETURN.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.c (target_core_of_thread): Unconditionally delegate.
9990 * target.h (struct target_ops) <to_core_of_thread>: Use
9991 TARGET_DEFAULT_RETURN.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target-delegates.c: Rebuild.
9996 * target.c (target_flash_done): Unconditionally delegate.
9997 * target.h (struct target_ops) <to_flash_done>: Use
9998 TARGET_DEFAULT_NORETURN.
10000 2014-02-19 Tom Tromey <tromey@redhat.com>
10002 * target-delegates.c: Rebuild.
10003 * target.c (target_flash_erase): Unconditionally delegate.
10004 * target.h (struct target_ops) <to_flash_erase>: Use
10005 TARGET_DEFAULT_NORETURN.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target-delegates.c: Rebuild.
10010 * target.c (target_get_section_table): Unconditionally delegate.
10011 * target.h (struct target_ops) <to_get_section_table>: Use
10012 TARGET_DEFAULT_RETURN.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (target_pid_to_str): Unconditionally delegate.
10018 (init_dummy_target): Don't initialize to_pid_to_str.
10019 (default_pid_to_str): Rename from dummy_pid_to_str.
10020 * target.h (struct target_ops) <to_pid_to_str>: Use
10021 TARGET_DEFAULT_FUNC.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (target_find_new_threads): Unconditionally delegate.
10027 * target.h (struct target_ops) <to_find_new_threads>: Use
10028 TARGET_DEFAULT_RETURN.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (target_program_signals): Unconditionally delegate.
10034 * target.h (struct target_ops) <to_program_signals>: Use
10035 TARGET_DEFAULT_IGNORE.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (target_pass_signals): Unconditionally delegate.
10041 * target.h (struct target_ops) <to_pass_signals>: Use
10042 TARGET_DEFAULT_IGNORE.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target-delegates.c: Rebuild.
10047 * target.c (default_mourn_inferior): New function.
10048 (target_mourn_inferior): Unconditionally delegate.
10049 * target.h (struct target_ops) <to_mourn_inferior>: Use
10050 TARGET_DEFAULT_FUNC.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target-delegates.c: Rebuild.
10055 * target.c (default_follow_fork): New function.
10056 (target_follow_fork): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_follow_fork>: Use
10058 TARGET_DEFAULT_FUNC.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (target_kill): Unconditionally delegate.
10064 * target.h (struct target_ops) <to_kill>: Use
10065 TARGET_DEFAULT_NORETURN.
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10069 * target-delegates.c: Rebuild.
10070 * target.c (target_masked_watch_num_registers): Unconditionally
10072 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10073 Use TARGET_DEFAULT_RETURN.
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_remove_mask_watchpoint): Unconditionally
10080 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10081 TARGET_DEFAULT_RETURN.
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_insert_mask_watchpoint): Unconditionally
10088 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10089 TARGET_DEFAULT_RETURN.
10091 2014-02-19 Tom Tromey <tromey@redhat.com>
10093 * target-delegates.c: Rebuild.
10094 * target.c (target_ranged_break_num_registers): Unconditionally
10096 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10097 Use TARGET_DEFAULT_RETURN.
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_fetch_registers): Unconditionally delegate.
10103 * target.h (struct target_ops) <to_fetch_registers>: Use
10104 TARGET_DEFAULT_NORETURN.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target-delegates.c: Rebuild.
10109 * target.c (update_current_target): Don't inherit or default
10111 * target.h (struct target_ops) <to_stop>: Use
10112 TARGET_DEFAULT_IGNORE.
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target-delegates.c: Rebuild.
10117 * target.c (update_current_target): Don't inherit or default
10118 to_can_run_breakpoint_commands.
10119 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10120 Use TARGET_DEFAULT_RETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (update_current_target): Don't inherit or default
10126 to_supports_evaluation_of_breakpoint_conditions.
10127 * target.h (struct target_ops)
10128 <to_supports_evaluation_of_breakpoint_conditions>: Use
10129 TARGET_DEFAULT_RETURN.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target-delegates.c: Rebuild.
10134 * target.c (update_current_target): Don't inherit or default
10135 to_augmented_libraries_svr4_read.
10136 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10137 Use TARGET_DEFAULT_RETURN.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target-delegates.c: Rebuild.
10142 * target.c (update_current_target): Don't inherit or default
10144 * target.h (struct target_ops) <to_can_use_agent>: Use
10145 TARGET_DEFAULT_RETURN.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * target-delegates.c: Rebuild.
10150 * target.c (update_current_target): Don't inherit or default
10152 * target.h (struct target_ops) <to_use_agent>: Use
10153 TARGET_DEFAULT_NORETURN.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * target-delegates.c: Rebuild.
10158 * target.c (update_current_target): Don't inherit or default
10159 to_traceframe_info.
10160 (return_null): Remove.
10161 * target.h (struct target_ops) <to_traceframe_info>: Use
10162 TARGET_DEFAULT_RETURN.
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10166 * target-delegates.c: Rebuild.
10167 * target.c (update_current_target): Don't inherit or default
10168 to_static_tracepoint_markers_by_strid.
10169 * target.h (struct target_ops)
10170 <to_static_tracepoint_markers_by_strid>: Use
10171 TARGET_DEFAULT_NORETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10177 to_static_tracepoint_marker_at.
10178 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10179 Use TARGET_DEFAULT_RETURN.
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10185 to_set_permissions.
10186 * target.h (struct target_ops) <to_set_permissions>: Use
10187 TARGET_DEFAULT_IGNORE.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_get_tib_address.
10194 * target.h (struct target_ops) <to_get_tib_address>: Use
10195 TARGET_DEFAULT_NORETURN.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_set_trace_notes.
10202 * target.h (struct target_ops) <to_set_trace_notes>: Use
10203 TARGET_DEFAULT_RETURN.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target-delegates.c: Rebuild.
10208 * target.c (update_current_target): Don't initialize
10209 to_set_trace_buffer_size.
10210 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10211 TARGET_DEFAULT_IGNORE.
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target-delegates.c: Rebuild.
10216 * target.c (update_current_target): Don't inherit or default
10217 to_set_circular_trace_buffer.
10218 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10219 TARGET_DEFAULT_IGNORE.
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * target-delegates.c: Rebuild.
10224 * target.c (update_current_target): Don't inherit or default
10225 to_set_disconnected_tracing.
10226 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10227 TARGET_DEFAULT_IGNORE.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target-delegates.c: Rebuild.
10232 * target.c (update_current_target): Don't inherit or default
10233 to_get_min_fast_tracepoint_insn_len.
10234 (return_minus_one): Remove.
10235 * target.h (struct target_ops)
10236 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10242 to_get_raw_trace_data.
10243 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10244 TARGET_DEFAULT_NORETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10250 to_upload_trace_state_variables.
10251 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10252 Use TARGET_DEFAULT_RETURN.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target-delegates.c: Rebuild.
10257 * target.c (update_current_target): Don't inherit or default
10258 to_upload_tracepoints.
10259 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10260 TARGET_DEFAULT_RETURN.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (update_current_target): Don't inherit or default
10266 to_save_trace_data.
10267 * target.h (struct target_ops) <to_save_trace_data>: Use
10268 TARGET_DEFAULT_NORETURN.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_get_trace_state_variable_value.
10275 * target.h (struct target_ops)
10276 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10283 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target-delegates.c: Rebuild.
10288 * target.c (update_current_target): Don't inherit or default
10290 * target.h (struct target_ops) <to_trace_stop>: Use
10291 TARGET_DEFAULT_NORETURN.
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10295 * target-delegates.c: Rebuild.
10296 * target.c (update_current_target): Don't inherit or default
10297 to_get_tracepoint_status.
10298 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10299 TARGET_DEFAULT_NORETURN.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target-delegates.c: Rebuild.
10304 * target.c (update_current_target): Don't inherit or default
10305 to_get_trace_status.
10306 * target.h (struct target_ops) <to_get_trace_status>: Use
10307 TARGET_DEFAULT_RETURN.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target-delegates.c: Rebuild.
10312 * target.c (update_current_target): Don't inherit or default
10314 * target.h (struct target_ops) <to_trace_start>: Use
10315 TARGET_DEFAULT_NORETURN.
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10319 * target-delegates.c: Rebuild.
10320 * target.c (update_current_target): Don't inherit or default
10321 to_trace_set_readonly_regions.
10322 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10323 Use TARGET_DEFAULT_NORETURN.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_disable_tracepoint.
10330 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10331 TARGET_DEFAULT_NORETURN.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_enable_tracepoint.
10338 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10339 TARGET_DEFAULT_NORETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_download_trace_state_variable.
10346 * target.h (struct target_ops) <to_download_trace_state_variable>:
10347 Use TARGET_DEFAULT_NORETURN.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_can_download_tracepoint.
10354 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10355 TARGET_DEFAULT_RETURN.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't inherit or default
10361 to_download_tracepoint.
10362 * target.h (struct target_ops) <to_download_tracepoint>: Use
10363 TARGET_DEFAULT_NORETURN.
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10370 * target.h (struct target_ops) <to_trace_init>: Use
10371 TARGET_DEFAULT_RETURN.
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10375 * target-delegates.c: Rebuild.
10376 * target.c (update_current_target): Don't inherit or default
10377 to_supports_string_tracing.
10378 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10379 TARGET_DEFAULT_RETURN.
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_supports_enable_disable_tracepoint.
10386 * target.h (struct target_ops)
10387 <to_supports_enable_disable_tracepoint>: Use
10388 TARGET_DEFAULT_RETURN.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10394 to_supports_multi_process.
10395 * target.h (struct target_ops) <to_supports_multi_process>: Use
10396 TARGET_DEFAULT_RETURN.
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10400 * target-delegates.c: Rebuild.
10401 * target.c (update_current_target): Don't inherit or default
10402 to_get_ada_task_ptid.
10403 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10404 TARGET_DEFAULT_FUNC.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_thread_architecture.
10411 * target.h (struct target_ops) <to_thread_architecture>: Use
10412 TARGET_DEFAULT_FUNC.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_execution_direction.
10419 * target.h (struct target_ops) <to_execution_direction>: Use
10420 TARGET_DEFAULT_FUNC.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_can_execute_reverse.
10427 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10428 TARGET_DEFAULT_RETURN.
10429 (target_can_execute_reverse): Unconditionally delegate.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10436 (dummy_goto_bookmark): Remove.
10437 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10438 * target.h (struct target_ops) <to_goto_bookmark>: Use
10439 TARGET_DEFAULT_NORETURN.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10446 (dummy_get_bookmark): Remove.
10447 (init_dummy_target): Don't inherit or default to_get_bookmark.
10448 * target.h (struct target_ops) <to_get_bookmark>: Use
10449 TARGET_DEFAULT_NORETURN
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10455 to_make_corefile_notes.
10456 (init_dummy_target): Don't initialize to_make_corefile_notes.
10457 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10458 TARGET_DEFAULT_FUNC.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target-delegates.c: Rebuild.
10463 * target.c (update_current_target): Don't inherit or default
10464 to_find_memory_regions.
10465 (init_dummy_target): Don't initialize to_find_memory_regions.
10466 * target.h (struct target_ops) <to_find_memory_regions>: Use
10467 TARGET_DEFAULT_FUNC.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10474 * target.h (struct target_ops) <to_log_command>: Use
10475 TARGET_DEFAULT_IGNORE.
10476 (target_log_command): Unconditionally delegate.
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10480 * target-delegates.c: Rebuild.
10481 * target.c (update_current_target): Don't inherit or default
10482 to_pid_to_exec_file.
10483 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10484 TARGET_DEFAULT_RETURN.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target-delegates.c: Rebuild.
10489 * target.c (update_current_target): Don't inherit or default
10491 (target_thread_name): Unconditionally delegate.
10492 * target.h (struct target_ops) <to_thread_name>: Use
10493 TARGET_DEFAULT_RETURN.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10499 to_extra_thread_info.
10500 * target.h (struct target_ops) <to_extra_thread_info>: Use
10501 TARGET_DEFAULT_RETURN.
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10508 * target.h (struct target_ops) <to_has_exited>: Use
10509 TARGET_DEFAULT_RETURN..
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10515 to_set_syscall_catchpoint.
10516 (return_one): Remove.
10517 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10518 TARGET_DEFAULT_RETURN.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_insert_exec_catchpoint.
10525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10526 TARGET_DEFAULT_RETURN.
10528 2014-01-08 Tom Tromey <tromey@redhat.com>
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_insert_exec_catchpoint.
10533 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10534 TARGET_DEFAULT_RETURN.
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_remove_vfork_catchpoint.
10541 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10542 TARGET_DEFAULT_RETURN.
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_insert_vfork_catchpoint.
10549 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10550 TARGET_DEFAULT_RETURN.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_remove_fork_catchpoint.
10557 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10558 TARGET_DEFAULT_RETURN.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't inherit or default
10564 to_insert_fork_catchpoint.
10565 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10566 TARGET_DEFAULT_RETURN.
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_post_startup_inferior.
10573 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10574 TARGET_DEFAULT_IGNORE.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10581 * target.h (struct target_ops) <to_load>: Use
10582 TARGET_DEFAULT_NORETURN.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10589 * target.h (struct target_ops) <to_terminal_info>: Use
10590 TARGET_DEFAULT_FUNC.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_terminal_save_ours.
10597 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10598 TARGET_DEFAULT_IGNORE.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10605 * target.h (struct target_ops) <to_terminal_ours>: Use
10606 TARGET_DEFAULT_IGNORE.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10612 to_terminal_ours_for_output.
10613 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10614 TARGET_DEFAULT_IGNORE.
10616 2014-02-19 Tom Tromey <tromey@redhat.com>
10618 * target-delegates.c: Rebuild.
10619 * target.c (update_current_target): Don't inherit or default
10620 to_terminal_inferior.
10621 * target.h (struct target_ops) <to_terminal_inferior>: Use
10622 TARGET_DEFAULT_IGNORE.
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10626 * target-delegates.c: Rebuild.
10627 * target.c (update_current_target): Don't inherit or default
10629 * target.h (struct target_ops) <to_terminal_init>: Use
10630 TARGET_DEFAULT_IGNORE.
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10634 * target-delegates.c: Rebuild.
10635 * target.c (update_current_target): Don't inherit or default
10636 to_can_accel_watchpoint_condition.
10637 * target.h (struct target_ops)
10638 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10644 to_region_ok_for_hw_watchpoint.
10645 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10646 Use TARGET_DEFAULT_FUNC.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_watchpoint_addr_within_range.
10653 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10654 Use TARGET_DEFAULT_FUNC.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_remove_watchpoint.
10661 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10662 TARGET_DEFAULT_NORETURN.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_insert_watchpoint.
10669 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10670 TARGET_DEFAULT_RETURN.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_remove_hw_breakpoint.
10677 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10678 TARGET_DEFAULT_RETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_insert_hw_breakpoint.
10685 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10686 TARGET_DEFAULT_RETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_can_use_hw_breakpoint.
10693 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10694 TARGET_DEFAULT_RETURN.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10701 * target.h (struct target_ops) <to_files_info>: Use
10702 TARGET_DEFAULT_IGNORE.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10709 * target.h (struct target_ops) <to_store>: Use
10710 TARGET_DEFAULT_NORETURN.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10717 * target.h (struct target_ops) <to_post_attach>: Use
10718 TARGET_DEFAULT_IGNORE.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10725 (default_rcmd): New function.
10726 (do_monitor_command): Unconditionally delegate.
10727 * target.h (struct target_ops) <to_rmcd>: Use
10728 TARGET_DEFAULT_FUNC.
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10732 * target-delegates.c: Rebuild.
10733 * target.c (init_dummy_target): Don't initialize to_attach.
10734 (target_attach): Unconditionally delegate.
10735 * target.h (struct target_ops) <to_attach>: Use
10736 TARGET_DEFAULT_FUNC.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * target-delegates.c: Rebuild.
10741 * target.c (target_detach): Unconditionally delegate.
10742 (init_dummy_target): Don't initialize to_detach.
10743 * target.h (struct target_ops) <to_detach>: Use
10744 TARGET_DEFAULT_IGNORE.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10750 (target_augmented_libraries_svr4_read): Add argument.
10751 * target.c (update_current_target): Update.
10752 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target.h (struct target_ops) <to_call_history_range>: Add
10759 * target.c (target_call_history_range): Add argument.
10760 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10762 (record_btrace_call_history_from): Update.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target.h (struct target_ops) <to_call_history_from>: Add
10768 * target.c (target_call_history_from): Add argument.
10769 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10774 * target.h (struct target_ops) <to_call_history>: Add argument.
10775 * target.c (target_call_history): Add argument.
10776 * record-btrace.c (record_btrace_call_history): Add 'self'
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10781 * target.h (struct target_ops) <to_insn_history_range>: Add
10783 * target.c (target_insn_history_range): Add argument.
10784 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10786 (record_btrace_insn_history_from): Update.
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target.h (struct target_ops) <to_insn_history_from>: Add
10792 * target.c (target_insn_history_from): Add argument.
10793 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target.h (struct target_ops) <to_insn_history>: Add argument.
10799 * target.c (target_insn_history): Add argument.
10800 * record-btrace.c (record_btrace_insn_history): Add 'self'
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target.h (struct target_ops) <to_goto_record>: Add argument.
10806 * target.c (target_goto_record): Add argument.
10807 * record-full.c (record_full_goto): Add 'self' argument.
10808 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10810 2014-02-19 Tom Tromey <tromey@redhat.com>
10812 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10813 * target.c (target_goto_record_end): Add argument.
10814 * record-full.c (record_full_goto_end): Add 'self' argument.
10815 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target.h (struct target_ops) <to_goto_record_begin>: Add
10821 * target.c (target_goto_record_begin): Add argument.
10822 * record-full.c (record_full_goto_begin): Add 'self' argument.
10823 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target.h (struct target_ops) <to_record_is_replaying>: Add
10830 * target.c (target_record_is_replaying): Add argument.
10831 * record-full.c (record_full_is_replaying): Add 'self' argument.
10832 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10834 (record_btrace_xfer_partial, record_btrace_store_registers)
10835 (record_btrace_prepare_to_store, record_btrace_resume)
10836 (record_btrace_wait, record_btrace_decr_pc_after_break)
10837 (record_btrace_find_new_threads, record_btrace_thread_alive):
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (struct target_ops) <to_delete_record>: Add argument.
10843 * target.c (target_delete_record): Add argument.
10844 * record-full.c (record_full_delete): Add 'self' argument.
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10848 * target.h (struct target_ops) <to_save_record>: Add argument.
10849 * target.c (target_save_record): Add argument.
10850 * record-full.c (record_full_save): Add 'self' argument.
10851 (record_full_save): Add 'self' argument.
10853 2014-02-19 Tom Tromey <tromey@redhat.com>
10855 * target.h (struct target_ops) <to_info_record>: Add argument.
10856 * target.c (target_info_record): Add argument.
10857 * record.c (info_record_command): Add argument.
10858 * record-full.c (record_full_info): Add 'self' argument.
10859 * record-btrace.c (record_btrace_info): Add 'self' argument.
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10863 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10864 * target.c (target_stop_recording): Add argument.
10865 * record.c (record_stop): Add argument.
10866 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10871 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10872 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10873 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10875 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10876 (_initialize_amd64_linux_nat): Use it.
10877 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10878 (_initialize_i386_linux_nat): Use it.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10883 * target.c (target_teardown_btrace): Add argument.
10884 * remote.c (remote_teardown_btrace): Add 'self' argument.
10885 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10887 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10892 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10893 * target.c (target_disable_btrace): Add argument.
10894 * remote.c (remote_disable_btrace): Add 'self' argument.
10895 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10897 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10903 * target.c (target_enable_btrace): Add argument.
10904 * remote.c (remote_enable_btrace): Add 'self' argument.
10905 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10907 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10913 (target_can_use_agent): Add argument.
10914 * target.c (update_current_target): Update.
10915 * remote.c (remote_can_use_agent): Add 'self' argument.
10916 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10920 * target.h (struct target_ops) <to_use_agent>: Add argument.
10921 (target_use_agent): Add argument.
10922 * target.c (update_current_target): Update.
10923 * remote.c (remote_use_agent): Add 'self' argument.
10924 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10928 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10929 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10930 (target_traceframe_info): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_traceframe_info): Add 'self' argument.
10933 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target.h (target_static_tracepoint_markers_by_strid): Add
10939 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10941 * target.c (update_current_target): Update.
10942 * remote.c (struct target_ops)
10943 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10944 * linux-nat.c (struct target_ops)
10945 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10951 (target_static_tracepoint_marker_at): Add argument.
10952 * target.c (update_current_target): Update.
10953 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10959 (target_set_permissions): Add argument.
10960 * target.c (update_current_target): Update.
10961 * remote.c (remote_set_permissions): Add 'self' argument.
10962 (remote_start_remote): Update.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10967 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10968 (target_get_tib_address): Add argument.
10969 * target.c (update_current_target): Update.
10970 * remote.c (remote_get_tib_address): Add 'self' argument.
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10975 (target_set_trace_notes): Add argument.
10976 * target.c (update_current_target): Update.
10977 * remote.c (remote_set_trace_notes): Add 'self' argument.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10983 (target_set_trace_buffer_size): Add argument.
10984 * target.c (update_current_target): Update.
10985 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10991 (target_set_circular_trace_buffer): Add argument.
10992 * target.c (update_current_target): Update.
10993 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11000 (target_set_disconnected_tracing): Add argument.
11001 * target.c (update_current_target): Update.
11002 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target.h (struct target_ops)
11007 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11008 (target_get_min_fast_tracepoint_insn_len): Add argument.
11009 * target.c (update_current_target): Update.
11010 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11013 2014-02-19 Tom Tromey <tromey@redhat.com>
11015 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11017 (target_get_raw_trace_data): Add argument.
11018 * target.c (update_current_target): Update.
11019 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11025 (target_upload_trace_state_variables): Add argument.
11026 * target.c (update_current_target): Update.
11027 * remote.c (remote_upload_trace_state_variables): Add 'self'
11029 (remote_start_remote): Update.
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11033 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11035 (target_upload_tracepoints): Add argument.
11036 * target.c (update_current_target): Update.
11037 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11038 (remote_start_remote): Update.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11043 (target_save_trace_data): Add argument.
11044 * target.c (update_current_target): Update.
11045 * remote.c (remote_save_trace_data): Add 'self' argument.
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11051 * target.h (struct target_ops)
11052 <to_get_trace_state_variable_value>: Add argument.
11053 (target_get_trace_state_variable_value): Add argument.
11054 * target.c (update_current_target): Update.
11055 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11057 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11062 * target.h (struct target_ops) <to_trace_find>: Add argument.
11063 (target_trace_find): Add argument.
11064 * target.c (update_current_target): Update.
11065 * remote.c (remote_trace_find): Add 'self' argument.
11066 * ctf.c (ctf_trace_find): Add 'self' argument.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11071 (target_trace_stop): Add argument.
11072 * target.c (update_current_target): Update.
11073 * remote.c (remote_trace_stop): Add 'self' argument.
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11078 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11080 (target_get_tracepoint_status): Add argument.
11081 * target.c (update_current_target): Update.
11082 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11087 * target.h (struct target_ops) <to_get_trace_status>: Add
11089 (target_get_trace_status): Add argument.
11090 * target.c (update_current_target): Update.
11091 * remote.c (remote_get_trace_status): Add 'self' argument.
11092 (remote_start_remote, remote_can_download_tracepoint): Update.
11093 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11097 * target.h (struct target_ops) <to_trace_start>: Add argument.
11098 (target_trace_start): Add argument.
11099 * target.c (update_current_target): Update.
11100 * remote.c (remote_trace_start): Add 'self' argument.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11106 (target_trace_set_readonly_regions): Add argument.
11107 * target.c (update_current_target): Update.
11108 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11115 (target_disable_tracepoint): Add argument.
11116 * target.c (update_current_target): Update.
11117 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11121 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11123 (target_enable_tracepoint): Add argument.
11124 * target.c (update_current_target): Update.
11125 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_download_trace_state_variable>:
11131 (target_download_trace_state_variable): Add argument.
11132 * target.c (update_current_target): Update.
11133 * remote.c (remote_download_trace_state_variable): Add 'self'
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11140 (target_can_download_tracepoint): Add argument.
11141 * target.c (update_current_target): Update.
11142 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_download_tracepoint>: Add
11148 (target_download_tracepoint): Add argument.
11149 * target.c (update_current_target): Update.
11150 * remote.c (remote_download_tracepoint): Add 'self' argument.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target.h (struct target_ops) <to_trace_init>: Add argument.
11155 (target_trace_init): Add argument.
11156 * target.c (update_current_target): Update.
11157 * remote.c (remote_trace_init): Add 'self' argument.
11159 2014-02-19 Tom Tromey <tromey@redhat.com>
11161 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11162 * target.c (target_fileio_readlink): Add argument.
11163 * remote.c (remote_hostio_readlink): Add 'self' argument.
11164 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11169 * target.c (target_fileio_unlink): Add argument.
11170 * remote.c (remote_hostio_unlink): Add 'self' argument.
11171 (remote_file_delete): Update.
11172 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11177 * target.c (target_fileio_close): Add argument.
11178 * remote.c (remote_hostio_close): Add 'self' argument.
11179 (remote_hostio_close_cleanup): Update.
11180 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11182 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11187 * target.c (target_fileio_pread): Add argument.
11188 * remote.c (remote_hostio_pread): Add 'self' argument.
11189 (remote_bfd_iovec_pread, remote_file_get): Update.
11190 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11195 * target.c (target_fileio_pwrite): Add argument.
11196 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11197 (remote_file_put): Update.
11198 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11202 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11203 * target.c (target_fileio_open): Add argument.
11204 * remote.c (remote_hostio_open): Add 'self' argument.
11205 (remote_bfd_iovec_open): Add 'self' argument.
11206 (remote_file_put): Add 'self' argument.
11207 (remote_file_get): Add 'self' argument.
11208 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11214 (target_can_run_breakpoint_commands): Add argument.
11215 * target.c (update_current_target): Update.
11216 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11218 (remote_insert_breakpoint): Add 'self' argument.
11219 (remote_insert_hw_breakpoint): Add 'self' argument.
11220 (remote_can_run_breakpoint_commands): Add 'self' argument.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops)
11225 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11226 (target_supports_evaluation_of_breakpoint_conditions): Add
11228 * target.c (update_current_target): Update.
11229 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11231 (remote_insert_breakpoint): Add 'self' argument.
11232 (remote_insert_hw_breakpoint): Add 'self' argument.
11233 (remote_supports_cond_breakpoints): Add 'self' argument.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11239 (target_supports_string_tracing): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target.h (struct target_ops)
11246 <to_supports_disable_randomization>: Add argument.
11247 * target.c (find_default_supports_disable_randomization): Add
11249 (target_supports_disable_randomization): Add argument.
11250 (find_default_supports_disable_randomization): Add 'self'
11252 * remote.c (extended_remote_supports_disable_randomization): Add
11254 (remote_supports_disable_randomization): Add 'self' argument.
11255 (extended_remote_create_inferior): Update.
11256 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target.h (struct target_ops)
11262 <to_supports_enable_disable_tracepoint>: Add argument.
11263 (target_supports_enable_disable_tracepoint): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target.h (struct target_ops) <to_supports_multi_process>: Add
11272 (target_supports_multi_process): Add argument.
11273 * target.c (update_current_target): Update.
11274 * remote.c (remote_supports_multi_process): Add 'self' argument.
11275 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11277 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11282 * target.h (struct target_ops) <to_execution_direction>: Add
11284 (target_execution_direction): Add argument.
11285 * target.c (default_execution_direction): Add 'self' argument.
11286 * record-full.c (record_full_execution_direction): Add 'self'
11289 2014-02-19 Tom Tromey <tromey@redhat.com>
11291 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11293 (target_can_execute_reverse): Add argument.
11294 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11295 * record-full.c (record_full_can_execute_reverse): Add 'self'
11297 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11303 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11305 (target_get_ada_task_ptid): Add argument.
11306 * target.c (update_current_target): Update.
11307 (default_get_ada_task_ptid): Add 'self' argument.
11308 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11309 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11310 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11312 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11314 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11316 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11318 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11319 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11322 2014-02-19 Tom Tromey <tromey@redhat.com>
11324 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11325 (target_goto_bookmark): Add argument.
11326 * target.c (dummy_goto_bookmark): Add 'self' argument.
11327 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11332 (target_get_bookmark): Add argument.
11333 * target.c (dummy_get_bookmark): Add 'self' argument.
11334 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11340 (target_make_corefile_notes): Add argument.
11341 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11342 * procfs.c (procfs_make_note_section): Add 'self' argument.
11343 (procfs_make_note_section): Add 'self' argument.
11344 (procfs_make_note_section): Add 'self' argument.
11345 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11347 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11348 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11349 * exec.c (exec_make_note_section): Add 'self' argument.
11350 (exec_make_note_section): Add 'self' argument.
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target.h (struct target_ops) <to_find_memory_regions>: Add
11356 (target_find_memory_regions): Add argument.
11357 * target.c (dummy_find_memory_regions): Add 'self' argument.
11358 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11359 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11360 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11361 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11362 * exec. (exec_do_find_memory_regions): New global.
11363 (exec_set_find_memory_regions): Rewrite.
11364 (exec_find_memory_regions): New function.
11365 (init_exec_ops): Use exec_find_memory_regions.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * target.h (struct target_ops) <to_supports_non_stop>: Add
11371 * target.c (find_default_supports_non_stop): Add argument.
11372 (target_supports_non_stop): Add argument.
11373 (find_default_supports_non_stop): Add 'self' argument.
11374 * remote.c (remote_supports_non_stop): Add 'self' argument.
11375 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * target.h (struct target_ops) <to_log_command>: Add argument.
11380 (target_log_command): Add argument.
11381 * serial.h (serial_log_command): Add 'self' argument.
11382 * serial.c (serial_log_command): Add 'self' argument.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11387 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11389 (target_pid_to_exec_file): Add argument.
11390 * target.c (debug_to_pid_to_exec_file): Add argument.
11391 (update_current_target): Update.
11392 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11393 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11394 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11395 (linux_handle_extended_wait): Update.
11396 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11397 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11398 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11399 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11403 * target.h (struct target_ops) <to_rcmd>: Add argument.
11404 (target_rcmd): Add argument.
11405 * target.c (debug_to_rcmd): Add argument.
11406 (update_current_target, do_monitor_command): Update.
11407 * remote.c (remote_rcmd): Add 'self' argument.
11408 * monitor.c (monitor_rcmd): Add 'self' argument.
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11412 * windows-nat.c (windows_stop): Add 'self' argument.
11413 * target.h (struct target_ops) <to_stop>: Add argument.
11414 * target.c (target_stop): Add argument.
11415 (debug_to_stop): Add argument.
11416 (update_current_target): Update.
11417 * remote.c (remote_stop): Add 'self' argument.
11418 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11419 (gdbsim_cntrl_c): Update.
11420 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11421 * procfs.c (procfs_stop): Add 'self' argument.
11422 * nto-procfs.c (procfs_stop): Add 'self' argument.
11423 * monitor.c (monitor_stop): Add 'self' argument.
11424 (monitor_open): Update.
11425 * linux-nat.c (linux_nat_stop): Add argument.
11426 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11427 * gnu-nat.c (gnu_stop): Add 'self' argument.
11428 * darwin-nat.c (darwin_stop): Add 'self' argument.
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11432 * target.h (struct target_ops) <to_thread_name>: Add argument.
11433 * target.c (target_thread_name): Add argument.
11434 (update_current_target): Update.
11435 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11439 * target.h (struct target_ops) <to_extra_thread_info>: Add
11441 (target_extra_thread_info): Add argument.
11442 * target.c (update_current_target): Update.
11443 * remote.c (remote_threads_extra_info): Add 'self' argument.
11444 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11446 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11447 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11448 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11450 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11452 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11454 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target.h (struct target_ops) <to_program_signals>: Add argument.
11460 * target.c (target_program_signals): Add argument.
11461 * remote.c (remote_program_signals): Add 'self' argument.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11466 * target.c (target_pass_signals): Add argument.
11467 * remote.c (remote_pass_signals): Add 'self' argument.
11468 (remote_start_remote): Update.
11469 * procfs.c (procfs_pass_signals): Add 'self' argument.
11470 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11471 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11472 (linux_nat_create_inferior, linux_nat_attach): Update.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * windows-nat.c (windows_can_run): Add 'self' argument.
11477 * target.h (struct target_ops) <to_can_run>: Add argument.
11478 (target_can_run): Add argument.
11479 * target.c (debug_to_can_run): Add argument.
11480 (update_current_target): Update.
11481 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11482 * inf-child.c (inf_child_can_run): Add 'self' argument.
11483 * go32-nat.c (go32_can_run): Add 'self' argument.
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target.h (struct target_ops) <to_has_exited>: Add argument.
11488 (target_has_exited): Add argument.
11489 * target.c (debug_to_has_exited): Add argument.
11490 (update_current_target): Update.
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11494 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11496 (target_set_syscall_catchpoint): Add argument.
11497 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11499 * target.c (update_current_target): Update.
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11503 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11505 (target_remove_exec_catchpoint): Add argument.
11506 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11507 (update_current_target): Update.
11508 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11511 2014-02-19 Tom Tromey <tromey@redhat.com>
11513 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11515 (target_insert_exec_catchpoint): Add argument.
11516 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11517 (update_current_target): Update.
11518 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11525 (target_remove_vfork_catchpoint): Add argument.
11526 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11527 (update_current_target): Update.
11528 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11535 (target_insert_vfork_catchpoint): Add argument.
11536 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11537 (update_current_target): Update.
11538 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11543 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11545 (target_remove_fork_catchpoint): Add argument.
11546 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11547 (update_current_target): Update.
11548 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11555 (target_insert_fork_catchpoint): Add argument.
11556 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11557 (update_current_target): Update.
11558 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11565 (target_post_startup_inferior): Add argument.
11566 * target.c (debug_to_post_startup_inferior): Add argument.
11567 (update_current_target): Update.
11568 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11570 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11572 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11574 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11576 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11578 (super_post_startup_inferior): Likewise.
11579 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11581 (super_post_startup_inferior): Likewise.
11582 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11583 Add 'self' argument.
11584 (super_post_startup_inferior): Likewise.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.h (struct target_ops) <to_load>: Add argument.
11589 * target.c (target_load): Add argument.
11590 (debug_to_load): Add argument.
11591 (update_current_target): Update.
11592 * remote.c (remote_load): Add 'self' argument.
11593 * remote-sim.c (gdbsim_load): Add 'self' argument.
11594 * remote-mips.c (mips_load): Add 'self' argument.
11595 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11596 * monitor.c (monitor_load): Add 'self' argument.
11597 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11599 2014-02-19 Tom Tromey <tromey@redhat.com>
11601 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11602 (target_terminal_info): Add argument.
11603 * target.c (debug_to_terminal_info): Add argument.
11604 (default_terminal_info): Likewise.
11605 * inflow.c (child_terminal_info): Add 'self' argument.
11606 * inferior.h (child_terminal_info): Add 'self' argument.
11607 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11611 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11613 (target_terminal_save_ours): Add argument.
11614 * target.c (debug_to_terminal_save_ours): Add argument.
11615 (update_current_target): Update.
11616 * inflow.c (terminal_save_ours): Add 'self' argument.
11617 * inferior.h (terminal_save_ours): Add 'self' argument.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11622 (target_terminal_ours): Add argument.
11623 * target.c (debug_to_terminal_ours): Add argument.
11624 (update_current_target): Update.
11625 * remote.c (remote_terminal_ours): Add 'self' argument.
11626 (remote_close): Update.
11627 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11628 * inflow.c (terminal_ours): Add 'self' argument.
11629 * inferior.h (terminal_ours): Add 'self' argument.
11630 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11632 2014-02-19 Pedro Alves <palves@redhat.com>
11633 Tom Tromey <tromey@redhat.com>
11635 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11637 (target_terminal_ours_for_output): Add argument.
11638 * target.c (debug_to_terminal_ours_for_output): Add argument.
11639 (update_current_target): Update.
11640 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11641 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11642 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_terminal_inferior>: Add
11648 * target.c (target_terminal_inferior): Add argument.
11649 (update_current_target): Update.
11650 * remote.c (remote_terminal_inferior): Add 'self' argument.
11651 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11652 * inflow.c (terminal_inferior): Add 'self' argument.
11653 * inferior.h (terminal_inferior): Add 'self' argument.
11654 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11655 (go32_terminal_inferior): Add 'self' argument.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11660 (target_terminal_init): Add argument.
11661 * target.c (debug_to_terminal_init): Add argument.
11662 (update_current_target): Update.
11663 * inflow.c (terminal_init_inferior): Add 'self' argument.
11664 * inferior.h (terminal_init_inferior): Add 'self' argument.
11665 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11666 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target.h (struct target_ops)
11671 <to_can_accel_watchpoint_condition>: Add argument.
11672 (target_can_accel_watchpoint_condition): Add argument.
11673 * target.c (debug_to_can_accel_watchpoint_condition): Add
11675 (update_current_target): Update.
11676 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11679 2014-02-19 Tom Tromey <tromey@redhat.com>
11681 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11683 (target_region_ok_for_hw_watchpoint): Add argument.
11684 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11685 (default_region_ok_for_hw_watchpoint): Add argument.
11686 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11687 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11689 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11691 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11693 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11695 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11697 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11699 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11700 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11702 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11703 Add 'self' argument.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11709 (target_insert_watchpoint): Add argument.
11710 * target.c (debug_to_insert_watchpoint): Add argument.
11711 (update_current_target): Update.
11712 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11713 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11714 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11715 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11716 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11717 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11719 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11720 (procfs_insert_hw_watchpoint): Add 'self' argument.
11721 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11723 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11725 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11727 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11728 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11730 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11737 (target_remove_watchpoint): Add argument.
11738 * target.c (debug_to_remove_watchpoint): Add argument.
11739 (update_current_target): Update.
11740 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11741 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11742 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11743 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11744 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11745 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11747 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11748 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11750 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11752 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11754 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11755 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11757 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11764 (target_remove_hw_breakpoint): Add argument.
11765 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11766 (update_current_target): Update.
11767 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11768 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11770 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11771 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11773 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11780 (target_insert_hw_breakpoint): Add argument.
11781 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11782 (update_current_target): Update.
11783 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11784 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11786 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11787 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11788 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11790 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11797 (target_can_use_hardware_watchpoint): Add argument.
11798 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11799 (update_current_target): Update.
11800 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11802 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11804 * remote.c (remote_check_watch_resources): Add 'self' argument.
11805 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11806 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11808 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11809 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11811 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11813 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11815 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11817 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11819 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11821 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11822 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11824 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11829 * target.h (struct target_ops) <to_post_attach>: Add argument.
11830 (target_post_attach): Add argument.
11831 * target.c (debug_to_post_attach): Add argument.
11832 (update_current_target): Update.
11833 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11834 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11835 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11836 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11837 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * windows-nat.c (windows_close): Add 'self' argument.
11842 * tracepoint.c (tfile_close): Add 'self' argument.
11843 * target.h (struct target_ops) <to_close>: Add argument.
11844 * target.c (target_close): Add argument.
11845 (update_current_target): Update.
11846 * remote.c (remote_close): Add 'self' argument.
11847 * remote-sim.c (gdbsim_close): Add 'self' argument.
11848 * remote-mips.c (mips_close): Add 'self' argument.
11849 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11850 * record-full.c (record_full_close): Add 'self' argument.
11851 * record-btrace.c (record_btrace_close): Add 'self' argument.
11852 * monitor.h (monitor_close): Add 'self' argument.
11853 * monitor.c (monitor_close): Add 'self' argument.
11854 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11855 * linux-nat.c (linux_nat_close): Add argument.
11856 * go32-nat.c (go32_close): Add 'self' argument.
11857 * exec.c (exec_close_1): Add 'self' argument.
11858 * ctf.c (ctf_close): Add 'self' argument.
11859 * corelow.c (core_close): Add 'self' argument.
11860 (core_close_cleanup): Update.
11861 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11862 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * remote.c (remote_load): New function.
11867 (init_remote_ops): Use it.
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11871 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11873 * common/linux-btrace.h (linux_supports_btrace): Update.
11874 * remote.c (remote_supports_btrace): Add "self" argument.
11875 * target-delegates.c: Rebuild.
11876 * target.c (target_supports_btrace): Remove.
11877 * target.h (struct target_ops) <to_supports_btrace>: Add
11878 target_ops argument.
11879 (target_supports_btrace): New define.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * record-full.c (record_full_beneath_to_resume_ops)
11884 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11885 (record_full_beneath_to_wait)
11886 (record_full_beneath_to_store_registers_ops)
11887 (record_full_beneath_to_store_registers)
11888 (record_full_beneath_to_xfer_partial_ops)
11889 (record_full_beneath_to_xfer_partial)
11890 (record_full_beneath_to_insert_breakpoint_ops)
11891 (record_full_beneath_to_insert_breakpoint)
11892 (record_full_beneath_to_remove_breakpoint_ops)
11893 (record_full_beneath_to_remove_breakpoint)
11894 (record_full_beneath_to_stopped_by_watchpoint)
11895 (record_full_beneath_to_stopped_data_address)
11896 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11897 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11898 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11899 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11900 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11901 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11902 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11903 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11904 (record_full_resume, record_full_wait_1)
11905 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11906 (record_full_store_registers, record_full_xfer_partial)
11907 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11908 (record_full_async, record_full_core_xfer_partial): Use target
11910 * target-delegates.c: Rebuild.
11911 * target.c (current_xfer_partial): Remove.
11912 (update_current_target): Do not INHERIT or de_fault
11913 to_insert_breakpoint, to_remove_breakpoint,
11914 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11915 to_is_async_p, to_async. Do not set to_xfer_partial field.
11916 (default_xfer_partial): Simplify.
11917 (current_xfer_partial): Remove.
11918 (target_wait, target_resume): Simplify.
11919 (find_default_can_async_p, find_default_is_async_p): Update.
11920 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11921 to_xfer_partial, to_stopped_by_watchpoint,
11922 to_stopped_data_address.
11923 (target_store_registers): Simplify.
11924 (forward_target_remove_breakpoint)
11925 (forward_target_insert_breakpoint): Remove.
11926 (target_remove_breakpoint, target_insert_breakpoint)
11927 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11928 * target.h (struct target_ops) <to_resume, to_wait,
11929 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11930 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11931 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11933 (forward_target_remove_breakpoint)
11934 (forward_target_insert_breakpoint): Remove.
11935 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11937 (record_btrace_insert_breakpoint): Delegate directly.
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target-delegates.c: New file.
11943 * target.c: Include target-delegates.c.
11944 (init_dummy_target): Call install_dummy_methods.
11945 (complete_target_initialization): Call install_delegators.
11946 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11947 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11948 * make-target-delegates: New file.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * record.c (find_record_target): Use find_target_at.
11953 * target.c (find_target_at): New function.
11954 * target.h (find_target_at): Declare.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11959 Add 'ops' argument.
11960 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11962 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11963 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11965 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11967 * linux-nat.c (save_sigtrap): Update.
11968 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11969 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11970 (linux_nat_close): Update.
11971 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11973 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11975 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11976 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11977 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11978 (tmp_to_async): Add 'ops' argument.
11979 (record_full_stopped_by_watchpoint, record_full_async)
11980 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11982 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11983 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11984 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11985 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11986 (remote_is_async_p, remote_async): Add 'ops' argument.
11987 (remote_stopped_data_address): Update.
11988 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11989 * target.c (update_current_target)
11990 (find_default_can_async_p, find_default_is_async_p): Update.
11991 (init_dummy_target): Update.
11992 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11993 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11994 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11995 (target_can_async_p, target_is_async_p, target_async)
11996 (target_stopped_by_watchpoint): Update.
11998 2014-02-19 Yao Qi <yao@codesourcery.com>
12001 * gdbarch.sh: Remove startup_gdbarch.
12002 * gdbarch.c: Regenerated.
12003 * gdbarch.h: Likewise.
12005 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12007 * rl78-tdep.c (rl78_g10_register_name): New function.
12008 (rl78_return_value): Add g10 support.
12009 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12012 2014-02-17 Doug Evans <xdje42@gmail.com>
12014 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12015 (SUBDIR_GUILE_SRCS): Ditto.
12016 (scm-gsmob.o): Ditto.
12018 2014-02-17 Yao Qi <yao@codesourcery.com>
12020 * gnu-nat.c (ILL_RPC): Declare defined function.
12022 2014-02-17 Yao Qi <yao@codesourcery.com>
12024 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12025 mach_msg_type_number_t.
12026 (gnu_write_inferior): Likewise.
12028 2014-02-17 Yao Qi <yao@codesourcery.com>
12030 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12032 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12033 (inf_validate_procs, inf_signal): Likewise.
12034 (S_exception_raise_request): Likewise.
12035 (do_mach_notify_dead_name): Likewise.
12036 (steal_exc_port): Likewise.
12037 (gnu_read_inferior): Change 'copy_count''s type to
12038 mach_msg_type_number_t.
12039 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12042 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12044 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12045 flag. Adjust all users; in particular...
12046 (gnu_wait): ..., don't decrement its value in here...
12047 (gnu_create_inferior): ..., and instead set the flag in here,
12048 around the startup_inferior call, and call that one with
12049 START_INFERIOR_TRAPS_EXPECTED.
12051 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12052 (ILL_RPC): ... new macro.
12053 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12054 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12055 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12056 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12057 functions with ILL_RPC macro.
12058 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12059 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12060 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12061 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12062 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12063 (S_proc_getlogin_reply, S_proc_getsid_reply)
12064 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12065 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12066 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12067 (S_proc_getnports_reply, S_proc_is_important_reply)
12068 (S_proc_get_code_reply): New stub functions, generated with
12071 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12072 collected the type check structures.
12074 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12076 2014-02-14 Doug Evans <dje@google.com>
12078 * target.c (target_write_partial): Fix result type.
12080 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12082 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12083 the proper offsets to access fpregset_t.
12085 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12087 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12088 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12089 * h8300-tdep.c (setmachinelist): Remove global.
12090 * hppa-tdep.c (hppa_sigtramp): Remove global.
12091 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12092 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12093 * ravenscar-thread.c (update_target_observer): Remove global.
12094 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12096 2014-02-12 Tom Tromey <tromey@redhat.com>
12098 * common/rsp-low.c: Update comments.
12099 * common/rsp-low.h: Update comments.
12101 2014-02-12 Tom Tromey <tromey@redhat.com>
12103 * common/rsp-low.c (convert_ascii_to_int): Remove.
12104 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12106 2014-02-12 Tom Tromey <tromey@redhat.com>
12108 * common/rsp-low.h (unhexify): Don't declare.
12109 * common/rsp-low.c (unhexify): Remove.
12111 2014-02-12 Tom Tromey <tromey@redhat.com>
12113 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12114 * common/rsp-low.c (convert_int_to_ascii): Remove.
12116 2014-02-12 Tom Tromey <tromey@redhat.com>
12118 * common/rsp-low.h (hexify): Don't declare.
12119 * common/rsp-low.c (hexify): Remove.
12121 2014-02-12 Tom Tromey <tromey@redhat.com>
12123 * common/rsp-low.c (hexify): Never take strlen of argument.
12125 2014-02-12 Tom Tromey <tromey@redhat.com>
12127 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12128 * remote.c (extended_remote_run, remote_rcmd)
12129 (remote_download_trace_state_variable, remote_save_trace_data)
12130 (remote_set_trace_notes): Update.
12131 * tracepoint.c (encode_source_string, tfile_write_status)
12132 (tfile_write_uploaded_tsv): Update.
12134 2014-02-12 Tom Tromey <tromey@redhat.com>
12136 * tracepoint.c: Include rsp-low.h.
12137 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12138 * remote.c: Include rsp-low.h.
12139 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12140 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12141 (remote_unescape_input): Move to common/rsp-low.c.
12142 * common/rsp-low.h: New file.
12143 * common/rsp-low.c: New file.
12144 * Makefile.in (SFILES): Add common/rsp-low.c.
12145 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12146 (COMMON_OBS): Add rsp-low.o.
12147 (rsp-low.o): New target.
12149 2014-02-12 Tom Tromey <tromey@redhat.com>
12151 * utils.h: Include print-utils.h.
12152 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12153 (int_string, core_addr_to_string, core_addr_to_string_nz)
12154 (hex_string, hex_string_custom): Don't declare.
12155 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12156 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12157 (hex_string_custom, int_string, core_addr_to_string)
12158 (core_addr_to_string_nz, host_address_to_string): Move to
12159 common/print-utils.c.
12160 * common/print-utils.h: New file.
12161 * common/print-utils.c: New file
12162 * Makefile.in (SFILES): Add common/print-utils.c.
12163 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12164 (COMMON_OBS): Add print-utils.o.
12165 (print-utils.o): New target.
12167 2014-02-12 Tom Tromey <tromey@redhat.com>
12169 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12173 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12175 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12177 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12178 if a PT_IO ptrace request returns sucessfully but indicates that 0
12179 bytes were transferred.
12181 2014-02-12 Pedro Alves <palves@redhat.com>
12182 Kevin Buettner <kevinb@redhat.com>
12184 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12185 TYPE_INSTANCE_FLAG_CODE_SPACE.
12187 2014-02-12 Pedro Alves <palves@redhat.com>
12189 * h8300-tdep.c (pseudo_from_raw_register)
12190 (raw_from_pseudo_register): New functions.
12191 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12194 2014-02-12 Pedro Alves <palves@redhat.com>
12196 * h8300-tdep.c (h8300_register_sim_regno): New function.
12197 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12198 gdbarch_register_sim_regno hook.
12200 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12202 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12204 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12206 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12208 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12210 * obsd-tdep.h (obsd_init_abi): New prototype.
12211 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12212 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12213 (obsd_init_abi): New functions.
12214 * i386obsd-tdep.c: Include "obsd-tdep.h".
12215 (i386obsd_init_abi): Call obsd_init_abi.
12216 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12217 (amd64obsd_init_abi): Call obsd_init_abi.
12218 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12219 obsd-tdep.c to gdb_target_obs.
12221 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12223 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12224 double float arguments to 16-byte in the argument slots.
12226 2014-02-11 Doug Evans <xdje42@gmail.com>
12228 * configure.ac: Don't crash if pkg-config is not found and guile
12229 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12231 * configure: Regenerate.
12233 2014-02-11 Yao Qi <yao@codesourcery.com>
12235 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12236 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12237 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12238 * gnu-nat.c (gnu_xfer_memory): Likewise.
12239 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12240 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12241 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12242 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12244 2014-02-11 Yao Qi <yao@codesourcery.com>
12246 * target.h (enum target_xfer_error): Rename to ...
12247 (enum target_xfer_status): ... it. New. All users updated.
12248 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12250 (TARGET_XFER_STATUS_ERROR_P): New macro.
12251 (target_xfer_error_to_string): Remove declaration.
12252 (target_xfer_status_to_string): Declare.
12253 (target_xfer_partial_ftype): Adjust it.
12254 (struct target_ops) <to_xfer_partial>: Return
12255 target_xfer_status. Add argument xfered_len. Update
12257 * target.c (target_xfer_error_to_string): Rename to ...
12258 (target_xfer_status_to_string): ... it. New. All callers
12260 (target_read_live_memory): Likewise. Call target_xfer_partial
12261 instead of target_read.
12262 (memory_xfer_live_readonly_partial): Return
12263 target_xfer_status. Add argument xfered_len.
12264 (raw_memory_xfer_partial): Likewise.
12265 (memory_xfer_partial_1): Likewise.
12266 (memory_xfer_partial): Likewise.
12267 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12268 properly. Update debug message.
12269 (default_xfer_partial, current_xfer_partial): Likewise.
12270 (target_write_partial): Likewise.
12271 (target_read_partial): Likewise. All callers updated.
12272 (read_whatever_is_readable): Likewise.
12273 (target_write_with_progress): Likewise.
12274 (target_read_alloc_1): Likewise.
12276 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12277 * auxv.c (procfs_xfer_auxv): Likewise.
12278 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12279 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12280 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12281 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12282 * corefile.c (read_memory): Adjust.
12283 * corelow.c (core_xfer_partial): Likewise.
12284 * ctf.c (ctf_xfer_partial): Likewise.
12285 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12287 (darwin_xfer_partial): Likewise.
12288 * exec.c (section_table_xfer_memory_partial): Likewise. All
12290 (exec_xfer_partial): Likewise.
12291 * exec.h (section_table_xfer_memory_partial): Update
12293 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12295 (gnu_xfer_partial): Likewise.
12296 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12297 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12298 (ia64_hpux_xfer_solib_got): Likewise.
12299 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12300 type of 'partial_len' to ULONGEST.
12301 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12302 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12303 (linux_nat_xfer_partial): Likewise.
12304 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12305 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12306 * monitor.c (monitor_xfer_memory): Likewise.
12307 (monitor_xfer_partial): Likewise.
12308 * procfs.c (procfs_xfer_partial): Likewise.
12309 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12310 * record-full.c (record_full_xfer_partial): Likewise.
12311 (record_full_core_xfer_partial): Likewise.
12312 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12313 (gdbsim_xfer_partial): Likewise.
12314 * remote.c (remote_write_bytes_aux): Likewise. All callers
12316 (remote_write_bytes, remote_read_bytes): Likewise. All
12318 (remote_flash_erase): Likewise. All callers updated.
12319 (remote_write_qxfer): Likewise. All callers updated.
12320 (remote_read_qxfer): Likewise. All callers updated.
12321 (remote_xfer_partial): Likewise.
12322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12323 (rs6000_xfer_shared_libraries): Likewise.
12324 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12325 (sol_thread_xfer_partial): Likewise.
12326 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12327 (sparc_xfer_partial): Likewise.
12328 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12330 (spu_xfer_partial): Likewise.
12331 * spu-multiarch.c (spu_xfer_partial): Likewise.
12332 * tracepoint.c (tfile_xfer_partial): Likewise.
12333 * windows-nat.c (windows_xfer_memory): Likewise.
12334 (windows_xfer_shared_libraries): Likewise.
12335 (windows_xfer_partial): Likewise.
12336 * valprint.c: Replace 'target_xfer_error' with
12337 'target_xfer_status' in comments.
12339 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12341 Checked in by Joel Brobecker <brobecker@adacore.com>.
12342 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12344 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12346 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12347 function parameters.
12349 2014-02-10 Will Newton <will.newton@linaro.org>
12351 * elfread.c (elf_rel_plt_read): Look for a .got section if
12352 looking up .got.plt fails.
12353 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12354 on address passed to elf_gnu_ifunc_record_cache.
12355 (elf_gnu_ifunc_resolve_addr): Likewise.
12356 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12358 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12360 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12361 (X_RETTURN): New macro.
12362 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12364 * sparc64-tdep.c (sparc64_init_abi): Hook
12365 sparc_in_function_epilogue_p.
12367 2014-02-10 Gary Benson <gbenson@redhat.com>
12369 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12370 Rename name_matcher to symbol_matcher.
12372 2014-02-10 Gary Benson <gbenson@redhat.com>
12374 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12375 Use expand_symtabs_file_matcher_ftype and
12376 expand_symtabs_symbol_matcher_ftype.
12378 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12380 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12381 (struct ada_symbol_cache): New.
12382 (ada_free_symbol_cache): Forward declare.
12383 (struct ada_pspace_data): New.
12384 (ada_pspace_data_handle): New static global.
12385 (get_ada_pspace_data, ada_pspace_data_cleanup)
12386 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12387 (cache_space, cache): Delete, now folded inside struct
12389 (ada_get_symbol_cache): New function.
12390 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12392 (_initialize_ada_language): Remove initialization of cache_space.
12393 Move call to observer_attach_inferior_exit up, grouping it
12394 with the other observer registrations inside this function.
12395 Rename command to be more general. Add call to
12396 register_program_space_data_with_cleanup.
12398 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12400 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12401 ada_new_objfile_observer.
12402 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12403 (_initialize_tasks): Update uses of ada_new_objfile_observer
12404 and ada_tasks_normal_stop_observer.
12406 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12408 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12409 returned by the 'Length attribute to integer.
12411 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12413 * ada-lang.c (_initialize_ada_language): Initialize
12414 cache_space obstack.
12416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12418 * ada-lang.c (HASH_SIZE): New macro.
12419 (struct cache_entry): New type.
12420 (cache_space, cache): New static globals.
12421 (ada_clear_symbol_cache, find_entry): New functions.
12422 (lookup_cached_symbol, cache_symbol): Implement.
12423 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12424 (_initialize_ada_language): Attach ada_new_objfile_observer
12425 and ada_free_objfile_observer.
12427 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12429 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12430 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12431 struct block * parameter.
12432 (ada_lookup_symbol_list_worker): Constify local variable "block".
12433 Remove cast which is no longer necessary.
12435 2014-02-10 Doug Evans <xdje42@gmail.com>
12437 Add Guile as an extension language.
12438 * NEWS: Mention Guile scripting.
12439 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12440 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12441 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12442 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12443 (CLIBS): Add GUILE_LIBS.
12444 (install-guile): New rule.
12445 (guile.o): New rule.
12446 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12447 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12448 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12449 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12450 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12451 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12452 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12453 * configure.ac: New option --with-guile.
12454 * configure: Regenerate.
12455 * config.in: Regenerate.
12456 * auto-load.c: Remove #include "python/python.h". Add #include
12457 "gdb/section-scripts.h".
12458 (source_section_scripts): Handle Guile scripts.
12459 (_initialize_auto_load): Add name of Guile objfile script to
12460 scripts-directory help text.
12461 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12462 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12463 (struct breakpoint): New member scm_bp_object.
12464 * defs.h (enum command_control_type): New value guile_control.
12465 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12467 (show_user): Update comment.
12468 (_initialize_cli_cmds): Update help text for "show user". Update help
12469 text for max-user-call-depth.
12470 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12472 (multi_line_command_p): Add guile_control.
12473 (print_command_lines): Handle guile_control.
12474 (execute_control_command, recurse_read_control_structure): Ditto.
12475 (process_next_line): Recognize "guile" commands.
12476 * disasm.c (gdb_disassemble_info): Make non-static.
12477 * disasm.h: #include "dis-asm.h".
12478 (struct gdbarch): Add forward decl.
12479 (gdb_disassemble_info): Declare.
12480 * extension.c: #include "guile/guile.h".
12481 (extension_languages): Add guile.
12482 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12483 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12484 * gdbtypes.c (get_unsigned_type_max): New function.
12485 (get_signed_type_minmax): New function.
12486 * gdbtypes.h (get_unsigned_type_max): Declare.
12487 (get_signed_type_minmax): Declare.
12488 * guile/README: New file.
12489 * guile/guile-internal.h: New file.
12490 * guile/guile.c: New file.
12491 * guile/guile.h: New file.
12492 * guile/scm-arch.c: New file.
12493 * guile/scm-auto-load.c: New file.
12494 * guile/scm-block.c: New file.
12495 * guile/scm-breakpoint.c: New file.
12496 * guile/scm-disasm.c: New file.
12497 * guile/scm-exception.c: New file.
12498 * guile/scm-frame.c: New file.
12499 * guile/scm-gsmob.c: New file.
12500 * guile/scm-iterator.c: New file.
12501 * guile/scm-lazy-string.c: New file.
12502 * guile/scm-math.c: New file.
12503 * guile/scm-objfile.c: New file.
12504 * guile/scm-ports.c: New file.
12505 * guile/scm-pretty-print.c: New file.
12506 * guile/scm-safe-call.c: New file.
12507 * guile/scm-string.c: New file.
12508 * guile/scm-symbol.c: New file.
12509 * guile/scm-symtab.c: New file.
12510 * guile/scm-type.c: New file.
12511 * guile/scm-utils.c: New file.
12512 * guile/scm-value.c: New file.
12513 * guile/lib/gdb.scm: New file.
12514 * guile/lib/gdb/boot.scm: New file.
12515 * guile/lib/gdb/experimental.scm: New file.
12516 * guile/lib/gdb/init.scm: New file.
12517 * guile/lib/gdb/iterator.scm: New file.
12518 * guile/lib/gdb/printing.scm: New file.
12519 * guile/lib/gdb/types.scm: New file.
12520 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12521 (VPATH): Add $(GUILE_SRCDIR).
12522 (GUILE_DIR): New variable.
12523 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12524 (all): Add stamp-guile dependency.
12525 (stamp-guile): New rule.
12526 (clean-guile, install-guile, uninstall-guile): New rules.
12527 (install-only): Add install-guile dependency.
12528 (uninstall): Add uninstall-guile dependency.
12529 (clean): Add clean-guile dependency.
12531 2014-02-09 Doug Evans <xdje42@gmail.com>
12533 Revert this patch (which I approved, mea culpa).
12535 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12537 * Makefile.in (all-lib): Remove.
12538 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12540 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12542 Fix Python stack corruption.
12543 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12546 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12548 * Makefile.in (all-lib): Remove.
12549 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12551 2014-02-07 Doug Evans <dje@google.com>
12553 * extension-priv.h (extension_language_script_ops): Add comment.
12554 (extension_language_ops): Add comment.
12555 (active_ext_lang_state): Fix typo in comment.
12557 2014-02-07 Pedro Alves <palves@redhat.com>
12559 PR breakpoints/16292
12560 * infrun.c (handle_signal_stop) <signal arrives while stepping
12561 over a breakpoint>: Switch back to the stepping thread.
12563 2014-02-07 Yao Qi <yao@codesourcery.com>
12565 * target.c (target_xfer_partial): Return zero if LEN is zero.
12567 2014-02-07 Yao Qi <yao@codesourcery.com>
12569 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12570 (ld_so_xfer_auxv): Likewise.
12571 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12572 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12573 * corelow.c (core_xfer_partial): Likewise.
12574 * ctf.c (ctf_xfer_partial): Likewise.
12575 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12576 (darwin_xfer_partial): Likewise.
12577 * exec.c (exec_xfer_partial): Likewise.
12578 * gnu-nat.c (gnu_xfer_partial): Likewise.
12579 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12580 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12581 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12582 * linux-nat.c (linux_xfer_siginfo): Likewise.
12583 (linux_proc_xfer_spu): Likewise.
12584 * procfs.c (procfs_xfer_partial): Likewise.
12585 * record-full.c (record_full_xfer_partial): Likewise.
12586 (record_full_core_xfer_partial): Likewise.
12587 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12588 * remote.c (remote_write_qxfer): Likewise.
12589 (remote_write_qxfer, remote_read_qxfer): Likewise.
12590 (remote_xfer_partial): Likewise.
12591 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12592 (rs6000_xfer_shared_libraries): Likewise.
12593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12594 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12595 (spu_xfer_partial): Likewise.
12596 * target.c (memory_xfer_partial_1): Likewise.
12597 * tracepoint.c (tfile_xfer_partial): Likewise.
12598 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12599 (windows_xfer_partial): Likewise.
12601 2014-02-07 Yao Qi <yao@codesourcery.com>
12603 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12605 (core_xfer_shared_libraries_aix): Likewise.
12606 * gdbarch.c, gdbarch.h: Regenerated.
12607 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12608 ULONGEST. Change 'len_avail' type to ULONGEST.
12609 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12610 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12612 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12614 2014-02-07 Yao Qi <yao@codesourcery.com>
12616 * corefile.c (memory_error): Get 'exception' from ERR and pass
12617 'exception' to throw_error.
12619 2014-02-06 Doug Evans <xdje42@gmail.com>
12621 * configure.ac (libpython checking): Remove all but python.o from
12622 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12623 * configure: Regenerate.
12625 * Makefile.in (SFILES): Add extension.c.
12626 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12627 (COMMON_OBS): Add extension.o.
12628 * extension.h: New file.
12629 * extension-priv.h: New file.
12630 * extension.c: New file.
12632 * python/python-internal.h: #include "extension.h".
12633 (gdbpy_auto_load_enabled): Declare.
12634 (gdbpy_apply_val_pretty_printer): Declare.
12635 (gdbpy_apply_frame_filter): Declare.
12636 (gdbpy_preserve_values): Declare.
12637 (gdbpy_breakpoint_cond_says_stop): Declare.
12638 (gdbpy_breakpoint_has_cond): Declare.
12639 (void source_python_script_for_objfile): Delete.
12640 * python/python.c: #include "extension-priv.h".
12641 Delete inclusion of "observer.h".
12642 (extension_language_python): Moved here and renamed from
12643 script_language_python in py-auto-load.c.
12644 Redefined to be of type extension_language_defn.
12645 (python_extension_script_ops): New global.
12646 (python_extension_ops): New global.
12647 (struct python_env): New member previous_active.
12648 (restore_python_env): Call restore_active_ext_lang.
12649 (ensure_python_env): Call set_active_ext_lang.
12650 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12652 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12654 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12656 (gdbpy_eval_from_control_command): Renamed from
12657 eval_python_from_control_command, made static. New arg extlang.
12658 (gdbpy_source_script) Renamed from source_python_script, made static.
12660 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12661 result to int. New arg extlang.
12662 (gdbpy_source_objfile_script): Renamed from
12663 source_python_script_for_objfile, made static. New arg extlang.
12664 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12665 static. New args extlang, extlang_printers. Change result type to
12667 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12668 static. New arg extlang. Rename arg printers to extlang_printers
12669 and change type to ext_lang_type_printers *.
12670 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12671 static. Replace argument arg with extlang, extlang_printers.
12672 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12673 (!HAVE_PYTHON, source_python_script): Delete.
12674 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12675 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12676 (!HAVE_PYTHON, start_type_printers): Delete.
12677 (!HAVE_PYTHON, apply_type_printers): Delete.
12678 (!HAVE_PYTHON, free_type_printers): Delete.
12679 (_initialize_python): Delete call to observer_attach_before_prompt.
12680 (finalize_python): Set/restore active extension language.
12681 (gdbpy_finish_initialization) Renamed from
12682 finish_python_initialization, made static. New arg extlang.
12683 (gdbpy_initialized): New function.
12684 * python/python.h: #include "extension.h". Delete #include
12685 "value.h", "mi/mi-cmds.h".
12686 (extension_language_python): Declare.
12687 (GDBPY_AUTO_FILE_NAME): Delete.
12688 (enum py_bt_status): Moved to extension.h and renamed to
12689 ext_lang_bt_status.
12690 (enum frame_filter_flags): Moved to extension.h.
12691 (enum py_frame_args): Moved to extension.h and renamed to
12692 ext_lang_frame_args.
12693 (finish_python_initialization): Delete.
12694 (eval_python_from_control_command): Delete.
12695 (source_python_script): Delete.
12696 (apply_val_pretty_printer): Delete.
12697 (apply_frame_filter): Delete.
12698 (preserve_python_values): Delete.
12699 (gdbpy_script_language_defn): Delete.
12700 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12701 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12703 * auto-load.c: #include "extension.h".
12704 (GDB_AUTO_FILE_NAME): Delete.
12705 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12706 (script_language_gdb): Delete, moved to extension.c and renamed to
12707 extension_language_gdb.
12708 (source_gdb_script_for_objfile): Delete.
12709 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12710 (loaded_script): Change type of language member to
12711 struct extension_language_defn *.
12712 (init_loaded_scripts_info): Initialize
12713 unsupported_script_warning_printed.
12714 (maybe_add_script): Make static. Change type of language arg to
12715 struct extension_language_defn *.
12716 (clear_section_scripts): Reset unsupported_script_warning_printed.
12717 (auto_load_objfile_script_1): Rewrite to use extension language API.
12718 (auto_load_objfile_script): Make public. Remove support-compiled-in
12719 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12720 (source_section_scripts): Rewrite to use extension language API.
12721 (load_auto_scripts_for_objfile): Rewrite to use
12722 auto_load_scripts_for_objfile.
12723 (collect_matching_scripts_data): Change type of language member to
12724 struct extension_language_defn *.
12725 (auto_load_info_scripts): Change type of language arg to
12726 struct extension_language_defn *.
12727 (unsupported_script_warning_print): New function.
12728 (script_not_found_warning_print): Make static.
12729 (_initialize_auto_load): Rewrite construction of scripts-directory
12731 * auto-load.h (struct objfile): Add forward decl.
12732 (struct script_language): Delete.
12733 (struct auto_load_pspace_info): Add forward decl.
12734 (struct extension_language_defn): Add forward decl.
12735 (maybe_add_script): Delete.
12736 (auto_load_objfile_script): Declare.
12737 (script_not_found_warning_print): Delete.
12738 (auto_load_info_scripts): Update prototype.
12739 (auto_load_gdb_scripts_enabled): Declare.
12740 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12741 auto_load_python_scripts_enabled and made public.
12742 (script_language_python): Delete, moved to python.c.
12743 (gdbpy_script_language_defn): Delete.
12744 (info_auto_load_python_scripts): Update to use
12745 extension_language_python.
12747 * breakpoint.c (condition_command): Replace call to
12748 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12749 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12750 with call to breakpoint_ext_lang_cond_says_stop.
12751 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12752 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12753 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12754 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12756 (local_setattro): Print name of extension language with existing
12759 * valprint.c (val_print, value_print): Update to call
12760 apply_ext_lang_val_pretty_printer.
12761 * cp-valprint.c (cp_print_value): Update call to
12762 apply_ext_lang_val_pretty_printer.
12763 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12764 (gdbpy_apply_val_pretty_printer): Renamed from
12765 apply_val_pretty_printer. New arg extlang.
12766 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12768 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12769 extension language API.
12770 * cli/cli-script.c (execute_control_command): Update to call
12771 eval_ext_lang_from_control_command.
12773 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12774 enum ext_lang_bt_status values. Update call to
12775 apply_ext_lang_frame_filter.
12776 (mi_cmd_stack_list_locals): Ditto.
12777 (mi_cmd_stack_list_args): Ditto.
12778 (mi_cmd_stack_list_variables): Ditto.
12779 * mi/mi-main.c: Delete #include "python/python-internal.h".
12780 Add #include "extension.h".
12781 (mi_cmd_list_features): Replace reference to python internal variable
12782 gdb_python_initialized with call to ext_lang_initialized_p.
12784 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12785 Update to use enum ext_lang_frame_args. Update to call
12786 apply_ext_lang_frame_filter.
12787 * python/py-framefilter.c (extract_sym): Update to use enum
12788 ext_lang_bt_status.
12789 (extract_value, py_print_type, py_print_value): Ditto.
12790 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12791 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12792 (py_print_frame): Ditto.
12793 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12794 New arg extlang. Update to use enum ext_lang_bt_status.
12796 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12797 finish_python_initialization. Replace with call to
12798 finish_ext_lang_initialization.
12800 * typeprint.c (do_free_global_table): Update to call
12801 free_ext_lang_type_printers.
12802 (create_global_typedef_table): Update to call
12803 start_ext_lang_type_printers.
12804 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12805 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12806 (type_print_options): Change type of global_printers from "void *"
12807 to "struct ext_lang_type_printers *".
12809 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12810 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12811 (gdbpy_preserve_values): Renamed from preserve_python_values.
12813 (!HAVE_PYTHON, preserve_python_values): Delete.
12815 * utils.c (quit_flag): Delete, moved to extension.c.
12816 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12819 * eval.c: Delete #include "python/python.h".
12820 * main.c: Delete #include "python/python.h".
12822 * defs.h: Update comment.
12824 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12828 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12830 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12833 2014-02-05 Yao Qi <yao@codesourcery.com>
12835 * remote.c (remote_pass_signals): Remove local 'buf' and use
12837 (remote_program_signals): Likewise.
12839 2014-02-05 Yao Qi <yao@codesourcery.com>
12841 * ctf.c: Include "inferior.h" and "gdbthread.h".
12842 (CTF_PID): A new macro.
12843 (ctf_open): Call inferior_appeared and add_thread_silent.
12844 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12845 (ctf_thread_alive): New function.
12846 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12848 2014-02-05 Yao Qi <yao@codesourcery.com>
12852 2013-05-24 Yao Qi <yao@codesourcery.com>
12854 * tracepoint.c (TFILE_PID): Remove.
12855 (tfile_open): Don't add thread and inferior.
12856 (tfile_close): Don't set 'inferior_ptid'. Don't call
12857 exit_inferior_silent.
12858 (tfile_thread_alive): Remove.
12859 (init_tfile_ops): Don't set field 'to_thread_alive' of
12862 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12864 * remote.c (remote_start_remote): Call remote_check_symbols even
12865 if only symbol-file (not file) has been given.
12867 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12869 * gdbarch.sh (skip_entrypoint): New callback.
12870 * gdbarch.c, gdbarch.h: Regenerate.
12871 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12872 * infrun.c (fill_in_stop_func): Likewise.
12873 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12874 (ppc_elfv2_elf_make_msymbol_special): New function.
12875 (ppc_elfv2_skip_entrypoint): Likewise.
12876 (ppc_linux_init_abi): Install them for ELFv2.
12878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12880 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12881 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12882 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12883 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12884 structures returned in GPRs.
12886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12889 offset to the stack parameter list for the ELFv2 ABI.
12891 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12893 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12894 set_gdbarch_convert_from_func_ptr_addr and
12895 set_gdbarch_elf_make_msymbol_special for ELFv1.
12896 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12897 function descriptors on ELFv1.
12898 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12899 set up r12 at function entry.
12901 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12903 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12904 (struct gdbarch_tdep): New member elf_abi.
12906 * rs6000-tdep.c: Include "elf/ppc64.h".
12907 (rs6000_gdbarch_init): Detect ELF ABI version.
12909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12912 within a register pair holding a DFP 128-bit value on little-endian.
12913 (ppc64_sysv_abi_return_value_base): Likewise.
12914 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12915 (dfp_pseudo_register_write): Likewise.
12917 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12919 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12920 offset on little-endian when passing _Decimal32.
12921 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12925 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12926 of the overlapped FP register within the VSX register on little-
12928 (efpr_pseudo_register_write): Likewise.
12930 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12932 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12933 offset on little-endian when passing small structures.
12935 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12937 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12938 (struct ppc64_sysv_argpos): New data structure.
12939 (ppc64_sysv_abi_push_float): Remove.
12940 (ppc64_sysv_abi_push_val): New function.
12941 (ppc64_sysv_abi_push_integer): Likewise.
12942 (ppc64_sysv_abi_push_freg): Likewise.
12943 (ppc64_sysv_abi_push_vreg): Likewise.
12944 (ppc64_sysv_abi_push_param): Likewise.
12945 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12946 (ppc64_sysv_abi_return_value_base): New function.
12947 (ppc64_sysv_abi_return_value): Refactor to use it.
12949 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12951 * NEWS: Document new target powerpc64le-*-linux*.
12953 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12955 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12956 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12958 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12959 register set used in ELF core dumps. Add floating-point register set.
12961 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12963 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12964 dwarf2_to_gdb[] table using symbolic constants. Adjust
12965 penultimate entry from number representing the PC register
12966 to symbolic constant representing the MDR register. Add
12967 constant for the PC register to the end of the table.
12969 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12971 * bsd-kvm.c: Include <sys/param.h>
12973 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12975 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12977 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12979 * ada-lang.h (clear_ada_sym_cache): Delete.
12981 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12983 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12985 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12987 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12988 the sigreturn register save area only if the syscall is
12991 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12993 * valops.c (value_slice): Minor reformatting.
12995 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12997 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12999 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13001 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13002 New static globals.
13003 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13004 (ada_ignore_descriptive_types_p): New static global.
13005 (find_parallel_type_by_descriptive_type): Return immediately
13006 if ada_ignore_descriptive_types_p is set.
13007 (_initialize_ada_language): Register new commands "maintenance
13008 set ada", "maintenance show ada", "maintenance set ada
13009 ignore-descriptive-types" and "maintenance show ada
13010 ignore-descriptive-types".
13011 * NEWS: Add entry for new "maint ada set/show
13012 ignore-descriptive-types" commands.
13014 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13016 * record-btrace.c (record_btrace_close): Call btrace_teardown
13019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13021 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13026 * ada-typeprint (type_is_full_subrange_of_target_type):
13028 (print_range): Add parameter bounds_prefered_p. If not set,
13029 try printing range types using the name of their base type.
13030 (print_range_type): Add parameter bounds_prefered_p.
13031 Use it in call to print_range.
13032 (print_array_type, ada_print_type): Update calls to print_range
13033 and print_range_type.
13035 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13037 * ada-typeprint.c (print_array_type, print_choices, print_range)
13038 (print_range_bound, print_dynamic_range_bound, print_range_type):
13039 Remove declaration.
13041 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13043 * ada-typeprint.c (print_range): Add missing empty line
13044 after local declaration.
13046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13048 * ada-valprint.c (print_optional_low_bound): Get index_type's
13049 target type for as long as it is a TYPE_CODE_RANGE.
13051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13053 * procfs.c (procfs_make_note_section): Remove assertion and
13054 associated comment.
13056 2014-01-24 Yao Qi <yao@codesourcery.com>
13058 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13059 * corelow.c (get_core_siginfo): Likewise.
13061 2014-01-24 Yao Qi <yao@codesourcery.com>
13063 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13064 ULONGEST. Don't check 'len' is negative.
13065 (remote_write_bytes): Change type of 'len' to ULONGEST.
13067 2014-01-23 Tom Tromey <tromey@redhat.com>
13070 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13071 Handle exception from frame.block.
13072 (FrameVars.fetch_frame_locals): Likewise.
13074 2014-01-23 Tom Tromey <tromey@redhat.com>
13077 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13078 on a NULL pointer. Move "goto error" to correct place.
13080 2014-01-23 Tom Tromey <tromey@redhat.com>
13083 * python/py-framefilter.c (apply_frame_filter): Call
13084 ensure_python_env after computing gdbarch.
13086 2014-01-23 Yao Qi <yao@codesourcery.com>
13088 * target.c (raw_memory_xfer_partial): Change argument type
13089 from void * to gdb_byte *.
13090 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13092 2014-01-22 Doug Evans <dje@google.com>
13094 New gdbserver option --debug-format=timestamp.
13095 * NEWS: Mention it.
13097 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13099 * syscalls/s390x-linux.xml: New file.
13100 * syscalls/s390-linux.xml: New file.
13101 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13102 (XML_SYSCALL_FILENAME_S390X): Likewise.
13103 (op_svc): New enum value for SVC opcode.
13104 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13105 (s390_linux_get_syscall_number): New function.
13106 (s390_gdbarch_init): Register '*get_syscall_number' and the
13107 syscall xml file name.
13108 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13109 "s390-linux.xml" and "s390x-linux.xml".
13110 * NEWS: Announce new feature.
13112 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13114 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13116 2014-01-22 Pedro Alves <palves@redhat.com>
13118 * xtensa-config.c: Include defs.h.
13120 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13122 * common/common-utils.h: Add "ARI:" comment beside __func__
13125 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13127 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13128 documentation a bit.
13130 2014-01-21 Roland McGrath <mcgrathr@google.com>
13132 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13133 * configure: Regenerate.
13134 * aclocal.m4: Regenerate.
13135 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13136 New substituted variables.
13137 (install-strip): New target.
13138 (INSTALL_SCRIPT): New substituted variable.
13139 (FLAGS_TO_PASS): Add it.
13140 (install-only): Use $(INSTALL_SCRIPT) rather than
13141 $(INSTALL_PROGRAM) for gcore.
13143 2014-01-20 Tom Tromey <tromey@redhat.com>
13145 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13148 2014-01-20 Tom Tromey <tromey@redhat.com>
13150 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13151 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13152 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13153 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13154 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13155 (struct cmd_list_element) <flags>: Remove.
13156 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13157 doc_allocated>: New fields.
13158 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13160 * maint.c (maintenance_do_deprecate): Update.
13161 * top.c (execute_command): Update.
13163 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13165 * xtensa-linux-nat.c: Include asm/ptrace.h.
13167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13169 * Makefile.in (SFILES): Add d-support.c.
13170 (COMMON_OBS): Add d-support.o.
13171 * d-lang.h (d_parse_symbol): Add comment, now defined in
13173 * d-lang.c (parse_call_convention)
13174 (parse_attributes, parse_function_types)
13175 (parse_function_args, parse_type, parse_identifier)
13176 (call_convention_p, d_parse_symbol): Move functions to ...
13177 * d-support.c: ... New file.
13179 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13181 * d-lang.h (d_parse_symbol): Add declaration.
13182 * d-lang.c (extract_identifiers)
13183 (extract_type_info): Remove functions.
13184 (parse_call_convention, parse_attributes)
13185 (parse_function_types, parse_function_args)
13186 (parse_type, parse_identifier, call_convention_p)
13187 (d_parse_symbol): New functions.
13188 (d_demangle): Use d_parse_symbol to demangle D symbols.
13190 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13192 * d-lang.h (struct builtin_d_type): New data type.
13193 (builtin_d_type): Add declaration.
13194 * d-lang.c (d_language_arch_info, build_d_types)
13195 (builtin_d_type): New functions.
13196 (enum d_primitive_types): New data type.
13197 (d_language_defn): Change c_language_arch_info to
13198 d_language_arch_info.
13199 (d_type_data): New static variable.
13200 (_initialize_d_language): Initialize d_type_data.
13202 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13204 * d-lang.h (d_main_name): Add declaration.
13205 * d-lang.c (d_main_name): New function.
13206 * symtab.c (find_main_name): Add call to d_main_name.
13208 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13210 * d-lang.c (d_language_defn): Change macro_expansion_c to
13211 macro_expansion_no.
13213 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13215 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13217 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13219 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13220 gdb_exception" declaration.
13221 * remote.c (getpkt_or_notif_sane): Likewise.
13223 2014-01-17 Doug Evans <dje@google.com>
13225 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13226 function, contents of dirnames_to_char_ptr_vec_append moved here.
13227 (delim_string_to_char_ptr_vec): New function.
13228 (dirnames_to_char_ptr_vec_append): Rewrite.
13229 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13231 2014-01-17 Doug Evans <dje@google.com>
13233 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13235 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13236 #include "common-utils.h".
13237 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13238 * common/vec.h (VEC_ASSERT_PASS): Update.
13239 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13240 (MACH_CHECK_ERROR): Update.
13242 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13244 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13246 * gdbarch.h: Regenerate.
13248 2014-01-16 Tom Tromey <tromey@redhat.com>
13250 * value.c (struct value) <regnum>: Move earlier.
13252 2014-01-16 Tom Tromey <tromey@redhat.com>
13254 * remote.c (extended_remote_create_inferior): Rename from
13255 extended_remote_create_inferior_1. Add "ops" argument. Remove
13256 old implementation.
13258 2014-01-16 Pedro Alves <palves@redhat.com>
13260 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13261 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13264 2014-01-16 Doug Evans <dje@google.com>
13266 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13268 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13270 * btrace.h (btrace_thread_flag): New.
13271 (struct btrace_thread_info) <flags>: New.
13272 * record-btrace.c (record_btrace_resume_thread)
13273 (record_btrace_find_thread_to_move, btrace_step_no_history)
13274 (btrace_step_stopped, record_btrace_start_replaying)
13275 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13276 (record_btrace_find_resume_thread): New.
13277 (record_btrace_resume, record_btrace_wait): Extend.
13278 (record_btrace_can_execute_reverse): New.
13279 (record_btrace_open): Fail in non-stop mode.
13280 (record_btrace_set_replay): Split into this, ...
13281 (record_btrace_stop_replaying): ... this, ...
13282 (record_btrace_clear_histories): ... and this.
13283 (init_record_btrace_ops): Init to_can_execute_reverse.
13284 * NEWS: Announce it.
13286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13288 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13289 (forward_target_decr_pc_after_break)
13290 (target_decr_pc_after_break): New.
13291 * target.c (forward_target_decr_pc_after_break)
13292 (target_decr_pc_after_break): New.
13293 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13294 instead of gdbarch_decr_pc_after_break.
13295 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13296 instead of gdbarch_decr_pc_after_break.
13297 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13298 instead of gdbarch_decr_pc_after_break.
13299 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13300 instead of gdbarch_decr_pc_after_break.
13301 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13302 instead of gdbarch_decr_pc_after_break.
13303 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13304 instead of gdbarch_decr_pc_after_break.
13306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13308 * btrace.c: Include regcache.h.
13309 (btrace_add_pc): New.
13310 (btrace_enable): Call btrace_add_pc.
13311 (btrace_is_empty): New.
13312 * btrace.h (btrace_is_empty): New.
13313 * record-btrace.c (require_btrace, record_btrace_info): Call
13316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13318 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13319 Support delta reads.
13320 (linux_disable_btrace): Change return type.
13321 * common/linux-btrace.h (linux_read_btrace): Change parameters
13322 and return type to allow error reporting. Update users.
13323 (linux_disable_btrace): Change return type. Update users.
13324 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13326 (btrace_error): New.
13327 (btrace_block) <begin>: Comment on BEGIN == 0.
13328 * btrace.c (btrace_compute_ftrace): Start from the end of
13330 (btrace_stitch_trace, btrace_clear_history): New.
13331 (btrace_fetch): Read delta trace, return if replaying.
13332 (btrace_clear): Move clear history code to btrace_clear_history.
13333 (parse_xml_btrace): Throw an error if parsing failed.
13334 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13335 and return type to allow error reporting.
13336 (target_read_btrace): Change parameters and return type to allow
13338 * target.c (target_read_btrace): Update.
13339 * remote.c (remote_read_btrace): Support delta reads. Pass
13341 * NEWS: Announce it.
13343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13345 * record.h (record_btrace_frame_unwind)
13346 (record_btrace_tailcall_frame_unwind): New declarations.
13347 * dwarf2-frame: Include record.h
13348 (dwarf2_frame_cfa): Throw an error for btrace frames.
13349 * record-btrace.c: Include hashtab.h.
13350 (btrace_get_bfun_name): New.
13351 (btrace_call_history): Call btrace_get_bfun_name.
13352 (struct btrace_frame_cache): New.
13354 (bfcache_hash, bfcache_eq, bfcache_new): New.
13355 (btrace_get_frame_function): New.
13356 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13357 (record_btrace_frame_this_id): Compute own id.
13358 (record_btrace_frame_prev_register): Provide PC, throw_error
13359 for all other registers.
13360 (record_btrace_frame_sniffer): Detect btrace frames.
13361 (record_btrace_tailcall_frame_sniffer): New.
13362 (record_btrace_frame_dealloc_cache): New.
13363 (record_btrace_frame_unwind): Add new functions.
13364 (record_btrace_tailcall_frame_unwind): New.
13365 (_initialize_record_btrace): Allocate cache.
13366 * btrace.c (btrace_clear): Call reinit_frame_cache.
13367 * NEWS: Announce it.
13369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13371 * record-btrace.c (record_btrace_set_replay)
13372 (record_btrace_goto_begin, record_btrace_goto_end)
13373 (record_btrace_goto): New.
13374 (init_record_btrace_ops): Initialize them.
13375 * NEWS: Announce it.
13377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13379 * record-btrace.c (record_btrace_find_new_threads)
13380 (record_btrace_thread_alive): New.
13381 (init_record_btrace_ops): Initialize to_find_new_threads and
13384 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13386 * record-btrace.c (record_btrace_resume): New.
13387 (record_btrace_wait): New.
13388 (init_record_btrace_ops): Initialize to_wait and to_resume.
13390 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13392 * record-btrace.c (record_btrace_xfer_partial)
13393 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13394 (record_btrace_allow_memory_access): New.
13395 (init_record_btrace_ops): Initialize new methods.
13396 * target.c (raw_memory_xfer_partial): Bail out if target reports
13397 that this memory is not available.
13399 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13401 * target.h (target_ops) <to_insert_breakpoint>
13402 <to_remove_breakpoint>: Add target_ops parameter.
13403 (forward_target_insert_breakpoint): New.
13404 (forward_target_remove_breakpoint): New.
13405 (memory_remove_breakpoint, memory_insert_breakpoint):
13406 Add target_ops parameter.
13407 * target.c (target_insert_breakpoint): Split into this and ...
13408 (forward_target_insert_breakpoint): ... this.
13409 (target_remove_breakpoint): Split into this and ...
13410 (forward_target_remove_breakpoint): ... this.
13411 (debug_to_insert_breakpoint): Add target_ops parameter.
13412 Call forward_target_insert_breakpoint.
13413 (debug_to_remove_breakpoint): Add target_ops parameter.
13414 Call forward_target_remove_breakpoint.
13415 (update_current_target): Do not inherit or default to_insert_breakpoint
13416 and to_remove_breakpoint.
13417 * corelow.c (ignore): Add target_ops parameter.
13418 * exec.c (ignore): Add target_ops parameter.
13419 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13420 Add target_ops parameter.
13421 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13422 Add target_ops parameter.
13423 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13424 Add target_ops parameter.
13425 * record-full.c (record_full_beneath_to_insert_breakpoint)
13426 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13427 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13428 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13429 (record_full_core_remove_breakpoint): Add target_ops parameter.
13431 (record_full_beneath_to_insert_breakpoint_ops)
13432 (record_full_beneath_to_remove_breakpoint_ops)
13433 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13434 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13435 tmp_to_remove_breakpoint_ops,
13436 record_full_beneath_to_insert_breakpoint_ops, and
13437 record_full_beneath_to_remove_breakpoint_ops.
13438 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13439 (m32r_remove_breakpoint): Add target_ops parameter.
13440 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13441 Add target_ops parameter.
13442 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13443 Add target_ops parameter.
13445 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13446 Markus Metzger <markus.t.metzger@intel.com>
13448 * record-btrace.c: Include frame-unwind.h.
13449 (record_btrace_frame_unwind_stop_reason)
13450 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13451 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13453 (init_record_btrace_ops): Install it.
13455 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13457 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13460 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13462 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13465 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13467 * frame-unwind.c: Include target.h.
13468 (frame_unwind_try_unwinder): New function with code from ...
13469 (frame_unwind_find_by_frame): ... here. New variable
13470 unwinder_from_target, call also target_get_unwinder)
13471 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13472 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13473 * target.h (struct target_ops): New fields to_get_unwinder and
13474 to_get_tailcall_unwinder.
13475 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13479 * record-btrace.c (record_btrace_fetch_registers)
13480 (record_btrace_store_registers)
13481 (record_btrace_to_prepare_to_store): New.
13482 (init_record_btrace_ops): Add the above.
13484 2014-01-16 Tom Tromey <tromey@redhat.com>
13486 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13487 * target.h (struct target_ops) <to_prepare_to_store>: Add
13489 (target_prepare_to_store): Add argument.
13490 * target.c (debug_to_prepare_to_store): Add argument.
13491 (update_current_target): Update.
13492 * remote.c (remote_prepare_to_store): Add 'self' argument.
13493 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13494 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13495 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13496 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13498 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13499 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13500 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13501 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13502 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13506 * btrace.h (replay) <replay>: New.
13507 (btrace_is_replaying): New.
13508 * btrace.c (btrace_clear): Free replay iterator.
13509 (btrace_is_replaying): New.
13510 * record-btrace.c (record_btrace_is_replaying): New.
13511 (record_btrace_info): Print insn number if replaying.
13512 (record_btrace_insn_history): Start at replay position.
13513 (record_btrace_call_history): Start at replay position.
13514 (init_record_btrace_ops): Init to_record_is_replaying.
13516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13518 * record-btrace.c (record_btrace_insn_history_range): Include
13520 (record_btrace_insn_history_from): Adjust range.
13521 (record_btrace_call_history_range): Include
13523 (record_btrace_call_history_from): Adjust range.
13524 * NEWS: Announce changes.
13526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13528 * record.h (enum record_print_flag)
13529 <record_print_indent_calls>: New.
13530 * record.c (get_call_history_modifiers): Recognize /c modifier.
13531 (_initialize_record): Document /c modifier.
13532 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13533 Reorder fields. Optionally indent the function name. Update
13535 * NEWS: Announce changes.
13537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13539 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13543 * btrace.c (ftrace_new_function): Start counting at one.
13544 * record-btrace.c (record_btrace_info): Adjust number of calls
13546 * NEWS: Announce it.
13548 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13550 * record-btrace.c (btrace_call_history_insn_range): Print
13551 insn range as [begin, end].
13553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13555 * btrace.h (struct btrace_func_link): New.
13556 (enum btrace_function_flag): New.
13557 (struct btrace_inst): Rename to ...
13558 (struct btrace_insn): ...this. Update all users.
13559 (struct btrace_func) <ibegin, iend>: Remove.
13560 (struct btrace_func_link): New.
13561 (struct btrace_func): Rename to ...
13562 (struct btrace_function): ...this. Update all users.
13563 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13564 (number, level, flags>: New.
13565 (struct btrace_insn_iterator): Rename to ...
13566 (struct btrace_insn_history): ...this.
13568 (struct btrace_insn_iterator, btrace_call_iterator): New.
13569 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13570 (struct btrace_target_info) <begin, end, level>
13571 <insn_history, call_history>: New.
13572 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13573 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13574 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13575 (btrace_call_number, btrace_call_begin, btrace_call_end)
13576 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13577 (btrace_find_function_by_number, btrace_set_insn_history)
13578 (btrace_set_call_history): New.
13579 * btrace.c (btrace_init_insn_iterator)
13580 (btrace_init_func_iterator, compute_itrace): Remove.
13581 (ftrace_print_function_name, ftrace_print_filename)
13582 (ftrace_skip_file): Change
13583 parameter to const.
13584 (ftrace_init_func): Remove.
13585 (ftrace_debug): Use new btrace_function fields.
13586 (ftrace_function_switched): Also consider gaining and
13587 losing symbol information).
13588 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13589 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13590 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13592 (ftrace_new_function): Move. Remove debug print.
13593 (ftrace_update_lines, ftrace_update_insns): New.
13594 (ftrace_update_function): Check for call, ret, and jump.
13595 (compute_ftrace): Renamed to ...
13596 (btrace_compute_ftrace): ...this. Rewritten to compute call
13598 (btrace_fetch, btrace_clear): Updated.
13599 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13600 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13601 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13602 (btrace_call_number, btrace_call_begin, btrace_call_end)
13603 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13604 (btrace_find_function_by_number, btrace_set_insn_history)
13605 (btrace_set_call_history): New.
13606 * record-btrace.c (require_btrace): Use new btrace thread
13608 (record_btrace_info, btrace_insn_history)
13609 (record_btrace_insn_history, record_btrace_insn_history_range):
13610 Use new btrace thread info fields and new iterator.
13611 (btrace_func_history_src_line): Rename to ...
13612 (btrace_call_history_src_line): ...this. Use new btrace
13613 thread info fields.
13614 (btrace_func_history): Rename to ...
13615 (btrace_call_history): ...this. Use new btrace thread info
13616 fields and new iterator.
13617 (record_btrace_call_history, record_btrace_call_history_range):
13618 Use new btrace thread info fields and new iterator.
13620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622 * frame.h (frame_id_build_unavailable_stack_special): New.
13623 * frame.c (frame_id_build_unavailable_stack_special): New.
13625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13627 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13628 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13629 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13631 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13632 (i386_insn_is_jump, i386_jmp_p): New.
13633 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13634 insn_is_jump to gdbarch.
13635 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13636 * gdbarch.h: Regenerated.
13637 * gdbarch.c: Regenerated.
13638 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13639 (default_insn_is_jump): New.
13640 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13641 (default_insn_is_jump): New.
13643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13645 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13647 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13648 (btrace_read_type) <btrace_read_new>: Change to ...
13649 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13653 * common/linux-btrace.c (linux_read_btrace): Free trace from
13654 previous iteration.
13656 2014-01-15 Doug Evans <dje@google.com>
13658 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13661 2014-01-15 Tom Tromey <tromey@redhat.com>
13663 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13664 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13665 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13666 (set_objfile_main_name): New function.
13667 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13668 language_of_main>: New fields.
13669 (set_objfile_main_name): Declare.
13670 * symtab.c (find_main_name): Loop over objfiles to find the main
13672 (set_main_name): Now static.
13673 (get_main_info): Add comment.
13674 * symtab.h (set_main_name): Don't declare.
13676 2014-01-15 Tom Tromey <tromey@redhat.com>
13678 * symtab.c (main_progspace_key): New global.
13679 (struct main_info): New.
13680 (name_of_main, language_of_main): Remove.
13681 (get_main_info, main_info_cleanup): New function.
13682 (set_main_name, main_name, main_language): Use get_main_info.
13683 (_initialize_symtab): Initialize main_progspace_key.
13685 2014-01-15 Tom Tromey <tromey@redhat.com>
13687 * dbxread.c (process_one_symbol): Update.
13688 * dwarf2read.c (read_partial_die): Update.
13689 * symfile.c (set_initial_language): Call main_language.
13690 * symtab.c (language_of_main): Now static.
13691 (set_main_name): Add 'lang' parameter.
13692 (find_main_name): Update.
13693 (main_language): New function.
13694 (symtab_observer_executable_changed): Update.
13695 * symtab.h (set_main_name): Update.
13696 (language_of_main): Remove.
13697 (main_language): Declare.
13699 2014-01-15 Tom Tromey <tromey@redhat.com>
13701 * symfile.c (init_entry_point_info): Use new "initialized" field.
13703 * objfiles.h (struct entry_point) <initialized>: New field.
13704 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13705 (struct objfile) <ei>: ...here. Remove.
13706 * objfiles.c (entry_point_address_query): Update.
13708 2014-01-15 Tom Tromey <tromey@redhat.com>
13710 * objfiles.c (entry_point_address_query): Relocate entry point
13712 (objfile_relocate1): Do not relocate entry point address.
13713 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13714 <the_bfd_section_index>: New field.
13715 * symfile.c (init_entry_point_info): Find the entry point's
13718 2014-01-15 Tom Tromey <tromey@redhat.com>
13720 * solib-frv.c (enable_break): Use entry_point_address_query.
13722 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13724 * NEWS: Add note on improved process record-replay on
13725 arm*-linux* targets.
13727 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13729 * arm-tdep.c (enum arm_record_result): New enum.
13730 (arm_record_unsupported_insn): New function.
13731 (arm_record_coproc_data_proc): Removed.
13732 (thumb2_record_ld_st_multiple): New function.
13733 (thumb2_record_ld_st_dual_ex_tbb): New function.
13734 (thumb2_record_data_proc_sreg_mimm): New function.
13735 (thumb2_record_ps_dest_generic): New function.
13736 (thumb2_record_branch_misc_cntrl): New function.
13737 (thumb2_record_str_single_data): New function.
13738 (thumb2_record_ld_mem_hints): New function.
13739 (thumb2_record_ld_word): New function.
13740 (thumb2_record_lmul_lmla_div): New function.
13741 (thumb2_record_decode_insn_handler): New function.
13742 (decode_insn): Add thumb32 instruction handlers.
13744 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13746 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13747 (struct arm_linux_record_tdep): Declare.
13748 (arm_canonicalize_syscall): New function.
13749 (arm_all_but_pc_registers_record): New function.
13750 (arm_linux_syscall_record): New function.
13751 (arm_linux_init_abi): Add syscall recording constructs.
13752 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13753 decoding. (arm_record_coproc_data_proc): Update arm syscall
13755 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13756 <arm_syscall_record>: New field.
13757 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13760 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13762 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13763 register for push instruction recording.
13765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13767 * arm-tdep.c (thumb_record_misc): Update to correct logical
13768 error while recording ldm, ldmia and pop instructions.
13770 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13772 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13774 2014-01-15 Pedro Alves <palves@redhat.com>
13776 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13777 (go32_resume, go32_fetch_registers, store_register)
13778 (go32_store_registers, go32_prepare_to_store)
13779 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13780 (go32_create_inferior, go32_can_run, go32_terminal_init)
13781 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13784 2014-01-15 Tom Tromey <tromey@redhat.com>
13786 * target.h (async_callback_ftype): New typedef.
13787 (struct target_ops) <to_async>: Use it.
13789 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13791 * python/py-value.c (get_field_type): Remove unnecessary curly
13792 braces for single-statement if block.
13794 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13796 * python/py-type.c (convert_field): Add missing empty line
13797 after declarations.
13799 2014-01-14 Doug Evans <dje@google.com>
13801 * symfile.h (expand_symtabs_matching): Renamed from
13802 expand_partial_symbol_names. Update prototype.
13803 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13804 * symfile.c (expand_symtabs_matching): Renamed from
13805 expand_partial_symbol_names. New args file_matcher, kind.
13806 Rename arg fun to symbol_matcher.
13807 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13808 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13809 ada_expand_partial_symbol_name.
13810 (ada_make_symbol_completion_list): Update to call
13811 expand_symtabs_matching.
13812 (ada_add_global_exceptions): Call expand_symtabs_matching.
13813 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13814 call map_symbol_filenames.
13815 * symtab.c (sources_info): Update to call map_symbol_filenames.
13816 (search_symbols): Call expand_symtabs_matching.
13817 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13818 (default_make_symbol_completion_list_break_on): Update to call
13819 expand_symtabs_matching.
13820 (make_source_files_completion_list): Update to call
13821 map_symbol_filenames.
13823 2014-01-14 Doug Evans <dje@google.com>
13825 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13826 (expand_symtabs_symbol_matcher_ftype): New typedef.
13827 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13828 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13829 * symfile.c (expand_partial_symbol_names): Update to use
13830 expand_symtabs_symbol_matcher_ftype.
13831 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13832 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13833 Arg name_matcher renamed to symbol_matcher.
13834 * psymtab.c (recursively_search_psymtabs): Update to use
13835 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13837 (expand_symtabs_matching_via_partial): Update to use
13838 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13839 Arg name_matcher renamed to symbol_matcher.
13841 2014-01-14 Doug Evans <dje@google.com>
13843 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13844 (map_partial_symbol_filenames): Ditto.
13845 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13846 (map_partial_symbol_filenames): Ditto.
13847 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13848 (map_partial_symbol_filenames): Ditto.
13849 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13850 (map_partial_symbol_filenames): Ditto.
13851 * symtab.c: Delete #include "psymtab.h".
13853 2014-01-14 Pedro Alves <palves@redhat.com>
13854 Tom Tromey <tromey@redhat.com>
13856 * infrun.c (use_displaced_stepping): Use find_record_target
13857 instead of RECORD_IS_USED.
13858 (adjust_pc_after_break): Use record_full_is_used instead of
13860 * record-btrace.c (record_btrace_open): Call record_preopen
13861 instead of checking RECORD_IS_USED.
13862 * record-full.c (record_full_shortname)
13863 (record_full_core_shortname): New globals.
13864 (record_full_is_used): New function.
13865 (find_full_open): Call record_preopen instead of checking
13867 (init_record_full_ops): Set the target's shortname to
13868 record_full_shortname.
13869 (init_record_full_core_ops): Set the target's shortname to
13870 record_full_core_shortname.
13871 * record-full.h (record_full_is_used): Declare.
13872 * record.c (find_record_target): Make extern.
13873 (record_preopen): New function.
13874 * record.h (RECORD_IS_USED): Delete macro.
13875 (find_record_target, record_preopen): Declare functions.
13877 2014-01-14 Yao Qi <yao@codesourcery.com>
13879 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13880 'len''s type to ULONGEST.
13881 (core_xfer_shared_libraries_aix): Likewise.
13882 * gdbarch.c, gdbarch.h: Regenerated.
13883 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13884 Change type of 'len' to ULONGEST.
13885 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13886 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13888 2014-01-14 Yao Qi <yao@codesourcery.com>
13890 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13891 type of 'len' to ULONGEST.
13892 (linux_xfer_osdata_processgroups): Likewise.
13893 (linux_xfer_osdata_threads): Likewise.
13894 (linux_xfer_osdata_fds): Likewise.
13895 (linux_xfer_osdata_isockets): Likewise.
13896 (linux_xfer_osdata_shm): Likewise.
13897 (linux_xfer_osdata_sem): Likewise.
13898 (linux_xfer_osdata_msg): Likewise.
13899 (linux_common_xfer_osdata): Likewise.
13900 (struct osdata_type) <getter>: Likewise.
13901 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13904 2014-01-14 Yao Qi <yao@codesourcery.com>
13906 * target.h (target_xfer_partial_ftype): Update.
13907 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13909 * aix-thread.c (aix_thread_xfer_partial): Change type of
13910 argument 'len' to ULONGEST.
13911 * auxv.c (procfs_xfer_auxv): Likewise.
13912 (ld_so_xfer_auxv): Likewise.
13913 (memory_xfer_auxv): Likewise.
13914 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13915 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13916 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13917 * corelow.c (core_xfer_partial): Likewise.
13918 * ctf.c (ctf_xfer_partial): Likewise.
13919 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13921 (darwin_read_dyld_info): Likewise.
13922 (darwin_xfer_partial): Likewise.
13923 * exec.c (section_table_xfer_memory_partial): Likewise.
13924 (exec_xfer_partial): Likewise.
13925 * exec.h (section_table_xfer_memory_partial): Update
13927 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13928 instead of plongest.
13929 (gnu_xfer_partial): Likewise.
13930 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13931 (ia64_hpux_xfer_solib_got): Likewise.
13932 (ia64_hpux_xfer_partial): Likewise.
13933 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13934 * inf-ptrace.c (inf_ptrace_xfer_partial):
13935 * inf-ttrace.c (inf_ttrace_xfer_partial):
13936 * linux-nat.c (linux_xfer_siginfo): Likewise.
13937 (linux_nat_xfer_partial): Likewise.
13938 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13939 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13940 * monitor.c (monitor_xfer_memory): Likewise.
13941 (monitor_xfer_partial): Likewise.
13942 * procfs.c (procfs_xfer_partial): Likewise.
13943 * record-full.c (record_full_xfer_partial): Likewise.
13944 (record_full_core_xfer_partial): Likewise.
13945 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13946 instead of plongest.
13947 (gdbsim_xfer_partial): Likewise.
13948 * remote.c (remote_xfer_partial): Likewise.
13949 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13950 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13952 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13953 (rs6000_xfer_shared_libraries): Likewise.
13954 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13955 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13956 (sparc_xfer_partial): Likewise.
13957 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13958 (spu_xfer_partial): Likewise.
13959 * spu-multiarch.c (spu_xfer_partial): Likewise.
13960 * target.c (target_read_live_memory): Likewise.
13961 (memory_xfer_live_readonly_partial): Likewise.
13962 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13963 (target_xfer_partial, default_xfer_partial): Likewise.
13964 (current_xfer_partial): Likewise.
13965 * tracepoint.c (tfile_xfer_partial): Likewise.
13966 * windows-nat.c (windows_xfer_memory): Likewise. Call
13967 pulongest instead of plongest.
13968 (windows_xfer_partial): Likewise.
13969 (windows_xfer_shared_libraries): Likewise.
13971 2014-01-14 Yao Qi <yao@codesourcery.com>
13973 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13974 target_xfer_partial_ftype.
13976 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13980 * valops.c (value_struct_elt_bitpos): New function
13981 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13982 object to 'None' if the field name is an empty string ("").
13983 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13984 attribute to look for a field when 'name' is 'None'.
13985 (get_field_type): New function
13987 2014-01-13 Doug Evans <dje@google.com>
13990 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13991 (try_open_dwop_file): Ditto.
13992 * gdb_bfd.c: #include "vec.h".
13993 (bfdp): New typedef.
13994 (struct gdb_bfd_data): New member included_bfds.
13995 (gdb_bfd_unref): Unref all included bfds.
13996 (gdb_bfd_record_inclusion): New function.
13997 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13999 2014-01-13 Tom Tromey <tromey@redhat.com>
14001 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14003 2014-01-13 Tom Tromey <tromey@redhat.com>
14005 * defs.h (use_windows): Remove.
14006 * gdb.c (main): Update.
14007 * main.c (captured_main, gdb_main): Update.
14008 * main.h (struct captured_main_args) <use_windows>: Remove.
14009 * top.c (use_windows): Remove.
14011 2014-01-13 Tom Tromey <tromey@redhat.com>
14013 * defs.h (deprecated_flush_hook): Remove.
14015 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14018 * linux-thread-db.c (try_thread_db_load): Add parameter
14019 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14020 (try_thread_db_load_from_pdir_1): Move it there from here.
14021 (try_thread_db_load_from_sdir): Update caller.
14022 (try_thread_db_load_from_dir): Move it there from here.
14024 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14026 * regformats/regdat.sh: Always rewrite the register file.
14028 2014-01-13 Pedro Alves <palves@redhat.com>
14030 * Makefile.in (CHECK_HEADERS): New variable.
14031 (check-headers:): New rule.
14033 2014-01-13 Tom Tromey <tromey@redhat.com>
14035 * cli/cli-setshow.c (do_set_command): Update.
14036 * defs.h (deprecated_set_hook): Remove.
14037 * top.c (deprecated_set_hook): Remove.
14039 2014-01-13 Pedro Alves <palves@redhat.com>
14041 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14042 the tracepoint if the PC is a pseudo-register.
14044 2014-01-13 Tom Tromey <tromey@redhat.com>
14046 * defs.h (XCALLOC): Remove.
14047 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14048 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14049 * dwarf2loc.c (allocate_piece_closure): Likewise.
14050 * elfread.c (elf_symfile_segments): Likewise.
14051 (elf_symfile_segments): Likewise.
14052 * gdbtypes.c (copy_type_recursive): Likewise.
14053 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14054 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14055 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14057 * mt-tdep.c (mt_gdbarch_init): Likewise.
14058 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14060 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14061 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14062 * registry.c (registry_alloc_data): Likewise.
14063 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14064 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14065 * serial.c (serial_fdopen_ops): Likewise.
14066 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14068 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14069 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14072 2014-01-13 Tom Tromey <tromey@redhat.com>
14074 * defs.h (XMALLOC): Remove.
14075 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14076 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14077 * cli-out.c (struct ui_out *): Likewise.
14078 * cli/cli-dump.c (add_dump_command): Likewise.
14079 (add_dump_command): Likewise.
14080 * complaints.c (get_complaints): Likewise.
14081 (find_complaint): Likewise.
14082 * dwarf2-frame.c (execute_cfa_program): Likewise.
14083 * dwarf2read.c (abbrev_table_read_table): Likewise.
14084 * gdbarch.sh: Likewise.
14085 * gdbarch.c: Rebuild.
14086 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14087 * interps.c (interp_new): Likewise.
14088 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14089 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14090 * mi/mi-console.c (mi_console_file_new): Likewise.
14091 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14092 * mi/mi-out.c (mi_out_new): Likewise.
14093 * mi/mi-parse.c (mi_parse): Likewise.
14094 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14095 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14096 * observer.c (xalloc_observer_list_node): Likewise.
14097 * regcache.c (regcache_xmalloc_1): Likewise.
14098 * reggroups.c (reggroup_new): Likewise.
14099 (_initialize_reggroup): Likewise.
14100 * registry.c (register_data_with_cleanup): Likewise.
14101 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14102 * ser-base.c (serial_ttystate): Likewise.
14103 * ser-mingw.c (make_pipe_state): Likewise.
14104 * ser-pipe.c (pipe_open): Likewise.
14105 * serial.c (serial_open): Likewise.
14106 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14107 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14108 (tui_alloc_win_info): Likewise.
14109 (tui_add_content_elements): Likewise.
14110 * tui/tui-file.c (tui_file_new): Likewise.
14111 * tui/tui-out.c (tui_out_new): Likewise.
14112 * ui-file.c (mem_file_new): Likewise.
14113 * ui-out.c (push_level): Likewise.
14114 (make_cleanup_ui_out_end): Likewise.
14115 (append_header_to_list): Likewise.
14116 (ui_out_new): Likewise.
14117 * user-regs.c (user_reg_add_builtin): Likewise.
14119 2014-01-13 Tom Tromey <tromey@redhat.com>
14121 * defs.h (XZALLOC): Remove.
14122 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14123 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14124 (get_ada_tasks_inferior_data): Likewise.
14125 * auto-load.c (get_auto_load_pspace_data): Likewise.
14126 * auxv.c (get_auxv_inferior_data): Likewise.
14127 * bfd-target.c (target_bfd_reopen): Likewise.
14128 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14129 (deprecated_insert_raw_breakpoint): Likewise.
14130 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14131 * corelow.c (core_open): Likewise.
14132 * darwin-nat.c (darwin_check_new_threads): Likewise.
14133 (darwin_attach_pid): Likewise.
14134 * dummy-frame.c (dummy_frame_push): Likewise.
14135 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14136 * dwarf2loc.c (allocate_piece_closure): Likewise.
14137 * elfread.c (elf_symfile_segments): Likewise.
14138 * eval.c (ptrmath_type_p): Likewise.
14139 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14140 * gdbtypes.c (alloc_type_arch): Likewise.
14141 (alloc_type_instance): Likewise.
14142 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14143 * inf-child.c (inf_child_can_use_agent): Likewise.
14144 * inflow.c (get_inflow_inferior_data): Likewise.
14145 * infrun.c (save_infcall_suspend_state): Likewise.
14146 * jit.c (jit_reader_load): Likewise.
14147 (get_jit_objfile_data): Likewise.
14148 (get_jit_program_space_data): Likewise.
14149 (jit_object_open_impl): Likewise.
14150 (jit_symtab_open_impl): Likewise.
14151 (jit_block_open_impl): Likewise.
14152 (jit_frame_sniffer): Likewise.
14153 * linux-fork.c (add_fork): Likewise.
14154 * maint.c (make_command_stats_cleanup): Likewise.
14155 * objfiles.c (get_objfile_pspace_data): Likewise.
14156 * opencl-lang.c (struct lval_closure): Likewise.
14157 * osdata.c (osdata_start_osdata): Likewise.
14158 * progspace.c (new_address_space): Likewise.
14159 (add_program_space): Likewise.
14160 * remote-sim.c (get_sim_inferior_data): Likewise.
14161 * sh-tdep.c (sh_gdbarch_init): Likewise.
14162 * skip.c (Ignore): Likewise.
14163 (skip_delete_command): Likewise.
14164 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14165 (library_list_start_library): Likewise.
14166 (solib_aix_current_sos): Likewise.
14167 * solib-darwin.c (get_darwin_info): Likewise.
14168 (darwin_current_sos): Likewise.
14169 * solib-dsbt.c (get_dsbt_info): Likewise.
14170 * solib-ia64-hpux.c (new_so_list): Likewise.
14171 (ia64_hpux_get_solib_linkage_addr): Likewise.
14172 * solib-spu.c (append_ocl_sos): Likewise.
14173 (spu_current_sos): Likewise.
14174 * solib-svr4.c (get_svr4_info): Likewise.
14175 (svr4_keep_data_in_core): Likewise.
14176 (library_list_start_library): Likewise.
14177 (svr4_default_sos): Likewise.
14178 (svr4_read_so_list): Likewise.
14179 * solib-target.c (library_list_start_library): Likewise.
14180 (solib_target_current_sos): Likewise.
14181 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14182 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14183 * symfile.c (default_symfile_segments): Likewise.
14184 * target-descriptions.c (tdesc_data_init): Likewise.
14185 (tdesc_create_reg): Likewise.
14186 (struct tdesc_type *): Likewise.
14187 (tdesc_create_vector): Likewise.
14188 (tdesc_set_struct_size): Likewise.
14189 (struct tdesc_type *): Likewise.
14190 (tdesc_free_feature): Likewise.
14191 (tdesc_create_feature): Likewise.
14192 * windows-nat.c (windows_add_thread): Likewise.
14193 (windows_make_so): Likewise.
14194 * xml-support.c (gdb_xml_body_text): Likewise.
14195 (gdb_xml_create_parser_and_cleanup): Likewise.
14196 (xml_process_xincludes): Likewise.
14197 * xml-syscall.c (allocate_syscalls_info): Likewise.
14198 (syscall_create_syscall_desc): Likewise.
14200 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14202 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14203 function, with code from i386_stap_parse_special_token.
14204 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14205 (i386_stap_parse_special_token): Move code to the two functions
14206 above; simplify it.
14208 2014-01-09 Pedro Alves <palves@redhat.com>
14209 Hui Zhu <hui@codesourcery.com>
14212 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14213 bp_err_string. Don't mark the location shlib_disabled if the
14214 error thrown wasn't a generic or memory error. Catch errors
14215 thrown while inserting breakpoints in overlayed code. Output
14216 error message of software breakpoints.
14217 * remote.c (remote_insert_breakpoint): If this breakpoint has
14218 target-side commands but this stub doesn't support Z0 packets,
14219 throw NOT_SUPPORTED_ERROR error.
14220 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14221 * target.h (target_insert_breakpoint): Extend comment.
14222 (target_insert_hw_breakpoint): Add comment.
14224 2014-01-08 Pedro Alves <palves@redhat.com>
14226 * remote.c (remote_add_thread): Add threads silently if starting
14228 (remote_notice_new_inferior): If in all-stop, and starting up,
14229 don't call notice_new_inferior.
14230 (get_current_thread): New function, factored out from ...
14231 (add_current_inferior_and_thread): ... this. Adjust.
14232 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14233 found any thread, then select the remote's current thread as GDB's
14234 current thread too.
14236 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14238 * NEWS: Create a new section for the next release branch.
14239 Rename the section of the current branch, now that it has
14242 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14244 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14245 * version.in: Bump version to 7.7.50.DATE-cvs.
14247 2014-01-08 Yao Qi <yao@codesourcery.com>
14249 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14250 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14251 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14253 2014-01-08 Yao Qi <yao@codesourcery.com>
14255 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14256 return value of bfd_get_filename to symbol_file_add_from_bfd.
14258 2014-01-08 Pierre Muller <muller@sourceware.org>
14261 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14262 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14263 to prim_record_mininal_symbol_and_info.
14264 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14265 in call to prim_record_minimal_symbol_and_info.
14266 (read_pe_exported_syms): Set index field of section_data.
14268 2014-01-07 Andrew Pinski <apinski@cavium.com>
14270 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14271 * features/aarch64.c: Regenerate.
14273 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14275 * target.c (return_null): Define.
14276 (update_current_target): Use it instead of return_zero for
14277 functions that return a pointer.
14279 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14281 * source.c (add_path): Fix check for duplicated paths in the previously
14284 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14286 * ada-lang.c: Remove duplicated include statements.
14287 * alphabsd-nat.c: Ditto.
14288 * amd64-darwin-tdep.c: Ditto.
14289 * amd64fbsd-nat.c: Ditto.
14290 * auto-load.c: Ditto.
14292 * breakpoint.c: Ditto.
14293 * dbxread.c: Ditto.
14294 * fork-child.c: Ditto.
14295 * gdb_usleep.c: Ditto.
14296 * i386-darwin-tdep.c: Ditto.
14297 * i386fbsd-nat.c: Ditto.
14299 * inferior.c: Ditto.
14300 * jv-lang.c: Ditto.
14301 * linux-nat.c: Ditto.
14302 * linux-tdep.c: Ditto.
14303 * m68kbsd-nat.c: Ditto.
14304 * m68klinux-nat.c: Ditto.
14305 * microblaze-tdep.c: Ditto.
14306 * mips-linux-tdep.c: Ditto.
14307 * mn10300-tdep.c: Ditto.
14308 * nto-tdep.c: Ditto.
14309 * opencl-lang.c: Ditto.
14311 * printcmd.c: Ditto.
14312 * regcache.c: Ditto.
14313 * remote-m32r-sdi.c: Ditto.
14315 * symfile.c: Ditto.
14317 * tilegx-linux-nat.c: Ditto.
14318 * tilegx-tdep.c: Ditto.
14319 * tracepoint.c: Ditto.
14321 * vaxbsd-nat.c: Ditto.
14322 * windows-nat.c: Ditto.
14323 * xtensa-tdep.c: Ditto.
14325 2014-01-07 Yao Qi <yao@codesourcery.com>
14327 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14329 2014-01-07 Yao Qi <yao@codesourcery.com>
14330 Joel Brobecker <brobecker@adacore.com>
14332 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14333 (pdc_write_regs): Likewise.
14334 (fetch_regs_kernel_thread): Likewise.
14335 (store_regs_kernel_thread): Likewise.
14337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14339 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14340 tagged type objects to their actual type.
14342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14344 * ada-valprint.c (print_field_values): Add "language" parameter.
14345 Update calls to print_field_values and print_variant_part.
14346 Pass new parameter "language" in call to val_print instead
14347 of "current_language". Replace call to ada_val_print by call
14349 (print_variant_part): Add "language" parameter.
14350 (ada_val_print_struct_union): Update call to print_field_values.
14352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14354 * ada-valprint.c (ui_memcpy): Delete.
14355 (ada_print_floating): Update documentation. Add empty line
14356 between between function documentation and implementation.
14357 Delete variable "buffer". Use ui_file_xstrdup in place of
14358 ui_file_put. Minor adjustments following this change.
14360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14362 * ada-valprint.c (ada_val_print_string): New function,
14363 extracted from ada_val_print_array.
14364 (ada_val_print_array): Replace extracted code by call
14365 to ada_val_print_string followed by a return. Move
14366 "else" branch to the function's top block.
14368 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14370 * ada-valprint.c (ada_val_print_array): Move implementation
14371 down. Rename parameter "offset" and "val" into "offset_aligned"
14372 and "original_value" respectively. Add parameter "offset".
14374 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14376 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14377 re-organizing the code. Change the "???" message printed
14378 when target type is a TYPE_CODE_UNDEF into
14379 "<ref to undefined type>".
14381 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14383 * ada-valprint.c (print_record): Delete, implementation inlined...
14384 (ada_val_print_struct_union): ... here. Remove call to
14385 ada_check_typedef in inlined implementation.
14387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14389 * ada-valprint.c (ada_val_print_gnat_array): New function,
14390 extracted from ada_val_print_1;
14391 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14392 (ada_val_print_flt, ada_val_print_struct_union)
14393 (ada_val_print_ref): Likewise.
14394 (ada_val_print_1): Delete variables i and elttype.
14395 Replace extracted-out code by call to corresponding
14398 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14400 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14402 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14404 * ada-valprint.c (ada_val_print_1): Replace calls to
14405 ada_val_print_1 by calls to val_print.
14407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14409 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14410 Update calls to self accordingly. Replace calls to c_val_print
14411 by calls to val_print.
14413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14415 * ada-valprint.c (print_record): Delete declaration.
14416 (adjust_type_signedness, ada_val_print_1): Likewise.
14417 (ada_val_print): Move function implementation down.
14418 (print_variant_part, print_field_values, print_record):
14419 Move function implementation up.
14421 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14423 * python/py-type.c (typy_get_name): New function.
14424 (type_object_getset): Add entry for attribute "name".
14425 * NEWS: Add entry mentioning this new attribute.
14427 2014-01-07 Yao Qi <yao@codesourcery.com>
14429 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14432 2014-01-07 Yao Qi <yao@codesourcery.com>
14434 * gnu-nat.c (info_port_rights): Add qualifier const to
14437 2014-01-07 Yao Qi <yao@codesourcery.com>
14439 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14441 2014-01-07 Yao Qi <yao@codesourcery.com>
14443 * gnu-nat.c (make_inf) Update declaration.
14444 (make_inf): Make it static.
14445 (inf_set_traced): Likewise.
14446 (inf_port_to_thread, inf_task_died_status): Likewise.
14448 2014-01-07 Yao Qi <yao@codesourcery.com>
14450 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14452 2014-01-07 Yao Qi <yao@codesourcery.com>
14454 * gnu-nat.c (_initialize_gnu_nat): Declare.
14456 2014-01-07 Yao Qi <yao@codesourcery.com>
14458 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14460 (struct gdbarch_info) <byte_order>: Change type to
14462 <byte_order_for_code>: Likewise.
14463 * gdbarch.c, gdbarch.h: Regenerated.
14465 2014-01-06 Sasha Smundak <asmundak@google.com>
14467 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14469 2014-01-06 Tom Tromey <tromey@redhat.com>
14471 * doublest.c (convert_doublest_to_floatformat): Use const, not
14473 * somread.c (som_symtab_read): Likewise.
14475 2014-01-07 Hui Zhu <hui@codesourcery.com>
14477 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14478 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14479 (gdb_bfd_fopen): Ditto.
14480 (gdb_bfd_openr): Ditto.
14481 (gdb_bfd_openw): Ditto.
14482 (gdb_bfd_openr_iovec): Ditto.
14483 (gdb_bfd_fdopenr): Ditto.
14484 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14485 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14487 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14489 * symfile-mem.c (symbol_file_add_from_memory): Removed
14490 gdb_bfd_stash_filename.
14492 2014-01-03 Doug Evans <dje@google.com>
14494 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14499 Update year range in copyright notice of all files.
14501 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14503 * top.c (print_gdb_version): Set copyright year to 2014.
14505 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14507 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14509 For older changes see ChangeLog-2013.
14515 version-control: never