1 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
3 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
5 2014-11-07 Pedro Alves <palves@redhat.com>
7 * infrun.c (process_event_stop_test) <subroutine check>: Don't
8 check if we did a "nexti" inside a prologue.
9 * symtab.c (in_prologue): Delete function.
10 * symtab.h (in_prologue): Delete declaration.
12 2014-11-06 Doug Evans <xdje42@gmail.com>
14 * symtab.h (lookup_global_symbol): Improve function comment.
16 2014-11-06 Doug Evans <xdje42@gmail.com>
18 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
20 * symtab.h (lookup_global_symbol): Update decl.
21 (lookup_static_symbol): Move decl to better location.
23 2014-11-06 Doug Evans <xdje42@gmail.com>
25 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
27 2014-11-06 Doug Evans <xdje42@gmail.com>
29 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
31 (lookup_symbol_in_all_objfiles): Renamed from
32 lookup_symbol_aux_symtabs. All callers updated.
33 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
35 (lookup_symbol_in_objfile_symtabs): Renamed from
36 lookup_symbol_aux_objfile. All callers updated.
38 2014-11-06 Doug Evans <xdje42@gmail.com>
40 * symtab.c (lookup_symbol_in_block): Renamed from
41 lookup_symbol_aux_block. All callers updated.
43 2014-11-06 Doug Evans <xdje42@gmail.com>
45 * symtab.c (lookup_static_symbol): Renamed from
46 lookup_static_symbol_aux. All callers updated.
47 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
50 2014-11-06 Doug Evans <xdje42@gmail.com>
52 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
53 * block.c (block_lookup_symbol): Use it.
54 * cp-support.c (make_symbol_overload_list_block): Use it.
55 * symtab.c (iterate_over_symbols): Use it.
57 2014-11-06 Doug Evans <xdje42@gmail.com>
59 * symtab.c (lookup_block_symbol): Moved to ...
60 * block.c (block_lookup_symbol): ... here and renamed.
62 * block.h (block_lookup_symbol): Declare.
63 * symtab.h (lookup_block_symbol): Delete.
65 2014-11-06 Doug Evans <xdje42@gmail.com>
67 * ada-lang.c (ada_make_symbol_completion_list): Use
68 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
69 * symtab.c (lookup_objfile_from_block): Ditto.
71 2014-11-06 Doug Evans <xdje42@gmail.com>
73 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
76 2014-11-06 Doug Evans <xdje42@gmail.com>
78 * objfiles.c (get_objfile_arch): Constify.
79 * objfiles.h (get_objfile_arch): Update prototype.
80 * solib.c (solib_global_lookup): Fetch arch from objfile,
83 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
85 * nios2-tdep.c (wild_insn): Delete.
86 (profiler_insn, irqentry_insn): Delete.
87 (nios2_match_sequence): Delete.
88 (nios2_analyze_prologue): Update comments. Remove matching
89 of obsolete profiler_insn and irqentry_insn sequences.
91 2014-11-05 Alan Modra <amodra@gmail.com>
93 * charset.c (convert_between_encodings): Shrink obstack using
95 * minsyms.c (install_minimal_symbols): Likewise.
96 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
97 to char* before doing pointer arithmetic.
99 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
101 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
103 2014-11-04 Pedro Alves <palves@redhat.com>
105 * breakpoint.c (breakpoint_thread_match): Delete function.
106 * breakpoint.h (breakpoint_thread_match): Delete declaration.
108 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
111 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
112 the method args also under EVAL_SKIP when evaluating method
113 calls under EVAL_SKIP.
115 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
117 * dwarf2loc.c (read_pieced_value): Do big endian
118 processing only if gdb_regnum is not -1.
119 (write_pieced_value): Ditto.
121 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
123 * arm-linux-tdep.c (arm_linux_init_abi): Use
124 info.byte_order_for_code to choose endianity of breakpoint
125 instructions snippets.
127 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
129 * arm-tdep.c (extract_arm_insn): Use
130 gdbarch_byte_order_for_code to read arm instruction.
132 2014-11-02 Doug Evans <xdje42@gmail.com>
134 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
136 2014-11-02 Doug Evans <xdje42@gmail.com>
138 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
139 main_subfile before returning.
141 2014-10-31 Doug Evans <xdje42@gmail.com>
143 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
144 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
146 2014-10-31 Doug Evans <xdje42@gmail.com>
148 * valops.c (value_cast_pointers): Fix whitespace.
149 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
152 2014-10-30 Doug Evans <dje@google.com>
154 * NEWS: Mention ability add attributes to gdb.Objfile and
155 gdb.Progspace objects.
156 * python/py-objfile.c (objfile_object): New member dict.
157 (objfpy_dealloc): Py_XDECREF dict.
158 (objfpy_initialize): Initialize dict.
159 (objfile_getset): Add __dict__.
160 (objfile_object_type): Set tp_dictoffset member.
161 * python/py-progspace.c (progspace_object): New member dict.
162 (pspy_dealloc): Py_XDECREF dict.
163 (pspy_initialize): Initialize dict.
164 (pspace_getset): Add __dict__.
165 (pspace_object_type): Set tp_dictoffset member.
167 2014-10-30 Yao Qi <yao@codesourcery.com>
169 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
170 replace '\\' with '\\\\'.
172 2014-10-29 Joel Brobecker <brobecker@adacore.com>
176 2014-10-29 Pedro Alves <palves@redhat.com>
179 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
180 instead of assuming a thread with a stepping range is always
183 2014-10-29 Pedro Alves <palves@redhat.com>
186 * event-top.c (change_line_handler): Call
187 gdb_rl_callback_handler_remove instead of
188 rl_callback_handler_remove.
189 (callback_handler_installed): New global.
190 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
191 (gdb_rl_callback_handler_reinstall): New functions.
192 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
193 gdb_rl_callback_handler_install instead of
194 rl_callback_handler_remove and rl_callback_handler_install.
195 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
196 instead of rl_callback_handler_remove.
197 * event-top.h (gdb_rl_callback_handler_remove)
198 (gdb_rl_callback_handler_install)
199 (gdb_rl_callback_handler_reinstall): New declarations.
200 * infrun.c (reinstall_readline_callback_handler_cleanup): New
202 (fetch_inferior_event): Install it.
203 * top.c (gdb_readline_wrapper_line) Call
204 gdb_rl_callback_handler_remove instead of
205 rl_callback_handler_remove.
206 (gdb_readline_wrapper_cleanup): Don't call
207 rl_callback_handler_install.
209 2014-10-29 Pedro Alves <palves@redhat.com>
211 * event-top.c (command_line_handler): Clear the first byte of
212 linebuffer, when it is first allocated.
214 2014-10-29 Pedro Alves <palves@redhat.com>
216 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
219 2014-10-29 Pedro Alves <palves@redhat.com>
223 * tui/tui-interp.c (tui_is_toplevel): Delete global.
224 (tui_allowed_p): Delete function.
225 * tui/tui.c: Include "interps.h".
226 (tui_enable): Don't use tui_allowed_p. Error out here with
227 detailed error messages if the TUI is the top level interpreter,
228 or if output is not a terminal. Use newterm instead of initscr,
229 and error out if initializing the terminal fails. Also error out if
230 the terminal doesn't support cursor addressing.
231 * tui/tui.h (tui_allowed_p): Delete declaration.
233 2014-10-29 Joel Brobecker <brobecker@adacore.com>
235 * arm-tdep.c (arm_skip_stack_protector): Return early if
236 address loaded by first "ldr" instruction does not have
237 a corresponding minimal symbol. Update comment.
239 2014-10-29 Yao Qi <yao@codesourcery.com>
241 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
242 loaded address correctly of ldr instruction.
244 2014-10-28 Pedro Alves <palves@redhat.com>
247 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
249 * infrun.c (resume) <stepping breakpoint instruction>: Set the
250 thread's stepped_breakpoint field. Skip if reverse debugging.
252 (init_thread_stepping_state, handle_signal_stop): Clear the
253 thread's stepped_breakpoint field.
255 2014-10-27 Pedro Alves <palves@redhat.com>
257 * remote.c (remote_thread_alive): New, factored out from ...
258 (remote_thread_alive): ... this.
259 (remote_update_thread_list): Bail out before deleting threads if
260 the target returned an empty list, and, the current thread has a
263 2014-10-27 Pedro Alves <palves@redhat.com>
265 * infrun.c (handle_signal_stop): Also skip handlers when a random
266 signal arrives while handling a "stepi" or a "nexti". Set the
267 thread's 'step_after_step_resume_breakpoint' flag.
269 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
271 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
272 (arm_record_ld_st_imm_offset): Reimplement to cover all
273 load/store cases for ARM opcode 010.
274 (arm_record_ld_st_multiple): Reimplement to cover all
275 load/store cases for ARM opcode 100.
277 2014-10-26 Doug Evans <xdje42@gmail.com>
279 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
281 2014-10-26 Doug Evans <xdje42@gmail.com>
283 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
284 parameter "kind" to "block_index".
285 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
287 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
289 2014-10-26 Doug Evans <xdje42@gmail.com>
291 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
293 2014-10-26 Doug Evans <xdje42@gmail.com>
295 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
298 2014-10-26 Doug Evans <xdje42@gmail.com>
300 * parser-defs.h (block_found): Move decl from here ...
301 * symtab.h (block_found): ... to here.
303 2014-10-26 Doug Evans <xdje42@gmail.com>
305 * symtab.h (struct field_of_this_result): Fix typo in comment.
306 (lookup_symbol_in_language): Move function comment here.
307 (lookup_symbol): Improve function comment.
308 (basic_lookup_symbol_nonlocal): Ditto.
309 (lookup_symbol_static, lookup_symbol_global): Ditto.
310 (lookup_symbol_aux_block): Ditto.
311 (lookup_language_this): Add function comment.
312 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
314 (lookup_block_symbol): Improve function comment.
315 (lookup_struct): Fix capitalization in function comment.
316 (lookup_transparent_type): Add function comment.
317 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
318 Improve function comment.
319 (lookup_objfile_from_block): Add function comment.
320 * symtab.c (lookup_symbol_in_language): Update function comment.
321 (lookup_symbol, lookup_language_this): Ditto.
322 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
323 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
324 (basic_lookup_symbol_nonlocal): Ditto.
325 (lookup_symbol_static, lookup_symbol_global): Ditto.
326 (lookup_transparent_type, lookup_block_symbol): Ditto.
328 2014-10-25 Doug Evans <xdje42@gmail.com>
330 * symtab.c (types_info): Delete forward decl.
331 (functions_info, variables_info, sources_info): Ditto.
332 (_initialize_symtab): Rewrite forward decl to use
333 initialize_file_ftype.
335 2014-10-25 Doug Evans <xdje42@gmail.com>
337 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
339 2014-10-25 Doug Evans <xdje42@gmail.com>
341 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
342 of local var child_die.
344 2014-10-24 Don Breazeal <donb@codesourcery.com>
346 * infrun.c (follow_fork_inferior): Update fork message printing
347 to use target_terminal_ours_for_output instead of
348 target_terminal_ours, to use _() for all format strings, to print
349 "vfork" instead of "fork" for vforks, and to add a detach message.
350 (handle_vfork_child_exec_or_exit): Update message printing to use
351 target_terminal_ours_for_output instead of target_terminal_ours, to
352 use _() for all format strings, and to fix some formatting.
354 2014-10-24 Pedro Alves <palves@redhat.com>
356 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
357 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
358 * config/vax/vax.mh: Delete.
359 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
360 obsolete configurations section.
361 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
362 * vax-nat.c: Delete file.
364 2014-10-24 Pedro Alves <palves@redhat.com>
366 * NEWS (Removed targets): Add OS/arch column.
368 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
370 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
371 on the arg type of a constructor only if it is of reference type.
373 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
375 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
376 accessors and constants from nios2 opcodes update.
377 (nios2_get_next_pc): Likewise.
379 2014-10-19 Doug Evans <xdje42@gmail.com>
381 * gdbthread.h (set_running): Fix comment.
382 (set_executing, finish_thread_state): Fix comment.
384 2014-10-18 Doug Evans <xdje42@gmail.com>
386 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
388 2014-10-17 Doug Evans <dje@google.com>
390 * NEWS: Mention new event gdb.clear_objfiles.
391 * python/py-event.h (emit_clear_objfiles_event): Clear
392 * python/py-events.h (events_object): New member clear_objfiles.
393 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
395 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
396 emit clear_objfiles event.
397 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
399 (emit_clear_objfiles_event): New function.
400 (clear_objfiles): New event.
401 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
403 * python/python.c (_initialize_python): Call
404 gdbpy_initialize_clear_objfiles_event.
406 2014-10-17 Doug Evans <dje@google.com>
408 * NEWS: Mention new gdb.Objfile.progspace attribute.
409 * python/py-objfile.c (objfpy_get_progspace): New function.
410 (objfile_getset): New entry for "progspace".
412 2014-10-17 Pedro Alves <palves@redhat.com>
415 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
416 returns a copy of the input.
417 (run_command_1, continue_command, step_1, jump_command)
418 (signal_command, until_command, advance_command, finish_command)
419 (attach_command): Adjust and install a cleanup to free the
422 2014-10-17 Pedro Alves <palves@redhat.com>
425 * infcmd.c (continue_1): If continuing all threads in the
426 foreground, make sure the inferior's terminal settings are put in
429 2014-10-17 Pedro Alves <palves@redhat.com>
432 * annotate.c (annotate_breakpoints_invalid): Use
433 target_terminal_our_for_output instead of target_terminal_ours.
434 Give back the terminal to the target.
435 (annotate_frames_invalid): Likewise.
437 2014-10-17 Pedro Alves <palves@redhat.com>
439 * target.c (enum terminal_state): New enum.
440 (terminal_state): New global.
441 (target_terminal_init): New function.
442 (target_terminal_inferior): Skip if inferior already owns the
444 (target_terminal_ours, target_terminal_ours_for_output): New
446 * target.h (target_terminal_init): Convert to function prototype.
447 (target_terminal_ours_for_output): Convert to function prototype
449 (target_terminal_ours): Convert to function prototype and tweak
451 * windows-nat.c (do_initial_windows_stuff): Call
452 target_terminal_init instead of child_terminal_init_with_pgrp.
454 2014-10-17 Pedro Alves <palves@redhat.com>
456 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
457 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
458 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
460 * NEWS: Mention that support for alpha*-*-osf* has been removed.
461 * ada-lang.h [__alpha__ && __osf__]
462 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
463 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
464 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
466 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
468 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
469 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
470 * configure: Regenerate.
471 * configure.ac: Remove references to osf.
472 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
473 section. Remove all other references to osf.
474 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
475 Remove all other references to osf.
476 * dec-thread.c: Delete file.
477 * defs.h (GDB_OSABI_OSF1): Delete.
478 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
480 * osabi.c (gdb_osabi_names): Delete "OSF/1".
481 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
483 (unconditionally_kill_inferior)
484 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
485 * solib-osf.c: Delete file.
487 2014-10-17 Pedro Alves <palves@redhat.com>
489 * remote.c (clear_threads_listing_context): Move higher up, out of
490 the HAVE_LIBEXPAT guard.
492 2014-10-16 Tristan Gingold <gingold@adacore.com>
494 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
495 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
498 2014-10-15 Pedro Alves <palves@redhat.com>
500 * dec-thread.c (dec_thread_count_gdb_threads)
501 (dec_thread_add_gdb_thread): Delete.
502 (dec_thread_update_thread_list): Delete.
503 (dec_thread_find_new_threads): Rename to ...
504 (dec_thread_update_thread_list): ... this. Delete GDB-size
505 threads that are no longer found in dec_thread_list.
506 (resync_thread_list): Delete.
507 (dec_thread_wait): Call dec_thread_update_thread_list instead of
510 2014-10-15 Pedro Alves <palves@redhat.com>
512 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
513 * remote.c (remote_update_thread_list): Skip calling prune_threads
514 if any thread listing method is supported, and instead walk over
515 the set of remote threads listed, deleting those that are not
516 found in GDB's thread list.
518 2014-10-15 Pedro Alves <palves@redhat.com>
520 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
521 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
522 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
523 (bsd_uthread_target): Adjust.
524 * corelow.c (core_open): Adjust.
525 * dec-thread.c (dec_thread_find_new_threads): Update comment.
526 (dec_thread_update_thread_list): New function.
527 (init_dec_thread_ops): Adjust.
528 * gdbthread.h (prune_threads): New declaration.
529 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
530 (thread_db_update_thread_list): ... this. Call prune_threads.
531 (init_thread_db_ops): Adjust.
532 * nto-procfs.c (procfs_find_new_threads): Rename to ...
533 (procfs_update_thread_list): ... this. Call prune_threads.
534 (procfs_attach, procfs_create_inferior, init_procfs_targets):
536 * obsd-nat.c (obsd_find_new_threads): Rename to ...
537 (obsd_update_thread_list): ... this. Call prune_threads.
538 (obsd_add_target): Adjust.
539 * procfs.c (procfs_target): Adjust.
540 (procfs_notice_thread): Update comment.
541 (procfs_find_new_threads): Rename to ...
542 (procfs_update_thread_list): ... this. Call prune_threads.
543 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
545 (ravenscar_wait): Adjust.
546 (ravenscar_find_new_threads): Rename to ...
547 (ravenscar_update_thread_list): ... this. Call prune_threads.
548 (init_ravenscar_thread_ops): Adjust.
549 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
550 (record_btrace_update_thread_list): ... this. Adjust comment.
551 (init_record_btrace_ops): Adjust.
552 * remote.c (remote_threads_info): Rename to ...
553 (remote_update_thread_list): ... this. Call prune_threads.
554 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
556 * sol-thread.c (check_for_thread_db): Adjust.
557 (sol_find_new_threads_callback): Rename to ...
558 (sol_update_thread_list_callback): ... this.
559 (sol_find_new_threads): Rename to ...
560 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
561 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
562 * target-delegates.c: Regenerate.
563 * target.c (target_find_new_threads): Rename to ...
564 (target_update_thread_list): ... this.
565 * target.h (struct target_ops): Rename to_find_new_threads field
566 to to_update_thread_list.
567 (target_find_new_threads): Rename to ...
568 (target_update_thread_list): ... this.
569 * thread.c (prune_threads): Make extern.
570 (update_thread_list): Adjust.
572 2014-10-15 Pedro Alves <palves@redhat.com>
574 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
575 Add describing comment. Return -1 if the qL packet is not
577 (struct thread_item, thread_item_t): Move higher up in
578 the file. Add comments.
579 (struct threads_parsing_context): Move higher up in
580 the file, add comments, and remote to ...
581 (struct threads_listing_context): ... this.
582 (remote_newthread_step): Don't add the thread to GDB's thread
583 database here. Instead push it to the thread_listing_context
585 (remote_find_new_threads): Rename to ...
586 (remote_get_threads_with_ql): ... this. Add target_ops and
587 targets_listing_context parameters. Pass down context.
588 (start_thread): Adjust.
589 (clear_threads_parsing_context): Rename to ...
590 (clear_threads_listing_context): ... this.
591 (remote_get_threads_with_qxfer): New, with parts salvaged from old
593 (remote_get_threads_with_qthreadinfo): Ditto.
594 (remote_threads_info): Reimplement.
596 2014-10-15 Pedro Alves <palves@redhat.com>
598 * infrun.c (resume): Don't force displaced-stepping for all
599 single-steps on software single-stepping archs.
601 2014-10-15 Pedro Alves <palves@redhat.com>
603 * breakpoint.c (single_step_breakpoints): Delete global.
604 (insert_single_step_breakpoint): Adjust to store the breakpoint
605 pointer in the current thread.
606 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
607 (cancel_single_step_breakpoints): Delete functions.
608 (breakpoint_has_location_inserted_here): Make extern.
609 (single_step_breakpoint_inserted_here_p): Adjust to walk the
611 * breakpoint.h (breakpoint_has_location_inserted_here): New
613 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
614 (cancel_single_step_breakpoints): Remove declarations.
615 * gdbthread.h (struct thread_control_state)
616 <single_step_breakpoints>: New field.
617 (delete_single_step_breakpoints)
618 (thread_has_single_step_breakpoints_set)
619 (thread_has_single_step_breakpoint_here): New declarations.
620 * infrun.c (follow_exec): Also clear the single-step breakpoints.
621 (singlestep_breakpoints_inserted_p, singlestep_ptid)
622 (singlestep_pc): Delete globals.
623 (infrun_thread_ptid_changed): Remove references to removed
625 (resume_cleanups): Delete the current thread's single-step
627 (maybe_software_singlestep): Remove references to removed globals.
628 (resume): Adjust to use thread_has_single_step_breakpoints_set and
629 delete_single_step_breakpoints.
630 (init_wait_for_inferior): Remove references to removed globals.
631 (delete_thread_infrun_breakpoints): Delete the thread's
632 single-step breakpoints too.
633 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
634 single-step breakpoints here.
635 (delete_stopped_threads_single_step_breakpoints): New function.
636 (adjust_pc_after_break): Adjust to use
637 thread_has_single_step_breakpoints_set.
638 (handle_inferior_event): Remove references to removed globals.
639 Use delete_stopped_threads_single_step_breakpoints.
640 (handle_signal_stop): Adjust to per-thread single-step
641 breakpoints. Swap test order to do cheaper tests first.
642 (switch_back_to_stepped_thread): Extend debug output. Remove
643 references to removed globals.
644 * record-full.c (record_full_wait_1): Adjust to per-thread
645 single-step breakpoints.
646 * thread.c (delete_single_step_breakpoints)
647 (thread_has_single_step_breakpoints_set)
648 (thread_has_single_step_breakpoint_here): New functions.
649 (clear_thread_inferior_resources): Also delete the thread's
650 single-step breakpoints.
652 2014-10-15 Pedro Alves <palves@redhat.com>
654 * thread.c (delete_thread_breakpoint): New function.
655 (delete_step_resume_breakpoint)
656 (delete_exception_resume_breakpoint): Use it.
657 (delete_at_next_stop): New function.
658 (clear_thread_inferior_resources): Use delete_at_next_stop.
660 2014-10-15 Pedro Alves <palves@redhat.com>
662 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
663 (breakpoint_inserted_here_p): ... here. Remove special case for
664 software single-step breakpoints.
665 (find_non_raw_software_breakpoint_inserted_here): Inline ...
666 (software_breakpoint_inserted_here_p): ... here. Remove special
667 case for software single-step breakpoints.
668 (bp_target_info_copy_insertion_state)
669 (deprecated_insert_raw_breakpoint)
670 (deprecated_remove_raw_breakpoint): Delete functions.
671 * breakpoint.h (deprecated_insert_raw_breakpoint)
672 (deprecated_remove_raw_breakpoint): Remove declarations.
674 2014-10-15 Pedro Alves <palves@redhat.com>
677 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
678 Delete array globals.
679 (single_step_breakpoints): New global.
680 (breakpoint_xfer_memory): Remove special handling for single-step
682 (update_breakpoints_after_exec): Delete bp_single_step
684 (detach_breakpoints): Remove special handling for single-step
686 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
687 (bpstat_stop_status): Add comment.
688 (bpstat_what, bptype_string, print_one_breakpoint_location)
689 (adjust_breakpoint_address, init_bp_location): Handle
691 (new_single_step_breakpoint): New function.
692 (set_momentary_breakpoint, bkpt_remove_location): Remove special
693 handling for single-step breakpoints.
694 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
695 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
697 (detach_single_step_breakpoints, find_single_step_breakpoint):
699 (breakpoint_has_location_inserted_here): New function.
700 (single_step_breakpoint_inserted_here_p): Rewrite.
701 * breakpoint.h: Remove FIXME.
702 (enum bptype) <bp_single_step>: New enum value.
703 (insert_single_step_breakpoint): Update comment.
704 * infrun.c (resume_cleanups)
705 (delete_step_thread_step_resume_breakpoint): Remove single-step
707 (fetch_inferior_event): Install a cleanup that removes infrun
709 (switch_back_to_stepped_thread) <expect thread advanced also>:
710 Clear step-over info.
712 2014-10-15 Pedro Alves <palves@redhat.com>
714 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
715 (delete_thread_infrun_breakpoints): New function, with parts
716 salvaged from delete_step_resume_breakpoint_callback.
717 (delete_step_thread_step_resume_breakpoint): Delete.
718 (for_each_just_stopped_thread_callback_func): New typedef.
719 (for_each_just_stopped_thread): New function.
720 (delete_just_stopped_threads_infrun_breakpoints): New function.
721 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
722 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
724 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
726 2014-10-15 Pedro Alves <palves@redhat.com>
728 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
729 trying to step past a non-steppable watchpoint.
730 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
732 * infrun.c (struct step_over_info): Add new field
733 'nonsteppable_watchpoint_p' and adjust comments.
734 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
736 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
737 (stepping_past_nonsteppable_watchpoint): New function.
738 (step_over_info_valid_p): Also return true if stepping past a
739 nonsteppable watchpoint.
740 (proceed): Adjust call to set_step_over_info. Remove reference to
742 (init_wait_for_inferior): Remove reference to init_infwait_state.
743 (waiton_ptid): Delete global.
744 (struct execution_control_state)
745 <stepped_after_stopped_by_watchpoint>: Delete field.
746 (wait_for_inferior, fetch_inferior_event): Always pass
747 minus_one_ptid to target_wait.
748 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
750 (init_infwait_state): Delete function.
751 (handle_inferior_event): Remove infwait_state handling.
752 (handle_signal_stop) <watchpoints handling>: Adjust after
753 stepped_after_stopped_by_watchpoint removal. Don't remove
754 breakpoints here nor set infwait_state. Set the thread's
755 stepping_over_watchpoint flag, and call keep_going instead.
756 (keep_going): Handle stepping_over_watchpoint. Adjust
757 set_step_over_info calls.
758 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
761 2014-10-15 Pedro Alves <palves@redhat.com>
763 * infrun.c (step_over_info_valid_p): New function.
764 (resume): Use step_over_info_valid_p instead of checking the
765 threads's trap_expected flag.
767 2014-10-15 Doug Evans <dje@google.com>
768 Walfred Tedeschi <walfred.tedeschi@intel.com>
771 * python/lib/gdb/__init__.py (packages): Add "printer".
772 * python/lib/gdb/command/bound_registers.py: Moved to ...
773 * python/lib/gdb/printer/bound_registers.py: ... here.
774 Add printer to global set of builtin printers. Rename printer from
775 "bound" to "mpx_bound128".
776 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
777 registered as global "builtin" printer.
778 (add_builtin_pretty_printer): New function.
779 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
780 gdb/printer/__init__.py.
782 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
784 * Makefile.in (SFILES): Remove d-support.c.
785 (COMMON_OBS): Remove d-support.o.
786 * d-lang.h (d_parse_symbol): Remove declaration.
787 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
788 * d-support.c: Remove file.
790 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
792 * gdb/infrun.c (process_event_stop_test): Apply
793 gdbarch_addr_bits_remove to longjmp resume address.
795 2014-10-15 Pedro Alves <palves@redhat.com>
797 * regformats/microblaze.dat: Delete file.
799 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
801 * features/Makefile (microblaze-expedite): Replace pc with rpc.
802 * regformats/microblaze-with-stack-protect.dat: Regenerate.
804 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
806 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
809 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
813 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
816 2014-10-14 Joel Brobecker <brobecker@adacore.com>
818 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
819 of the case where the second operand is a pointer.
820 <BINOP_SUB>: Likewise.
822 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
824 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
825 only if it is not NULL.
826 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
827 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
828 (struct probe_ops) <clear_semaphore>: Likewise.
829 * tracepoint.c (start_tracing): Call set_semaphore only if it is
831 (stop_tracing): Likewise, for clear_semaphore.
833 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
835 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
836 using language_c, instead of current_language.
838 2014-10-13 Doug Evans <dje@google.com>
840 * python/py-objfile.c (objfpy_initialize): New function.
841 (objfpy_new, objfile_to_objfile_object): Call it.
842 * python/py-progspace.c (pspy_initialize): New function.
843 (pspy_new, pspace_to_pspace_object): Call it.
845 2014-10-13 Miroslav Franc <mfranc@redhat.com>
846 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Fix "save breakpoints" for "catch" command.
849 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
852 2014-10-12 Miroslav Franc <mfranc@redhat.com>
854 Fix "save breakpoints" for "disable $bpnum" command.
855 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
857 2014-10-10 Pedro Alves <palves@redhat.com>
859 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
860 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
861 (HFILES_NO_SRCDIR): Remove solib-irix.h.
862 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
864 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
865 * configure.ac: Remove references to IRIX.
866 * configure.host: Add *-*-irix* to the obsolete hosts section.
867 Remove all other references to irix.
868 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
871 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
873 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
874 isn't valid, release the tdesc arch data and return NULL.
876 2014-10-10 Pedro Alves <palves@redhat.com>
878 * linux-tdep.c: Include observer.h.
879 (linux_inferior_data): New global.
880 (struct linux_info): New structure.
881 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
882 (get_linux_inferior_data): New functions.
883 (linux_vsyscall_range): Rename to ...
884 (linux_vsyscall_range_raw): ... this.
885 (linux_vsyscall_range): New function; handles caching.
886 (_initialize_linux_tdep): Register linux_inferior_data. Install
887 inferior_exit and inferior_appeared observers.
889 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
890 Pedro Alves <palves@redhat.com>
893 * solib-svr4.c (svr4_read_so_list): Rename to ...
894 (svr4_current_sos_1): ... this and change the function comment.
895 (svr4_current_sos): New function.
897 2014-10-10 Pedro Alves <palves@redhat.com>
899 * arch-utils.c (default_vsyscall_range): New function.
900 * arch-utils.h (default_vsyscall_range): New declaration.
901 * gdbarch.sh (vsyscall_range): New hook.
902 * gdbarch.h, gdbarch.c: Regenerate.
903 * linux-tdep.c (linux_vsyscall_range): New function.
904 (linux_init_abi): Install linux_vsyscall_range as
905 vsyscall_range gdbarch hook.
906 * memrange.c (address_in_mem_range): New function.
907 * memrange.h (address_in_mem_range): New declaration.
908 * symfile-mem.c (find_vdso_size): Delete function.
909 (add_vsyscall_page): Use gdbarch_vsyscall_range.
911 2014-10-10 Pedro Alves <palves@redhat.com>
913 * infrun.c (normal_stop): Fix typo in comment.
915 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
918 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
919 typo when using logical AND to determine instruction type.
921 2014-10-09 Yao Qi <yao@codesourcery.com>
923 * infrun.c (handle_signal_stop): Remove local variable
926 2014-10-08 Stan Shebs <stan@codesourcery.com>
928 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
930 2014-10-08 Gary Benson <gbenson@redhat.com>
932 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
934 2014-10-08 Gary Benson <gbenson@redhat.com>
936 * common/common-defs.h: Include common-exceptions.h.
937 * exceptions.h: Do not include common-exceptions.h.
939 2014-10-08 Gary Benson <gbenson@redhat.com>
941 * common/common-defs.h: Include cleanups.h.
942 * common/common-exceptions.c: Do not include cleanups.h.
945 2014-10-08 Gary Benson <gbenson@redhat.com>
947 * ada-lang.c: Do not include exceptions.h.
948 * ada-valprint.c: Likewise.
949 * amd64-tdep.c: Likewise.
950 * auto-load.c: Likewise.
952 * break-catch-throw.c: Likewise.
953 * breakpoint.c: Likewise.
954 * btrace.c: Likewise.
955 * c-lang.c: Likewise.
956 * cli/cli-cmds.c: Likewise.
957 * cli/cli-interp.c: Likewise.
958 * cli/cli-script.c: Likewise.
959 * completer.c: Likewise.
960 * corefile.c: Likewise.
961 * corelow.c: Likewise.
962 * cp-abi.c: Likewise.
963 * cp-support.c: Likewise.
964 * cp-valprint.c: Likewise.
965 * darwin-nat.c: Likewise.
966 * dwarf2-frame-tailcall.c: Likewise.
967 * dwarf2-frame.c: Likewise.
968 * dwarf2loc.c: Likewise.
969 * dwarf2read.c: Likewise.
971 * event-loop.c: Likewise.
972 * event-top.c: Likewise.
973 * f-valprint.c: Likewise.
974 * frame-unwind.c: Likewise.
976 * gdbtypes.c: Likewise.
977 * gnu-v2-abi.c: Likewise.
978 * gnu-v3-abi.c: Likewise.
979 * guile/scm-auto-load.c: Likewise.
980 * guile/scm-breakpoint.c: Likewise.
981 * guile/scm-cmd.c: Likewise.
982 * guile/scm-frame.c: Likewise.
983 * guile/scm-lazy-string.c: Likewise.
984 * guile/scm-param.c: Likewise.
985 * guile/scm-symbol.c: Likewise.
986 * guile/scm-type.c: Likewise.
987 * hppa-hpux-tdep.c: Likewise.
988 * i386-tdep.c: Likewise.
989 * inf-loop.c: Likewise.
990 * infcall.c: Likewise.
991 * infcmd.c: Likewise.
992 * infrun.c: Likewise.
993 * interps.c: Likewise.
994 * interps.h: Likewise.
996 * linespec.c: Likewise.
997 * linux-nat.c: Likewise.
998 * linux-thread-db.c: Likewise.
999 * m32r-rom.c: Likewise.
1001 * memory-map.c: Likewise.
1002 * mi/mi-cmd-break.c: Likewise.
1003 * mi/mi-cmd-stack.c: Likewise.
1004 * mi/mi-interp.c: Likewise.
1005 * mi/mi-main.c: Likewise.
1006 * monitor.c: Likewise.
1007 * nto-procfs.c: Likewise.
1008 * objc-lang.c: Likewise.
1009 * p-valprint.c: Likewise.
1010 * parse.c: Likewise.
1011 * ppc-linux-tdep.c: Likewise.
1012 * printcmd.c: Likewise.
1013 * probe.c: Likewise.
1014 * python/py-auto-load.c: Likewise.
1015 * python/py-breakpoint.c: Likewise.
1016 * python/py-cmd.c: Likewise.
1017 * python/py-finishbreakpoint.c: Likewise.
1018 * python/py-frame.c: Likewise.
1019 * python/py-framefilter.c: Likewise.
1020 * python/py-function.c: Likewise.
1021 * python/py-gdb-readline.c: Likewise.
1022 * python/py-inferior.c: Likewise.
1023 * python/py-infthread.c: Likewise.
1024 * python/py-lazy-string.c: Likewise.
1025 * python/py-linetable.c: Likewise.
1026 * python/py-param.c: Likewise.
1027 * python/py-prettyprint.c: Likewise.
1028 * python/py-symbol.c: Likewise.
1029 * python/py-type.c: Likewise.
1030 * python/py-value.c: Likewise.
1031 * python/python-internal.h: Likewise.
1032 * python/python.c: Likewise.
1033 * record-btrace.c: Likewise.
1034 * record-full.c: Likewise.
1035 * regcache.c: Likewise.
1036 * remote-fileio.c: Likewise.
1037 * remote-mips.c: Likewise.
1038 * remote.c: Likewise.
1039 * rs6000-aix-tdep.c: Likewise.
1040 * rs6000-nat.c: Likewise.
1042 * solib-darwin.c: Likewise.
1043 * solib-dsbt.c: Likewise.
1044 * solib-frv.c: Likewise.
1045 * solib-ia64-hpux.c: Likewise.
1046 * solib-spu.c: Likewise.
1047 * solib-svr4.c: Likewise.
1048 * solib.c: Likewise.
1049 * spu-tdep.c: Likewise.
1050 * stack.c: Likewise.
1051 * stap-probe.c: Likewise.
1052 * symfile-mem.c: Likewise.
1053 * symmisc.c: Likewise.
1054 * target.c: Likewise.
1055 * thread.c: Likewise.
1057 * tracepoint.c: Likewise.
1058 * tui/tui-interp.c: Likewise.
1059 * typeprint.c: Likewise.
1060 * utils.c: Likewise.
1061 * valarith.c: Likewise.
1062 * valops.c: Likewise.
1063 * valprint.c: Likewise.
1064 * value.c: Likewise.
1065 * varobj.c: Likewise.
1066 * windows-nat.c: Likewise.
1067 * xml-support.c: Likewise.
1069 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1071 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1073 (extended_mips16_next_pc): Update accordingly.
1075 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1077 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1079 (micromips_instruction_is_compact_branch): Likewise.
1080 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1081 or a compact jump, reaching a jump delay slot, or seeing a
1082 second non-prologue instruction.
1083 (micromips_scan_prologue): Also terminate scanning upon seeing a
1084 compact branch or jump, or reaching a branch or jump delay slot.
1085 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1086 or jump delay slot, or seeing a second non-prologue instruction.
1087 (mips32_instruction_has_delay_slot): Retain instruction
1088 examination code only, update arguments accordingly and move
1089 instruction fetch pieces to...
1090 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1091 (micromips_instruction_has_delay_slot): Likewise and to...
1092 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1093 (mips16_instruction_has_delay_slot): Likewise and to...
1094 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1095 (mips_single_step_through_delay): Update accordingly.
1096 (mips_adjust_breakpoint_address): Likewise.
1098 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1100 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1101 !mustbe32 also return 1 for 32-bit instructions.
1102 (mips16_instruction_has_delay_slot): Likewise. Add an
1103 explanatory comment.
1105 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1107 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1110 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1112 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1114 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1115 for the breakpoint's address. Don't preinitialize `placed_size'.
1116 (insert_bp_location): Set `reqstd_address' rather than
1118 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1119 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1121 (bkpt_remove_location): Likewise.
1122 (deprecated_insert_raw_breakpoint): Likewise.
1123 (deprecated_remove_raw_breakpoint): Likewise.
1124 (find_single_step_breakpoint): Likewise.
1125 * mem-break.c (default_memory_insert_breakpoint): Use
1126 `reqstd_address' for the breakpoint's address. Don't set
1127 `placed_address' or `placed_size' if breakpoint contents couldn't
1128 have been determined.
1129 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1130 the breakpoint's address.
1131 (remote_insert_hw_breakpoint): Likewise. Don't set
1132 `placed_address' or `placed_size' if breakpoint couldn't have been
1134 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1135 `reqstd_address' for the breakpoint's address.
1136 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1137 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1138 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1139 * microblaze-linux-tdep.c
1140 (microblaze_linux_memory_remove_breakpoint): Likewise.
1141 * monitor.c (monitor_insert_breakpoint): Likewise.
1142 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1143 (procfs_insert_hw_breakpoint): Likewise.
1144 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1145 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1146 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1147 * remote-mips.c (mips_insert_breakpoint): Likewise.
1148 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1150 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1152 * valops.c (value_assign): Check for bit field assignments
1153 before calling architecture-specific register value
1154 conversion functions.
1156 2014-10-03 Pierre Muller <muller@sourceware.org>
1158 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1160 2014-10-02 Pedro Alves <palves@redhat.com>
1162 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1163 threads_are_executing.
1164 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1166 * gdbthread.h (threads_are_executing): Declare.
1167 (handle_signal_stop) <random signals>: Don't print about the
1168 signal here if stopping.
1169 (end_stepping_range): Don't notify observers here.
1170 (normal_stop): Update the thread list. If stopped by a random
1171 signal or a stepping range ended, notify observers.
1172 * thread.c (threads_executing): New global.
1173 (init_thread_list): Clear 'threads_executing'.
1174 (set_executing): Set or clear 'threads_executing'.
1175 (threads_are_executing): New function.
1176 (update_threads_executing): New function.
1177 (update_thread_list): Use it.
1179 2014-10-02 Pedro Alves <palves@redhat.com>
1181 PR breakpoints/17431
1182 * breakpoint.c (update_breakpoints_after_exec): Don't create
1183 overlay, longjmp, std terminate nor exception breakpoints here.
1185 2014-10-02 Pedro Alves <palves@redhat.com>
1187 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1189 * inferior.c (find_inferior_for_program_space): Give preference to
1190 the current inferior.
1191 * inferior.h (find_inferior_for_program_space): Update comment.
1192 * progspace.c (switch_to_program_space_and_thread): Prefer the
1193 current inferior if it's bound to the program space requested. If
1194 the inferior found doesn't have a PID yet, don't bother looking up
1196 * progspace.h (switch_to_program_space_and_thread): Adjust
1198 * thread.c (any_thread_of_process, any_live_thread_of_process):
1199 Give preference to the current thread.
1201 2014-10-01 Pedro Alves <palves@redhat.com>
1203 * breakpoint.c (insert_bp_location): Error out if inserting a
1204 software breakpoint at a read-only address.
1205 * target.c (memory_xfer_check_region): New function, factored out
1207 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1209 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1210 against the memory region attributes.
1212 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1214 * NEWS: Announce new exit-code field in -list-thread-groups
1216 * inferior.c (exit_inferior_1): Don't clear exit code.
1217 (inferior_appeared): Clear exit code.
1218 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1221 2014-10-01 Pedro Alves <palves@redhat.com>
1223 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1224 GENERATED" along with emacs/vi read-only markers.
1225 * regformats/aarch64.dat: Regenerate.
1226 * regformats/arm-with-iwmmxt.dat: Regenerate.
1227 * regformats/arm-with-neon.dat: Regenerate.
1228 * regformats/arm-with-vfpv2.dat: Regenerate.
1229 * regformats/arm-with-vfpv3.dat: Regenerate.
1230 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1231 * regformats/i386/amd64-avx.dat: Regenerate.
1232 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1233 * regformats/i386/amd64-avx512.dat: Regenerate.
1234 * regformats/i386/amd64-linux.dat: Regenerate.
1235 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1236 * regformats/i386/amd64-mpx.dat: Regenerate.
1237 * regformats/i386/amd64.dat: Regenerate.
1238 * regformats/i386/i386-avx-linux.dat: Regenerate.
1239 * regformats/i386/i386-avx.dat: Regenerate.
1240 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1241 * regformats/i386/i386-avx512.dat: Regenerate.
1242 * regformats/i386/i386-linux.dat: Regenerate.
1243 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1244 * regformats/i386/i386-mmx.dat: Regenerate.
1245 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1246 * regformats/i386/i386-mpx.dat: Regenerate.
1247 * regformats/i386/i386.dat: Regenerate.
1248 * regformats/i386/x32-avx-linux.dat: Regenerate.
1249 * regformats/i386/x32-avx.dat: Regenerate.
1250 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1251 * regformats/i386/x32-avx512.dat: Regenerate.
1252 * regformats/i386/x32-linux.dat: Regenerate.
1253 * regformats/i386/x32.dat: Regenerate.
1254 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1255 * regformats/mips-dsp-linux.dat: Regenerate.
1256 * regformats/mips-linux.dat: Regenerate.
1257 * regformats/mips64-dsp-linux.dat: Regenerate.
1258 * regformats/mips64-linux.dat: Regenerate.
1259 * regformats/nios2-linux.dat: Regenerate.
1260 * regformats/rs6000/powerpc-32.dat: Regenerate.
1261 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1262 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1263 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1264 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1265 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1266 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1267 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1268 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1269 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1270 * regformats/s390-linux32.dat: Regenerate.
1271 * regformats/s390-linux32v1.dat: Regenerate.
1272 * regformats/s390-linux32v2.dat: Regenerate.
1273 * regformats/s390-linux64.dat: Regenerate.
1274 * regformats/s390-linux64v1.dat: Regenerate.
1275 * regformats/s390-linux64v2.dat: Regenerate.
1276 * regformats/s390-te-linux64.dat: Regenerate.
1277 * regformats/s390x-linux64.dat: Regenerate.
1278 * regformats/s390x-linux64v1.dat: Regenerate.
1279 * regformats/s390x-linux64v2.dat: Regenerate.
1280 * regformats/s390x-te-linux64.dat: Regenerate.
1281 * regformats/tic6x-c62x-linux.dat: Regenerate.
1282 * regformats/tic6x-c62x.dat: Regenerate.
1283 * regformats/tic6x-c64x-linux.dat: Regenerate.
1284 * regformats/tic6x-c64x.dat: Regenerate.
1285 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1286 * regformats/tic6x-c64xp.dat: Regenerate.
1288 2014-10-01 Pedro Alves <palves@redhat.com>
1290 * features/Makefile: Update comments.
1291 (XMLTOC): List all xml files we build C files from.
1292 (clean-cfiles): New rule.
1294 2014-10-01 Pedro Alves <palves@redhat.com>
1296 * features/i386/amd64-avx512-linux.c: Regenerate.
1297 * features/i386/amd64-avx512.c: Regenerate.
1298 * features/i386/x32-avx512-linux.c: Regenerate.
1299 * features/i386/x32-avx512.c: Regenerate.
1301 2014-10-01 Pedro Alves <palves@redhat.com>
1303 * features/Makefile (WHICH): Remove arm-with-m,
1304 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1306 2014-10-01 Pedro Alves <palves@redhat.com>
1308 * features/Makefile (clean): New rule.
1310 2014-10-01 Pedro Alves <palves@redhat.com>
1312 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1313 (zmm14h): Add missing end quotes.
1315 2014-10-01 Pedro Alves <palves@redhat.com>
1317 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1318 * features/aarch64.c: Regenerate.
1320 2014-09-30 Don Breazeal <donb@codesourcery.com>
1322 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1323 code so as to work with follow_fork_inferior.
1324 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1325 (inf_ttrace_create_inferior): Remove reference to
1326 inf_ttrace_vfork_ppid.
1327 (inf_ttrace_attach): Ditto.
1328 (inf_ttrace_detach): Ditto.
1329 (inf_ttrace_kill): Use current_inferior instead of
1330 inf_ttrace_vfork_ppid.
1331 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1332 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1333 inferior away from the parent.
1334 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1336 (follow_fork_inferior): New function.
1337 (follow_inferior_reset_breakpoints): Make function static.
1338 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1339 * linux-nat.c (linux_child_follow_fork): Move target-independent
1340 code to infrun.c:follow_fork_inferior.
1342 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1344 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1345 * gdbarch.c: Regenerate.
1346 * gdbarch.h: Likewise.
1347 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1348 gdbarch method 'regset_from_core_section'.
1349 (get_core_register_section): Remove handling for the case that
1350 regset == NULL and regset_from_core_section is defined.
1351 (get_core_registers): Drop check for deleted method.
1352 * procfs.c (procfs_do_thread_registers): Adjust comment.
1354 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1357 (linux_nat_make_corefile_notes): Remove.
1358 (linux_target_install_ops): Do not set target method
1359 'make_corefile_notes'.
1360 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1362 (linux_corefile_thread_callback): Instead of args->collect, call
1363 linux_collect_thread_registers.
1364 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1365 NULL unless there is a regset iterator.
1366 (linux_make_corefile_notes_1): Remove.
1367 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1368 by linux_make_corefile_notes.
1369 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1371 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1373 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1374 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1376 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1378 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1380 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1381 (xtensa_iterate_over_regset_sections): New.
1382 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1384 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1386 * vax-tdep.c (vax_regset_from_core_section): Remove.
1387 (vax_iterate_over_regset_sections): New.
1388 (vax_gdbarch_init): Adjust gdbarch initialization.
1390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1393 (tilegx_regset_from_core_section): Remove.
1394 (tilegx_iterate_over_regset_sections): New.
1395 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1397 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1399 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1400 (sparc_iterate_over_regset_sections): New.
1401 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1402 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1404 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1405 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1406 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1407 target method 'make_corefile_notes'.
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1412 'sizeof_gregset' and 'sizeof_fpregset'.
1413 * sh-tdep.c (sh_regset_from_core_section): Remove.
1414 (sh_iterate_over_regset_sections): New.
1415 (sh_gdbarch_init): Adjust gdbarch initialization.
1416 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1418 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1424 (score7_linux_iterate_over_regset_sections): New.
1425 (score_gdbarch_init): Adjust gdbarch initialization.
1427 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1431 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1432 method 'make_corefile_notes'.
1433 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1434 (ppcfbsd_regset_from_core_section): Remove.
1435 (ppcfbsd_iterate_over_regset_sections): New.
1436 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1438 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1439 (ppcnbsd_iterate_over_regset_sections): New.
1440 (ppcnbsd_init_abi): Adjust.
1441 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1442 (ppcobsd_iterate_over_regset_sections): New.
1443 (ppcobsd_init_abi): Adjust.
1444 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1445 (rs6000_aix_iterate_over_regset_sections): New.
1446 (rs6000_aix_init_osabi): Adjust.
1448 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1450 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1451 (nios2_regset_from_core_section): Remove.
1452 (nios2_iterate_over_regset_sections): New.
1453 (nios2_linux_init_abi): Adjust gdbarch initialization.
1455 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1457 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1458 (am33_iterate_over_regset_sections): New.
1459 (am33_linux_init_osabi): Adjust gdbarch initialization.
1461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1463 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1464 (mips_linux_iterate_over_regset_sections): New.
1465 (mips_linux_init_abi): Adjust gdbarch initialization.
1466 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1467 (mips64obsd_iterate_over_regset_sections): New.
1468 (mips64obsd_init_abi): Adjust.
1469 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1470 (mipsnbsd_iterate_over_regset_sections): New.
1471 (mipsnbsd_init_abi): Adjust.
1473 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1476 (m88k_iterate_over_regset_sections): New.
1477 (m88k_gdbarch_init): Adjust gdbarch initialization.
1479 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1481 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1482 (ia64_linux_iterate_over_regset_sections): New.
1483 (ia64_linux_init_abi): Adjust gdbarch initialization.
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1488 (m68kbsd_iterate_over_regset_sections): New.
1489 (m68kbsd_init_abi): Adjust gdbarch initialization.
1490 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1491 (m68k_linux_iterate_over_regset_sections): New.
1492 (m68k_linux_init_abi): Adjust gdbarch initialization.
1494 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1496 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1497 (m32r_linux_regset_from_core_section): Remove.
1498 (m32r_linux_iterate_over_regset_sections): New.
1499 (m32r_linux_init_abi): Adjust gdbarch initialization.
1501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1504 (amd64obsd_iterate_over_regset_sections): New.
1505 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1506 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1508 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1509 regset_from_core_section initialization.
1510 * i386-tdep.c (i386_regset_from_core_section): Remove.
1511 (i386_iterate_over_regset_sections): New.
1512 (i386_gdbarch_init): Adjust gdbarch initialization.
1513 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1514 (i386_iterate_over_regset_sections): New prototype.
1515 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1517 (i386obsd_aout_iterate_over_regset_sections): New.
1518 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1519 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1521 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1522 (amd64fbsd_init_abi): Call fbsd_init_abi.
1523 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1524 (i386fbsd4_init_abi): Call fbsd_init_abi.
1525 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1526 target method 'make_corefile_notes'.
1527 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1529 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1531 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1532 (hppa_hpux_iterate_over_regset_sections): New.
1533 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1534 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1535 (hppa_linux_iterate_over_regset_sections): New.
1536 (hppa_linux_init_abi): Adjust.
1537 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1538 (hppanbsd_iterate_over_regset_sections): New.
1539 (hppanbsd_init_abi): Adjust.
1540 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1541 (hppaobsd_iterate_over_regset_sections): New.
1542 (hppaobsd_init_abi): Adjust.
1544 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1546 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1547 (frv_linux_iterate_over_regset_sections): New.
1548 (frv_linux_init_abi): Adjust gdbarch initialization.
1550 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1552 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1553 (armbsd_iterate_over_regset_sections): New prototype.
1554 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1555 (armbsd_iterate_over_regset_sections): New.
1556 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1561 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1562 (alpha_linux_iterate_over_regset_sections): New.
1563 (alpha_linux_init_abi): Adjust gdbarch initialization.
1564 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1566 (alphanbsd_iterate_over_regset_sections): New prototype.
1568 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1570 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1572 (aarch64_linux_iterate_over_regset_sections): New.
1573 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1577 * fbsd-tdep.c: New file.
1578 * fbsd-tdep.h: New file.
1579 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1580 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1581 (ALLDEPFILES): Add fbsd-tdep.c.
1583 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1585 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1587 * gdbarch.h: Regenerate.
1588 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1590 (get_core_register_section): Add parameter 'regset' and use it, if
1591 set. Add parameter 'min_size' and verify the bfd section size
1593 (get_core_registers_cb): Add parameter 'regset' and pass it to
1594 get_core_register section. For the "standard" register sections
1595 ".reg" and ".reg2", set an appropriate default for human_name.
1596 (get_core_registers): Don't abort when the gdbarch has an iterator
1597 but no regset_from_core_section. Add NULL/0 for parameters
1598 'regset'/'min_size' in calls to get_core_register_section.
1599 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1600 'regset' and use it instead of calling the
1601 regset_from_core_section gdbarch method.
1602 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1603 * i386-tdep.c (i386_supply_xstateregset)
1604 (i386_collect_xstateregset, i386_xstateregset): Moved to
1606 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1608 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1609 core file support only if the regset iterator hasn't been set.
1610 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1611 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1612 Moved from i386-tdep.c and renamed to *_linux*.
1613 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1614 each callback invocation. Allow any .reg-xstate size when reading
1616 * amd64-tdep.c (amd64_supply_xstateregset)
1617 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1619 (amd64_regset_from_core_section): Remove.
1620 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1621 install an amd64-specific regset_from_core_section gdbarch method.
1622 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1623 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1624 Moved from amd64-tdep.c and renamed to *_linux*.
1625 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1626 to each callback invocation. Allow any .reg-xstate size when
1627 reading from a core file.
1628 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1629 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1630 each callback invocation.
1631 (arm_linux_init_abi): No longer set the regset_from_core_section
1633 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1634 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1635 each callback invocation.
1636 (ppc_linux_init_abi): No longer set the regset_from_core_section
1638 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1639 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1640 (s390_regset_from_core_section): Remove.
1641 (s390_iterate_over_regset_sections): Add regset parameter to each
1642 callback invocation.
1643 (s390_gdbarch_init): No longer set the regset_from_core_section
1644 gdbarch method. Drop initialization of deleted tdep fields.
1646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1648 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1649 (amd64_linux_iterate_over_regset_sections): New.
1650 (amd64_linux_init_abi_common): Don't install the regset section
1651 list, but the new iterator in gdbarch.
1652 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1653 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1654 (arm_linux_iterate_over_regset_sections): ...here. New function.
1655 (arm_linux_init_abi): Set iterator instead of section list.
1656 * corelow.c (get_core_registers_cb): New function, logic moved
1658 (get_core_registers): ...loop body here. Use new iterator method
1659 instead of walking through the regset section list.
1660 * gdbarch.sh: Remove 'core_regset_sections'. New method
1661 'iterate_over_regset_sections'. New typedef
1662 'iterate_over_regset_sections_cb'.
1663 * gdbarch.c: Regenerate.
1664 * gdbarch.h: Likewise.
1665 * i386-linux-tdep.c (i386_linux_regset_sections)
1666 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1668 (i386_linux_iterate_over_regset_sections): New.
1669 (i386_linux_init_abi): Don't choose a regset section list, but
1670 install new iterator in gdbarch.
1671 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1672 (linux_collect_regset_section_cb): New function, logic moved
1674 (linux_collect_thread_registers): ...loop body here. Use iterator
1675 method instead of walking through list.
1676 (linux_make_corefile_notes_1): Check for presence of iterator
1677 method instead of regset section list.
1678 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1679 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1680 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1681 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1682 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1683 (ppc_linux_init_abi): Don't choose from above regset section
1684 lists, but install new iterator in gdbarch.
1685 * regset.h (struct core_regset_section): Remove.
1686 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1687 have_linux_v1, have_linux_v2, and have_tdb.
1688 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1689 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1690 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1691 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1692 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1693 (s390_iterate_over_regset_sections): ...here. New function. Use
1695 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1696 regset section lists, but install new iterator.
1698 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1700 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1702 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1704 * progspace.c (print_program_space): Don't prune program spaces
1705 before printing them.
1707 2014-09-25 Pedro Alves <palves@redhat.com>
1709 * infrun.c (user_visible_resume_ptid): Don't check
1710 singlestep_breakpoints_inserted_p.
1712 2014-09-25 Pedro Alves <palves@redhat.com>
1714 * breakpoint.c (should_be_inserted): Add debug output.
1716 2014-09-25 Pedro Alves <palves@redhat.com>
1718 * infrun.c (stepping_past_instruction_at)
1719 (clear_exit_convenience_vars): Point at infrun.h instead of
1721 (handle_signal_stop): Fix typo.
1723 2014-09-24 Yao Qi <yao@codesourcery.com>
1725 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1728 2014-09-22 Gary Benson <gbenson@redhat.com>
1730 * target.c (target_stop): Updated comment.
1732 2014-09-22 Gary Benson <gbenson@redhat.com>
1734 * target/target.h (target_stop_ptid): Renamed as...
1735 (target_stop_and_wait): New function. Updated comment.
1737 (target_continue_ptid): Renamed as...
1738 (target_continue_no_signal): New function. Updated comment.
1741 2014-09-22 Pedro Alves <palves@redhat.com>
1743 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1745 * breakpoint.c (enum ugll_insert_mode): New enum.
1746 (always_inserted_mode): Now a plain boolean.
1747 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1748 (breakpoints_always_inserted_mode): Delete.
1749 (breakpoints_should_be_inserted_now): New function.
1750 (insert_breakpoints): Pass UGLL_INSERT to
1751 update_global_location_list instead of calling
1752 insert_breakpoint_locations manually.
1753 (create_solib_event_breakpoint_1): New, factored out from ...
1754 (create_solib_event_breakpoint): ... this.
1755 (create_and_insert_solib_event_breakpoint): Use
1756 create_solib_event_breakpoint_1 instead of calling
1757 insert_breakpoint_locations manually.
1758 (update_global_location_list): Change parameter type from boolean
1759 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1760 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1761 (update_global_location_list_nothrow): Change parameter type from
1762 boolean to enum ugll_insert_mode.
1763 (_initialize_breakpoint): "breakpoint always-inserted" option is
1764 now a boolean command. Update help text.
1765 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1766 (breakpoints_should_be_inserted_now): New declaration.
1767 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1768 Remove breakpoints_always_inserted_mode check.
1769 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1770 * remote.c (remote_start_remote): Likewise.
1772 2014-09-22 Pedro Alves <palves@redhat.com>
1774 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1775 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1776 Instead, pass UGLL_INSERT to update_global_location_list.
1777 (update_global_location_list): Change parameter type from boolean
1778 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1779 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1780 (create_solib_event_breakpoint_1): New, factored out from ...
1781 (create_solib_event_breakpoint): ... this.
1782 (create_and_insert_solib_event_breakpoint): Use
1783 create_solib_event_breakpoint_1 instead of calling
1784 insert_breakpoint_locations manually.
1785 (update_global_location_list): Handle UGLL_INSERT.
1787 2014-09-22 Pedro Alves <palves@redhat.com>
1789 * breakpoint.c (enum ugll_insert_mode): New enum.
1790 (update_global_location_list)
1791 (update_global_location_list_nothrow): Change parameter type from
1792 boolean to enum ugll_insert_mode. All callers adjusted.
1794 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1796 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1797 SystemTap support in GDB.
1799 2014-09-19 Don Breazeal <donb@codesourcery.com>
1801 * linux-nat.c (linux_handle_extended_wait): Call
1802 linux_ptrace_get_extended_event.
1803 (wait_lwp): Call linux_is_extended_waitstatus.
1804 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1805 and linux_is_extended_waitstatus.
1806 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1807 linux_ptrace_get_extended_event.
1808 (linux_ptrace_get_extended_event): New function.
1809 (linux_is_extended_waitstatus): New function.
1810 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1811 (linux_is_extended_waitstatus): New declarations.
1813 2014-09-19 Yao Qi <yao@codesourcery.com>
1815 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1816 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1817 comments. Callers update.
1818 (dwarf_decode_lines): Likewise.
1819 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1820 comments. Skip the line table if 'lowpc' is greater than
1821 'address'. Don't check
1822 dwarf2_per_objfile->has_section_at_zero.
1824 2014-09-18 Doug Evans <dje@google.com>
1826 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1827 * python/py-symtab.c (stpy_get_producer): New function.
1828 (symtab_object_getset): Add "producer" attribute.
1830 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1833 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1834 (do_captured_read_memory_integer): Remove.
1835 (safe_read_memory_integer): Use target_read_memory directly instead
1836 of catching errors in do_captured_read_memory_integer.
1838 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1840 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1843 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1845 * objc-lang.c (find_implementation_from_class): Remove dead code.
1847 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1850 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1851 "fprintf_unfiltered (gdb_stdlog...)".
1853 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1855 PR breakpoints/12526
1856 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1858 * breakpoint.c (watch_command_1): Use these fields to retain
1859 bitfield information.
1860 (extract_bitfield_from_watchpoint_value): New function.
1861 (watchpoint_check): Use it.
1862 (update_watchpoint): Use it. Optimize the address and length of a
1863 HW watchpoint pointing to a bitfield.
1864 * value.h (unpack_value_bitfield): New prototype.
1865 * value.c (unpack_value_bitfield): Make extern.
1867 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1869 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1871 * gnu-nat.c (inf_threads): New function.
1872 * gnu-nat.h (inf_threads_ftype): New typedef.
1873 (inf_threads): New declaration.
1874 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1875 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1876 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1877 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1878 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1879 (i386_gnu_dr_get_control): New functions.
1880 (reg_addr): New structure.
1881 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1882 i386 debugging register hooks.
1883 * NEWS: Mention this.
1885 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1887 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1888 vector data transfer instructions.
1889 (arm_record_coproc_data_proc): Updated.
1891 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1893 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1894 arm_record_exreg_ld_st_insn.
1895 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1898 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1900 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1901 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1902 processing instructions.
1904 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1906 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1907 for advance SIMD struct ld/st insn.
1908 (thumb2_record_decode_insn_handler): Replace stub handler with
1909 thumb2_record_asimd_struct_ld_st.
1911 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1913 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1914 for asimd, vfp and coprocessor insns.
1915 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1916 and coprocessor insns.
1917 (thumb2_record_coproc_insn): New function.
1918 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1920 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1923 2014-09-13 Doug Evans <xdje42@gmail.com>
1925 * NEWS: Mention new "queue-signal" command.
1926 * infcmd.c (queue_signal_command): New function.
1927 (_initialize_infcmd): Add new queue-signal command.
1929 2014-09-13 Doug Evans <xdje42@gmail.com>
1931 * linux-nat.c (wait_lwp): Add debugging printf.
1932 (linux_nat_wait_1): Ditto.
1934 2014-09-12 Pedro Alves <palves@redhat.com>
1936 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1937 (create_and_insert_solib_event_breakpoint): New functions.
1938 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1939 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1940 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1941 (remove_dbx_link_breakpoint): Delete function.
1942 (insert_dbx_link_bpt_in_file): Use
1943 create_and_insert_solib_event_breakpoint instead of
1944 deprecated_insert_raw_breakpoint.
1945 (procfs_wait): Don't check whether we hit __dbx_link here.
1946 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1948 * solib-irix.c (base_breakpoint): Delete global.
1949 (disable_break): Delete function.
1950 (enable_break): Use create_solib_event_breakpoint
1951 instead of deprecated_insert_raw_breakpoint.
1952 (irix_solib_handle_event): New function.
1953 (irix_solib_create_inferior_hook): Don't run the target or disable
1954 the mapping-complete breakpoint here.
1955 (_initialize_irix_solib): Install irix_solib_handle_event as
1956 so_ops->handle_event hook.
1958 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1959 Ulrich Weigand <uweigand@de.ibm.com>
1962 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1963 instead of read_memory_unsigned_integer.
1965 2014-09-12 Gary Benson <gbenson@redhat.com>
1967 * nat/linux-waitpid.c: Include common-defs.h.
1968 [GDBSERVER]: Add FIXME comment.
1969 [!GDBSERVER]: Don't include defs.h or signal.h.
1970 (linux_debug) [!GDBSERVER]: Remove empty block.
1972 2014-09-12 Gary Benson <gbenson@redhat.com>
1974 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1975 Don't include defs.h or server.h.
1977 2014-09-12 Gary Benson <gbenson@redhat.com>
1979 * nat/linux-btrace.c: Include common-defs.h.
1980 Don't include defs.h, server.h or gdbthread.h.
1981 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1983 2014-09-12 Gary Benson <gbenson@redhat.com>
1985 * common/agent.c: Include common-defs.h.
1986 Don't include defs.h or server.h.
1987 * common/buffer.c: Likewise.
1988 * common/common-debug.c: Likewise.
1989 * common/common-utils.c: Likewise.
1990 * common/errors.c: Likewise.
1991 * common/filestuff.c: Likewise.
1992 * common/format.c: Likewise.
1993 * common/gdb_vecs.c: Likewise.
1994 * common/print-utils.c: Likewise.
1995 * common/ptid.c: Likewise.
1996 * common/rsp-low.c: Likewise.
1997 * common/signals.c: Likewise.
1998 * common/vec.c: Likewise.
1999 * common/xml-utils.c: Likewise.
2000 * nat/linux-osdata.c: Likewise.
2001 * nat/linux-procfs.c: Likewise.
2002 * nat/linux-ptrace.c: Likewise.
2003 * nat/mips-linux-watch.c: Likewise.
2004 * target/waitstatus.c: Likewise.
2006 2014-09-12 Tom Tromey <tromey@redhat.com>
2007 Gary Benson <gbenson@redhat.com>
2009 * common/common-regcache.h: New file.
2010 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2011 * regcache.h: Include common-regcache.h.
2012 (regcache_read_pc): Don't declare.
2013 * regcache.c (get_thread_regcache_for_ptid): New function.
2014 * nat/linux-btrace.c: Don't include regcache.h.
2015 Include common-regcache.h.
2016 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2018 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2020 * regcache.h (struct regset): Declare.
2022 2014-09-11 Pedro Alves <palves@redhat.com>
2025 * main.c: Include "infrun.h".
2026 (catch_command_errors, catch_command_errors_const): Wait for the
2027 foreground command to complete.
2028 * top.c (maybe_wait_sync_command_done): New function, factored out
2030 (maybe_wait_sync_command_done): ... here.
2031 * top.h (maybe_wait_sync_command_done): New declaration.
2033 2014-09-11 Tom Tromey <tromey@redhat.com>
2034 Gary Benson <gbenson@redhat.com>
2036 * common/symbol.h: New file.
2037 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2038 * minsyms.c (find_minimal_symbol_address): New function.
2039 * common/agent.c: Include common/symbol.h.
2040 [!GDBSERVER]: Don't include objfiles.h.
2041 (agent_look_up_symbols): Use find_minimal_symbol_address.
2043 2014-09-11 Gary Benson <gbenson@redhat.com>
2045 * target/target.h (target_stop_ptid, target_continue_ptid):
2047 * target.c (target_stop_ptid, target_continue_ptid): New
2049 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2050 (agent_run_command): Always use target_stop_ptid and
2051 target_continue_ptid.
2053 2014-09-11 Tom Tromey <tromey@redhat.com>
2054 Gary Benson <gbenson@redhat.com>
2056 * target/target.h: New file.
2057 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2058 * target.h: Include target/target.h.
2059 (target_read_memory, target_write_memory): Don't declare.
2060 * target.c (target_read_uint32): New function.
2061 * common/agent.c: Include target/target.h.
2062 [!GDBSERVER]: Don't include target.h.
2063 (helper_thread_id): Type changed to uint32_t.
2064 (agent_get_helper_thread_id): Use target_read_uint32.
2065 (agent_run_command): Always use target_read_memory and
2066 target_write_memory.
2067 (agent_capability): Type changed to uint32_t.
2068 (agent_capability_check): Use target_read_uint32.
2070 2014-09-11 Gary Benson <gbenson@redhat.com>
2072 * common/common-debug.h (show_debug_regs): Declare.
2073 * common/common-debug.c (show_debug_regs): Define.
2074 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2075 all uses with show_debug_regs. Replace all uses that considered
2076 debug_hw_points as a multi-value integer with straight boolean
2078 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2079 with show_debug_regs.
2080 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2081 all uses with show_debug_regs.
2082 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2083 uses with show_debug_regs.
2085 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2087 * findvar.c (address_from_register): Handle targets requiring
2088 a special conversion routine even for plain pointer types.
2090 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2092 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2093 (store_register): Do not call exec_one_dummy_insn.
2095 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2097 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2098 dereference it first. Use value_enclosing_type instead of
2100 (ada_array_length): Likewise.
2102 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2104 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2105 Adjust function implementation and documentation accordingly.
2106 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2107 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2108 Update call to ada_value_ptr_subscript.
2110 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2112 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2113 instead of VAL's type.
2115 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2117 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2119 2014-09-09 Doug Evans <xdje42@gmail.com>
2122 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2123 last parameter to pkg-config, not first.
2124 * configure.ac: Pass --with-guile provided pkg-config path to
2125 GDB_GUILE_PROGRAM_NAMES.
2126 * configure: Regenerate.
2128 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2130 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2133 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2135 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2136 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2137 the list of sections determining GDB_OSABI_IRIX.
2139 2014-09-09 James Hogan <james.hogan@imgtec.com>
2141 * MAINTAINERS (Write After Approval): Add "James Hogan".
2143 2014-09-09 James Hogan <james.hogan@imgtec.com>
2145 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2147 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2149 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2151 2014-09-08 Doug Evans <xdje42@gmail.com>
2154 * guile.c: #include <signal.h>.
2155 (_initialize_guile): Block SIGCHLD while initializing Guile.
2157 Replaces the following, which is reverted.
2159 2014-07-26 Doug Evans <xdje42@gmail.com>
2162 * configure.ac: Add check for header gc/gc.h.
2163 Add check for function setenv.
2164 * configure: Regenerate.
2165 * config.in: Regenerate.
2166 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2168 2014-09-08 Doug Evans <xdje42@gmail.com>
2170 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2171 with named constant. Fix style of pointer comparison.
2172 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2174 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2177 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2178 decide whether we display the command on "show user".
2179 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2180 printing command name.
2181 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2182 * cli/cli-decode.c (cli_user_command_p): Create helper function
2183 to verify whether cmd_list_element is a user-defined command.
2185 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2188 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2189 Fix goto out of TRY_CATCH.
2191 2014-09-06 Doug Evans <xdje42@gmail.com>
2192 Tom Tromey <tromey@redhat.com>
2195 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2196 $_any_caller_matches.
2197 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2198 * python/lib/gdb/function/caller_is.py: New file.
2200 2014-09-06 Doug Evans <xdje42@gmail.com>
2202 * infcmd.c (program_info): Fix typo.
2204 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2207 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2208 'number'. New variable 'has_digit'. Rewrite code to deal with
2209 subexpressions on SDT probes.
2211 2014-09-04 Pedro Alves <palves@redhat.com>
2213 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2214 the input is only one character long.
2216 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2219 * f-valprint.c (f_val_print): Specify the correct print option to
2220 use when printing integer values.
2222 2014-09-04 Gary Benson <gbenson@redhat.com>
2224 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2225 Remove code to cope with LWPs wrapped as PIDs.
2226 Add assertions to ensure no wrapped LWPs are passed.
2228 2014-09-04 Pedro Alves <palves@redhat.com>
2230 * value.c (value_ranges_copy_adjusted): New function, factored out
2232 (value_contents_copy_raw): ... here.
2233 (unpack_value_bits_as_long_1): Rename back to ...
2234 (unpack_bits_as_long): ... this. Remove 'original_value' and
2235 'result' parameters. Change return type to LONGEST.
2236 (unpack_value_bits_as_long): Delete.
2237 (unpack_value_field_as_long_1): Delete.
2238 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2239 (unpack_value_bitfield): New function.
2240 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2241 (value_fetch_lazy): Use unpack_value_bitfield.
2242 * value.h (unpack_value_bits_as_long): Delete declaration.
2244 2014-09-03 Sasha Smundak <asmundak@google.com>
2246 * python/py-frame.c (frapy_read_register): New function.
2248 2014-09-03 James Hogan <james.hogan@imgtec.com>
2250 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2251 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2253 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2256 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2258 (add_cmd): Set "completer_handle_brkchars" to NULL.
2259 * cli/cli-decode.h (struct cmd_list_element)
2260 <completer_handle_brkchars>: New field.
2261 * command.h (completer_ftype_void): New typedef.
2262 (set_cmd_completer_handle_brkchars): New prototype.
2263 * completer.c (set_gdb_completion_word_break_characters): New
2265 (complete_line_internal): Call "completer_handle_brkchars"
2266 callback from command.
2267 * completer.h: Include "command.h".
2268 (set_gdb_completion_word_break_characters): New prototype.
2269 * python/py-cmd.c (cmdpy_completer_helper): New function.
2270 (cmdpy_completer_handle_brkchars): New function.
2271 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2272 (cmdpy_init): Set completer_handle_brkchars to
2273 cmdpy_completer_handle_brkchars.
2275 2014-09-03 Gary Benson <gbenson@redhat.com>
2277 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2278 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2279 Loop conditions changed to equivalent form.
2280 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2281 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2282 ALL_DEBUG_ADDRESS_REGISTERS.
2284 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2286 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2289 2014-09-02 Doug Evans <dje@google.com>
2291 * typeprint.c (find_global_typedef): Fix comment.
2293 2014-09-02 Gary Benson <gbenson@redhat.com>
2295 * i386-nat.h: Renamed as...
2296 * x86-nat.h: New file. All type, function and variable name
2297 prefixes changed from "i386_" to "x86_". All references updated.
2298 * i386-nat.c: Renamed as...
2299 * x86-nat.c: New file. All type, function and variable name
2300 prefixes changed from "i386_" to "x86_". All references updated.
2301 * common/i386-xstate.h: Renamed as...
2302 * common/x86-xstate.h: New file. All type, function and variable
2303 name prefixes changed from "i386_" to "x86_". All references
2305 * nat/i386-cpuid.h: Renamed as...
2306 * nat/x86-cpuid.h: New file. All type, function and variable name
2307 prefixes changed from "i386_" to "x86_". All references updated.
2308 * nat/i386-gcc-cpuid.h: Renamed as...
2309 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2310 name prefixes changed from "i386_" to "x86_". All references
2312 * nat/i386-dregs.h: Renamed as...
2313 * nat/x86-dregs.h: New file. All type, function and variable name
2314 prefixes changed from "i386_" to "x86_". All references updated.
2315 * nat/i386-dregs.c: Renamed as...
2316 * nat/x86-dregs.c: New file. All type, function and variable name
2317 prefixes changed from "i386_" to "x86_". All references updated.
2319 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2321 * varobj.c (_initialize_varobj): Move to the end of file.
2323 2014-08-29 Gary Benson <gbenson@redhat.com>
2325 * common/common-exceptions.h: New file.
2326 * common/common-exceptions.c: Likewise.
2327 * Makefile.in (SFILES): Add common/common-exceptions.c.
2328 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2329 (COMMON_OBS): Add common-exceptions.o.
2330 (common-exceptions.o): New rule.
2331 * exceptions.h (common-exceptions.h): Include.
2332 (gdb_setjmp.h): Do not include.
2333 (return_reason): Moved to common-exceptions.h.
2334 (enum return_reason): Likewise.
2335 (RETURN_MASK): Likewise.
2336 (typedef return_mask): Likewise.
2337 (enum errors): Likewise.
2338 (struct gdb_exception): Likewise.
2339 (exceptions_state_mc_init): Likewise.
2340 (exceptions_state_mc_action_iter): Likewise.
2341 (exceptions_state_mc_action_iter_1): Likewise.
2342 (TRY_CATCH): Likewise.
2343 (throw_exception): Likewise.
2344 (throw_verror): Likewise.
2345 (throw_vquit): Likewise.
2346 (throw_error): Likewise.
2347 (throw_quit): Likewise.
2348 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2349 (enum catcher_action): Likewise.
2350 (struct catcher): Likewise.
2351 (current_catcher): Likewise.
2352 (catcher_list_size): Likewise.
2353 (exceptions_state_mc_init): Likewise.
2354 (catcher_pop): Likewise.
2355 (exceptions_state_mc): Likewise.
2356 (exceptions_state_mc_action_iter): Likewise.
2357 (exceptions_state_mc_action_iter_1): Likewise.
2358 (throw_exception): Likewise.
2359 (exception_messages): Likewise.
2360 (exception_messages_size): Likewise.
2361 (throw_it): Likewise.
2362 (throw_verror): Likewise.
2363 (throw_vquit): Likewise.
2364 (throw_error): Likewise.
2365 (throw_quit): Likewise.
2366 (prepare_to_throw_exception): New function.
2368 2014-08-29 Gary Benson <gbenson@redhat.com>
2370 * common/gdb_setjmp.h: New file.
2371 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2372 * configure.ac: Move sigsetjmp check...
2373 * common/common.m4: ...here.
2374 * configure: Regenerate.
2375 * cp-support.c (SIGJMP_BUF): Delete.
2376 (SIGSETJMP): Likewise.
2377 (SIGLONGJMP): Likewise.
2378 * exceptions.h (gdb_setjmp.h): Include.
2379 (setjmp.h): Do not include.
2380 (EXCEPTIONS_SIGJMP_BUF): Delete.
2381 (EXCEPTIONS_SIGSETJMP): Likewise.
2382 (EXCEPTIONS_SIGLONGJMP): Likewise.
2383 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2385 * exceptions.c: Likewise.
2387 2014-08-29 Gary Benson <gbenson@redhat.com>
2389 * cleanups.h: Moved to...
2390 * common/cleanups.h: New file.
2391 * cleanups.c: Moved to...
2392 * common/cleanups.c: New file. Include common-defs.h and
2393 cleanups.h. Do not include defs.h.
2394 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2395 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2396 (cleanups.o): New rule.
2398 2014-08-29 Gary Benson <gbenson@redhat.com>
2400 * common/errors.h (internal_warning): New declaration.
2401 (internal_vwarning): Likewise.
2402 * common/errors.c (internal_warning): New function.
2403 * utils.h (internal_warning): Don't declare.
2404 (internal_vwarning): Likewise.
2405 * utils.c (internal_warning): Removed.
2407 2014-08-29 Gary Benson <gbenson@redhat.com>
2409 * main.c (captured_main): Use warning during startup.
2410 Prefix startup warning messages with command name.
2412 2014-08-29 Gary Benson <gbenson@redhat.com>
2414 * main.c (captured_main): Handle usage errors with error.
2416 2014-08-29 Gary Benson <gbenson@redhat.com>
2418 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2419 exit pair with a call to error. Wrap the message with _().
2421 2014-08-29 Gary Benson <gbenson@redhat.com>
2423 * main.c (captured_main): Replace a fprintf/exit
2424 pair with a call to error. Wrap the message with _().
2426 2014-08-29 Gary Benson <gbenson@redhat.com>
2428 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2429 pairs with calls to error. Wrap the message with _().
2431 2014-08-29 Gary Benson <gbenson@redhat.com>
2433 * utils.c (vwarning): Protect calls to target_terminal_ours
2436 2014-08-29 Gary Benson <gbenson@redhat.com>
2438 * exceptions.c (print_flush): Protect calls to
2439 target_terminal_ours and wrap_here.
2441 2014-08-29 Gary Benson <gbenson@redhat.com>
2443 * utils.h (filtered_printing_initialized): New declaration.
2444 * utils.c (abort_with_message): New function.
2445 (internal_vproblem): Use abort_with_message for first level
2446 recursive internal problems, and if gdb_stderr is not set up.
2447 Protect calls to target_terminal_ours, begin_line and query.
2449 2014-08-28 Doug Evans <dje@google.com>
2451 * symtab.c (in_prologue): Move definition to better spot.
2452 (skip_prologue_using_sal): Ditto.
2454 2014-08-28 Doug Evans <dje@google.com>
2456 * symtab.c (find_function_start_sal): Move definition to better spot.
2458 2014-08-28 Yao Qi <yao@codesourcery.com>
2460 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2461 found_stack_adjust in forward scan. Remove condition check
2462 on found_stack_adjust which is always true. Indent the code.
2464 2014-08-28 Yao Qi <yao@codesourcery.com>
2466 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2467 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2468 (dwarf_decode_lines): Remove argument
2469 want_line_info. Remove condition check on want_line_info.
2472 2014-08-27 Doug Evans <dje@google.com>
2474 * dwarf2read.c (dwarf_record_line): Fix typo.
2476 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2478 * target.h (struct target_ops::to_terminal_save_ours): Remove
2480 (target_terminal_save_ours): Remove macro.
2481 * target-delegates.c: Regenerate.
2482 * inf-child.c (inf_child_target): Don't set the nonexistent
2483 field to_terminal_save_ours.
2484 * inferior.h (child_terminal_save_ours): Remove declaration.
2485 * terminal.h (gdb_save_tty_state): New declaration.
2486 * inflow.c (child_terminal_save_ours): Rename to ...
2487 (gdb_save_tty_state): ... this.
2488 * tui/tui.c: Include terminal.h.
2489 (tui_enable): Use gdb_save_tty_state instead of
2490 target_terminal_save_ours.
2491 (tui_disable): Likewise.
2493 2014-08-25 Doug Evans <dje@google.com>
2495 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2496 Pass NULL instead of 0 for context pointer.
2498 2014-08-25 Yao Qi <yao@codesourcery.com>
2500 * dwarf2read.c: Fix grammatical error.
2502 2014-08-24 Yao Qi <yao@codesourcery.com>
2504 * dwarf2read.c (scan_partial_symbols): Update comments.
2505 Rename argument 'need_pc' with 'set_addrmap'.
2506 (add_partial_namespace): Rename argument 'need_pc' with
2508 (add_partial_module): Likewise.
2509 (add_partial_subprogram): Likewise. Update comments.
2510 (dwarf2_name): Fix typo.
2512 2014-08-22 Doug Evans <dje@google.com>
2515 * dwarf2read.c (dwarf_record_line_p): New function.
2516 (dwarf_decode_lines_1): Ignore subsequent line number entries
2517 for the same line if any entry had a non-zero discriminator.
2519 2014-08-22 Doug Evans <dje@google.com>
2521 * buildsym.h (record_line_ftype): New typedef.
2522 (record_line): Use it.
2523 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2524 (dwarf_decode_lines_1): Call them.
2526 2014-08-22 Yao Qi <yao@codesourcery.com>
2528 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2529 (ctf_end): Remove code.
2531 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2533 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2534 (linux_make_corefile_notes): call update_thread_list, protected against
2537 2014-08-21 Pedro Alves <palves@redhat.com>
2539 * infcmd.c (attach_command): Remove comment.
2541 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2543 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2544 unsigned LONGEST to ULONGEST.
2546 2014-08-20 Pedro Alves <palves@redhat.com>
2548 * Makefile.in (check-read1): New rule.
2550 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2552 * value.c (value_from_contents_and_address): Strip resolved_type's
2553 typedef layers before checking its TYPE_DATA_LOCATION.
2555 2014-08-20 Pedro Alves <palves@redhat.com>
2557 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2559 2014-08-20 Yao Qi <yao@codesourcery.com>
2561 * amd64-tdep.c (amd64_classify): Add a blank line after the
2562 example. Move "*/" to a new line.
2563 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2564 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2565 * dwarf2read.c (psymtab_include_file_name): Likewise.
2567 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2568 Pedro Alves <palves@redhat.com>
2572 * ada-lang.c (coerce_unspec_val_to_type): Use
2573 value_contents_copy_raw.
2574 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2575 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2576 * cp-valprint.c (cp_print_value_fields): Let the common printing
2577 code handle optimized out values.
2578 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2579 * d-valprint.c (dynamic_array_type): Use
2580 value_bits_any_optimized_out.
2581 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2582 check_any_valid fields.
2583 (check_pieced_value_bits): Delete and inline ...
2584 (check_pieced_synthetic_pointer): ... here.
2585 (check_pieced_value_validity): Delete.
2586 (check_pieced_value_invalid): Delete.
2587 (pieced_value_funcs): Remove check_validity and check_any_valid
2589 (read_pieced_value): Use mark_value_bits_optimized_out.
2590 (write_pieced_value): Switch to use
2591 mark_value_bytes_optimized_out.
2592 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2593 of assuming the whole value is optimized out.
2594 * findvar.c (read_frame_register_value): Remove special handling
2595 of optimized out registers.
2596 (value_from_register): Use mark_value_bytes_optimized_out.
2597 * frame-unwind.c (frame_unwind_got_optimized): Use
2598 mark_value_bytes_optimized_out.
2599 * jv-valprint.c (java_value_print): Adjust.
2600 (java_print_value_fields): Let the common printing code handle
2601 optimized out values.
2602 * mips-tdep.c (mips_print_register): Remove special handling of
2603 optimized out registers.
2604 * opencl-lang.c (lval_func_check_validity): Delete.
2605 (lval_func_check_any_valid): Delete.
2606 (opencl_value_funcs): Remove check_validity and check_any_valid
2608 * p-valprint.c (pascal_object_print_value_fields): Let the common
2609 printing code handle optimized out values.
2610 * stack.c (read_frame_arg): Remove special handling of optimized
2611 out values. Fetch both VAL and ENTRYVAL before comparing
2612 contents. Adjust to value_available_contents_eq rename.
2613 * valprint.c (valprint_check_validity)
2614 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2615 (val_print_array_elements): Adjust.
2616 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2617 (value_bits_any_optimized_out): New function.
2618 (value_entirely_covered_by_range_vector): New function, factored
2619 out from value_entirely_unavailable.
2620 (value_entirely_unavailable): Reimplement.
2621 (value_entirely_optimized_out): New function.
2622 (insert_into_bit_range_vector): New function, factored out from
2623 mark_value_bits_unavailable.
2624 (mark_value_bits_unavailable): Reimplement.
2625 (struct ranges_and_idx): New struct.
2626 (find_first_range_overlap_and_match): New function, factored out
2627 from value_available_contents_bits_eq.
2628 (value_available_contents_bits_eq): Rename to ...
2629 (value_contents_bits_eq): ... this. Check both unavailable
2630 contents and optimized out contents.
2631 (value_available_contents_eq): Rename to ...
2632 (value_contents_eq): ... this.
2633 (allocate_value_lazy): Remove reference to the old optimized_out
2635 (allocate_optimized_out_value): Use
2636 mark_value_bytes_optimized_out.
2637 (require_not_optimized_out): Adjust to check whether the
2638 optimized_out vec is empty.
2639 (ranges_copy_adjusted): New function, factored out from
2640 value_contents_copy_raw.
2641 (value_contents_copy_raw): Also copy the optimized out ranges.
2642 Assert the destination ranges aren't optimized out.
2643 (value_contents_copy): Update comment, remove call to
2644 require_not_optimized_out.
2645 (value_contents_equal): Adjust to check whether the optimized_out
2647 (set_value_optimized_out, value_optimized_out_const): Delete.
2648 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2650 (value_entirely_optimized_out, value_bits_valid): Delete.
2651 (value_copy): Take a VEC copy of the 'optimized_out' field.
2652 (value_primitive_field): Remove special handling of optimized out.
2653 (value_fetch_lazy): Assert that lazy values have no unavailable
2654 regions. Use value_bits_any_optimized_out. Remove some special
2655 handling for optimized out values.
2656 * value.h: Add intro comment about <optimized out> and
2658 (struct lval_funcs): Remove check_validity and check_any_valid
2660 (set_value_optimized_out, value_optimized_out_const): Remove.
2661 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2663 (value_bits_any_optimized_out): New declaration.
2664 (value_bits_valid): Delete declaration.
2665 (value_available_contents_eq): Rename to ...
2666 (value_contents_eq): ... this, and extend comments.
2668 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2670 Fix -fsanitize=address on unreadable inferior strings.
2671 * valprint.c (val_print_string): Fix access before BUFFER.
2673 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2675 * target.c (target_struct_size): Remove.
2676 (target_struct_allocsize): Remove.
2677 (DEFAULT_ALLOCSIZE): Remove.
2678 (target_ops_p): New typedef.
2679 (DEF_VEC_P (target_ops_p)): New vector type.
2680 (target_structs): Change type to VEC (target_ops_p).
2681 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2682 (find_default_run_target): Rewrite for loop following changes to
2685 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2687 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2688 Adjust code accordingly. Adjust function description comment.
2690 2014-08-19 Yao Qi <yao@codesourcery.com>
2692 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2695 2014-08-19 Alan Modra <amodra@gmail.com>
2697 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2698 * config.in: Regenerate.
2699 * configure: Regenerate.
2701 2014-08-19 Tom Tromey <tromey@redhat.com>
2702 Gary Benson <gbenson@redhat.com>
2704 * common/common-debug.h: New file.
2705 * common/common-debug.c: Likewise.
2706 * debug.c: Likewise.
2707 * Makefile.in (SFILES): Add common/common-debug.c.
2708 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2709 (COMMON_OBS): Add common-debug.o and debug.o.
2710 (common-debug.o): New rule.
2711 * common/common-defs.h: Include common-debug.h.
2712 * common/agent.c (debug_agent_printf): New function.
2713 (DEBUG_AGENT): Redefine.
2714 * nat/i386-dregs.c (debug_printf): Undefine.
2716 2014-08-19 Gary Benson <gbenson@redhat.com>
2718 * common/common-defs.h: Include print-utils.h.
2719 * utils.h: Do not include print-utils.h.
2721 2014-08-19 Tom Tromey <tromey@redhat.com>
2722 Gary Benson <gbenson@redhat.com>
2724 * common/common-types.h: New file.
2725 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2726 * common/common-defs.h: Include common-types.h.
2727 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2730 2014-08-19 Tom Tromey <tromey@redhat.com>
2731 Gary Benson <gbenson@redhat.com>
2733 * common/errors.h: New file.
2734 * common/errors.c: Likewise.
2735 * Makefile.in (SFILES): Add common/errors.c.
2736 (HFILES_NO_SRCDIR): Add common/errors.h.
2737 (COMMON_OBS): Add errors.o.
2738 (errors.o): New rule.
2739 * common/common-defs.h: Include errors.h.
2740 * utils.h (perror_with_name, error, verror, warning, vwarning):
2742 * common/common-utils.h: (malloc_failure, internal_error):
2745 2014-08-19 Gary Benson <gbenson@redhat.com>
2747 * utils.c (internal_vproblem): Always print the message.
2749 2014-08-18 Doug Evans <dje@google.com>
2751 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2753 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2755 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2756 Return 0 if TYPE is dynamic.
2757 (print_range): Add handling of dynamic ranges.
2759 2014-08-18 Keven Boell <keven.boell@intel.com>
2760 Joel Brobecker <brobecker@adacore.com>
2762 * gdbtypes.h (struct main_type): Add field "data_location".
2763 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2764 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2765 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2766 a dynamic data location.
2767 (resolve_dynamic_type): Add DW_AT_data_location handling.
2768 (copy_recursive, copy_type): Copy the data_location information
2770 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2771 * value.c (value_from_contents_and_address): Add
2772 DW_AT_data_location handling.
2774 2014-08-18 Keven Boell <keven.boell@intel.com>
2775 Joel Brobecker <brobecker@adacore.com>
2777 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2778 field "get_object_address".
2779 * dwarf2expr.c (execute_stack_op): Add handling for
2780 DW_OP_push_object_address.
2781 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2782 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2783 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2784 (dwarf_expr_get_obj_addr): New function.
2785 (dwarf_expr_ctx_funcs): Add get_object_address field.
2786 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2787 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2788 (dwarf2_evaluate_property): Add parameter "address". Use it.
2789 (needs_get_obj_addr): New function.
2790 (needs_frame_ctx_funcs): Add get_object_address field.
2791 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2792 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2793 (resolve_dynamic_array): Likewise.
2795 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2797 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2798 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2799 fixed value for records and unions for which some GNAT encodings
2802 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2804 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2805 rewrite to avoid "else if" and "else" constructs. Should be
2806 a no-op in practice.
2808 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2810 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2813 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2816 * eval.c: Update all calls to find_overload_match.
2817 * valarith.c: Likewise.
2818 (value_user_defined_cpp_op, value_user_defined_op): New
2819 argument NOSIDE. Update all callers.
2820 * valops.c (find_overload_match): New argument NOSIDE.
2821 * value.h (find_overload_match): Update signature.
2823 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2825 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2826 'items' methods instead of 'iteritems' method on dictionaries.
2828 2014-08-15 Doug Evans <dje@google.com>
2830 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2833 2014-08-15 Doug Evans <dje@google.com>
2835 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2837 2014-08-15 Doug Evans <dje@google.com>
2839 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2841 2014-08-15 Doug Evans <dje@google.com>
2843 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2846 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2848 * dcache.h: Include target.h, to avoid compile time warnings.
2850 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2852 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2853 frame_info" partial declaration.
2854 * gdbarch.h: Regenerate.
2856 2014-08-15 Yao Qi <yao@codesourcery.com>
2858 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2859 Add parameter 'decode_for_pst_p'. Callers update.
2861 2014-08-13 Yao Qi <yao@codesourcery.com>
2864 * configure.ac: Use local variable 'pos'.
2865 * configure: Regenerated.
2867 2014-08-11 Doug Evans <dje@google.com>
2869 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2870 message, it is redundant with "Reading symbols from ..." message.
2872 2014-08-10 Doug Evans <xdje42@gmail.com>
2874 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2876 2014-08-09 Yao Qi <yao@codesourcery.com>
2879 * remote.c (remote_xfer_partial): Remove dead code.
2881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2883 * ia64-linux-tdep.c: Include "regset.h".
2884 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2885 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2886 (ia64_linux_supply_fpregset): New function.
2887 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2888 (ia64_linux_regset_from_core_section): New function.
2889 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2892 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2894 * m68klinux-tdep.c: Include "regset.h".
2895 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2896 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2897 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2898 (m68k_linux_regset_from_core_section): New function.
2899 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2902 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2904 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2905 function. Move logic to...
2906 (tilegx_linux_regmap): ... this new register map.
2907 (tilegx_linux_regset): Refer to register map, replace supply
2908 method by regcache_supply_regset, and add collect method.
2909 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2910 TILEGX_FIRST_EASY_REGNUM.
2912 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2914 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2915 that calls regcache_supply_regset and handles the EPC register
2916 separately. Move main logic to...
2917 (score7_linux_gregmap): ... this new register map.
2918 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2919 (score7_linux_gregset): Refer to register map. Add collect method.
2920 (score7_linux_regset_from_core_section): Replace
2921 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2922 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2923 (struct regset): Delete unused forward declaraction.
2924 (struct pt_regs): Delete structure definition.
2925 (elf_gregset_t): Delete typedef.
2927 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2929 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2930 (nios2_core_regset): Add collect method.
2932 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2934 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2935 platform-independent and don't write to read-only input buffer.
2936 (m32r_linux_collect_gregset): New function.
2937 (m32r_linux_gregset): Add collect method.
2939 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2941 * hppa-linux-tdep.c (greg_map): Rename to...
2942 (hppa_linux_gregmap): ... this. Also convert to
2943 regcache_map_entry format.
2944 (hppa_linux_supply_regset): Delete function.
2945 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2946 (hppa_linux_fpregmap): ... this new register map.
2947 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2948 register map, replace supply method by regcache_supply_regset, and
2949 add collect method regcache_collect_regset.
2951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2954 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2955 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2956 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2957 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2958 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2959 (frv_linux_supply_gregset): Replace main logic by call to
2960 regcache_supply_regset, but keep clearing gr32-gr63.
2961 (frv_linux_supply_fpregset): Delete function.
2962 (frv_linux_gregset): Refer to appropriate register map and add
2963 regcache_collect_regset as the collect method.
2964 (frv_linux_fpregset): Likewise. Also exchange the supply method
2965 by regcache_supply_regset.
2967 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2970 by call to alpha_supply_int_regs.
2971 (alpha_linux_collect_gregset): New function.
2972 (alpha_linux_supply_fpregset): Replace logic by call to
2973 alpha_supply_fp_regs.
2974 (alpha_linux_collect_fpregset): New function.
2975 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2977 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2979 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2980 by call to regcache_collect_regset.
2981 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2982 instead of aarch64_linux_supply_gregset/_fpregset.
2983 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2984 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2985 header file instead.
2986 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2987 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2988 functions. Move logic to ...
2989 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2991 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2992 refer to new register maps, replace *_regset_from_core by
2993 regcache_supply_regset, and also use regcache_collect_regset.
2994 * aarch64-linux-tdep.h: Include "regset.h".
2995 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2997 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2998 macros, moved from C source file.
2999 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3000 variable declarations.
3002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3004 * s390-linux-nat.c: Include "regset.h".
3005 (regmap_gregset): Delete macro.
3006 (s390_64_regmap_gregset): New register map for
3007 regcache_supply/_collect_regset.
3008 (s390_64_gregset): New regset.
3009 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3010 (regmap_fpregset): Delete macro.
3011 (s390_native_supply, s390_native_collect): Delete functions.
3012 (supply_gregset, fill_gregset): Replace s390-specific regmap
3013 handling by a call to regcache_supply/_collect_regset.
3014 (supply_fpregset, fill_fpregset): Call regcache_supply/
3015 _collect_regset instead of s390_native_supply/_collect.
3016 (fetch_regset, store_regset): Likewise. Also change the last
3017 parameter to a regset instead of a regmap.
3018 (s390_linux_fetch_inferior_registers)
3019 (390_linux_store_inferior_registers): Adjust last parameter in
3020 calls to fetch_regset and store_regset.
3021 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3022 (s390_gregmap): ... this. Also make static const and convert to
3023 regcache_map_entry format.
3024 (s390x_regmap_gregset): Delete.
3025 (s390_regmap_fpregset): Rename to...
3026 (s390_fpregmap): ... this. Make static const and convert to
3027 regcache_map_entry format.
3028 (s390_regmap_upper, s390_regmap_last_break)
3029 (s390x_regmap_last_break, s390_regmap_system_call)
3030 (s390_regmap_tdb): Likewise.
3031 (s390_supply_regset, s390_collect_regset): Remove functions.
3032 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3034 (s390_gregset, s390_fpregset, s390_upper_regset)
3035 (s390_last_break_regset, s390x_last_break_regset)
3036 (s390_system_call_regset, s390_tdb_regset): Make global and
3037 replace s390_supply/_collect_regset by regcache_supply/
3039 (s390x_gregset): Delete.
3040 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3041 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3042 (s390_regmap_fpregset, s390_regmap_last_break)
3043 (s390x_regmap_last_break, s390_regmap_system_call)
3044 (s390_regmap_tdb): Delete global variable declarations.
3045 (s390_gregset, s390_fpregset, s390_last_break_regset)
3046 (s390x_last_break_regset, s390_system_call_regset)
3047 (s390_tdb_regset): New global variable declarations.
3049 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051 * regcache.c: Include "regset.h".
3052 (regcache_transfer_regset): New local function.
3053 (regcache_supply_regset, regcache_collect_regset): New functions.
3054 * regcache.h (struct regcache_map_entry): New structure.
3055 (REGCACHE_MAP_SKIP): New enum value.
3056 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3058 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3060 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3061 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3062 (ppc_linux_collect_gregset ): Likewise.
3063 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3064 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3065 (ppc_collect_vrregset): Likewise.
3066 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3069 2014-08-07 Yao Qi <yao@codesourcery.com>
3071 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3072 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3073 * remote.c (remote_read_bytes): Likewise.
3075 2014-08-07 Yao Qi <yao@codesourcery.com>
3077 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3079 2014-08-07 Yao Qi <yao@codesourcery.com>
3082 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3083 TARGET_XFER_OK instead of 0.
3085 2014-08-07 Gary Benson <gbenson@redhat.com>
3087 * common/common-defs.h: Include errno.h.
3088 * defs.h: Do not include errno.h.
3089 * ada-typeprint.c: Likewise.
3090 * c-typeprint.c: Likewise.
3091 * core-regset.c: Likewise.
3092 * corefile.c: Likewise.
3093 * corelow.c: Likewise.
3094 * event-loop.c: Likewise.
3095 * f-typeprint.c: Likewise.
3096 * gnu-nat.c: Likewise.
3097 * go32-nat.c: Likewise.
3098 * i386gnu-nat.c: Likewise.
3099 * m2-typeprint.c: Likewise.
3100 * nat/linux-btrace.c: Likewise.
3101 * p-typeprint.c: Likewise.
3102 * procfs.c: Likewise.
3103 * remote-sim.c: Likewise.
3104 * rs6000-nat.c: Likewise.
3105 * target.c: Likewise.
3106 * typeprint.c: Likewise.
3107 * ui-file.c: Likewise.
3108 * valops.c: Likewise.
3109 * valprint.c: Likewise.
3111 2014-08-07 Gary Benson <gbenson@redhat.com>
3113 * common/common-defs.h: Include string.h.
3114 * aarch64-tdep.c: Do not include string.h.
3115 * ada-exp.y: Likewise.
3116 * ada-lang.c: Likewise.
3117 * ada-lex.l: Likewise.
3118 * ada-typeprint.c: Likewise.
3119 * ada-valprint.c: Likewise.
3120 * aix-thread.c: Likewise.
3121 * alpha-linux-tdep.c: Likewise.
3122 * alpha-mdebug-tdep.c: Likewise.
3123 * alpha-nat.c: Likewise.
3124 * alpha-osf1-tdep.c: Likewise.
3125 * alpha-tdep.c: Likewise.
3126 * alphanbsd-tdep.c: Likewise.
3127 * amd64-dicos-tdep.c: Likewise.
3128 * amd64-linux-tdep.c: Likewise.
3129 * amd64-nat.c: Likewise.
3130 * amd64-sol2-tdep.c: Likewise.
3131 * amd64fbsd-tdep.c: Likewise.
3132 * amd64obsd-tdep.c: Likewise.
3133 * arch-utils.c: Likewise.
3134 * arm-linux-nat.c: Likewise.
3135 * arm-linux-tdep.c: Likewise.
3136 * arm-tdep.c: Likewise.
3137 * arm-wince-tdep.c: Likewise.
3138 * armbsd-tdep.c: Likewise.
3139 * armnbsd-nat.c: Likewise.
3140 * armnbsd-tdep.c: Likewise.
3141 * armobsd-tdep.c: Likewise.
3142 * avr-tdep.c: Likewise.
3143 * ax-gdb.c: Likewise.
3144 * ax-general.c: Likewise.
3145 * bcache.c: Likewise.
3146 * bfin-tdep.c: Likewise.
3147 * breakpoint.c: Likewise.
3148 * build-id.c: Likewise.
3149 * buildsym.c: Likewise.
3150 * c-exp.y: Likewise.
3151 * c-lang.c: Likewise.
3152 * c-typeprint.c: Likewise.
3153 * c-valprint.c: Likewise.
3154 * charset.c: Likewise.
3155 * cli-out.c: Likewise.
3156 * cli/cli-cmds.c: Likewise.
3157 * cli/cli-decode.c: Likewise.
3158 * cli/cli-dump.c: Likewise.
3159 * cli/cli-interp.c: Likewise.
3160 * cli/cli-logging.c: Likewise.
3161 * cli/cli-script.c: Likewise.
3162 * cli/cli-setshow.c: Likewise.
3163 * cli/cli-utils.c: Likewise.
3164 * coffread.c: Likewise.
3165 * common/agent.c: Likewise.
3166 * common/buffer.c: Likewise.
3167 * common/buffer.h: Likewise.
3168 * common/common-utils.c: Likewise.
3169 * common/filestuff.c: Likewise.
3170 * common/filestuff.c: Likewise.
3171 * common/format.c: Likewise.
3172 * common/print-utils.c: Likewise.
3173 * common/rsp-low.c: Likewise.
3174 * common/signals.c: Likewise.
3175 * common/vec.h: Likewise.
3176 * common/xml-utils.c: Likewise.
3177 * core-regset.c: Likewise.
3178 * corefile.c: Likewise.
3179 * corelow.c: Likewise.
3180 * cp-abi.c: Likewise.
3181 * cp-name-parser.y: Likewise.
3182 * cp-support.c: Likewise.
3183 * cp-valprint.c: Likewise.
3184 * cris-tdep.c: Likewise.
3185 * d-exp.y: Likewise.
3186 * darwin-nat.c: Likewise.
3187 * dbxread.c: Likewise.
3188 * dcache.c: Likewise.
3189 * demangle.c: Likewise.
3190 * dicos-tdep.c: Likewise.
3191 * disasm.c: Likewise.
3192 * doublest.c: Likewise.
3193 * dsrec.c: Likewise.
3194 * dummy-frame.c: Likewise.
3195 * dwarf2-frame.c: Likewise.
3196 * dwarf2loc.c: Likewise.
3197 * dwarf2read.c: Likewise.
3198 * elfread.c: Likewise.
3199 * environ.c: Likewise.
3201 * event-loop.c: Likewise.
3202 * exceptions.c: Likewise.
3204 * expprint.c: Likewise.
3205 * f-exp.y: Likewise.
3206 * f-lang.c: Likewise.
3207 * f-typeprint.c: Likewise.
3208 * f-valprint.c: Likewise.
3209 * fbsd-nat.c: Likewise.
3210 * findcmd.c: Likewise.
3211 * findvar.c: Likewise.
3212 * fork-child.c: Likewise.
3213 * frame.c: Likewise.
3214 * frv-linux-tdep.c: Likewise.
3215 * frv-tdep.c: Likewise.
3217 * gdb_bfd.c: Likewise.
3218 * gdbarch.c: Likewise.
3219 * gdbarch.sh: Likewise.
3220 * gdbtypes.c: Likewise.
3221 * gnu-nat.c: Likewise.
3222 * gnu-v2-abi.c: Likewise.
3223 * gnu-v3-abi.c: Likewise.
3224 * go-exp.y: Likewise.
3225 * go-lang.c: Likewise.
3226 * go32-nat.c: Likewise.
3227 * guile/guile.c: Likewise.
3228 * guile/scm-auto-load.c: Likewise.
3229 * hppa-hpux-tdep.c: Likewise.
3230 * hppa-linux-nat.c: Likewise.
3231 * hppanbsd-tdep.c: Likewise.
3232 * hppaobsd-tdep.c: Likewise.
3233 * i386-cygwin-tdep.c: Likewise.
3234 * i386-dicos-tdep.c: Likewise.
3235 * i386-linux-tdep.c: Likewise.
3236 * i386-nto-tdep.c: Likewise.
3237 * i386-sol2-tdep.c: Likewise.
3238 * i386-tdep.c: Likewise.
3239 * i386bsd-tdep.c: Likewise.
3240 * i386gnu-nat.c: Likewise.
3241 * i386nbsd-tdep.c: Likewise.
3242 * i386obsd-tdep.c: Likewise.
3243 * i387-tdep.c: Likewise.
3244 * ia64-libunwind-tdep.c: Likewise.
3245 * ia64-linux-nat.c: Likewise.
3246 * inf-child.c: Likewise.
3247 * inf-ptrace.c: Likewise.
3248 * inf-ttrace.c: Likewise.
3249 * infcall.c: Likewise.
3250 * infcmd.c: Likewise.
3251 * inflow.c: Likewise.
3252 * infrun.c: Likewise.
3253 * interps.c: Likewise.
3254 * iq2000-tdep.c: Likewise.
3255 * irix5-nat.c: Likewise.
3256 * jv-exp.y: Likewise.
3257 * jv-lang.c: Likewise.
3258 * jv-typeprint.c: Likewise.
3259 * jv-valprint.c: Likewise.
3260 * language.c: Likewise.
3261 * linux-fork.c: Likewise.
3262 * linux-nat.c: Likewise.
3263 * lm32-tdep.c: Likewise.
3264 * m2-exp.y: Likewise.
3265 * m2-typeprint.c: Likewise.
3266 * m32c-tdep.c: Likewise.
3267 * m32r-linux-nat.c: Likewise.
3268 * m32r-linux-tdep.c: Likewise.
3269 * m32r-rom.c: Likewise.
3270 * m32r-tdep.c: Likewise.
3271 * m68hc11-tdep.c: Likewise.
3272 * m68k-tdep.c: Likewise.
3273 * m68kbsd-tdep.c: Likewise.
3274 * m68klinux-nat.c: Likewise.
3275 * m68klinux-tdep.c: Likewise.
3276 * m88k-tdep.c: Likewise.
3277 * machoread.c: Likewise.
3278 * macrocmd.c: Likewise.
3280 * mdebugread.c: Likewise.
3281 * mem-break.c: Likewise.
3282 * memattr.c: Likewise.
3283 * memory-map.c: Likewise.
3284 * mep-tdep.c: Likewise.
3285 * mi/mi-cmd-break.c: Likewise.
3286 * mi/mi-cmd-disas.c: Likewise.
3287 * mi/mi-cmd-env.c: Likewise.
3288 * mi/mi-cmd-stack.c: Likewise.
3289 * mi/mi-cmd-var.c: Likewise.
3290 * mi/mi-cmds.c: Likewise.
3291 * mi/mi-console.c: Likewise.
3292 * mi/mi-getopt.c: Likewise.
3293 * mi/mi-interp.c: Likewise.
3294 * mi/mi-main.c: Likewise.
3295 * mi/mi-parse.c: Likewise.
3296 * microblaze-rom.c: Likewise.
3297 * microblaze-tdep.c: Likewise.
3298 * mingw-hdep.c: Likewise.
3299 * minidebug.c: Likewise.
3300 * minsyms.c: Likewise.
3301 * mips-irix-tdep.c: Likewise.
3302 * mips-linux-tdep.c: Likewise.
3303 * mips-tdep.c: Likewise.
3304 * mips64obsd-tdep.c: Likewise.
3305 * mipsnbsd-tdep.c: Likewise.
3306 * mipsread.c: Likewise.
3307 * mn10300-linux-tdep.c: Likewise.
3308 * mn10300-tdep.c: Likewise.
3309 * monitor.c: Likewise.
3310 * moxie-tdep.c: Likewise.
3311 * mt-tdep.c: Likewise.
3312 * nat/linux-btrace.c: Likewise.
3313 * nat/linux-osdata.c: Likewise.
3314 * nat/linux-procfs.c: Likewise.
3315 * nat/linux-ptrace.c: Likewise.
3316 * nat/linux-waitpid.c: Likewise.
3317 * nbsd-tdep.c: Likewise.
3318 * nios2-linux-tdep.c: Likewise.
3319 * nto-procfs.c: Likewise.
3320 * nto-tdep.c: Likewise.
3321 * objc-lang.c: Likewise.
3322 * objfiles.c: Likewise.
3323 * opencl-lang.c: Likewise.
3324 * osabi.c: Likewise.
3325 * osdata.c: Likewise.
3326 * p-exp.y: Likewise.
3327 * p-lang.c: Likewise.
3328 * p-typeprint.c: Likewise.
3329 * parse.c: Likewise.
3330 * posix-hdep.c: Likewise.
3331 * ppc-linux-nat.c: Likewise.
3332 * ppc-sysv-tdep.c: Likewise.
3333 * ppcfbsd-tdep.c: Likewise.
3334 * ppcnbsd-tdep.c: Likewise.
3335 * ppcobsd-tdep.c: Likewise.
3336 * printcmd.c: Likewise.
3337 * procfs.c: Likewise.
3338 * prologue-value.c: Likewise.
3339 * python/py-auto-load.c: Likewise.
3340 * python/py-gdb-readline.c: Likewise.
3341 * ravenscar-thread.c: Likewise.
3342 * regcache.c: Likewise.
3343 * registry.c: Likewise.
3344 * remote-fileio.c: Likewise.
3345 * remote-m32r-sdi.c: Likewise.
3346 * remote-mips.c: Likewise.
3347 * remote-notif.c: Likewise.
3348 * remote-sim.c: Likewise.
3349 * remote.c: Likewise.
3350 * reverse.c: Likewise.
3351 * rs6000-aix-tdep.c: Likewise.
3352 * ser-base.c: Likewise.
3353 * ser-go32.c: Likewise.
3354 * ser-mingw.c: Likewise.
3355 * ser-pipe.c: Likewise.
3356 * ser-tcp.c: Likewise.
3357 * ser-unix.c: Likewise.
3358 * serial.c: Likewise.
3359 * sh-tdep.c: Likewise.
3360 * sh64-tdep.c: Likewise.
3361 * shnbsd-tdep.c: Likewise.
3363 * sol-thread.c: Likewise.
3364 * solib-dsbt.c: Likewise.
3365 * solib-frv.c: Likewise.
3366 * solib-osf.c: Likewise.
3367 * solib-som.c: Likewise.
3368 * solib-spu.c: Likewise.
3369 * solib-target.c: Likewise.
3370 * solib.c: Likewise.
3371 * somread.c: Likewise.
3372 * source.c: Likewise.
3373 * sparc-nat.c: Likewise.
3374 * sparc-sol2-tdep.c: Likewise.
3375 * sparc-tdep.c: Likewise.
3376 * sparc64-tdep.c: Likewise.
3377 * sparc64fbsd-tdep.c: Likewise.
3378 * sparc64nbsd-tdep.c: Likewise.
3379 * sparcnbsd-tdep.c: Likewise.
3380 * spu-linux-nat.c: Likewise.
3381 * spu-multiarch.c: Likewise.
3382 * spu-tdep.c: Likewise.
3383 * stabsread.c: Likewise.
3384 * stack.c: Likewise.
3385 * std-regs.c: Likewise.
3386 * symfile.c: Likewise.
3387 * symmisc.c: Likewise.
3388 * symtab.c: Likewise.
3389 * target.c: Likewise.
3390 * thread.c: Likewise.
3391 * tilegx-linux-nat.c: Likewise.
3392 * tilegx-tdep.c: Likewise.
3394 * tracepoint.c: Likewise.
3395 * tui/tui-command.c: Likewise.
3396 * tui/tui-data.c: Likewise.
3397 * tui/tui-disasm.c: Likewise.
3398 * tui/tui-file.c: Likewise.
3399 * tui/tui-layout.c: Likewise.
3400 * tui/tui-out.c: Likewise.
3401 * tui/tui-regs.c: Likewise.
3402 * tui/tui-source.c: Likewise.
3403 * tui/tui-stack.c: Likewise.
3404 * tui/tui-win.c: Likewise.
3405 * tui/tui-windata.c: Likewise.
3406 * tui/tui-winsource.c: Likewise.
3407 * typeprint.c: Likewise.
3408 * ui-file.c: Likewise.
3409 * ui-out.c: Likewise.
3410 * user-regs.c: Likewise.
3411 * utils.c: Likewise.
3412 * v850-tdep.c: Likewise.
3413 * valarith.c: Likewise.
3414 * valops.c: Likewise.
3415 * valprint.c: Likewise.
3416 * value.c: Likewise.
3417 * varobj.c: Likewise.
3418 * vax-tdep.c: Likewise.
3419 * vaxnbsd-tdep.c: Likewise.
3420 * vaxobsd-tdep.c: Likewise.
3421 * windows-nat.c: Likewise.
3422 * xcoffread.c: Likewise.
3423 * xml-support.c: Likewise.
3424 * xstormy16-tdep.c: Likewise.
3425 * xtensa-linux-nat.c: Likewise.
3427 2014-08-07 Gary Benson <gbenson@redhat.com>
3429 * common/common-defs.h: Include gdb_assert.h.
3430 * aarch64-tdep.c: Do not include gdb_assert.h.
3431 * addrmap.c: Likewise.
3432 * aix-thread.c: Likewise.
3433 * alpha-linux-tdep.c: Likewise.
3434 * alpha-mdebug-tdep.c: Likewise.
3435 * alphanbsd-tdep.c: Likewise.
3436 * amd64-nat.c: Likewise.
3437 * amd64-tdep.c: Likewise.
3438 * amd64bsd-nat.c: Likewise.
3439 * amd64fbsd-nat.c: Likewise.
3440 * amd64fbsd-tdep.c: Likewise.
3441 * amd64nbsd-nat.c: Likewise.
3442 * amd64nbsd-tdep.c: Likewise.
3443 * amd64obsd-nat.c: Likewise.
3444 * amd64obsd-tdep.c: Likewise.
3445 * arch-utils.c: Likewise.
3446 * arm-tdep.c: Likewise.
3447 * armbsd-tdep.c: Likewise.
3449 * bcache.c: Likewise.
3450 * bfin-tdep.c: Likewise.
3451 * blockframe.c: Likewise.
3452 * breakpoint.c: Likewise.
3453 * bsd-kvm.c: Likewise.
3454 * bsd-uthread.c: Likewise.
3455 * buildsym.c: Likewise.
3456 * c-exp.y: Likewise.
3457 * c-lang.c: Likewise.
3458 * charset.c: Likewise.
3459 * cleanups.c: Likewise.
3460 * cli-out.c: Likewise.
3461 * cli/cli-decode.c: Likewise.
3462 * cli/cli-dump.c: Likewise.
3463 * cli/cli-logging.c: Likewise.
3464 * cli/cli-script.c: Likewise.
3465 * cli/cli-utils.c: Likewise.
3466 * coffread.c: Likewise.
3467 * common/common-utils.c: Likewise.
3468 * common/queue.h: Likewise.
3469 * common/signals.c: Likewise.
3470 * common/vec.h: Likewise.
3471 * complaints.c: Likewise.
3472 * completer.c: Likewise.
3473 * corelow.c: Likewise.
3474 * cp-abi.c: Likewise.
3475 * cp-name-parser.y: Likewise.
3476 * cp-namespace.c: Likewise.
3477 * cp-support.c: Likewise.
3478 * cris-tdep.c: Likewise.
3479 * dbxread.c: Likewise.
3480 * dictionary.c: Likewise.
3481 * doublest.c: Likewise.
3482 * dsrec.c: Likewise.
3483 * dummy-frame.c: Likewise.
3484 * dwarf2-frame-tailcall.c: Likewise.
3485 * dwarf2-frame.c: Likewise.
3486 * dwarf2expr.c: Likewise.
3487 * dwarf2loc.c: Likewise.
3488 * dwarf2read.c: Likewise.
3490 * event-loop.c: Likewise.
3491 * exceptions.c: Likewise.
3492 * expprint.c: Likewise.
3493 * f-valprint.c: Likewise.
3494 * fbsd-nat.c: Likewise.
3495 * findvar.c: Likewise.
3496 * frame-unwind.c: Likewise.
3497 * frame.c: Likewise.
3498 * frv-tdep.c: Likewise.
3499 * gcore.c: Likewise.
3500 * gdb-dlfcn.c: Likewise.
3501 * gdb_bfd.c: Likewise.
3502 * gdbarch.c: Likewise.
3503 * gdbarch.sh: Likewise.
3504 * gdbtypes.c: Likewise.
3505 * gnu-nat.c: Likewise.
3506 * gnu-v3-abi.c: Likewise.
3507 * go-lang.c: Likewise.
3508 * guile/scm-exception.c: Likewise.
3509 * guile/scm-gsmob.c: Likewise.
3510 * guile/scm-lazy-string.c: Likewise.
3511 * guile/scm-math.c: Likewise.
3512 * guile/scm-pretty-print.c: Likewise.
3513 * guile/scm-safe-call.c: Likewise.
3514 * guile/scm-utils.c: Likewise.
3515 * guile/scm-value.c: Likewise.
3516 * h8300-tdep.c: Likewise.
3517 * hppa-hpux-nat.c: Likewise.
3518 * hppa-tdep.c: Likewise.
3519 * hppanbsd-tdep.c: Likewise.
3520 * hppaobsd-tdep.c: Likewise.
3521 * i386-darwin-nat.c: Likewise.
3522 * i386-darwin-tdep.c: Likewise.
3523 * i386-nto-tdep.c: Likewise.
3524 * i386-tdep.c: Likewise.
3525 * i386bsd-nat.c: Likewise.
3526 * i386fbsd-tdep.c: Likewise.
3527 * i386gnu-nat.c: Likewise.
3528 * i386nbsd-tdep.c: Likewise.
3529 * i386obsd-tdep.c: Likewise.
3530 * i387-tdep.c: Likewise.
3531 * ia64-libunwind-tdep.c: Likewise.
3532 * ia64-tdep.c: Likewise.
3533 * inf-ptrace.c: Likewise.
3534 * inf-ttrace.c: Likewise.
3535 * infcall.c: Likewise.
3536 * infcmd.c: Likewise.
3537 * infrun.c: Likewise.
3538 * inline-frame.c: Likewise.
3539 * interps.c: Likewise.
3540 * jv-lang.c: Likewise.
3541 * jv-typeprint.c: Likewise.
3542 * linux-fork.c: Likewise.
3543 * linux-nat.c: Likewise.
3544 * linux-thread-db.c: Likewise.
3545 * m32c-tdep.c: Likewise.
3546 * m32r-linux-nat.c: Likewise.
3547 * m32r-tdep.c: Likewise.
3548 * m68k-tdep.c: Likewise.
3549 * m68kbsd-nat.c: Likewise.
3550 * m68kbsd-tdep.c: Likewise.
3551 * m88k-tdep.c: Likewise.
3552 * machoread.c: Likewise.
3553 * macroexp.c: Likewise.
3554 * macrotab.c: Likewise.
3555 * maint.c: Likewise.
3556 * mdebugread.c: Likewise.
3557 * memory-map.c: Likewise.
3558 * mep-tdep.c: Likewise.
3559 * mi/mi-common.c: Likewise.
3560 * microblaze-tdep.c: Likewise.
3561 * mingw-hdep.c: Likewise.
3562 * mips-linux-nat.c: Likewise.
3563 * mips-linux-tdep.c: Likewise.
3564 * mips-tdep.c: Likewise.
3565 * mips64obsd-tdep.c: Likewise.
3566 * mipsnbsd-tdep.c: Likewise.
3567 * mn10300-linux-tdep.c: Likewise.
3568 * mn10300-tdep.c: Likewise.
3569 * moxie-tdep.c: Likewise.
3570 * mt-tdep.c: Likewise.
3571 * nat/linux-btrace.c: Likewise.
3572 * nat/linux-osdata.c: Likewise.
3573 * nat/linux-ptrace.c: Likewise.
3574 * nat/mips-linux-watch.c: Likewise.
3575 * nios2-linux-tdep.c: Likewise.
3576 * nios2-tdep.c: Likewise.
3577 * objc-lang.c: Likewise.
3578 * objfiles.c: Likewise.
3579 * obsd-nat.c: Likewise.
3580 * opencl-lang.c: Likewise.
3581 * osabi.c: Likewise.
3582 * parse.c: Likewise.
3583 * ppc-linux-nat.c: Likewise.
3584 * ppc-sysv-tdep.c: Likewise.
3585 * ppcfbsd-nat.c: Likewise.
3586 * ppcfbsd-tdep.c: Likewise.
3587 * ppcnbsd-nat.c: Likewise.
3588 * ppcnbsd-tdep.c: Likewise.
3589 * ppcobsd-nat.c: Likewise.
3590 * ppcobsd-tdep.c: Likewise.
3591 * printcmd.c: Likewise.
3592 * procfs.c: Likewise.
3593 * prologue-value.c: Likewise.
3594 * psymtab.c: Likewise.
3595 * python/py-lazy-string.c: Likewise.
3596 * python/py-value.c: Likewise.
3597 * regcache.c: Likewise.
3598 * reggroups.c: Likewise.
3599 * registry.c: Likewise.
3600 * remote-sim.c: Likewise.
3601 * remote.c: Likewise.
3602 * rs6000-aix-tdep.c: Likewise.
3603 * rs6000-tdep.c: Likewise.
3604 * s390-linux-tdep.c: Likewise.
3605 * score-tdep.c: Likewise.
3606 * ser-base.c: Likewise.
3607 * ser-mingw.c: Likewise.
3608 * sh-tdep.c: Likewise.
3609 * sh64-tdep.c: Likewise.
3610 * solib-darwin.c: Likewise.
3611 * solib-spu.c: Likewise.
3612 * solib-svr4.c: Likewise.
3613 * source.c: Likewise.
3614 * sparc-nat.c: Likewise.
3615 * sparc-sol2-tdep.c: Likewise.
3616 * sparc-tdep.c: Likewise.
3617 * sparc64-sol2-tdep.c: Likewise.
3618 * sparc64-tdep.c: Likewise.
3619 * sparc64fbsd-tdep.c: Likewise.
3620 * sparc64nbsd-tdep.c: Likewise.
3621 * sparc64obsd-tdep.c: Likewise.
3622 * sparcnbsd-tdep.c: Likewise.
3623 * sparcobsd-tdep.c: Likewise.
3624 * spu-multiarch.c: Likewise.
3625 * spu-tdep.c: Likewise.
3626 * stabsread.c: Likewise.
3627 * stack.c: Likewise.
3628 * symfile.c: Likewise.
3629 * symtab.c: Likewise.
3630 * target-descriptions.c: Likewise.
3631 * target-memory.c: Likewise.
3632 * target.c: Likewise.
3633 * tic6x-linux-tdep.c: Likewise.
3634 * tic6x-tdep.c: Likewise.
3635 * tilegx-linux-nat.c: Likewise.
3636 * tilegx-tdep.c: Likewise.
3638 * tramp-frame.c: Likewise.
3639 * tui/tui-out.c: Likewise.
3640 * tui/tui-winsource.c: Likewise.
3641 * ui-out.c: Likewise.
3642 * user-regs.c: Likewise.
3643 * utils.c: Likewise.
3644 * v850-tdep.c: Likewise.
3645 * valops.c: Likewise.
3646 * value.c: Likewise.
3647 * varobj.c: Likewise.
3648 * vax-nat.c: Likewise.
3649 * xml-syscall.c: Likewise.
3650 * xml-tdesc.c: Likewise.
3651 * xstormy16-tdep.c: Likewise.
3652 * xtensa-linux-nat.c: Likewise.
3653 * xtensa-tdep.c: Likewise.
3655 2014-08-07 Gary Benson <gbenson@redhat.com>
3657 * common/common-defs.h: Include common-utils.h.
3658 * defs.h: Do not include common-utils.h.
3659 * common/gdb_assert.h: Likewise.
3660 * darwin-nat.h: Likewise.
3661 * nat/linux-btrace.c: Likewise.
3662 * target/waitstatus.h: Likewise.
3664 2014-08-07 Gary Benson <gbenson@redhat.com>
3666 * common/common-defs.h: Include ptid.h.
3667 * defs.h: Do not include ptid.h.
3668 * inferior.h: Likewise.
3669 * infrun.h: Likewise.
3670 * nat/linux-btrace.h: Likewise.
3671 * nat/linux-osdata.h: Likewise.
3672 * target/waitstatus.h: Likewise.
3674 2014-08-07 Gary Benson <gbenson@redhat.com>
3676 * common/common-defs.h: Include gdb_locale.h.
3677 * defs.h: Do not include gdb_locale.h.
3679 2014-08-07 Gary Benson <gbenson@redhat.com>
3681 * common/common-defs.h: Include gdb/signals.h.
3682 * defs.h: Do not include gdb/signals.h.
3684 2014-08-07 Gary Benson <gbenson@redhat.com>
3686 * common/common-defs.h: Include pathmax.h.
3687 * defs.h: Do not include pathmax.h.
3689 2014-08-07 Gary Benson <gbenson@redhat.com>
3691 * common/common-defs.h: Include libiberty.h.
3692 * defs.h: Do not include libiberty.h.
3693 * common/queue.h: Likewise.
3694 * cp-name-parser.y: Likewise.
3695 * mi/mi-cmd-catch.c: Likewise.
3696 * python/python.c: Likewise.
3698 2014-08-07 Gary Benson <gbenson@redhat.com>
3700 * common/common-defs.h: Include ansidecl.h.
3701 * defs.h: Do not include ansidecl.h.
3702 * common/buffer.h: Likewise.
3703 * common/common-utils.h: Likewise.
3705 2014-08-07 Gary Benson <gbenson@redhat.com>
3707 * common/common-defs.h: Include stddef.h.
3708 * defs.h: Do not include stddef.h.
3709 * common/common-utils.h: Likewise.
3710 * amd64fbsd-nat.c: Likewise.
3711 * bcache.c: Likewise.
3712 * charset.c: Likewise.
3713 * common/buffer.h: Likewise.
3714 * common/vec.h: Likewise.
3715 * i386bsd-nat.c: Likewise.
3716 * nat/linux-btrace.h: Likewise.
3717 * ppcfbsd-nat.c: Likewise.
3718 * ppcnbsd-tdep.h: Likewise.
3719 * ppcobsd-nat.c: Likewise.
3720 * ppcobsd-tdep.h: Likewise.
3721 * python/py-gdb-readline.c: Likewise.
3723 2014-08-07 Gary Benson <gbenson@redhat.com>
3725 * common/common-defs.h: Include stdarg.h.
3726 * defs.h: Do not include stdarg.h.
3727 * ada-lang.c: Likewise.
3728 * common/common-utils.h: Likewise.
3729 * guile/scm-string.c: Likewise.
3730 * guile/scm-utils.c: Likewise.
3731 * m32c-tdep.c: Likewise.
3733 2014-08-07 Gary Benson <gbenson@redhat.com>
3735 * common/common-defs.h: Include stdlib.h.
3736 * defs.h: Do not include stdlib.h.
3737 * addrmap.c: Likewise.
3738 * bcache.c: Likewise.
3739 * common/buffer.c: Likewise.
3740 * common/common-utils.c: Likewise.
3741 * cp-name-parser.y: Likewise.
3742 * go32-nat.c: Likewise.
3743 * mn10300-linux-tdep.c: Likewise.
3744 * nat/linux-osdata.c: Likewise.
3745 * tui/tui.c: Likewise.
3746 * windows-nat.c: Likewise.
3748 2014-08-07 Gary Benson <gbenson@redhat.com>
3750 * common/common-defs.h: Include stdio.h.
3751 * defs.h: Do not include stdio.h.
3752 * ada-lang.c: Likewise.
3753 * common/buffer.c: Likewise.
3754 * common/common-utils.c: Likewise.
3755 * cp-name-parser.y: Likewise.
3756 * gnu-nat.c: Likewise.
3757 * go32-nat.c: Likewise.
3758 * i386gnu-nat.c: Likewise.
3759 * proc-api.c: Likewise.
3760 * proc-events.c: Likewise.
3761 * proc-flags.c: Likewise.
3762 * proc-why.c: Likewise.
3763 * python/python-internal.h: Likewise.
3764 * target-memory.c: Likewise.
3765 * tui/tui-io.c: Likewise.
3766 * tui/tui.c: Likewise.
3768 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3770 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3771 (scan_dyntag_auxv): Same.
3773 2014-08-06 Yao Qi <yao@codesourcery.com>
3775 * amd64-linux-nat.c: Remove duplicated include
3777 * i386-linux-nat.c: Likewise.
3779 2014-08-06 Yao Qi <yao@codesourcery.com>
3781 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3782 operand" with "Special opcode" in comments.
3784 2014-08-05 Gary Benson <gbenson@redhat.com>
3786 * interps.c (initialize_interps): Remove prototype.
3787 (interpreter_initialized): Remove static global.
3788 (interp_add): Do not call initialize_interps.
3789 (initialize_interps): Remove function.
3791 2014-08-05 Gary Benson <gbenson@redhat.com>
3793 * utils.c (vwarning): Remove spurious va_end.
3795 2014-08-05 Alan Modra <amodra@gmail.com>
3797 * charset.c (convert_between_encodings): Cast result of obstack_base.
3798 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3799 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3800 (read_unwind_info): Use size_t for some locals.
3801 * jit.c (finalize_symtab): Likewise.
3802 * utils.c (hashtab_obstack_allocate): Likewise.
3803 * symmisc.c (print_objfile_statistics): Update format strings.
3805 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3807 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3808 (Changes in GDB 7.8): ... here.
3810 2014-08-04 Tom Tromey <tromey@redhat.com>
3812 * target.c (set_targetdebug): New function.
3813 (initialize_targets): Pass set_targetdebug when creating "set
3816 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3818 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3819 if detecting a variable-sized field that is not the last field.
3820 Fix struct type length computation.
3822 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3824 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3827 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3829 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3830 Remove "+ 8" offset in computation of CHAIN_VMA.
3832 2014-07-31 Doug Evans <dje@google.com>
3834 * inflow.c (child_terminal_inferior): Add comment.
3835 (child_terminal_ours_for_output): Add comment.
3836 (child_terminal_ours): Add comment.
3837 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3838 (linux_nat_terminal_ours): Add comment.
3840 2014-07-31 Gary Benson <gbenson@redhat.com>
3842 * common/btrace-common.h: Do not include defs.h or server.h.
3843 * nat/mips-linux-watch.h: Likewise.
3844 * gdb-dlfcn.h: Do not include defs.h.
3845 * tracefile.h: Likewise.
3847 2014-07-30 Roland McGrath <mcgrathr@google.com>
3849 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3851 2014-07-30 Tom Tromey <tromey@redhat.com>
3853 * bsd-kvm.c (bsd_kvm_open): Constify.
3854 * corelow.c (core_open): Constify.
3855 * ctf.c (ctf_open): Constify.
3856 * dbug-rom.c (dbug_open): Constify.
3857 * exec.c (exec_open): Constify.
3858 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3859 * microblaze-rom.c (picobug_open): Constify.
3860 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3862 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3863 * record-btrace.c (record_btrace_open): Constify.
3864 * record-full.c (record_full_core_open_1, record_full_open_1)
3865 (record_full_open): Constify.
3866 * remote-m32r-sdi.c (m32r_open): Constify.
3867 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3868 (rockhopper_open, lsi_open): Constify.
3869 * remote-sim.c (gdbsim_open): Constify.
3870 * remote.c (remote_open, extended_remote_open, remote_open_1):
3872 * target.h (struct target_ops) <to_open>: Make "arg" const.
3873 * tracefile-tfile.c (tfile_open): Constify.
3875 2014-07-30 Tom Tromey <tromey@redhat.com>
3877 * breakpoint.c (map_breakpoint_numbers): Update.
3878 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3879 (get_number_const): New function.
3880 (get_number): Rewrite using get_number_const.
3881 (init_number_or_range): Make "string" const.
3882 (number_is_in_list): Make "list" const.
3883 * cli/cli-utils.h (get_number_const): Declare.
3884 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3885 (init_number_or_range, number_is_in_list): Update.
3886 * printcmd.c (map_display_numbers): Update.
3887 * value.c (value_from_history_ref): Constify.
3888 * value.h (value_from_history_ref): Update.
3890 2014-07-30 Tom Tromey <tromey@redhat.com>
3892 * corefile.c (hook_type, call_extra_exec_file_hooks)
3893 (specify_exec_file_hook): Constify.
3894 * exec.c (exec_file_attach): Make "filename" const.
3895 * gdbcore.h (deprecated_exec_file_display_hook)
3896 (specify_exec_file_hook, exec_file_attach): Constify.
3897 * main.c (captured_main): Use catch_command_errors_const.
3899 2014-07-30 Tom Tromey <tromey@redhat.com>
3901 * target.c (open_target): New function.
3902 (add_target_with_completer, add_deprecated_target_alias): Use
3903 set_cmd_sfunc, set_cmd_context.
3904 (debug_to_open): Remove.
3905 (setup_target_debug): Update.
3907 2014-07-30 Yao Qi <yao@codesourcery.com>
3909 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3911 * parse.c (exp_iterate): Update comments.
3913 2014-07-30 Gary Benson <gbenson@redhat.com>
3915 * common/common-defs.h: New file.
3916 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3917 * defs.h: Include common-defs.h.
3918 Do not include config.h or build-gnulib/config.h.
3920 2014-07-30 Gary Benson <gbenson@redhat.com>
3922 * common/common-utils.h: Do not include config.h.
3923 * nat/linux-btrace.h: Likewise.
3925 2014-07-30 Gary Benson <gbenson@redhat.com>
3927 * btrace.c: Include defs.h.
3928 * common/ptid.c: Include defs.h or server.h as appropriate.
3929 * nat/mips-linux-watch.c: Likewise.
3931 2014-07-29 Tom Tromey <tromey@redhat.com>
3933 * target.c (target_is_pushed): Simplify.
3935 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3939 2014-07-29 Yao Qi <yao@codesourcery.com>
3942 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3944 2014-07-28 Doug Evans <xdje42@gmail.com>
3947 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3948 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3951 2014-07-28 Will Newton <will.newton@linaro.org>
3953 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3954 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3955 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3956 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3957 (THUMB2_EABI_SYSCALL): Likewise.
3958 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3960 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3961 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3963 2014-07-27 Doug Evans <xdje42@gmail.com>
3965 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3967 2014-07-27 Doug Evans <xdje42@gmail.com>
3969 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3971 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3972 Doug Evans <xdje42@gmail.com>
3975 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3976 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3977 * configure.ac: Try to use guild to compile an scm file, if it fails
3978 then disable guile support.
3979 * configure: Regenerate.
3980 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3982 (GUILE_COMPILED_FILES): New variable.
3983 (GUILE_FILES) Update.
3984 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3985 (stamp-guile): Compile scm files.
3986 * guile/guile.c (boot_guile_support): New function.
3987 (standard_throw_args_p): New function.
3988 (print_standard_throw_error, print_throw_error): New functions.
3989 (handle_boot_error): New function.
3990 (initialize_scheme_side): Rewrite to call boot_guile_support.
3991 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3992 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3994 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3995 Doug Evans <xdje42@gmail.com>
3998 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3999 * guile/lib/gdb/support.scm: New file.
4000 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4001 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4003 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4005 (%assert-type): Ditto, and renamed to assert-type.
4006 (%exception-print-style): Delete.
4008 2014-07-26 Doug Evans <xdje42@gmail.com>
4011 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4012 * configure: Regenerate.
4013 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4015 (PYTHON_FILES): New variable.
4016 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4017 (GUILE_FILES): New variable.
4018 (stamp-python, install-python, uninstall-python): Handle empty
4020 (stamp-guile, install-guile, uninstall-guile): Ditto.
4022 2014-07-26 Doug Evans <xdje42@gmail.com>
4025 * guile/lib/gdb.scm (pretty-printers): Export.
4026 (set-pretty-printers!): Export.
4027 * guile/lib/gdb/printing.scm (gdb module): Update.
4028 (prepend-pretty-printer!, append-pretty-printer!): Update.
4029 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4030 (pretty_printer_list_var): Delete.
4031 (pretty_printer_list): New static global.
4032 (gdbscm_pretty_printers): New function.
4033 (gdbscm_set_pretty_printers_x): New function.
4034 (ppscm_find_pretty_printer_from_gdb): Update.
4035 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4036 (gdbscm_initialize_pretty_printers): Update.
4038 2014-07-26 Doug Evans <xdje42@gmail.com>
4041 * configure.ac: Add check for header gc/gc.h.
4042 Add check for function setenv.
4043 * configure: Regenerate.
4044 * config.in: Regenerate.
4045 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4047 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4049 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4050 variation in gdbarch matching.
4052 2014-07-25 Tom Tromey <tromey@redhat.com>
4054 * exec.c (using_exec_ops): Remove.
4055 (exec_close_1): Update. Remove extraneous block, reindent.
4056 (add_target_sections): Use target_is_pushed.
4058 2014-07-25 Pedro Alves <palves@redhat.com>
4060 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4061 * monitor.c (monitor_create_inferior): Likewise.
4062 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4063 * remote-sim.c (gdbsim_create_inferior): Likewise.
4064 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4065 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4066 * windows-nat.c (do_initial_windows_stuff): Likewise.
4068 2014-07-25 Pedro Alves <palves@redhat.com>
4070 * NEWS: Mention signal passing and "signal" command changes.
4071 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4073 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4075 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4076 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4077 (jump_command): Adjust clear_proceed_status call.
4078 (signal_command): Warn if other thread that are resumed have
4079 signals that will be delivered. Adjust clear_proceed_status call.
4080 (until_next_command, finish_command)
4081 (proceed_after_attach_callback, attach_command_post_wait)
4082 (attach_command): Adjust clear_proceed_status call.
4083 * infrun.c (proceed_after_vfork_done): Likewise.
4084 (proceed_after_attach_callback): Adjust comment.
4085 (clear_proceed_status_thread): Clear stop_signal if not in pass
4087 (clear_proceed_status_callback): Delete.
4088 (clear_proceed_status): New 'step' parameter. Only clear the
4089 proceed status of threads the command being prepared is about to
4091 (proceed): If passed in an explicit signal, override stop_signal
4092 with it. Don't pass the last stop signal to the thread we're
4094 (init_wait_for_inferior): Adjust clear_proceed_status call.
4095 (switch_back_to_stepped_thread): Clear the signal if it should not
4097 * infrun.h (clear_proceed_status): New 'step' parameter.
4098 (user_visible_resume_ptid): Add comment.
4099 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4100 signal is in pass state.
4101 * remote.c (append_pending_thread_resumptions): Likewise.
4102 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4104 2014-07-25 Tom Tromey <tromey@redhat.com>
4106 * target.h (target_stopped_data_address)
4107 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4110 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4112 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4114 (avr_pointer_to_address): Likewise.
4116 2014-07-24 Tom Tromey <tromey@redhat.com>
4118 * monitor.c (compile_pattern): Update.
4119 * target.h (struct target_ops) <to_shortname, to_longname,
4122 2014-07-24 Tom Tromey <tromey@redhat.com>
4124 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4125 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4126 (add_info_alias, add_com): Make "doc" const.
4127 (print_doc_line): Make "str" const.
4128 (delete_cmd): Update.
4129 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4130 (print_doc_line): Update.
4131 * cli/cli-script.c (document_command): Update.
4132 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4133 (add_com, add_info, add_info_alias): Update.
4134 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4135 * python/py-cmd.c (cmdpy_destroyer): Update.
4137 2014-07-24 Tom Tromey <tromey@redhat.com>
4139 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4140 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4141 (help_cmd_list): Constify.
4142 (lookup_cmd): Update.
4143 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4145 (help_cmd_list, apropos_cmd): Update.
4146 * cli/cli-script.c (show_user): Update.
4147 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4148 * cli/cli-setshow.h (cmd_show_list): Update.
4149 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4150 (cmd_show_list): Update.
4151 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4152 * python/py-cmd.c (cmdpy_destroyer): Update.
4154 2014-07-24 Tom Tromey <tromey@redhat.com>
4156 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4157 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4159 * command.h (deprecate_cmd): Update.
4160 * maint.c (maintenance_do_deprecate): Add casts.
4162 2014-07-24 Tom Tromey <tromey@redhat.com>
4164 * cli/cli-decode.c (help_cmd): Make parameter "const".
4165 * cli/cli-decode.h (help_cmd): Update.
4167 2014-07-24 Tom Tromey <tromey@redhat.com>
4169 * stack.c (up_silently_base, down_silently_base): Make argument
4172 2014-07-24 Tom Tromey <tromey@redhat.com>
4174 * solib.c (solib_add): Make "pattern" const.
4175 * solib.h (solib_add): Update.
4177 2014-07-24 Tom Tromey <tromey@redhat.com>
4179 * remote.c (remote_serial_open, print_packet, putpkt)
4180 (putpkt_binary): Constify.
4181 * remote.h (putpkt): Update.
4183 2014-07-24 Tom Tromey <tromey@redhat.com>
4185 * monitor.c (monitor_open): Make "args" const.
4186 * monitor.h (monitor_open): Update.
4188 2014-07-24 Tom Tromey <tromey@redhat.com>
4190 * maint.c (match_bfd_flags): Make "string" const.
4191 (print_bfd_section_info): Remove casts.
4192 (print_objfile_section_info): Make "string" const.
4194 2014-07-24 Tom Tromey <tromey@redhat.com>
4196 * inf-child.c (inf_child_open_target): Make "arg" const.
4197 * inf-child.h (inf_child_open_target): Update.
4199 2014-07-24 Tom Tromey <tromey@redhat.com>
4201 * environ.c (unset_in_environ): Make "var" const.
4202 * environ.h (unset_in_environ): Update.
4204 2014-07-24 Tom Tromey <tromey@redhat.com>
4206 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4208 (scan_filename_with_cleanup): Likewise.
4209 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4210 Make arguments const.
4211 (restore_command): Update.
4213 2014-07-24 Pedro Alves <palves@redhat.com>
4215 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4217 2014-07-24 Tom Tromey <tromey@redhat.com>
4218 Gary Benson <gbenson@redhat.com>
4220 * nat/linux-ptrace.c (additional_flags): New global.
4221 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4222 additional_flags; don't check GDBSERVER.
4223 (linux_ptrace_set_additional_flags): New function.
4224 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4226 * linux-nat.c (_initialize_linux_nat): Call
4227 linux_ptrace_set_additional_flags.
4229 2014-07-24 Tom Tromey <tromey@redhat.com>
4231 * make-target-delegates (munge_type, write_debugmethod): New
4233 (debug_names): New global.
4234 ($TARGET_DEBUG_PRINTER): New global.
4235 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4237 Write debug methods. Generate init_debug_target.
4238 * target-debug.h: New file.
4239 * target-delegates.c: Rebuild.
4240 * target.c: Include target-debug.h.
4241 (debug_target): Hoist definition.
4242 (target_kill, target_get_section_table, target_memory_map)
4243 (target_flash_erase, target_flash_done, target_detach)
4244 (target_disconnect, target_wait, target_resume)
4245 (target_pass_signals, target_program_signals, target_follow_fork)
4246 (target_mourn_inferior, target_search_memory)
4247 (target_thread_address_space, target_close)
4248 (target_find_new_threads, target_core_of_thread)
4249 (target_verify_memory, target_insert_mask_watchpoint)
4250 (target_remove_mask_watchpoint): Remove targetdebug code.
4251 (debug_to_post_attach, debug_to_prepare_to_store)
4252 (debug_to_files_info, debug_to_insert_breakpoint)
4253 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4254 (debug_to_region_ok_for_hw_watchpoint)
4255 (debug_to_can_accel_watchpoint_condition)
4256 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4257 (debug_to_watchpoint_addr_within_range)
4258 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4259 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4260 (debug_to_terminal_init, debug_to_terminal_inferior)
4261 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4262 (debug_to_terminal_save_ours, debug_to_terminal_info)
4263 (debug_to_load, debug_to_post_startup_inferior)
4264 (debug_to_insert_fork_catchpoint)
4265 (debug_to_remove_fork_catchpoint)
4266 (debug_to_insert_vfork_catchpoint)
4267 (debug_to_remove_vfork_catchpoint)
4268 (debug_to_insert_exec_catchpoint)
4269 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4270 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4271 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4272 (setup_target_debug): Call init_debug_target.
4273 * target.h (TARGET_DEBUG_PRINTER): New macro.
4274 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4275 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4277 2014-07-24 Gary Benson <gbenson@redhat.com>
4279 * exceptions.h (throw_vfatal): Renamed to...
4280 (throw_vquit): New declaration.
4281 (throw_quit): Likewise.
4282 * exceptions.c (throw_vfatal): Renamed to...
4283 (throw_vquit): New function.
4284 (throw_quit): Likewise.
4285 (throw_error): Call throw_verror rather than throw_it.
4286 * utils.h (vfatal): Removed.
4288 * utils.c (vfatal): Removed.
4290 (internal_verror): Replaced call to fatal with call to throw_quit.
4291 (quit): Replaced calls to fatal with calls to throw_quit.
4293 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4295 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4298 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4300 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4301 less than zero in conditional expression.
4303 2014-07-23 Tom Tromey <tromey@redhat.com>
4305 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4306 ($INTRO_PART): Don't match whitespace.
4307 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4309 ($METHOD): Add $METHOD_TRAILER.
4311 (scan_target_h): New sub.
4312 Change main loop not to collect state.
4313 * target-delegates.c: Rebuild.
4315 2014-07-23 Gary Benson <gbenson@redhat.com>
4317 * cp-support.c (gdb_demangle): Fix build on systems without
4320 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4322 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4323 for reference entry value target data value.
4325 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4327 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4328 value_available_contents_eq.
4330 2014-07-22 Pedro Alves <palves@redhat.com>
4332 * value.c (allocate_optimized_out_value): Don't mark value as
4335 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4337 * MAINTAINERS (Write After Approval): Update my email address.
4339 2014-07-20 Doug Evans <dje@google.com>
4342 * remote.c (putpkt_binary): Add text to error message.
4344 2014-07-20 Yao Qi <yao@codesourcery.com>
4346 * eval.c: Remove "Chill" from comments.
4347 * gdbtypes.h: Likewise.
4348 * symtab.h: Likewise.
4350 2014-07-20 Yao Qi <yao@codesourcery.com>
4352 * std-operator.def: Update comments to TERNOP_SLICE.
4354 2014-07-20 Yao Qi <yao@codesourcery.com>
4356 * std-operator.def: Remove BINOP_RANGE.
4357 * breakpoint.c (watchpoint_exp_is_const): Update.
4358 * expprint.c (dump_subexp_body_standard): Likewise.
4359 * eval.c (init_array_element): Remove dead code.
4360 (evaluate_subexp_standard): Likewise.
4362 2014-07-20 Yao Qi <yao@codesourcery.com>
4364 * std-operator.def: Remove BINOP_IN.
4365 * breakpoint.c (watchpoint_exp_is_const): Update.
4366 * eval.c (evaluate_subexp_standard): Likewise.
4367 * expprint.c (dump_subexp_body_standard): Likewise.
4369 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4371 * microblaze-tdep.c (microblaze_register_names): Add
4372 the rshr and rslr register names.
4373 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4374 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4375 Use of tdesc_numbered_register. Use of
4376 microblaze_register_g_packet_guesses. Use of
4377 tdesc_use_registers. Use of set_gdbarch_register_type.
4378 (microblaze_register_g_packet_guesses): New.
4379 * microblaze-tdep.h (microblaze_reg_num): Add
4380 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4381 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4382 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4383 * features/microblaze-core.xml: New file.
4384 * features/microblaze-stack-protect.xml: New file.
4385 * features/microblaze-with-stack-protect.c: New file.
4386 * features/microblaze-with-stack-protect.xml: New file.
4387 * features/microblaze.xml: New file.
4388 * features/microblaze.c: New file.
4389 * features/Makefile (microblaze-with-stack-protect): Add
4390 microblaze-with-stack-protect microblaze and microblaze-expedite.
4391 * regformats/microblaze-with-stack-protect.dat: New file.
4392 * regformats/microblaze.dat: New file.
4393 * doc/gdb.texinfo (MicroBlaze Features): Added.
4395 2014-07-18 Tom Tromey <tromey@redhat.com>
4397 * exec.c (exec_ops): Now static.
4398 * exec.h (exec_ops): Don't declare.
4400 2014-07-18 Tom Tromey <tromey@redhat.com>
4402 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4403 to find_target_beneath.
4404 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4405 find_target_beneath.
4406 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4408 2014-07-18 Tom Tromey <tromey@redhat.com>
4411 * utils.c (quit): Use target_supports_terminal_ours.
4412 * target.h (target_supports_terminal_ours): Declare.
4413 * target.c (target_supports_delete_record): Don't check
4414 to_delete_record against NULL.
4415 (target_supports_terminal_ours): New function.
4417 2014-07-18 Tom Tromey <tromey@redhat.com>
4420 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4421 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4422 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4423 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4424 * windows-nat.c (windows_xfer_partial): Always delegate.
4425 * record-btrace.c (record_btrace_xfer_partial): Simplify
4427 (record_btrace_fetch_registers, record_btrace_store_registers)
4428 (record_btrace_prepare_to_store, record_btrace_resume)
4429 (record_btrace_wait, record_btrace_find_new_threads)
4430 (record_btrace_thread_alive): Likewise.
4431 * procfs.c (procfs_xfer_partial): Always delegate.
4432 * corelow.c (core_xfer_partial): Always delegate.
4433 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4435 2014-07-18 Tom Tromey <tromey@redhat.com>
4437 * exec.c (exec_make_note_section): Move earlier.
4439 2014-07-17 Doug Evans <dje@google.com>
4442 * maint.c (count_symtabs_and_blocks): Handle NULL
4443 current_program_space.
4444 (report_command_stats): Check global enabled flag in addition to
4445 recorded enabled flag.
4446 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4448 2014-07-16 Pedro Alves <palves@redhat.com>
4450 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4452 2014-07-16 Tom Tromey <tromey@redhat.com>
4454 * target.h (struct target_ops) <to_delete_record>: Reformat
4457 2014-07-16 Tom Tromey <tromey@redhat.com>
4459 * target-delegates.c: Rebuild.
4461 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4463 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4464 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4465 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4466 (avr_pointer_to_address): Likewise.
4467 (avr_address_class_type_flags): New function.
4468 (avr_address_class_type_flags_to_name): Likewise.
4469 (avr_address_class_name_to_type_flags): Likewise.
4470 (avr_gdbarch_init): Set address_class_type_flags,
4471 address_class_type_flags_to_name and
4472 address_class_name_to_type_flags.
4474 2014-07-15 Pedro Alves <palves@redhat.com>
4476 * linux-nat.c (kill_callback): Save errno and work with saved
4479 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4481 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4483 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4485 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4486 breakpoint support correctly.
4488 2014-07-14 Pedro Alves <palves@redhat.com>
4490 * utils.c (prompt_for_continue): Call target_terminal_ours.
4492 2014-07-14 Pedro Alves <palves@redhat.com>
4494 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4495 catch_errors. Don't re-enable stdin or notify observers where,
4497 (fetch_inferior_event_wrapper): Delete.
4499 2014-07-14 Pedro Alves <palves@redhat.com>
4502 * top.c: Include "inf-loop.h".
4503 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4505 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4507 (gdb_readline_wrapper): Store whether the target is async, and
4510 2014-07-14 Pedro Alves <palves@redhat.com>
4513 * top.c (gdb_readline_wrapper_line): Tweak comment.
4514 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4515 the input handler callback.
4517 2014-07-14 Pedro Alves <palves@redhat.com>
4520 * main.c: Include event-top.h.
4521 (handle_command_errors): New function.
4522 (catch_command_errors, catch_command_errors_const): Use it.
4524 2014-07-14 Pedro Alves <palves@redhat.com>
4526 * exceptions.c (catch_command_errors, catch_command_errors_const):
4528 * exceptions.h (catch_command_errors_ftype)
4529 (catch_command_errors_const_ftype): Moved to main.c.
4530 (catch_command_errors, catch_command_errors_const): Delete
4532 * main.c (catch_command_errors_ftype)
4533 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4534 (catch_command_errors, catch_command_errors_const)): Moved here
4535 from exceptions.c and make static.
4537 2014-07-14 Pedro Alves <palves@redhat.com>
4539 * exceptions.c (print_any_exception): Delete.
4540 (catch_exceptions_with_msg): Use exception_print instead of
4541 print_any_exception.
4542 (catch_errors): Use exception_fprintf instead of
4543 print_any_exception.
4544 (catch_command_errors, catch_command_errors_const): Use
4545 exception_print instead of print_any_exception.
4547 2014-07-14 Pedro Alves <palves@redhat.com>
4549 * infcall.c (run_inferior_call): Set 'sync_execution' while
4550 running the inferior call.
4552 2014-07-14 Pedro Alves <palves@redhat.com>
4554 * value.c (value_contents_equal): Delete function.
4555 * value.h (value_contents_equal): Delete declaration.
4557 2014-07-14 Tom Tromey <tromey@redhat.com>
4560 * gdbtypes.c (is_dynamic_type_internal): New function, from
4562 (is_dynamic_type): Rewrite.
4563 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4564 (resolve_dynamic_struct): Likewise.
4565 (resolve_dynamic_type_internal): New function, from
4566 resolve_dynamic_type.
4567 (resolve_dynamic_type): Rewrite.
4569 2014-07-14 Tom Tromey <tromey@redhat.com>
4571 * target.c (target_require_runnable): Also check record_stratum.
4574 2014-07-11 Yao Qi <yao@codesourcery.com>
4576 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4577 thumb_instruction_restores_sp return true.
4579 2014-07-11 Yao Qi <yao@codesourcery.com>
4581 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4582 (thumb_in_function_epilogue_p): Call
4583 thumb_instruction_restores_sp.
4585 2014-07-11 Yao Qi <yao@codesourcery.com>
4587 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4589 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4591 2014-07-11 Gary Benson <gbenson@redhat.com>
4593 * amd64-linux-nat.c (gdbcore.h): Remove include.
4594 (regset.h): Likewise.
4595 (nat/linux-btrace.h): Likewise.
4596 (btrace.h): Likewise.
4597 (gdb_assert.h): Likewise.
4598 (string.h): Likewise.
4599 (sys/uio.h): Likewise.
4600 (sys/debugreg.h): Likewise.
4601 (sys/syscall.h): Likewise.
4602 (sys/procfs.h): Likewise.
4603 (sys/user.h): Likewise.
4604 (asm/ptrace.h): Likewise.
4605 (i386-nat.h): Likewise.
4606 * i386-linux-nat.c (i386-nat.h): Likewise.
4607 (regset.h): Likewise.
4608 (target.h): Likewise.
4609 (linux-nat.h): Likewise.
4610 (nat/linux-btrace.h): Likewise.
4611 (btrace.h): Likewise.
4612 (gdb_assert.h): Likewise.
4613 (string.h): Likewise.
4614 (sys/uio.h): Likewise.
4615 (sys/user.h): Likewise.
4616 (sys/procfs.h): Likewise.
4617 (sys/reg.h): Likewise.
4618 (sys/debugreg.h): Likewise.
4619 (ORIG_EAX): Remove definition.
4621 2014-07-11 Gary Benson <gbenson@redhat.com>
4623 * i386-linux-nat.h: New file.
4624 * x86-linux-nat.h: Likewise.
4625 * x86-linux-nat.c: Likewise.
4626 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4627 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4628 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4629 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4630 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4631 (PTRACE_SETREGSET): Likewise.
4632 (arch_lwp_info): Now in x86-linux-nat.c.
4633 (have_ptrace_getregset): Now in x86-linux-nat.h.
4634 (x86_linux_dr_get): Now in x86-linux-nat.c.
4635 (x86_linux_dr_set): Likewise.
4636 (x86_linux_dr_get_addr): Likewise.
4637 (x86_linux_dr_get_control): Likewise.
4638 (x86_linux_dr_get_status): Likewise.
4639 (update_debug_registers_callback): Likewise.
4640 (x86_linux_dr_set_control): Likewise.
4641 (x86_linux_dr_set_addr): Likewise.
4642 (x86_linux_prepare_to_resume): Likewise.
4643 (x86_linux_new_thread): Likewise.
4644 (x86_linux_new_fork): Likewise.
4645 (x86_linux_get_thread_area): Likewise.
4646 (super_post_startup_inferior): Likewise.
4647 (x86_linux_child_post_startup_inferior): Likewise.
4648 (AMD64_LINUX_USER64_CS): Likewise.
4649 (AMD64_LINUX_X32_DS): Likewise.
4650 (x86_linux_read_description): Likewise.
4651 (x86_linux_enable_btrace): Likewise.
4652 (x86_linux_disable_btrace): Likewise.
4653 (x86_linux_teardown_btrace): Likewise.
4654 (x86_linux_read_btrace): Likewise.
4655 (x86_linux_create_target): Likewise.
4656 (x86_linux_add_target): Likewise.
4657 * i386-linux-nat.c (x86-linux-nat.h): New include.
4658 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4659 (PTRACE_SETREGSET): Likewise.
4660 (arch_lwp_info): Now in x86-linux-nat.c.
4661 (have_ptrace_getregset): Now in x86-linux-nat.h.
4662 (x86_linux_dr_get): Now in x86-linux-nat.c.
4663 (x86_linux_dr_set): Likewise.
4664 (x86_linux_dr_get_addr): Likewise.
4665 (x86_linux_dr_get_control): Likewise.
4666 (x86_linux_dr_get_status): Likewise.
4667 (update_debug_registers_callback): Likewise.
4668 (x86_linux_dr_set_control): Likewise.
4669 (x86_linux_dr_set_addr): Likewise.
4670 (x86_linux_prepare_to_resume): Likewise.
4671 (x86_linux_new_thread): Likewise.
4672 (x86_linux_new_fork): Likewise.
4673 (x86_linux_get_thread_area): Likewise.
4674 (super_post_startup_inferior): Likewise.
4675 (x86_linux_child_post_startup_inferior): Likewise.
4676 (AMD64_LINUX_USER64_CS): Likewise.
4677 (AMD64_LINUX_X32_DS): Likewise.
4678 (x86_linux_read_description): Likewise.
4679 (x86_linux_enable_btrace): Likewise.
4680 (x86_linux_disable_btrace): Likewise.
4681 (x86_linux_teardown_btrace): Likewise.
4682 (x86_linux_read_btrace): Likewise.
4683 (x86_linux_create_target): Likewise.
4684 (x86_linux_add_target): Likewise.
4686 2014-07-11 Gary Benson <gbenson@redhat.com>
4688 * amd64-linux-nat.c: Comment and whitespace changes.
4689 * i386-linux-nat.c: Comment and whitespace changes.
4691 2014-07-11 Gary Benson <gbenson@redhat.com>
4693 * amd64-linux-nat.c (x86_linux_create_target): New function.
4694 (x86_linux_add_target): Likewise.
4695 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4696 * i386-linux-nat.c (x86_linux_create_target): New function.
4697 (x86_linux_add_target): Likewise.
4698 (_initialize_i386_linux_nat): Delegate to the above new functions.
4700 2014-07-11 Gary Benson <gbenson@redhat.com>
4702 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4703 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4704 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4705 (ps_get_thread_area): Delegate to the above.
4707 2014-07-11 Gary Benson <gbenson@redhat.com>
4709 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4710 x86_linux_read_description. All uses updated. amd64-specific
4711 code conditionalized. Conditionalized i386-specific code added.
4712 Redundant cast removed.
4713 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4714 x86_linux_read_description. All uses updated. i386-specific
4715 code conditionalized. Conditionalized amd64-specific code added.
4716 One sizeof replaced with the actual type it is describing.
4718 2014-07-11 Gary Benson <gbenson@redhat.com>
4720 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4721 x86_linux_dr_get. All uses updated.
4722 (amd64_linux_dr_set): Renamed to
4723 x86_linux_dr_set. All uses updated.
4724 (amd64_linux_dr_get_addr): Renamed to
4725 x86_linux_dr_get_addr. All uses updated.
4726 (amd64_linux_dr_get_control): Renamed to
4727 x86_linux_dr_get_control. All uses updated.
4728 (amd64_linux_dr_get_status): Renamed to
4729 x86_linux_dr_get_status. All uses updated.
4730 (amd64_linux_dr_set_control): Renamed to
4731 x86_linux_dr_set_control. All uses updated.
4732 (amd64_linux_dr_set_addr): Renamed to
4733 x86_linux_dr_set_addr. All uses updated.
4734 (amd64_linux_prepare_to_resume): Renamed to
4735 x86_linux_prepare_to_resume. All uses updated.
4736 (amd64_linux_new_thread): Renamed to
4737 x86_linux_new_thread. All uses updated.
4738 (amd64_linux_new_fork): Renamed to
4739 x86_linux_new_fork. All uses updated.
4740 (amd64_linux_child_post_startup_inferior): Renamed to
4741 x86_linux_child_post_startup_inferior. All uses updated.
4742 (amd64_linux_enable_btrace): Renamed to
4743 x86_linux_enable_btrace. All uses updated.
4744 (amd64_linux_disable_btrace): Renamed to
4745 x86_linux_disable_btrace. All uses updated.
4746 (amd64_linux_teardown_btrace): Renamed to
4747 x86_linux_teardown_btrace. All uses updated.
4748 (amd64_linux_read_btrace): Renamed to
4749 x86_linux_read_btrace. All uses updated.
4750 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4751 x86_linux_dr_get. All uses updated.
4752 (i386_linux_dr_set): Renamed to
4753 x86_linux_dr_set. All uses updated.
4754 (i386_linux_dr_get_addr): Renamed to
4755 x86_linux_dr_get_addr. All uses updated.
4756 (i386_linux_dr_get_control): Renamed to
4757 x86_linux_dr_get_control. All uses updated.
4758 (i386_linux_dr_get_status): Renamed to
4759 x86_linux_dr_get_status. All uses updated.
4760 (i386_linux_dr_set_control): Renamed to
4761 x86_linux_dr_set_control. All uses updated.
4762 (i386_linux_dr_set_addr): Renamed to
4763 x86_linux_dr_set_addr. All uses updated.
4764 (i386_linux_prepare_to_resume): Renamed to
4765 x86_linux_prepare_to_resume. All uses updated.
4766 (i386_linux_new_thread): Renamed to
4767 x86_linux_new_thread. All uses updated.
4768 (i386_linux_new_fork): Renamed to
4769 x86_linux_new_fork. All uses updated.
4770 (i386_linux_child_post_startup_inferior): Renamed to
4771 x86_linux_child_post_startup_inferior. All uses updated.
4772 (i386_linux_enable_btrace): Renamed to
4773 x86_linux_enable_btrace. All uses updated.
4774 (i386_linux_disable_btrace): Renamed to
4775 x86_linux_disable_btrace. All uses updated.
4776 (i386_linux_teardown_btrace): Renamed to
4777 x86_linux_teardown_btrace. All uses updated.
4778 (i386_linux_read_btrace): Renamed to
4779 x86_linux_read_btrace. All uses updated.
4781 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4783 * remote.c (extended_remote_post_attach): New function.
4784 (init_extended_remote_ops): Install it as to_post_attach method.
4786 2014-07-09 Pedro Alves <palves@redhat.com>
4788 * infcmd.c (attach_command_post_wait): Don't call
4789 target_terminal_inferior here.
4790 (attach_command): Call it here instead.
4792 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4794 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4796 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4797 from varobj.c, with additional checks.
4798 (c_varobj_ops): Fill in is_path_expr_parent field.
4799 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4800 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4802 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4804 (varobj_default_is_path_expr_parent): New function.
4805 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4806 (varobj_default_is_path_expr_parent): Declare new function.
4808 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4810 * infcmd.c (finish_backward): Turn internal error into normal error.
4812 2014-07-07 Pedro Alves <palves@redhat.com>
4815 * remote.c (async_handle_remote_sigint)
4816 (async_handle_remote_sigint_twice): Call
4817 gdb_call_async_signal_handler instead of
4818 mark_async_signal_handler.
4820 2014-07-07 Tom Tromey <tromey@redhat.com>
4822 * target-delegates.c: Rebuild.
4823 * target.c (target_info_record): Remove.
4824 * record.c (info_record_command): Unconditionally call
4826 * target.h (struct target_ops) <to_info_record>: Use
4827 TARGET_DEFAULT_IGNORE.
4828 (target_info_record): Remove.
4830 2014-07-07 Tom Tromey <tromey@redhat.com>
4832 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4833 TARGET_DEFAULT_NORETURN.
4834 * target.c (generic_tls_error): New function.
4835 (target_translate_tls_address): Don't search target stack.
4836 * target-delegates.c: Rebuild.
4837 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4839 * linux-thread-db.c (thread_db_get_thread_local_address):
4840 Unconditionally call beneath target.
4842 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4844 * cli/cli-logging.c (pop_output_files): Assign targerr to
4847 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * MAINTAINERS (Write After Approval): Update my email address.
4851 2014-07-02 Gary Benson <gbenson@redhat.com>
4853 * proc-service.c (ps_xfer_memory): Update comment.
4854 (ps_pstop): Remove unused function.
4855 (ps_pcontinue): Likewise.
4856 (ps_lstop): Likewise.
4857 (ps_lcontinue): Likewise.
4858 (ps_lgetxregsize): Likewise.
4859 (ps_lgetxregs): Likewise.
4860 (ps_lsetxregs): Likewise.
4861 (ps_plog): Likewise.
4862 (ps_ptread): Likewise.
4863 (ps_ptwrite): Likewise.
4865 2014-07-01 Mark Wielaard <mjw@redhat.com>
4867 * dwarf2read.c (add_array_cv_type): New function.
4868 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4869 (read_tag_volatile_type): Likewise.
4871 2014-07-01 Tom Tromey <tromey@redhat.com>
4873 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4874 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4875 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4876 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4877 * command.h (cmd_cfunc_ftype): Move earlier.
4878 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4879 (add_com, add_info): Use cmd_cfunc_ftype.
4881 2014-06-30 Tom Tromey <tromey@redhat.com>
4883 * symtab.c (operator_chars): Make parameters and return type
4885 (file_matches): Make "files" const.
4886 (struct search_symbols_data) <files>: Now const.
4887 (search_symbols): Make "regexp" and "files" parameters const.
4889 (symtab_symbol_info): Remove cast.
4890 (rbreak_command): Update.
4891 * symtab.h (search_symbols): Update.
4893 2014-06-27 Yao Qi <yao@codesourcery.com>
4895 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4896 Change parameter type to 'struct thread_info *'. Caller
4898 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4900 * dummy-frame.c (struct dummy_frame_id): New.
4901 (dummy_frame_id_eq): New function.
4902 (struct dummy_frame) <id>: Change its type to 'struct
4904 (dummy_frame_push): Add parameter ptid and save it in
4906 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4908 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4910 (lookup_dummy_frame): Change parameter type to 'struct
4911 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4912 instead of frame_id_eq.
4913 (dummy_frame_pop): Add parameter ptid. Callers updated.
4914 Update comments. Compose dummy_frame_id and pass it to
4916 (dummy_frame_discard): Add parameter ptid.
4917 (dummy_frame_sniffer): Compose dummy_frame_id and call
4918 dummy_frame_id_eq instead of frame_id_eq.
4919 (fprint_dummy_frames): Print ptid.
4920 * dummy-frame.h: Remove comments.
4921 (dummy_frame_push): Add ptid in declaration.
4922 (dummy_frame_pop, dummy_frame_discard): Likewise.
4924 2014-06-26 Tom Tromey <tromey@redhat.com>
4926 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4927 * command.h (error_no_arg): Update.
4929 2014-06-26 Tom Tromey <tromey@redhat.com>
4931 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4932 (do_show_command): Make "arg" const.
4933 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4935 2014-06-26 Tom Tromey <tromey@redhat.com>
4937 * record-full.c (record_full_get_bookmark): Make "args" const.
4938 (record_full_goto_bookmark): Make "raw_bookmark" const.
4939 * record.c (record_goto): New function.
4940 (cmd_record_goto): Use it. Now static.
4941 * record.h (record_goto): Declare.
4942 (cmd_record_goto): Remove declaration.
4943 * target-delegates.c: Rebuild.
4944 * target.h (struct target_ops) <to_get_bookmark,
4945 to_goto_bookmark>: Make parameter const.
4947 2014-06-26 Tom Tromey <tromey@redhat.com>
4949 * defs.h (generic_load): Update.
4950 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4951 * monitor.c (monitor_load): Make "args" const.
4952 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4953 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4955 (mips_load): Make "file" const.
4956 * remote-sim.c (gdbsim_load): Make "args" const.
4957 * remote.c (remote_load): Make "name" const.
4958 * symfile.c (generic_load): Make "args" const.
4959 * target-delegates.c: Rebuild.
4960 * target.c (target_load): Make "arg" const.
4961 (debug_to_load): Make "args" const.
4962 * target.h (struct target_ops) <to_load>: Make parameter const.
4963 (target_load): Update.
4965 2014-06-26 Tom Tromey <tromey@redhat.com>
4968 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4969 (dwarf2_physname, read_partial_die)
4970 (guess_partial_die_structure_name, fixup_partial_die)
4971 (guess_full_die_structure_name, anonymous_struct_prefix)
4972 (dwarf2_name): Use per-BFD obstack.
4974 2014-06-26 Yao Qi <yao@codesourcery.com>
4976 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4977 dummyframe and this_id into inner block below.
4979 2014-06-26 Yao Qi <yao@codesourcery.com>
4981 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4982 with "signal_pass[0]" in the initialization of signal_pass.
4984 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4986 * record-btrace.c (record_btrace_generating_corefile)
4987 (record_btrace_prepare_to_generate_core)
4988 (record_btrace_done_generating_core): New.
4989 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4990 (record_btrace_store_registers, record_btrace_prepare_to_store):
4991 Forward request when generating a core file.
4992 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4993 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4994 to_done_generating_core.
4996 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4998 * target.h (target_ops) <to_prepare_to_generate_core>
4999 <to_done_generating_core>: New.
5000 (target_prepare_to_generate_core, target_done_generating_core): New.
5001 * target.c (target_prepare_to_generate_core)
5002 (target_done_generating_core): New.
5003 * target-delegates.c: Regenerate.
5004 * gcore.c: (write_gcore_file): Rename to ...
5005 (write_gcore_file_1): ...this.
5006 (write_gcore_file): Call target_prepare_to_generate_core
5007 and target_done_generating_core.
5009 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5011 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5012 * gcore.c (write_gcore_file): Free memory returned from
5013 make_corefile_notes.
5014 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5015 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5017 2014-06-24 Yao Qi <yao@codesourcery.com>
5019 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5020 (arm_linux_init_abi): Set skip_trampoline_code with
5021 gdbarch_skip_trampoline_code instead of
5022 find_solib_trampoline_target.
5024 2014-06-24 Yao Qi <yao@codesourcery.com>
5026 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5027 arm_skip_bx_reg returns non-zero.
5029 2014-06-24 Yao Qi <yao@codesourcery.com>
5031 * arm-tdep.c (arm_skip_bx_reg): New function.
5032 (arm_skip_stub): Call arm_skip_bx_reg.
5034 2014-06-23 Don Breazeal <donb@codesourcery.com>
5036 * MAINTAINERS: Add myself as write-after-approval maintainer.
5038 2014-06-23 Pedro Alves <palves@redhat.com>
5040 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5041 DR_CONTROL before setting DR0..DR3.
5042 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5043 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5044 bits of DR_CONTROL related to the debug register slot being
5045 disabled. If all slots are vacant, clear local slowdown as well,
5046 and assert DR_CONTROL is 0.
5048 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5050 * python/lib/gdb/command/xmethods.py
5051 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5052 current progspace only if the string "progspace" matches LOCUS_RE.
5054 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5056 Fix --with-system-readline with readline-6.3 patch 5.
5057 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5058 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5061 2014-06-20 Tom Tromey <tromey@redhat.com>
5063 * dwarf2read.c (dw2_get_real_path): Use correct type in
5065 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5067 2014-06-20 Gary Benson <gbenson@redhat.com>
5069 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5070 * common/glibc_thread_db.h: Likewise.
5071 * common/i386-cpuid.h: Likewise.
5072 * common/i386-gcc-cpuid.h: Likewise.
5073 * common/linux-btrace.h: Likewise.
5074 * common/linux-osdata.h: Likewise.
5075 * common/linux-procfs.h: Likewise.
5076 * common/linux-ptrace.h: Likewise.
5077 * common/mips-linux-watch.h: Likewise.
5078 * common/linux-btrace.c: Moved to nat.
5079 * common/linux-osdata.c: Likewise.
5080 * common/linux-procfs.c: Likewise.
5081 * common/linux-ptrace.c: Likewise.
5082 * common/mips-linux-watch.c: Likewise.
5083 * nat/gdb_thread_db.h: Moved from common.
5084 * nat/glibc_thread_db.h: Likewise.
5085 * nat/i386-cpuid.h: Likewise.
5086 * nat/i386-gcc-cpuid.h: Likewise.
5087 * nat/linux-btrace.c: Likewise.
5088 * nat/linux-btrace.h: Likewise.
5089 * nat/linux-osdata.c: Likewise.
5090 * nat/linux-osdata.h: Likewise.
5091 * nat/linux-procfs.c: Likewise.
5092 * nat/linux-procfs.h: Likewise.
5093 * nat/linux-ptrace.c: Likewise.
5094 * nat/linux-ptrace.h: Likewise.
5095 * nat/mips-linux-watch.c: Likewise.
5096 * nat/mips-linux-watch.h: Likewise.
5097 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5098 (object file files): Reordered.
5099 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5100 of glibc_thread_db.h.
5102 2014-06-20 Gary Benson <gbenson@redhat.com>
5104 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5105 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5106 (i386_dr_low): Likewise.
5107 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5108 (i386_dr_low_set_addr): Likewise.
5109 (i386_dr_low_get_addr): Likewise.
5110 (i386_dr_low_can_set_control): Likewise.
5111 (i386_dr_low_set_control): Likewise.
5112 (i386_dr_low_get_control): Likewise.
5113 (i386_dr_low_get_status): Likewise.
5114 (i386_get_debug_register_length): Likewise.
5115 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5116 (i386_dr_low): Likewise.
5117 * nat/i386-dregs.c (i386-low.h): Remove include.
5118 (i386-nat.h): Likewise.
5119 (nat/i386-dregs.h): New include.
5120 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5121 (i386_dr_low_set_addr): Likewise.
5122 (i386_dr_low_get_addr): Likewise.
5123 (i386_dr_low_can_set_control): Likewise.
5124 (i386_dr_low_set_control): Likewise.
5125 (i386_dr_low_get_control): Likewise.
5126 (i386_dr_low_get_status): Likewise.
5127 (i386_get_debug_register_length): Likewise.
5128 (debug_hw_points): Likewise.
5130 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5132 * Makefile.in (SFILES): Add d-exp.y.
5133 (YYFILES): Add d-exp.c.
5134 (YYOBJ): Add d-exp.o.
5135 (local-maintainer-clean): Delete d-exp.c.
5136 * d-exp.y: New file.
5137 * d-lang.h (d_parse): New declaration.
5138 (d_error): New declaration.
5139 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5140 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5141 PREC_ORDER operators.
5142 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5144 2014-06-19 Yao Qi <yao@codesourcery.com>
5146 * gdbthread.h (any_running): Remove the declaration.
5147 * thread.c (any_running): Remove.
5149 2014-06-19 Yao Qi <yao@codesourcery.com>
5151 * gdbthread.h (struct thread_info) <state>: Change its type to
5152 'enum thread_state'. Update comments.
5154 2014-06-19 Pedro Alves <palves@redhat.com>
5156 * gdbthread.h (ALL_THREADS): Delete.
5157 (ALL_NON_EXITED_THREADS): New macro.
5158 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5159 instead of ALL_THREADS.
5160 * infrun.c (find_thread_needs_step_over)
5161 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5162 instead of ALL_THREADS.
5163 * record-btrace.c (record_btrace_open)
5164 (record_btrace_stop_recording, record_btrace_close)
5165 (record_btrace_is_replaying, record_btrace_resume)
5166 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5167 * remote.c (append_pending_thread_resumptions): Likewise.
5168 * thread.c (thread_apply_all_command): Likewise.
5170 2014-06-19 Gary Benson <gbenson@redhat.com>
5172 * i386-nat.c (i386_stopped_by_watchpoint):
5173 Use i386_dr_stopped_by_watchpoint.
5174 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5175 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5177 2014-06-19 Gary Benson <gbenson@redhat.com>
5179 * nat/i386-dregs.c: New file.
5180 * Makefile.in (i386-dregs.o): New rule.
5181 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5182 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5183 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5184 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5185 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5186 * config/i386/go32.mh (NATDEPFILES): Likewise.
5187 * config/i386/linux.mh (NATDEPFILES): Likewise.
5188 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5189 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5190 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5191 * i386-nat.h (debug_hw_points): New declaration.
5192 * i386-nat.c (breakpoint.h): Remove include.
5193 (command.h): Likewise.
5194 (target.h): Likewise.
5195 (gdb_assert.h): Likewise.
5196 (debug_hw_points): Made nonstatic.
5197 (debug_printf): Now in i386-dregs.c.
5198 (TARGET_HAS_DR_LEN_8): Likewise.
5199 (DR_CONTROL_SHIFT): Likewise.
5200 (DR_CONTROL_SIZE): Likewise.
5201 (DR_RW_EXECUTE): Likewise.
5202 (DR_RW_WRITE): Likewise.
5203 (DR_RW_READ): Likewise.
5204 (DR_RW_IORW): Likewise.
5205 (DR_LEN_1): Likewise.
5206 (DR_LEN_2): Likewise.
5207 (DR_LEN_4): Likewise.
5208 (DR_LEN_8): Likewise.
5209 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5210 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5211 (DR_ENABLE_SIZE): Likewise.
5212 (DR_LOCAL_SLOWDOWN): Likewise.
5213 (DR_GLOBAL_SLOWDOWN): Likewise.
5214 (DR_CONTROL_RESERVED): Likewise.
5215 (I386_DR_CONTROL_MASK): Likewise.
5216 (I386_DR_VACANT): Likewise.
5217 (I386_DR_LOCAL_ENABLE): Likewise.
5218 (I386_DR_GLOBAL_ENABLE): Likewise.
5219 (I386_DR_DISABLE): Likewise.
5220 (I386_DR_SET_RW_LEN): Likewise.
5221 (I386_DR_GET_RW_LEN): Likewise.
5222 (I386_DR_WATCH_HIT): Likewise.
5223 (i386_wp_op_t): Likewise.
5224 (i386_show_dr): Likewise.
5225 (i386_length_and_rw_bits): Likewise.
5226 (i386_insert_aligned_watchpoint): Likewise.
5227 (i386_remove_aligned_watchpoint): Likewise.
5228 (i386_handle_nonaligned_watchpoint): Likewise.
5229 (i386_update_inferior_debug_regs): Likewise.
5230 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5231 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5232 (i386_region_ok_for_watchpoint):
5233 Use i386_dr_region_ok_for_watchpoint.
5234 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5236 2014-06-19 Gary Benson <gbenson@redhat.com>
5238 * i386-nat.c (i386_insert_hw_breakpoint): Use
5239 i386_insert_watchpoint.
5240 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5242 2014-06-19 Gary Benson <gbenson@redhat.com>
5244 * i386-nat.c (i386_dr_show): Renamed to
5245 i386_show_dr and made static. All uses updated.
5246 (i386_dr_length_and_rw_bits): Renamed to
5247 i386_length_and_rw_bits and made static.
5249 (i386_dr_insert_aligned_watchpoint): Renamed to
5250 i386_insert_aligned_watchpoint and made static.
5252 (i386_dr_remove_aligned_watchpoint): Renamed to
5253 i386_remove_aligned_watchpoint and made static.
5255 (i386_dr_update_inferior_debug_regs): Renamed to
5256 i386_update_inferior_debug_regs and made static.
5258 * nat/i386-dregs.h (i386_dr_show): Removed.
5259 (i386_dr_length_and_rw_bits): Likewise.
5260 (i386_dr_insert_aligned_watchpoint): Likewise.
5261 (i386_dr_remove_aligned_watchpoint): Likewise.
5262 (i386_dr_update_inferior_debug_regs): Likewise.
5264 2014-06-19 Gary Benson <gbenson@redhat.com>
5266 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5267 * configure: Regenerate.
5268 * config.in: Likewise.
5269 * main.c (signal.h): New include.
5270 (setup_alternate_signal_stack): New function.
5271 (captured_main): Call the above.
5272 * cp-support.c (signal.h): New include.
5273 (catch_demangler_crashes): New flag.
5274 (SIGJMP_BUF): New define.
5275 (SIGSETJMP): Likewise.
5276 (SIGLONGJMP): Likewise.
5277 (gdb_demangle_jmp_buf): New static global.
5278 (gdb_demangle_attempt_core_dump): Likewise.
5279 (gdb_demangle_signal_handler): New function.
5280 (gdb_demangle): If catch_demangler_crashes is set, install the
5281 above signal handler before calling bfd_demangle, and restore
5282 the original signal handler afterwards. Display the offending
5283 symbol and call demangler_warning the first time a segmentation
5285 (_initialize_cp_support): New maint set/show command.
5287 2014-06-19 Gary Benson <gbenson@redhat.com>
5289 * utils.h (resource_limit_kind): New enum.
5290 (can_dump_core): New declaration.
5291 (warn_cant_dump_core): Likewise.
5292 (dump_core): Likewise.
5293 * utils.c (dump_core): Made nonstatic. Added new
5294 parameter "limit_kind".
5295 (can_dump_core): Made nonstatic. Moved printing code to...
5296 (warn_cant_dump_core): New function.
5297 (can_dump_core_warn): Likewise.
5298 (internal_vproblem): Replace calls to can_dump_core with
5299 calls to can_dump_core_warn. Supply new argument to each.
5301 2014-06-19 Gary Benson <gbenson@redhat.com>
5303 * utils.h (demangler_vwarning): New declaration.
5304 (demangler_warning): Likewise.
5305 * utils.c (struct internal_problem)
5306 <user_settable_should_quit>: New field.
5307 <user_settable_should_dump_core>: Likewise
5308 (internal_error_problem): Add values for above new fields.
5309 (internal_warning_problem): Likewise.
5310 (demangler_warning_problem): New static global.
5311 (demangler_vwarning): New function.
5312 (demangler_warning): Likewise.
5313 (add_internal_problem_command): Selectively add commands.
5314 (_initialize_utils): New internal problem command.
5315 * maint.c (maintenance_demangler_warning): New function.
5316 (_initialize_maint_cmds): New command.
5318 2014-06-18 Tom Tromey <tromey@redhat.com>
5320 * f-valprint.c (info_common_command_for_block): Update.
5321 * symtab.h (struct general_symbol_info) <common_block>: Now
5324 2014-06-18 Tom Tromey <tromey@redhat.com>
5326 * symtab.h (struct symtab) <blockvector>: Now const.
5327 * ada-lang.c (ada_add_global_exceptions): Update.
5328 * buildsym.c (augment_type_symtab): Update.
5329 * dwarf2read.c (dw2_lookup_symbol): Update.
5330 * jit.c (finalize_symtab): Update.
5331 * jv-lang.c (add_class_symtab_symbol): Update.
5332 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5334 * objfiles.c (objfile_relocate1): Update.
5335 * psymtab.c (lookup_symbol_aux_psymtabs)
5336 (maintenance_check_psymtabs): Update.
5337 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5339 * spu-tdep.c (spu_catch_start): Update.
5340 * symmisc.c (dump_symtab_1): Update.
5341 * symtab.c (lookup_global_symbol_from_objfile)
5342 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5343 (basic_lookup_transparent_type_quick)
5344 (basic_lookup_transparent_type, find_pc_sect_symtab)
5345 (find_pc_sect_line, search_symbols): Update.
5346 * block.c (find_block_in_blockvector): Make "bl" const.
5347 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5349 (blockvector_contains_pc): Make "bv" const.
5350 (block_for_pc_sect): Update.
5351 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5352 (blockvector_contains_pc): Update.
5353 * breakpoint.c (resolve_sal_pc): Update.
5354 * inline-frame.c (block_starting_point_at): Update.
5356 2014-06-18 Tom Tromey <tromey@redhat.com>
5358 * completer.c (complete_line): Make "line_buffer" const.
5359 * completer.h (complete_line): Update.
5361 2014-06-18 Tom Tromey <tromey@redhat.com>
5363 * symtab.c (add_macro_name): Remove unneeded cast.
5365 2014-06-18 Tom Tromey <tromey@redhat.com>
5367 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5368 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5370 2014-06-18 Tom Tromey <tromey@redhat.com>
5372 * probe.c (info_probes_for_ops): Make "arg" const.
5373 * probe.h (info_probes_for_ops): Update.
5375 2014-06-18 Tom Tromey <tromey@redhat.com>
5377 * varobj.c (varobj_create): Update.
5378 * valops.c (value_of_this): Update.
5379 * tracepoint.c (add_local_symbols, scope_info): Update.
5380 * symtab.h (struct general_symbol_info) <block>: Now const.
5381 * symtab.c (skip_prologue_sal)
5382 (default_make_symbol_completion_list_break_on)
5383 (skip_prologue_using_sal): Update.
5384 * stack.h (iterate_over_block_locals)
5385 (iterate_over_block_local_vars): Update.
5386 * stack.c (print_frame_args): Update.
5387 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5389 (get_selected_block): Make return type const.
5390 * python/py-frame.c (frapy_block): Update.
5391 * python/py-block.c (gdbpy_block_for_pc): Update.
5392 * p-exp.y (%union) <bval>: Now const.
5393 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5394 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5395 * m2-exp.y (%union) <bval>: Now const.
5396 * linespec.c (get_current_search_block): Make return type const.
5397 (create_sals_line_offset, find_label_symbols): Update.
5398 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5400 (block_starting_point_at): Make "block" const.
5401 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5402 (check_exception_resume): Update.
5403 * guile/scm-frame.c (gdbscm_frame_block): Update.
5404 * guile/scm-block.c (gdbscm_lookup_block): Update.
5405 * frame.h (get_frame_block): Update.
5406 (get_selected_block): Make return type const.
5407 * frame.c (frame_id_inner): Update.
5408 * f-valprint.c (info_common_command_for_block)
5409 (info_common_command): Update.
5410 * dwarf2loc.c (dwarf2_find_location_expression)
5411 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5412 (locexpr_describe_location_piece): Update.
5413 * c-exp.y (%union) <bval>: Now const.
5414 * breakpoint.c (resolve_sal_pc): Update.
5415 * blockframe.c (get_frame_block):Make return type const.
5416 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5417 (block_innermost_frame): Update.
5418 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5419 (block_for_pc, block_for_pc_sect): Update.
5420 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5422 (block_for_pc_sect, block_for_pc): Make return type const.
5423 * ax-gdb.c (gen_expr): Update.
5424 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5425 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5426 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5427 (ada_read_var_value): Update.
5428 * ada-exp.y (struct name_info) <block>: Now const.
5430 (block_lookup): Constify.
5432 2014-06-18 Gary Benson <gbenson@redhat.com>
5434 * nat/i386-dregs.h: New file.
5435 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5436 * i386-nat.h (i386-dregs.h): New include.
5437 (DR_FIRSTADDR): Now in i386-dregs.h.
5438 (DR_LASTADDR): Likewise.
5439 (DR_NADDR): Likewise.
5440 (DR_STATUS): Likewise.
5441 (DR_CONTROL): Likewise.
5442 (i386_debug_reg_state): Likewise.
5443 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5445 2014-06-18 Don Breazeal <donb@codesourcery.com>
5447 * breakpoint.c (set_longjmp_breakpoint): Call
5448 momentary_breakpoint_from_master with additional argument.
5449 (set_longjmp_breakpoint_for_call_dummy): Call
5450 momentary_breakpoint_from_master with additional argument.
5451 (set_std_terminate_breakpoint): Call
5452 momentary_breakpoint_from_master with additional argument.
5453 (momentary_breakpoint_from_master): Add argument to function
5454 definition and use it to initialize structure member flag.
5455 (clone_momentary_breakpoint): Call
5456 momentary_breakpoint_from_master with additional argument.
5457 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5458 member flags set in momentary_breakpoint_from_master.
5460 2014-06-18 Gary Benson <gbenson@redhat.com>
5462 * i386-nat.c (i386_show_dr): Renamed to
5463 i386_dr_show and made nonstatic. All uses updated.
5464 (i386_length_and_rw_bits): Renamed to
5465 i386_dr_length_and_rw_bits and made nonstatic.
5467 (i386_insert_aligned_watchpoint): Renamed to
5468 i386_dr_insert_aligned_watchpoint and made nonstatic.
5470 (i386_remove_aligned_watchpoint): Renamed to
5471 i386_dr_remove_aligned_watchpoint and made nonstatic.
5473 (i386_update_inferior_debug_regs): Renamed to
5474 i386_dr_update_inferior_debug_regs and made nonstatic.
5477 2014-06-18 Gary Benson <gbenson@redhat.com>
5479 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5480 (i386_dr_low_can_set_control): Likewise.
5481 (i386_dr_low_set_addr): Likewise.
5482 (i386_dr_low_set_control): Likewise.
5483 (i386_dr_low_get_addr): Likewise.
5484 (i386_dr_low_get_status): Likewise.
5485 (i386_dr_low_get_control): Likewise.
5486 (i386_insert_aligned_watchpoint): Use new macros.
5487 (i386_update_inferior_debug_regs): Likewise.
5488 (i386_stopped_data_address): Likewise.
5490 2014-06-18 Gary Benson <gbenson@redhat.com>
5492 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5493 New parameter. All uses updated.
5495 2014-06-18 Gary Benson <gbenson@redhat.com>
5497 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5500 2014-06-18 Gary Benson <gbenson@redhat.com>
5502 * i386-nat.c (debug_printf): New macro.
5503 (i386_get_debug_register_length): Likewise.
5504 (TARGET_HAS_DR_LEN_8): Use above macro.
5505 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5506 and printf_unfiltered. Use phex to format values.
5508 2014-06-18 Gary Benson <gbenson@redhat.com>
5510 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5513 2014-06-18 Gary Benson <gbenson@redhat.com>
5515 * i386-nat.c: Comment changes.
5517 2014-06-18 Gary Benson <gbenson@redhat.com>
5519 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5521 2014-06-18 Gary Benson <gbenson@redhat.com>
5523 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5524 (i386_insert_aligned_watchpoint): Likewise.
5525 (i386_remove_aligned_watchpoint): Likewise.
5526 (i386_handle_nonaligned_watchpoint): Likewise.
5528 2014-06-18 Gary Benson <gbenson@redhat.com>
5530 * i386-nat.c: Whitespace changes.
5532 2014-06-17 Samuel Bronson <naesten@gmail.com>
5534 * MAINTAINERS: Update Roland McGrath's email address.
5535 Thanks to Sergio Durigan Junior for pointing out that he left
5536 Red Hat a while ago, and giving me a current address.
5538 2014-06-17 Tom Tromey <tromey@redhat.com>
5540 * utils.h (savestring): Remove declaration.
5542 2014-06-17 Tom Tromey <tromey@redhat.com>
5544 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5546 2014-06-16 Keith Seitz <keiths@redhat.com>
5549 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5550 to update the varobj if inferior_ptid is null_ptid.
5552 2014-06-16 Tom Tromey <tromey@redhat.com>
5554 * target.h (struct target_ops) <to_info_proc>: Make parameter
5556 (target_info_proc): Update.
5557 * target.c (target_info_proc): Make "args" const.
5558 * procfs.c (procfs_info_proc): Update.
5559 * linux-tdep.c (linux_info_proc): Update.
5560 (linux_core_info_proc_mappings): Make "args" const.
5561 (linux_core_info_proc): Update.
5562 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5563 * gdbarch.c: Rebuild.
5564 * gdbarch.h: Rebuild.
5565 * corelow.c (core_info_proc): Update.
5567 2014-06-16 Tom Tromey <tromey@redhat.com>
5569 * target.h (struct target_ops) <to_disconnect>: Make parameter
5571 (target_disconnect): Update.
5572 * target.c (target_disconnect): Make "args" const.
5573 * target-delegates.c: Rebuild.
5574 * remote.c (remote_disconnect): Update.
5575 * record.h (record_disconnect): Update.
5576 * record.c (record_disconnect): Update.
5577 * inf-child.c (inf_child_disconnect): Update.
5579 2014-06-16 Tom Tromey <tromey@redhat.com>
5581 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5582 * target.c (debug_to_rcmd, default_rcmd): Update.
5583 * target-delegates.c: Rebuild.
5584 * remote.c (remote_rcmd): Update.
5585 * monitor.c (monitor_rcmd): Update.
5587 2014-06-16 Pedro Alves <palves@redhat.com>
5589 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5590 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5591 have OBJF_SHARED set.
5592 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5593 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5594 instead of OBJF_USERLOADED.
5595 * objfiles.h (OBJF_SHARED): Update comment.
5596 (userloaded_objfile_contains_address_p): Rename to ...
5597 (shared_objfile_contains_address_p): ... this, and update
5599 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5601 (remove_symbol_file_command): Skip objfiles that don't have
5604 2014-06-16 Tom Tromey <tromey@redhat.com>
5606 * minsyms.h (prim_record_minimal_symbol)
5607 (prim_record_minimal_symbol_and_info): Update comments.
5609 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5611 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5612 or --without-guile, according to how GDB was built.
5614 2014-06-13 Tom Tromey <tromey@redhat.com>
5616 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5618 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5620 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5622 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5623 help_list.Pass all_commands, not -1, to help_list.
5624 * cli/cli-dump.c (dump_command, append_command)
5625 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5626 (binary_dump_command, binary_append_command): Pass all_commands,
5627 not -1, to help_list.
5628 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5630 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5632 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5634 * top.c (set_history): Pass all_commands, not -1, to help_list.
5635 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5636 all_commands, not -1, to help_list.
5637 * symfile.c (overlay_command): Pass all_commands, not -1, to
5639 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5641 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5643 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5645 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5646 not -1, to help_list.
5647 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5648 not -1, to help_list.
5649 * maint.c (maintenance_command, maintenance_info_command)
5650 (maintenance_print_command, maintenance_set_cmd): Pass
5651 all_commands, not -1, to help_list.
5652 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5654 * language.c (set_check): Pass all_commands, not -1, to help_list.
5655 * infcmd.c (unset_command): Pass all_commands, not -1, to
5657 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5659 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5661 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5663 * breakpoint.c (save_command): Pass all_commands, not -1, to
5665 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5666 all_commands, not -1, to help_list.
5668 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5670 * regcache.c (struct register_to_invalidate): New structure.
5671 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5673 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5675 2014-06-12 Yao Qi <yao@codesourcery.com>
5677 * varobj.c (varobj_get_num_children): Call
5678 varobj_is_dynamic_p.
5679 (varobj_list_children): Likewise.
5680 (varobj_update): Likewise. Update comments.
5682 2014-06-12 Yao Qi <yao@codesourcery.com>
5684 * varobj.c (varobj_pretty_printed_p): Rename to ...
5685 (varobj_is_dynamic_p): ... this. New function.
5686 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5687 (varobj_is_dynamic_p): Declare.
5688 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5689 (mi_print_value_p, varobj_update_one): Likewise.
5691 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5692 Yao Qi <yao@codesourcery.com>
5694 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5695 (varobj_get_iterator): Wrap up code for pretty-printer by
5696 "#if HAVE_PYTHON" and "#endif".
5697 (update_dynamic_varobj_children): Likewise.
5699 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5700 Yao Qi <yao@codesourcery.com>
5702 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5703 gdb_python_initialized is false. Move some code from varobj.c.
5704 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5705 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5706 (struct varobj_item): Moved to varobj-iter.h".
5707 (varobj_clear_saved_item): New function.
5708 (update_dynamic_varobj_children): Move python-related code to
5710 (free_variable): Call varobj_clear_saved_item and
5713 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5714 Yao Qi <yao@codesourcery.com>
5716 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5717 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5718 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5719 (py-varobj.o): New rule.
5720 * python/py-varobj.c: New file.
5721 * python/python-internal.h (py_varobj_get_iterator): Declare.
5722 * varobj-iter.h: New file.
5723 * varobj.c: Include "varobj-iter.h"
5724 (struct varobj) <child_iter>: Change its type from "PyObject *"
5725 to "struct varobj_iter *".
5726 <saved_item>: Likewise.
5727 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5728 [HAVE_PYTHON] (varobj_get_iterator): New function.
5729 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5730 python-specific code to python/py-varobj.c.
5731 (install_visualizer): Call varobj_iter_delete instead of
5733 * varobj.h (varobj_ensure_python_env): Declare.
5735 2014-06-12 Yao Qi <yao@codesourcery.com>
5737 * varobj.c (struct varobj_item): New structure.
5738 (create_child_with_value): Update declaration.
5739 (varobj_add_child): Replace arguments 'name' and 'value' with
5740 'item'. All callers updated.
5741 (install_dynamic_child): Likewise.
5742 (update_dynamic_varobj_children): Likewise.
5743 (varobj_add_child): Likewise.
5744 (create_child_with_value): Likewise.
5746 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5748 * NEWS: Create a new section for the next release branch.
5749 Rename the section of the current branch, now that it has
5752 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5754 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5755 * version.in: Bump version to 7.8.50.DATE-cvs.
5757 2014-06-11 Pedro Alves <palves@redhat.com>
5760 * ser-mingw.c (net_windows_socket_check_pending): New function.
5761 (net_windows_select_thread): Ignore spurious wakeups. Use
5762 net_windows_socket_check_pending.
5763 (net_windows_wait_handle): Check for pending events with
5764 ioctlsocket, through net_windows_socket_check_pending, instead of
5765 checking the socket's event.
5767 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5769 * python/python-internal.h (gdb_PyObject_GetAttrString)
5770 (gdb_PyObject_HasAttrString): New inline function definitions.
5771 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5772 char * of the second argument to PyObject_GetAttrString.
5774 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5776 * serial.c (serial_write): Fix index of character to be printed
5777 in call to serial_logchar when serial debug traces are enabled.
5779 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5781 * gdbtypes (resolve_dynamic_range): Add function description.
5783 2014-06-09 Pedro Alves <palves@redhat.com>
5785 * linux-nat.c (linux_child_follow_fork): Initialize status with
5786 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5787 inner block. Only pass the signal to PTRACE_DETACH if in pass
5790 2014-06-09 Gary Benson <gbenson@redhat.com>
5792 * common/signals.c (gdb_signal_from_host): Reorder to separate
5793 the always-available ANSI-standard signals from the signals that
5795 (do_gdb_signal_to_host): Likewise.
5796 * proc-events.c (signal_table): Likewise.
5798 2014-06-08 Hui Zhu <hui@codesourcery.com>
5800 * common/linux-ptrace.c (linux_disable_event_reporting): New
5802 * common/linux-ptrace.h (linux_disable_event_reporting): New
5804 * linux-nat.c (linux_child_follow_fork): Do a single step before
5807 2014-06-07 Keith Seitz <keiths@redhat.com>
5811 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5812 from symbol_matches_domain in symtab.c. All local callers
5813 of symbol_matches_domain updated.
5814 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5815 search STRUCT_DOMAIN.
5816 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5817 independently. standard_lookup will do that automatically.
5818 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5819 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5820 (cp_lookup_symbol_in_namespace): Likewise.
5821 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5822 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5823 may return a STRUCT_DOMAIN match.
5824 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5825 * cp-support.c: Include language.h.
5826 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5828 * psymtab.c (match_partial_symbol): Compare the requested
5829 domain with the symbol's domain directly.
5830 (lookup_partial_symbol): Likewise.
5831 * symtab.c (lookup_symbol_in_language): Explain when/why
5832 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5833 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5834 appropriate languages.
5835 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5836 and moved to ada-lang.c
5837 (lookup_block_symbol): Explain that this function only returns
5838 symbol matching the requested DOMAIN.
5839 Compare the requested domain with the symbol's domain directly.
5840 (iterate_over_symbols): Compare the requested domain with the
5841 symbol's domain directly.
5842 * symtab.h (symbol_matches_domain): Remove.
5844 2014-06-06 Doug Evans <xdje42@gmail.com>
5846 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5847 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5848 (gdbscm_guile_version_is_at_least): Declare.
5849 (gdbscm_scm_string_to_int): Declare.
5850 * guile/guile.c (gdbscm_guile_major_version): New global.
5851 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5852 (guile_datadir): New static global.
5853 (gdbscm_guile_data_directory): New function.
5854 (initialize_scheme_side): Update.
5855 (misc_guile_functions): Add guile-data-directory.
5856 (initialize_gdb_module): Fetch guile version number.
5857 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5858 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5859 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5860 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5862 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5863 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5864 * guile/scm-value.c (gdbscm_value_to_string): Only call
5865 scm_port_conversion_strategy if Guile version >= 2.0.6.
5867 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5869 * main.c (print_gdb_help): Add -q and --silent.
5871 2014-06-06 Gary Benson <gbenson@redhat.com>
5873 * common/signals.c: Remove preprocessor conditionals for
5874 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5875 SIGSEGV and SIGTERM.
5876 * proc-events.c: Likewise.
5878 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5880 * symfile.c (symfile_free_objfile): Remove restriction to
5882 * symfile-mem.c (symbol_file_add_from_memory): Call
5883 add_target_sections_of_objfile.
5885 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5887 * guile/scm-value.c (gdbscm_history_append_x): Use
5888 'vlscm_get_value_smob_arg_unsafe' instead of
5889 'vlscm_scm_to_value'.
5891 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5894 * utils.c (printchar): Don't escape at all if quoter is NUL.
5895 Update function documentation to clarify effect of parameter
5897 * remote.c (escape_buffer): Pass '\\' as the quoter to
5898 fputstrn_unfiltered.
5899 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5900 generate the output.
5901 (mi_solib_unloaded): Same.
5903 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5905 * development.sh: Delete.
5906 * Makefile.in (config.status): Adjust dependency on development.sh.
5907 * configure.ac: Adjust development.sh source call.
5908 * configure: Regenerate.
5910 2014-06-04 Doug Evans <xdje42@gmail.com>
5912 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5913 is_scheme_bkpt, spec.
5914 (bpscm_make_breakpoint_smob): Initialize new members.
5915 (gdbscm_create_breakpoint_x): Split into two ...
5916 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5917 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5918 (scheme_function breakpoint_functions): Update.
5919 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5920 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5921 register-breakpoint!.
5923 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5926 * mem-break.c (z_type_supported): Return zero if
5927 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5929 2014-06-04 Tom Tromey <tromey@redhat.com>
5931 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5932 value_from_contents_and_address_unresolved.
5933 (ada_template_to_fixed_record_type_1): Likewise.
5934 (ada_which_variant_applies): Likewise.
5935 * value.h (value_from_contents_and_address_unresolved): Declare.
5936 * value.c (value_from_contents_and_address_unresolved): New
5938 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5939 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5940 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5942 2014-06-04 Tom Tromey <tromey@redhat.com>
5944 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5946 2014-06-04 Tom Tromey <tromey@redhat.com>
5948 * procfs.c (procfs_attach): Make "args" const.
5949 * windows-nat.c (windows_attach): Make "args" const.
5950 * nto-procfs.c (procfs_attach): Make "args" const.
5951 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5952 * go32-nat.c (go32_attach): Make "args" const.
5953 * gnu-nat.c (gnu_attach): Make "args" const.
5954 * darwin-nat.c (darwin_attach): Make "args" const.
5955 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5956 * linux-nat.c (linux_nat_attach): Make "args" const.
5957 * remote.c (extended_remote_attach_1, extended_remote_attach):
5959 * target.h (struct target_ops) <to_attach>: Make "args" const.
5960 (find_default_attach): Likewise.
5961 * utils.c (parse_pid_to_attach): Make "args" const.
5962 * utils.h (parse_pid_to_attach): Update.
5964 2014-06-04 Tom Tromey <tromey@redhat.com>
5966 * target-delegates.c: Rebuild.
5967 * target.c (default_thread_address_space): New function.
5968 (target_thread_address_space): Simplify.
5969 * target.h (struct target_ops) <to_thread_address_space>: Add
5970 TARGET_DEFAULT_FUNC.
5972 2014-06-04 Doug Evans <xdje42@gmail.com>
5974 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5976 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5978 * record-btrace.c: Include event-loop.h and inf-loop.h.
5979 (record_btrace_resume_exec_dir)
5980 (record_btrace_async_inferior_event_handler)
5981 (record_btrace_handle_async_inferior_event): New.
5982 (record_btrace_open): Create async event handler.
5983 (record_btrace_close): Delete async event handler.
5984 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5985 Mark async event handler.
5986 (record_btrace_execution_direction): New.
5987 (init_record_btrace_ops): Initialize to_execution_direction.
5989 2014-06-03 Doug Evans <xdje42@gmail.com>
5991 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5992 (gdbscm_make_parameter): Ditto.
5994 2014-06-03 Doug Evans <dje@google.com>
5996 * exec.c (exec_close_1): Call clear_section_table instead of
5997 resize_section_table.
5998 (clear_section_table): New function.
5999 (resize_section_table): Make static. Rename arg num_added to
6001 * exec.h (clear_section_table): Declare.
6002 (resize_section_table): Delete.
6003 * progspace.c (release_program_space): Call clear_section_table
6004 instead of resize_section_table.
6006 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6008 * NEWS (Python Scripting): Add entry about the new xmethods
6011 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6013 * python/py-xmethods.c: New file.
6014 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6015 (objfpy_dealloc): XDECREF on the new xmethods field.
6016 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6018 (objfpy_get_xmethods): New function.
6019 (objfile_getset): New entry 'xmethods'.
6020 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6021 (pspy_dealloc): XDECREF on the new xmethods field.
6022 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6024 (pspy_get_xmethods): New function.
6025 (pspace_getset): New entry 'xmethods'.
6026 * python/python-internal.h: Add declarations for new functions.
6027 * python/python.c (_initialize_python): Invoke
6028 gdbpy_initialize_xmethods.
6029 * python/lib/gdb/__init__.py (xmethods): New
6031 * python/lib/gdb/xmethod.py: New file.
6032 * python/lib/gdb/command/xmethods.py: New file.
6034 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6036 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6037 best match method returned by find_overload_match is an xmethod.
6038 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6039 the best matching operator returned by find_overload_match is an
6041 * valops.c: #include "extension.h".
6042 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6043 Return void. The list of matching source methods is returned in
6044 "fn_list" and a vector of matching debug method workers is
6045 returned in "xm_worker_vec". Update all callers.
6046 (value_find_oload_method_list): Likewise.
6047 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6048 non-NULL, then the index of the best matching method in this
6049 vector is returned. Update all callers.
6050 (find_overload_match): Include xmethods while performing overload
6053 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6055 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6056 * extension-priv.h (struct extension_language_ops): Add the
6058 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6059 get_matching_xmethod_workers, get_xmethod_argtypes,
6060 invoke_xmethod, free_xmethod_worker,
6061 free_xmethod_worker_vec): New functions.
6062 * extension.h: #include "common/vec.h".
6063 New function declarations.
6064 (struct xmethod_worker): New struct.
6065 (VEC (xmethod_worker_ptr)): New vector type.
6066 (xmethod_worker_ptr): New typedef.
6067 (xmethod_worker_vec): Likewise.
6068 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6070 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6071 (struct builtin_type): New field "xmethod".
6072 * valarith.c (value_ptradd): Assert that the value argument is not
6074 * valops.c (value_must_coerce_to_target): Return 0 for
6075 lval_xcallable values.
6076 * value.c (struct value): New field XM_WORKER in the field
6078 (value_address, value_raw_address): Return 0 for lval_xcallable
6080 (set_value_address): Assert that the value is not an
6082 (value_free): Free the associated xmethod worker when freeing
6083 lval_xcallable values.
6084 (set_value_component_location): Assert that the WHOLE value is not
6086 (value_of_xmethod, call_xmethod): New functions.
6087 * value.h: Declare "struct xmethod_worker".
6088 Declare new functions value_of_xmethod, call_xmethod.
6090 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6091 Pedro Alves <palves@redhat.com>
6093 PR breakpoints/17000
6094 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6095 New function, extracted from software_breakpoint_inserted_here_p.
6096 (software_breakpoint_inserted_here_p): Replace factored out code
6097 by call to find_non_raw_software_breakpoint_inserted_here.
6098 (bp_target_info_copy_insertion_state): New function.
6099 (bkpt_insert_location): Handle the case of a single-step
6100 breakpoint already inserted at the same address.
6101 (bkpt_remove_location): Handle the case of a single-step
6102 breakpoint still inserted at the same address.
6103 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6104 breakpoint already inserted at the same address.
6105 (deprecated_remove_raw_breakpoint): Handle the case of a
6106 non-raw breakpoint still inserted at the same address.
6107 (find_single_step_breakpoint): New function, extracted from
6108 single_step_breakpoint_inserted_here_p.
6109 (find_single_step_breakpoint): New function,
6110 factored out from single_step_breakpoint_inserted_here_p.
6111 (single_step_breakpoint_inserted_here_p): Reimplement.
6113 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6115 Pushed by Joel Brobecker <brobecker@adacore.com>
6116 * source.c (show_substitute_path_command): Fix display of matching
6119 2014-06-03 Gary Benson <gbenson@redhat.com>
6121 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6123 2014-06-02 Doug Evans <xdje42@gmail.com>
6125 Add parameter support for Guile.
6126 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6127 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6128 (scm-param.o): New rule.
6129 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6130 (gdbscm_misc_error): Declare.
6131 (gdbscm_canonicalize_command_name): Declare.
6132 (gdbscm_scm_to_host_string): Declare.
6133 (gdbscm_scm_from_host_string): Declare.
6134 (gdbscm_initialize_parameters): Declare.
6135 * guile/guile.c (initialize_gdb_module): Call
6136 gdbscm_initialize_parameters.
6137 * guile/lib/gdb.scm: Export parameter symbols.
6138 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6139 cmdscm_canonicalize_name and made public. All callers updated.
6140 * guile/scm-exception.c (gdbscm_misc_error): New function.
6141 * guile/scm-param.c: New file.
6142 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6143 (gdbscm_scm_to_host_string): New function.
6144 (gdbscm_scm_from_host_string): New function.
6145 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6147 2014-06-02 Doug Evans <xdje42@gmail.com>
6149 Add command support for Guile.
6150 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6151 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6152 (scm-cmd.o): New rule.
6153 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6154 (gdbscm_user_error_p): Declare.
6155 (gdbscm_parse_command_name): Declare.
6156 (gdbscm_valid_command_class_p): Declare.
6157 (gdbscm_initialize_commands): Declare.
6158 * guile/guile.c (initialize_gdb_module): Call
6159 gdbscm_initialize_commands.
6160 * guile/lib/gdb.scm: Export command symbols.
6161 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6162 (throw-user-error): New function.
6163 * guile/scm-cmd.c: New file.
6164 * guile/scm-exception.c (user_error_symbol): New static global.
6165 (gdbscm_user_error_p): New function.
6166 (gdbscm_initialize_exceptions): Set user_error_symbol.
6167 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6169 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6171 * top.c (command_loop): Handle comments here...
6172 (command_line_input): ... not here.
6174 2014-06-02 Doug Evans <xdje42@gmail.com>
6176 Add progspace support for Guile.
6177 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6178 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6179 (scm-progspace.o): New rule.
6180 * guile/guile-internal.h (pspace_smob): New typedef.
6181 (psscm_pspace_smob_pretty_printers): Declare.
6182 (psscm_pspace_smob_from_pspace): Declare.
6183 (psscm_scm_from_pspace): Declare.
6184 * guile/guile.c (initialize_gdb_module): Call
6185 gdbscm_initialize_pspaces.
6186 * guile/lib/gdb.scm: Export progspace symbols.
6187 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6189 (append-pretty-printer!): Ditto.
6190 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6192 * guile/scm-progspace.c: New file.
6194 2014-06-03 Alan Modra <amodra@gmail.com>
6196 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6197 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6199 2014-06-02 Doug Evans <dje@google.com>
6201 Add support for skeletonless type units.
6202 * dwarf2read.c (struct dwarf2_per_objfile): New member
6203 n_allocated_type_units.
6204 (struct dwarf2_per_objfile) <tu_stats>: New member
6205 nr_all_type_units_reallocs.
6206 (create_signatured_type_table_from_index): Initialize
6207 n_allocated_type_units
6208 (create_all_type_units): Ditto.
6209 (add_type_unit): Move up in file. New arg slot.
6210 All callers updated. Increase space for all_type_units more
6212 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6213 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6214 (lookup_dwp_signatured_type): Ditto.
6215 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6216 All callers updated.
6217 (build_type_psymtabs_1): Leave type_unit_groups as
6218 NULL if no TUs present.
6219 (print_tu_stats): New function.
6220 (process_skeletonless_type_unit): New function.
6221 (process_dwo_file_for_skeletonless_type_units): New
6223 (process_skeletonless_type_units): New function.
6224 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6225 Call print tu_stats if debugging enabled.
6227 2014-06-02 Pedro Alves <palves@redhat.com>
6229 * breakpoint.c (build_target_command_list): Don't build a command
6230 list if we have any duplicate location that isn't a dprintf.
6232 2014-06-02 Pedro Alves <palves@redhat.com>
6234 * breakpoint.c (dprintf_breakpoint_hit): New function.
6235 (initialize_breakpoint_ops): Install it as dprintf's
6236 breakpoint_hit method.
6238 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6240 * source.c (substitute_path_rule_matches): Simplify using
6241 filename_ncmp instead of FILENAME_CMP.
6243 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6245 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6247 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6249 * configure.ac: When Guile is available, check for the
6250 availability of 'scm_new_smob'.
6251 * configure, config.h.in: Regenerate.
6252 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6255 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6257 * frame.c (struct frame_info): Add stop_string field.
6258 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6259 (get_prev_frame_always): Old content moved into
6260 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6261 TRY_CATCH, handle MEMORY_ERROR exceptions.
6262 (frame_stop_reason_string): New function definition.
6263 * frame.h (unwind_stop_reason_to_string): Extend comment to
6264 mention frame_stop_reason_string.
6265 (frame_stop_reason_string): New function declaration.
6266 * stack.c (frame_info): Switch to frame_stop_reason_string.
6267 (backtrace_command_1): Switch to frame_stop_reason_string.
6268 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6269 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6270 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6272 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6274 * frame.c (frame_stop_reason_string): Rename to ...
6275 (unwind_stop_reason_to_string): this.
6276 * frame.h (frame_stop_reason_string): Rename to ...
6277 (unwind_stop_reason_to_string): this.
6278 * stack.c (frame_info): Update call to frame_stop_reason_string.
6279 (backtrace_command_1): Likewise.
6280 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6281 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6283 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6285 * frame.c (remove_prev_frame): New function.
6286 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6289 2014-05-29 Pedro Alves <palves@redhat.com>
6291 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6292 and make it const. When a single-step decays to a continue,
6293 clear 'step', not 'hw_step'. Pass whether the caller wanted
6294 to step to user_visible_resume_ptid, not what we ask the
6297 2014-05-29 Pedro Alves <palves@redhat.com>
6299 * infrun.c (process_event_stop_test, handle_step_into_function)
6300 (handle_step_into_function_backward): Adjust.
6301 Don't set the even thread's stop_step and call stop_waiting before
6302 calling end_stepping_range. Instead do that ...
6303 (end_stepping_range): ... here. Take an ecs pointer parameter.
6305 2014-05-29 Pedro Alves <palves@redhat.com>
6307 * infrun.c (stop_stepping): Rename to ...
6308 (stop_waiting): ... this.
6309 (proceed): Update comment.
6310 (process_event_stop_test, handle_inferior_event)
6311 (handle_signal_stop, handle_step_into_function)
6312 (handle_step_into_function_backward): Update.
6314 2014-05-29 Pedro Alves <palves@redhat.com>
6316 * infcall.c (run_inferior_call): Don't check whether the current
6317 thread is running after the proceed call.
6319 2014-05-29 Pedro Alves <palves@redhat.com>
6320 Tom Tromey <tromey@redhat.com>
6322 * NEWS: Mention "maint set target-async", "set mi-async", and that
6323 background execution commands are now always available.
6324 * target.h (target_async_permitted): Update comment.
6325 * target.c (target_async_permitted, target_async_permitted_1):
6327 (set_target_async_command): Rename to ...
6328 (maint_set_target_async_command): ... this.
6329 (show_target_async_command): Rename to ...
6330 (maint_show_target_async_command): ... this.
6331 (_initialize_target): Adjust.
6332 * infcmd.c (prepare_execution_command): Make extern.
6333 * inferior.h (prepare_execution_command): Declare.
6334 * infrun.c (set_observer_mode): Leave target async alone.
6335 * mi/mi-interp.c (mi_interpreter_init): Install
6336 mi_on_sync_execution_done as sync_execution_done observer.
6337 (mi_on_sync_execution_done): New function.
6338 (mi_execute_command_input_handler): Don't print the prompt if we
6339 just started a synchronous command with an async target.
6340 (mi_on_resume): Check sync_execution before printing prompt.
6341 * mi/mi-main.h (mi_async_p): Declare.
6342 * mi/mi-main.c: Include gdbcmd.h.
6343 (mi_async_p): New function.
6344 (mi_async, mi_async_1): New globals.
6345 (set_mi_async_command, show_mi_async_command, mi_async): New
6347 (exec_continue): Call prepare_execution_command.
6348 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6349 (mi_execute_async_cli_command): Use mi_async_p.
6350 (_initialize_mi_main): Install "set mi-async". Make
6351 "target-async" a deprecated alias.
6353 2014-05-29 Pedro Alves <palves@redhat.com>
6355 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6356 (_initialize_cli_interp): Adjust.
6357 * event-loop.c: Include "observer.h".
6358 (start_event_loop): Notify 'command_error' observers instead of
6359 calling display_gdb_prompt. Remove FIXME comment.
6360 * event-top.c (display_gdb_prompt): Remove call into the
6362 * inf-loop.c: Include "observer.h".
6363 (inferior_event_handler): Notify 'command_error' observers instead
6364 of calling display_gdb_prompt.
6365 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6366 observers instead of calling display_gdb_prompt.
6367 * interps.c (interp_set): Don't call display_gdb_prompt.
6368 (current_interp_display_prompt_p): Delete.
6369 * interps.h (interp_prompt_p): Delete declaration.
6370 (interp_prompt_p_ftype): Delete.
6371 (struct interp_procs) <prompt_proc_p>: Delete field.
6372 (current_interp_display_prompt_p): Delete declaration.
6373 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6374 (_initialize_mi_interp): Adjust.
6375 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6376 'command_error' observers.
6377 (tui_on_sync_execution_done, tui_on_command_error): New
6379 (tui_display_prompt_p): Delete.
6380 (_initialize_tui_interp): Adjust.
6382 2014-05-29 Pedro Alves <palves@redhat.com>
6385 * cli/cli-interp.c: Include infrun.h and observer.h.
6386 (cli_uiout, cli_interp): New globals.
6387 (cli_on_signal_received, cli_on_end_stepping_range)
6388 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6390 (cli_interpreter_init): Install them as 'end_stepping_range',
6391 'signal_received' 'signal_exited', 'exited' and 'no_history'
6393 (_initialize_cli_interp): Remove cli_interp local.
6394 * infrun.c (handle_inferior_event): Call the several stop reason
6395 observers instead of printing the stop reason directly.
6396 (end_stepping_range): New function.
6397 (print_end_stepping_range_reason, print_signal_exited_reason)
6398 (print_exited_reason, print_signal_received_reason)
6399 (print_no_history_reason): Make static, and add an uiout
6400 parameter. Print to that instead of to CURRENT_UIOUT.
6401 * infrun.h (print_end_stepping_range_reason)
6402 (print_signal_exited_reason, print_exited_reason)
6403 (print_signal_received_reason print_no_history_reason): New
6405 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6407 <cli_uiout>: New field.
6408 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6409 uiout for CLI output. Install 'signal_received',
6410 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6412 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6413 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6414 (mi_on_no_history): New functions.
6415 (ui_out_free_cleanup): Delete function.
6416 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6417 instead use the one already stored in the MI interpreter data.
6418 (mi_ui_out): Adjust.
6419 * tui/tui-interp.c: Include infrun.h and observer.h.
6420 (tui_interp): New global.
6421 (tui_on_signal_received, tui_on_end_stepping_range)
6422 (tui_on_signal_exited, tui_on_exited)
6423 (tui_on_no_history): New functions.
6424 (tui_init): Install them as 'end_stepping_range',
6425 'signal_received' 'signal_exited', 'exited' and 'no_history'
6427 (_initialize_tui_interp): Delete tui_interp local.
6429 2014-05-29 Pedro Alves <palves@redhat.com>
6432 * linux-nat.c (linux_nat_resume_callback): Rename the second
6433 parameter to 'except'. Skip LP if it points to EXCEPT.
6434 (linux_nat_resume): Don't mark the event lwp as not stopped
6435 before resuming sibling lwps. Instead ask
6436 linux_nat_resume_callback to skip the event lwp. Mark it as not
6437 stopped after actually resuming it.
6438 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6440 (wait_lwp): Mark the lwp as stopped here.
6441 (stop_wait_callback): Mark the lwp as not stopped right after
6442 resuming it. Don't mark lwps as stopped here.
6443 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6444 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6446 2014-05-29 Pedro Alves <palves@redhat.com>
6449 * infrun.c (resume): Determine how much to resume depending on
6450 whether the caller wanted a step, not whether we can hardware step
6451 the target. Mark all threads that we intend to run as running,
6452 unless we're calling an inferior function.
6453 (normal_stop): If the thread is running an infcall, don't finish
6455 * target.c (target_resume): Don't mark threads as running here.
6457 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6459 * serial.c (_initialize_serial): Remove support for
6460 the "set remotebaud" and "show remotebaud" commands.
6461 * NEWS: Add entry documenting the removal of that command.
6463 2014-05-28 Yao Qi <yao@codesourcery.com>
6465 * charset.c: Fix typo in comments.
6467 2014-05-27 Gary Benson <gbenson@redhat.com>
6469 * utils.c (internal_vproblem): Prompt for a bug report.
6471 2014-05-26 Andy Wingo <wingo@igalia.com>
6473 * guile/scm-arch.c (arscm_mark_arch_smob):
6474 * guile/scm-block.c (bkscm_mark_block_smob)
6475 (bkscm_mark_block_syms_progress_smob):
6476 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6477 * guile/scm-exception.c (exscm_mark_exception_smob):
6478 * guile/scm-frame.c (frscm_mark_frame_smob):
6479 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6480 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6481 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6482 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6483 (ppscm_mark_pretty_printer_worker_smob):
6484 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6485 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6486 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6487 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6489 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6492 2014-05-26 Andy Wingo <wingo@igalia.com>
6493 Doug Evans <xdje42@gmail.com>
6495 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6496 empty_base_class. All uses updated.
6497 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6498 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6500 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6501 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6502 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6503 (gdbscm_gsmob_has_property_p, add_property_name)
6504 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6505 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6506 (gdb-object-has-property?, gdb-object-properties): Remove.
6507 (gdb-object-kind): Renamed from gsmob-kind.
6509 2014-05-26 Andy Wingo <wingo@igalia.com>
6511 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6512 * configure: Regenerate.
6514 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6516 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6518 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6520 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6521 (replay_memory_access_read_only, replay_memory_access_read_write)
6522 (replay_memory_access_types, replay_memory_access)
6523 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6524 (cmd_set_record_btrace, cmd_show_record_btrace)
6525 (cmd_show_replay_memory_access): New.
6526 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6527 (record_btrace_remove_breakpoint): Replace
6528 record_btrace_allow_memory_access with replay_memory_access.
6529 (_initialize_record_btrace): Add commands.
6530 * NEWS: Announce it.
6532 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6534 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6536 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6538 * MAINTAINERS (Write After Approval): Move self back from
6541 2014-05-22 Pedro Alves <palves@redhat.com>
6543 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6544 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6545 (disable_randomization, enum exec_direction_kind)
6546 (execution_direction, stop_registers, start_remote)
6547 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6548 (wait_for_inferior, normal_stop, get_last_target_status)
6549 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6550 (insert_step_resume_breakpoint_at_sal)
6551 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6552 (set_step_info, print_stop_event, signal_stop_state)
6553 (signal_print_state, signal_pass_state, signal_stop_update)
6554 (signal_print_update, signal_pass_update)
6555 (update_signals_program_target, clear_exit_convenience_vars)
6556 (displaced_step_dump_bytes, update_observer_mode)
6557 (signal_catch_update, gdb_signal_from_command): Move
6559 * infrun.h: ... to this new file.
6560 * amd64-tdep.c: Include infrun.h.
6561 * annotate.c: Include infrun.h.
6562 * arch-utils.c: Include infrun.h.
6563 * arm-linux-tdep.c: Include infrun.h.
6564 * arm-tdep.c: Include infrun.h.
6565 * break-catch-sig.c: Include infrun.h.
6566 * breakpoint.c: Include infrun.h.
6567 * common/agent.c: Include infrun.h instead of inferior.h.
6568 * corelow.c: Include infrun.h.
6569 * event-top.c: Include infrun.h.
6570 * go32-nat.c: Include infrun.h.
6571 * i386-tdep.c: Include infrun.h.
6572 * inf-loop.c: Include infrun.h.
6573 * infcall.c: Include infrun.h.
6574 * infcmd.c: Include infrun.h.
6575 * infrun.c: Include infrun.h.
6576 * linux-fork.c: Include infrun.h.
6577 * linux-nat.c: Include infrun.h.
6578 * linux-thread-db.c: Include infrun.h.
6579 * monitor.c: Include infrun.h.
6580 * nto-tdep.c: Include infrun.h.
6581 * procfs.c: Include infrun.h.
6582 * record-btrace.c: Include infrun.h.
6583 * record-full.c: Include infrun.h.
6584 * remote-m32r-sdi.c: Include infrun.h.
6585 * remote-mips.c: Include infrun.h.
6586 * remote-notif.c: Include infrun.h.
6587 * remote-sim.c: Include infrun.h.
6588 * remote.c: Include infrun.h.
6589 * reverse.c: Include infrun.h.
6590 * rs6000-tdep.c: Include infrun.h.
6591 * s390-linux-tdep.c: Include infrun.h.
6592 * solib-irix.c: Include infrun.h.
6593 * solib-osf.c: Include infrun.h.
6594 * solib-svr4.c: Include infrun.h.
6595 * target.c: Include infrun.h.
6596 * top.c: Include infrun.h.
6597 * windows-nat.c: Include infrun.h.
6598 * mi/mi-interp.c: Include infrun.h.
6599 * mi/mi-main.c: Include infrun.h.
6600 * python/py-threadevent.c: Include infrun.h.
6602 2014-05-22 Pedro Alves <palves@redhat.com>
6604 * infrun.c (handle_inferior_event): Store the exit code for
6605 --return-child-result here, instead of ...
6606 (print_exited_reason): ... here.
6608 2014-05-21 Pedro Alves <palves@redhat.com>
6611 * gdbthread.h (struct thread_control_state): New field
6613 * infrun.c (follow_fork): Copy the new thread control field to the
6615 (clear_proceed_status_thread): Clear the new thread control field.
6616 (proceed): Set the new thread control field.
6617 * interps.h (command_interp): Declare.
6618 * interps.c (command_interpreter): New global.
6619 (command_interp): New function.
6620 (interp_exec): Set `command_interpreter' while here.
6621 * cli-out.c (cli_uiout_dtor): New function.
6622 (cli_ui_out_impl): Install it.
6623 * mi/mi-interp.c: Include cli-out.h.
6624 (mi_cmd_interpreter_exec): Add comment.
6625 (restore_current_uiout_cleanup): New function.
6626 (ui_out_free_cleanup): New function.
6627 (mi_on_normal_stop): If finishing an execution command started by
6628 a CLI command, or any kind of breakpoint-like event triggered,
6629 print the stop event to the output (CLI) stream.
6630 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6632 2014-05-21 Pedro Alves <palves@redhat.com>
6634 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6635 current source line having changed.
6636 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6637 * infrun.c (normal_stop): Adjust call to
6638 set_current_sal_from_frame.
6639 * source.c (clear_lines_listed_range): New function.
6640 (set_current_source_symtab_and_line, identify_source_line): Clear
6641 the lines listed range.
6642 (line_info): Handle the first "info line" after the current source
6643 line having changed.
6644 * stack.c (print_stack_frame): Remove center handling.
6645 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6648 2014-05-21 Pedro Alves <palves@redhat.com>
6650 * inf-child.c (inf_child_mourn_inferior): New function.
6651 * inf-child.h (inf_child_mourn_inferior): New declaration.
6652 * darwin-nat.c (darwin_mourn_inferior): Use
6653 inf_child_mourn_inferior.
6654 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6655 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6656 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6657 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6658 * windows-nat.c (windows_mourn_inferior): Likewise.
6660 2014-05-21 Doug Evans <xdje42@gmail.com>
6662 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6664 2014-05-21 Doug Evans <xdje42@gmail.com>
6666 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6667 (gdbscm_out_of_range_error): Ditto.
6668 (gdbscm_memory_error): Ditto.
6669 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6670 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6671 (gdbscm_out_of_range_error): Update.
6672 (gdbscm_memory_error): Update.
6673 (gdbscm_scm_to_target_string_unsafe): Delete.
6675 2014-05-21 Pedro Alves <palves@redhat.com>
6677 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6679 (inf_child_open_target): New function.
6680 (inf_child_open): Use inf_child_open_target to push the target
6681 instead of erroring out.
6682 (inf_child_disconnect, inf_child_close)
6683 (inf_child_maybe_unpush_target): New functions.
6684 (inf_child_target): Install inf_child_disconnect and
6685 inf_child_close. Store a pointer to the returned object.
6686 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6688 * target.c (auto_connect_native_target): New global.
6689 (show_default_run_target): New function.
6690 (find_default_run_target): Return NULL if automatically connecting
6691 to the native target is disabled.
6692 (_initialize_target): Install set/show auto-connect-native-target.
6693 * NEWS: Mention "set auto-connect-native-target", and "target
6695 * linux-nat.c (super_close): New global.
6696 (linux_nat_close): Call super_close.
6697 (linux_nat_add_target): Store a pointer to the base class's
6699 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6700 inf_child_maybe_unpush.
6701 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6703 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6704 the inferior. Use inf_child_maybe_unpush_target.
6705 (inf_ttrace_attach): Don't push the target if it is already
6707 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6708 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6709 after mourning the inferior. Use inf_child_maybe_unpush_target.
6710 (darwin_attach_pid): Don't push the target if it is already
6712 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6713 mourning the inferior. Use inf_child_maybe_unpush_target.
6714 (gnu_detach): Use inf_child_maybe_unpush_target.
6715 * go32-nat.c (go32_create_inferior): Don't push the target if it
6717 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6718 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6719 (procfs_open): Rename to ...
6720 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6721 comments. Can target_preopen before changing node. Call
6722 inf_child_open_target to push the target explicitly.
6723 (procfs_attach): Don't push the target if it is already pushed.
6724 (procfs_detach): Use inf_child_maybe_unpush_target.
6725 (procfs_create_inferior): Don't push the target if it is already
6727 (nto_native_ops): New global.
6728 (procfs_open): Reimplement.
6729 (procfs_native_open): New function.
6730 (init_procfs_targets): Install procfs_native_open as to_open of
6731 "target native". Store a pointer to the "native" target in
6733 * procfs.c (procfs_attach): Don't push the target if it is already
6735 (procfs_detach): Use inf_child_maybe_unpush_target.
6736 (procfs_mourn_inferior): Only unpush the target after mourning the
6737 inferior. Use inf_child_maybe_unpush_target.
6738 (procfs_init_inferior): Don't push the target if it is already
6740 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6741 if it is already pushed.
6743 2014-05-21 Pedro Alves <palves@redhat.com>
6745 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6746 and "procfs" targets are now called "native" instead.
6748 2014-05-21 Pedro Alves <palves@redhat.com>
6750 * go32-nat.c (go32_open): Delete.
6751 (go32_target): Don't override the to_open method.
6753 2014-05-21 Pedro Alves <palves@redhat.com>
6755 * nto-procfs.c (procfs_can_run): New function.
6756 (nto_procfs_ops): New global.
6757 (init_procfs_targets): New, based on procfs_target. Install
6758 "target native" in addition to "target procfs".
6759 (_initialize_procfs): Call init_procfs_targets instead of adding
6762 2014-05-21 Pedro Alves <palves@redhat.com>
6764 * windows-nat.c (windows_target): Don't override to_shortname,
6765 to_longname or to_doc.
6767 2014-05-21 Pedro Alves <palves@redhat.com>
6769 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6772 2014-05-21 Pedro Alves <palves@redhat.com>
6774 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6775 to_shortname, to_longname or to_doc.
6777 2014-05-21 Pedro Alves <palves@redhat.com>
6779 * go32-nat.c (go32_target): Don't override to_shortname,
6780 to_longname or to_doc.
6782 2014-05-21 Pedro Alves <palves@redhat.com>
6784 * inf-child.c (inf_child_open): Remove mention of "child".
6785 (inf_child_target): Rename target to "native" instead of "child".
6787 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6789 * Makefile.in (SFILES): Delete "regset.c".
6790 (COMMON_OBS): Delete "regset.o".
6792 * regset.h (regset_alloc): Delete prototype.
6794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6796 * sparc-linux-tdep.c (sparc32_linux_gregset)
6797 (sparc32_linux_fpregset): New static regset structures.
6798 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6799 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6801 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6802 (sparc64_linux_fpregset): New static regset structures.
6803 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6804 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6805 New static regset structures.
6806 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6807 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6808 New static regset structures.
6809 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6810 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6811 New static regset structures.
6812 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6813 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6814 New static regset structures.
6815 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6819 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6820 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6821 register maps ("regmaps") from "*regset" to "*regmap". Do this
6822 for all regmap types and variables.
6823 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6824 (sparc32_linux_supply_core_gregset)
6825 (sparc32_linux_collect_core_gregset)
6826 (sparc32_linux_supply_core_fpregset)
6827 (sparc32_linux_collect_core_fpregset): Likewise.
6828 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6829 (sparc_gregmap, sparc_fpregmap): ... these.
6830 (sparc_supply_gregset, sparc_collect_gregset)
6831 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6832 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6833 (_initialize_sparc_nat): Rename regmaps.
6834 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6835 (sparc_gregmap, sparc_fpregmap): ... these.
6836 (sparc_supply_gregset, sparc_collect_gregset)
6837 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6838 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6840 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6841 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6843 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6845 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6846 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6847 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6849 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6850 (sparc32_bsd_fpregset): Rename to...
6851 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6852 (sparc32_bsd_fpregmap): ... these.
6853 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6854 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6855 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6856 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6857 (struct sparc_gregmap, struct sparc_fpregmap)
6858 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6859 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6860 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6861 (sparc32_supply_regset, sparc32_collect_gregset)
6862 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6864 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6865 (sparc64_linux_ptrace_gregmap): ... this.
6866 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6867 (_initialize_sparc64_linux_nat): Rename regmaps.
6868 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6869 (sparc64_linux_core_gregmap): ... this.
6870 (sparc64_linux_supply_core_gregset)
6871 (sparc64_linux_collect_core_gregset)
6872 (sparc64_linux_supply_core_fpregset)
6873 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6874 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6875 (sparc64_sol2_fpregset): Rename to...
6876 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6877 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6878 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6880 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6881 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6882 (sparc64_bsd_fpregset): Rename to...
6883 (struct sparc_gregmap, sparc64_sol2_gregmap)
6884 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6885 (sparc64_bsd_fpregmap): ... these.
6886 (sparc64_supply_gregset, sparc64_collect_gregset)
6887 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6889 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6890 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6891 (sparc64fbsd_gregmap): ... this.
6892 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6893 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6895 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6896 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6897 (sparc64nbsd_collect_fpregset): Likewise.
6898 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6899 (sparc64nbsd_gregmap): ... this.
6900 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6902 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6903 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6904 (sparc64obsd_gregmap): ... this.
6905 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6907 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6908 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6909 (sparc32nbsd_gregmap): ... this.
6910 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6913 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6915 * score-tdep.c (score7_linux_gregset): New static regset
6917 (score7_linux_regset_from_core_section): Remove dynamic regset
6919 (score_gdbarch_init): Drop allocation of tdep structure.
6920 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6922 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6924 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6926 (am33_regset_from_core_section): Remove dynamic regset
6929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6931 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6932 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6934 (mips_linux_regset_from_core_section): Remove dynamic regset
6936 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6937 'gregset64', 'fpregset', and 'fpregset64'.
6938 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6939 deleted tdep fields.
6941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6943 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6945 (amd64_regset_from_core_section): Remove dynamic regset
6947 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6949 (amd64obsd_regset_from_core_section): Remove dynamic regset
6951 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6953 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6954 x86-common regset supply function.
6955 * i386-tdep.c (i386_collect_gregset): Make static.
6956 (i386_gregset): New global regset structure.
6957 (i386_fpregset, i386_xstateregset): New static regset structures.
6958 (i386_regset_from_core_section): Remove dynamic regset
6960 (i386_gdbarch_init): Remove initialization of tdep fields
6961 'gregset', 'fpregset', and 'xstateregset'.
6962 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6963 'fpregset', and 'xstateregset'.
6964 (i386_collect_gregset): Remove prototype.
6965 (i386_gregset): New declaration.
6966 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6968 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6971 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6973 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6974 (arm_linux_vfpregset): New static regset structures.
6975 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6977 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6978 and 'vfpregset' fields.
6980 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6982 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6983 (aarch64_linux_fpregset): New static regset structures.
6984 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6985 of regset structures.
6986 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6991 * regset.h (struct regset): Remove gdbarch field.
6992 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6993 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6994 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6996 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6997 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6998 (ppc32_linux_vsxregset): Likewise.
6999 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7000 via the regcache instead of the regset.
7001 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7002 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7003 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7004 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7009 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7010 Constify structures.
7011 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7012 (alphanbsd_aout_gregset): Likewise.
7013 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7014 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7016 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7017 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7019 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7020 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7021 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7022 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7023 * m88k-tdep.c (m88k_gregset): Likewise.
7024 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7025 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7026 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7027 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7028 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7029 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7030 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7031 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7032 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7034 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7035 * sh-tdep.h (sh_corefile_gregset): Likewise.
7036 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7037 * vax-tdep.c (vax_gregset): Likewise.
7039 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7041 Fix TLS access for -static -pthread.
7042 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7043 (try_thread_db_load_1): Initialize it.
7044 (thread_db_get_thread_local_address): Call it if LM is zero.
7045 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7046 * target.h (struct target_ops) (to_get_thread_local_address): Add
7047 load_module_addr comment.
7049 2014-05-21 Pedro Alves <palves@redhat.com>
7051 * dcache.c (dcache_read_memory_partial): If reading the cache line
7052 fails, fallback to reading just the memory the caller wanted.
7054 2014-05-20 Doug Evans <dje@google.com>
7056 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7057 instead of get_current_arch.
7059 2014-05-20 Pedro Alves <palves@redhat.com>
7061 * NEWS: Mention that compare-sections now works with all targets.
7063 * remote.c (PACKET_qCRC): New enum value.
7064 (remote_verify_memory): Don't send qCRC if the target has no
7065 execution. Use packet_support/packet_ok. If the target doesn't
7066 support the qCRC packet, fallback to a deep memory copy.
7067 (compare_sections_command): Say "target image" instead of "remote
7069 (_initialize_remote): Add PACKET_qCRC to the list of config
7070 packets that have no associated command. Extend comment.
7071 * target.c (simple_verify_memory, default_verify_memory): New
7073 * target.h (struct target_ops) <to_verify_memory>: Default to
7074 default_verify_memory.
7075 (simple_verify_memory): New declaration.
7076 * target-delegates.c: Regenerate.
7078 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7080 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7082 2014-05-20 Hui Zhu <hui@codesourcery.com>
7083 Yao Qi <yao@codesourcery.com>
7086 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7087 and change address of sp and pc.
7089 2014-05-19 Tom Tromey <tromey@redhat.com>
7091 * gdbtypes.c (rank_function): Use XNEWVEC.
7092 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7094 2014-05-19 Doug Evans <dje@google.com>
7096 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7097 build_type_unit_groups and moved closer to only caller. Remove
7098 arguments. All references updated. Remove outdated .gdb_index
7100 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7101 build_type_psymtabs_1.
7103 2014-05-19 Doug Evans <dje@google.com>
7105 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7106 n_type_unit_groups, all_type_unit_groups. All uses removed.
7107 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7108 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7109 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7110 (add_type_unit_group_to_table): Delete.
7112 2014-05-19 Doug Evans <dje@google.com>
7114 * eval.c (evaluate_subexp_standard): Add some comments.
7116 2014-05-17 Doug Evans <xdje42@gmail.com>
7118 * progspace.c (remove_program_space): Delete, unused.
7119 * progspace.h (remove_program_space): Ditto.
7121 2014-05-17 Doug Evans <xdje42@gmail.com>
7123 * inferior.c (prune_inferiors): Fix comment.
7124 (remove_inferior_command): Call prune_program_spaces.
7126 2014-05-16 Doug Evans <dje@google.com>
7128 New command line option -D.
7130 * main.c (set_gdb_data_directory): New function.
7131 (captured_main): Recognize -D. Flag error for --data-directory "".
7132 Call set_gdb_data_directory.
7133 (print_gdb_help): Print --data-directory, -D.
7134 * main.h (set_gdb_data_directory): Declare.
7135 * top.c (staged_gdb_datadir): New static global.
7136 (set_gdb_datadir): Call set_gdb_data_directory
7137 (show_gdb_datadir): New function.
7138 (init_main): Update init of data-directory parameter.
7140 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7142 Import the "dirfd" gnulib module.
7143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7144 * gnulib/aclocal.m4: Update.
7145 * gnulib/config.in: Update.
7146 * gnulib/configure: Update.
7147 * gnulib/import/Makefile.am: Update.
7148 * gnulib/import/Makefile.in: Update.
7149 * gnulib/import/dirfd.c: New.
7150 * gnulib/import/m4/dirfd.m4: New.
7151 * gnulib/import/m4/gnulib-cache.m4: Update.
7152 * gnulib/import/m4/gnulib-comp.m4: Update.
7154 2014-05-16 Pierre Muller <muller@sourceware.org>
7155 Yao Qi <yao@codesourcery.com>
7157 * valprint.c (print_wchar): Move the code on checking whether
7158 W is a printable wide char to the default branch of switch
7159 statement below. Call wchar_printable instead of gdb_iswprint.
7161 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7163 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7164 ldr.w and ldrd instructions.
7166 2014-05-15 Doug Evans <dje@google.com>
7168 * dwarf2read.c (read_structure_type): Delete outdated comments.
7170 2014-05-14 Tom Tromey <tromey@redhat.com>
7172 * macrocmd.c (print_macro_definition): Reindent.
7174 2014-05-13 Doug Evans <xdje42@gmail.com>
7176 * python/py-cmd.c (cmdpy_completer): Add comment.
7177 (completers): Make const.
7179 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7181 * infrun.c (resume): Remove should_resume (unused). Move up
7182 declaration of resume_ptid.
7184 2014-05-13 Tom Tromey <tromey@redhat.com>
7186 * language.h (unop_type_check): Remove.
7187 (binop_type_check): Don't declare.
7189 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7191 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7192 call to regcache_raw_collect.
7194 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7196 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7197 mi_console->quote as the quoting character.
7199 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7201 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7203 2014-04-29 Tom Tromey <tromey@redhat.com>
7205 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7206 "show debug varobj".
7208 2014-05-07 Kyle McMartin <kyle@redhat.com>
7210 Pushed by Joel Brobecker <brobecker@adacore.com>.
7211 * aarch64-tdep.c (aarch64_software_single_step): New function.
7212 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7213 with aarch64_software_single_step.
7215 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7219 2014-05-05 Keith Seitz <keiths@redhat.com>
7221 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7222 variable or history value is successfully parsed.
7224 2014-05-05 Yao Qi <yao@codesourcery.com>
7225 Pedro Alves <palves@redhat.com>
7227 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7228 address of blocks that intersects the requested range. Trim
7229 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7231 * ctf.c (ctf_xfer_partial): Likewise.
7233 2014-05-05 Yao Qi <yao@codesourcery.com>
7235 * printcmd.c (display_command): Remove the check to
7236 target_has_execution.
7238 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7240 * ppcobsd-nat.c: Include "obsd-nat.h".
7241 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7243 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7245 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7247 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7248 and 16-bit signed and unsigned arguments. Update comment.
7249 (stap_parse_probe_arguments): Extend code to handle such
7250 arguments. Use warning instead of complaint to notify about
7251 unrecognized bitness.
7253 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7255 PR breakpoints/16889
7256 * stap-probe.c (stap_parse_probe_arguments): Simplify
7257 check for non-prefixed probes (i.e., probes whose
7258 arguments do not start with "N@"). Always set the
7259 argument type to a sane value.
7261 2014-05-01 David Taylor <dtaylor@emc.com>
7263 * remote.c (compare_sections_command): Add -r option to compare
7264 all loadable read-only sections.
7266 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7268 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7269 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7271 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7272 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7273 Remove unused CORE_ADDR argument. Update all callers.
7275 2014-04-29 Pedro Alves <palves@redhat.com>
7277 * remote.c (struct packet_config) <detect>: Extend comment.
7278 (add_packet_config_cmd): Don't set the config's detect or support
7280 (init_all_packet_configs): Also initialize the config's 'detect'
7282 (reset_all_packet_configs_support): New function.
7283 (remote_open_1): Call reset_all_packet_configs_support instead of
7284 init_all_packet_configs.
7285 (_initialize_remote): Initialize all packet configs. Assert that
7286 all packets have an associated command, except a few known
7289 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7291 * dwarf2read.c (read_subrange_type): Handle dynamic
7292 DW_AT_lower_bound attributes.
7294 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7296 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7297 dynamic bounds before computing its upper bound.
7298 (ada_discrete_type_low_bound): Same as above with the lower bound.
7300 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7302 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7303 range types. Adjust the array handling implementation to
7304 take advantage of this change.
7305 (resolve_dynamic_range): New function, mostly extracted from
7306 resolve_dynamic_bounds.
7307 (resolve_dynamic_array): New function, mostly extracted from
7308 resolve_dynamic_bounds.
7309 (resolve_dynamic_bounds): Delete.
7310 (resolve_dynamic_type): Reimplement. Add handling of
7311 TYPE_CODE_RANGE types.
7313 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7315 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7316 handling of parallel ___XA types.
7318 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7320 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7321 unnecessary second call to static_unwrap_type.
7323 2014-04-27 Hui Zhu <hui@codesourcery.com>
7325 * stack.c (print_frame_info): Call do_gdb_disassembly with
7326 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7328 2014-04-26 Doug Evans <xdje42@gmail.com>
7330 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7332 2014-04-25 Pedro Alves <palves@redhat.com>
7335 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7336 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7337 and newline from built string.
7338 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7339 (linux_ptrace_attach_fail_reason): ... this.
7340 * linux-nat.c (linux_nat_attach): Adjust to use
7341 linux_ptrace_attach_fail_reason.
7343 2014-04-25 Pedro Alves <palves@redhat.com>
7345 * remote.c (struct remote_state): Remove multi_process_aware,
7346 non_stop_aware, cond_tracepoints, cond_breakpoints,
7347 breakpoint_commands, fast_tracepoints, static_tracepoints,
7348 install_in_trace, disconnected_tracing,
7349 enable_disable_tracepoints, string_tracing, and
7350 augmented_libraries_svr4_read fields.
7351 (remote_multi_process_p): Move further below in the file.
7352 (struct packet_config): Add comments.
7353 (update_packet_config): Delete function.
7354 (show_packet_config_cmd): Use packet_config_support.
7355 (add_packet_config_cmd): Use NULL as set callback.
7356 (packet_ok): "set remote foo-packet"-style commands no longer
7357 change config->supported -- adjust.
7358 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7359 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7360 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7361 (PACKET_QNonStop, PACKET_multiprocess_feature)
7362 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7363 (PACKET_DisconnectedTracing_feature)
7364 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7365 (set_remote_protocol_packet_cmd): Delete function.
7366 (packet_config_support, packet_support): New functions.
7367 (set_remote_protocol_Z_packet_cmd): Don't call
7368 update_packet_config.
7369 (remote_query_attached, remote_pass_signals)
7370 (remote_program_signals, remote_threads_info)
7371 (remote_threads_extra_info, remote_start_remote): Use
7373 (remote_start_remote): Use packet_config_support and
7375 (init_all_packet_configs): Set all packets to unknown support,
7376 instead of calling update_packet_config.
7377 (remote_check_symbols): Use packet_support.
7378 (remote_supported_packet): Unconditionally set the packet config's
7380 (remote_multi_process_feature, remote_non_stop_feature)
7381 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7382 (remote_breakpoint_commands_feature)
7383 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7384 (remote_install_in_trace_feature)
7385 (remote_disconnected_tracing_feature)
7386 (remote_enable_disable_tracepoint_feature)
7387 (remote_string_tracing_feature)
7388 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7389 (remote_protocol_features): Adjust to use remote_supported_packet
7390 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7391 "ConditionalTracepoints", "ConditionalBreakpoints",
7392 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7393 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7394 "EnableDisableTracepoints", and "tracenz".
7395 (remote_query_supported): Use packet_support.
7396 (remote_open_1): Adjust.
7397 (extended_remote_attach_1): Use packet_support. Switch on the
7398 result of packet_ok instead of checking whether the packet ended
7400 (remote_vcont_resume): Use packet_support.
7401 (remote_resume, remote_stop_ns, fetch_register_using_p)
7402 (remote_prepare_to_store, store_register_using_P)
7403 (check_binary_download, remote_write_bytes): Use packet_support.
7404 (remote_vkill): Use packet_support. Switch on the result of
7405 packet_ok instead of checking whether the packet ended up
7407 (extended_remote_supports_disable_randomization): Use
7409 (extended_remote_run): Switch on the result of packet_ok instead
7410 of checking whether the packet ended up disabled.
7411 (remote_insert_breakpoint, remote_remove_breakpoint)
7412 (remote_insert_watchpoint, remote_remove_watchpoint)
7413 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7415 (remote_search_memory): Use packet_config_support.
7416 (remote_get_thread_local_address, remote_get_tib_address)
7417 (remote_hostio_send_command, remote_can_execute_reverse): Use
7419 (remote_supports_cond_tracepoints)
7420 (remote_supports_cond_breakpoints)
7421 (remote_supports_fast_tracepoints)
7422 (remote_supports_static_tracepoints)
7423 (remote_supports_install_in_trace)
7424 (remote_supports_enable_disable_tracepoint)
7425 (remote_supports_string_tracing)
7426 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7427 the packet config says the feature is enabled or disabled.
7428 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7429 (remote_get_trace_status): Use packet_support.
7430 (remote_set_disconnected_tracing): Adjust to check whether the
7431 feature is enabled with packet_support.
7432 (remote_set_trace_buffer_size, remote_use_agent)
7433 (remote_can_use_agent, remote_supports_btrace): Use
7435 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7436 Use packet_config_support.
7437 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7438 the packet config says the feature is enabled or disabled.
7439 (set_range_stepping): Use packet_support.
7441 2014-04-25 Tom Tromey <tromey@redhat.com>
7443 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7446 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7448 * NEWS: Mention support for C99 variable length arrays.
7450 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7452 * ada-lang.c (standard_exc): Expand introductory comment.
7454 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7455 Walfred Tedeschi <walfred.tedeschi@intel.com>
7457 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7459 (amd64_linux_read_description): Add code to handle AVX512 xstate
7460 mask and return respective tdesc.
7461 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7462 and features/i386/x32-avx512-linux.c.
7463 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7464 (amd64_linux_core_read_description): Add code to handle AVX512
7465 xstate mask and return respective tdesc.
7466 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7467 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7469 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7470 (tdesc_amd64_avx512_linux): New prototype.
7471 (tdesc_x32_avx512_linux): Likewise.
7472 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7473 features/i386/x32-avx512.c.
7474 (amd64_ymm_avx512_names): New register names for pseudo
7476 (amd64_ymmh_avx512_names): New register names for raw registers
7478 (amd64_k_names): New register names for K registers.
7479 (amd64_zmmh_names): New register names for ZMM raw registers.
7480 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7481 (amd64_xmm_avx512_names): New register names for XMM16-31
7483 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7485 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7486 if feature is present.
7487 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7488 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7489 (AMD64_NUM_REGS): Adjust to new number of registers.
7490 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7491 registers supplied via XSTATE by AVX512 registers.
7492 (i386_linux_read_description): Add case for AVX512.
7493 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7494 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7495 (i386_linux_core_read_description): Add case for AVX512.
7496 (i386_linux_init_abi): Install supported register note section
7498 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7500 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7501 registers to be number of zmm7h + 1.
7502 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7503 * i386-tdep.c: Include features/i386/i386-avx512.c.
7504 (i386_zmm_names): Add ZMM pseudo register names array.
7505 (i386_zmmh_names): Add ZMM raw register names array.
7506 (i386_k_names): Add K raw register names array.
7507 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7508 registers. AVX512 has 16 more ZMM registers than there are YMM
7510 (i386_zmmh_regnum_p): Add function to look up register number of
7512 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7513 (i386_k_regnum_p): Likewise for K raw registers.
7514 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7515 registers added by AVX512.
7516 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7517 registers added by AVX512.
7518 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7520 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7521 (i386_pseudo_register_name): Add ZMM pseudo registers.
7522 (i386_zmm_type): Construct and return vector registers type for ZMM
7524 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7525 ZMM0-31 pseudo registers and K registers.
7526 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7527 and YMM16-31 registers from register cache.
7528 (i386_pseudo_register_write): Add code to write K, ZMM and
7530 (i386_register_reggroup_p): Add code to include/exclude AVX512
7531 registers in/from respective register groups.
7532 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7533 registers if feature is present in xcr0.
7534 (i386_gdbarch_init): Add code to initialize AVX512 feature
7535 variables in tdep structure, wire in pseudo registers and call
7536 initialize_tdesc_i386_avx512.
7537 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7539 (i386_regnum): Add AVX512 registers.
7540 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7541 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7542 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7543 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7545 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7546 (i386_ymm_avx512_regnum_p): Likewise.
7547 (i386_k_regnum_p): Likewise.
7548 (i386_zmm_regnum_p): Likewise.
7549 (i386_zmmh_regnum_p): Likewise.
7550 * i387-tdep.c : Update year in copyright notice.
7551 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7553 (XSAVE_YMM_AVX512_ADDR): New macro.
7554 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7556 (XSAVE_XMM_AVX512_ADDR): New macro.
7557 (xsave_avx512_k_offset): New table for K register offsets in
7559 (XSAVE_AVX512_K_ADDR): New macro.
7560 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7562 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7563 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7565 (i387_collect_xsave): Add code to collect AVX512 registers from
7567 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7568 of XMM16-31 registers.
7569 (I387_NUM_K_REGS): New define for number of K registers.
7570 (I387_K0_REGNUM): New define for K0 register number.
7571 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7572 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7573 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7575 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7576 (I387_XMM16_REGNUM): New define for XMM16 register number.
7577 (I387_YMM0_REGNUM): New define for YMM0 register number.
7578 (I387_KEND_REGNUM): New define for last K register number.
7579 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7580 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7582 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7584 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7586 * features/Makefile: Add AVX512 related files.
7587 * features/i386/32bit-avx512.xml: New file.
7588 * features/i386/64bit-avx512.xml: Likewise.
7589 * features/i386/amd64-avx512-linux.c: Likewise.
7590 * features/i386/amd64-avx512-linux.xml: Likewise.
7591 * features/i386/amd64-avx512.c: Likewise.
7592 * features/i386/amd64-avx512.xml: Likewise.
7593 * features/i386/i386-avx512-linux.c: Likewise.
7594 * features/i386/i386-avx512-linux.xml: Likewise.
7595 * features/i386/i386-avx512.c: Likewise.
7596 * features/i386/i386-avx512.xml: Likewise.
7597 * features/i386/x32-avx512-linux.c: Likewise.
7598 * features/i386/x32-avx512-linux.xml: Likewise.
7599 * features/i386/x32-avx512.c: Likewise.
7600 * features/i386/x32-avx512.xml: Likewise.
7601 * regformats/i386/amd64-avx512-linux.dat: New file.
7602 * regformats/i386/amd64-avx512.dat: Likewise.
7603 * regformats/i386/i386-avx512-linux.dat: Likewise.
7604 * regformats/i386/i386-avx512.dat: Likewise.
7605 * regformats/i386/x32-avx512-linux.dat: Likewise.
7606 * regformats/i386/x32-avx512.dat: Likewise.
7607 * NEWS: Add note about new support for AVX512.
7610 2014-04-23 Pedro Alves <palves@redhat.com>
7612 * breakpoint.c (insert_bp_location): Tolerate errors if the
7613 breakpoint is set in a user-loaded objfile.
7614 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7615 location is marked shlib_disabled. If the breakpoint is set in a
7616 user-loaded objfile is a GDB-side memory breakpoint, validate it
7617 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7618 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7620 * mem-break.c (memory_validate_breakpoint): New function.
7621 * objfiles.c (userloaded_objfile_contains_address_p): New
7623 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7624 * target.h (memory_validate_breakpoint): New declaration.
7626 2014-04-23 Pedro Alves <palves@redhat.com>
7628 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7629 the breakpoint is set in a shared library, only suppress
7630 errors for software breakpoints, not hardware breakpoints.
7632 2014-04-22 Pedro Alves <palves@redhat.com>
7634 * infrun.c (schedlock_applies): New function, factored out from
7635 find_thread_needs_step_over.
7636 (find_thread_needs_step_over): Use it.
7637 (switch_back_to_stepped_thread): Always clear trap_expected if the
7638 step over is finished. Return early if scheduler locking applies.
7639 Look for the stepping thread and a potential step-over thread with
7641 (currently_stepping_or_nexting_callback): Delete.
7643 2014-04-22 Nick Clifton <nickc@redhat.com>
7645 * NEWS: Mention that ARM sim now supports tracing.
7647 2014-04-22 Yao Qi <yao@codesourcery.com>
7649 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7651 * tracefile.c (tracefile_fetch_registers): ... it. New
7653 * tracefile.h (tracefile_fetch_registers): Declare.
7654 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7655 tracefile_fetch_registers.
7657 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7660 * windows-nat.c (thread_rec): Don't display a warning when
7661 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7662 fails for any reason, set th->suspended to -1, so that we don't
7663 try to resume such a thread. Also, don't return NULL in these
7664 cases, to avoid completely ruin the session due to "PC register is
7665 not available" error.
7666 (do_windows_fetch_inferior_registers): Check errors in
7667 GetThreadContext call.
7668 (windows_continue): Accept an additional argument KILLED; if not
7669 zero, ignore errors in the SetThreadContext call, since the
7670 inferior was killed and is shutting down.
7671 (windows_resume, get_windows_debug_event)
7672 (windows_create_inferior, windows_mourn_inferior)
7673 (windows_kill_inferior): All callers of windows_continue changed
7674 to adjust to its new calling sequence.
7676 2014-04-19 Yao Qi <yao@codesourcery.com>
7678 * ctf.c (ctf_open): Call post_create_inferior.
7680 2014-04-19 Yao Qi <yao@codesourcery.com>
7682 * ctf.c (handle_id): New static variable.
7683 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7684 value. Get the declaration of event "register" and get length
7685 of field "contents".
7687 2014-04-19 Yao Qi <yao@codesourcery.com>
7689 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7691 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7693 * valops.c (oload_method_static): Remove unnecessary argument
7694 METHOD. Update all callers.
7696 2014-04-18 Pedro alves <palves@redhat.com>
7697 Tom Tromey <tromey@redhat.com>
7700 * frame.c (get_prev_frame_1): Rename to ...
7701 (get_prev_frame_always): ... this, and make extern. Adjust.
7702 (skip_artificial_frames): Use get_prev_frame_always.
7703 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7704 (get_frame_unwind_stop_reason): Adjust to rename.
7705 * frame.h (get_prev_frame_always): Declare.
7706 * inline-frame.c: Include frame.h.
7707 (inline_frame_this_id): Use get_prev_frame_always.
7709 2014-04-18 Tristan Gingold <gingold@adacore.com>
7711 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7712 code by using bfd_mach_o_get_base_address.
7714 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7716 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7717 (spu_ax_pseudo_register_collect): New function.
7718 (spu_ax_pseudo_register_push_stack): Likewise.
7719 (spu_dwarf_reg_to_regnum): Likewise.
7720 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7722 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7724 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7725 Replace FRAME argument with FRAME_ID.
7726 * gdbarch.c, gdbarch.h: Regenerate.
7727 * findvar.c (default_value_from_register): Add GDBARCH argument;
7728 replace FRAME by FRAME_ID. No longer call get_frame_id.
7729 (value_from_register): Update call to gdbarch_value_from_register.
7730 * value.h (default_value_from_register): Update prototype.
7731 * s390-linux-tdep.c (s390_value_from_register): Update interface
7732 and call to default_value_from_register.
7733 * spu-tdep.c (spu_value_from_register): Likewise.
7735 * findvar.c (address_from_register): Remove TYPE argument.
7736 Do not call value_from_register; use gdbarch_value_from_register
7737 with null_frame_id instead.
7738 * value.h (address_from_register): Update prototype.
7739 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7740 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7741 address_from_register interface change.
7743 2014-04-17 Yao Qi <yao@codesourcery.com>
7745 * gdbtypes.h: Update comments to link to types and macros'
7748 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7750 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7752 2014-04-16 Keith Seitz <keiths@redhat.com>
7755 * dwarf2read.c (skip_one_die): Check that all relative-offset
7756 sibling DIEs fall within range of the current reader's buffer.
7757 (read_partial_die): Likewise.
7759 2014-04-16 Keith Seitz <keiths@redhat.com>
7762 * cp-namespace.c (lookup_symbol_file): If the type name of
7763 `this' is NULL, return immediately.
7765 2014-04-14 Keith Seitz <keiths@redhat.com>
7768 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7769 from symbol_matches_domain in symtab.c. All local callers
7770 of symbol_matches_domain updated.
7771 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7772 search STRUCT_DOMAIN.
7773 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7774 independently. standard_lookup will do that automatically.
7775 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7776 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7777 (cp_lookup_symbol_in_namespace): Likewise.
7778 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7779 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7780 may return a STRUCT_DOMAIN match.
7781 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7782 * cp-support.c: Include language.h.
7783 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7785 * psymtab.c (match_partial_symbol): Compare the requested
7786 domain with the symbol's domain directly.
7787 (lookup_partial_symbol): Likewise.
7788 * symtab.c (lookup_symbol_in_language): Explain when/why
7789 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7790 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7791 appropriate languages.
7792 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7793 and moved to ada-lang.c
7794 (lookup_block_symbol): Explain that this function only returns
7795 symbol matching the requested DOMAIN.
7796 Compare the requested domain with the symbol's domain directly.
7797 (iterate_over_symbols): Compare the requested domain with the
7798 symbol's domain directly.
7799 * symtab.h (symbol_matches_domain): Remove.
7801 2014-04-14 Tom Tromey <tromey@redhat.com>
7804 * c-exp.y (type_aggregate_p): New function.
7805 (qualified_name, classify_inner_name): Use it.
7806 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7807 and TYPE_TARGET_TYPE of an enum type.
7808 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7810 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7811 handle TYPE_DECLARED_CLASS.
7812 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7814 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7815 * valops.c (enum_constant_from_type): New function.
7816 (value_aggregate_elt): Use it.
7817 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7820 2014-04-14 Tom Tromey <tromey@redhat.com>
7822 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7823 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7825 * value.h (value_aggregate_elt): Update.
7827 2014-04-14 Tom Tromey <tromey@redhat.com>
7829 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7831 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7833 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7834 (evaluate_subexp_standard): Pass noside argument.
7835 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7836 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7837 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7838 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7839 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7841 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7843 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7844 points to a constant blob.
7846 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7848 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7849 property and store it as the high bound and flag the range accordingly.
7850 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7851 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7852 * gdbtypes.h (enum range_flags): New enum.
7853 (struct range_bounds): Add flags member.
7855 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7857 * c-typeprint.c (c_type_print_varspec_suffix): Added
7858 check for not yet resolved high bound. If unresolved, print
7859 "variable length" string to the console instead of random
7862 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7864 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7866 (ada_template_to_fixed_record_type_1): Likewise.
7867 (ada_to_fixed_type_1): Likewise.
7868 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7869 (cp_print_value): Likewise.
7870 * d-valprint.c (dynamic_array_type): Likewise.
7871 * findvar.c (address_of_variable): Likewise.
7872 * jv-valprint.c (java_value_print): Likewise.
7873 * valops.c (value_ind): Likewise.
7874 * value.c (coerce_ref): Likewise.
7876 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7878 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7879 value and retrieve the dynamic type size.
7881 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7883 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7884 passed to sizeof is dynamic evaluate the argument to compute the length.
7886 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7887 Joel Brobecker <brobecker@adacore.com>
7889 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7890 (dwarf2_evaluate_property): New function.
7891 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7892 * dwarf2read.c (attr_to_dynamic_prop): New function.
7893 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7895 * gdbtypes.c: Include dwarf2loc.h.
7896 (is_dynamic_type): New function.
7897 (resolve_dynamic_type): New function.
7898 (resolve_dynamic_bounds): New function.
7899 (get_type_length): New function.
7900 (check_typedef): Use get_type_length to compute type length.
7901 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7902 (TYPE_LOW_BOUND_KIND): New macro.
7903 (is_dynamic_type): New function prototype.
7904 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7905 to resolve dynamic properties of the type. Update comment.
7906 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7908 2014-04-14 Richard Henderson <rth@redhat.com>
7910 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7912 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7913 Doug Evans <xdje42@gmail.com>
7915 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7916 dereference TYPE_CODE_REF values.
7918 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7920 Revert the following changes due to regressions:
7922 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7923 (dwarf2_evaluate_property): New function.
7924 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7925 * dwarf2read.c (attr_to_dynamic_prop): New function.
7926 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7928 * gdbtypes.c: Include dwarf2loc.h.
7929 (is_dynamic_type): New function.
7930 (resolve_dynamic_type): New function.
7931 (resolve_dynamic_bounds): New function.
7932 (get_type_length): New function.
7933 (check_typedef): Use get_type_length to compute type length.
7934 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7935 (TYPE_LOW_BOUND_KIND): New macro.
7936 (is_dynamic_type): New function prototype.
7937 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7938 to resolve dynamic properties of the type. Update comment.
7939 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7941 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7942 passed to sizeof is dynamic evaluate the argument to compute the length.
7944 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7945 value and retrieve the dynamic type size.
7947 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7948 (ada_template_to_fixed_record_type_1): Likewise.
7949 (ada_to_fixed_type_1): Likewise.
7950 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7951 (cp_print_value): Likewise.
7952 * d-valprint.c (dynamic_array_type): Likewise.
7953 * eval.c (evaluate_subexp_with_coercion): Likewise.
7954 * findvar.c (address_of_variable): Likewise.
7955 * jv-valprint.c (java_value_print): Likewise.
7956 * valops.c (value_ind): Likewise.
7957 * value.c (coerce_ref): Likewise.
7959 * c-typeprint.c (c_type_print_varspec_suffix): Added
7960 check for not yet resolved high bound. If unresolved, print
7961 "variable length" string to the console instead of random
7964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7965 property and store it as the high bound and flag the range accordingly.
7966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7968 * gdbtypes.h (enum range_flags): New enum.
7969 (struct range_bounds): Add flags member.
7971 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7972 points to a constant blob.
7974 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7975 (evaluate_subexp_standard): Pass noside argument.
7976 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7977 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7978 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7979 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7980 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7982 2014-04-11 Keith Seitz <keiths@redhat.com>
7985 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7986 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7989 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7991 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7992 (evaluate_subexp_standard): Pass noside argument.
7993 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7994 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7995 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7996 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7997 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7999 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8001 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8002 points to a constant blob.
8004 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8006 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8007 property and store it as the high bound and flag the range accordingly.
8008 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8009 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8010 * gdbtypes.h (enum range_flags): New enum.
8011 (struct range_bounds): Add flags member.
8013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8015 * c-typeprint.c (c_type_print_varspec_suffix): Added
8016 check for not yet resolved high bound. If unresolved, print
8017 "variable length" string to the console instead of random
8020 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8022 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8023 (ada_template_to_fixed_record_type_1): Likewise.
8024 (ada_to_fixed_type_1): Likewise.
8025 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8026 (cp_print_value): Likewise.
8027 * d-valprint.c (dynamic_array_type): Likewise.
8028 * eval.c (evaluate_subexp_with_coercion): Likewise.
8029 * findvar.c (address_of_variable): Likewise.
8030 * jv-valprint.c (java_value_print): Likewise.
8031 * valops.c (value_ind): Likewise.
8032 * value.c (coerce_ref): Likewise.
8034 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8036 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8037 value and retrieve the dynamic type size.
8039 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8041 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8042 passed to sizeof is dynamic evaluate the argument to compute the length.
8044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8046 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8047 (dwarf2_evaluate_property): New function.
8048 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8049 * dwarf2read.c (attr_to_dynamic_prop): New function.
8050 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8052 * gdbtypes.c: Include dwarf2loc.h.
8053 (is_dynamic_type): New function.
8054 (resolve_dynamic_type): New function.
8055 (resolve_dynamic_bounds): New function.
8056 (get_type_length): New function.
8057 (check_typedef): Use get_type_length to compute type length.
8058 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8059 (TYPE_LOW_BOUND_KIND): New macro.
8060 (is_dynamic_type): New function prototype.
8061 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8062 to resolve dynamic properties of the type. Update comment.
8063 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8065 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8067 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8068 declaring high/low bounds and change uses accordingly. Call
8069 create_range_type instead of create_static_range_type.
8070 * gdbtypes.c (create_range_type): New function.
8071 (create_range_type): Convert bounds into struct bound_prop and pass
8072 them to create_range_type.
8073 * gdbtypes.h (struct bound_prop): New struct.
8074 (create_range_type): New function prototype.
8075 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8076 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8077 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8079 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8081 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8083 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8084 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8085 * ada-lang.c: All uses of create_range_type updated.
8086 * coffread.c: All uses of create_range_type updated.
8087 * dwarf2read.c: All uses of create_range_type updated.
8088 * f-exp.y: All uses of create_range_type updated.
8089 * m2-valprint.c: All uses of create_range_type updated.
8090 * mdebugread.c: All uses of create_range_type updated.
8091 * stabsread.c: All uses of create_range_type updated.
8092 * valops.c: All uses of create_range_type updated.
8093 * valprint.c: All uses of create_range_type updated.
8095 2014-04-10 Pedro Alves <palves@redhat.com>
8097 * breakpoint.c (single_step_breakpoints)
8098 (single_step_gdbarch): Move up in the file.
8099 (one_breakpoint_xfer_memory): New function, factored out from ...
8100 (breakpoint_xfer_memory): ... here. Also process single-step
8103 2014-04-09 Tristan Gingold <gingold@adacore.com>
8105 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8107 (darwin_decode_exception_message): Free port only after use.
8109 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8111 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8112 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8113 when setting the size of call_length.
8115 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8117 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8118 dereference TYPE_CODE_REF values.
8120 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8122 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8123 end of warning message.
8125 2014-04-03 Doug Evans <dje@google.com>
8127 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8128 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8130 2014-04-02 Alan Modra <amodra@gmail.com>
8132 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8133 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8134 (struct symbol_file_add_from_memory_args): Add size field.
8135 (find_vdso_size): New function.
8136 (add_vsyscall_page): Attempt to find vdso size.
8138 2014-04-01 Doug Evans <dje@google.com>
8140 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8142 2014-04-01 Tristan Gingold <gingold@adacore.com>
8144 * darwin-nat.c (darwin_encode_reply): Add prototype.
8145 (darwin_decode_exception_message): Reply to unknown inferiors.
8146 (darwin_decode_message): Handle message by id. Ignore message
8147 to unknown inferior.
8148 (darwin_wait): Discard unknown messages, add debug trace.
8150 2014-03-31 Doug Evans <dje@google.com>
8152 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8155 2014-03-31 Doug Evans <dje@google.com>
8157 New option "set print symbol-loading".
8159 * solib.c (solib_read_symbols): Only print symbol loading messages
8161 (solib_add): If symbol loading is in "brief" mode, notify user
8162 symbols are being loaded.
8163 (reload_shared_libraries_1): Ditto.
8164 * symfile.c (print_symbol_loading_off): New static global.
8165 (print_symbol_loading_brief): New static global.
8166 (print_symbol_loading_full): New static global.
8167 (print_symbol_loading_enums): New static global.
8168 (print_symbol_loading): New static global.
8169 (print_symbol_loading_p): New function.
8170 (symbol_file_add_with_addrs): Only print symbol loading messages
8172 (_initialize_symfile): Register "print symbol-loading" set/show
8174 * symfile.h (print_symbol_loading_p): Declare.
8176 2014-03-30 Doug Evans <xdje42@gmail.com>
8178 * infrun.c (set_last_target_status): New function.
8179 (handle_inferior_event): Call it.
8181 2014-03-30 Doug Evans <xdje42@gmail.com>
8183 * inferior.h (enum stop_kind): Improve comment.
8185 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8187 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8188 a reference, strip the reference layer before calling
8189 the lang_ops value_has_mutated callback.
8191 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8193 Remove some globals from our parser.
8194 * language.c (unk_lang_parser): Add "struct parser_state"
8196 * language.h (struct language_defn) <la_parser>: Likewise.
8197 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8198 (initialize_expout): Add "struct parser_state" argument.
8199 Rewrite function to use the parser state.
8200 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8201 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8202 write_exp_elt_longcst, write_exp_elt_dblcst,
8203 write_exp_elt_decfloatcst, write_exp_elt_type,
8204 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8205 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8206 write_dollar_variable): Likewise.
8207 (parse_exp_in_context_1): Use parser state.
8208 (insert_type_address_space): Add "struct parser_state" argument.
8210 (increase_expout_size): New function.
8211 * parser-defs.h: Forward declare "struct language_defn" and
8212 "struct parser_state".
8213 (expout, expout_size, expout_ptr): Remove extern declarations.
8214 (parse_gdbarch, parse_language): Rewrite macro declarations to
8215 accept the parser state.
8216 (struct parser_state): New struct.
8217 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8218 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8219 write_exp_elt_decfloatcst, write_exp_elt_type,
8220 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8221 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8222 write_exp_msymbol, write_dollar_variable,
8223 mark_struct_expression, insert_type_address_space): Add "struct
8224 parser_state" argument.
8225 (increase_expout_size): New function.
8226 * utils.c (do_clear_parser_state): New function.
8227 (make_cleanup_clear_parser_state): Likewise.
8228 * utils.h (make_cleanup_clear_parser_state): New function
8230 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8231 Update calls to write_exp* in order to pass the parser state.
8232 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8233 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8234 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8235 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8236 * stap-probe.c (stap_parse_register_operand): Likewise.
8237 (stap_parse_single_operand): Likewise.
8238 (stap_parse_argument_1): Likewise.
8239 (stap_parse_argument): Use parser state.
8240 * stap-probe.h: Include "parser-defs.h".
8241 (struct stap_parse_info) <pstate>: New field.
8242 * c-exp.y (parse_type): Rewrite to use parser state.
8243 (yyparse): Redefine to c_parse_internal.
8244 (pstate): New global variable.
8245 (parse_number): Add "struct parser_state" argument.
8246 (write_destructor_name): Likewise.
8247 (type_exp): Update calls to write_exp* and similars in order to
8249 (exp1, exp, variable, qualified_name, space_identifier,
8250 typename, typebase): Likewise.
8251 (write_destructor_name, parse_number, lex_one_token,
8252 classify_name, classify_inner_name, c_parse): Add "struct
8253 parser_state" argument. Update function to use parser state.
8254 * c-lang.h: Forward declare "struct parser_state".
8255 (c_parse): Add "struct parser_state" argument.
8256 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8257 (yyparse): Redefine macro to ada_parse_internal.
8258 (pstate): New variable.
8259 (write_int, write_object_renaming, write_var_or_type,
8260 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8261 type_int, type_long, type_long_long, type_float, type_double,
8262 type_long_double, type_char, type_boolean, type_system_address):
8263 Add "struct parser_state" argument.
8264 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8265 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8266 var_or_type, aggregate, aggregate_component_list,
8267 positional_list, others, component_group,
8268 component_associations): Update calls to write_exp* and similar
8269 functions in order to use parser state.
8270 (ada_parse, write_var_from_sym, write_int,
8271 write_exp_op_with_string, write_object_renaming,
8272 find_primitive_type, write_selectors, write_ambiguous_var,
8273 write_var_or_type, write_name_assoc, type_int, type_long,
8274 type_long_long, type_float, type_double, type_long_double,
8275 type_char, type_boolean, type_system_address): Add "struct
8276 parser_state" argument. Adjust function to use parser state.
8277 * ada-lang.c (parse): Likewise.
8278 * ada-lang.h: Forward declare "struct parser_state".
8279 (ada_parse): Add "struct parser_state" argument.
8280 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8281 calls to both functions.
8282 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8284 (yyparse): Redefine macro to f_parse_internal.
8285 (pstate): New variable.
8286 (parse_number): Add "struct parser_state" argument.
8287 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8288 and similars in order to use parser state.
8289 (parse_number): Adjust code to use parser state.
8291 (f_parse): New function.
8292 * f-lang.h: Forward declare "struct parser_state".
8293 (f_parse): Add "struct parser_state" argument.
8294 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8296 (yyparse): Redefine macro for java_parse_internal.
8297 (pstate): New variable.
8298 (push_expression_name, push_expression_name, insert_exp): Add
8299 "struct parser_state" argument.
8300 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8301 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8302 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8303 PostIncrementExpression, PostDecrementExpression,
8304 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8305 UnaryExpressionNotPlusMinus, CastExpression,
8306 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8307 RelationalExpression, EqualityExpression, AndExpression,
8308 ExclusiveOrExpression, InclusiveOrExpression,
8309 ConditionalAndExpression, ConditionalOrExpression,
8310 ConditionalExpression, Assignment, LeftHandSide): Update
8311 calls to write_exp* and similars in order to use parser state.
8312 (parse_number): Ajust code to use parser state.
8314 (java_parse): New function.
8315 (push_variable): Add "struct parser_state" argument. Adjust
8316 code to user parser state.
8317 (push_fieldnames, push_qualified_expression_name,
8318 push_expression_name, insert_exp): Likewise.
8319 * jv-lang.h: Forward declare "struct parser_state".
8320 (java_parse): Add "struct parser_state" argument.
8321 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8323 (yyparse): Redefine macro to m2_parse_internal.
8324 (pstate): New variable.
8325 (type_exp, exp, fblock, variable, type): Update calls to
8326 write_exp* and similars to use parser state.
8328 (m2_parse): New function.
8329 * m2-lang.h: Forward declare "struct parser_state".
8330 (m2_parse): Add "struct parser_state" argument.
8331 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8332 * objc-lang.h: Forward declare "struct parser_state".
8333 (end_msglist): Add "struct parser_state" argument.
8334 * p-exp.y (parse_type): Rewrite macro to use parser state.
8335 (yyparse): Redefine macro to pascal_parse_internal.
8336 (pstate): New variable.
8337 (parse_number): Add "struct parser_state" argument.
8338 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8339 write_exp* and similars in order to use parser state.
8340 (parse_number, yylex): Adjust code to use parser state.
8341 (pascal_parse): New function.
8342 * p-lang.h: Forward declare "struct parser_state".
8343 (pascal_parse): Add "struct parser_state" argument.
8344 * go-exp.y (parse_type): Rewrite macro to use parser state.
8345 (yyparse): Redefine macro to go_parse_internal.
8346 (pstate): New variable.
8347 (parse_number): Add "struct parser_state" argument.
8348 (type_exp, exp1, exp, variable, type): Update calls to
8349 write_exp* and similars in order to use parser state.
8350 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8351 to use parser state.
8352 (go_parse): Likewise.
8353 * go-lang.h: Forward declare "struct parser_state".
8354 (go_parse): Add "struct parser_state" argument.
8356 2014-03-27 Doug Evans <dje@google.com>
8358 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8360 2014-03-27 Doug Evans <dje@google.com>
8362 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8363 Remove argument abbrev_section. All callers updated.
8365 2014-03-27 Doug Evans <dje@google.com>
8367 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8368 addr_base, ranges_base.
8370 2014-03-26 Keith Seitz <keiths@redhat.com>
8372 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8373 types, not VAR_DOMAIN.
8375 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8377 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8379 * features/nios2-linux.c: Regenerated.
8380 * features/nios2.c: Regenerated.
8382 2014-03-25 Pedro Alves <palves@redhat.com>
8384 * cli/cli-script.c (script_from_file): Force the interpreter to
8387 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8389 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8390 small stack allocation.
8392 2014-03-24 Tristan Gingold <gingold@adacore.com>
8394 * darwin-nat.c (exc_server): Remove unused prototype.
8395 (darwin_dump_message): Correctly display data on x86_64.
8396 (darwin_encode_reply): Fix style.
8397 Add comments and fix indentation.
8399 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8401 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8403 2014-03-22 Doug Evans <xdje42@gmail.com>
8405 * infcmd.c: Whitespace fixes.
8406 (interrupt_command): Merge two function comments into one.
8408 2014-03-22 Doug Evans <xdje42@gmail.com>
8410 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8413 2014-03-22 Yao Qi <yao@codesourcery.com>
8415 * remote.c (target_read_live_memory): Remove.
8416 (memory_xfer_live_readonly_partial): Rename it to
8417 remote_xfer_live_readonly_partial. Remove argument 'object'.
8418 All callers updated. Call remote_read_bytes_1
8419 instead of target_read_live_memory.
8420 * tracepoint.c (set_traceframe_number): Remove.
8421 (make_cleanup_restore_traceframe_number): Likewise .
8422 * tracepoint.h (set_traceframe_number): Remove declaration.
8423 (make_cleanup_restore_traceframe_number): Likewise.
8425 2014-03-22 Yao Qi <yao@codesourcery.com>
8427 * remote.c (remote_read_bytes): Move code on reading from the
8429 (remote_read_bytes_1): ... here. New function.
8431 2014-03-22 Yao Qi <yao@codesourcery.com>
8433 * ctf.c (ctf_xfer_partial): Check the return value of
8434 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8435 return TARGET_XFER_UNAVAILABLE.
8436 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8437 * target.c (target_read_live_memory): Move it to remote.c.
8438 (memory_xfer_live_readonly_partial): Likewise.
8439 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8440 * remote.c (target_read_live_memory): Moved from target.c.
8441 (memory_xfer_live_readonly_partial): Likewise.
8442 (remote_read_bytes): Factored out from
8443 memory_xfer_partial_1.
8445 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8447 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8450 2014-03-21 Pedro Alves <palves@redhat.com>
8452 * infrun.c (normal_stop): Extend comment.
8454 2014-03-21 Hui Zhu <hui@codesourcery.com>
8455 Pedro Alves <palves@redhat.com>
8457 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8459 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8460 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8461 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8463 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8465 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8466 `z' formatted output modifier.
8468 2014-03-20 Tom Tromey <tromey@redhat.com>
8469 Sergio Durigan Junior <sergiodj@redhat.com>
8471 * probe.c (parse_probes): Turn assert into an ordinary error.
8472 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8473 exceptions when parsing probes. Rearrange the code for clarity.
8475 2014-03-20 Tom Tromey <tromey@redhat.com>
8478 * top.c (execute_command): Only dispatch events if the command
8481 2014-03-20 Tom Tromey <tromey@redhat.com>
8484 * infcall.c: Include event-top.h.
8485 (run_inferior_call): Call async_disable_stdin if needed.
8487 2014-03-20 Pedro Alves <palves@redhat.com>
8489 * infrun.c (prepare_to_proceed): Delete.
8490 (thread_still_needs_step_over): New function.
8491 (find_thread_needs_step_over): New function.
8492 (proceed): If the current thread needs a step-over, set its
8493 steping_over_breakpoint flag. Adjust to use
8494 find_thread_needs_step_over instead of prepare_to_proceed.
8495 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8496 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8498 (switch_back_to_stepped_thread): Step over breakpoints of all
8499 threads not the stepping thread, before switching back to the
8502 2014-03-20 Pedro Alves <palves@redhat.com>
8504 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8506 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8507 * infrun.c (saved_singlestep_ptid)
8508 (stepping_past_singlestep_breakpoint): Delete.
8509 (resume): Remove stepping_past_singlestep_breakpoint handling.
8510 (proceed): Store the prev_pc of the stepping thread too.
8511 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8513 (enum infwait_states): Delete infwait_thread_hop_state.
8514 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8516 (handle_inferior_event): Adjust.
8517 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8518 handling and the thread-hop code. Before removing single-step
8519 breakpoints, check whether the thread hit a single-step breakpoint
8520 of another thread. If it did, the trap is not a random signal.
8521 (switch_back_to_stepped_thread): If the event thread hit a
8522 single-step breakpoint, unblock it before switching to the
8523 stepping thread. Handle the case of the stepped thread having
8525 (keep_going): Handle the case of the current thread moving past a
8526 single-step breakpoint.
8528 2014-03-20 Pedro Alves <palves@redhat.com>
8531 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8532 are being stepped over.
8533 (breakpoint_address_match): Make extern.
8534 * breakpoint.h (breakpoint_address_match): New declaration.
8535 * inferior.h (stepping_past_instruction_at): New declaration.
8536 * infrun.c (struct step_over_info): New type.
8537 (step_over_info): New global.
8538 (set_step_over_info, clear_step_over_info)
8539 (stepping_past_instruction_at): New functions.
8540 (handle_inferior_event): Clear the step-over info when
8541 trap_expected is cleared.
8542 (resume): Remove now stale comment.
8543 (clear_proceed_status): Clear step-over info.
8544 (proceed): Adjust step-over handling to set or clear the step-over
8545 info instead of removing all breakpoints.
8546 (handle_signal_stop): When setting up a thread-hop, don't remove
8548 (stop_stepping): Clear step-over info.
8549 (keep_going): Adjust step-over handling to set or clear step-over
8550 info and then always inserting breakpoints, instead of removing
8551 all breakpoints when stepping over one.
8553 2014-03-20 Pedro Alves <palves@redhat.com>
8555 * infrun.c (previous_inferior_ptid): Adjust comment.
8556 (deferred_step_ptid): Delete.
8557 (infrun_thread_ptid_changed, prepare_to_proceed)
8558 (init_wait_for_inferior): Adjust.
8559 (handle_signal_stop): Delete deferred_step_ptid handling.
8561 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8564 * defs.h (sync_quit_force_run): New declaration.
8565 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8566 * event-top.c (async_sigterm_handler): New declaration.
8567 (async_sigterm_token): New variable.
8568 (async_init_signals): Create also async_sigterm_token.
8569 (async_sigterm_handler): New function.
8570 (sync_quit_force_run): New variable.
8571 (handle_sigterm): Replace quit_force call by other calls.
8572 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8574 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8576 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8577 offset into SPE pseudo registers.
8579 2014-03-18 Pedro Alves <palves@redhat.com>
8582 * inferior.h (print_stop_event): Declare.
8583 * infrun.c (print_stop_event): New, factored out from ...
8584 (normal_stop): ... this.
8585 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8586 of bpstat_print/print_stack_frame.
8588 2014-03-17 Tom Tromey <tromey@redhat.com>
8590 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8592 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8594 * ada-lang.c (decode_constrained_packed_array): Perform a
8595 minimal coercion for reference with coerce_ref instead of
8598 2014-03-17 Tristan Gingold <gingold@adacore.com>
8600 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8601 (darwin_solib_create_inferior_hook): Emit a warning if version
8604 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8606 * python/py-value.c (get_field_flag): Cast flag_name argument to
8607 PyObject_GetAttrString to support Python 2.4.
8609 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8611 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8612 (Global Maintainers): Remove Jan Kratochvil.
8614 2014-03-14 Pedro Alves <palves@redhat.com>
8616 * inferior.h (terminal_ours_for_output): Rename to ...
8617 (child_terminal_ours_for_output): ... this.
8618 (terminal_save_ours): Rename to ...
8619 (child_terminal_save_ours): ... this.
8620 (terminal_ours): Rename to ...
8621 (child_terminal_ours): ... this.
8622 (terminal_inferior): Rename to ...
8623 (child_terminal_inferior): ... this.
8624 (terminal_init_inferior): Rename to ...
8625 (child_terminal_init_inferior): ... this.
8626 (terminal_init_inferior_with_pgrp): Rename to ...
8627 (child_terminal_init_inferior_with_pgrp): ... this.
8628 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8629 (child_terminal_init_with_pgrp): ... this.
8630 (terminal_save_ours): Rename to ...
8631 (child_terminal_save_ours): ... this.
8632 (terminal_init_inferior): Rename to ...
8633 (child_terminal_init): ... this. Adjust.
8634 (terminal_inferior): Rename to ...
8635 (child_terminal_inferior): ... this.
8636 (terminal_ours_for_output): Rename to ...
8637 (child_terminal_ours_for_output): ... this. Adjust.
8638 (terminal_ours): Rename to ...
8639 (child_terminal_ours): ... this.
8640 (terminal_ours_1): Rename to ...
8641 (child_terminal_ours_1): ... this. Adjust.
8642 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8643 * windows-nat.c (do_initial_windows_stuff): Adjust.
8644 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8645 (gnu_terminal_init): ... this. Adjust.
8646 (gnu_target): Adjust.
8647 * inf-child.c (inf_child_target): Adjust.
8649 2014-03-13 Doug Evans <xdje42@gmail.com>
8652 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8655 2014-03-13 Doug Evans <xdje42@gmail.com>
8657 * value.c (record_latest_value): Call release_value_or_incref
8658 instead of release_value.
8660 2014-03-13 Pedro Alves <palves@redhat.com>
8662 * procfs.c (procfs_target): Don't override to_shortname,
8663 to_longname or to_doc.
8665 2014-03-13 Pedro Alves <palves@redhat.com>
8667 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8668 Unix in user visible strings.
8670 2014-03-12 Stan Shebs <stan@codesourcery.com>
8672 * gdbtypes.h: Annotate comments for Doxygen, add a page
8673 block comment with some general info.
8675 2014-03-12 Pedro Alves <palves@redhat.com>
8677 * infcmd.c (prepare_execution_command): New function, factored out
8678 from several execution commands.
8679 (run_command_1, continue_command, step_1, jump_command)
8680 (signal_command, until_command, advance_command, finish_command)
8681 (attach_command): Use prepare_execution_command.
8683 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8685 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8688 (struct arm_linux_thread_points): Removed.
8689 (struct arm_linux_process_info): New.
8690 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8691 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8692 (arm_linux_find_breakpoints_by_tid): Removed.
8693 (struct arch_lwp_info): New.
8694 (arm_linux_find_process_pid): New functions.
8695 (arm_linux_add_process): New functions.
8696 (arm_linux_process_info_get): New functions.
8697 (arm_linux_forget_process): New function.
8698 (arm_linux_get_debug_reg_state): New function.
8699 (struct update_registers_data): New.
8700 (update_registers_callback): New function.
8701 (arm_linux_insert_hw_breakpoint1): Updated.
8702 (arm_linux_remove_hw_breakpoint1): Updated.
8703 (arm_linux_insert_hw_breakpoint): Updated.
8704 (arm_linux_remove_hw_breakpoint): Updated.
8705 (arm_linux_insert_watchpoint): Updated.
8706 (arm_linux_remove_watchpoint): Updated.
8707 (arm_linux_new_thread): Updated.
8708 (arm_linux_prepare_to_resume): New function.
8709 (arm_linux_new_fork): New function.
8710 (_initialize_arm_linux_nat): Updated.
8712 2014-03-12 Pedro Alves <palves@redhat.com>
8714 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8716 2014-03-12 Tom Tromey <tromey@redhat.com>
8718 * inf-child.c (return_zero): New function.
8719 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8720 * aix-thread.c (aix_thread_inferior_created): New function.
8721 (aix_thread_attach): Remove.
8722 (init_aix_thread_ops): Don't set to_attach.
8723 (_initialize_aix_thread): Register inferior_created observer.
8724 * corelow.c (init_core_ops): Don't set to_attach or
8726 * exec.c (init_exec_ops): Don't set to_attach or
8728 * infcmd.c (run_command_1): Use find_run_target. Make direct
8730 (attach_command): Use find_attach_target. Make direct target
8732 * record-btrace.c (init_record_btrace_ops): Don't set
8734 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8736 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8737 set to_create_inferior.
8738 * target.c (complete_target_initialization): Add assertion.
8739 (target_create_inferior): Remove.
8740 (find_default_attach, find_default_create_inferior): Remove.
8741 (find_attach_target, find_run_target): New functions.
8742 (find_default_is_async_p, find_default_can_async_p)
8743 (target_supports_non_stop, target_attach): Remove.
8744 (init_dummy_target): Don't set to_create_inferior or
8745 to_supports_non_stop.
8746 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8747 TARGET_DEFAULT_FUNC.
8748 <to_create_inferior>: Add comment.
8749 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8750 TARGET_DEFAULT_RETURN.
8751 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8752 (find_attach_target, find_run_target): Declare.
8753 (target_create_inferior): Remove.
8754 (target_has_execution_1): Update comment.
8755 (target_supports_non_stop): Remove.
8756 * target-delegates.c: Rebuild.
8758 2014-03-12 Pedro Alves <palves@redhat.com>
8760 * inf-child.h: Update comment to not mention Unix.
8762 2014-03-12 Pedro Alves <palves@redhat.com>
8764 * inf-child.c: Update top comment to not mention Unix. Add
8765 generic comment describing how this target is meant to be used.
8766 (inf_child_post_attach, inf_child_post_startup_inferior)
8767 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8770 2014-03-12 Pedro Alves <palves@redhat.com>
8772 * nto-procfs.c: Include inf-child.h.
8773 (procfs_ops): Delete global.
8774 (procfs_can_run): Delete method.
8775 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8776 target pointer instead of referencing procfs_ops.
8777 (procfs_prepare_to_store): Delete.
8778 (init_procfs_ops): Delete function.
8779 (procfs_target): New function, based on init_procfs_ops, but
8780 inherit inf_child_target.
8781 (_initialize_procfs): Use procfs_target.
8783 2014-03-12 Pedro Alves <palves@redhat.com>
8785 * windows-nat.c: Include inf-child.h.
8786 (windows_ops): Delete global.
8787 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8789 (init_windows_ops): Delete function.
8790 (windows_target): New function, based on init_windows_ops, but
8791 inherit inf_child_target.
8792 (_initialize_windows_nat): Use windows_target. Install x86
8793 specific target methods here.
8795 2014-03-10 Doug Evans <xdje42@gmail.com>
8797 * guile/guile.c (call_initialize_gdb_module): New function.
8798 (initialize_guile): Replace call to scm_init_guile with call to
8801 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8803 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8804 in call to TYPE_CODE macro.
8806 2014-03-10 Jerome Guitton <guitton@adacore.com>
8808 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8809 Resolve tagged types to full view.
8811 2014-03-10 Hui Zhu <hui@codesourcery.com>
8813 * target.h (target_insert_breakpoint): Remove "hardware" from its
8816 2014-03-07 Doug Evans <dje@google.com>
8818 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8820 2014-03-07 Doug Evans <dje@google.com>
8822 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8823 Remove unused local comp_dir_attr. Assert exactly one of
8824 stub_comp_unit_die, stub_comp_dir is non-NULL.
8826 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8828 * target.h (complete_target_initialization, add_target):
8831 2014-03-07 Pedro Alves <palves@redhat.com>
8833 * go32-nat.c: Include inf-child.h.
8834 (go32_ops): Delete global.
8835 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8837 (go32_create_inferior): Push the passed in target pointer instead
8838 of referencing go32_ops.
8839 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8840 (go32_target): New function, based on init_go32_ops, but inherit
8842 (_initialize_go32_nat): Use go32_target. Move parts of
8845 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8847 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8848 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8849 SYMBOL_VALUE_ADDRESS.
8850 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8852 2014-03-06 Yao Qi <yao@codesourcery.com>
8854 * breakpoint.c (get_tracepoint_by_number): Remove argument
8855 optional_p. All callers updated. Adjust comments. Update
8857 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8859 2014-03-06 Yao Qi <yao@codesourcery.com>
8861 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8862 early if get_number returns zero. Use 'p' instead of 'args'.
8864 2014-03-06 Yao Qi <yao@codesourcery.com>
8866 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8869 2014-03-06 Yao Qi <yao@codesourcery.com>
8871 PR breakpoints/16508
8872 * tracepoint.c (check_trace_running): New function.
8873 (trace_find_command): Move code to check_trace_running and
8874 call check_trace_running.
8875 (trace_find_pc_command): Likewise.
8876 (trace_find_tracepoint_command): Likewise.
8877 (trace_find_line_command): Likewise.
8878 (trace_find_range_command): Likewise.
8879 * tracepoint.h (check_trace_running): Likewise.
8880 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8882 2014-03-06 Yao Qi <yao@codesourcery.com>
8884 * target.h (struct target_ops) <to_traceframe_info>: Use
8885 TARGET_DEFAULT_NORETURN (tcomplain ()).
8886 * target-delegates.c: Regenerated.
8888 2014-03-05 Pedro Alves <palves@redhat.com>
8891 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8892 void. Update comment.
8893 (dcache_xfer_memory): Delete.
8894 (dcache_read_memory_partial): New, based on the read bits of
8896 (dcache_update): Add status parameter. Use ULONGEST for len, and
8897 adjust. Discard cache lines if the reason for the update was
8899 * dcache.h (dcache_xfer_memory): Delete declaration.
8900 (dcache_read_memory_partial): New declaration.
8901 (dcache_update): Update prototype.
8902 * target.c (raw_memory_xfer_partial): Update the dcache here.
8903 (memory_xfer_partial_1): Don't handle dcache writes here.
8905 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8907 * remote-sim.c (gdbsim_load): Add const to prog.
8909 2014-03-03 Tom Tromey <tromey@redhat.com>
8911 * elfread.c (probe_key): Change to bfd_data.
8912 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8913 now per-BFD, not per-objfile.
8914 * stap-probe.c (stap_probe_destroy): Update comment.
8915 (handle_stap_probe): Allocate on the per-BFD obstack.
8917 2014-03-03 Tom Tromey <tromey@redhat.com>
8919 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8920 * breakpoint.c (create_longjmp_master_breakpoint): Use
8922 (add_location_to_breakpoint, bkpt_probe_insert_location)
8923 (bkpt_probe_remove_location): Update.
8924 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8925 * elfread.c (elf_symfile_relocate_probe): Remove.
8926 (elf_probe_fns): Update.
8927 (insert_exception_resume_breakpoint): Change type of "probe"
8928 parameter to bound_probe.
8929 (check_exception_resume): Update.
8930 * objfiles.c (objfile_relocate1): Don't relocate probes.
8931 * probe.c (bound_probe_s): New typedef.
8932 (parse_probes): Use get_probe_address. Set sal's objfile.
8933 (find_probe_by_pc): Return a bound_probe.
8934 (collect_probes): Return a VEC(bound_probe_s).
8935 (compare_probes): Update.
8936 (gen_ui_out_table_header_info): Change type of "probes"
8938 (info_probes_for_ops): Update.
8939 (get_probe_address): New function.
8940 (probe_safe_evaluate_at_pc): Update.
8941 * probe.h (struct probe_ops) <get_probe_address>: New field.
8942 <set_semaphore, clear_semaphore>: Add objfile parameter.
8943 (struct probe) <objfile>: Remove field.
8945 <address>: Update comment.
8946 (struct bound_probe): New.
8947 (find_probe_by_pc): Return a bound_probe.
8948 (get_probe_address): Declare.
8949 * solib-svr4.c (struct probe_and_action) <address>: New field.
8950 (hash_probe_and_action, equal_probe_and_action): Update.
8951 (register_solib_event_probe): Add address parameter.
8952 (solib_event_probe_at): Update.
8953 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8955 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8956 (stap_get_probe_address): New function.
8957 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8958 (compile_probe_arg): Update.
8959 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8961 (handle_stap_probe): Don't relocate the probe.
8962 (stap_relocate): Remove.
8963 (stap_gen_info_probes_table_values): Update.
8964 (stap_probe_ops): Remove stap_relocate.
8965 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8966 (debug_sym_probe_fns): Update.
8967 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8968 * symtab.c (init_sal): Use memset.
8969 * symtab.h (struct symtab_and_line) <objfile>: New field.
8970 * tracepoint.c (start_tracing, stop_tracing): Update.
8972 2014-03-03 Tom Tromey <tromey@redhat.com>
8974 * probe.h (parse_probes, find_probe_by_pc)
8975 (find_probes_in_objfile): Fix comments.
8977 2014-03-02 Doug Evans <xdje42@gmail.com>
8979 * infrun.c (handle_signal_stop): Replace test for
8980 TARGET_WAITKIND_STOPPED with an assert.
8982 2014-03-02 Doug Evans <xdje42@gmail.com>
8984 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8986 2014-03-02 Doug Evans <xdje42@gmail.com>
8988 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8990 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8992 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8994 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8996 * i386obsd-nat.c: Include "obsd-nat.h".
8997 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8999 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9001 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9003 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9005 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9007 * mips64obsd-nat.c: Include "obsd-nath".
9008 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9010 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9012 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9014 * amd64obsd-nat.c: Include "obsd-nat,h.
9015 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9017 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9019 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9021 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9022 (find_overload_match): Update call to find_oload_champ.
9023 (find_oload_champ_namespace_loop): Likewise
9025 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9027 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9029 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9030 * config/sparc/obsd64.mh: New file.
9031 * sparc64obsd-nat.c: New file.
9033 * obsd-nat.h: New file.
9034 * obsd-nat.c: New file.
9035 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9036 (ALLDEPFILES): Add obsd-nat.c.
9038 2014-02-28 Tom Tromey <tromey@redhat.com>
9040 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9041 * cli-out.h (cli_ui_out_impl): Now const.
9042 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9043 * ui-out.c (struct ui_out) <impl>: Now const.
9044 (default_ui_out_impl): Now const.
9045 (ui_out_new): Make 'impl' parameter const.
9046 * ui-out.h (ui_out_new): Update.
9048 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9050 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9052 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9054 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9056 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9058 Additional PR 8882 fix.
9059 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9061 2014-02-27 Pedro Alves <palves@redhat.com>
9063 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9066 2014-02-27 Pedro Alves <palves@redhat.com>
9069 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9070 * nat/linux-waitpid.c: Include string.h.
9071 (status_to_str): Moved here and made extern.
9072 * nat/linux-waitpid.h (status_to_str): New declaration.
9074 2014-02-27 Hui Zhu <hui@codesourcery.com>
9077 * infrun.c (ptid_match): Move ...
9078 * common/ptid.c (ptid_match): ... here.
9079 * inferior.h (ptid_match): Move ...
9080 * common/ptid.h (ptid_match): ... here.
9082 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9084 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9085 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9088 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9090 * obsd-tdep.c (obsd_auxv_parse): New function.
9091 (obsd_init_abi): Set auxv_parse.
9093 * gdbarch.sh (auxv_parse): New.
9094 * gdbarch.h: Regenerated.
9095 * gdbarch.c: Regenerated.
9096 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9098 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9100 * guile/scm-value.c (gdbscm_history_append_x): New function.
9101 (value_functions): Add it.
9103 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9105 * dwarf2read.c (attr_value_as_address): New function.
9106 (dwarf2_find_base_address, read_call_site_scope): Use
9107 attr_value_as_address in place of DW_ADDR.
9108 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9109 the low and high addresses. Slight rework of the handling
9110 of the high pc being a constant form, and limit it to
9111 DWARF verson 4 or higher.
9112 (dwarf2_record_block_ranges): Likewise.
9113 (read_partial_die): Likewise.
9114 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9116 2014-02-26 Tom Tromey <tromey@redhat.com>
9118 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9120 2014-02-26 Tom Tromey <tromey@redhat.com>
9122 * elfread.c (elf_read_minimal_symbols): Return early if
9123 minimal symbols have already been read. Add "ei" parameter.
9124 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9125 * minsyms.c (prim_record_minimal_symbol_full): Update.
9126 * objfiles.h (struct objstats) <n_minsyms>: Move...
9127 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9128 * symmisc.c (print_objfile_statistics): Update.
9130 2014-02-26 Tom Tromey <tromey@redhat.com>
9132 * elfread.c (elf_read_minimal_symbols): New function, from
9134 (elf_symfile_read): Call it.
9136 2014-02-26 Tom Tromey <tromey@redhat.com>
9138 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9139 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9140 (lookup_minimal_symbol_solib_trampoline)
9141 (lookup_minimal_symbol_by_pc_section_1)
9142 (lookup_minimal_symbol_and_objfile): Update.
9143 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9144 Don't allocate a minimal symbol if minsyms have already been read.
9145 (build_minimal_symbol_hash_tables): Update.
9146 (install_minimal_symbols): Do nothing if minsyms already read.
9147 Use the per-BFD obstack.
9148 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9149 * objfiles.c (allocate_objfile): Call
9150 terminate_minimal_symbol_table later.
9151 (have_minimal_symbols): Update.
9152 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9153 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9154 Move from struct objfile.
9155 <minsyms_read>: New field.
9156 (struct objfile) <msymbols, minimal_symbol_count,
9157 msymbol_hash, msymbol_demangled_hash>: Move.
9158 (ALL_OBJFILE_MSYMBOLS): Update.
9159 * symfile.c (read_symbols): Set minsyms_read.
9160 (reread_symbols): Update.
9161 * symmisc.c (dump_objfile, dump_msymbols): Update.
9163 2014-02-26 Tom Tromey <tromey@redhat.com>
9165 * minsyms.c (msymbols_sort): Remove.
9166 * minsyms.h (msymbols_sort): Remove.
9167 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9168 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9169 * elfread.c (elf_symtab_read): Don't add section offsets.
9170 * xcoffread.c (record_minimal_symbol): Don't add section offset
9171 to minimal symbol address.
9172 * somread.c (text_offset, data_offset): Remove.
9173 (som_symtab_read): Don't add section offsets to minimal symbol
9175 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9176 Don't add section offsets to minimal symbols.
9177 * coffread.c (coff_symtab_read): Don't add section offsets
9178 to minimal symbol addresses.
9179 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9180 to minimal symbol addresses.
9181 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9182 section offset to minimal symbol addresses.
9183 * mdebugread.c (parse_partial_symbols): Don't add section
9184 offset to minimal symbol addresses.
9185 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9186 offset to minimal symbol addresses.
9188 2014-02-26 Tom Tromey <tromey@redhat.com>
9190 * ada-lang.c (ada_main_name): Update.
9191 (ada_add_standard_exceptions): Update.
9192 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9193 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9194 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9195 * auxv.c (ld_so_xfer_auxv): Update.
9196 * avr-tdep.c (avr_scan_prologue): Update.
9197 * ax-gdb.c (gen_var_ref): Update.
9198 * blockframe.c (get_pc_function_start)
9199 (find_pc_partial_function_gnu_ifunc): Update.
9200 * breakpoint.c (create_overlay_event_breakpoint)
9201 (create_longjmp_master_breakpoint)
9202 (create_std_terminate_master_breakpoint)
9203 (create_exception_master_breakpoint): Update.
9204 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9205 * c-valprint.c (c_val_print): Update.
9206 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9207 * common/agent.c (agent_look_up_symbols): Update.
9208 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9209 * dwarf2loc.c (call_site_to_target_addr): Update.
9210 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9211 * elfread.c (elf_gnu_ifunc_record_cache)
9212 (elf_gnu_ifunc_resolve_by_got): Update.
9213 * findvar.c (default_read_var_value): Update.
9214 * frame.c (inside_main_func): Update.
9215 * frv-tdep.c (frv_frame_this_id): Update.
9216 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9217 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9219 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9220 (hppa_hpux_find_dummy_bpaddr): Update.
9221 * hppa-tdep.c (hppa_symbol_address): Update.
9222 * infcmd.c (until_next_command): Update.
9223 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9225 * linespec.c (minsym_found, add_minsym): Update.
9226 * linux-nat.c (get_signo): Update.
9227 * linux-thread-db.c (inferior_has_bug): Update.
9228 * m32c-tdep.c (m32c_return_value)
9229 (m32c_m16c_address_to_pointer): Update.
9230 * m32r-tdep.c (m32r_frame_this_id): Update.
9231 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9232 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9233 * maint.c (maintenance_translate_address): Update.
9234 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9235 (frob_address): New function.
9236 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9237 frob_address. Rename parameter to "pc_in".
9238 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9240 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9242 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9243 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9244 * objc-lang.c (find_objc_msgsend): Update.
9245 * objfiles.c (objfile_relocate1): Update.
9246 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9247 * p-valprint.c (pascal_val_print): Update.
9248 * parse.c (write_exp_msymbol): Update.
9249 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9250 (ppc_elfv2_skip_entrypoint): Update.
9251 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9252 * printcmd.c (build_address_symbolic, msym_info)
9253 (address_info): Update.
9254 * proc-service.c (ps_pglobal_lookup): Update.
9255 * psymtab.c (find_pc_sect_psymtab_closer)
9256 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9257 Change msymbol parameter to bound_minimal_symbol.
9258 * ravenscar-thread.c (get_running_thread_id): Update.
9259 * remote.c (remote_check_symbols): Update.
9260 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9262 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9263 * solib-dsbt.c (lm_base): Update.
9264 * solib-frv.c (lm_base, main_got): Update.
9265 * solib-irix.c (locate_base): Update.
9266 * solib-som.c (som_solib_create_inferior_hook)
9267 (link_map_start): Update.
9268 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9269 * solib-svr4.c (elf_locate_base, enable_break): Update.
9270 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9271 (flush_ea_cache): Update.
9272 * stabsread.c (define_symbol, scan_file_globals): Update.
9273 * stack.c (find_frame_funname): Update.
9274 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9275 (debug_qf_find_pc_sect_symtab): Update.
9276 * symfile.c (simple_read_overlay_table)
9277 (simple_overlay_update): Update.
9278 * symfile.h (struct quick_symbol_functions)
9279 <find_pc_sect_symtab>: Change type of msymbol to
9280 bound_minimal_symbol.
9281 * symmisc.c (dump_msymbols): Update.
9282 * symtab.c (find_pc_sect_symtab_via_partial)
9283 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9284 (search_symbols, print_msymbol_info): Update.
9285 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9286 (MSYMBOL_VALUE_ADDRESS): Redefine.
9287 (BMSYMBOL_VALUE_ADDRESS): New macro.
9288 * tracepoint.c (scope_info): Update.
9289 * tui/tui-disasm.c (tui_find_disassembly_address)
9290 (tui_get_begin_asm_address): Update.
9291 * valops.c (find_function_in_inferior): Update.
9292 * value.c (value_static_field, value_fn_field): Update.
9294 2014-02-26 Tom Tromey <tromey@redhat.com>
9296 * ada-lang.c (ada_update_initial_language): Update.
9297 (ada_main_name, ada_has_this_exception_support): Update.
9298 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9299 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9300 * arm-tdep.c (arm_skip_stub): Update.
9301 * auxv.c (ld_so_xfer_auxv): Update.
9302 * avr-tdep.c (avr_scan_prologue): Update.
9303 * ax-gdb.c (gen_var_ref): Update.
9304 * breakpoint.c (struct breakpoint_objfile_data)
9305 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9306 type to bound_minimal_symbol.
9307 (create_overlay_event_breakpoint)
9308 (create_longjmp_master_breakpoint)
9309 (create_std_terminate_master_breakpoint)
9310 (create_exception_master_breakpoint): Update.
9311 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9312 * c-exp.y (classify_name): Update.
9313 * coffread.c (coff_symfile_read): Update.
9314 * common/agent.c (agent_look_up_symbols): Update.
9315 * d-lang.c (d_main_name): Update.
9316 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9317 * dec-thread.c (enable_dec_thread): Update.
9318 * dwarf2loc.c (call_site_to_target_addr): Update.
9319 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9320 * eval.c (evaluate_subexp_standard): Update.
9321 * findvar.c (struct minsym_lookup_data) <result>: Change type
9322 to bound_minimal_symbol.
9324 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9325 * frame.c (inside_main_func): Update.
9326 * frv-tdep.c (frv_frame_this_id): Update.
9327 * gcore.c (call_target_sbrk): Update.
9328 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9329 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9331 * go-lang.c (go_main_name): Update.
9332 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9333 (hppa_hpux_find_import_stub_for_addr): Update.
9334 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9335 Update. Change return type.
9336 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9338 * jit.c (jit_breakpoint_re_set_internal): Update.
9339 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9341 * linux-nat.c (get_signo): Update.
9342 * linux-thread-db.c (inferior_has_bug): Update
9343 * m32c-tdep.c (m32c_return_value)
9344 (m32c_m16c_address_to_pointer): Update.
9345 * m32r-tdep.c (m32r_frame_this_id): Update.
9346 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9347 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9348 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9349 lookup_minimal_symbol. Change return type.
9350 (lookup_minimal_symbol): Remove.
9351 (lookup_bound_minimal_symbol): Update.
9352 (lookup_minimal_symbol_text): Change return type.
9353 (lookup_minimal_symbol_solib_trampoline): Change return type.
9354 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9355 (lookup_minimal_symbol_solib_trampoline): Change return type.
9356 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9357 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9358 (value_nsstring, find_imps): Update.
9359 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9360 * p-lang.c (pascal_main_name): Update.
9361 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9362 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9363 * proc-service.c (ps_pglobal_lookup): Update.
9364 * ravenscar-thread.c (get_running_thread_msymbol): Change
9366 (has_ravenscar_runtime, get_running_thread_id): Update.
9367 * remote.c (remote_check_symbols): Update.
9368 * sol-thread.c (ps_pglobal_lookup): Update.
9369 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9370 * solib-dsbt.c (lm_base): Update.
9371 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9373 * solib-irix.c (locate_base): Update.
9374 * solib-som.c (som_solib_create_inferior_hook)
9375 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9377 * solib-spu.c (spu_enable_break): Update.
9378 * solib-svr4.c (elf_locate_base, enable_break): Update.
9379 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9380 (flush_ea_cache): Update.
9381 * stabsread.c (define_symbol): Update.
9382 * symfile.c (simple_read_overlay_table): Update.
9383 * symtab.c (find_pc_sect_line): Update.
9384 * tracepoint.c (scope_info): Update.
9385 * tui-disasm.c (tui_get_begin_asm_address): Update.
9386 * value.c (value_static_field): Update.
9388 2014-02-26 Tom Tromey <tromey@redhat.com>
9390 * minsyms.c (prim_record_minimal_symbol_full): Use
9391 SET_MSYMBOL_VALUE_ADDRESS.
9392 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9393 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9394 SET_MSYMBOL_VALUE_ADDRESS.
9395 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9396 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9398 2014-02-26 Tom Tromey <tromey@redhat.com>
9400 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9401 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9402 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9403 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9404 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9405 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9406 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9407 * ada-lang.c (ada_main_name): Update.
9408 (ada_lookup_simple_minsym): Update.
9409 (ada_make_symbol_completion_list): Update.
9410 (ada_add_standard_exceptions): Update.
9411 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9412 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9413 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9414 * arm-tdep.c (skip_prologue_function): Update.
9415 (arm_skip_stack_protector, arm_skip_stub): Update.
9416 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9417 (arm_wince_skip_main_prologue): Update.
9418 * auxv.c (ld_so_xfer_auxv): Update.
9419 * avr-tdep.c (avr_scan_prologue): Update.
9420 * ax-gdb.c (gen_var_ref): Update.
9421 * block.c (call_site_for_pc): Update.
9422 * blockframe.c (get_pc_function_start): Update.
9423 (find_pc_partial_function_gnu_ifunc): Update.
9424 * breakpoint.c (create_overlay_event_breakpoint): Update.
9425 (create_longjmp_master_breakpoint): Update.
9426 (create_std_terminate_master_breakpoint): Update.
9427 (create_exception_master_breakpoint): Update.
9428 (resolve_sal_pc): Update.
9429 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9430 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9432 * c-valprint.c (c_val_print): Update.
9433 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9434 * coffread.c (coff_symfile_read): Update.
9435 * common/agent.c (agent_look_up_symbols): Update.
9436 * dbxread.c (find_stab_function_addr): Update.
9437 (end_psymtab): Update.
9438 * dwarf2loc.c (call_site_to_target_addr): Update.
9439 (func_verify_no_selftailcall): Update.
9440 (tailcall_dump): Update.
9441 (call_site_find_chain_1): Update.
9442 (dwarf_expr_reg_to_entry_parameter): Update.
9443 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9444 (elf_gnu_ifunc_resolve_by_got): Update.
9445 * f-valprint.c (info_common_command): Update.
9446 * findvar.c (read_var_value): Update.
9447 * frame.c (get_prev_frame_1): Update.
9448 (inside_main_func): Update.
9449 * frv-tdep.c (frv_skip_main_prologue): Update.
9450 (frv_frame_this_id): Update.
9451 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9452 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9453 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9454 (gnuv3_skip_trampoline): Update.
9455 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9456 (hppa64_hpux_in_solib_call_trampoline): Update.
9457 (hppa_hpux_skip_trampoline_code): Update.
9458 (hppa64_hpux_search_dummy_call_sequence): Update.
9459 (hppa_hpux_find_import_stub_for_addr): Update.
9460 (hppa_hpux_find_dummy_bpaddr): Update.
9461 * hppa-tdep.c (hppa_symbol_address)
9462 (hppa_lookup_stub_minimal_symbol): Update.
9463 * i386-tdep.c (i386_skip_main_prologue): Update.
9464 (i386_pe_skip_trampoline_code): Update.
9465 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9466 * infcall.c (get_function_name): Update.
9467 * infcmd.c (until_next_command): Update.
9468 * jit.c (jit_breakpoint_re_set_internal): Update.
9469 (jit_inferior_init): Update.
9470 * linespec.c (minsym_found): Update.
9471 (add_minsym): Update.
9472 * linux-fork.c (info_checkpoints_command): Update.
9473 * linux-nat.c (get_signo): Update.
9474 * linux-thread-db.c (inferior_has_bug): Update.
9475 * m32c-tdep.c (m32c_return_value): Update.
9476 (m32c_m16c_address_to_pointer): Update.
9477 (m32c_m16c_pointer_to_address): Update.
9478 * m32r-tdep.c (m32r_frame_this_id): Update.
9479 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9480 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9481 * maint.c (maintenance_translate_address): Update.
9482 * minsyms.c (add_minsym_to_hash_table): Update.
9483 (add_minsym_to_demangled_hash_table): Update.
9484 (msymbol_objfile): Update.
9485 (lookup_minimal_symbol): Update.
9486 (iterate_over_minimal_symbols): Update.
9487 (lookup_minimal_symbol_text): Update.
9488 (lookup_minimal_symbol_by_pc_name): Update.
9489 (lookup_minimal_symbol_solib_trampoline): Update.
9490 (lookup_minimal_symbol_by_pc_section_1): Update.
9491 (lookup_minimal_symbol_and_objfile): Update.
9492 (prim_record_minimal_symbol_full): Update.
9493 (compare_minimal_symbols): Update.
9494 (compact_minimal_symbols): Update.
9495 (build_minimal_symbol_hash_tables): Update.
9496 (install_minimal_symbols): Update.
9497 (terminate_minimal_symbol_table): Update.
9498 (find_solib_trampoline_target): Update.
9499 (minimal_symbol_upper_bound): Update.
9500 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9501 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9502 (mips_skip_pic_trampoline_code): Update.
9503 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9504 * objc-lang.c (selectors_info): Update.
9505 (classes_info): Update.
9506 (find_methods): Update.
9507 (find_imps): Update.
9508 (find_objc_msgsend): Update.
9509 * objfiles.c (objfile_relocate1): Update.
9510 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9511 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9512 * p-valprint.c (pascal_val_print): Update.
9513 * parse.c (write_exp_msymbol): Update.
9514 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9515 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9516 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9517 * printcmd.c (build_address_symbolic): Update.
9519 (address_info): Update.
9520 * proc-service.c (ps_pglobal_lookup): Update.
9521 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9522 (find_pc_sect_psymtab): Update.
9523 * python/py-framefilter.c (py_print_frame): Update.
9524 * ravenscar-thread.c (get_running_thread_id): Update.
9525 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9527 * remote.c (remote_check_symbols): Update.
9528 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9529 (rs6000_skip_trampoline_code): Update.
9530 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9531 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9532 * solib-dsbt.c (lm_base): Update.
9533 * solib-frv.c (lm_base): Update.
9535 * solib-irix.c (locate_base): Update.
9536 * solib-som.c (som_solib_create_inferior_hook): Update.
9537 (som_solib_desire_dynamic_linker_symbols): Update.
9538 (link_map_start): Update.
9539 * solib-spu.c (spu_enable_break): Update.
9540 (ocl_enable_break): Update.
9541 * solib-svr4.c (elf_locate_base): Update.
9542 (enable_break): Update.
9543 * spu-tdep.c (spu_get_overlay_table): Update.
9544 (spu_catch_start): Update.
9545 (flush_ea_cache): Update.
9546 * stabsread.c (define_symbol): Update.
9547 (scan_file_globals): Update.
9548 * stack.c (find_frame_funname): Update.
9549 (frame_info): Update.
9550 * symfile.c (simple_read_overlay_table): Update.
9551 (simple_overlay_update): Update.
9552 * symmisc.c (dump_msymbols): Update.
9553 * symtab.c (fixup_section): Update.
9554 (find_pc_sect_line): Update.
9555 (skip_prologue_sal): Update.
9556 (search_symbols): Update.
9557 (print_msymbol_info): Update.
9558 (rbreak_command): Update.
9559 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9560 (completion_list_objc_symbol): Update.
9561 (default_make_symbol_completion_list_break_on): Update.
9562 * tracepoint.c (scope_info): Update.
9563 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9564 (tui_get_begin_asm_address): Update.
9565 * valops.c (find_function_in_inferior): Update.
9566 * value.c (value_static_field): Update.
9567 (value_fn_field): Update.
9569 2014-02-26 Tom Tromey <tromey@redhat.com>
9571 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9572 bound minimal symbols. Move code that knows about minsym
9574 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9576 * minsyms.h (minimal_symbol_upper_bound): Declare.
9577 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9578 minimal_symbol_upper_bound.
9580 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9582 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9583 Use the type's name if its basic type does not have a tag.
9585 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9587 * dwarf2read.c (read_subrange_type): Add comment.
9589 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9591 * dwarf2read.c (update_enumeration_type_from_children): New
9592 function, mostly extracted from process_structure_scope.
9593 (read_enumeration_type): Call update_enumeration_type_from_children.
9594 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9595 and flag_flag_enum fields.
9597 2014-02-26 Pedro Alves <palves@redhat.com>
9599 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9600 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9601 to_xfer_partial method.
9603 2014-02-26 Pedro Alves <palves@redhat.com>
9605 * target.c (complete_target_initialization): Don't install
9606 default_xfer_partial as to_xfer_partial hook.
9608 (update_current_target): Don't INHERIT nor de_fault
9609 deprecated_xfer_memory. Delete de_fault macro.
9610 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9611 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9612 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9615 2014-02-26 Pedro Alves <palves@redhat.com>
9617 * go32-nat.c (my_write_child): New function.
9618 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9619 (go32_xfer_partial): New function.
9620 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9621 Instead install a to_xfer_partial hook.
9623 2014-02-26 Pedro Alves <palves@redhat.com>
9625 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9626 to_xfer_partial helper. Rewrite.
9627 (procfs_xfer_partial): New function.
9628 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9629 Install a to_xfer_partial hook.
9631 2014-02-26 Pedro Alves <palves@redhat.com>
9633 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9634 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9635 (m32r_xfer_partial): New function.
9636 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9637 Install a to_xfer_partial hook.
9639 2014-02-26 Pedro Alves <palves@redhat.com>
9641 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9643 (mips_xfer_partial): New function.
9644 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9645 hook. Install a to_xfer_partial hook.
9647 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9649 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9650 * gdbtypes.c (create_array_type_with_stride): New function,
9651 renaming create_array_type, but with an added parameter
9652 called "bit_stride".
9653 (create_array_type): Re-implement using
9654 create_array_type_with_stride.
9655 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9656 and DW_AT_bit_stride attributes.
9658 2014-02-26 Pedro Alves <palves@redhat.com>
9660 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9661 task-specific breakpoints.
9663 2014-02-25 Pedro Alves <palves@redhat.com>
9665 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9666 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9668 2014-02-25 Stan Shebs <stan@codesourcery.com>
9670 * defs.h: Annotate comments for Doxygen.
9672 2014-02-25 Tom Tromey <tromey@redhat.com>
9674 * target.h (target_ignore): Don't declare.
9675 * target.c (target_ignore): Remove.
9677 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9680 * auto-load.c (auto_load_objfile_script_1): Change filename to
9683 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9685 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9686 documentation. Adjust prototype to match the target_ops
9687 to_xfer_partial method. Adjust implementation accordingly.
9689 2014-02-25 Hui Zhu <hui@codesourcery.com>
9691 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9694 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9696 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9697 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9698 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9699 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9700 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9701 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9702 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9703 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9705 (rl78_register_type): Use a data pointer type for SP and
9706 new pseudo registers mentioned above. Use a 16 bit integer
9707 type for all other register pairs.
9708 (rl78_register_name, rl78_g10_register_name): Update for
9709 new pseudo registers.
9710 (rl78_pseudo_register_read): Likewise.
9711 (rl78_pseudo_register_write): Likewise.
9712 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9713 to the newly added pseudo registers.
9715 2014-02-24 Doug Evans <dje@google.com>
9717 * value.c (record_latest_value): Fix comment.
9718 * printcmd.c (print_command_1): Remove code to handle -1 return from
9719 record_latest_value.
9721 2014-02-24 Pedro Alves <palves@redhat.com>
9723 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9724 deprecated_xfer_memory hook.
9725 (procfs_xfer_partial): Call procfs_xfer_memory instead
9726 of the deprecated_xfer_memory target hook.
9727 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9730 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9732 * windows-nat.c (windows_xfer_shared_libraries): Return
9733 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9734 requested object is TARGET_OBJECT_LIBRARIES.
9736 2014-02-24 Yao Qi <yao@codesourcery.com>
9738 * target.h (enum target_xfer_status)
9739 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9740 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9742 * corefile.c (memory_error_message): User updated.
9743 * exec.c (section_table_read_available_memory): Likewise.
9744 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9745 * target.c (target_xfer_status_to_string): Likewise.
9746 (raw_memory_xfer_partial): Likewise.
9747 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9748 * valops.c (read_value_memory): Likewise.
9749 * exec.h: Update comments.
9751 2014-02-24 Yao Qi <yao@codesourcery.com>
9753 * target.c (target_xfer_status_to_string): Rename argument err
9755 * target.h (target_xfer_status_to_string): Update declaration.
9756 Replace target_xfer_error_to_string with
9757 target_xfer_status_to_string in comment.
9759 2014-02-24 Yao Qi <yao@codesourcery.com>
9761 * mips-linux-nat.c (super_close): Update its type.
9762 (mips_linux_close): Pass 'self' to super_close.
9764 2014-02-24 Yao Qi <yao@codesourcery.com>
9766 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9767 * corefile.c (read_memory): Adjusted.
9768 * target.c (target_write_with_progress): Adjusted.
9770 2014-02-23 Yao Qi <yao@codesourcery.com>
9774 2013-10-25 Yao Qi <yao@codesourcery.com>
9776 * remote.c (remote_traceframe_info): Return early if
9777 traceframe is not selected.
9779 2013-07-19 Yao Qi <yao@codesourcery.com>
9781 * target.c (update_current_target): Change the default action
9782 of 'to_traceframe_info' from tcomplain to return_zero.
9783 * target.h (struct target_ops) <to_traceframe_info>: Add more
9786 2014-02-23 Yao Qi <yao@codesourcery.com>
9788 * valops.c (read_value_memory): Rewrite it. Call
9789 target_xfer_partial in a loop.
9790 * exec.h (section_table_available_memory): Remove declaration.
9791 Move comments to ...
9792 * exec.c (section_table_available_memory): ... here. Make it
9795 2014-02-23 Yao Qi <yao@codesourcery.com>
9797 * exec.c (section_table_read_available_memory): New function.
9798 * exec.h (section_table_read_available_memory): Declare.
9799 * ctf.c (ctf_xfer_partial): Call
9800 section_table_read_available_memory.
9801 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9803 2014-02-23 Yao Qi <yao@codesourcery.com>
9805 * ctf.c (ctf_xfer_partial): Move code to ...
9806 * exec.c (exec_read_partial_read_only): ... it. New function.
9807 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9808 * tracefile.c: Include "exec.h".
9809 * exec.h (exec_read_partial_read_only): Declare.
9811 2014-02-23 Yao Qi <yao@codesourcery.com>
9813 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9814 (tfile_has_memory): Remove.
9815 (init_tfile_ops): Don't set fields to_has_all_memory and
9816 to_has_memory of tfile_ops.
9817 * tracefile.c (tracefile_has_all_memory): New function.
9818 (tracefile_has_memory): New function.
9819 (init_tracefile_ops): Initialize fields to_has_all_memory and
9820 to_has_memory of 'ops'.
9822 2014-02-23 Yao Qi <yao@codesourcery.com>
9824 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9825 (ctf_thread_alive, ctf_get_trace_status): Remove.
9826 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9828 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9829 (tfile_has_stack, tfile_has_registers): Remove.
9830 (tfile_thread_alive): Remove.
9831 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9833 * tracefile.c (tracefile_has_stack): New function.
9834 (tracefile_has_registers): New function.
9835 (tracefile_thread_alive): New function.
9836 (tracefile_get_trace_status): New function.
9837 (init_tracefile_ops): New function.
9838 * tracefile.h (init_tracefile_ops): Declare.
9840 2014-02-23 Yao Qi <yao@codesourcery.com>
9842 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9843 (O_LARGEFILE): Likewise.
9844 (tfile_ops): Likewise.
9845 (TRACE_HEADER_SIZE): Likewise.
9846 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9847 (cur_data_size): Likewise.
9848 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9849 (tfile_close, tfile_files_info): Likewise.
9850 (tfile_get_trace_status): Likewise.
9851 (tfile_get_tracepoint_status): Likewise.
9852 (tfile_get_traceframe_address): Likewise.
9853 (tfile_trace_find, match_blocktype): Likewise.
9854 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9855 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9856 (tfile_get_trace_state_variable_value): Likewise.
9857 (tfile_has_all_memory, tfile_has_memory): Likewise.
9858 (tfile_has_stack, tfile_has_registers): Likewise.
9859 (tfile_thread_alive, build_traceframe_info): Likewise.
9860 (tfile_traceframe_info, init_tfile_ops): Likewise.
9861 (_initialize_tracepoint): Don't call init_tfile_ops
9862 and add_target_with_completer.
9863 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9864 exec.h, completer.h and filenames.h.
9865 (_initialize_tracefile_tfile): New function.
9867 2014-02-23 Yao Qi <yao@codesourcery.com>
9869 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9871 (HFILES_NO_SRCDIR): Add tracefile.h.
9872 * ctf.c: Include "tracefile.h".
9873 * tracefile.h: New file.
9874 * tracefile.c: New file
9875 * tracefile-tfile.c: New file.
9876 * tracepoint.c: Include "tracefile.h".
9877 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9878 (stop_reason_names): Add const.
9879 (trace_file_writer_xfree): Move it to tracefile.c.
9880 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9881 (trace_save_ctf): Likewise.
9882 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9883 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9884 (tfile_write_header, tfile_write_regblock_type): Likewise.
9885 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9886 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9887 (tfile_write_raw_data, tfile_end): Likewise.
9888 (tfile_trace_file_writer_new): Likewise.
9889 (free_uploaded_tp): Make it extern.
9890 (free_uploaded_tsv): Make it extern.
9891 (_initialize_tracepoint): Move code to register command 'tsave'
9893 * tracepoint.h (stop_reason_names): Declare.
9894 (struct trace_frame_write_ops): Move it to tracefile.h.
9895 (struct trace_file_write_ops): Likewise.
9896 (struct trace_file_writer): Likewise.
9897 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9899 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9902 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9904 (get_cores_used_by_process): New parameter num_cores, use it.
9905 (linux_xfer_osdata_processes): Pass num_cores to it.
9906 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9909 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9911 * target.c (memory_xfer_partial): Fix length arg in call to
9912 breakpoint_xfer_memory.
9914 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9917 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9918 number comes after the + or - signs. Adjust length of register
9919 name to be extracted.
9921 2014-02-20 Tom Tromey <tromey@redhat.com>
9923 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9924 (ada_varobj_ops): Mark "extern".
9926 2014-02-20 Tom Tromey <tromey@redhat.com>
9928 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9930 2014-02-20 Doug Evans <xdje42@gmail.com>
9932 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9933 All callers updated.
9934 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9935 All callers updated.
9936 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9937 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9939 2014-02-20 lin zuojian <manjian2006@gmail.com>
9940 Joel Brobecker <brobecker@adacore.com>
9941 Doug Evans <xdje42@gmail.com>
9944 * dwarf2read.c (struct die_info): New member in_process.
9945 (reset_die_in_process): New function.
9946 (process_die): Set it at the start, reset when returning.
9947 (inherit_abstract_dies): Only call process_die if origin_child_die
9948 not already being processed.
9950 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9952 * windows-nat.c (handle_unload_dll): Add function documentation.
9953 (do_initial_windows_stuff): Add comment explaining why we wait
9954 until after inferior initialization has finished before
9955 processing all DLLs.
9957 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9959 * windows-nat.c (get_module_name): Delete.
9960 (windows_get_exec_module_filename): New function, mostly
9961 inspired from get_module_name.
9962 (windows_pid_to_exec_file): Replace call to get_module_name
9963 by call to windows_get_exec_module_filename.
9965 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9967 * windows-nat.c (handle_load_dll): Rewrite this function's
9968 introductory comment. Remove code using get_module_name
9969 to get the DLL's name.
9971 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9973 * windows-nat.c (get_windows_debug_event): Ignore
9974 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9975 if windows_initialization_done == 0.
9976 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9977 Adjust implementation to always load all DLLs.
9978 (do_initial_windows_stuff): Replace call to
9979 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9981 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9983 * windows-nat.c (_initialize_windows_nat): Deprecate the
9984 "dll-symbols" command. Turn the "add-shared-symbol-files"
9985 and "assf" aliases into commands, and deprecate them as well.
9986 * NEWS: Add entry explaining that "dll-symbols" and its two
9987 aliases are now deprecated.
9989 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9991 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9992 new-line in debug string. Remove trailing spaces.
9994 2014-02-19 Stan Shebs <stan@codesourcery.com>
9996 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9998 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10000 * NEWS: Add entry for the new feature
10001 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10004 2014-02-19 Stan Shebs <stan@codesourcery.com>
10006 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10008 2014-02-19 Pedro Alves <palves@redhat.com>
10010 * common/ptid.h (struct ptid): Mention that process_stratum
10011 targets should prefer ptid.lwp.
10013 2014-02-19 Pedro Alves <palves@redhat.com>
10015 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10016 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10017 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10018 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10019 store remote thread ids rather than ptid.tid.
10020 (_initialize_remote): Adjust.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target.c (target_get_unwinder): Rewrite.
10025 (target_get_tailcall_unwinder): Rewrite.
10026 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10027 (record_btrace_to_get_tailcall_unwinder): New function.
10028 (init_record_btrace_ops): Update.
10029 * target.h (struct target_ops) <to_get_unwinder,
10030 to_get_tailcall_unwinder>: Now function pointers. Use
10031 TARGET_DEFAULT_RETURN.
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10035 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10037 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10043 * target-delegates.c: Rebuild.
10044 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10045 TARGET_DEFAULT_FUNC.
10046 * target.c (default_target_decr_pc_after_break): Rename from
10047 forward_target_decr_pc_after_break. Simplify.
10048 (target_decr_pc_after_break): Rely on delegation.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.c (update_current_target): Do not INHERIT to_doc or
10053 to_magic. Do not de_fault to_open or to_close.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * gcore.h (objfile_find_memory_regions): Declare.
10058 * gcore.c (objfile_find_memory_regions): No longer static. Add
10060 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10061 * exec.c: Include gcore.h.
10062 (exec_set_find_memory_regions): Remove.
10063 (exec_find_memory_regions): Remove.
10064 (exec_do_find_memory_regions): Remove.
10065 (init_exec_ops): Update.
10066 * defs.h (exec_set_find_memory_regions): Remove.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.h (struct target_ops) <to_extra_thread_info,
10072 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10073 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10074 not 0, in TARGET_DEFAULT_RETURN.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target.c (complete_target_initialization): Remove casts. Use
10079 return_zero_has_execution.
10080 (return_zero): Add "ignore" argument.
10081 (return_zero_has_execution): New function.
10082 (init_dummy_target): Remove casts. Use
10083 return_zero_has_execution.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.c (update_current_target): Update comments. Do not
10088 INHERIT to_stratum.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10094 * corelow.c (core_read_description): Delegate when needed.
10095 * remote.c (remote_read_description): Delegate when needed.
10096 * target-delegates.c: Rebuild.
10097 * target.c (target_read_description): Rewrite.
10098 * target.h (struct target_ops) <to_read_description>: Update
10099 comment. Use TARGET_DEFAULT_RETURN.
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10103 * target-delegates.c: Rebuild.
10104 * target.c (update_current_target): Don't inherit or default
10106 (find_default_run_target): Check against delegate_can_run.
10107 * target.h (struct target_ops) <to_can_run>: Use
10108 TARGET_DEFAULT_RETURN.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_disconnect): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_disconnect>: Use
10115 TARGET_DEFAULT_NORETURN.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * record.c (record_stop): Unconditionally delegate.
10120 * target-delegates.c: Rebuild.
10121 * target.c (target_stop_recording): Unconditionally delegate.
10122 * target.h (struct target_ops) <to_stop_recording>: Use
10123 TARGET_DEFAULT_IGNORE.
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10127 * target-delegates.c: Rebuild.
10128 * target.c (target_enable_btrace): Unconditionally delegate.
10129 * target.h (struct target_ops) <to_enable_btrace>: Use
10130 TARGET_DEFAULT_NORETURN.
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_read_btrace): Unconditionally delegate.
10136 * target.h (struct target_ops) <to_read_btrace>: Use
10137 TARGET_DEFAULT_NORETURN.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target-delegates.c: Rebuild.
10142 * target.c (target_teardown_btrace): Unconditionally delegate.
10143 * target.h (struct target_ops) <to_teardown_btrace>: Use
10144 TARGET_DEFAULT_NORETURN.
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10148 * target-delegates.c: Rebuild.
10149 * target.c (target_disable_btrace): Unconditionally delegate.
10150 * target.h (struct target_ops) <to_disable_btrace>: Use
10151 TARGET_DEFAULT_NORETURN.
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10155 * target-delegates.c: Rebuild.
10156 * target.c (default_search_memory): New function.
10157 (simple_search_memory): Update comment.
10158 (target_search_memory): Unconditionally delegate.
10159 * target.h (struct target_ops) <to_search_memory>: Use
10160 TARGET_DEFAULT_FUNC.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * auxv.c (default_auxv_parse): No longer static.
10165 (target_auxv_parse): Unconditionally delegate.
10166 * auxv.h (default_auxv_parse): Declare.
10167 * target-delegates.c: Rebuild.
10168 * target.c: Include auxv.h.
10169 * target.h (struct target_ops) <to_auxv_parse>: Use
10170 TARGET_DEFAULT_FUNC.
10172 2014-02-19 Tom Tromey <tromey@redhat.com>
10174 * target-delegates.c: Rebuild.
10175 * target.c (target_memory_map): Unconditionally delegate.
10176 * target.h (struct target_ops) <to_memory_map>: Use
10177 TARGET_DEFAULT_RETURN.
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10181 * target-delegates.c: Rebuild.
10182 * target.c (target_thread_alive): Unconditionally delegate.
10183 * target.h (struct target_ops) <to_thread_alive>: Use
10184 TARGET_DEFAULT_RETURN.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target-delegates.c: Rebuild.
10189 * target.c (target_save_record): Unconditionally delegate.
10190 * target.h (struct target_ops) <to_save_record>: Use
10191 TARGET_DEFAULT_NORETURN.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_delete_record): Unconditionally delegate.
10197 * target.h (struct target_ops) <to_delete_record>: Use
10198 TARGET_DEFAULT_NORETURN.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target-delegates.c: Rebuild.
10203 * target.c (target_record_is_replaying): Unconditionally
10205 * target.h (struct target_ops) <to_record_is_replaying>: Use
10206 TARGET_DEFAULT_RETURN.
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_goto_record_begin): Unconditionally delegate.
10212 * target.h (struct target_ops) <to_goto_record_begin>: Use
10213 TARGET_DEFAULT_NORETURN.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target-delegates.c: Rebuild.
10218 * target.c (target_goto_record_end): Unconditionally delegate.
10219 * target.h (struct target_ops) <to_goto_record_end>: Use
10220 TARGET_DEFAULT_NORETURN.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (target_goto_record): Unconditionally delegate.
10226 * target.h (struct target_ops) <to_goto_record>: Use
10227 TARGET_DEFAULT_NORETURN.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target-delegates.c: Rebuild.
10232 * target.c (target_insn_history): Unconditionally delegate.
10233 * target.h (struct target_ops) <to_insn_history>: Use
10234 TARGET_DEFAULT_NORETURN.
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target-delegates.c: Rebuild.
10239 * target.c (target_insn_history_from): Unconditionally delegate.
10240 * target.h (struct target_ops) <to_insn_history_from>: Use
10241 TARGET_DEFAULT_NORETURN.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target-delegates.c: Rebuild.
10246 * target.c (target_insn_history_range): Unconditionally delegate.
10247 * target.h (struct target_ops) <to_insn_history_range>: Use
10248 TARGET_DEFAULT_NORETURN.
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * target-delegates.c: Rebuild.
10253 * target.c (target_call_history): Unconditionally delegate.
10254 * target.h (struct target_ops) <to_call_history>: Use
10255 TARGET_DEFAULT_NORETURN.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target-delegates.c: Rebuild.
10260 * target.c (target_call_history_from): Unconditionally delegate.
10261 * target.h (struct target_ops) <to_call_history_from>: Use
10262 TARGET_DEFAULT_NORETURN.
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target-delegates.c: Rebuild.
10267 * target.c (target_call_history_range): Unconditionally delegate.
10268 * target.h (struct target_ops) <to_call_history_range>: Use
10269 TARGET_DEFAULT_NORETURN.
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10273 * target-delegates.c: Rebuild.
10274 * target.c (target_verify_memory): Unconditionally delegate.
10275 * target.h (struct target_ops) <to_verify_memory>: Use
10276 TARGET_DEFAULT_NORETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (target_core_of_thread): Unconditionally delegate.
10282 * target.h (struct target_ops) <to_core_of_thread>: Use
10283 TARGET_DEFAULT_RETURN.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_flash_done): Unconditionally delegate.
10289 * target.h (struct target_ops) <to_flash_done>: Use
10290 TARGET_DEFAULT_NORETURN.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (target_flash_erase): Unconditionally delegate.
10296 * target.h (struct target_ops) <to_flash_erase>: Use
10297 TARGET_DEFAULT_NORETURN.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_get_section_table): Unconditionally delegate.
10303 * target.h (struct target_ops) <to_get_section_table>: Use
10304 TARGET_DEFAULT_RETURN.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target-delegates.c: Rebuild.
10309 * target.c (target_pid_to_str): Unconditionally delegate.
10310 (init_dummy_target): Don't initialize to_pid_to_str.
10311 (default_pid_to_str): Rename from dummy_pid_to_str.
10312 * target.h (struct target_ops) <to_pid_to_str>: Use
10313 TARGET_DEFAULT_FUNC.
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10317 * target-delegates.c: Rebuild.
10318 * target.c (target_find_new_threads): Unconditionally delegate.
10319 * target.h (struct target_ops) <to_find_new_threads>: Use
10320 TARGET_DEFAULT_RETURN.
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target-delegates.c: Rebuild.
10325 * target.c (target_program_signals): Unconditionally delegate.
10326 * target.h (struct target_ops) <to_program_signals>: Use
10327 TARGET_DEFAULT_IGNORE.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target-delegates.c: Rebuild.
10332 * target.c (target_pass_signals): Unconditionally delegate.
10333 * target.h (struct target_ops) <to_pass_signals>: Use
10334 TARGET_DEFAULT_IGNORE.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * target-delegates.c: Rebuild.
10339 * target.c (default_mourn_inferior): New function.
10340 (target_mourn_inferior): Unconditionally delegate.
10341 * target.h (struct target_ops) <to_mourn_inferior>: Use
10342 TARGET_DEFAULT_FUNC.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (default_follow_fork): New function.
10348 (target_follow_fork): Unconditionally delegate.
10349 * target.h (struct target_ops) <to_follow_fork>: Use
10350 TARGET_DEFAULT_FUNC.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target-delegates.c: Rebuild.
10355 * target.c (target_kill): Unconditionally delegate.
10356 * target.h (struct target_ops) <to_kill>: Use
10357 TARGET_DEFAULT_NORETURN.
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10361 * target-delegates.c: Rebuild.
10362 * target.c (target_masked_watch_num_registers): Unconditionally
10364 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10365 Use TARGET_DEFAULT_RETURN.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target-delegates.c: Rebuild.
10370 * target.c (target_remove_mask_watchpoint): Unconditionally
10372 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10373 TARGET_DEFAULT_RETURN.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target-delegates.c: Rebuild.
10378 * target.c (target_insert_mask_watchpoint): Unconditionally
10380 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10381 TARGET_DEFAULT_RETURN.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target-delegates.c: Rebuild.
10386 * target.c (target_ranged_break_num_registers): Unconditionally
10388 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10389 Use TARGET_DEFAULT_RETURN.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (target_fetch_registers): Unconditionally delegate.
10395 * target.h (struct target_ops) <to_fetch_registers>: Use
10396 TARGET_DEFAULT_NORETURN.
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
10403 * target.h (struct target_ops) <to_stop>: Use
10404 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
10411 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10412 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
10419 * target.h (struct target_ops)
10420 <to_supports_evaluation_of_breakpoint_conditions>: Use
10421 TARGET_DEFAULT_RETURN.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_augmented_libraries_svr4_read.
10428 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10429 Use TARGET_DEFAULT_RETURN.
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 * target.h (struct target_ops) <to_can_use_agent>: Use
10437 TARGET_DEFAULT_RETURN.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10444 * target.h (struct target_ops) <to_use_agent>: Use
10445 TARGET_DEFAULT_NORETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_traceframe_info.
10452 (return_null): Remove.
10453 * target.h (struct target_ops) <to_traceframe_info>: Use
10454 TARGET_DEFAULT_RETURN.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target-delegates.c: Rebuild.
10459 * target.c (update_current_target): Don't inherit or default
10460 to_static_tracepoint_markers_by_strid.
10461 * target.h (struct target_ops)
10462 <to_static_tracepoint_markers_by_strid>: Use
10463 TARGET_DEFAULT_NORETURN.
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10467 * target-delegates.c: Rebuild.
10468 * target.c (update_current_target): Don't inherit or default
10469 to_static_tracepoint_marker_at.
10470 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10471 Use TARGET_DEFAULT_RETURN.
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target-delegates.c: Rebuild.
10476 * target.c (update_current_target): Don't inherit or default
10477 to_set_permissions.
10478 * target.h (struct target_ops) <to_set_permissions>: Use
10479 TARGET_DEFAULT_IGNORE.
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10483 * target-delegates.c: Rebuild.
10484 * target.c (update_current_target): Don't inherit or default
10485 to_get_tib_address.
10486 * target.h (struct target_ops) <to_get_tib_address>: Use
10487 TARGET_DEFAULT_NORETURN.
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10491 * target-delegates.c: Rebuild.
10492 * target.c (update_current_target): Don't inherit or default
10493 to_set_trace_notes.
10494 * target.h (struct target_ops) <to_set_trace_notes>: Use
10495 TARGET_DEFAULT_RETURN.
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't initialize
10501 to_set_trace_buffer_size.
10502 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10503 TARGET_DEFAULT_IGNORE.
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_set_circular_trace_buffer.
10510 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10511 TARGET_DEFAULT_IGNORE.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_set_disconnected_tracing.
10518 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10519 TARGET_DEFAULT_IGNORE.
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10523 * target-delegates.c: Rebuild.
10524 * target.c (update_current_target): Don't inherit or default
10525 to_get_min_fast_tracepoint_insn_len.
10526 (return_minus_one): Remove.
10527 * target.h (struct target_ops)
10528 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_get_raw_trace_data.
10535 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10536 TARGET_DEFAULT_NORETURN.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10542 to_upload_trace_state_variables.
10543 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10544 Use TARGET_DEFAULT_RETURN.
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_upload_tracepoints.
10551 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10552 TARGET_DEFAULT_RETURN.
10554 2014-02-19 Tom Tromey <tromey@redhat.com>
10556 * target-delegates.c: Rebuild.
10557 * target.c (update_current_target): Don't inherit or default
10558 to_save_trace_data.
10559 * target.h (struct target_ops) <to_save_trace_data>: Use
10560 TARGET_DEFAULT_NORETURN.
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10564 * target-delegates.c: Rebuild.
10565 * target.c (update_current_target): Don't inherit or default
10566 to_get_trace_state_variable_value.
10567 * target.h (struct target_ops)
10568 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10575 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't inherit or default
10582 * target.h (struct target_ops) <to_trace_stop>: Use
10583 TARGET_DEFAULT_NORETURN.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_get_tracepoint_status.
10590 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10591 TARGET_DEFAULT_NORETURN.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_get_trace_status.
10598 * target.h (struct target_ops) <to_get_trace_status>: Use
10599 TARGET_DEFAULT_RETURN.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10606 * target.h (struct target_ops) <to_trace_start>: Use
10607 TARGET_DEFAULT_NORETURN.
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_trace_set_readonly_regions.
10614 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10615 Use TARGET_DEFAULT_NORETURN.
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10621 to_disable_tracepoint.
10622 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10623 TARGET_DEFAULT_NORETURN.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10629 to_enable_tracepoint.
10630 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10631 TARGET_DEFAULT_NORETURN.
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10635 * target-delegates.c: Rebuild.
10636 * target.c (update_current_target): Don't inherit or default
10637 to_download_trace_state_variable.
10638 * target.h (struct target_ops) <to_download_trace_state_variable>:
10639 Use TARGET_DEFAULT_NORETURN.
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10643 * target-delegates.c: Rebuild.
10644 * target.c (update_current_target): Don't inherit or default
10645 to_can_download_tracepoint.
10646 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10647 TARGET_DEFAULT_RETURN.
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10651 * target-delegates.c: Rebuild.
10652 * target.c (update_current_target): Don't inherit or default
10653 to_download_tracepoint.
10654 * target.h (struct target_ops) <to_download_tracepoint>: Use
10655 TARGET_DEFAULT_NORETURN.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target-delegates.c: Rebuild.
10660 * target.c (update_current_target): Don't inherit or default
10662 * target.h (struct target_ops) <to_trace_init>: Use
10663 TARGET_DEFAULT_RETURN.
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target-delegates.c: Rebuild.
10668 * target.c (update_current_target): Don't inherit or default
10669 to_supports_string_tracing.
10670 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10671 TARGET_DEFAULT_RETURN.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10677 to_supports_enable_disable_tracepoint.
10678 * target.h (struct target_ops)
10679 <to_supports_enable_disable_tracepoint>: Use
10680 TARGET_DEFAULT_RETURN.
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10684 * target-delegates.c: Rebuild.
10685 * target.c (update_current_target): Don't inherit or default
10686 to_supports_multi_process.
10687 * target.h (struct target_ops) <to_supports_multi_process>: Use
10688 TARGET_DEFAULT_RETURN.
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10692 * target-delegates.c: Rebuild.
10693 * target.c (update_current_target): Don't inherit or default
10694 to_get_ada_task_ptid.
10695 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10696 TARGET_DEFAULT_FUNC.
10698 2014-02-19 Tom Tromey <tromey@redhat.com>
10700 * target-delegates.c: Rebuild.
10701 * target.c (update_current_target): Don't inherit or default
10702 to_thread_architecture.
10703 * target.h (struct target_ops) <to_thread_architecture>: Use
10704 TARGET_DEFAULT_FUNC.
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10708 * target-delegates.c: Rebuild.
10709 * target.c (update_current_target): Don't inherit or default
10710 to_execution_direction.
10711 * target.h (struct target_ops) <to_execution_direction>: Use
10712 TARGET_DEFAULT_FUNC.
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10716 * target-delegates.c: Rebuild.
10717 * target.c (update_current_target): Don't inherit or default
10718 to_can_execute_reverse.
10719 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10720 TARGET_DEFAULT_RETURN.
10721 (target_can_execute_reverse): Unconditionally delegate.
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * target-delegates.c: Rebuild.
10726 * target.c (update_current_target): Don't inherit or default
10728 (dummy_goto_bookmark): Remove.
10729 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10730 * target.h (struct target_ops) <to_goto_bookmark>: Use
10731 TARGET_DEFAULT_NORETURN.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target-delegates.c: Rebuild.
10736 * target.c (update_current_target): Don't inherit or default
10738 (dummy_get_bookmark): Remove.
10739 (init_dummy_target): Don't inherit or default to_get_bookmark.
10740 * target.h (struct target_ops) <to_get_bookmark>: Use
10741 TARGET_DEFAULT_NORETURN
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10745 * target-delegates.c: Rebuild.
10746 * target.c (update_current_target): Don't inherit or default
10747 to_make_corefile_notes.
10748 (init_dummy_target): Don't initialize to_make_corefile_notes.
10749 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10750 TARGET_DEFAULT_FUNC.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_find_memory_regions.
10757 (init_dummy_target): Don't initialize to_find_memory_regions.
10758 * target.h (struct target_ops) <to_find_memory_regions>: Use
10759 TARGET_DEFAULT_FUNC.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10766 * target.h (struct target_ops) <to_log_command>: Use
10767 TARGET_DEFAULT_IGNORE.
10768 (target_log_command): Unconditionally delegate.
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_pid_to_exec_file.
10775 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10776 TARGET_DEFAULT_RETURN.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10783 (target_thread_name): Unconditionally delegate.
10784 * target.h (struct target_ops) <to_thread_name>: Use
10785 TARGET_DEFAULT_RETURN.
10787 2014-02-19 Tom Tromey <tromey@redhat.com>
10789 * target-delegates.c: Rebuild.
10790 * target.c (update_current_target): Don't inherit or default
10791 to_extra_thread_info.
10792 * target.h (struct target_ops) <to_extra_thread_info>: Use
10793 TARGET_DEFAULT_RETURN.
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10797 * target-delegates.c: Rebuild.
10798 * target.c (update_current_target): Don't inherit or default
10800 * target.h (struct target_ops) <to_has_exited>: Use
10801 TARGET_DEFAULT_RETURN..
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target-delegates.c: Rebuild.
10806 * target.c (update_current_target): Don't inherit or default
10807 to_set_syscall_catchpoint.
10808 (return_one): Remove.
10809 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10810 TARGET_DEFAULT_RETURN.
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10816 to_insert_exec_catchpoint.
10817 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10818 TARGET_DEFAULT_RETURN.
10820 2014-01-08 Tom Tromey <tromey@redhat.com>
10822 * target-delegates.c: Rebuild.
10823 * target.c (update_current_target): Don't inherit or default
10824 to_insert_exec_catchpoint.
10825 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10826 TARGET_DEFAULT_RETURN.
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * target-delegates.c: Rebuild.
10831 * target.c (update_current_target): Don't inherit or default
10832 to_remove_vfork_catchpoint.
10833 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10834 TARGET_DEFAULT_RETURN.
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target-delegates.c: Rebuild.
10839 * target.c (update_current_target): Don't inherit or default
10840 to_insert_vfork_catchpoint.
10841 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10842 TARGET_DEFAULT_RETURN.
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10846 * target-delegates.c: Rebuild.
10847 * target.c (update_current_target): Don't inherit or default
10848 to_remove_fork_catchpoint.
10849 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10850 TARGET_DEFAULT_RETURN.
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10854 * target-delegates.c: Rebuild.
10855 * target.c (update_current_target): Don't inherit or default
10856 to_insert_fork_catchpoint.
10857 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10858 TARGET_DEFAULT_RETURN.
10860 2014-02-19 Tom Tromey <tromey@redhat.com>
10862 * target-delegates.c: Rebuild.
10863 * target.c (update_current_target): Don't inherit or default
10864 to_post_startup_inferior.
10865 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10866 TARGET_DEFAULT_IGNORE.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target-delegates.c: Rebuild.
10871 * target.c (update_current_target): Don't inherit or default
10873 * target.h (struct target_ops) <to_load>: Use
10874 TARGET_DEFAULT_NORETURN.
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10878 * target-delegates.c: Rebuild.
10879 * target.c (update_current_target): Don't inherit or default
10881 * target.h (struct target_ops) <to_terminal_info>: Use
10882 TARGET_DEFAULT_FUNC.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target-delegates.c: Rebuild.
10887 * target.c (update_current_target): Don't inherit or default
10888 to_terminal_save_ours.
10889 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10890 TARGET_DEFAULT_IGNORE.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target-delegates.c: Rebuild.
10895 * target.c (update_current_target): Don't inherit or default
10897 * target.h (struct target_ops) <to_terminal_ours>: Use
10898 TARGET_DEFAULT_IGNORE.
10900 2014-02-19 Tom Tromey <tromey@redhat.com>
10902 * target-delegates.c: Rebuild.
10903 * target.c (update_current_target): Don't inherit or default
10904 to_terminal_ours_for_output.
10905 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10906 TARGET_DEFAULT_IGNORE.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target-delegates.c: Rebuild.
10911 * target.c (update_current_target): Don't inherit or default
10912 to_terminal_inferior.
10913 * target.h (struct target_ops) <to_terminal_inferior>: Use
10914 TARGET_DEFAULT_IGNORE.
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target-delegates.c: Rebuild.
10919 * target.c (update_current_target): Don't inherit or default
10921 * target.h (struct target_ops) <to_terminal_init>: Use
10922 TARGET_DEFAULT_IGNORE.
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10928 to_can_accel_watchpoint_condition.
10929 * target.h (struct target_ops)
10930 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10934 * target-delegates.c: Rebuild.
10935 * target.c (update_current_target): Don't inherit or default
10936 to_region_ok_for_hw_watchpoint.
10937 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10938 Use TARGET_DEFAULT_FUNC.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (update_current_target): Don't inherit or default
10944 to_watchpoint_addr_within_range.
10945 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10946 Use TARGET_DEFAULT_FUNC.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target-delegates.c: Rebuild.
10951 * target.c (update_current_target): Don't inherit or default
10952 to_remove_watchpoint.
10953 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10954 TARGET_DEFAULT_NORETURN.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target-delegates.c: Rebuild.
10959 * target.c (update_current_target): Don't inherit or default
10960 to_insert_watchpoint.
10961 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10962 TARGET_DEFAULT_RETURN.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * target-delegates.c: Rebuild.
10967 * target.c (update_current_target): Don't inherit or default
10968 to_remove_hw_breakpoint.
10969 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10970 TARGET_DEFAULT_RETURN.
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target-delegates.c: Rebuild.
10975 * target.c (update_current_target): Don't inherit or default
10976 to_insert_hw_breakpoint.
10977 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10978 TARGET_DEFAULT_RETURN.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target-delegates.c: Rebuild.
10983 * target.c (update_current_target): Don't inherit or default
10984 to_can_use_hw_breakpoint.
10985 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10986 TARGET_DEFAULT_RETURN.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target-delegates.c: Rebuild.
10991 * target.c (update_current_target): Don't inherit or default
10993 * target.h (struct target_ops) <to_files_info>: Use
10994 TARGET_DEFAULT_IGNORE.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target-delegates.c: Rebuild.
10999 * target.c (update_current_target): Don't inherit or default
11001 * target.h (struct target_ops) <to_store>: Use
11002 TARGET_DEFAULT_NORETURN.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11009 * target.h (struct target_ops) <to_post_attach>: Use
11010 TARGET_DEFAULT_IGNORE.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target-delegates.c: Rebuild.
11015 * target.c (update_current_target): Don't inherit or default
11017 (default_rcmd): New function.
11018 (do_monitor_command): Unconditionally delegate.
11019 * target.h (struct target_ops) <to_rmcd>: Use
11020 TARGET_DEFAULT_FUNC.
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target-delegates.c: Rebuild.
11025 * target.c (init_dummy_target): Don't initialize to_attach.
11026 (target_attach): Unconditionally delegate.
11027 * target.h (struct target_ops) <to_attach>: Use
11028 TARGET_DEFAULT_FUNC.
11030 2014-02-19 Tom Tromey <tromey@redhat.com>
11032 * target-delegates.c: Rebuild.
11033 * target.c (target_detach): Unconditionally delegate.
11034 (init_dummy_target): Don't initialize to_detach.
11035 * target.h (struct target_ops) <to_detach>: Use
11036 TARGET_DEFAULT_IGNORE.
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11040 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11042 (target_augmented_libraries_svr4_read): Add argument.
11043 * target.c (update_current_target): Update.
11044 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * target.h (struct target_ops) <to_call_history_range>: Add
11051 * target.c (target_call_history_range): Add argument.
11052 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11054 (record_btrace_call_history_from): Update.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target.h (struct target_ops) <to_call_history_from>: Add
11060 * target.c (target_call_history_from): Add argument.
11061 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target.h (struct target_ops) <to_call_history>: Add argument.
11067 * target.c (target_call_history): Add argument.
11068 * record-btrace.c (record_btrace_call_history): Add 'self'
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11073 * target.h (struct target_ops) <to_insn_history_range>: Add
11075 * target.c (target_insn_history_range): Add argument.
11076 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11078 (record_btrace_insn_history_from): Update.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target.h (struct target_ops) <to_insn_history_from>: Add
11084 * target.c (target_insn_history_from): Add argument.
11085 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * target.h (struct target_ops) <to_insn_history>: Add argument.
11091 * target.c (target_insn_history): Add argument.
11092 * record-btrace.c (record_btrace_insn_history): Add 'self'
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11097 * target.h (struct target_ops) <to_goto_record>: Add argument.
11098 * target.c (target_goto_record): Add argument.
11099 * record-full.c (record_full_goto): Add 'self' argument.
11100 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11105 * target.c (target_goto_record_end): Add argument.
11106 * record-full.c (record_full_goto_end): Add 'self' argument.
11107 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target.h (struct target_ops) <to_goto_record_begin>: Add
11113 * target.c (target_goto_record_begin): Add argument.
11114 * record-full.c (record_full_goto_begin): Add 'self' argument.
11115 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_record_is_replaying>: Add
11122 * target.c (target_record_is_replaying): Add argument.
11123 * record-full.c (record_full_is_replaying): Add 'self' argument.
11124 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11126 (record_btrace_xfer_partial, record_btrace_store_registers)
11127 (record_btrace_prepare_to_store, record_btrace_resume)
11128 (record_btrace_wait, record_btrace_decr_pc_after_break)
11129 (record_btrace_find_new_threads, record_btrace_thread_alive):
11132 2014-02-19 Tom Tromey <tromey@redhat.com>
11134 * target.h (struct target_ops) <to_delete_record>: Add argument.
11135 * target.c (target_delete_record): Add argument.
11136 * record-full.c (record_full_delete): Add 'self' argument.
11138 2014-02-19 Tom Tromey <tromey@redhat.com>
11140 * target.h (struct target_ops) <to_save_record>: Add argument.
11141 * target.c (target_save_record): Add argument.
11142 * record-full.c (record_full_save): Add 'self' argument.
11143 (record_full_save): Add 'self' argument.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target.h (struct target_ops) <to_info_record>: Add argument.
11148 * target.c (target_info_record): Add argument.
11149 * record.c (info_record_command): Add argument.
11150 * record-full.c (record_full_info): Add 'self' argument.
11151 * record-btrace.c (record_btrace_info): Add 'self' argument.
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11155 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11156 * target.c (target_stop_recording): Add argument.
11157 * record.c (record_stop): Add argument.
11158 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11163 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11164 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11165 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11167 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11168 (_initialize_amd64_linux_nat): Use it.
11169 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11170 (_initialize_i386_linux_nat): Use it.
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11175 * target.c (target_teardown_btrace): Add argument.
11176 * remote.c (remote_teardown_btrace): Add 'self' argument.
11177 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11179 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11185 * target.c (target_disable_btrace): Add argument.
11186 * remote.c (remote_disable_btrace): Add 'self' argument.
11187 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11189 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11192 2014-02-19 Tom Tromey <tromey@redhat.com>
11194 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11195 * target.c (target_enable_btrace): Add argument.
11196 * remote.c (remote_enable_btrace): Add 'self' argument.
11197 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11199 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11204 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11205 (target_can_use_agent): Add argument.
11206 * target.c (update_current_target): Update.
11207 * remote.c (remote_can_use_agent): Add 'self' argument.
11208 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target.h (struct target_ops) <to_use_agent>: Add argument.
11213 (target_use_agent): Add argument.
11214 * target.c (update_current_target): Update.
11215 * remote.c (remote_use_agent): Add 'self' argument.
11216 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11221 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11222 (target_traceframe_info): Add argument.
11223 * target.c (update_current_target): Update.
11224 * remote.c (remote_traceframe_info): Add 'self' argument.
11225 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11229 * target.h (target_static_tracepoint_markers_by_strid): Add
11231 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11233 * target.c (update_current_target): Update.
11234 * remote.c (struct target_ops)
11235 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11236 * linux-nat.c (struct target_ops)
11237 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11241 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11243 (target_static_tracepoint_marker_at): Add argument.
11244 * target.c (update_current_target): Update.
11245 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11251 (target_set_permissions): Add argument.
11252 * target.c (update_current_target): Update.
11253 * remote.c (remote_set_permissions): Add 'self' argument.
11254 (remote_start_remote): Update.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11259 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11260 (target_get_tib_address): Add argument.
11261 * target.c (update_current_target): Update.
11262 * remote.c (remote_get_tib_address): Add 'self' argument.
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11266 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11267 (target_set_trace_notes): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_set_trace_notes): Add 'self' argument.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11275 (target_set_trace_buffer_size): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11283 (target_set_circular_trace_buffer): Add argument.
11284 * target.c (update_current_target): Update.
11285 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11290 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11292 (target_set_disconnected_tracing): Add argument.
11293 * target.c (update_current_target): Update.
11294 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops)
11299 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11300 (target_get_min_fast_tracepoint_insn_len): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11307 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11309 (target_get_raw_trace_data): Add argument.
11310 * target.c (update_current_target): Update.
11311 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11315 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11317 (target_upload_trace_state_variables): Add argument.
11318 * target.c (update_current_target): Update.
11319 * remote.c (remote_upload_trace_state_variables): Add 'self'
11321 (remote_start_remote): Update.
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11325 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11327 (target_upload_tracepoints): Add argument.
11328 * target.c (update_current_target): Update.
11329 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11330 (remote_start_remote): Update.
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11335 (target_save_trace_data): Add argument.
11336 * target.c (update_current_target): Update.
11337 * remote.c (remote_save_trace_data): Add 'self' argument.
11339 2014-02-19 Tom Tromey <tromey@redhat.com>
11341 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11343 * target.h (struct target_ops)
11344 <to_get_trace_state_variable_value>: Add argument.
11345 (target_get_trace_state_variable_value): Add argument.
11346 * target.c (update_current_target): Update.
11347 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11349 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11354 * target.h (struct target_ops) <to_trace_find>: Add argument.
11355 (target_trace_find): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_trace_find): Add 'self' argument.
11358 * ctf.c (ctf_trace_find): Add 'self' argument.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11363 (target_trace_stop): Add argument.
11364 * target.c (update_current_target): Update.
11365 * remote.c (remote_trace_stop): Add 'self' argument.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11370 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11372 (target_get_tracepoint_status): Add argument.
11373 * target.c (update_current_target): Update.
11374 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11379 * target.h (struct target_ops) <to_get_trace_status>: Add
11381 (target_get_trace_status): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_get_trace_status): Add 'self' argument.
11384 (remote_start_remote, remote_can_download_tracepoint): Update.
11385 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11389 * target.h (struct target_ops) <to_trace_start>: Add argument.
11390 (target_trace_start): Add argument.
11391 * target.c (update_current_target): Update.
11392 * remote.c (remote_trace_start): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11398 (target_trace_set_readonly_regions): Add argument.
11399 * target.c (update_current_target): Update.
11400 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11405 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11407 (target_disable_tracepoint): Add argument.
11408 * target.c (update_current_target): Update.
11409 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11413 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11415 (target_enable_tracepoint): Add argument.
11416 * target.c (update_current_target): Update.
11417 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * target.h (struct target_ops) <to_download_trace_state_variable>:
11423 (target_download_trace_state_variable): Add argument.
11424 * target.c (update_current_target): Update.
11425 * remote.c (remote_download_trace_state_variable): Add 'self'
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11430 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11432 (target_can_download_tracepoint): Add argument.
11433 * target.c (update_current_target): Update.
11434 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11436 2014-02-19 Tom Tromey <tromey@redhat.com>
11438 * target.h (struct target_ops) <to_download_tracepoint>: Add
11440 (target_download_tracepoint): Add argument.
11441 * target.c (update_current_target): Update.
11442 * remote.c (remote_download_tracepoint): Add 'self' argument.
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11446 * target.h (struct target_ops) <to_trace_init>: Add argument.
11447 (target_trace_init): Add argument.
11448 * target.c (update_current_target): Update.
11449 * remote.c (remote_trace_init): Add 'self' argument.
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11454 * target.c (target_fileio_readlink): Add argument.
11455 * remote.c (remote_hostio_readlink): Add 'self' argument.
11456 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11460 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11461 * target.c (target_fileio_unlink): Add argument.
11462 * remote.c (remote_hostio_unlink): Add 'self' argument.
11463 (remote_file_delete): Update.
11464 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11469 * target.c (target_fileio_close): Add argument.
11470 * remote.c (remote_hostio_close): Add 'self' argument.
11471 (remote_hostio_close_cleanup): Update.
11472 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11474 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11476 2014-02-19 Tom Tromey <tromey@redhat.com>
11478 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11479 * target.c (target_fileio_pread): Add argument.
11480 * remote.c (remote_hostio_pread): Add 'self' argument.
11481 (remote_bfd_iovec_pread, remote_file_get): Update.
11482 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11484 2014-02-19 Tom Tromey <tromey@redhat.com>
11486 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11487 * target.c (target_fileio_pwrite): Add argument.
11488 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11489 (remote_file_put): Update.
11490 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11494 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11495 * target.c (target_fileio_open): Add argument.
11496 * remote.c (remote_hostio_open): Add 'self' argument.
11497 (remote_bfd_iovec_open): Add 'self' argument.
11498 (remote_file_put): Add 'self' argument.
11499 (remote_file_get): Add 'self' argument.
11500 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11506 (target_can_run_breakpoint_commands): Add argument.
11507 * target.c (update_current_target): Update.
11508 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11510 (remote_insert_breakpoint): Add 'self' argument.
11511 (remote_insert_hw_breakpoint): Add 'self' argument.
11512 (remote_can_run_breakpoint_commands): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops)
11517 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11518 (target_supports_evaluation_of_breakpoint_conditions): Add
11520 * target.c (update_current_target): Update.
11521 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11523 (remote_insert_breakpoint): Add 'self' argument.
11524 (remote_insert_hw_breakpoint): Add 'self' argument.
11525 (remote_supports_cond_breakpoints): Add 'self' argument.
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11529 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11531 (target_supports_string_tracing): Add argument.
11532 * target.c (update_current_target): Update.
11533 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target.h (struct target_ops)
11538 <to_supports_disable_randomization>: Add argument.
11539 * target.c (find_default_supports_disable_randomization): Add
11541 (target_supports_disable_randomization): Add argument.
11542 (find_default_supports_disable_randomization): Add 'self'
11544 * remote.c (extended_remote_supports_disable_randomization): Add
11546 (remote_supports_disable_randomization): Add 'self' argument.
11547 (extended_remote_create_inferior): Update.
11548 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops)
11554 <to_supports_enable_disable_tracepoint>: Add argument.
11555 (target_supports_enable_disable_tracepoint): Add argument.
11556 * target.c (update_current_target): Update.
11557 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target.h (struct target_ops) <to_supports_multi_process>: Add
11564 (target_supports_multi_process): Add argument.
11565 * target.c (update_current_target): Update.
11566 * remote.c (remote_supports_multi_process): Add 'self' argument.
11567 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11569 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target.h (struct target_ops) <to_execution_direction>: Add
11576 (target_execution_direction): Add argument.
11577 * target.c (default_execution_direction): Add 'self' argument.
11578 * record-full.c (record_full_execution_direction): Add 'self'
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11583 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11585 (target_can_execute_reverse): Add argument.
11586 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11587 * record-full.c (record_full_can_execute_reverse): Add 'self'
11589 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11594 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11595 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11597 (target_get_ada_task_ptid): Add argument.
11598 * target.c (update_current_target): Update.
11599 (default_get_ada_task_ptid): Add 'self' argument.
11600 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11601 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11602 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11604 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11606 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11608 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11610 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11611 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11616 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11617 (target_goto_bookmark): Add argument.
11618 * target.c (dummy_goto_bookmark): Add 'self' argument.
11619 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11621 2014-02-19 Tom Tromey <tromey@redhat.com>
11623 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11624 (target_get_bookmark): Add argument.
11625 * target.c (dummy_get_bookmark): Add 'self' argument.
11626 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11630 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11632 (target_make_corefile_notes): Add argument.
11633 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11634 * procfs.c (procfs_make_note_section): Add 'self' argument.
11635 (procfs_make_note_section): Add 'self' argument.
11636 (procfs_make_note_section): Add 'self' argument.
11637 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11639 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11640 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11641 * exec.c (exec_make_note_section): Add 'self' argument.
11642 (exec_make_note_section): Add 'self' argument.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_find_memory_regions>: Add
11648 (target_find_memory_regions): Add argument.
11649 * target.c (dummy_find_memory_regions): Add 'self' argument.
11650 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11651 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11652 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11653 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11654 * exec. (exec_do_find_memory_regions): New global.
11655 (exec_set_find_memory_regions): Rewrite.
11656 (exec_find_memory_regions): New function.
11657 (init_exec_ops): Use exec_find_memory_regions.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target.h (struct target_ops) <to_supports_non_stop>: Add
11663 * target.c (find_default_supports_non_stop): Add argument.
11664 (target_supports_non_stop): Add argument.
11665 (find_default_supports_non_stop): Add 'self' argument.
11666 * remote.c (remote_supports_non_stop): Add 'self' argument.
11667 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11669 2014-02-19 Tom Tromey <tromey@redhat.com>
11671 * target.h (struct target_ops) <to_log_command>: Add argument.
11672 (target_log_command): Add argument.
11673 * serial.h (serial_log_command): Add 'self' argument.
11674 * serial.c (serial_log_command): Add 'self' argument.
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11678 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11679 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11681 (target_pid_to_exec_file): Add argument.
11682 * target.c (debug_to_pid_to_exec_file): Add argument.
11683 (update_current_target): Update.
11684 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11685 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11686 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11687 (linux_handle_extended_wait): Update.
11688 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11689 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11690 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11691 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_rcmd>: Add argument.
11696 (target_rcmd): Add argument.
11697 * target.c (debug_to_rcmd): Add argument.
11698 (update_current_target, do_monitor_command): Update.
11699 * remote.c (remote_rcmd): Add 'self' argument.
11700 * monitor.c (monitor_rcmd): Add 'self' argument.
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11704 * windows-nat.c (windows_stop): Add 'self' argument.
11705 * target.h (struct target_ops) <to_stop>: Add argument.
11706 * target.c (target_stop): Add argument.
11707 (debug_to_stop): Add argument.
11708 (update_current_target): Update.
11709 * remote.c (remote_stop): Add 'self' argument.
11710 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11711 (gdbsim_cntrl_c): Update.
11712 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11713 * procfs.c (procfs_stop): Add 'self' argument.
11714 * nto-procfs.c (procfs_stop): Add 'self' argument.
11715 * monitor.c (monitor_stop): Add 'self' argument.
11716 (monitor_open): Update.
11717 * linux-nat.c (linux_nat_stop): Add argument.
11718 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11719 * gnu-nat.c (gnu_stop): Add 'self' argument.
11720 * darwin-nat.c (darwin_stop): Add 'self' argument.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.h (struct target_ops) <to_thread_name>: Add argument.
11725 * target.c (target_thread_name): Add argument.
11726 (update_current_target): Update.
11727 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * target.h (struct target_ops) <to_extra_thread_info>: Add
11733 (target_extra_thread_info): Add argument.
11734 * target.c (update_current_target): Update.
11735 * remote.c (remote_threads_extra_info): Add 'self' argument.
11736 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11738 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11739 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11740 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11742 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11744 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11746 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_program_signals>: Add argument.
11752 * target.c (target_program_signals): Add argument.
11753 * remote.c (remote_program_signals): Add 'self' argument.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11758 * target.c (target_pass_signals): Add argument.
11759 * remote.c (remote_pass_signals): Add 'self' argument.
11760 (remote_start_remote): Update.
11761 * procfs.c (procfs_pass_signals): Add 'self' argument.
11762 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11763 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11764 (linux_nat_create_inferior, linux_nat_attach): Update.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * windows-nat.c (windows_can_run): Add 'self' argument.
11769 * target.h (struct target_ops) <to_can_run>: Add argument.
11770 (target_can_run): Add argument.
11771 * target.c (debug_to_can_run): Add argument.
11772 (update_current_target): Update.
11773 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11774 * inf-child.c (inf_child_can_run): Add 'self' argument.
11775 * go32-nat.c (go32_can_run): Add 'self' argument.
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11779 * target.h (struct target_ops) <to_has_exited>: Add argument.
11780 (target_has_exited): Add argument.
11781 * target.c (debug_to_has_exited): Add argument.
11782 (update_current_target): Update.
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11786 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11788 (target_set_syscall_catchpoint): Add argument.
11789 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11791 * target.c (update_current_target): Update.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11797 (target_remove_exec_catchpoint): Add argument.
11798 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11799 (update_current_target): Update.
11800 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11807 (target_insert_exec_catchpoint): Add argument.
11808 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11809 (update_current_target): Update.
11810 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11817 (target_remove_vfork_catchpoint): Add argument.
11818 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11819 (update_current_target): Update.
11820 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11823 2014-02-19 Tom Tromey <tromey@redhat.com>
11825 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11827 (target_insert_vfork_catchpoint): Add argument.
11828 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11829 (update_current_target): Update.
11830 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11835 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11837 (target_remove_fork_catchpoint): Add argument.
11838 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11839 (update_current_target): Update.
11840 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11847 (target_insert_fork_catchpoint): Add argument.
11848 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11849 (update_current_target): Update.
11850 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11857 (target_post_startup_inferior): Add argument.
11858 * target.c (debug_to_post_startup_inferior): Add argument.
11859 (update_current_target): Update.
11860 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11862 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11864 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11866 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11868 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11870 (super_post_startup_inferior): Likewise.
11871 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11873 (super_post_startup_inferior): Likewise.
11874 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11875 Add 'self' argument.
11876 (super_post_startup_inferior): Likewise.
11878 2014-02-19 Tom Tromey <tromey@redhat.com>
11880 * target.h (struct target_ops) <to_load>: Add argument.
11881 * target.c (target_load): Add argument.
11882 (debug_to_load): Add argument.
11883 (update_current_target): Update.
11884 * remote.c (remote_load): Add 'self' argument.
11885 * remote-sim.c (gdbsim_load): Add 'self' argument.
11886 * remote-mips.c (mips_load): Add 'self' argument.
11887 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11888 * monitor.c (monitor_load): Add 'self' argument.
11889 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11893 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11894 (target_terminal_info): Add argument.
11895 * target.c (debug_to_terminal_info): Add argument.
11896 (default_terminal_info): Likewise.
11897 * inflow.c (child_terminal_info): Add 'self' argument.
11898 * inferior.h (child_terminal_info): Add 'self' argument.
11899 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11903 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11905 (target_terminal_save_ours): Add argument.
11906 * target.c (debug_to_terminal_save_ours): Add argument.
11907 (update_current_target): Update.
11908 * inflow.c (terminal_save_ours): Add 'self' argument.
11909 * inferior.h (terminal_save_ours): Add 'self' argument.
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11913 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11914 (target_terminal_ours): Add argument.
11915 * target.c (debug_to_terminal_ours): Add argument.
11916 (update_current_target): Update.
11917 * remote.c (remote_terminal_ours): Add 'self' argument.
11918 (remote_close): Update.
11919 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11920 * inflow.c (terminal_ours): Add 'self' argument.
11921 * inferior.h (terminal_ours): Add 'self' argument.
11922 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11924 2014-02-19 Pedro Alves <palves@redhat.com>
11925 Tom Tromey <tromey@redhat.com>
11927 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11929 (target_terminal_ours_for_output): Add argument.
11930 * target.c (debug_to_terminal_ours_for_output): Add argument.
11931 (update_current_target): Update.
11932 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11933 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11934 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target.h (struct target_ops) <to_terminal_inferior>: Add
11940 * target.c (target_terminal_inferior): Add argument.
11941 (update_current_target): Update.
11942 * remote.c (remote_terminal_inferior): Add 'self' argument.
11943 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11944 * inflow.c (terminal_inferior): Add 'self' argument.
11945 * inferior.h (terminal_inferior): Add 'self' argument.
11946 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11947 (go32_terminal_inferior): Add 'self' argument.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11952 (target_terminal_init): Add argument.
11953 * target.c (debug_to_terminal_init): Add argument.
11954 (update_current_target): Update.
11955 * inflow.c (terminal_init_inferior): Add 'self' argument.
11956 * inferior.h (terminal_init_inferior): Add 'self' argument.
11957 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11958 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target.h (struct target_ops)
11963 <to_can_accel_watchpoint_condition>: Add argument.
11964 (target_can_accel_watchpoint_condition): Add argument.
11965 * target.c (debug_to_can_accel_watchpoint_condition): Add
11967 (update_current_target): Update.
11968 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11975 (target_region_ok_for_hw_watchpoint): Add argument.
11976 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11977 (default_region_ok_for_hw_watchpoint): Add argument.
11978 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11979 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11981 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11983 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11985 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11987 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11989 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11991 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11992 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11994 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11995 Add 'self' argument.
11997 2014-02-19 Tom Tromey <tromey@redhat.com>
11999 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12001 (target_insert_watchpoint): Add argument.
12002 * target.c (debug_to_insert_watchpoint): Add argument.
12003 (update_current_target): Update.
12004 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12005 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12006 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12007 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12008 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12009 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12011 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12012 (procfs_insert_hw_watchpoint): Add 'self' argument.
12013 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12015 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12017 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12019 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12020 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12022 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12029 (target_remove_watchpoint): Add argument.
12030 * target.c (debug_to_remove_watchpoint): Add argument.
12031 (update_current_target): Update.
12032 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12033 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12034 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12035 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12036 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12037 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12039 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12040 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12042 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12044 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12046 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12047 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12049 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12056 (target_remove_hw_breakpoint): Add argument.
12057 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12058 (update_current_target): Update.
12059 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12060 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12062 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12063 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12065 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12072 (target_insert_hw_breakpoint): Add argument.
12073 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12074 (update_current_target): Update.
12075 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12076 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12078 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12079 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12080 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12082 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12089 (target_can_use_hardware_watchpoint): Add argument.
12090 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12091 (update_current_target): Update.
12092 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12094 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12096 * remote.c (remote_check_watch_resources): Add 'self' argument.
12097 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12098 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12100 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12101 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12103 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12105 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12107 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12109 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12111 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12113 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12114 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12116 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * target.h (struct target_ops) <to_post_attach>: Add argument.
12122 (target_post_attach): Add argument.
12123 * target.c (debug_to_post_attach): Add argument.
12124 (update_current_target): Update.
12125 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12126 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12127 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12128 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12129 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * windows-nat.c (windows_close): Add 'self' argument.
12134 * tracepoint.c (tfile_close): Add 'self' argument.
12135 * target.h (struct target_ops) <to_close>: Add argument.
12136 * target.c (target_close): Add argument.
12137 (update_current_target): Update.
12138 * remote.c (remote_close): Add 'self' argument.
12139 * remote-sim.c (gdbsim_close): Add 'self' argument.
12140 * remote-mips.c (mips_close): Add 'self' argument.
12141 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12142 * record-full.c (record_full_close): Add 'self' argument.
12143 * record-btrace.c (record_btrace_close): Add 'self' argument.
12144 * monitor.h (monitor_close): Add 'self' argument.
12145 * monitor.c (monitor_close): Add 'self' argument.
12146 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12147 * linux-nat.c (linux_nat_close): Add argument.
12148 * go32-nat.c (go32_close): Add 'self' argument.
12149 * exec.c (exec_close_1): Add 'self' argument.
12150 * ctf.c (ctf_close): Add 'self' argument.
12151 * corelow.c (core_close): Add 'self' argument.
12152 (core_close_cleanup): Update.
12153 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12154 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12158 * remote.c (remote_load): New function.
12159 (init_remote_ops): Use it.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12165 * common/linux-btrace.h (linux_supports_btrace): Update.
12166 * remote.c (remote_supports_btrace): Add "self" argument.
12167 * target-delegates.c: Rebuild.
12168 * target.c (target_supports_btrace): Remove.
12169 * target.h (struct target_ops) <to_supports_btrace>: Add
12170 target_ops argument.
12171 (target_supports_btrace): New define.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * record-full.c (record_full_beneath_to_resume_ops)
12176 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12177 (record_full_beneath_to_wait)
12178 (record_full_beneath_to_store_registers_ops)
12179 (record_full_beneath_to_store_registers)
12180 (record_full_beneath_to_xfer_partial_ops)
12181 (record_full_beneath_to_xfer_partial)
12182 (record_full_beneath_to_insert_breakpoint_ops)
12183 (record_full_beneath_to_insert_breakpoint)
12184 (record_full_beneath_to_remove_breakpoint_ops)
12185 (record_full_beneath_to_remove_breakpoint)
12186 (record_full_beneath_to_stopped_by_watchpoint)
12187 (record_full_beneath_to_stopped_data_address)
12188 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12189 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12190 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12191 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12192 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12193 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12194 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12195 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12196 (record_full_resume, record_full_wait_1)
12197 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12198 (record_full_store_registers, record_full_xfer_partial)
12199 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12200 (record_full_async, record_full_core_xfer_partial): Use target
12202 * target-delegates.c: Rebuild.
12203 * target.c (current_xfer_partial): Remove.
12204 (update_current_target): Do not INHERIT or de_fault
12205 to_insert_breakpoint, to_remove_breakpoint,
12206 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12207 to_is_async_p, to_async. Do not set to_xfer_partial field.
12208 (default_xfer_partial): Simplify.
12209 (current_xfer_partial): Remove.
12210 (target_wait, target_resume): Simplify.
12211 (find_default_can_async_p, find_default_is_async_p): Update.
12212 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12213 to_xfer_partial, to_stopped_by_watchpoint,
12214 to_stopped_data_address.
12215 (target_store_registers): Simplify.
12216 (forward_target_remove_breakpoint)
12217 (forward_target_insert_breakpoint): Remove.
12218 (target_remove_breakpoint, target_insert_breakpoint)
12219 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12220 * target.h (struct target_ops) <to_resume, to_wait,
12221 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12222 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12223 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12225 (forward_target_remove_breakpoint)
12226 (forward_target_insert_breakpoint): Remove.
12227 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12229 (record_btrace_insert_breakpoint): Delegate directly.
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12234 * target-delegates.c: New file.
12235 * target.c: Include target-delegates.c.
12236 (init_dummy_target): Call install_dummy_methods.
12237 (complete_target_initialization): Call install_delegators.
12238 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12239 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12240 * make-target-delegates: New file.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * record.c (find_record_target): Use find_target_at.
12245 * target.c (find_target_at): New function.
12246 * target.h (find_target_at): Declare.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12251 Add 'ops' argument.
12252 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12254 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12255 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12257 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12259 * linux-nat.c (save_sigtrap): Update.
12260 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12261 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12262 (linux_nat_close): Update.
12263 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12265 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12267 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12268 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12269 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12270 (tmp_to_async): Add 'ops' argument.
12271 (record_full_stopped_by_watchpoint, record_full_async)
12272 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12274 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12275 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12276 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12277 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12278 (remote_is_async_p, remote_async): Add 'ops' argument.
12279 (remote_stopped_data_address): Update.
12280 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12281 * target.c (update_current_target)
12282 (find_default_can_async_p, find_default_is_async_p): Update.
12283 (init_dummy_target): Update.
12284 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12285 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12286 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12287 (target_can_async_p, target_is_async_p, target_async)
12288 (target_stopped_by_watchpoint): Update.
12290 2014-02-19 Yao Qi <yao@codesourcery.com>
12293 * gdbarch.sh: Remove startup_gdbarch.
12294 * gdbarch.c: Regenerated.
12295 * gdbarch.h: Likewise.
12297 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12299 * rl78-tdep.c (rl78_g10_register_name): New function.
12300 (rl78_return_value): Add g10 support.
12301 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12304 2014-02-17 Doug Evans <xdje42@gmail.com>
12306 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12307 (SUBDIR_GUILE_SRCS): Ditto.
12308 (scm-gsmob.o): Ditto.
12310 2014-02-17 Yao Qi <yao@codesourcery.com>
12312 * gnu-nat.c (ILL_RPC): Declare defined function.
12314 2014-02-17 Yao Qi <yao@codesourcery.com>
12316 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12317 mach_msg_type_number_t.
12318 (gnu_write_inferior): Likewise.
12320 2014-02-17 Yao Qi <yao@codesourcery.com>
12322 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12324 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12325 (inf_validate_procs, inf_signal): Likewise.
12326 (S_exception_raise_request): Likewise.
12327 (do_mach_notify_dead_name): Likewise.
12328 (steal_exc_port): Likewise.
12329 (gnu_read_inferior): Change 'copy_count''s type to
12330 mach_msg_type_number_t.
12331 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12334 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12336 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12337 flag. Adjust all users; in particular...
12338 (gnu_wait): ..., don't decrement its value in here...
12339 (gnu_create_inferior): ..., and instead set the flag in here,
12340 around the startup_inferior call, and call that one with
12341 START_INFERIOR_TRAPS_EXPECTED.
12343 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12344 (ILL_RPC): ... new macro.
12345 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12346 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12347 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12348 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12349 functions with ILL_RPC macro.
12350 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12351 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12352 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12353 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12354 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12355 (S_proc_getlogin_reply, S_proc_getsid_reply)
12356 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12357 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12358 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12359 (S_proc_getnports_reply, S_proc_is_important_reply)
12360 (S_proc_get_code_reply): New stub functions, generated with
12363 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12364 collected the type check structures.
12366 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12368 2014-02-14 Doug Evans <dje@google.com>
12370 * target.c (target_write_partial): Fix result type.
12372 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12374 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12375 the proper offsets to access fpregset_t.
12377 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12379 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12380 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12381 * h8300-tdep.c (setmachinelist): Remove global.
12382 * hppa-tdep.c (hppa_sigtramp): Remove global.
12383 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12384 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12385 * ravenscar-thread.c (update_target_observer): Remove global.
12386 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12388 2014-02-12 Tom Tromey <tromey@redhat.com>
12390 * common/rsp-low.c: Update comments.
12391 * common/rsp-low.h: Update comments.
12393 2014-02-12 Tom Tromey <tromey@redhat.com>
12395 * common/rsp-low.c (convert_ascii_to_int): Remove.
12396 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12398 2014-02-12 Tom Tromey <tromey@redhat.com>
12400 * common/rsp-low.h (unhexify): Don't declare.
12401 * common/rsp-low.c (unhexify): Remove.
12403 2014-02-12 Tom Tromey <tromey@redhat.com>
12405 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12406 * common/rsp-low.c (convert_int_to_ascii): Remove.
12408 2014-02-12 Tom Tromey <tromey@redhat.com>
12410 * common/rsp-low.h (hexify): Don't declare.
12411 * common/rsp-low.c (hexify): Remove.
12413 2014-02-12 Tom Tromey <tromey@redhat.com>
12415 * common/rsp-low.c (hexify): Never take strlen of argument.
12417 2014-02-12 Tom Tromey <tromey@redhat.com>
12419 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12420 * remote.c (extended_remote_run, remote_rcmd)
12421 (remote_download_trace_state_variable, remote_save_trace_data)
12422 (remote_set_trace_notes): Update.
12423 * tracepoint.c (encode_source_string, tfile_write_status)
12424 (tfile_write_uploaded_tsv): Update.
12426 2014-02-12 Tom Tromey <tromey@redhat.com>
12428 * tracepoint.c: Include rsp-low.h.
12429 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12430 * remote.c: Include rsp-low.h.
12431 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12432 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12433 (remote_unescape_input): Move to common/rsp-low.c.
12434 * common/rsp-low.h: New file.
12435 * common/rsp-low.c: New file.
12436 * Makefile.in (SFILES): Add common/rsp-low.c.
12437 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12438 (COMMON_OBS): Add rsp-low.o.
12439 (rsp-low.o): New target.
12441 2014-02-12 Tom Tromey <tromey@redhat.com>
12443 * utils.h: Include print-utils.h.
12444 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12445 (int_string, core_addr_to_string, core_addr_to_string_nz)
12446 (hex_string, hex_string_custom): Don't declare.
12447 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12448 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12449 (hex_string_custom, int_string, core_addr_to_string)
12450 (core_addr_to_string_nz, host_address_to_string): Move to
12451 common/print-utils.c.
12452 * common/print-utils.h: New file.
12453 * common/print-utils.c: New file
12454 * Makefile.in (SFILES): Add common/print-utils.c.
12455 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12456 (COMMON_OBS): Add print-utils.o.
12457 (print-utils.o): New target.
12459 2014-02-12 Tom Tromey <tromey@redhat.com>
12461 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12463 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12465 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12467 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12469 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12470 if a PT_IO ptrace request returns sucessfully but indicates that 0
12471 bytes were transferred.
12473 2014-02-12 Pedro Alves <palves@redhat.com>
12474 Kevin Buettner <kevinb@redhat.com>
12476 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12477 TYPE_INSTANCE_FLAG_CODE_SPACE.
12479 2014-02-12 Pedro Alves <palves@redhat.com>
12481 * h8300-tdep.c (pseudo_from_raw_register)
12482 (raw_from_pseudo_register): New functions.
12483 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12486 2014-02-12 Pedro Alves <palves@redhat.com>
12488 * h8300-tdep.c (h8300_register_sim_regno): New function.
12489 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12490 gdbarch_register_sim_regno hook.
12492 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12494 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12496 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12498 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12500 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12502 * obsd-tdep.h (obsd_init_abi): New prototype.
12503 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12504 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12505 (obsd_init_abi): New functions.
12506 * i386obsd-tdep.c: Include "obsd-tdep.h".
12507 (i386obsd_init_abi): Call obsd_init_abi.
12508 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12509 (amd64obsd_init_abi): Call obsd_init_abi.
12510 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12511 obsd-tdep.c to gdb_target_obs.
12513 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12515 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12516 double float arguments to 16-byte in the argument slots.
12518 2014-02-11 Doug Evans <xdje42@gmail.com>
12520 * configure.ac: Don't crash if pkg-config is not found and guile
12521 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12523 * configure: Regenerate.
12525 2014-02-11 Yao Qi <yao@codesourcery.com>
12527 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12528 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12529 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12530 * gnu-nat.c (gnu_xfer_memory): Likewise.
12531 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12532 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12533 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12534 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12536 2014-02-11 Yao Qi <yao@codesourcery.com>
12538 * target.h (enum target_xfer_error): Rename to ...
12539 (enum target_xfer_status): ... it. New. All users updated.
12540 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12542 (TARGET_XFER_STATUS_ERROR_P): New macro.
12543 (target_xfer_error_to_string): Remove declaration.
12544 (target_xfer_status_to_string): Declare.
12545 (target_xfer_partial_ftype): Adjust it.
12546 (struct target_ops) <to_xfer_partial>: Return
12547 target_xfer_status. Add argument xfered_len. Update
12549 * target.c (target_xfer_error_to_string): Rename to ...
12550 (target_xfer_status_to_string): ... it. New. All callers
12552 (target_read_live_memory): Likewise. Call target_xfer_partial
12553 instead of target_read.
12554 (memory_xfer_live_readonly_partial): Return
12555 target_xfer_status. Add argument xfered_len.
12556 (raw_memory_xfer_partial): Likewise.
12557 (memory_xfer_partial_1): Likewise.
12558 (memory_xfer_partial): Likewise.
12559 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12560 properly. Update debug message.
12561 (default_xfer_partial, current_xfer_partial): Likewise.
12562 (target_write_partial): Likewise.
12563 (target_read_partial): Likewise. All callers updated.
12564 (read_whatever_is_readable): Likewise.
12565 (target_write_with_progress): Likewise.
12566 (target_read_alloc_1): Likewise.
12568 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12569 * auxv.c (procfs_xfer_auxv): Likewise.
12570 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12571 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12572 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12573 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12574 * corefile.c (read_memory): Adjust.
12575 * corelow.c (core_xfer_partial): Likewise.
12576 * ctf.c (ctf_xfer_partial): Likewise.
12577 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12579 (darwin_xfer_partial): Likewise.
12580 * exec.c (section_table_xfer_memory_partial): Likewise. All
12582 (exec_xfer_partial): Likewise.
12583 * exec.h (section_table_xfer_memory_partial): Update
12585 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12587 (gnu_xfer_partial): Likewise.
12588 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12589 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12590 (ia64_hpux_xfer_solib_got): Likewise.
12591 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12592 type of 'partial_len' to ULONGEST.
12593 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12594 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12595 (linux_nat_xfer_partial): Likewise.
12596 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12597 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12598 * monitor.c (monitor_xfer_memory): Likewise.
12599 (monitor_xfer_partial): Likewise.
12600 * procfs.c (procfs_xfer_partial): Likewise.
12601 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12602 * record-full.c (record_full_xfer_partial): Likewise.
12603 (record_full_core_xfer_partial): Likewise.
12604 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12605 (gdbsim_xfer_partial): Likewise.
12606 * remote.c (remote_write_bytes_aux): Likewise. All callers
12608 (remote_write_bytes, remote_read_bytes): Likewise. All
12610 (remote_flash_erase): Likewise. All callers updated.
12611 (remote_write_qxfer): Likewise. All callers updated.
12612 (remote_read_qxfer): Likewise. All callers updated.
12613 (remote_xfer_partial): Likewise.
12614 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12615 (rs6000_xfer_shared_libraries): Likewise.
12616 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12617 (sol_thread_xfer_partial): Likewise.
12618 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12619 (sparc_xfer_partial): Likewise.
12620 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12622 (spu_xfer_partial): Likewise.
12623 * spu-multiarch.c (spu_xfer_partial): Likewise.
12624 * tracepoint.c (tfile_xfer_partial): Likewise.
12625 * windows-nat.c (windows_xfer_memory): Likewise.
12626 (windows_xfer_shared_libraries): Likewise.
12627 (windows_xfer_partial): Likewise.
12628 * valprint.c: Replace 'target_xfer_error' with
12629 'target_xfer_status' in comments.
12631 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12633 Checked in by Joel Brobecker <brobecker@adacore.com>.
12634 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12636 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12638 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12639 function parameters.
12641 2014-02-10 Will Newton <will.newton@linaro.org>
12643 * elfread.c (elf_rel_plt_read): Look for a .got section if
12644 looking up .got.plt fails.
12645 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12646 on address passed to elf_gnu_ifunc_record_cache.
12647 (elf_gnu_ifunc_resolve_addr): Likewise.
12648 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12650 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12652 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12653 (X_RETTURN): New macro.
12654 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12656 * sparc64-tdep.c (sparc64_init_abi): Hook
12657 sparc_in_function_epilogue_p.
12659 2014-02-10 Gary Benson <gbenson@redhat.com>
12661 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12662 Rename name_matcher to symbol_matcher.
12664 2014-02-10 Gary Benson <gbenson@redhat.com>
12666 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12667 Use expand_symtabs_file_matcher_ftype and
12668 expand_symtabs_symbol_matcher_ftype.
12670 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12672 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12673 (struct ada_symbol_cache): New.
12674 (ada_free_symbol_cache): Forward declare.
12675 (struct ada_pspace_data): New.
12676 (ada_pspace_data_handle): New static global.
12677 (get_ada_pspace_data, ada_pspace_data_cleanup)
12678 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12679 (cache_space, cache): Delete, now folded inside struct
12681 (ada_get_symbol_cache): New function.
12682 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12684 (_initialize_ada_language): Remove initialization of cache_space.
12685 Move call to observer_attach_inferior_exit up, grouping it
12686 with the other observer registrations inside this function.
12687 Rename command to be more general. Add call to
12688 register_program_space_data_with_cleanup.
12690 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12692 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12693 ada_new_objfile_observer.
12694 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12695 (_initialize_tasks): Update uses of ada_new_objfile_observer
12696 and ada_tasks_normal_stop_observer.
12698 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12700 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12701 returned by the 'Length attribute to integer.
12703 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12705 * ada-lang.c (_initialize_ada_language): Initialize
12706 cache_space obstack.
12708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12710 * ada-lang.c (HASH_SIZE): New macro.
12711 (struct cache_entry): New type.
12712 (cache_space, cache): New static globals.
12713 (ada_clear_symbol_cache, find_entry): New functions.
12714 (lookup_cached_symbol, cache_symbol): Implement.
12715 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12716 (_initialize_ada_language): Attach ada_new_objfile_observer
12717 and ada_free_objfile_observer.
12719 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12721 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12722 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12723 struct block * parameter.
12724 (ada_lookup_symbol_list_worker): Constify local variable "block".
12725 Remove cast which is no longer necessary.
12727 2014-02-10 Doug Evans <xdje42@gmail.com>
12729 Add Guile as an extension language.
12730 * NEWS: Mention Guile scripting.
12731 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12732 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12733 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12734 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12735 (CLIBS): Add GUILE_LIBS.
12736 (install-guile): New rule.
12737 (guile.o): New rule.
12738 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12739 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12740 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12741 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12742 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12743 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12744 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12745 * configure.ac: New option --with-guile.
12746 * configure: Regenerate.
12747 * config.in: Regenerate.
12748 * auto-load.c: Remove #include "python/python.h". Add #include
12749 "gdb/section-scripts.h".
12750 (source_section_scripts): Handle Guile scripts.
12751 (_initialize_auto_load): Add name of Guile objfile script to
12752 scripts-directory help text.
12753 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12754 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12755 (struct breakpoint): New member scm_bp_object.
12756 * defs.h (enum command_control_type): New value guile_control.
12757 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12759 (show_user): Update comment.
12760 (_initialize_cli_cmds): Update help text for "show user". Update help
12761 text for max-user-call-depth.
12762 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12764 (multi_line_command_p): Add guile_control.
12765 (print_command_lines): Handle guile_control.
12766 (execute_control_command, recurse_read_control_structure): Ditto.
12767 (process_next_line): Recognize "guile" commands.
12768 * disasm.c (gdb_disassemble_info): Make non-static.
12769 * disasm.h: #include "dis-asm.h".
12770 (struct gdbarch): Add forward decl.
12771 (gdb_disassemble_info): Declare.
12772 * extension.c: #include "guile/guile.h".
12773 (extension_languages): Add guile.
12774 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12775 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12776 * gdbtypes.c (get_unsigned_type_max): New function.
12777 (get_signed_type_minmax): New function.
12778 * gdbtypes.h (get_unsigned_type_max): Declare.
12779 (get_signed_type_minmax): Declare.
12780 * guile/README: New file.
12781 * guile/guile-internal.h: New file.
12782 * guile/guile.c: New file.
12783 * guile/guile.h: New file.
12784 * guile/scm-arch.c: New file.
12785 * guile/scm-auto-load.c: New file.
12786 * guile/scm-block.c: New file.
12787 * guile/scm-breakpoint.c: New file.
12788 * guile/scm-disasm.c: New file.
12789 * guile/scm-exception.c: New file.
12790 * guile/scm-frame.c: New file.
12791 * guile/scm-gsmob.c: New file.
12792 * guile/scm-iterator.c: New file.
12793 * guile/scm-lazy-string.c: New file.
12794 * guile/scm-math.c: New file.
12795 * guile/scm-objfile.c: New file.
12796 * guile/scm-ports.c: New file.
12797 * guile/scm-pretty-print.c: New file.
12798 * guile/scm-safe-call.c: New file.
12799 * guile/scm-string.c: New file.
12800 * guile/scm-symbol.c: New file.
12801 * guile/scm-symtab.c: New file.
12802 * guile/scm-type.c: New file.
12803 * guile/scm-utils.c: New file.
12804 * guile/scm-value.c: New file.
12805 * guile/lib/gdb.scm: New file.
12806 * guile/lib/gdb/boot.scm: New file.
12807 * guile/lib/gdb/experimental.scm: New file.
12808 * guile/lib/gdb/init.scm: New file.
12809 * guile/lib/gdb/iterator.scm: New file.
12810 * guile/lib/gdb/printing.scm: New file.
12811 * guile/lib/gdb/types.scm: New file.
12812 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12813 (VPATH): Add $(GUILE_SRCDIR).
12814 (GUILE_DIR): New variable.
12815 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12816 (all): Add stamp-guile dependency.
12817 (stamp-guile): New rule.
12818 (clean-guile, install-guile, uninstall-guile): New rules.
12819 (install-only): Add install-guile dependency.
12820 (uninstall): Add uninstall-guile dependency.
12821 (clean): Add clean-guile dependency.
12823 2014-02-09 Doug Evans <xdje42@gmail.com>
12825 Revert this patch (which I approved, mea culpa).
12827 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12829 * Makefile.in (all-lib): Remove.
12830 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12832 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12834 Fix Python stack corruption.
12835 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12838 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12840 * Makefile.in (all-lib): Remove.
12841 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12843 2014-02-07 Doug Evans <dje@google.com>
12845 * extension-priv.h (extension_language_script_ops): Add comment.
12846 (extension_language_ops): Add comment.
12847 (active_ext_lang_state): Fix typo in comment.
12849 2014-02-07 Pedro Alves <palves@redhat.com>
12851 PR breakpoints/16292
12852 * infrun.c (handle_signal_stop) <signal arrives while stepping
12853 over a breakpoint>: Switch back to the stepping thread.
12855 2014-02-07 Yao Qi <yao@codesourcery.com>
12857 * target.c (target_xfer_partial): Return zero if LEN is zero.
12859 2014-02-07 Yao Qi <yao@codesourcery.com>
12861 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12862 (ld_so_xfer_auxv): Likewise.
12863 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12864 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12865 * corelow.c (core_xfer_partial): Likewise.
12866 * ctf.c (ctf_xfer_partial): Likewise.
12867 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12868 (darwin_xfer_partial): Likewise.
12869 * exec.c (exec_xfer_partial): Likewise.
12870 * gnu-nat.c (gnu_xfer_partial): Likewise.
12871 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12872 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12873 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12874 * linux-nat.c (linux_xfer_siginfo): Likewise.
12875 (linux_proc_xfer_spu): Likewise.
12876 * procfs.c (procfs_xfer_partial): Likewise.
12877 * record-full.c (record_full_xfer_partial): Likewise.
12878 (record_full_core_xfer_partial): Likewise.
12879 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12880 * remote.c (remote_write_qxfer): Likewise.
12881 (remote_write_qxfer, remote_read_qxfer): Likewise.
12882 (remote_xfer_partial): Likewise.
12883 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12884 (rs6000_xfer_shared_libraries): Likewise.
12885 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12886 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12887 (spu_xfer_partial): Likewise.
12888 * target.c (memory_xfer_partial_1): Likewise.
12889 * tracepoint.c (tfile_xfer_partial): Likewise.
12890 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12891 (windows_xfer_partial): Likewise.
12893 2014-02-07 Yao Qi <yao@codesourcery.com>
12895 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12897 (core_xfer_shared_libraries_aix): Likewise.
12898 * gdbarch.c, gdbarch.h: Regenerated.
12899 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12900 ULONGEST. Change 'len_avail' type to ULONGEST.
12901 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12902 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12904 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12906 2014-02-07 Yao Qi <yao@codesourcery.com>
12908 * corefile.c (memory_error): Get 'exception' from ERR and pass
12909 'exception' to throw_error.
12911 2014-02-06 Doug Evans <xdje42@gmail.com>
12913 * configure.ac (libpython checking): Remove all but python.o from
12914 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12915 * configure: Regenerate.
12917 * Makefile.in (SFILES): Add extension.c.
12918 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12919 (COMMON_OBS): Add extension.o.
12920 * extension.h: New file.
12921 * extension-priv.h: New file.
12922 * extension.c: New file.
12924 * python/python-internal.h: #include "extension.h".
12925 (gdbpy_auto_load_enabled): Declare.
12926 (gdbpy_apply_val_pretty_printer): Declare.
12927 (gdbpy_apply_frame_filter): Declare.
12928 (gdbpy_preserve_values): Declare.
12929 (gdbpy_breakpoint_cond_says_stop): Declare.
12930 (gdbpy_breakpoint_has_cond): Declare.
12931 (void source_python_script_for_objfile): Delete.
12932 * python/python.c: #include "extension-priv.h".
12933 Delete inclusion of "observer.h".
12934 (extension_language_python): Moved here and renamed from
12935 script_language_python in py-auto-load.c.
12936 Redefined to be of type extension_language_defn.
12937 (python_extension_script_ops): New global.
12938 (python_extension_ops): New global.
12939 (struct python_env): New member previous_active.
12940 (restore_python_env): Call restore_active_ext_lang.
12941 (ensure_python_env): Call set_active_ext_lang.
12942 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12944 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12946 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12948 (gdbpy_eval_from_control_command): Renamed from
12949 eval_python_from_control_command, made static. New arg extlang.
12950 (gdbpy_source_script) Renamed from source_python_script, made static.
12952 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12953 result to int. New arg extlang.
12954 (gdbpy_source_objfile_script): Renamed from
12955 source_python_script_for_objfile, made static. New arg extlang.
12956 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12957 static. New args extlang, extlang_printers. Change result type to
12959 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12960 static. New arg extlang. Rename arg printers to extlang_printers
12961 and change type to ext_lang_type_printers *.
12962 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12963 static. Replace argument arg with extlang, extlang_printers.
12964 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12965 (!HAVE_PYTHON, source_python_script): Delete.
12966 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12967 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12968 (!HAVE_PYTHON, start_type_printers): Delete.
12969 (!HAVE_PYTHON, apply_type_printers): Delete.
12970 (!HAVE_PYTHON, free_type_printers): Delete.
12971 (_initialize_python): Delete call to observer_attach_before_prompt.
12972 (finalize_python): Set/restore active extension language.
12973 (gdbpy_finish_initialization) Renamed from
12974 finish_python_initialization, made static. New arg extlang.
12975 (gdbpy_initialized): New function.
12976 * python/python.h: #include "extension.h". Delete #include
12977 "value.h", "mi/mi-cmds.h".
12978 (extension_language_python): Declare.
12979 (GDBPY_AUTO_FILE_NAME): Delete.
12980 (enum py_bt_status): Moved to extension.h and renamed to
12981 ext_lang_bt_status.
12982 (enum frame_filter_flags): Moved to extension.h.
12983 (enum py_frame_args): Moved to extension.h and renamed to
12984 ext_lang_frame_args.
12985 (finish_python_initialization): Delete.
12986 (eval_python_from_control_command): Delete.
12987 (source_python_script): Delete.
12988 (apply_val_pretty_printer): Delete.
12989 (apply_frame_filter): Delete.
12990 (preserve_python_values): Delete.
12991 (gdbpy_script_language_defn): Delete.
12992 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12993 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12995 * auto-load.c: #include "extension.h".
12996 (GDB_AUTO_FILE_NAME): Delete.
12997 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12998 (script_language_gdb): Delete, moved to extension.c and renamed to
12999 extension_language_gdb.
13000 (source_gdb_script_for_objfile): Delete.
13001 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13002 (loaded_script): Change type of language member to
13003 struct extension_language_defn *.
13004 (init_loaded_scripts_info): Initialize
13005 unsupported_script_warning_printed.
13006 (maybe_add_script): Make static. Change type of language arg to
13007 struct extension_language_defn *.
13008 (clear_section_scripts): Reset unsupported_script_warning_printed.
13009 (auto_load_objfile_script_1): Rewrite to use extension language API.
13010 (auto_load_objfile_script): Make public. Remove support-compiled-in
13011 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13012 (source_section_scripts): Rewrite to use extension language API.
13013 (load_auto_scripts_for_objfile): Rewrite to use
13014 auto_load_scripts_for_objfile.
13015 (collect_matching_scripts_data): Change type of language member to
13016 struct extension_language_defn *.
13017 (auto_load_info_scripts): Change type of language arg to
13018 struct extension_language_defn *.
13019 (unsupported_script_warning_print): New function.
13020 (script_not_found_warning_print): Make static.
13021 (_initialize_auto_load): Rewrite construction of scripts-directory
13023 * auto-load.h (struct objfile): Add forward decl.
13024 (struct script_language): Delete.
13025 (struct auto_load_pspace_info): Add forward decl.
13026 (struct extension_language_defn): Add forward decl.
13027 (maybe_add_script): Delete.
13028 (auto_load_objfile_script): Declare.
13029 (script_not_found_warning_print): Delete.
13030 (auto_load_info_scripts): Update prototype.
13031 (auto_load_gdb_scripts_enabled): Declare.
13032 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13033 auto_load_python_scripts_enabled and made public.
13034 (script_language_python): Delete, moved to python.c.
13035 (gdbpy_script_language_defn): Delete.
13036 (info_auto_load_python_scripts): Update to use
13037 extension_language_python.
13039 * breakpoint.c (condition_command): Replace call to
13040 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13041 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13042 with call to breakpoint_ext_lang_cond_says_stop.
13043 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13044 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13045 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13046 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13048 (local_setattro): Print name of extension language with existing
13051 * valprint.c (val_print, value_print): Update to call
13052 apply_ext_lang_val_pretty_printer.
13053 * cp-valprint.c (cp_print_value): Update call to
13054 apply_ext_lang_val_pretty_printer.
13055 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13056 (gdbpy_apply_val_pretty_printer): Renamed from
13057 apply_val_pretty_printer. New arg extlang.
13058 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13060 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13061 extension language API.
13062 * cli/cli-script.c (execute_control_command): Update to call
13063 eval_ext_lang_from_control_command.
13065 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13066 enum ext_lang_bt_status values. Update call to
13067 apply_ext_lang_frame_filter.
13068 (mi_cmd_stack_list_locals): Ditto.
13069 (mi_cmd_stack_list_args): Ditto.
13070 (mi_cmd_stack_list_variables): Ditto.
13071 * mi/mi-main.c: Delete #include "python/python-internal.h".
13072 Add #include "extension.h".
13073 (mi_cmd_list_features): Replace reference to python internal variable
13074 gdb_python_initialized with call to ext_lang_initialized_p.
13076 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13077 Update to use enum ext_lang_frame_args. Update to call
13078 apply_ext_lang_frame_filter.
13079 * python/py-framefilter.c (extract_sym): Update to use enum
13080 ext_lang_bt_status.
13081 (extract_value, py_print_type, py_print_value): Ditto.
13082 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13083 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13084 (py_print_frame): Ditto.
13085 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13086 New arg extlang. Update to use enum ext_lang_bt_status.
13088 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13089 finish_python_initialization. Replace with call to
13090 finish_ext_lang_initialization.
13092 * typeprint.c (do_free_global_table): Update to call
13093 free_ext_lang_type_printers.
13094 (create_global_typedef_table): Update to call
13095 start_ext_lang_type_printers.
13096 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13097 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13098 (type_print_options): Change type of global_printers from "void *"
13099 to "struct ext_lang_type_printers *".
13101 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13102 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13103 (gdbpy_preserve_values): Renamed from preserve_python_values.
13105 (!HAVE_PYTHON, preserve_python_values): Delete.
13107 * utils.c (quit_flag): Delete, moved to extension.c.
13108 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13111 * eval.c: Delete #include "python/python.h".
13112 * main.c: Delete #include "python/python.h".
13114 * defs.h: Update comment.
13116 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13120 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13122 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13125 2014-02-05 Yao Qi <yao@codesourcery.com>
13127 * remote.c (remote_pass_signals): Remove local 'buf' and use
13129 (remote_program_signals): Likewise.
13131 2014-02-05 Yao Qi <yao@codesourcery.com>
13133 * ctf.c: Include "inferior.h" and "gdbthread.h".
13134 (CTF_PID): A new macro.
13135 (ctf_open): Call inferior_appeared and add_thread_silent.
13136 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13137 (ctf_thread_alive): New function.
13138 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13140 2014-02-05 Yao Qi <yao@codesourcery.com>
13144 2013-05-24 Yao Qi <yao@codesourcery.com>
13146 * tracepoint.c (TFILE_PID): Remove.
13147 (tfile_open): Don't add thread and inferior.
13148 (tfile_close): Don't set 'inferior_ptid'. Don't call
13149 exit_inferior_silent.
13150 (tfile_thread_alive): Remove.
13151 (init_tfile_ops): Don't set field 'to_thread_alive' of
13154 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13156 * remote.c (remote_start_remote): Call remote_check_symbols even
13157 if only symbol-file (not file) has been given.
13159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13161 * gdbarch.sh (skip_entrypoint): New callback.
13162 * gdbarch.c, gdbarch.h: Regenerate.
13163 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13164 * infrun.c (fill_in_stop_func): Likewise.
13165 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13166 (ppc_elfv2_elf_make_msymbol_special): New function.
13167 (ppc_elfv2_skip_entrypoint): Likewise.
13168 (ppc_linux_init_abi): Install them for ELFv2.
13170 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13172 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13173 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13174 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13175 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13176 structures returned in GPRs.
13178 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13180 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13181 offset to the stack parameter list for the ELFv2 ABI.
13183 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13185 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13186 set_gdbarch_convert_from_func_ptr_addr and
13187 set_gdbarch_elf_make_msymbol_special for ELFv1.
13188 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13189 function descriptors on ELFv1.
13190 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13191 set up r12 at function entry.
13193 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13195 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13196 (struct gdbarch_tdep): New member elf_abi.
13198 * rs6000-tdep.c: Include "elf/ppc64.h".
13199 (rs6000_gdbarch_init): Detect ELF ABI version.
13201 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13203 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13204 within a register pair holding a DFP 128-bit value on little-endian.
13205 (ppc64_sysv_abi_return_value_base): Likewise.
13206 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13207 (dfp_pseudo_register_write): Likewise.
13209 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13211 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13212 offset on little-endian when passing _Decimal32.
13213 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13215 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13217 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13218 of the overlapped FP register within the VSX register on little-
13220 (efpr_pseudo_register_write): Likewise.
13222 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13224 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13225 offset on little-endian when passing small structures.
13227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13229 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13230 (struct ppc64_sysv_argpos): New data structure.
13231 (ppc64_sysv_abi_push_float): Remove.
13232 (ppc64_sysv_abi_push_val): New function.
13233 (ppc64_sysv_abi_push_integer): Likewise.
13234 (ppc64_sysv_abi_push_freg): Likewise.
13235 (ppc64_sysv_abi_push_vreg): Likewise.
13236 (ppc64_sysv_abi_push_param): Likewise.
13237 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13238 (ppc64_sysv_abi_return_value_base): New function.
13239 (ppc64_sysv_abi_return_value): Refactor to use it.
13241 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13243 * NEWS: Document new target powerpc64le-*-linux*.
13245 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13247 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13248 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13250 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13251 register set used in ELF core dumps. Add floating-point register set.
13253 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13255 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13256 dwarf2_to_gdb[] table using symbolic constants. Adjust
13257 penultimate entry from number representing the PC register
13258 to symbolic constant representing the MDR register. Add
13259 constant for the PC register to the end of the table.
13261 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13263 * bsd-kvm.c: Include <sys/param.h>
13265 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13267 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13269 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13271 * ada-lang.h (clear_ada_sym_cache): Delete.
13273 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13275 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13277 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13279 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13280 the sigreturn register save area only if the syscall is
13283 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13285 * valops.c (value_slice): Minor reformatting.
13287 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13289 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13291 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13293 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13294 New static globals.
13295 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13296 (ada_ignore_descriptive_types_p): New static global.
13297 (find_parallel_type_by_descriptive_type): Return immediately
13298 if ada_ignore_descriptive_types_p is set.
13299 (_initialize_ada_language): Register new commands "maintenance
13300 set ada", "maintenance show ada", "maintenance set ada
13301 ignore-descriptive-types" and "maintenance show ada
13302 ignore-descriptive-types".
13303 * NEWS: Add entry for new "maint ada set/show
13304 ignore-descriptive-types" commands.
13306 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13308 * record-btrace.c (record_btrace_close): Call btrace_teardown
13311 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13313 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13318 * ada-typeprint (type_is_full_subrange_of_target_type):
13320 (print_range): Add parameter bounds_prefered_p. If not set,
13321 try printing range types using the name of their base type.
13322 (print_range_type): Add parameter bounds_prefered_p.
13323 Use it in call to print_range.
13324 (print_array_type, ada_print_type): Update calls to print_range
13325 and print_range_type.
13327 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13329 * ada-typeprint.c (print_array_type, print_choices, print_range)
13330 (print_range_bound, print_dynamic_range_bound, print_range_type):
13331 Remove declaration.
13333 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13335 * ada-typeprint.c (print_range): Add missing empty line
13336 after local declaration.
13338 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13340 * ada-valprint.c (print_optional_low_bound): Get index_type's
13341 target type for as long as it is a TYPE_CODE_RANGE.
13343 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13345 * procfs.c (procfs_make_note_section): Remove assertion and
13346 associated comment.
13348 2014-01-24 Yao Qi <yao@codesourcery.com>
13350 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13351 * corelow.c (get_core_siginfo): Likewise.
13353 2014-01-24 Yao Qi <yao@codesourcery.com>
13355 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13356 ULONGEST. Don't check 'len' is negative.
13357 (remote_write_bytes): Change type of 'len' to ULONGEST.
13359 2014-01-23 Tom Tromey <tromey@redhat.com>
13362 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13363 Handle exception from frame.block.
13364 (FrameVars.fetch_frame_locals): Likewise.
13366 2014-01-23 Tom Tromey <tromey@redhat.com>
13369 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13370 on a NULL pointer. Move "goto error" to correct place.
13372 2014-01-23 Tom Tromey <tromey@redhat.com>
13375 * python/py-framefilter.c (apply_frame_filter): Call
13376 ensure_python_env after computing gdbarch.
13378 2014-01-23 Yao Qi <yao@codesourcery.com>
13380 * target.c (raw_memory_xfer_partial): Change argument type
13381 from void * to gdb_byte *.
13382 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13384 2014-01-22 Doug Evans <dje@google.com>
13386 New gdbserver option --debug-format=timestamp.
13387 * NEWS: Mention it.
13389 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13391 * syscalls/s390x-linux.xml: New file.
13392 * syscalls/s390-linux.xml: New file.
13393 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13394 (XML_SYSCALL_FILENAME_S390X): Likewise.
13395 (op_svc): New enum value for SVC opcode.
13396 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13397 (s390_linux_get_syscall_number): New function.
13398 (s390_gdbarch_init): Register '*get_syscall_number' and the
13399 syscall xml file name.
13400 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13401 "s390-linux.xml" and "s390x-linux.xml".
13402 * NEWS: Announce new feature.
13404 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13406 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13408 2014-01-22 Pedro Alves <palves@redhat.com>
13410 * xtensa-config.c: Include defs.h.
13412 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13414 * common/common-utils.h: Add "ARI:" comment beside __func__
13417 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13419 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13420 documentation a bit.
13422 2014-01-21 Roland McGrath <mcgrathr@google.com>
13424 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13425 * configure: Regenerate.
13426 * aclocal.m4: Regenerate.
13427 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13428 New substituted variables.
13429 (install-strip): New target.
13430 (INSTALL_SCRIPT): New substituted variable.
13431 (FLAGS_TO_PASS): Add it.
13432 (install-only): Use $(INSTALL_SCRIPT) rather than
13433 $(INSTALL_PROGRAM) for gcore.
13435 2014-01-20 Tom Tromey <tromey@redhat.com>
13437 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13440 2014-01-20 Tom Tromey <tromey@redhat.com>
13442 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13443 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13444 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13445 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13446 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13447 (struct cmd_list_element) <flags>: Remove.
13448 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13449 doc_allocated>: New fields.
13450 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13452 * maint.c (maintenance_do_deprecate): Update.
13453 * top.c (execute_command): Update.
13455 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13457 * xtensa-linux-nat.c: Include asm/ptrace.h.
13459 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13461 * Makefile.in (SFILES): Add d-support.c.
13462 (COMMON_OBS): Add d-support.o.
13463 * d-lang.h (d_parse_symbol): Add comment, now defined in
13465 * d-lang.c (parse_call_convention)
13466 (parse_attributes, parse_function_types)
13467 (parse_function_args, parse_type, parse_identifier)
13468 (call_convention_p, d_parse_symbol): Move functions to ...
13469 * d-support.c: ... New file.
13471 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13473 * d-lang.h (d_parse_symbol): Add declaration.
13474 * d-lang.c (extract_identifiers)
13475 (extract_type_info): Remove functions.
13476 (parse_call_convention, parse_attributes)
13477 (parse_function_types, parse_function_args)
13478 (parse_type, parse_identifier, call_convention_p)
13479 (d_parse_symbol): New functions.
13480 (d_demangle): Use d_parse_symbol to demangle D symbols.
13482 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13484 * d-lang.h (struct builtin_d_type): New data type.
13485 (builtin_d_type): Add declaration.
13486 * d-lang.c (d_language_arch_info, build_d_types)
13487 (builtin_d_type): New functions.
13488 (enum d_primitive_types): New data type.
13489 (d_language_defn): Change c_language_arch_info to
13490 d_language_arch_info.
13491 (d_type_data): New static variable.
13492 (_initialize_d_language): Initialize d_type_data.
13494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13496 * d-lang.h (d_main_name): Add declaration.
13497 * d-lang.c (d_main_name): New function.
13498 * symtab.c (find_main_name): Add call to d_main_name.
13500 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13502 * d-lang.c (d_language_defn): Change macro_expansion_c to
13503 macro_expansion_no.
13505 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13507 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13509 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13511 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13512 gdb_exception" declaration.
13513 * remote.c (getpkt_or_notif_sane): Likewise.
13515 2014-01-17 Doug Evans <dje@google.com>
13517 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13518 function, contents of dirnames_to_char_ptr_vec_append moved here.
13519 (delim_string_to_char_ptr_vec): New function.
13520 (dirnames_to_char_ptr_vec_append): Rewrite.
13521 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13523 2014-01-17 Doug Evans <dje@google.com>
13525 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13527 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13528 #include "common-utils.h".
13529 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13530 * common/vec.h (VEC_ASSERT_PASS): Update.
13531 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13532 (MACH_CHECK_ERROR): Update.
13534 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13536 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13538 * gdbarch.h: Regenerate.
13540 2014-01-16 Tom Tromey <tromey@redhat.com>
13542 * value.c (struct value) <regnum>: Move earlier.
13544 2014-01-16 Tom Tromey <tromey@redhat.com>
13546 * remote.c (extended_remote_create_inferior): Rename from
13547 extended_remote_create_inferior_1. Add "ops" argument. Remove
13548 old implementation.
13550 2014-01-16 Pedro Alves <palves@redhat.com>
13552 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13553 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13556 2014-01-16 Doug Evans <dje@google.com>
13558 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13562 * btrace.h (btrace_thread_flag): New.
13563 (struct btrace_thread_info) <flags>: New.
13564 * record-btrace.c (record_btrace_resume_thread)
13565 (record_btrace_find_thread_to_move, btrace_step_no_history)
13566 (btrace_step_stopped, record_btrace_start_replaying)
13567 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13568 (record_btrace_find_resume_thread): New.
13569 (record_btrace_resume, record_btrace_wait): Extend.
13570 (record_btrace_can_execute_reverse): New.
13571 (record_btrace_open): Fail in non-stop mode.
13572 (record_btrace_set_replay): Split into this, ...
13573 (record_btrace_stop_replaying): ... this, ...
13574 (record_btrace_clear_histories): ... and this.
13575 (init_record_btrace_ops): Init to_can_execute_reverse.
13576 * NEWS: Announce it.
13578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13580 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13581 (forward_target_decr_pc_after_break)
13582 (target_decr_pc_after_break): New.
13583 * target.c (forward_target_decr_pc_after_break)
13584 (target_decr_pc_after_break): New.
13585 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13586 instead of gdbarch_decr_pc_after_break.
13587 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13588 instead of gdbarch_decr_pc_after_break.
13589 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13590 instead of gdbarch_decr_pc_after_break.
13591 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13592 instead of gdbarch_decr_pc_after_break.
13593 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13594 instead of gdbarch_decr_pc_after_break.
13595 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13596 instead of gdbarch_decr_pc_after_break.
13598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13600 * btrace.c: Include regcache.h.
13601 (btrace_add_pc): New.
13602 (btrace_enable): Call btrace_add_pc.
13603 (btrace_is_empty): New.
13604 * btrace.h (btrace_is_empty): New.
13605 * record-btrace.c (require_btrace, record_btrace_info): Call
13608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13610 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13611 Support delta reads.
13612 (linux_disable_btrace): Change return type.
13613 * common/linux-btrace.h (linux_read_btrace): Change parameters
13614 and return type to allow error reporting. Update users.
13615 (linux_disable_btrace): Change return type. Update users.
13616 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13618 (btrace_error): New.
13619 (btrace_block) <begin>: Comment on BEGIN == 0.
13620 * btrace.c (btrace_compute_ftrace): Start from the end of
13622 (btrace_stitch_trace, btrace_clear_history): New.
13623 (btrace_fetch): Read delta trace, return if replaying.
13624 (btrace_clear): Move clear history code to btrace_clear_history.
13625 (parse_xml_btrace): Throw an error if parsing failed.
13626 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13627 and return type to allow error reporting.
13628 (target_read_btrace): Change parameters and return type to allow
13630 * target.c (target_read_btrace): Update.
13631 * remote.c (remote_read_btrace): Support delta reads. Pass
13633 * NEWS: Announce it.
13635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13637 * record.h (record_btrace_frame_unwind)
13638 (record_btrace_tailcall_frame_unwind): New declarations.
13639 * dwarf2-frame: Include record.h
13640 (dwarf2_frame_cfa): Throw an error for btrace frames.
13641 * record-btrace.c: Include hashtab.h.
13642 (btrace_get_bfun_name): New.
13643 (btrace_call_history): Call btrace_get_bfun_name.
13644 (struct btrace_frame_cache): New.
13646 (bfcache_hash, bfcache_eq, bfcache_new): New.
13647 (btrace_get_frame_function): New.
13648 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13649 (record_btrace_frame_this_id): Compute own id.
13650 (record_btrace_frame_prev_register): Provide PC, throw_error
13651 for all other registers.
13652 (record_btrace_frame_sniffer): Detect btrace frames.
13653 (record_btrace_tailcall_frame_sniffer): New.
13654 (record_btrace_frame_dealloc_cache): New.
13655 (record_btrace_frame_unwind): Add new functions.
13656 (record_btrace_tailcall_frame_unwind): New.
13657 (_initialize_record_btrace): Allocate cache.
13658 * btrace.c (btrace_clear): Call reinit_frame_cache.
13659 * NEWS: Announce it.
13661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13663 * record-btrace.c (record_btrace_set_replay)
13664 (record_btrace_goto_begin, record_btrace_goto_end)
13665 (record_btrace_goto): New.
13666 (init_record_btrace_ops): Initialize them.
13667 * NEWS: Announce it.
13669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13671 * record-btrace.c (record_btrace_find_new_threads)
13672 (record_btrace_thread_alive): New.
13673 (init_record_btrace_ops): Initialize to_find_new_threads and
13676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13678 * record-btrace.c (record_btrace_resume): New.
13679 (record_btrace_wait): New.
13680 (init_record_btrace_ops): Initialize to_wait and to_resume.
13682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13684 * record-btrace.c (record_btrace_xfer_partial)
13685 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13686 (record_btrace_allow_memory_access): New.
13687 (init_record_btrace_ops): Initialize new methods.
13688 * target.c (raw_memory_xfer_partial): Bail out if target reports
13689 that this memory is not available.
13691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13693 * target.h (target_ops) <to_insert_breakpoint>
13694 <to_remove_breakpoint>: Add target_ops parameter.
13695 (forward_target_insert_breakpoint): New.
13696 (forward_target_remove_breakpoint): New.
13697 (memory_remove_breakpoint, memory_insert_breakpoint):
13698 Add target_ops parameter.
13699 * target.c (target_insert_breakpoint): Split into this and ...
13700 (forward_target_insert_breakpoint): ... this.
13701 (target_remove_breakpoint): Split into this and ...
13702 (forward_target_remove_breakpoint): ... this.
13703 (debug_to_insert_breakpoint): Add target_ops parameter.
13704 Call forward_target_insert_breakpoint.
13705 (debug_to_remove_breakpoint): Add target_ops parameter.
13706 Call forward_target_remove_breakpoint.
13707 (update_current_target): Do not inherit or default to_insert_breakpoint
13708 and to_remove_breakpoint.
13709 * corelow.c (ignore): Add target_ops parameter.
13710 * exec.c (ignore): Add target_ops parameter.
13711 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13712 Add target_ops parameter.
13713 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13714 Add target_ops parameter.
13715 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13716 Add target_ops parameter.
13717 * record-full.c (record_full_beneath_to_insert_breakpoint)
13718 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13719 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13720 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13721 (record_full_core_remove_breakpoint): Add target_ops parameter.
13723 (record_full_beneath_to_insert_breakpoint_ops)
13724 (record_full_beneath_to_remove_breakpoint_ops)
13725 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13726 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13727 tmp_to_remove_breakpoint_ops,
13728 record_full_beneath_to_insert_breakpoint_ops, and
13729 record_full_beneath_to_remove_breakpoint_ops.
13730 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13731 (m32r_remove_breakpoint): Add target_ops parameter.
13732 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13733 Add target_ops parameter.
13734 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13735 Add target_ops parameter.
13737 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13738 Markus Metzger <markus.t.metzger@intel.com>
13740 * record-btrace.c: Include frame-unwind.h.
13741 (record_btrace_frame_unwind_stop_reason)
13742 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13743 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13745 (init_record_btrace_ops): Install it.
13747 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13749 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13752 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13754 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13757 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13759 * frame-unwind.c: Include target.h.
13760 (frame_unwind_try_unwinder): New function with code from ...
13761 (frame_unwind_find_by_frame): ... here. New variable
13762 unwinder_from_target, call also target_get_unwinder)
13763 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13764 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13765 * target.h (struct target_ops): New fields to_get_unwinder and
13766 to_get_tailcall_unwinder.
13767 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771 * record-btrace.c (record_btrace_fetch_registers)
13772 (record_btrace_store_registers)
13773 (record_btrace_to_prepare_to_store): New.
13774 (init_record_btrace_ops): Add the above.
13776 2014-01-16 Tom Tromey <tromey@redhat.com>
13778 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13779 * target.h (struct target_ops) <to_prepare_to_store>: Add
13781 (target_prepare_to_store): Add argument.
13782 * target.c (debug_to_prepare_to_store): Add argument.
13783 (update_current_target): Update.
13784 * remote.c (remote_prepare_to_store): Add 'self' argument.
13785 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13786 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13787 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13788 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13790 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13791 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13792 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13793 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13794 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13798 * btrace.h (replay) <replay>: New.
13799 (btrace_is_replaying): New.
13800 * btrace.c (btrace_clear): Free replay iterator.
13801 (btrace_is_replaying): New.
13802 * record-btrace.c (record_btrace_is_replaying): New.
13803 (record_btrace_info): Print insn number if replaying.
13804 (record_btrace_insn_history): Start at replay position.
13805 (record_btrace_call_history): Start at replay position.
13806 (init_record_btrace_ops): Init to_record_is_replaying.
13808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13810 * record-btrace.c (record_btrace_insn_history_range): Include
13812 (record_btrace_insn_history_from): Adjust range.
13813 (record_btrace_call_history_range): Include
13815 (record_btrace_call_history_from): Adjust range.
13816 * NEWS: Announce changes.
13818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13820 * record.h (enum record_print_flag)
13821 <record_print_indent_calls>: New.
13822 * record.c (get_call_history_modifiers): Recognize /c modifier.
13823 (_initialize_record): Document /c modifier.
13824 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13825 Reorder fields. Optionally indent the function name. Update
13827 * NEWS: Announce changes.
13829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13831 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13835 * btrace.c (ftrace_new_function): Start counting at one.
13836 * record-btrace.c (record_btrace_info): Adjust number of calls
13838 * NEWS: Announce it.
13840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13842 * record-btrace.c (btrace_call_history_insn_range): Print
13843 insn range as [begin, end].
13845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13847 * btrace.h (struct btrace_func_link): New.
13848 (enum btrace_function_flag): New.
13849 (struct btrace_inst): Rename to ...
13850 (struct btrace_insn): ...this. Update all users.
13851 (struct btrace_func) <ibegin, iend>: Remove.
13852 (struct btrace_func_link): New.
13853 (struct btrace_func): Rename to ...
13854 (struct btrace_function): ...this. Update all users.
13855 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13856 (number, level, flags>: New.
13857 (struct btrace_insn_iterator): Rename to ...
13858 (struct btrace_insn_history): ...this.
13860 (struct btrace_insn_iterator, btrace_call_iterator): New.
13861 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13862 (struct btrace_target_info) <begin, end, level>
13863 <insn_history, call_history>: New.
13864 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13865 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13866 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13867 (btrace_call_number, btrace_call_begin, btrace_call_end)
13868 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13869 (btrace_find_function_by_number, btrace_set_insn_history)
13870 (btrace_set_call_history): New.
13871 * btrace.c (btrace_init_insn_iterator)
13872 (btrace_init_func_iterator, compute_itrace): Remove.
13873 (ftrace_print_function_name, ftrace_print_filename)
13874 (ftrace_skip_file): Change
13875 parameter to const.
13876 (ftrace_init_func): Remove.
13877 (ftrace_debug): Use new btrace_function fields.
13878 (ftrace_function_switched): Also consider gaining and
13879 losing symbol information).
13880 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13881 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13882 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13884 (ftrace_new_function): Move. Remove debug print.
13885 (ftrace_update_lines, ftrace_update_insns): New.
13886 (ftrace_update_function): Check for call, ret, and jump.
13887 (compute_ftrace): Renamed to ...
13888 (btrace_compute_ftrace): ...this. Rewritten to compute call
13890 (btrace_fetch, btrace_clear): Updated.
13891 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13892 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13893 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13894 (btrace_call_number, btrace_call_begin, btrace_call_end)
13895 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13896 (btrace_find_function_by_number, btrace_set_insn_history)
13897 (btrace_set_call_history): New.
13898 * record-btrace.c (require_btrace): Use new btrace thread
13900 (record_btrace_info, btrace_insn_history)
13901 (record_btrace_insn_history, record_btrace_insn_history_range):
13902 Use new btrace thread info fields and new iterator.
13903 (btrace_func_history_src_line): Rename to ...
13904 (btrace_call_history_src_line): ...this. Use new btrace
13905 thread info fields.
13906 (btrace_func_history): Rename to ...
13907 (btrace_call_history): ...this. Use new btrace thread info
13908 fields and new iterator.
13909 (record_btrace_call_history, record_btrace_call_history_range):
13910 Use new btrace thread info fields and new iterator.
13912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13914 * frame.h (frame_id_build_unavailable_stack_special): New.
13915 * frame.c (frame_id_build_unavailable_stack_special): New.
13917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13919 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13920 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13921 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13923 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13924 (i386_insn_is_jump, i386_jmp_p): New.
13925 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13926 insn_is_jump to gdbarch.
13927 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13928 * gdbarch.h: Regenerated.
13929 * gdbarch.c: Regenerated.
13930 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13931 (default_insn_is_jump): New.
13932 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13933 (default_insn_is_jump): New.
13935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13937 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13939 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13940 (btrace_read_type) <btrace_read_new>: Change to ...
13941 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13945 * common/linux-btrace.c (linux_read_btrace): Free trace from
13946 previous iteration.
13948 2014-01-15 Doug Evans <dje@google.com>
13950 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13953 2014-01-15 Tom Tromey <tromey@redhat.com>
13955 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13956 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13957 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13958 (set_objfile_main_name): New function.
13959 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13960 language_of_main>: New fields.
13961 (set_objfile_main_name): Declare.
13962 * symtab.c (find_main_name): Loop over objfiles to find the main
13964 (set_main_name): Now static.
13965 (get_main_info): Add comment.
13966 * symtab.h (set_main_name): Don't declare.
13968 2014-01-15 Tom Tromey <tromey@redhat.com>
13970 * symtab.c (main_progspace_key): New global.
13971 (struct main_info): New.
13972 (name_of_main, language_of_main): Remove.
13973 (get_main_info, main_info_cleanup): New function.
13974 (set_main_name, main_name, main_language): Use get_main_info.
13975 (_initialize_symtab): Initialize main_progspace_key.
13977 2014-01-15 Tom Tromey <tromey@redhat.com>
13979 * dbxread.c (process_one_symbol): Update.
13980 * dwarf2read.c (read_partial_die): Update.
13981 * symfile.c (set_initial_language): Call main_language.
13982 * symtab.c (language_of_main): Now static.
13983 (set_main_name): Add 'lang' parameter.
13984 (find_main_name): Update.
13985 (main_language): New function.
13986 (symtab_observer_executable_changed): Update.
13987 * symtab.h (set_main_name): Update.
13988 (language_of_main): Remove.
13989 (main_language): Declare.
13991 2014-01-15 Tom Tromey <tromey@redhat.com>
13993 * symfile.c (init_entry_point_info): Use new "initialized" field.
13995 * objfiles.h (struct entry_point) <initialized>: New field.
13996 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13997 (struct objfile) <ei>: ...here. Remove.
13998 * objfiles.c (entry_point_address_query): Update.
14000 2014-01-15 Tom Tromey <tromey@redhat.com>
14002 * objfiles.c (entry_point_address_query): Relocate entry point
14004 (objfile_relocate1): Do not relocate entry point address.
14005 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14006 <the_bfd_section_index>: New field.
14007 * symfile.c (init_entry_point_info): Find the entry point's
14010 2014-01-15 Tom Tromey <tromey@redhat.com>
14012 * solib-frv.c (enable_break): Use entry_point_address_query.
14014 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14016 * NEWS: Add note on improved process record-replay on
14017 arm*-linux* targets.
14019 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14021 * arm-tdep.c (enum arm_record_result): New enum.
14022 (arm_record_unsupported_insn): New function.
14023 (arm_record_coproc_data_proc): Removed.
14024 (thumb2_record_ld_st_multiple): New function.
14025 (thumb2_record_ld_st_dual_ex_tbb): New function.
14026 (thumb2_record_data_proc_sreg_mimm): New function.
14027 (thumb2_record_ps_dest_generic): New function.
14028 (thumb2_record_branch_misc_cntrl): New function.
14029 (thumb2_record_str_single_data): New function.
14030 (thumb2_record_ld_mem_hints): New function.
14031 (thumb2_record_ld_word): New function.
14032 (thumb2_record_lmul_lmla_div): New function.
14033 (thumb2_record_decode_insn_handler): New function.
14034 (decode_insn): Add thumb32 instruction handlers.
14036 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14038 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14039 (struct arm_linux_record_tdep): Declare.
14040 (arm_canonicalize_syscall): New function.
14041 (arm_all_but_pc_registers_record): New function.
14042 (arm_linux_syscall_record): New function.
14043 (arm_linux_init_abi): Add syscall recording constructs.
14044 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14045 decoding. (arm_record_coproc_data_proc): Update arm syscall
14047 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14048 <arm_syscall_record>: New field.
14049 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14052 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14054 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14055 register for push instruction recording.
14057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14059 * arm-tdep.c (thumb_record_misc): Update to correct logical
14060 error while recording ldm, ldmia and pop instructions.
14062 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14064 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14066 2014-01-15 Pedro Alves <palves@redhat.com>
14068 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14069 (go32_resume, go32_fetch_registers, store_register)
14070 (go32_store_registers, go32_prepare_to_store)
14071 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14072 (go32_create_inferior, go32_can_run, go32_terminal_init)
14073 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14076 2014-01-15 Tom Tromey <tromey@redhat.com>
14078 * target.h (async_callback_ftype): New typedef.
14079 (struct target_ops) <to_async>: Use it.
14081 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14083 * python/py-value.c (get_field_type): Remove unnecessary curly
14084 braces for single-statement if block.
14086 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14088 * python/py-type.c (convert_field): Add missing empty line
14089 after declarations.
14091 2014-01-14 Doug Evans <dje@google.com>
14093 * symfile.h (expand_symtabs_matching): Renamed from
14094 expand_partial_symbol_names. Update prototype.
14095 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14096 * symfile.c (expand_symtabs_matching): Renamed from
14097 expand_partial_symbol_names. New args file_matcher, kind.
14098 Rename arg fun to symbol_matcher.
14099 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14100 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14101 ada_expand_partial_symbol_name.
14102 (ada_make_symbol_completion_list): Update to call
14103 expand_symtabs_matching.
14104 (ada_add_global_exceptions): Call expand_symtabs_matching.
14105 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14106 call map_symbol_filenames.
14107 * symtab.c (sources_info): Update to call map_symbol_filenames.
14108 (search_symbols): Call expand_symtabs_matching.
14109 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14110 (default_make_symbol_completion_list_break_on): Update to call
14111 expand_symtabs_matching.
14112 (make_source_files_completion_list): Update to call
14113 map_symbol_filenames.
14115 2014-01-14 Doug Evans <dje@google.com>
14117 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14118 (expand_symtabs_symbol_matcher_ftype): New typedef.
14119 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14120 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14121 * symfile.c (expand_partial_symbol_names): Update to use
14122 expand_symtabs_symbol_matcher_ftype.
14123 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14124 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14125 Arg name_matcher renamed to symbol_matcher.
14126 * psymtab.c (recursively_search_psymtabs): Update to use
14127 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14129 (expand_symtabs_matching_via_partial): Update to use
14130 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14131 Arg name_matcher renamed to symbol_matcher.
14133 2014-01-14 Doug Evans <dje@google.com>
14135 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14136 (map_partial_symbol_filenames): Ditto.
14137 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14138 (map_partial_symbol_filenames): Ditto.
14139 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14140 (map_partial_symbol_filenames): Ditto.
14141 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14142 (map_partial_symbol_filenames): Ditto.
14143 * symtab.c: Delete #include "psymtab.h".
14145 2014-01-14 Pedro Alves <palves@redhat.com>
14146 Tom Tromey <tromey@redhat.com>
14148 * infrun.c (use_displaced_stepping): Use find_record_target
14149 instead of RECORD_IS_USED.
14150 (adjust_pc_after_break): Use record_full_is_used instead of
14152 * record-btrace.c (record_btrace_open): Call record_preopen
14153 instead of checking RECORD_IS_USED.
14154 * record-full.c (record_full_shortname)
14155 (record_full_core_shortname): New globals.
14156 (record_full_is_used): New function.
14157 (find_full_open): Call record_preopen instead of checking
14159 (init_record_full_ops): Set the target's shortname to
14160 record_full_shortname.
14161 (init_record_full_core_ops): Set the target's shortname to
14162 record_full_core_shortname.
14163 * record-full.h (record_full_is_used): Declare.
14164 * record.c (find_record_target): Make extern.
14165 (record_preopen): New function.
14166 * record.h (RECORD_IS_USED): Delete macro.
14167 (find_record_target, record_preopen): Declare functions.
14169 2014-01-14 Yao Qi <yao@codesourcery.com>
14171 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14172 'len''s type to ULONGEST.
14173 (core_xfer_shared_libraries_aix): Likewise.
14174 * gdbarch.c, gdbarch.h: Regenerated.
14175 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14176 Change type of 'len' to ULONGEST.
14177 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14178 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14180 2014-01-14 Yao Qi <yao@codesourcery.com>
14182 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14183 type of 'len' to ULONGEST.
14184 (linux_xfer_osdata_processgroups): Likewise.
14185 (linux_xfer_osdata_threads): Likewise.
14186 (linux_xfer_osdata_fds): Likewise.
14187 (linux_xfer_osdata_isockets): Likewise.
14188 (linux_xfer_osdata_shm): Likewise.
14189 (linux_xfer_osdata_sem): Likewise.
14190 (linux_xfer_osdata_msg): Likewise.
14191 (linux_common_xfer_osdata): Likewise.
14192 (struct osdata_type) <getter>: Likewise.
14193 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14196 2014-01-14 Yao Qi <yao@codesourcery.com>
14198 * target.h (target_xfer_partial_ftype): Update.
14199 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14201 * aix-thread.c (aix_thread_xfer_partial): Change type of
14202 argument 'len' to ULONGEST.
14203 * auxv.c (procfs_xfer_auxv): Likewise.
14204 (ld_so_xfer_auxv): Likewise.
14205 (memory_xfer_auxv): Likewise.
14206 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14207 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14208 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14209 * corelow.c (core_xfer_partial): Likewise.
14210 * ctf.c (ctf_xfer_partial): Likewise.
14211 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14213 (darwin_read_dyld_info): Likewise.
14214 (darwin_xfer_partial): Likewise.
14215 * exec.c (section_table_xfer_memory_partial): Likewise.
14216 (exec_xfer_partial): Likewise.
14217 * exec.h (section_table_xfer_memory_partial): Update
14219 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14220 instead of plongest.
14221 (gnu_xfer_partial): Likewise.
14222 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14223 (ia64_hpux_xfer_solib_got): Likewise.
14224 (ia64_hpux_xfer_partial): Likewise.
14225 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14226 * inf-ptrace.c (inf_ptrace_xfer_partial):
14227 * inf-ttrace.c (inf_ttrace_xfer_partial):
14228 * linux-nat.c (linux_xfer_siginfo): Likewise.
14229 (linux_nat_xfer_partial): Likewise.
14230 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14231 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14232 * monitor.c (monitor_xfer_memory): Likewise.
14233 (monitor_xfer_partial): Likewise.
14234 * procfs.c (procfs_xfer_partial): Likewise.
14235 * record-full.c (record_full_xfer_partial): Likewise.
14236 (record_full_core_xfer_partial): Likewise.
14237 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14238 instead of plongest.
14239 (gdbsim_xfer_partial): Likewise.
14240 * remote.c (remote_xfer_partial): Likewise.
14241 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14242 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14244 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14245 (rs6000_xfer_shared_libraries): Likewise.
14246 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14247 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14248 (sparc_xfer_partial): Likewise.
14249 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14250 (spu_xfer_partial): Likewise.
14251 * spu-multiarch.c (spu_xfer_partial): Likewise.
14252 * target.c (target_read_live_memory): Likewise.
14253 (memory_xfer_live_readonly_partial): Likewise.
14254 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14255 (target_xfer_partial, default_xfer_partial): Likewise.
14256 (current_xfer_partial): Likewise.
14257 * tracepoint.c (tfile_xfer_partial): Likewise.
14258 * windows-nat.c (windows_xfer_memory): Likewise. Call
14259 pulongest instead of plongest.
14260 (windows_xfer_partial): Likewise.
14261 (windows_xfer_shared_libraries): Likewise.
14263 2014-01-14 Yao Qi <yao@codesourcery.com>
14265 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14266 target_xfer_partial_ftype.
14268 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14272 * valops.c (value_struct_elt_bitpos): New function
14273 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14274 object to 'None' if the field name is an empty string ("").
14275 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14276 attribute to look for a field when 'name' is 'None'.
14277 (get_field_type): New function
14279 2014-01-13 Doug Evans <dje@google.com>
14282 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14283 (try_open_dwop_file): Ditto.
14284 * gdb_bfd.c: #include "vec.h".
14285 (bfdp): New typedef.
14286 (struct gdb_bfd_data): New member included_bfds.
14287 (gdb_bfd_unref): Unref all included bfds.
14288 (gdb_bfd_record_inclusion): New function.
14289 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14291 2014-01-13 Tom Tromey <tromey@redhat.com>
14293 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14295 2014-01-13 Tom Tromey <tromey@redhat.com>
14297 * defs.h (use_windows): Remove.
14298 * gdb.c (main): Update.
14299 * main.c (captured_main, gdb_main): Update.
14300 * main.h (struct captured_main_args) <use_windows>: Remove.
14301 * top.c (use_windows): Remove.
14303 2014-01-13 Tom Tromey <tromey@redhat.com>
14305 * defs.h (deprecated_flush_hook): Remove.
14307 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14310 * linux-thread-db.c (try_thread_db_load): Add parameter
14311 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14312 (try_thread_db_load_from_pdir_1): Move it there from here.
14313 (try_thread_db_load_from_sdir): Update caller.
14314 (try_thread_db_load_from_dir): Move it there from here.
14316 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14318 * regformats/regdat.sh: Always rewrite the register file.
14320 2014-01-13 Pedro Alves <palves@redhat.com>
14322 * Makefile.in (CHECK_HEADERS): New variable.
14323 (check-headers:): New rule.
14325 2014-01-13 Tom Tromey <tromey@redhat.com>
14327 * cli/cli-setshow.c (do_set_command): Update.
14328 * defs.h (deprecated_set_hook): Remove.
14329 * top.c (deprecated_set_hook): Remove.
14331 2014-01-13 Pedro Alves <palves@redhat.com>
14333 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14334 the tracepoint if the PC is a pseudo-register.
14336 2014-01-13 Tom Tromey <tromey@redhat.com>
14338 * defs.h (XCALLOC): Remove.
14339 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14340 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14341 * dwarf2loc.c (allocate_piece_closure): Likewise.
14342 * elfread.c (elf_symfile_segments): Likewise.
14343 (elf_symfile_segments): Likewise.
14344 * gdbtypes.c (copy_type_recursive): Likewise.
14345 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14346 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14347 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14349 * mt-tdep.c (mt_gdbarch_init): Likewise.
14350 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14352 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14353 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14354 * registry.c (registry_alloc_data): Likewise.
14355 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14356 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14357 * serial.c (serial_fdopen_ops): Likewise.
14358 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14360 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14361 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14364 2014-01-13 Tom Tromey <tromey@redhat.com>
14366 * defs.h (XMALLOC): Remove.
14367 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14368 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14369 * cli-out.c (struct ui_out *): Likewise.
14370 * cli/cli-dump.c (add_dump_command): Likewise.
14371 (add_dump_command): Likewise.
14372 * complaints.c (get_complaints): Likewise.
14373 (find_complaint): Likewise.
14374 * dwarf2-frame.c (execute_cfa_program): Likewise.
14375 * dwarf2read.c (abbrev_table_read_table): Likewise.
14376 * gdbarch.sh: Likewise.
14377 * gdbarch.c: Rebuild.
14378 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14379 * interps.c (interp_new): Likewise.
14380 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14381 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14382 * mi/mi-console.c (mi_console_file_new): Likewise.
14383 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14384 * mi/mi-out.c (mi_out_new): Likewise.
14385 * mi/mi-parse.c (mi_parse): Likewise.
14386 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14387 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14388 * observer.c (xalloc_observer_list_node): Likewise.
14389 * regcache.c (regcache_xmalloc_1): Likewise.
14390 * reggroups.c (reggroup_new): Likewise.
14391 (_initialize_reggroup): Likewise.
14392 * registry.c (register_data_with_cleanup): Likewise.
14393 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14394 * ser-base.c (serial_ttystate): Likewise.
14395 * ser-mingw.c (make_pipe_state): Likewise.
14396 * ser-pipe.c (pipe_open): Likewise.
14397 * serial.c (serial_open): Likewise.
14398 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14399 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14400 (tui_alloc_win_info): Likewise.
14401 (tui_add_content_elements): Likewise.
14402 * tui/tui-file.c (tui_file_new): Likewise.
14403 * tui/tui-out.c (tui_out_new): Likewise.
14404 * ui-file.c (mem_file_new): Likewise.
14405 * ui-out.c (push_level): Likewise.
14406 (make_cleanup_ui_out_end): Likewise.
14407 (append_header_to_list): Likewise.
14408 (ui_out_new): Likewise.
14409 * user-regs.c (user_reg_add_builtin): Likewise.
14411 2014-01-13 Tom Tromey <tromey@redhat.com>
14413 * defs.h (XZALLOC): Remove.
14414 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14415 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14416 (get_ada_tasks_inferior_data): Likewise.
14417 * auto-load.c (get_auto_load_pspace_data): Likewise.
14418 * auxv.c (get_auxv_inferior_data): Likewise.
14419 * bfd-target.c (target_bfd_reopen): Likewise.
14420 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14421 (deprecated_insert_raw_breakpoint): Likewise.
14422 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14423 * corelow.c (core_open): Likewise.
14424 * darwin-nat.c (darwin_check_new_threads): Likewise.
14425 (darwin_attach_pid): Likewise.
14426 * dummy-frame.c (dummy_frame_push): Likewise.
14427 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14428 * dwarf2loc.c (allocate_piece_closure): Likewise.
14429 * elfread.c (elf_symfile_segments): Likewise.
14430 * eval.c (ptrmath_type_p): Likewise.
14431 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14432 * gdbtypes.c (alloc_type_arch): Likewise.
14433 (alloc_type_instance): Likewise.
14434 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14435 * inf-child.c (inf_child_can_use_agent): Likewise.
14436 * inflow.c (get_inflow_inferior_data): Likewise.
14437 * infrun.c (save_infcall_suspend_state): Likewise.
14438 * jit.c (jit_reader_load): Likewise.
14439 (get_jit_objfile_data): Likewise.
14440 (get_jit_program_space_data): Likewise.
14441 (jit_object_open_impl): Likewise.
14442 (jit_symtab_open_impl): Likewise.
14443 (jit_block_open_impl): Likewise.
14444 (jit_frame_sniffer): Likewise.
14445 * linux-fork.c (add_fork): Likewise.
14446 * maint.c (make_command_stats_cleanup): Likewise.
14447 * objfiles.c (get_objfile_pspace_data): Likewise.
14448 * opencl-lang.c (struct lval_closure): Likewise.
14449 * osdata.c (osdata_start_osdata): Likewise.
14450 * progspace.c (new_address_space): Likewise.
14451 (add_program_space): Likewise.
14452 * remote-sim.c (get_sim_inferior_data): Likewise.
14453 * sh-tdep.c (sh_gdbarch_init): Likewise.
14454 * skip.c (Ignore): Likewise.
14455 (skip_delete_command): Likewise.
14456 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14457 (library_list_start_library): Likewise.
14458 (solib_aix_current_sos): Likewise.
14459 * solib-darwin.c (get_darwin_info): Likewise.
14460 (darwin_current_sos): Likewise.
14461 * solib-dsbt.c (get_dsbt_info): Likewise.
14462 * solib-ia64-hpux.c (new_so_list): Likewise.
14463 (ia64_hpux_get_solib_linkage_addr): Likewise.
14464 * solib-spu.c (append_ocl_sos): Likewise.
14465 (spu_current_sos): Likewise.
14466 * solib-svr4.c (get_svr4_info): Likewise.
14467 (svr4_keep_data_in_core): Likewise.
14468 (library_list_start_library): Likewise.
14469 (svr4_default_sos): Likewise.
14470 (svr4_read_so_list): Likewise.
14471 * solib-target.c (library_list_start_library): Likewise.
14472 (solib_target_current_sos): Likewise.
14473 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14474 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14475 * symfile.c (default_symfile_segments): Likewise.
14476 * target-descriptions.c (tdesc_data_init): Likewise.
14477 (tdesc_create_reg): Likewise.
14478 (struct tdesc_type *): Likewise.
14479 (tdesc_create_vector): Likewise.
14480 (tdesc_set_struct_size): Likewise.
14481 (struct tdesc_type *): Likewise.
14482 (tdesc_free_feature): Likewise.
14483 (tdesc_create_feature): Likewise.
14484 * windows-nat.c (windows_add_thread): Likewise.
14485 (windows_make_so): Likewise.
14486 * xml-support.c (gdb_xml_body_text): Likewise.
14487 (gdb_xml_create_parser_and_cleanup): Likewise.
14488 (xml_process_xincludes): Likewise.
14489 * xml-syscall.c (allocate_syscalls_info): Likewise.
14490 (syscall_create_syscall_desc): Likewise.
14492 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14494 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14495 function, with code from i386_stap_parse_special_token.
14496 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14497 (i386_stap_parse_special_token): Move code to the two functions
14498 above; simplify it.
14500 2014-01-09 Pedro Alves <palves@redhat.com>
14501 Hui Zhu <hui@codesourcery.com>
14504 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14505 bp_err_string. Don't mark the location shlib_disabled if the
14506 error thrown wasn't a generic or memory error. Catch errors
14507 thrown while inserting breakpoints in overlayed code. Output
14508 error message of software breakpoints.
14509 * remote.c (remote_insert_breakpoint): If this breakpoint has
14510 target-side commands but this stub doesn't support Z0 packets,
14511 throw NOT_SUPPORTED_ERROR error.
14512 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14513 * target.h (target_insert_breakpoint): Extend comment.
14514 (target_insert_hw_breakpoint): Add comment.
14516 2014-01-08 Pedro Alves <palves@redhat.com>
14518 * remote.c (remote_add_thread): Add threads silently if starting
14520 (remote_notice_new_inferior): If in all-stop, and starting up,
14521 don't call notice_new_inferior.
14522 (get_current_thread): New function, factored out from ...
14523 (add_current_inferior_and_thread): ... this. Adjust.
14524 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14525 found any thread, then select the remote's current thread as GDB's
14526 current thread too.
14528 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14530 * NEWS: Create a new section for the next release branch.
14531 Rename the section of the current branch, now that it has
14534 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14536 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14537 * version.in: Bump version to 7.7.50.DATE-cvs.
14539 2014-01-08 Yao Qi <yao@codesourcery.com>
14541 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14542 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14543 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14545 2014-01-08 Yao Qi <yao@codesourcery.com>
14547 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14548 return value of bfd_get_filename to symbol_file_add_from_bfd.
14550 2014-01-08 Pierre Muller <muller@sourceware.org>
14553 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14554 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14555 to prim_record_mininal_symbol_and_info.
14556 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14557 in call to prim_record_minimal_symbol_and_info.
14558 (read_pe_exported_syms): Set index field of section_data.
14560 2014-01-07 Andrew Pinski <apinski@cavium.com>
14562 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14563 * features/aarch64.c: Regenerate.
14565 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14567 * target.c (return_null): Define.
14568 (update_current_target): Use it instead of return_zero for
14569 functions that return a pointer.
14571 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14573 * source.c (add_path): Fix check for duplicated paths in the previously
14576 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14578 * ada-lang.c: Remove duplicated include statements.
14579 * alphabsd-nat.c: Ditto.
14580 * amd64-darwin-tdep.c: Ditto.
14581 * amd64fbsd-nat.c: Ditto.
14582 * auto-load.c: Ditto.
14584 * breakpoint.c: Ditto.
14585 * dbxread.c: Ditto.
14586 * fork-child.c: Ditto.
14587 * gdb_usleep.c: Ditto.
14588 * i386-darwin-tdep.c: Ditto.
14589 * i386fbsd-nat.c: Ditto.
14591 * inferior.c: Ditto.
14592 * jv-lang.c: Ditto.
14593 * linux-nat.c: Ditto.
14594 * linux-tdep.c: Ditto.
14595 * m68kbsd-nat.c: Ditto.
14596 * m68klinux-nat.c: Ditto.
14597 * microblaze-tdep.c: Ditto.
14598 * mips-linux-tdep.c: Ditto.
14599 * mn10300-tdep.c: Ditto.
14600 * nto-tdep.c: Ditto.
14601 * opencl-lang.c: Ditto.
14603 * printcmd.c: Ditto.
14604 * regcache.c: Ditto.
14605 * remote-m32r-sdi.c: Ditto.
14607 * symfile.c: Ditto.
14609 * tilegx-linux-nat.c: Ditto.
14610 * tilegx-tdep.c: Ditto.
14611 * tracepoint.c: Ditto.
14613 * vaxbsd-nat.c: Ditto.
14614 * windows-nat.c: Ditto.
14615 * xtensa-tdep.c: Ditto.
14617 2014-01-07 Yao Qi <yao@codesourcery.com>
14619 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14621 2014-01-07 Yao Qi <yao@codesourcery.com>
14622 Joel Brobecker <brobecker@adacore.com>
14624 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14625 (pdc_write_regs): Likewise.
14626 (fetch_regs_kernel_thread): Likewise.
14627 (store_regs_kernel_thread): Likewise.
14629 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14631 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14632 tagged type objects to their actual type.
14634 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14636 * ada-valprint.c (print_field_values): Add "language" parameter.
14637 Update calls to print_field_values and print_variant_part.
14638 Pass new parameter "language" in call to val_print instead
14639 of "current_language". Replace call to ada_val_print by call
14641 (print_variant_part): Add "language" parameter.
14642 (ada_val_print_struct_union): Update call to print_field_values.
14644 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14646 * ada-valprint.c (ui_memcpy): Delete.
14647 (ada_print_floating): Update documentation. Add empty line
14648 between between function documentation and implementation.
14649 Delete variable "buffer". Use ui_file_xstrdup in place of
14650 ui_file_put. Minor adjustments following this change.
14652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14654 * ada-valprint.c (ada_val_print_string): New function,
14655 extracted from ada_val_print_array.
14656 (ada_val_print_array): Replace extracted code by call
14657 to ada_val_print_string followed by a return. Move
14658 "else" branch to the function's top block.
14660 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14662 * ada-valprint.c (ada_val_print_array): Move implementation
14663 down. Rename parameter "offset" and "val" into "offset_aligned"
14664 and "original_value" respectively. Add parameter "offset".
14666 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14668 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14669 re-organizing the code. Change the "???" message printed
14670 when target type is a TYPE_CODE_UNDEF into
14671 "<ref to undefined type>".
14673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14675 * ada-valprint.c (print_record): Delete, implementation inlined...
14676 (ada_val_print_struct_union): ... here. Remove call to
14677 ada_check_typedef in inlined implementation.
14679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14681 * ada-valprint.c (ada_val_print_gnat_array): New function,
14682 extracted from ada_val_print_1;
14683 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14684 (ada_val_print_flt, ada_val_print_struct_union)
14685 (ada_val_print_ref): Likewise.
14686 (ada_val_print_1): Delete variables i and elttype.
14687 Replace extracted-out code by call to corresponding
14690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14692 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14696 * ada-valprint.c (ada_val_print_1): Replace calls to
14697 ada_val_print_1 by calls to val_print.
14699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14701 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14702 Update calls to self accordingly. Replace calls to c_val_print
14703 by calls to val_print.
14705 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14707 * ada-valprint.c (print_record): Delete declaration.
14708 (adjust_type_signedness, ada_val_print_1): Likewise.
14709 (ada_val_print): Move function implementation down.
14710 (print_variant_part, print_field_values, print_record):
14711 Move function implementation up.
14713 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14715 * python/py-type.c (typy_get_name): New function.
14716 (type_object_getset): Add entry for attribute "name".
14717 * NEWS: Add entry mentioning this new attribute.
14719 2014-01-07 Yao Qi <yao@codesourcery.com>
14721 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14724 2014-01-07 Yao Qi <yao@codesourcery.com>
14726 * gnu-nat.c (info_port_rights): Add qualifier const to
14729 2014-01-07 Yao Qi <yao@codesourcery.com>
14731 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14733 2014-01-07 Yao Qi <yao@codesourcery.com>
14735 * gnu-nat.c (make_inf) Update declaration.
14736 (make_inf): Make it static.
14737 (inf_set_traced): Likewise.
14738 (inf_port_to_thread, inf_task_died_status): Likewise.
14740 2014-01-07 Yao Qi <yao@codesourcery.com>
14742 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14744 2014-01-07 Yao Qi <yao@codesourcery.com>
14746 * gnu-nat.c (_initialize_gnu_nat): Declare.
14748 2014-01-07 Yao Qi <yao@codesourcery.com>
14750 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14752 (struct gdbarch_info) <byte_order>: Change type to
14754 <byte_order_for_code>: Likewise.
14755 * gdbarch.c, gdbarch.h: Regenerated.
14757 2014-01-06 Sasha Smundak <asmundak@google.com>
14759 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14761 2014-01-06 Tom Tromey <tromey@redhat.com>
14763 * doublest.c (convert_doublest_to_floatformat): Use const, not
14765 * somread.c (som_symtab_read): Likewise.
14767 2014-01-07 Hui Zhu <hui@codesourcery.com>
14769 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14770 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14771 (gdb_bfd_fopen): Ditto.
14772 (gdb_bfd_openr): Ditto.
14773 (gdb_bfd_openw): Ditto.
14774 (gdb_bfd_openr_iovec): Ditto.
14775 (gdb_bfd_fdopenr): Ditto.
14776 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14777 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14779 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14781 * symfile-mem.c (symbol_file_add_from_memory): Removed
14782 gdb_bfd_stash_filename.
14784 2014-01-03 Doug Evans <dje@google.com>
14786 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14789 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14791 Update year range in copyright notice of all files.
14793 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14795 * top.c (print_gdb_version): Set copyright year to 2014.
14797 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14799 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14801 For older changes see ChangeLog-2013.
14807 version-control: never