1 2014-11-07 Pedro Alves <palves@redhat.com>
3 * infrun.c (process_event_stop_test) <subroutine check>: Don't
4 check if we did a "nexti" inside a prologue.
5 * symtab.c (in_prologue): Delete function.
6 * symtab.h (in_prologue): Delete declaration.
8 2014-11-06 Doug Evans <xdje42@gmail.com>
10 * symtab.h (lookup_global_symbol): Improve function comment.
12 2014-11-06 Doug Evans <xdje42@gmail.com>
14 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
16 * symtab.h (lookup_global_symbol): Update decl.
17 (lookup_static_symbol): Move decl to better location.
19 2014-11-06 Doug Evans <xdje42@gmail.com>
21 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
23 2014-11-06 Doug Evans <xdje42@gmail.com>
25 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
27 (lookup_symbol_in_all_objfiles): Renamed from
28 lookup_symbol_aux_symtabs. All callers updated.
29 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
31 (lookup_symbol_in_objfile_symtabs): Renamed from
32 lookup_symbol_aux_objfile. All callers updated.
34 2014-11-06 Doug Evans <xdje42@gmail.com>
36 * symtab.c (lookup_symbol_in_block): Renamed from
37 lookup_symbol_aux_block. All callers updated.
39 2014-11-06 Doug Evans <xdje42@gmail.com>
41 * symtab.c (lookup_static_symbol): Renamed from
42 lookup_static_symbol_aux. All callers updated.
43 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
46 2014-11-06 Doug Evans <xdje42@gmail.com>
48 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
49 * block.c (block_lookup_symbol): Use it.
50 * cp-support.c (make_symbol_overload_list_block): Use it.
51 * symtab.c (iterate_over_symbols): Use it.
53 2014-11-06 Doug Evans <xdje42@gmail.com>
55 * symtab.c (lookup_block_symbol): Moved to ...
56 * block.c (block_lookup_symbol): ... here and renamed.
58 * block.h (block_lookup_symbol): Declare.
59 * symtab.h (lookup_block_symbol): Delete.
61 2014-11-06 Doug Evans <xdje42@gmail.com>
63 * ada-lang.c (ada_make_symbol_completion_list): Use
64 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
65 * symtab.c (lookup_objfile_from_block): Ditto.
67 2014-11-06 Doug Evans <xdje42@gmail.com>
69 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
72 2014-11-06 Doug Evans <xdje42@gmail.com>
74 * objfiles.c (get_objfile_arch): Constify.
75 * objfiles.h (get_objfile_arch): Update prototype.
76 * solib.c (solib_global_lookup): Fetch arch from objfile,
79 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
81 * nios2-tdep.c (wild_insn): Delete.
82 (profiler_insn, irqentry_insn): Delete.
83 (nios2_match_sequence): Delete.
84 (nios2_analyze_prologue): Update comments. Remove matching
85 of obsolete profiler_insn and irqentry_insn sequences.
87 2014-11-05 Alan Modra <amodra@gmail.com>
89 * charset.c (convert_between_encodings): Shrink obstack using
91 * minsyms.c (install_minimal_symbols): Likewise.
92 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
93 to char* before doing pointer arithmetic.
95 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
97 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
99 2014-11-04 Pedro Alves <palves@redhat.com>
101 * breakpoint.c (breakpoint_thread_match): Delete function.
102 * breakpoint.h (breakpoint_thread_match): Delete declaration.
104 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
107 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
108 the method args also under EVAL_SKIP when evaluating method
109 calls under EVAL_SKIP.
111 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
113 * dwarf2loc.c (read_pieced_value): Do big endian
114 processing only if gdb_regnum is not -1.
115 (write_pieced_value): Ditto.
117 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
119 * arm-linux-tdep.c (arm_linux_init_abi): Use
120 info.byte_order_for_code to choose endianity of breakpoint
121 instructions snippets.
123 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
125 * arm-tdep.c (extract_arm_insn): Use
126 gdbarch_byte_order_for_code to read arm instruction.
128 2014-11-02 Doug Evans <xdje42@gmail.com>
130 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
132 2014-11-02 Doug Evans <xdje42@gmail.com>
134 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
135 main_subfile before returning.
137 2014-10-31 Doug Evans <xdje42@gmail.com>
139 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
140 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
142 2014-10-31 Doug Evans <xdje42@gmail.com>
144 * valops.c (value_cast_pointers): Fix whitespace.
145 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
148 2014-10-30 Doug Evans <dje@google.com>
150 * NEWS: Mention ability add attributes to gdb.Objfile and
151 gdb.Progspace objects.
152 * python/py-objfile.c (objfile_object): New member dict.
153 (objfpy_dealloc): Py_XDECREF dict.
154 (objfpy_initialize): Initialize dict.
155 (objfile_getset): Add __dict__.
156 (objfile_object_type): Set tp_dictoffset member.
157 * python/py-progspace.c (progspace_object): New member dict.
158 (pspy_dealloc): Py_XDECREF dict.
159 (pspy_initialize): Initialize dict.
160 (pspace_getset): Add __dict__.
161 (pspace_object_type): Set tp_dictoffset member.
163 2014-10-30 Yao Qi <yao@codesourcery.com>
165 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
166 replace '\\' with '\\\\'.
168 2014-10-29 Joel Brobecker <brobecker@adacore.com>
172 2014-10-29 Pedro Alves <palves@redhat.com>
175 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
176 instead of assuming a thread with a stepping range is always
179 2014-10-29 Pedro Alves <palves@redhat.com>
182 * event-top.c (change_line_handler): Call
183 gdb_rl_callback_handler_remove instead of
184 rl_callback_handler_remove.
185 (callback_handler_installed): New global.
186 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
187 (gdb_rl_callback_handler_reinstall): New functions.
188 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
189 gdb_rl_callback_handler_install instead of
190 rl_callback_handler_remove and rl_callback_handler_install.
191 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
192 instead of rl_callback_handler_remove.
193 * event-top.h (gdb_rl_callback_handler_remove)
194 (gdb_rl_callback_handler_install)
195 (gdb_rl_callback_handler_reinstall): New declarations.
196 * infrun.c (reinstall_readline_callback_handler_cleanup): New
198 (fetch_inferior_event): Install it.
199 * top.c (gdb_readline_wrapper_line) Call
200 gdb_rl_callback_handler_remove instead of
201 rl_callback_handler_remove.
202 (gdb_readline_wrapper_cleanup): Don't call
203 rl_callback_handler_install.
205 2014-10-29 Pedro Alves <palves@redhat.com>
207 * event-top.c (command_line_handler): Clear the first byte of
208 linebuffer, when it is first allocated.
210 2014-10-29 Pedro Alves <palves@redhat.com>
212 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
215 2014-10-29 Pedro Alves <palves@redhat.com>
219 * tui/tui-interp.c (tui_is_toplevel): Delete global.
220 (tui_allowed_p): Delete function.
221 * tui/tui.c: Include "interps.h".
222 (tui_enable): Don't use tui_allowed_p. Error out here with
223 detailed error messages if the TUI is the top level interpreter,
224 or if output is not a terminal. Use newterm instead of initscr,
225 and error out if initializing the terminal fails. Also error out if
226 the terminal doesn't support cursor addressing.
227 * tui/tui.h (tui_allowed_p): Delete declaration.
229 2014-10-29 Joel Brobecker <brobecker@adacore.com>
231 * arm-tdep.c (arm_skip_stack_protector): Return early if
232 address loaded by first "ldr" instruction does not have
233 a corresponding minimal symbol. Update comment.
235 2014-10-29 Yao Qi <yao@codesourcery.com>
237 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
238 loaded address correctly of ldr instruction.
240 2014-10-28 Pedro Alves <palves@redhat.com>
243 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
245 * infrun.c (resume) <stepping breakpoint instruction>: Set the
246 thread's stepped_breakpoint field. Skip if reverse debugging.
248 (init_thread_stepping_state, handle_signal_stop): Clear the
249 thread's stepped_breakpoint field.
251 2014-10-27 Pedro Alves <palves@redhat.com>
253 * remote.c (remote_thread_alive): New, factored out from ...
254 (remote_thread_alive): ... this.
255 (remote_update_thread_list): Bail out before deleting threads if
256 the target returned an empty list, and, the current thread has a
259 2014-10-27 Pedro Alves <palves@redhat.com>
261 * infrun.c (handle_signal_stop): Also skip handlers when a random
262 signal arrives while handling a "stepi" or a "nexti". Set the
263 thread's 'step_after_step_resume_breakpoint' flag.
265 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
267 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
268 (arm_record_ld_st_imm_offset): Reimplement to cover all
269 load/store cases for ARM opcode 010.
270 (arm_record_ld_st_multiple): Reimplement to cover all
271 load/store cases for ARM opcode 100.
273 2014-10-26 Doug Evans <xdje42@gmail.com>
275 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
277 2014-10-26 Doug Evans <xdje42@gmail.com>
279 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
280 parameter "kind" to "block_index".
281 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
283 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
285 2014-10-26 Doug Evans <xdje42@gmail.com>
287 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
289 2014-10-26 Doug Evans <xdje42@gmail.com>
291 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
294 2014-10-26 Doug Evans <xdje42@gmail.com>
296 * parser-defs.h (block_found): Move decl from here ...
297 * symtab.h (block_found): ... to here.
299 2014-10-26 Doug Evans <xdje42@gmail.com>
301 * symtab.h (struct field_of_this_result): Fix typo in comment.
302 (lookup_symbol_in_language): Move function comment here.
303 (lookup_symbol): Improve function comment.
304 (basic_lookup_symbol_nonlocal): Ditto.
305 (lookup_symbol_static, lookup_symbol_global): Ditto.
306 (lookup_symbol_aux_block): Ditto.
307 (lookup_language_this): Add function comment.
308 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
310 (lookup_block_symbol): Improve function comment.
311 (lookup_struct): Fix capitalization in function comment.
312 (lookup_transparent_type): Add function comment.
313 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
314 Improve function comment.
315 (lookup_objfile_from_block): Add function comment.
316 * symtab.c (lookup_symbol_in_language): Update function comment.
317 (lookup_symbol, lookup_language_this): Ditto.
318 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
319 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
320 (basic_lookup_symbol_nonlocal): Ditto.
321 (lookup_symbol_static, lookup_symbol_global): Ditto.
322 (lookup_transparent_type, lookup_block_symbol): Ditto.
324 2014-10-25 Doug Evans <xdje42@gmail.com>
326 * symtab.c (types_info): Delete forward decl.
327 (functions_info, variables_info, sources_info): Ditto.
328 (_initialize_symtab): Rewrite forward decl to use
329 initialize_file_ftype.
331 2014-10-25 Doug Evans <xdje42@gmail.com>
333 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
335 2014-10-25 Doug Evans <xdje42@gmail.com>
337 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
338 of local var child_die.
340 2014-10-24 Don Breazeal <donb@codesourcery.com>
342 * infrun.c (follow_fork_inferior): Update fork message printing
343 to use target_terminal_ours_for_output instead of
344 target_terminal_ours, to use _() for all format strings, to print
345 "vfork" instead of "fork" for vforks, and to add a detach message.
346 (handle_vfork_child_exec_or_exit): Update message printing to use
347 target_terminal_ours_for_output instead of target_terminal_ours, to
348 use _() for all format strings, and to fix some formatting.
350 2014-10-24 Pedro Alves <palves@redhat.com>
352 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
353 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
354 * config/vax/vax.mh: Delete.
355 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
356 obsolete configurations section.
357 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
358 * vax-nat.c: Delete file.
360 2014-10-24 Pedro Alves <palves@redhat.com>
362 * NEWS (Removed targets): Add OS/arch column.
364 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
366 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
367 on the arg type of a constructor only if it is of reference type.
369 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
371 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
372 accessors and constants from nios2 opcodes update.
373 (nios2_get_next_pc): Likewise.
375 2014-10-19 Doug Evans <xdje42@gmail.com>
377 * gdbthread.h (set_running): Fix comment.
378 (set_executing, finish_thread_state): Fix comment.
380 2014-10-18 Doug Evans <xdje42@gmail.com>
382 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
384 2014-10-17 Doug Evans <dje@google.com>
386 * NEWS: Mention new event gdb.clear_objfiles.
387 * python/py-event.h (emit_clear_objfiles_event): Clear
388 * python/py-events.h (events_object): New member clear_objfiles.
389 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
391 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
392 emit clear_objfiles event.
393 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
395 (emit_clear_objfiles_event): New function.
396 (clear_objfiles): New event.
397 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
399 * python/python.c (_initialize_python): Call
400 gdbpy_initialize_clear_objfiles_event.
402 2014-10-17 Doug Evans <dje@google.com>
404 * NEWS: Mention new gdb.Objfile.progspace attribute.
405 * python/py-objfile.c (objfpy_get_progspace): New function.
406 (objfile_getset): New entry for "progspace".
408 2014-10-17 Pedro Alves <palves@redhat.com>
411 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
412 returns a copy of the input.
413 (run_command_1, continue_command, step_1, jump_command)
414 (signal_command, until_command, advance_command, finish_command)
415 (attach_command): Adjust and install a cleanup to free the
418 2014-10-17 Pedro Alves <palves@redhat.com>
421 * infcmd.c (continue_1): If continuing all threads in the
422 foreground, make sure the inferior's terminal settings are put in
425 2014-10-17 Pedro Alves <palves@redhat.com>
428 * annotate.c (annotate_breakpoints_invalid): Use
429 target_terminal_our_for_output instead of target_terminal_ours.
430 Give back the terminal to the target.
431 (annotate_frames_invalid): Likewise.
433 2014-10-17 Pedro Alves <palves@redhat.com>
435 * target.c (enum terminal_state): New enum.
436 (terminal_state): New global.
437 (target_terminal_init): New function.
438 (target_terminal_inferior): Skip if inferior already owns the
440 (target_terminal_ours, target_terminal_ours_for_output): New
442 * target.h (target_terminal_init): Convert to function prototype.
443 (target_terminal_ours_for_output): Convert to function prototype
445 (target_terminal_ours): Convert to function prototype and tweak
447 * windows-nat.c (do_initial_windows_stuff): Call
448 target_terminal_init instead of child_terminal_init_with_pgrp.
450 2014-10-17 Pedro Alves <palves@redhat.com>
452 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
453 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
454 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
456 * NEWS: Mention that support for alpha*-*-osf* has been removed.
457 * ada-lang.h [__alpha__ && __osf__]
458 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
459 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
460 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
462 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
464 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
465 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
466 * configure: Regenerate.
467 * configure.ac: Remove references to osf.
468 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
469 section. Remove all other references to osf.
470 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
471 Remove all other references to osf.
472 * dec-thread.c: Delete file.
473 * defs.h (GDB_OSABI_OSF1): Delete.
474 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
476 * osabi.c (gdb_osabi_names): Delete "OSF/1".
477 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
479 (unconditionally_kill_inferior)
480 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
481 * solib-osf.c: Delete file.
483 2014-10-17 Pedro Alves <palves@redhat.com>
485 * remote.c (clear_threads_listing_context): Move higher up, out of
486 the HAVE_LIBEXPAT guard.
488 2014-10-16 Tristan Gingold <gingold@adacore.com>
490 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
491 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
494 2014-10-15 Pedro Alves <palves@redhat.com>
496 * dec-thread.c (dec_thread_count_gdb_threads)
497 (dec_thread_add_gdb_thread): Delete.
498 (dec_thread_update_thread_list): Delete.
499 (dec_thread_find_new_threads): Rename to ...
500 (dec_thread_update_thread_list): ... this. Delete GDB-size
501 threads that are no longer found in dec_thread_list.
502 (resync_thread_list): Delete.
503 (dec_thread_wait): Call dec_thread_update_thread_list instead of
506 2014-10-15 Pedro Alves <palves@redhat.com>
508 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
509 * remote.c (remote_update_thread_list): Skip calling prune_threads
510 if any thread listing method is supported, and instead walk over
511 the set of remote threads listed, deleting those that are not
512 found in GDB's thread list.
514 2014-10-15 Pedro Alves <palves@redhat.com>
516 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
517 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
518 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
519 (bsd_uthread_target): Adjust.
520 * corelow.c (core_open): Adjust.
521 * dec-thread.c (dec_thread_find_new_threads): Update comment.
522 (dec_thread_update_thread_list): New function.
523 (init_dec_thread_ops): Adjust.
524 * gdbthread.h (prune_threads): New declaration.
525 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
526 (thread_db_update_thread_list): ... this. Call prune_threads.
527 (init_thread_db_ops): Adjust.
528 * nto-procfs.c (procfs_find_new_threads): Rename to ...
529 (procfs_update_thread_list): ... this. Call prune_threads.
530 (procfs_attach, procfs_create_inferior, init_procfs_targets):
532 * obsd-nat.c (obsd_find_new_threads): Rename to ...
533 (obsd_update_thread_list): ... this. Call prune_threads.
534 (obsd_add_target): Adjust.
535 * procfs.c (procfs_target): Adjust.
536 (procfs_notice_thread): Update comment.
537 (procfs_find_new_threads): Rename to ...
538 (procfs_update_thread_list): ... this. Call prune_threads.
539 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
541 (ravenscar_wait): Adjust.
542 (ravenscar_find_new_threads): Rename to ...
543 (ravenscar_update_thread_list): ... this. Call prune_threads.
544 (init_ravenscar_thread_ops): Adjust.
545 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
546 (record_btrace_update_thread_list): ... this. Adjust comment.
547 (init_record_btrace_ops): Adjust.
548 * remote.c (remote_threads_info): Rename to ...
549 (remote_update_thread_list): ... this. Call prune_threads.
550 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
552 * sol-thread.c (check_for_thread_db): Adjust.
553 (sol_find_new_threads_callback): Rename to ...
554 (sol_update_thread_list_callback): ... this.
555 (sol_find_new_threads): Rename to ...
556 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
557 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
558 * target-delegates.c: Regenerate.
559 * target.c (target_find_new_threads): Rename to ...
560 (target_update_thread_list): ... this.
561 * target.h (struct target_ops): Rename to_find_new_threads field
562 to to_update_thread_list.
563 (target_find_new_threads): Rename to ...
564 (target_update_thread_list): ... this.
565 * thread.c (prune_threads): Make extern.
566 (update_thread_list): Adjust.
568 2014-10-15 Pedro Alves <palves@redhat.com>
570 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
571 Add describing comment. Return -1 if the qL packet is not
573 (struct thread_item, thread_item_t): Move higher up in
574 the file. Add comments.
575 (struct threads_parsing_context): Move higher up in
576 the file, add comments, and remote to ...
577 (struct threads_listing_context): ... this.
578 (remote_newthread_step): Don't add the thread to GDB's thread
579 database here. Instead push it to the thread_listing_context
581 (remote_find_new_threads): Rename to ...
582 (remote_get_threads_with_ql): ... this. Add target_ops and
583 targets_listing_context parameters. Pass down context.
584 (start_thread): Adjust.
585 (clear_threads_parsing_context): Rename to ...
586 (clear_threads_listing_context): ... this.
587 (remote_get_threads_with_qxfer): New, with parts salvaged from old
589 (remote_get_threads_with_qthreadinfo): Ditto.
590 (remote_threads_info): Reimplement.
592 2014-10-15 Pedro Alves <palves@redhat.com>
594 * infrun.c (resume): Don't force displaced-stepping for all
595 single-steps on software single-stepping archs.
597 2014-10-15 Pedro Alves <palves@redhat.com>
599 * breakpoint.c (single_step_breakpoints): Delete global.
600 (insert_single_step_breakpoint): Adjust to store the breakpoint
601 pointer in the current thread.
602 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
603 (cancel_single_step_breakpoints): Delete functions.
604 (breakpoint_has_location_inserted_here): Make extern.
605 (single_step_breakpoint_inserted_here_p): Adjust to walk the
607 * breakpoint.h (breakpoint_has_location_inserted_here): New
609 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
610 (cancel_single_step_breakpoints): Remove declarations.
611 * gdbthread.h (struct thread_control_state)
612 <single_step_breakpoints>: New field.
613 (delete_single_step_breakpoints)
614 (thread_has_single_step_breakpoints_set)
615 (thread_has_single_step_breakpoint_here): New declarations.
616 * infrun.c (follow_exec): Also clear the single-step breakpoints.
617 (singlestep_breakpoints_inserted_p, singlestep_ptid)
618 (singlestep_pc): Delete globals.
619 (infrun_thread_ptid_changed): Remove references to removed
621 (resume_cleanups): Delete the current thread's single-step
623 (maybe_software_singlestep): Remove references to removed globals.
624 (resume): Adjust to use thread_has_single_step_breakpoints_set and
625 delete_single_step_breakpoints.
626 (init_wait_for_inferior): Remove references to removed globals.
627 (delete_thread_infrun_breakpoints): Delete the thread's
628 single-step breakpoints too.
629 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
630 single-step breakpoints here.
631 (delete_stopped_threads_single_step_breakpoints): New function.
632 (adjust_pc_after_break): Adjust to use
633 thread_has_single_step_breakpoints_set.
634 (handle_inferior_event): Remove references to removed globals.
635 Use delete_stopped_threads_single_step_breakpoints.
636 (handle_signal_stop): Adjust to per-thread single-step
637 breakpoints. Swap test order to do cheaper tests first.
638 (switch_back_to_stepped_thread): Extend debug output. Remove
639 references to removed globals.
640 * record-full.c (record_full_wait_1): Adjust to per-thread
641 single-step breakpoints.
642 * thread.c (delete_single_step_breakpoints)
643 (thread_has_single_step_breakpoints_set)
644 (thread_has_single_step_breakpoint_here): New functions.
645 (clear_thread_inferior_resources): Also delete the thread's
646 single-step breakpoints.
648 2014-10-15 Pedro Alves <palves@redhat.com>
650 * thread.c (delete_thread_breakpoint): New function.
651 (delete_step_resume_breakpoint)
652 (delete_exception_resume_breakpoint): Use it.
653 (delete_at_next_stop): New function.
654 (clear_thread_inferior_resources): Use delete_at_next_stop.
656 2014-10-15 Pedro Alves <palves@redhat.com>
658 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
659 (breakpoint_inserted_here_p): ... here. Remove special case for
660 software single-step breakpoints.
661 (find_non_raw_software_breakpoint_inserted_here): Inline ...
662 (software_breakpoint_inserted_here_p): ... here. Remove special
663 case for software single-step breakpoints.
664 (bp_target_info_copy_insertion_state)
665 (deprecated_insert_raw_breakpoint)
666 (deprecated_remove_raw_breakpoint): Delete functions.
667 * breakpoint.h (deprecated_insert_raw_breakpoint)
668 (deprecated_remove_raw_breakpoint): Remove declarations.
670 2014-10-15 Pedro Alves <palves@redhat.com>
673 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
674 Delete array globals.
675 (single_step_breakpoints): New global.
676 (breakpoint_xfer_memory): Remove special handling for single-step
678 (update_breakpoints_after_exec): Delete bp_single_step
680 (detach_breakpoints): Remove special handling for single-step
682 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
683 (bpstat_stop_status): Add comment.
684 (bpstat_what, bptype_string, print_one_breakpoint_location)
685 (adjust_breakpoint_address, init_bp_location): Handle
687 (new_single_step_breakpoint): New function.
688 (set_momentary_breakpoint, bkpt_remove_location): Remove special
689 handling for single-step breakpoints.
690 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
691 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
693 (detach_single_step_breakpoints, find_single_step_breakpoint):
695 (breakpoint_has_location_inserted_here): New function.
696 (single_step_breakpoint_inserted_here_p): Rewrite.
697 * breakpoint.h: Remove FIXME.
698 (enum bptype) <bp_single_step>: New enum value.
699 (insert_single_step_breakpoint): Update comment.
700 * infrun.c (resume_cleanups)
701 (delete_step_thread_step_resume_breakpoint): Remove single-step
703 (fetch_inferior_event): Install a cleanup that removes infrun
705 (switch_back_to_stepped_thread) <expect thread advanced also>:
706 Clear step-over info.
708 2014-10-15 Pedro Alves <palves@redhat.com>
710 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
711 (delete_thread_infrun_breakpoints): New function, with parts
712 salvaged from delete_step_resume_breakpoint_callback.
713 (delete_step_thread_step_resume_breakpoint): Delete.
714 (for_each_just_stopped_thread_callback_func): New typedef.
715 (for_each_just_stopped_thread): New function.
716 (delete_just_stopped_threads_infrun_breakpoints): New function.
717 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
718 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
720 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
722 2014-10-15 Pedro Alves <palves@redhat.com>
724 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
725 trying to step past a non-steppable watchpoint.
726 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
728 * infrun.c (struct step_over_info): Add new field
729 'nonsteppable_watchpoint_p' and adjust comments.
730 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
732 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
733 (stepping_past_nonsteppable_watchpoint): New function.
734 (step_over_info_valid_p): Also return true if stepping past a
735 nonsteppable watchpoint.
736 (proceed): Adjust call to set_step_over_info. Remove reference to
738 (init_wait_for_inferior): Remove reference to init_infwait_state.
739 (waiton_ptid): Delete global.
740 (struct execution_control_state)
741 <stepped_after_stopped_by_watchpoint>: Delete field.
742 (wait_for_inferior, fetch_inferior_event): Always pass
743 minus_one_ptid to target_wait.
744 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
746 (init_infwait_state): Delete function.
747 (handle_inferior_event): Remove infwait_state handling.
748 (handle_signal_stop) <watchpoints handling>: Adjust after
749 stepped_after_stopped_by_watchpoint removal. Don't remove
750 breakpoints here nor set infwait_state. Set the thread's
751 stepping_over_watchpoint flag, and call keep_going instead.
752 (keep_going): Handle stepping_over_watchpoint. Adjust
753 set_step_over_info calls.
754 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
757 2014-10-15 Pedro Alves <palves@redhat.com>
759 * infrun.c (step_over_info_valid_p): New function.
760 (resume): Use step_over_info_valid_p instead of checking the
761 threads's trap_expected flag.
763 2014-10-15 Doug Evans <dje@google.com>
764 Walfred Tedeschi <walfred.tedeschi@intel.com>
767 * python/lib/gdb/__init__.py (packages): Add "printer".
768 * python/lib/gdb/command/bound_registers.py: Moved to ...
769 * python/lib/gdb/printer/bound_registers.py: ... here.
770 Add printer to global set of builtin printers. Rename printer from
771 "bound" to "mpx_bound128".
772 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
773 registered as global "builtin" printer.
774 (add_builtin_pretty_printer): New function.
775 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
776 gdb/printer/__init__.py.
778 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
780 * Makefile.in (SFILES): Remove d-support.c.
781 (COMMON_OBS): Remove d-support.o.
782 * d-lang.h (d_parse_symbol): Remove declaration.
783 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
784 * d-support.c: Remove file.
786 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
788 * gdb/infrun.c (process_event_stop_test): Apply
789 gdbarch_addr_bits_remove to longjmp resume address.
791 2014-10-15 Pedro Alves <palves@redhat.com>
793 * regformats/microblaze.dat: Delete file.
795 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
797 * features/Makefile (microblaze-expedite): Replace pc with rpc.
798 * regformats/microblaze-with-stack-protect.dat: Regenerate.
800 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
802 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
805 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
809 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
812 2014-10-14 Joel Brobecker <brobecker@adacore.com>
814 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
815 of the case where the second operand is a pointer.
816 <BINOP_SUB>: Likewise.
818 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
820 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
821 only if it is not NULL.
822 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
823 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
824 (struct probe_ops) <clear_semaphore>: Likewise.
825 * tracepoint.c (start_tracing): Call set_semaphore only if it is
827 (stop_tracing): Likewise, for clear_semaphore.
829 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
831 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
832 using language_c, instead of current_language.
834 2014-10-13 Doug Evans <dje@google.com>
836 * python/py-objfile.c (objfpy_initialize): New function.
837 (objfpy_new, objfile_to_objfile_object): Call it.
838 * python/py-progspace.c (pspy_initialize): New function.
839 (pspy_new, pspace_to_pspace_object): Call it.
841 2014-10-13 Miroslav Franc <mfranc@redhat.com>
842 Jan Kratochvil <jan.kratochvil@redhat.com>
844 Fix "save breakpoints" for "catch" command.
845 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
848 2014-10-12 Miroslav Franc <mfranc@redhat.com>
850 Fix "save breakpoints" for "disable $bpnum" command.
851 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
853 2014-10-10 Pedro Alves <palves@redhat.com>
855 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
856 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
857 (HFILES_NO_SRCDIR): Remove solib-irix.h.
858 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
860 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
861 * configure.ac: Remove references to IRIX.
862 * configure.host: Add *-*-irix* to the obsolete hosts section.
863 Remove all other references to irix.
864 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
867 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
869 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
870 isn't valid, release the tdesc arch data and return NULL.
872 2014-10-10 Pedro Alves <palves@redhat.com>
874 * linux-tdep.c: Include observer.h.
875 (linux_inferior_data): New global.
876 (struct linux_info): New structure.
877 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
878 (get_linux_inferior_data): New functions.
879 (linux_vsyscall_range): Rename to ...
880 (linux_vsyscall_range_raw): ... this.
881 (linux_vsyscall_range): New function; handles caching.
882 (_initialize_linux_tdep): Register linux_inferior_data. Install
883 inferior_exit and inferior_appeared observers.
885 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
886 Pedro Alves <palves@redhat.com>
889 * solib-svr4.c (svr4_read_so_list): Rename to ...
890 (svr4_current_sos_1): ... this and change the function comment.
891 (svr4_current_sos): New function.
893 2014-10-10 Pedro Alves <palves@redhat.com>
895 * arch-utils.c (default_vsyscall_range): New function.
896 * arch-utils.h (default_vsyscall_range): New declaration.
897 * gdbarch.sh (vsyscall_range): New hook.
898 * gdbarch.h, gdbarch.c: Regenerate.
899 * linux-tdep.c (linux_vsyscall_range): New function.
900 (linux_init_abi): Install linux_vsyscall_range as
901 vsyscall_range gdbarch hook.
902 * memrange.c (address_in_mem_range): New function.
903 * memrange.h (address_in_mem_range): New declaration.
904 * symfile-mem.c (find_vdso_size): Delete function.
905 (add_vsyscall_page): Use gdbarch_vsyscall_range.
907 2014-10-10 Pedro Alves <palves@redhat.com>
909 * infrun.c (normal_stop): Fix typo in comment.
911 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
914 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
915 typo when using logical AND to determine instruction type.
917 2014-10-09 Yao Qi <yao@codesourcery.com>
919 * infrun.c (handle_signal_stop): Remove local variable
922 2014-10-08 Stan Shebs <stan@codesourcery.com>
924 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
926 2014-10-08 Gary Benson <gbenson@redhat.com>
928 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
930 2014-10-08 Gary Benson <gbenson@redhat.com>
932 * common/common-defs.h: Include common-exceptions.h.
933 * exceptions.h: Do not include common-exceptions.h.
935 2014-10-08 Gary Benson <gbenson@redhat.com>
937 * common/common-defs.h: Include cleanups.h.
938 * common/common-exceptions.c: Do not include cleanups.h.
941 2014-10-08 Gary Benson <gbenson@redhat.com>
943 * ada-lang.c: Do not include exceptions.h.
944 * ada-valprint.c: Likewise.
945 * amd64-tdep.c: Likewise.
946 * auto-load.c: Likewise.
948 * break-catch-throw.c: Likewise.
949 * breakpoint.c: Likewise.
950 * btrace.c: Likewise.
951 * c-lang.c: Likewise.
952 * cli/cli-cmds.c: Likewise.
953 * cli/cli-interp.c: Likewise.
954 * cli/cli-script.c: Likewise.
955 * completer.c: Likewise.
956 * corefile.c: Likewise.
957 * corelow.c: Likewise.
958 * cp-abi.c: Likewise.
959 * cp-support.c: Likewise.
960 * cp-valprint.c: Likewise.
961 * darwin-nat.c: Likewise.
962 * dwarf2-frame-tailcall.c: Likewise.
963 * dwarf2-frame.c: Likewise.
964 * dwarf2loc.c: Likewise.
965 * dwarf2read.c: Likewise.
967 * event-loop.c: Likewise.
968 * event-top.c: Likewise.
969 * f-valprint.c: Likewise.
970 * frame-unwind.c: Likewise.
972 * gdbtypes.c: Likewise.
973 * gnu-v2-abi.c: Likewise.
974 * gnu-v3-abi.c: Likewise.
975 * guile/scm-auto-load.c: Likewise.
976 * guile/scm-breakpoint.c: Likewise.
977 * guile/scm-cmd.c: Likewise.
978 * guile/scm-frame.c: Likewise.
979 * guile/scm-lazy-string.c: Likewise.
980 * guile/scm-param.c: Likewise.
981 * guile/scm-symbol.c: Likewise.
982 * guile/scm-type.c: Likewise.
983 * hppa-hpux-tdep.c: Likewise.
984 * i386-tdep.c: Likewise.
985 * inf-loop.c: Likewise.
986 * infcall.c: Likewise.
987 * infcmd.c: Likewise.
988 * infrun.c: Likewise.
989 * interps.c: Likewise.
990 * interps.h: Likewise.
992 * linespec.c: Likewise.
993 * linux-nat.c: Likewise.
994 * linux-thread-db.c: Likewise.
995 * m32r-rom.c: Likewise.
997 * memory-map.c: Likewise.
998 * mi/mi-cmd-break.c: Likewise.
999 * mi/mi-cmd-stack.c: Likewise.
1000 * mi/mi-interp.c: Likewise.
1001 * mi/mi-main.c: Likewise.
1002 * monitor.c: Likewise.
1003 * nto-procfs.c: Likewise.
1004 * objc-lang.c: Likewise.
1005 * p-valprint.c: Likewise.
1006 * parse.c: Likewise.
1007 * ppc-linux-tdep.c: Likewise.
1008 * printcmd.c: Likewise.
1009 * probe.c: Likewise.
1010 * python/py-auto-load.c: Likewise.
1011 * python/py-breakpoint.c: Likewise.
1012 * python/py-cmd.c: Likewise.
1013 * python/py-finishbreakpoint.c: Likewise.
1014 * python/py-frame.c: Likewise.
1015 * python/py-framefilter.c: Likewise.
1016 * python/py-function.c: Likewise.
1017 * python/py-gdb-readline.c: Likewise.
1018 * python/py-inferior.c: Likewise.
1019 * python/py-infthread.c: Likewise.
1020 * python/py-lazy-string.c: Likewise.
1021 * python/py-linetable.c: Likewise.
1022 * python/py-param.c: Likewise.
1023 * python/py-prettyprint.c: Likewise.
1024 * python/py-symbol.c: Likewise.
1025 * python/py-type.c: Likewise.
1026 * python/py-value.c: Likewise.
1027 * python/python-internal.h: Likewise.
1028 * python/python.c: Likewise.
1029 * record-btrace.c: Likewise.
1030 * record-full.c: Likewise.
1031 * regcache.c: Likewise.
1032 * remote-fileio.c: Likewise.
1033 * remote-mips.c: Likewise.
1034 * remote.c: Likewise.
1035 * rs6000-aix-tdep.c: Likewise.
1036 * rs6000-nat.c: Likewise.
1038 * solib-darwin.c: Likewise.
1039 * solib-dsbt.c: Likewise.
1040 * solib-frv.c: Likewise.
1041 * solib-ia64-hpux.c: Likewise.
1042 * solib-spu.c: Likewise.
1043 * solib-svr4.c: Likewise.
1044 * solib.c: Likewise.
1045 * spu-tdep.c: Likewise.
1046 * stack.c: Likewise.
1047 * stap-probe.c: Likewise.
1048 * symfile-mem.c: Likewise.
1049 * symmisc.c: Likewise.
1050 * target.c: Likewise.
1051 * thread.c: Likewise.
1053 * tracepoint.c: Likewise.
1054 * tui/tui-interp.c: Likewise.
1055 * typeprint.c: Likewise.
1056 * utils.c: Likewise.
1057 * valarith.c: Likewise.
1058 * valops.c: Likewise.
1059 * valprint.c: Likewise.
1060 * value.c: Likewise.
1061 * varobj.c: Likewise.
1062 * windows-nat.c: Likewise.
1063 * xml-support.c: Likewise.
1065 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1067 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1069 (extended_mips16_next_pc): Update accordingly.
1071 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1073 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1075 (micromips_instruction_is_compact_branch): Likewise.
1076 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1077 or a compact jump, reaching a jump delay slot, or seeing a
1078 second non-prologue instruction.
1079 (micromips_scan_prologue): Also terminate scanning upon seeing a
1080 compact branch or jump, or reaching a branch or jump delay slot.
1081 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1082 or jump delay slot, or seeing a second non-prologue instruction.
1083 (mips32_instruction_has_delay_slot): Retain instruction
1084 examination code only, update arguments accordingly and move
1085 instruction fetch pieces to...
1086 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1087 (micromips_instruction_has_delay_slot): Likewise and to...
1088 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1089 (mips16_instruction_has_delay_slot): Likewise and to...
1090 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1091 (mips_single_step_through_delay): Update accordingly.
1092 (mips_adjust_breakpoint_address): Likewise.
1094 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1096 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1097 !mustbe32 also return 1 for 32-bit instructions.
1098 (mips16_instruction_has_delay_slot): Likewise. Add an
1099 explanatory comment.
1101 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1103 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1106 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1108 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1110 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1111 for the breakpoint's address. Don't preinitialize `placed_size'.
1112 (insert_bp_location): Set `reqstd_address' rather than
1114 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1115 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1117 (bkpt_remove_location): Likewise.
1118 (deprecated_insert_raw_breakpoint): Likewise.
1119 (deprecated_remove_raw_breakpoint): Likewise.
1120 (find_single_step_breakpoint): Likewise.
1121 * mem-break.c (default_memory_insert_breakpoint): Use
1122 `reqstd_address' for the breakpoint's address. Don't set
1123 `placed_address' or `placed_size' if breakpoint contents couldn't
1124 have been determined.
1125 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1126 the breakpoint's address.
1127 (remote_insert_hw_breakpoint): Likewise. Don't set
1128 `placed_address' or `placed_size' if breakpoint couldn't have been
1130 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1131 `reqstd_address' for the breakpoint's address.
1132 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1133 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1134 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1135 * microblaze-linux-tdep.c
1136 (microblaze_linux_memory_remove_breakpoint): Likewise.
1137 * monitor.c (monitor_insert_breakpoint): Likewise.
1138 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1139 (procfs_insert_hw_breakpoint): Likewise.
1140 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1141 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1142 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1143 * remote-mips.c (mips_insert_breakpoint): Likewise.
1144 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1146 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1148 * valops.c (value_assign): Check for bit field assignments
1149 before calling architecture-specific register value
1150 conversion functions.
1152 2014-10-03 Pierre Muller <muller@sourceware.org>
1154 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1156 2014-10-02 Pedro Alves <palves@redhat.com>
1158 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1159 threads_are_executing.
1160 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1162 * gdbthread.h (threads_are_executing): Declare.
1163 (handle_signal_stop) <random signals>: Don't print about the
1164 signal here if stopping.
1165 (end_stepping_range): Don't notify observers here.
1166 (normal_stop): Update the thread list. If stopped by a random
1167 signal or a stepping range ended, notify observers.
1168 * thread.c (threads_executing): New global.
1169 (init_thread_list): Clear 'threads_executing'.
1170 (set_executing): Set or clear 'threads_executing'.
1171 (threads_are_executing): New function.
1172 (update_threads_executing): New function.
1173 (update_thread_list): Use it.
1175 2014-10-02 Pedro Alves <palves@redhat.com>
1177 PR breakpoints/17431
1178 * breakpoint.c (update_breakpoints_after_exec): Don't create
1179 overlay, longjmp, std terminate nor exception breakpoints here.
1181 2014-10-02 Pedro Alves <palves@redhat.com>
1183 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1185 * inferior.c (find_inferior_for_program_space): Give preference to
1186 the current inferior.
1187 * inferior.h (find_inferior_for_program_space): Update comment.
1188 * progspace.c (switch_to_program_space_and_thread): Prefer the
1189 current inferior if it's bound to the program space requested. If
1190 the inferior found doesn't have a PID yet, don't bother looking up
1192 * progspace.h (switch_to_program_space_and_thread): Adjust
1194 * thread.c (any_thread_of_process, any_live_thread_of_process):
1195 Give preference to the current thread.
1197 2014-10-01 Pedro Alves <palves@redhat.com>
1199 * breakpoint.c (insert_bp_location): Error out if inserting a
1200 software breakpoint at a read-only address.
1201 * target.c (memory_xfer_check_region): New function, factored out
1203 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1205 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1206 against the memory region attributes.
1208 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1210 * NEWS: Announce new exit-code field in -list-thread-groups
1212 * inferior.c (exit_inferior_1): Don't clear exit code.
1213 (inferior_appeared): Clear exit code.
1214 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1217 2014-10-01 Pedro Alves <palves@redhat.com>
1219 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1220 GENERATED" along with emacs/vi read-only markers.
1221 * regformats/aarch64.dat: Regenerate.
1222 * regformats/arm-with-iwmmxt.dat: Regenerate.
1223 * regformats/arm-with-neon.dat: Regenerate.
1224 * regformats/arm-with-vfpv2.dat: Regenerate.
1225 * regformats/arm-with-vfpv3.dat: Regenerate.
1226 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1227 * regformats/i386/amd64-avx.dat: Regenerate.
1228 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1229 * regformats/i386/amd64-avx512.dat: Regenerate.
1230 * regformats/i386/amd64-linux.dat: Regenerate.
1231 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1232 * regformats/i386/amd64-mpx.dat: Regenerate.
1233 * regformats/i386/amd64.dat: Regenerate.
1234 * regformats/i386/i386-avx-linux.dat: Regenerate.
1235 * regformats/i386/i386-avx.dat: Regenerate.
1236 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1237 * regformats/i386/i386-avx512.dat: Regenerate.
1238 * regformats/i386/i386-linux.dat: Regenerate.
1239 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1240 * regformats/i386/i386-mmx.dat: Regenerate.
1241 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1242 * regformats/i386/i386-mpx.dat: Regenerate.
1243 * regformats/i386/i386.dat: Regenerate.
1244 * regformats/i386/x32-avx-linux.dat: Regenerate.
1245 * regformats/i386/x32-avx.dat: Regenerate.
1246 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1247 * regformats/i386/x32-avx512.dat: Regenerate.
1248 * regformats/i386/x32-linux.dat: Regenerate.
1249 * regformats/i386/x32.dat: Regenerate.
1250 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1251 * regformats/mips-dsp-linux.dat: Regenerate.
1252 * regformats/mips-linux.dat: Regenerate.
1253 * regformats/mips64-dsp-linux.dat: Regenerate.
1254 * regformats/mips64-linux.dat: Regenerate.
1255 * regformats/nios2-linux.dat: Regenerate.
1256 * regformats/rs6000/powerpc-32.dat: Regenerate.
1257 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1258 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1259 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1260 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1261 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1262 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1263 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1264 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1265 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1266 * regformats/s390-linux32.dat: Regenerate.
1267 * regformats/s390-linux32v1.dat: Regenerate.
1268 * regformats/s390-linux32v2.dat: Regenerate.
1269 * regformats/s390-linux64.dat: Regenerate.
1270 * regformats/s390-linux64v1.dat: Regenerate.
1271 * regformats/s390-linux64v2.dat: Regenerate.
1272 * regformats/s390-te-linux64.dat: Regenerate.
1273 * regformats/s390x-linux64.dat: Regenerate.
1274 * regformats/s390x-linux64v1.dat: Regenerate.
1275 * regformats/s390x-linux64v2.dat: Regenerate.
1276 * regformats/s390x-te-linux64.dat: Regenerate.
1277 * regformats/tic6x-c62x-linux.dat: Regenerate.
1278 * regformats/tic6x-c62x.dat: Regenerate.
1279 * regformats/tic6x-c64x-linux.dat: Regenerate.
1280 * regformats/tic6x-c64x.dat: Regenerate.
1281 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1282 * regformats/tic6x-c64xp.dat: Regenerate.
1284 2014-10-01 Pedro Alves <palves@redhat.com>
1286 * features/Makefile: Update comments.
1287 (XMLTOC): List all xml files we build C files from.
1288 (clean-cfiles): New rule.
1290 2014-10-01 Pedro Alves <palves@redhat.com>
1292 * features/i386/amd64-avx512-linux.c: Regenerate.
1293 * features/i386/amd64-avx512.c: Regenerate.
1294 * features/i386/x32-avx512-linux.c: Regenerate.
1295 * features/i386/x32-avx512.c: Regenerate.
1297 2014-10-01 Pedro Alves <palves@redhat.com>
1299 * features/Makefile (WHICH): Remove arm-with-m,
1300 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1302 2014-10-01 Pedro Alves <palves@redhat.com>
1304 * features/Makefile (clean): New rule.
1306 2014-10-01 Pedro Alves <palves@redhat.com>
1308 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1309 (zmm14h): Add missing end quotes.
1311 2014-10-01 Pedro Alves <palves@redhat.com>
1313 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1314 * features/aarch64.c: Regenerate.
1316 2014-09-30 Don Breazeal <donb@codesourcery.com>
1318 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1319 code so as to work with follow_fork_inferior.
1320 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1321 (inf_ttrace_create_inferior): Remove reference to
1322 inf_ttrace_vfork_ppid.
1323 (inf_ttrace_attach): Ditto.
1324 (inf_ttrace_detach): Ditto.
1325 (inf_ttrace_kill): Use current_inferior instead of
1326 inf_ttrace_vfork_ppid.
1327 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1328 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1329 inferior away from the parent.
1330 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1332 (follow_fork_inferior): New function.
1333 (follow_inferior_reset_breakpoints): Make function static.
1334 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1335 * linux-nat.c (linux_child_follow_fork): Move target-independent
1336 code to infrun.c:follow_fork_inferior.
1338 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1341 * gdbarch.c: Regenerate.
1342 * gdbarch.h: Likewise.
1343 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1344 gdbarch method 'regset_from_core_section'.
1345 (get_core_register_section): Remove handling for the case that
1346 regset == NULL and regset_from_core_section is defined.
1347 (get_core_registers): Drop check for deleted method.
1348 * procfs.c (procfs_do_thread_registers): Adjust comment.
1350 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1352 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1353 (linux_nat_make_corefile_notes): Remove.
1354 (linux_target_install_ops): Do not set target method
1355 'make_corefile_notes'.
1356 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1358 (linux_corefile_thread_callback): Instead of args->collect, call
1359 linux_collect_thread_registers.
1360 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1361 NULL unless there is a regset iterator.
1362 (linux_make_corefile_notes_1): Remove.
1363 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1364 by linux_make_corefile_notes.
1365 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1367 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1369 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1370 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1372 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1374 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1376 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1377 (xtensa_iterate_over_regset_sections): New.
1378 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1382 * vax-tdep.c (vax_regset_from_core_section): Remove.
1383 (vax_iterate_over_regset_sections): New.
1384 (vax_gdbarch_init): Adjust gdbarch initialization.
1386 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1389 (tilegx_regset_from_core_section): Remove.
1390 (tilegx_iterate_over_regset_sections): New.
1391 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1393 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1395 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1396 (sparc_iterate_over_regset_sections): New.
1397 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1398 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1400 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1401 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1402 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1403 target method 'make_corefile_notes'.
1405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1407 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1408 'sizeof_gregset' and 'sizeof_fpregset'.
1409 * sh-tdep.c (sh_regset_from_core_section): Remove.
1410 (sh_iterate_over_regset_sections): New.
1411 (sh_gdbarch_init): Adjust gdbarch initialization.
1412 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1414 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1417 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1419 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1420 (score7_linux_iterate_over_regset_sections): New.
1421 (score_gdbarch_init): Adjust gdbarch initialization.
1423 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1427 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1428 method 'make_corefile_notes'.
1429 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1430 (ppcfbsd_regset_from_core_section): Remove.
1431 (ppcfbsd_iterate_over_regset_sections): New.
1432 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1434 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1435 (ppcnbsd_iterate_over_regset_sections): New.
1436 (ppcnbsd_init_abi): Adjust.
1437 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1438 (ppcobsd_iterate_over_regset_sections): New.
1439 (ppcobsd_init_abi): Adjust.
1440 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1441 (rs6000_aix_iterate_over_regset_sections): New.
1442 (rs6000_aix_init_osabi): Adjust.
1444 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1446 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1447 (nios2_regset_from_core_section): Remove.
1448 (nios2_iterate_over_regset_sections): New.
1449 (nios2_linux_init_abi): Adjust gdbarch initialization.
1451 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1454 (am33_iterate_over_regset_sections): New.
1455 (am33_linux_init_osabi): Adjust gdbarch initialization.
1457 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1459 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1460 (mips_linux_iterate_over_regset_sections): New.
1461 (mips_linux_init_abi): Adjust gdbarch initialization.
1462 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1463 (mips64obsd_iterate_over_regset_sections): New.
1464 (mips64obsd_init_abi): Adjust.
1465 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1466 (mipsnbsd_iterate_over_regset_sections): New.
1467 (mipsnbsd_init_abi): Adjust.
1469 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1471 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1472 (m88k_iterate_over_regset_sections): New.
1473 (m88k_gdbarch_init): Adjust gdbarch initialization.
1475 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1478 (ia64_linux_iterate_over_regset_sections): New.
1479 (ia64_linux_init_abi): Adjust gdbarch initialization.
1481 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1483 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1484 (m68kbsd_iterate_over_regset_sections): New.
1485 (m68kbsd_init_abi): Adjust gdbarch initialization.
1486 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1487 (m68k_linux_iterate_over_regset_sections): New.
1488 (m68k_linux_init_abi): Adjust gdbarch initialization.
1490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1493 (m32r_linux_regset_from_core_section): Remove.
1494 (m32r_linux_iterate_over_regset_sections): New.
1495 (m32r_linux_init_abi): Adjust gdbarch initialization.
1497 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1500 (amd64obsd_iterate_over_regset_sections): New.
1501 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1502 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1504 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1505 regset_from_core_section initialization.
1506 * i386-tdep.c (i386_regset_from_core_section): Remove.
1507 (i386_iterate_over_regset_sections): New.
1508 (i386_gdbarch_init): Adjust gdbarch initialization.
1509 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1510 (i386_iterate_over_regset_sections): New prototype.
1511 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1513 (i386obsd_aout_iterate_over_regset_sections): New.
1514 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1515 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1517 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1518 (amd64fbsd_init_abi): Call fbsd_init_abi.
1519 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1520 (i386fbsd4_init_abi): Call fbsd_init_abi.
1521 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1522 target method 'make_corefile_notes'.
1523 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1525 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1528 (hppa_hpux_iterate_over_regset_sections): New.
1529 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1530 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1531 (hppa_linux_iterate_over_regset_sections): New.
1532 (hppa_linux_init_abi): Adjust.
1533 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1534 (hppanbsd_iterate_over_regset_sections): New.
1535 (hppanbsd_init_abi): Adjust.
1536 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1537 (hppaobsd_iterate_over_regset_sections): New.
1538 (hppaobsd_init_abi): Adjust.
1540 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1543 (frv_linux_iterate_over_regset_sections): New.
1544 (frv_linux_init_abi): Adjust gdbarch initialization.
1546 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1548 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1549 (armbsd_iterate_over_regset_sections): New prototype.
1550 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1551 (armbsd_iterate_over_regset_sections): New.
1552 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1555 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1557 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1558 (alpha_linux_iterate_over_regset_sections): New.
1559 (alpha_linux_init_abi): Adjust gdbarch initialization.
1560 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1562 (alphanbsd_iterate_over_regset_sections): New prototype.
1564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1568 (aarch64_linux_iterate_over_regset_sections): New.
1569 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573 * fbsd-tdep.c: New file.
1574 * fbsd-tdep.h: New file.
1575 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1576 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1577 (ALLDEPFILES): Add fbsd-tdep.c.
1579 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1581 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1583 * gdbarch.h: Regenerate.
1584 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1586 (get_core_register_section): Add parameter 'regset' and use it, if
1587 set. Add parameter 'min_size' and verify the bfd section size
1589 (get_core_registers_cb): Add parameter 'regset' and pass it to
1590 get_core_register section. For the "standard" register sections
1591 ".reg" and ".reg2", set an appropriate default for human_name.
1592 (get_core_registers): Don't abort when the gdbarch has an iterator
1593 but no regset_from_core_section. Add NULL/0 for parameters
1594 'regset'/'min_size' in calls to get_core_register_section.
1595 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1596 'regset' and use it instead of calling the
1597 regset_from_core_section gdbarch method.
1598 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1599 * i386-tdep.c (i386_supply_xstateregset)
1600 (i386_collect_xstateregset, i386_xstateregset): Moved to
1602 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1604 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1605 core file support only if the regset iterator hasn't been set.
1606 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1607 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1608 Moved from i386-tdep.c and renamed to *_linux*.
1609 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1610 each callback invocation. Allow any .reg-xstate size when reading
1612 * amd64-tdep.c (amd64_supply_xstateregset)
1613 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1615 (amd64_regset_from_core_section): Remove.
1616 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1617 install an amd64-specific regset_from_core_section gdbarch method.
1618 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1619 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1620 Moved from amd64-tdep.c and renamed to *_linux*.
1621 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1622 to each callback invocation. Allow any .reg-xstate size when
1623 reading from a core file.
1624 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1625 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1626 each callback invocation.
1627 (arm_linux_init_abi): No longer set the regset_from_core_section
1629 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1630 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1631 each callback invocation.
1632 (ppc_linux_init_abi): No longer set the regset_from_core_section
1634 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1635 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1636 (s390_regset_from_core_section): Remove.
1637 (s390_iterate_over_regset_sections): Add regset parameter to each
1638 callback invocation.
1639 (s390_gdbarch_init): No longer set the regset_from_core_section
1640 gdbarch method. Drop initialization of deleted tdep fields.
1642 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1644 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1645 (amd64_linux_iterate_over_regset_sections): New.
1646 (amd64_linux_init_abi_common): Don't install the regset section
1647 list, but the new iterator in gdbarch.
1648 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1649 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1650 (arm_linux_iterate_over_regset_sections): ...here. New function.
1651 (arm_linux_init_abi): Set iterator instead of section list.
1652 * corelow.c (get_core_registers_cb): New function, logic moved
1654 (get_core_registers): ...loop body here. Use new iterator method
1655 instead of walking through the regset section list.
1656 * gdbarch.sh: Remove 'core_regset_sections'. New method
1657 'iterate_over_regset_sections'. New typedef
1658 'iterate_over_regset_sections_cb'.
1659 * gdbarch.c: Regenerate.
1660 * gdbarch.h: Likewise.
1661 * i386-linux-tdep.c (i386_linux_regset_sections)
1662 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1664 (i386_linux_iterate_over_regset_sections): New.
1665 (i386_linux_init_abi): Don't choose a regset section list, but
1666 install new iterator in gdbarch.
1667 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1668 (linux_collect_regset_section_cb): New function, logic moved
1670 (linux_collect_thread_registers): ...loop body here. Use iterator
1671 method instead of walking through list.
1672 (linux_make_corefile_notes_1): Check for presence of iterator
1673 method instead of regset section list.
1674 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1675 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1676 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1677 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1678 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1679 (ppc_linux_init_abi): Don't choose from above regset section
1680 lists, but install new iterator in gdbarch.
1681 * regset.h (struct core_regset_section): Remove.
1682 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1683 have_linux_v1, have_linux_v2, and have_tdb.
1684 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1685 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1686 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1687 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1688 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1689 (s390_iterate_over_regset_sections): ...here. New function. Use
1691 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1692 regset section lists, but install new iterator.
1694 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1698 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1700 * progspace.c (print_program_space): Don't prune program spaces
1701 before printing them.
1703 2014-09-25 Pedro Alves <palves@redhat.com>
1705 * infrun.c (user_visible_resume_ptid): Don't check
1706 singlestep_breakpoints_inserted_p.
1708 2014-09-25 Pedro Alves <palves@redhat.com>
1710 * breakpoint.c (should_be_inserted): Add debug output.
1712 2014-09-25 Pedro Alves <palves@redhat.com>
1714 * infrun.c (stepping_past_instruction_at)
1715 (clear_exit_convenience_vars): Point at infrun.h instead of
1717 (handle_signal_stop): Fix typo.
1719 2014-09-24 Yao Qi <yao@codesourcery.com>
1721 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1724 2014-09-22 Gary Benson <gbenson@redhat.com>
1726 * target.c (target_stop): Updated comment.
1728 2014-09-22 Gary Benson <gbenson@redhat.com>
1730 * target/target.h (target_stop_ptid): Renamed as...
1731 (target_stop_and_wait): New function. Updated comment.
1733 (target_continue_ptid): Renamed as...
1734 (target_continue_no_signal): New function. Updated comment.
1737 2014-09-22 Pedro Alves <palves@redhat.com>
1739 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1741 * breakpoint.c (enum ugll_insert_mode): New enum.
1742 (always_inserted_mode): Now a plain boolean.
1743 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1744 (breakpoints_always_inserted_mode): Delete.
1745 (breakpoints_should_be_inserted_now): New function.
1746 (insert_breakpoints): Pass UGLL_INSERT to
1747 update_global_location_list instead of calling
1748 insert_breakpoint_locations manually.
1749 (create_solib_event_breakpoint_1): New, factored out from ...
1750 (create_solib_event_breakpoint): ... this.
1751 (create_and_insert_solib_event_breakpoint): Use
1752 create_solib_event_breakpoint_1 instead of calling
1753 insert_breakpoint_locations manually.
1754 (update_global_location_list): Change parameter type from boolean
1755 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1756 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1757 (update_global_location_list_nothrow): Change parameter type from
1758 boolean to enum ugll_insert_mode.
1759 (_initialize_breakpoint): "breakpoint always-inserted" option is
1760 now a boolean command. Update help text.
1761 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1762 (breakpoints_should_be_inserted_now): New declaration.
1763 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1764 Remove breakpoints_always_inserted_mode check.
1765 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1766 * remote.c (remote_start_remote): Likewise.
1768 2014-09-22 Pedro Alves <palves@redhat.com>
1770 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1771 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1772 Instead, pass UGLL_INSERT to update_global_location_list.
1773 (update_global_location_list): Change parameter type from boolean
1774 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1775 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1776 (create_solib_event_breakpoint_1): New, factored out from ...
1777 (create_solib_event_breakpoint): ... this.
1778 (create_and_insert_solib_event_breakpoint): Use
1779 create_solib_event_breakpoint_1 instead of calling
1780 insert_breakpoint_locations manually.
1781 (update_global_location_list): Handle UGLL_INSERT.
1783 2014-09-22 Pedro Alves <palves@redhat.com>
1785 * breakpoint.c (enum ugll_insert_mode): New enum.
1786 (update_global_location_list)
1787 (update_global_location_list_nothrow): Change parameter type from
1788 boolean to enum ugll_insert_mode. All callers adjusted.
1790 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1792 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1793 SystemTap support in GDB.
1795 2014-09-19 Don Breazeal <donb@codesourcery.com>
1797 * linux-nat.c (linux_handle_extended_wait): Call
1798 linux_ptrace_get_extended_event.
1799 (wait_lwp): Call linux_is_extended_waitstatus.
1800 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1801 and linux_is_extended_waitstatus.
1802 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1803 linux_ptrace_get_extended_event.
1804 (linux_ptrace_get_extended_event): New function.
1805 (linux_is_extended_waitstatus): New function.
1806 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1807 (linux_is_extended_waitstatus): New declarations.
1809 2014-09-19 Yao Qi <yao@codesourcery.com>
1811 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1812 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1813 comments. Callers update.
1814 (dwarf_decode_lines): Likewise.
1815 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1816 comments. Skip the line table if 'lowpc' is greater than
1817 'address'. Don't check
1818 dwarf2_per_objfile->has_section_at_zero.
1820 2014-09-18 Doug Evans <dje@google.com>
1822 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1823 * python/py-symtab.c (stpy_get_producer): New function.
1824 (symtab_object_getset): Add "producer" attribute.
1826 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1829 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1830 (do_captured_read_memory_integer): Remove.
1831 (safe_read_memory_integer): Use target_read_memory directly instead
1832 of catching errors in do_captured_read_memory_integer.
1834 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1836 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1839 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1841 * objc-lang.c (find_implementation_from_class): Remove dead code.
1843 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1846 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1847 "fprintf_unfiltered (gdb_stdlog...)".
1849 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1851 PR breakpoints/12526
1852 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1854 * breakpoint.c (watch_command_1): Use these fields to retain
1855 bitfield information.
1856 (extract_bitfield_from_watchpoint_value): New function.
1857 (watchpoint_check): Use it.
1858 (update_watchpoint): Use it. Optimize the address and length of a
1859 HW watchpoint pointing to a bitfield.
1860 * value.h (unpack_value_bitfield): New prototype.
1861 * value.c (unpack_value_bitfield): Make extern.
1863 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1865 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1867 * gnu-nat.c (inf_threads): New function.
1868 * gnu-nat.h (inf_threads_ftype): New typedef.
1869 (inf_threads): New declaration.
1870 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1871 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1872 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1873 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1874 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1875 (i386_gnu_dr_get_control): New functions.
1876 (reg_addr): New structure.
1877 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1878 i386 debugging register hooks.
1879 * NEWS: Mention this.
1881 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1883 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1884 vector data transfer instructions.
1885 (arm_record_coproc_data_proc): Updated.
1887 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1889 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1890 arm_record_exreg_ld_st_insn.
1891 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1894 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1896 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1897 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1898 processing instructions.
1900 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1902 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1903 for advance SIMD struct ld/st insn.
1904 (thumb2_record_decode_insn_handler): Replace stub handler with
1905 thumb2_record_asimd_struct_ld_st.
1907 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1909 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1910 for asimd, vfp and coprocessor insns.
1911 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1912 and coprocessor insns.
1913 (thumb2_record_coproc_insn): New function.
1914 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1916 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1919 2014-09-13 Doug Evans <xdje42@gmail.com>
1921 * NEWS: Mention new "queue-signal" command.
1922 * infcmd.c (queue_signal_command): New function.
1923 (_initialize_infcmd): Add new queue-signal command.
1925 2014-09-13 Doug Evans <xdje42@gmail.com>
1927 * linux-nat.c (wait_lwp): Add debugging printf.
1928 (linux_nat_wait_1): Ditto.
1930 2014-09-12 Pedro Alves <palves@redhat.com>
1932 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1933 (create_and_insert_solib_event_breakpoint): New functions.
1934 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1935 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1936 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1937 (remove_dbx_link_breakpoint): Delete function.
1938 (insert_dbx_link_bpt_in_file): Use
1939 create_and_insert_solib_event_breakpoint instead of
1940 deprecated_insert_raw_breakpoint.
1941 (procfs_wait): Don't check whether we hit __dbx_link here.
1942 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1944 * solib-irix.c (base_breakpoint): Delete global.
1945 (disable_break): Delete function.
1946 (enable_break): Use create_solib_event_breakpoint
1947 instead of deprecated_insert_raw_breakpoint.
1948 (irix_solib_handle_event): New function.
1949 (irix_solib_create_inferior_hook): Don't run the target or disable
1950 the mapping-complete breakpoint here.
1951 (_initialize_irix_solib): Install irix_solib_handle_event as
1952 so_ops->handle_event hook.
1954 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1955 Ulrich Weigand <uweigand@de.ibm.com>
1958 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1959 instead of read_memory_unsigned_integer.
1961 2014-09-12 Gary Benson <gbenson@redhat.com>
1963 * nat/linux-waitpid.c: Include common-defs.h.
1964 [GDBSERVER]: Add FIXME comment.
1965 [!GDBSERVER]: Don't include defs.h or signal.h.
1966 (linux_debug) [!GDBSERVER]: Remove empty block.
1968 2014-09-12 Gary Benson <gbenson@redhat.com>
1970 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1971 Don't include defs.h or server.h.
1973 2014-09-12 Gary Benson <gbenson@redhat.com>
1975 * nat/linux-btrace.c: Include common-defs.h.
1976 Don't include defs.h, server.h or gdbthread.h.
1977 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1979 2014-09-12 Gary Benson <gbenson@redhat.com>
1981 * common/agent.c: Include common-defs.h.
1982 Don't include defs.h or server.h.
1983 * common/buffer.c: Likewise.
1984 * common/common-debug.c: Likewise.
1985 * common/common-utils.c: Likewise.
1986 * common/errors.c: Likewise.
1987 * common/filestuff.c: Likewise.
1988 * common/format.c: Likewise.
1989 * common/gdb_vecs.c: Likewise.
1990 * common/print-utils.c: Likewise.
1991 * common/ptid.c: Likewise.
1992 * common/rsp-low.c: Likewise.
1993 * common/signals.c: Likewise.
1994 * common/vec.c: Likewise.
1995 * common/xml-utils.c: Likewise.
1996 * nat/linux-osdata.c: Likewise.
1997 * nat/linux-procfs.c: Likewise.
1998 * nat/linux-ptrace.c: Likewise.
1999 * nat/mips-linux-watch.c: Likewise.
2000 * target/waitstatus.c: Likewise.
2002 2014-09-12 Tom Tromey <tromey@redhat.com>
2003 Gary Benson <gbenson@redhat.com>
2005 * common/common-regcache.h: New file.
2006 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2007 * regcache.h: Include common-regcache.h.
2008 (regcache_read_pc): Don't declare.
2009 * regcache.c (get_thread_regcache_for_ptid): New function.
2010 * nat/linux-btrace.c: Don't include regcache.h.
2011 Include common-regcache.h.
2012 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2014 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2016 * regcache.h (struct regset): Declare.
2018 2014-09-11 Pedro Alves <palves@redhat.com>
2021 * main.c: Include "infrun.h".
2022 (catch_command_errors, catch_command_errors_const): Wait for the
2023 foreground command to complete.
2024 * top.c (maybe_wait_sync_command_done): New function, factored out
2026 (maybe_wait_sync_command_done): ... here.
2027 * top.h (maybe_wait_sync_command_done): New declaration.
2029 2014-09-11 Tom Tromey <tromey@redhat.com>
2030 Gary Benson <gbenson@redhat.com>
2032 * common/symbol.h: New file.
2033 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2034 * minsyms.c (find_minimal_symbol_address): New function.
2035 * common/agent.c: Include common/symbol.h.
2036 [!GDBSERVER]: Don't include objfiles.h.
2037 (agent_look_up_symbols): Use find_minimal_symbol_address.
2039 2014-09-11 Gary Benson <gbenson@redhat.com>
2041 * target/target.h (target_stop_ptid, target_continue_ptid):
2043 * target.c (target_stop_ptid, target_continue_ptid): New
2045 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2046 (agent_run_command): Always use target_stop_ptid and
2047 target_continue_ptid.
2049 2014-09-11 Tom Tromey <tromey@redhat.com>
2050 Gary Benson <gbenson@redhat.com>
2052 * target/target.h: New file.
2053 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2054 * target.h: Include target/target.h.
2055 (target_read_memory, target_write_memory): Don't declare.
2056 * target.c (target_read_uint32): New function.
2057 * common/agent.c: Include target/target.h.
2058 [!GDBSERVER]: Don't include target.h.
2059 (helper_thread_id): Type changed to uint32_t.
2060 (agent_get_helper_thread_id): Use target_read_uint32.
2061 (agent_run_command): Always use target_read_memory and
2062 target_write_memory.
2063 (agent_capability): Type changed to uint32_t.
2064 (agent_capability_check): Use target_read_uint32.
2066 2014-09-11 Gary Benson <gbenson@redhat.com>
2068 * common/common-debug.h (show_debug_regs): Declare.
2069 * common/common-debug.c (show_debug_regs): Define.
2070 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2071 all uses with show_debug_regs. Replace all uses that considered
2072 debug_hw_points as a multi-value integer with straight boolean
2074 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2075 with show_debug_regs.
2076 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2077 all uses with show_debug_regs.
2078 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2079 uses with show_debug_regs.
2081 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2083 * findvar.c (address_from_register): Handle targets requiring
2084 a special conversion routine even for plain pointer types.
2086 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2088 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2089 (store_register): Do not call exec_one_dummy_insn.
2091 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2093 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2094 dereference it first. Use value_enclosing_type instead of
2096 (ada_array_length): Likewise.
2098 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2100 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2101 Adjust function implementation and documentation accordingly.
2102 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2103 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2104 Update call to ada_value_ptr_subscript.
2106 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2108 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2109 instead of VAL's type.
2111 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2113 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2115 2014-09-09 Doug Evans <xdje42@gmail.com>
2118 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2119 last parameter to pkg-config, not first.
2120 * configure.ac: Pass --with-guile provided pkg-config path to
2121 GDB_GUILE_PROGRAM_NAMES.
2122 * configure: Regenerate.
2124 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2126 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2129 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2131 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2132 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2133 the list of sections determining GDB_OSABI_IRIX.
2135 2014-09-09 James Hogan <james.hogan@imgtec.com>
2137 * MAINTAINERS (Write After Approval): Add "James Hogan".
2139 2014-09-09 James Hogan <james.hogan@imgtec.com>
2141 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2143 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2145 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2147 2014-09-08 Doug Evans <xdje42@gmail.com>
2150 * guile.c: #include <signal.h>.
2151 (_initialize_guile): Block SIGCHLD while initializing Guile.
2153 Replaces the following, which is reverted.
2155 2014-07-26 Doug Evans <xdje42@gmail.com>
2158 * configure.ac: Add check for header gc/gc.h.
2159 Add check for function setenv.
2160 * configure: Regenerate.
2161 * config.in: Regenerate.
2162 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2164 2014-09-08 Doug Evans <xdje42@gmail.com>
2166 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2167 with named constant. Fix style of pointer comparison.
2168 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2170 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2173 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2174 decide whether we display the command on "show user".
2175 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2176 printing command name.
2177 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2178 * cli/cli-decode.c (cli_user_command_p): Create helper function
2179 to verify whether cmd_list_element is a user-defined command.
2181 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2185 Fix goto out of TRY_CATCH.
2187 2014-09-06 Doug Evans <xdje42@gmail.com>
2188 Tom Tromey <tromey@redhat.com>
2191 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2192 $_any_caller_matches.
2193 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2194 * python/lib/gdb/function/caller_is.py: New file.
2196 2014-09-06 Doug Evans <xdje42@gmail.com>
2198 * infcmd.c (program_info): Fix typo.
2200 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2203 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2204 'number'. New variable 'has_digit'. Rewrite code to deal with
2205 subexpressions on SDT probes.
2207 2014-09-04 Pedro Alves <palves@redhat.com>
2209 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2210 the input is only one character long.
2212 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2215 * f-valprint.c (f_val_print): Specify the correct print option to
2216 use when printing integer values.
2218 2014-09-04 Gary Benson <gbenson@redhat.com>
2220 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2221 Remove code to cope with LWPs wrapped as PIDs.
2222 Add assertions to ensure no wrapped LWPs are passed.
2224 2014-09-04 Pedro Alves <palves@redhat.com>
2226 * value.c (value_ranges_copy_adjusted): New function, factored out
2228 (value_contents_copy_raw): ... here.
2229 (unpack_value_bits_as_long_1): Rename back to ...
2230 (unpack_bits_as_long): ... this. Remove 'original_value' and
2231 'result' parameters. Change return type to LONGEST.
2232 (unpack_value_bits_as_long): Delete.
2233 (unpack_value_field_as_long_1): Delete.
2234 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2235 (unpack_value_bitfield): New function.
2236 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2237 (value_fetch_lazy): Use unpack_value_bitfield.
2238 * value.h (unpack_value_bits_as_long): Delete declaration.
2240 2014-09-03 Sasha Smundak <asmundak@google.com>
2242 * python/py-frame.c (frapy_read_register): New function.
2244 2014-09-03 James Hogan <james.hogan@imgtec.com>
2246 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2247 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2249 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2252 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2254 (add_cmd): Set "completer_handle_brkchars" to NULL.
2255 * cli/cli-decode.h (struct cmd_list_element)
2256 <completer_handle_brkchars>: New field.
2257 * command.h (completer_ftype_void): New typedef.
2258 (set_cmd_completer_handle_brkchars): New prototype.
2259 * completer.c (set_gdb_completion_word_break_characters): New
2261 (complete_line_internal): Call "completer_handle_brkchars"
2262 callback from command.
2263 * completer.h: Include "command.h".
2264 (set_gdb_completion_word_break_characters): New prototype.
2265 * python/py-cmd.c (cmdpy_completer_helper): New function.
2266 (cmdpy_completer_handle_brkchars): New function.
2267 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2268 (cmdpy_init): Set completer_handle_brkchars to
2269 cmdpy_completer_handle_brkchars.
2271 2014-09-03 Gary Benson <gbenson@redhat.com>
2273 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2274 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2275 Loop conditions changed to equivalent form.
2276 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2277 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2278 ALL_DEBUG_ADDRESS_REGISTERS.
2280 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2282 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2285 2014-09-02 Doug Evans <dje@google.com>
2287 * typeprint.c (find_global_typedef): Fix comment.
2289 2014-09-02 Gary Benson <gbenson@redhat.com>
2291 * i386-nat.h: Renamed as...
2292 * x86-nat.h: New file. All type, function and variable name
2293 prefixes changed from "i386_" to "x86_". All references updated.
2294 * i386-nat.c: Renamed as...
2295 * x86-nat.c: New file. All type, function and variable name
2296 prefixes changed from "i386_" to "x86_". All references updated.
2297 * common/i386-xstate.h: Renamed as...
2298 * common/x86-xstate.h: New file. All type, function and variable
2299 name prefixes changed from "i386_" to "x86_". All references
2301 * nat/i386-cpuid.h: Renamed as...
2302 * nat/x86-cpuid.h: New file. All type, function and variable name
2303 prefixes changed from "i386_" to "x86_". All references updated.
2304 * nat/i386-gcc-cpuid.h: Renamed as...
2305 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2306 name prefixes changed from "i386_" to "x86_". All references
2308 * nat/i386-dregs.h: Renamed as...
2309 * nat/x86-dregs.h: New file. All type, function and variable name
2310 prefixes changed from "i386_" to "x86_". All references updated.
2311 * nat/i386-dregs.c: Renamed as...
2312 * nat/x86-dregs.c: New file. All type, function and variable name
2313 prefixes changed from "i386_" to "x86_". All references updated.
2315 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2317 * varobj.c (_initialize_varobj): Move to the end of file.
2319 2014-08-29 Gary Benson <gbenson@redhat.com>
2321 * common/common-exceptions.h: New file.
2322 * common/common-exceptions.c: Likewise.
2323 * Makefile.in (SFILES): Add common/common-exceptions.c.
2324 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2325 (COMMON_OBS): Add common-exceptions.o.
2326 (common-exceptions.o): New rule.
2327 * exceptions.h (common-exceptions.h): Include.
2328 (gdb_setjmp.h): Do not include.
2329 (return_reason): Moved to common-exceptions.h.
2330 (enum return_reason): Likewise.
2331 (RETURN_MASK): Likewise.
2332 (typedef return_mask): Likewise.
2333 (enum errors): Likewise.
2334 (struct gdb_exception): Likewise.
2335 (exceptions_state_mc_init): Likewise.
2336 (exceptions_state_mc_action_iter): Likewise.
2337 (exceptions_state_mc_action_iter_1): Likewise.
2338 (TRY_CATCH): Likewise.
2339 (throw_exception): Likewise.
2340 (throw_verror): Likewise.
2341 (throw_vquit): Likewise.
2342 (throw_error): Likewise.
2343 (throw_quit): Likewise.
2344 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2345 (enum catcher_action): Likewise.
2346 (struct catcher): Likewise.
2347 (current_catcher): Likewise.
2348 (catcher_list_size): Likewise.
2349 (exceptions_state_mc_init): Likewise.
2350 (catcher_pop): Likewise.
2351 (exceptions_state_mc): Likewise.
2352 (exceptions_state_mc_action_iter): Likewise.
2353 (exceptions_state_mc_action_iter_1): Likewise.
2354 (throw_exception): Likewise.
2355 (exception_messages): Likewise.
2356 (exception_messages_size): Likewise.
2357 (throw_it): Likewise.
2358 (throw_verror): Likewise.
2359 (throw_vquit): Likewise.
2360 (throw_error): Likewise.
2361 (throw_quit): Likewise.
2362 (prepare_to_throw_exception): New function.
2364 2014-08-29 Gary Benson <gbenson@redhat.com>
2366 * common/gdb_setjmp.h: New file.
2367 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2368 * configure.ac: Move sigsetjmp check...
2369 * common/common.m4: ...here.
2370 * configure: Regenerate.
2371 * cp-support.c (SIGJMP_BUF): Delete.
2372 (SIGSETJMP): Likewise.
2373 (SIGLONGJMP): Likewise.
2374 * exceptions.h (gdb_setjmp.h): Include.
2375 (setjmp.h): Do not include.
2376 (EXCEPTIONS_SIGJMP_BUF): Delete.
2377 (EXCEPTIONS_SIGSETJMP): Likewise.
2378 (EXCEPTIONS_SIGLONGJMP): Likewise.
2379 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2381 * exceptions.c: Likewise.
2383 2014-08-29 Gary Benson <gbenson@redhat.com>
2385 * cleanups.h: Moved to...
2386 * common/cleanups.h: New file.
2387 * cleanups.c: Moved to...
2388 * common/cleanups.c: New file. Include common-defs.h and
2389 cleanups.h. Do not include defs.h.
2390 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2391 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2392 (cleanups.o): New rule.
2394 2014-08-29 Gary Benson <gbenson@redhat.com>
2396 * common/errors.h (internal_warning): New declaration.
2397 (internal_vwarning): Likewise.
2398 * common/errors.c (internal_warning): New function.
2399 * utils.h (internal_warning): Don't declare.
2400 (internal_vwarning): Likewise.
2401 * utils.c (internal_warning): Removed.
2403 2014-08-29 Gary Benson <gbenson@redhat.com>
2405 * main.c (captured_main): Use warning during startup.
2406 Prefix startup warning messages with command name.
2408 2014-08-29 Gary Benson <gbenson@redhat.com>
2410 * main.c (captured_main): Handle usage errors with error.
2412 2014-08-29 Gary Benson <gbenson@redhat.com>
2414 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2415 exit pair with a call to error. Wrap the message with _().
2417 2014-08-29 Gary Benson <gbenson@redhat.com>
2419 * main.c (captured_main): Replace a fprintf/exit
2420 pair with a call to error. Wrap the message with _().
2422 2014-08-29 Gary Benson <gbenson@redhat.com>
2424 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2425 pairs with calls to error. Wrap the message with _().
2427 2014-08-29 Gary Benson <gbenson@redhat.com>
2429 * utils.c (vwarning): Protect calls to target_terminal_ours
2432 2014-08-29 Gary Benson <gbenson@redhat.com>
2434 * exceptions.c (print_flush): Protect calls to
2435 target_terminal_ours and wrap_here.
2437 2014-08-29 Gary Benson <gbenson@redhat.com>
2439 * utils.h (filtered_printing_initialized): New declaration.
2440 * utils.c (abort_with_message): New function.
2441 (internal_vproblem): Use abort_with_message for first level
2442 recursive internal problems, and if gdb_stderr is not set up.
2443 Protect calls to target_terminal_ours, begin_line and query.
2445 2014-08-28 Doug Evans <dje@google.com>
2447 * symtab.c (in_prologue): Move definition to better spot.
2448 (skip_prologue_using_sal): Ditto.
2450 2014-08-28 Doug Evans <dje@google.com>
2452 * symtab.c (find_function_start_sal): Move definition to better spot.
2454 2014-08-28 Yao Qi <yao@codesourcery.com>
2456 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2457 found_stack_adjust in forward scan. Remove condition check
2458 on found_stack_adjust which is always true. Indent the code.
2460 2014-08-28 Yao Qi <yao@codesourcery.com>
2462 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2463 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2464 (dwarf_decode_lines): Remove argument
2465 want_line_info. Remove condition check on want_line_info.
2468 2014-08-27 Doug Evans <dje@google.com>
2470 * dwarf2read.c (dwarf_record_line): Fix typo.
2472 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2474 * target.h (struct target_ops::to_terminal_save_ours): Remove
2476 (target_terminal_save_ours): Remove macro.
2477 * target-delegates.c: Regenerate.
2478 * inf-child.c (inf_child_target): Don't set the nonexistent
2479 field to_terminal_save_ours.
2480 * inferior.h (child_terminal_save_ours): Remove declaration.
2481 * terminal.h (gdb_save_tty_state): New declaration.
2482 * inflow.c (child_terminal_save_ours): Rename to ...
2483 (gdb_save_tty_state): ... this.
2484 * tui/tui.c: Include terminal.h.
2485 (tui_enable): Use gdb_save_tty_state instead of
2486 target_terminal_save_ours.
2487 (tui_disable): Likewise.
2489 2014-08-25 Doug Evans <dje@google.com>
2491 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2492 Pass NULL instead of 0 for context pointer.
2494 2014-08-25 Yao Qi <yao@codesourcery.com>
2496 * dwarf2read.c: Fix grammatical error.
2498 2014-08-24 Yao Qi <yao@codesourcery.com>
2500 * dwarf2read.c (scan_partial_symbols): Update comments.
2501 Rename argument 'need_pc' with 'set_addrmap'.
2502 (add_partial_namespace): Rename argument 'need_pc' with
2504 (add_partial_module): Likewise.
2505 (add_partial_subprogram): Likewise. Update comments.
2506 (dwarf2_name): Fix typo.
2508 2014-08-22 Doug Evans <dje@google.com>
2511 * dwarf2read.c (dwarf_record_line_p): New function.
2512 (dwarf_decode_lines_1): Ignore subsequent line number entries
2513 for the same line if any entry had a non-zero discriminator.
2515 2014-08-22 Doug Evans <dje@google.com>
2517 * buildsym.h (record_line_ftype): New typedef.
2518 (record_line): Use it.
2519 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2520 (dwarf_decode_lines_1): Call them.
2522 2014-08-22 Yao Qi <yao@codesourcery.com>
2524 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2525 (ctf_end): Remove code.
2527 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2530 (linux_make_corefile_notes): call update_thread_list, protected against
2533 2014-08-21 Pedro Alves <palves@redhat.com>
2535 * infcmd.c (attach_command): Remove comment.
2537 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2539 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2540 unsigned LONGEST to ULONGEST.
2542 2014-08-20 Pedro Alves <palves@redhat.com>
2544 * Makefile.in (check-read1): New rule.
2546 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2548 * value.c (value_from_contents_and_address): Strip resolved_type's
2549 typedef layers before checking its TYPE_DATA_LOCATION.
2551 2014-08-20 Pedro Alves <palves@redhat.com>
2553 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2555 2014-08-20 Yao Qi <yao@codesourcery.com>
2557 * amd64-tdep.c (amd64_classify): Add a blank line after the
2558 example. Move "*/" to a new line.
2559 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2560 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2561 * dwarf2read.c (psymtab_include_file_name): Likewise.
2563 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2564 Pedro Alves <palves@redhat.com>
2568 * ada-lang.c (coerce_unspec_val_to_type): Use
2569 value_contents_copy_raw.
2570 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2571 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2572 * cp-valprint.c (cp_print_value_fields): Let the common printing
2573 code handle optimized out values.
2574 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2575 * d-valprint.c (dynamic_array_type): Use
2576 value_bits_any_optimized_out.
2577 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2578 check_any_valid fields.
2579 (check_pieced_value_bits): Delete and inline ...
2580 (check_pieced_synthetic_pointer): ... here.
2581 (check_pieced_value_validity): Delete.
2582 (check_pieced_value_invalid): Delete.
2583 (pieced_value_funcs): Remove check_validity and check_any_valid
2585 (read_pieced_value): Use mark_value_bits_optimized_out.
2586 (write_pieced_value): Switch to use
2587 mark_value_bytes_optimized_out.
2588 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2589 of assuming the whole value is optimized out.
2590 * findvar.c (read_frame_register_value): Remove special handling
2591 of optimized out registers.
2592 (value_from_register): Use mark_value_bytes_optimized_out.
2593 * frame-unwind.c (frame_unwind_got_optimized): Use
2594 mark_value_bytes_optimized_out.
2595 * jv-valprint.c (java_value_print): Adjust.
2596 (java_print_value_fields): Let the common printing code handle
2597 optimized out values.
2598 * mips-tdep.c (mips_print_register): Remove special handling of
2599 optimized out registers.
2600 * opencl-lang.c (lval_func_check_validity): Delete.
2601 (lval_func_check_any_valid): Delete.
2602 (opencl_value_funcs): Remove check_validity and check_any_valid
2604 * p-valprint.c (pascal_object_print_value_fields): Let the common
2605 printing code handle optimized out values.
2606 * stack.c (read_frame_arg): Remove special handling of optimized
2607 out values. Fetch both VAL and ENTRYVAL before comparing
2608 contents. Adjust to value_available_contents_eq rename.
2609 * valprint.c (valprint_check_validity)
2610 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2611 (val_print_array_elements): Adjust.
2612 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2613 (value_bits_any_optimized_out): New function.
2614 (value_entirely_covered_by_range_vector): New function, factored
2615 out from value_entirely_unavailable.
2616 (value_entirely_unavailable): Reimplement.
2617 (value_entirely_optimized_out): New function.
2618 (insert_into_bit_range_vector): New function, factored out from
2619 mark_value_bits_unavailable.
2620 (mark_value_bits_unavailable): Reimplement.
2621 (struct ranges_and_idx): New struct.
2622 (find_first_range_overlap_and_match): New function, factored out
2623 from value_available_contents_bits_eq.
2624 (value_available_contents_bits_eq): Rename to ...
2625 (value_contents_bits_eq): ... this. Check both unavailable
2626 contents and optimized out contents.
2627 (value_available_contents_eq): Rename to ...
2628 (value_contents_eq): ... this.
2629 (allocate_value_lazy): Remove reference to the old optimized_out
2631 (allocate_optimized_out_value): Use
2632 mark_value_bytes_optimized_out.
2633 (require_not_optimized_out): Adjust to check whether the
2634 optimized_out vec is empty.
2635 (ranges_copy_adjusted): New function, factored out from
2636 value_contents_copy_raw.
2637 (value_contents_copy_raw): Also copy the optimized out ranges.
2638 Assert the destination ranges aren't optimized out.
2639 (value_contents_copy): Update comment, remove call to
2640 require_not_optimized_out.
2641 (value_contents_equal): Adjust to check whether the optimized_out
2643 (set_value_optimized_out, value_optimized_out_const): Delete.
2644 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2646 (value_entirely_optimized_out, value_bits_valid): Delete.
2647 (value_copy): Take a VEC copy of the 'optimized_out' field.
2648 (value_primitive_field): Remove special handling of optimized out.
2649 (value_fetch_lazy): Assert that lazy values have no unavailable
2650 regions. Use value_bits_any_optimized_out. Remove some special
2651 handling for optimized out values.
2652 * value.h: Add intro comment about <optimized out> and
2654 (struct lval_funcs): Remove check_validity and check_any_valid
2656 (set_value_optimized_out, value_optimized_out_const): Remove.
2657 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2659 (value_bits_any_optimized_out): New declaration.
2660 (value_bits_valid): Delete declaration.
2661 (value_available_contents_eq): Rename to ...
2662 (value_contents_eq): ... this, and extend comments.
2664 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2666 Fix -fsanitize=address on unreadable inferior strings.
2667 * valprint.c (val_print_string): Fix access before BUFFER.
2669 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2671 * target.c (target_struct_size): Remove.
2672 (target_struct_allocsize): Remove.
2673 (DEFAULT_ALLOCSIZE): Remove.
2674 (target_ops_p): New typedef.
2675 (DEF_VEC_P (target_ops_p)): New vector type.
2676 (target_structs): Change type to VEC (target_ops_p).
2677 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2678 (find_default_run_target): Rewrite for loop following changes to
2681 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2683 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2684 Adjust code accordingly. Adjust function description comment.
2686 2014-08-19 Yao Qi <yao@codesourcery.com>
2688 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2691 2014-08-19 Alan Modra <amodra@gmail.com>
2693 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2694 * config.in: Regenerate.
2695 * configure: Regenerate.
2697 2014-08-19 Tom Tromey <tromey@redhat.com>
2698 Gary Benson <gbenson@redhat.com>
2700 * common/common-debug.h: New file.
2701 * common/common-debug.c: Likewise.
2702 * debug.c: Likewise.
2703 * Makefile.in (SFILES): Add common/common-debug.c.
2704 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2705 (COMMON_OBS): Add common-debug.o and debug.o.
2706 (common-debug.o): New rule.
2707 * common/common-defs.h: Include common-debug.h.
2708 * common/agent.c (debug_agent_printf): New function.
2709 (DEBUG_AGENT): Redefine.
2710 * nat/i386-dregs.c (debug_printf): Undefine.
2712 2014-08-19 Gary Benson <gbenson@redhat.com>
2714 * common/common-defs.h: Include print-utils.h.
2715 * utils.h: Do not include print-utils.h.
2717 2014-08-19 Tom Tromey <tromey@redhat.com>
2718 Gary Benson <gbenson@redhat.com>
2720 * common/common-types.h: New file.
2721 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2722 * common/common-defs.h: Include common-types.h.
2723 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2726 2014-08-19 Tom Tromey <tromey@redhat.com>
2727 Gary Benson <gbenson@redhat.com>
2729 * common/errors.h: New file.
2730 * common/errors.c: Likewise.
2731 * Makefile.in (SFILES): Add common/errors.c.
2732 (HFILES_NO_SRCDIR): Add common/errors.h.
2733 (COMMON_OBS): Add errors.o.
2734 (errors.o): New rule.
2735 * common/common-defs.h: Include errors.h.
2736 * utils.h (perror_with_name, error, verror, warning, vwarning):
2738 * common/common-utils.h: (malloc_failure, internal_error):
2741 2014-08-19 Gary Benson <gbenson@redhat.com>
2743 * utils.c (internal_vproblem): Always print the message.
2745 2014-08-18 Doug Evans <dje@google.com>
2747 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2749 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2751 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2752 Return 0 if TYPE is dynamic.
2753 (print_range): Add handling of dynamic ranges.
2755 2014-08-18 Keven Boell <keven.boell@intel.com>
2756 Joel Brobecker <brobecker@adacore.com>
2758 * gdbtypes.h (struct main_type): Add field "data_location".
2759 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2760 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2761 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2762 a dynamic data location.
2763 (resolve_dynamic_type): Add DW_AT_data_location handling.
2764 (copy_recursive, copy_type): Copy the data_location information
2766 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2767 * value.c (value_from_contents_and_address): Add
2768 DW_AT_data_location handling.
2770 2014-08-18 Keven Boell <keven.boell@intel.com>
2771 Joel Brobecker <brobecker@adacore.com>
2773 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2774 field "get_object_address".
2775 * dwarf2expr.c (execute_stack_op): Add handling for
2776 DW_OP_push_object_address.
2777 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2778 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2779 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2780 (dwarf_expr_get_obj_addr): New function.
2781 (dwarf_expr_ctx_funcs): Add get_object_address field.
2782 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2783 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2784 (dwarf2_evaluate_property): Add parameter "address". Use it.
2785 (needs_get_obj_addr): New function.
2786 (needs_frame_ctx_funcs): Add get_object_address field.
2787 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2788 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2789 (resolve_dynamic_array): Likewise.
2791 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2793 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2794 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2795 fixed value for records and unions for which some GNAT encodings
2798 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2800 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2801 rewrite to avoid "else if" and "else" constructs. Should be
2802 a no-op in practice.
2804 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2806 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2809 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2812 * eval.c: Update all calls to find_overload_match.
2813 * valarith.c: Likewise.
2814 (value_user_defined_cpp_op, value_user_defined_op): New
2815 argument NOSIDE. Update all callers.
2816 * valops.c (find_overload_match): New argument NOSIDE.
2817 * value.h (find_overload_match): Update signature.
2819 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2821 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2822 'items' methods instead of 'iteritems' method on dictionaries.
2824 2014-08-15 Doug Evans <dje@google.com>
2826 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2829 2014-08-15 Doug Evans <dje@google.com>
2831 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2833 2014-08-15 Doug Evans <dje@google.com>
2835 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2837 2014-08-15 Doug Evans <dje@google.com>
2839 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2842 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2844 * dcache.h: Include target.h, to avoid compile time warnings.
2846 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2848 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2849 frame_info" partial declaration.
2850 * gdbarch.h: Regenerate.
2852 2014-08-15 Yao Qi <yao@codesourcery.com>
2854 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2855 Add parameter 'decode_for_pst_p'. Callers update.
2857 2014-08-13 Yao Qi <yao@codesourcery.com>
2860 * configure.ac: Use local variable 'pos'.
2861 * configure: Regenerated.
2863 2014-08-11 Doug Evans <dje@google.com>
2865 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2866 message, it is redundant with "Reading symbols from ..." message.
2868 2014-08-10 Doug Evans <xdje42@gmail.com>
2870 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2872 2014-08-09 Yao Qi <yao@codesourcery.com>
2875 * remote.c (remote_xfer_partial): Remove dead code.
2877 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2879 * ia64-linux-tdep.c: Include "regset.h".
2880 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2881 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2882 (ia64_linux_supply_fpregset): New function.
2883 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2884 (ia64_linux_regset_from_core_section): New function.
2885 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2888 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2890 * m68klinux-tdep.c: Include "regset.h".
2891 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2892 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2893 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2894 (m68k_linux_regset_from_core_section): New function.
2895 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2898 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2900 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2901 function. Move logic to...
2902 (tilegx_linux_regmap): ... this new register map.
2903 (tilegx_linux_regset): Refer to register map, replace supply
2904 method by regcache_supply_regset, and add collect method.
2905 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2906 TILEGX_FIRST_EASY_REGNUM.
2908 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2910 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2911 that calls regcache_supply_regset and handles the EPC register
2912 separately. Move main logic to...
2913 (score7_linux_gregmap): ... this new register map.
2914 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2915 (score7_linux_gregset): Refer to register map. Add collect method.
2916 (score7_linux_regset_from_core_section): Replace
2917 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2918 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2919 (struct regset): Delete unused forward declaraction.
2920 (struct pt_regs): Delete structure definition.
2921 (elf_gregset_t): Delete typedef.
2923 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2925 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2926 (nios2_core_regset): Add collect method.
2928 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2930 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2931 platform-independent and don't write to read-only input buffer.
2932 (m32r_linux_collect_gregset): New function.
2933 (m32r_linux_gregset): Add collect method.
2935 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937 * hppa-linux-tdep.c (greg_map): Rename to...
2938 (hppa_linux_gregmap): ... this. Also convert to
2939 regcache_map_entry format.
2940 (hppa_linux_supply_regset): Delete function.
2941 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2942 (hppa_linux_fpregmap): ... this new register map.
2943 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2944 register map, replace supply method by regcache_supply_regset, and
2945 add collect method regcache_collect_regset.
2947 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2949 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2950 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2951 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2952 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2953 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2954 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2955 (frv_linux_supply_gregset): Replace main logic by call to
2956 regcache_supply_regset, but keep clearing gr32-gr63.
2957 (frv_linux_supply_fpregset): Delete function.
2958 (frv_linux_gregset): Refer to appropriate register map and add
2959 regcache_collect_regset as the collect method.
2960 (frv_linux_fpregset): Likewise. Also exchange the supply method
2961 by regcache_supply_regset.
2963 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2965 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2966 by call to alpha_supply_int_regs.
2967 (alpha_linux_collect_gregset): New function.
2968 (alpha_linux_supply_fpregset): Replace logic by call to
2969 alpha_supply_fp_regs.
2970 (alpha_linux_collect_fpregset): New function.
2971 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2973 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2975 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2976 by call to regcache_collect_regset.
2977 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2978 instead of aarch64_linux_supply_gregset/_fpregset.
2979 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2980 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2981 header file instead.
2982 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2983 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2984 functions. Move logic to ...
2985 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2987 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2988 refer to new register maps, replace *_regset_from_core by
2989 regcache_supply_regset, and also use regcache_collect_regset.
2990 * aarch64-linux-tdep.h: Include "regset.h".
2991 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2993 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2994 macros, moved from C source file.
2995 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2996 variable declarations.
2998 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3000 * s390-linux-nat.c: Include "regset.h".
3001 (regmap_gregset): Delete macro.
3002 (s390_64_regmap_gregset): New register map for
3003 regcache_supply/_collect_regset.
3004 (s390_64_gregset): New regset.
3005 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3006 (regmap_fpregset): Delete macro.
3007 (s390_native_supply, s390_native_collect): Delete functions.
3008 (supply_gregset, fill_gregset): Replace s390-specific regmap
3009 handling by a call to regcache_supply/_collect_regset.
3010 (supply_fpregset, fill_fpregset): Call regcache_supply/
3011 _collect_regset instead of s390_native_supply/_collect.
3012 (fetch_regset, store_regset): Likewise. Also change the last
3013 parameter to a regset instead of a regmap.
3014 (s390_linux_fetch_inferior_registers)
3015 (390_linux_store_inferior_registers): Adjust last parameter in
3016 calls to fetch_regset and store_regset.
3017 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3018 (s390_gregmap): ... this. Also make static const and convert to
3019 regcache_map_entry format.
3020 (s390x_regmap_gregset): Delete.
3021 (s390_regmap_fpregset): Rename to...
3022 (s390_fpregmap): ... this. Make static const and convert to
3023 regcache_map_entry format.
3024 (s390_regmap_upper, s390_regmap_last_break)
3025 (s390x_regmap_last_break, s390_regmap_system_call)
3026 (s390_regmap_tdb): Likewise.
3027 (s390_supply_regset, s390_collect_regset): Remove functions.
3028 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3030 (s390_gregset, s390_fpregset, s390_upper_regset)
3031 (s390_last_break_regset, s390x_last_break_regset)
3032 (s390_system_call_regset, s390_tdb_regset): Make global and
3033 replace s390_supply/_collect_regset by regcache_supply/
3035 (s390x_gregset): Delete.
3036 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3037 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3038 (s390_regmap_fpregset, s390_regmap_last_break)
3039 (s390x_regmap_last_break, s390_regmap_system_call)
3040 (s390_regmap_tdb): Delete global variable declarations.
3041 (s390_gregset, s390_fpregset, s390_last_break_regset)
3042 (s390x_last_break_regset, s390_system_call_regset)
3043 (s390_tdb_regset): New global variable declarations.
3045 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047 * regcache.c: Include "regset.h".
3048 (regcache_transfer_regset): New local function.
3049 (regcache_supply_regset, regcache_collect_regset): New functions.
3050 * regcache.h (struct regcache_map_entry): New structure.
3051 (REGCACHE_MAP_SKIP): New enum value.
3052 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3054 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3056 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3057 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3058 (ppc_linux_collect_gregset ): Likewise.
3059 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3060 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3061 (ppc_collect_vrregset): Likewise.
3062 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3065 2014-08-07 Yao Qi <yao@codesourcery.com>
3067 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3068 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3069 * remote.c (remote_read_bytes): Likewise.
3071 2014-08-07 Yao Qi <yao@codesourcery.com>
3073 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3075 2014-08-07 Yao Qi <yao@codesourcery.com>
3078 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3079 TARGET_XFER_OK instead of 0.
3081 2014-08-07 Gary Benson <gbenson@redhat.com>
3083 * common/common-defs.h: Include errno.h.
3084 * defs.h: Do not include errno.h.
3085 * ada-typeprint.c: Likewise.
3086 * c-typeprint.c: Likewise.
3087 * core-regset.c: Likewise.
3088 * corefile.c: Likewise.
3089 * corelow.c: Likewise.
3090 * event-loop.c: Likewise.
3091 * f-typeprint.c: Likewise.
3092 * gnu-nat.c: Likewise.
3093 * go32-nat.c: Likewise.
3094 * i386gnu-nat.c: Likewise.
3095 * m2-typeprint.c: Likewise.
3096 * nat/linux-btrace.c: Likewise.
3097 * p-typeprint.c: Likewise.
3098 * procfs.c: Likewise.
3099 * remote-sim.c: Likewise.
3100 * rs6000-nat.c: Likewise.
3101 * target.c: Likewise.
3102 * typeprint.c: Likewise.
3103 * ui-file.c: Likewise.
3104 * valops.c: Likewise.
3105 * valprint.c: Likewise.
3107 2014-08-07 Gary Benson <gbenson@redhat.com>
3109 * common/common-defs.h: Include string.h.
3110 * aarch64-tdep.c: Do not include string.h.
3111 * ada-exp.y: Likewise.
3112 * ada-lang.c: Likewise.
3113 * ada-lex.l: Likewise.
3114 * ada-typeprint.c: Likewise.
3115 * ada-valprint.c: Likewise.
3116 * aix-thread.c: Likewise.
3117 * alpha-linux-tdep.c: Likewise.
3118 * alpha-mdebug-tdep.c: Likewise.
3119 * alpha-nat.c: Likewise.
3120 * alpha-osf1-tdep.c: Likewise.
3121 * alpha-tdep.c: Likewise.
3122 * alphanbsd-tdep.c: Likewise.
3123 * amd64-dicos-tdep.c: Likewise.
3124 * amd64-linux-tdep.c: Likewise.
3125 * amd64-nat.c: Likewise.
3126 * amd64-sol2-tdep.c: Likewise.
3127 * amd64fbsd-tdep.c: Likewise.
3128 * amd64obsd-tdep.c: Likewise.
3129 * arch-utils.c: Likewise.
3130 * arm-linux-nat.c: Likewise.
3131 * arm-linux-tdep.c: Likewise.
3132 * arm-tdep.c: Likewise.
3133 * arm-wince-tdep.c: Likewise.
3134 * armbsd-tdep.c: Likewise.
3135 * armnbsd-nat.c: Likewise.
3136 * armnbsd-tdep.c: Likewise.
3137 * armobsd-tdep.c: Likewise.
3138 * avr-tdep.c: Likewise.
3139 * ax-gdb.c: Likewise.
3140 * ax-general.c: Likewise.
3141 * bcache.c: Likewise.
3142 * bfin-tdep.c: Likewise.
3143 * breakpoint.c: Likewise.
3144 * build-id.c: Likewise.
3145 * buildsym.c: Likewise.
3146 * c-exp.y: Likewise.
3147 * c-lang.c: Likewise.
3148 * c-typeprint.c: Likewise.
3149 * c-valprint.c: Likewise.
3150 * charset.c: Likewise.
3151 * cli-out.c: Likewise.
3152 * cli/cli-cmds.c: Likewise.
3153 * cli/cli-decode.c: Likewise.
3154 * cli/cli-dump.c: Likewise.
3155 * cli/cli-interp.c: Likewise.
3156 * cli/cli-logging.c: Likewise.
3157 * cli/cli-script.c: Likewise.
3158 * cli/cli-setshow.c: Likewise.
3159 * cli/cli-utils.c: Likewise.
3160 * coffread.c: Likewise.
3161 * common/agent.c: Likewise.
3162 * common/buffer.c: Likewise.
3163 * common/buffer.h: Likewise.
3164 * common/common-utils.c: Likewise.
3165 * common/filestuff.c: Likewise.
3166 * common/filestuff.c: Likewise.
3167 * common/format.c: Likewise.
3168 * common/print-utils.c: Likewise.
3169 * common/rsp-low.c: Likewise.
3170 * common/signals.c: Likewise.
3171 * common/vec.h: Likewise.
3172 * common/xml-utils.c: Likewise.
3173 * core-regset.c: Likewise.
3174 * corefile.c: Likewise.
3175 * corelow.c: Likewise.
3176 * cp-abi.c: Likewise.
3177 * cp-name-parser.y: Likewise.
3178 * cp-support.c: Likewise.
3179 * cp-valprint.c: Likewise.
3180 * cris-tdep.c: Likewise.
3181 * d-exp.y: Likewise.
3182 * darwin-nat.c: Likewise.
3183 * dbxread.c: Likewise.
3184 * dcache.c: Likewise.
3185 * demangle.c: Likewise.
3186 * dicos-tdep.c: Likewise.
3187 * disasm.c: Likewise.
3188 * doublest.c: Likewise.
3189 * dsrec.c: Likewise.
3190 * dummy-frame.c: Likewise.
3191 * dwarf2-frame.c: Likewise.
3192 * dwarf2loc.c: Likewise.
3193 * dwarf2read.c: Likewise.
3194 * elfread.c: Likewise.
3195 * environ.c: Likewise.
3197 * event-loop.c: Likewise.
3198 * exceptions.c: Likewise.
3200 * expprint.c: Likewise.
3201 * f-exp.y: Likewise.
3202 * f-lang.c: Likewise.
3203 * f-typeprint.c: Likewise.
3204 * f-valprint.c: Likewise.
3205 * fbsd-nat.c: Likewise.
3206 * findcmd.c: Likewise.
3207 * findvar.c: Likewise.
3208 * fork-child.c: Likewise.
3209 * frame.c: Likewise.
3210 * frv-linux-tdep.c: Likewise.
3211 * frv-tdep.c: Likewise.
3213 * gdb_bfd.c: Likewise.
3214 * gdbarch.c: Likewise.
3215 * gdbarch.sh: Likewise.
3216 * gdbtypes.c: Likewise.
3217 * gnu-nat.c: Likewise.
3218 * gnu-v2-abi.c: Likewise.
3219 * gnu-v3-abi.c: Likewise.
3220 * go-exp.y: Likewise.
3221 * go-lang.c: Likewise.
3222 * go32-nat.c: Likewise.
3223 * guile/guile.c: Likewise.
3224 * guile/scm-auto-load.c: Likewise.
3225 * hppa-hpux-tdep.c: Likewise.
3226 * hppa-linux-nat.c: Likewise.
3227 * hppanbsd-tdep.c: Likewise.
3228 * hppaobsd-tdep.c: Likewise.
3229 * i386-cygwin-tdep.c: Likewise.
3230 * i386-dicos-tdep.c: Likewise.
3231 * i386-linux-tdep.c: Likewise.
3232 * i386-nto-tdep.c: Likewise.
3233 * i386-sol2-tdep.c: Likewise.
3234 * i386-tdep.c: Likewise.
3235 * i386bsd-tdep.c: Likewise.
3236 * i386gnu-nat.c: Likewise.
3237 * i386nbsd-tdep.c: Likewise.
3238 * i386obsd-tdep.c: Likewise.
3239 * i387-tdep.c: Likewise.
3240 * ia64-libunwind-tdep.c: Likewise.
3241 * ia64-linux-nat.c: Likewise.
3242 * inf-child.c: Likewise.
3243 * inf-ptrace.c: Likewise.
3244 * inf-ttrace.c: Likewise.
3245 * infcall.c: Likewise.
3246 * infcmd.c: Likewise.
3247 * inflow.c: Likewise.
3248 * infrun.c: Likewise.
3249 * interps.c: Likewise.
3250 * iq2000-tdep.c: Likewise.
3251 * irix5-nat.c: Likewise.
3252 * jv-exp.y: Likewise.
3253 * jv-lang.c: Likewise.
3254 * jv-typeprint.c: Likewise.
3255 * jv-valprint.c: Likewise.
3256 * language.c: Likewise.
3257 * linux-fork.c: Likewise.
3258 * linux-nat.c: Likewise.
3259 * lm32-tdep.c: Likewise.
3260 * m2-exp.y: Likewise.
3261 * m2-typeprint.c: Likewise.
3262 * m32c-tdep.c: Likewise.
3263 * m32r-linux-nat.c: Likewise.
3264 * m32r-linux-tdep.c: Likewise.
3265 * m32r-rom.c: Likewise.
3266 * m32r-tdep.c: Likewise.
3267 * m68hc11-tdep.c: Likewise.
3268 * m68k-tdep.c: Likewise.
3269 * m68kbsd-tdep.c: Likewise.
3270 * m68klinux-nat.c: Likewise.
3271 * m68klinux-tdep.c: Likewise.
3272 * m88k-tdep.c: Likewise.
3273 * machoread.c: Likewise.
3274 * macrocmd.c: Likewise.
3276 * mdebugread.c: Likewise.
3277 * mem-break.c: Likewise.
3278 * memattr.c: Likewise.
3279 * memory-map.c: Likewise.
3280 * mep-tdep.c: Likewise.
3281 * mi/mi-cmd-break.c: Likewise.
3282 * mi/mi-cmd-disas.c: Likewise.
3283 * mi/mi-cmd-env.c: Likewise.
3284 * mi/mi-cmd-stack.c: Likewise.
3285 * mi/mi-cmd-var.c: Likewise.
3286 * mi/mi-cmds.c: Likewise.
3287 * mi/mi-console.c: Likewise.
3288 * mi/mi-getopt.c: Likewise.
3289 * mi/mi-interp.c: Likewise.
3290 * mi/mi-main.c: Likewise.
3291 * mi/mi-parse.c: Likewise.
3292 * microblaze-rom.c: Likewise.
3293 * microblaze-tdep.c: Likewise.
3294 * mingw-hdep.c: Likewise.
3295 * minidebug.c: Likewise.
3296 * minsyms.c: Likewise.
3297 * mips-irix-tdep.c: Likewise.
3298 * mips-linux-tdep.c: Likewise.
3299 * mips-tdep.c: Likewise.
3300 * mips64obsd-tdep.c: Likewise.
3301 * mipsnbsd-tdep.c: Likewise.
3302 * mipsread.c: Likewise.
3303 * mn10300-linux-tdep.c: Likewise.
3304 * mn10300-tdep.c: Likewise.
3305 * monitor.c: Likewise.
3306 * moxie-tdep.c: Likewise.
3307 * mt-tdep.c: Likewise.
3308 * nat/linux-btrace.c: Likewise.
3309 * nat/linux-osdata.c: Likewise.
3310 * nat/linux-procfs.c: Likewise.
3311 * nat/linux-ptrace.c: Likewise.
3312 * nat/linux-waitpid.c: Likewise.
3313 * nbsd-tdep.c: Likewise.
3314 * nios2-linux-tdep.c: Likewise.
3315 * nto-procfs.c: Likewise.
3316 * nto-tdep.c: Likewise.
3317 * objc-lang.c: Likewise.
3318 * objfiles.c: Likewise.
3319 * opencl-lang.c: Likewise.
3320 * osabi.c: Likewise.
3321 * osdata.c: Likewise.
3322 * p-exp.y: Likewise.
3323 * p-lang.c: Likewise.
3324 * p-typeprint.c: Likewise.
3325 * parse.c: Likewise.
3326 * posix-hdep.c: Likewise.
3327 * ppc-linux-nat.c: Likewise.
3328 * ppc-sysv-tdep.c: Likewise.
3329 * ppcfbsd-tdep.c: Likewise.
3330 * ppcnbsd-tdep.c: Likewise.
3331 * ppcobsd-tdep.c: Likewise.
3332 * printcmd.c: Likewise.
3333 * procfs.c: Likewise.
3334 * prologue-value.c: Likewise.
3335 * python/py-auto-load.c: Likewise.
3336 * python/py-gdb-readline.c: Likewise.
3337 * ravenscar-thread.c: Likewise.
3338 * regcache.c: Likewise.
3339 * registry.c: Likewise.
3340 * remote-fileio.c: Likewise.
3341 * remote-m32r-sdi.c: Likewise.
3342 * remote-mips.c: Likewise.
3343 * remote-notif.c: Likewise.
3344 * remote-sim.c: Likewise.
3345 * remote.c: Likewise.
3346 * reverse.c: Likewise.
3347 * rs6000-aix-tdep.c: Likewise.
3348 * ser-base.c: Likewise.
3349 * ser-go32.c: Likewise.
3350 * ser-mingw.c: Likewise.
3351 * ser-pipe.c: Likewise.
3352 * ser-tcp.c: Likewise.
3353 * ser-unix.c: Likewise.
3354 * serial.c: Likewise.
3355 * sh-tdep.c: Likewise.
3356 * sh64-tdep.c: Likewise.
3357 * shnbsd-tdep.c: Likewise.
3359 * sol-thread.c: Likewise.
3360 * solib-dsbt.c: Likewise.
3361 * solib-frv.c: Likewise.
3362 * solib-osf.c: Likewise.
3363 * solib-som.c: Likewise.
3364 * solib-spu.c: Likewise.
3365 * solib-target.c: Likewise.
3366 * solib.c: Likewise.
3367 * somread.c: Likewise.
3368 * source.c: Likewise.
3369 * sparc-nat.c: Likewise.
3370 * sparc-sol2-tdep.c: Likewise.
3371 * sparc-tdep.c: Likewise.
3372 * sparc64-tdep.c: Likewise.
3373 * sparc64fbsd-tdep.c: Likewise.
3374 * sparc64nbsd-tdep.c: Likewise.
3375 * sparcnbsd-tdep.c: Likewise.
3376 * spu-linux-nat.c: Likewise.
3377 * spu-multiarch.c: Likewise.
3378 * spu-tdep.c: Likewise.
3379 * stabsread.c: Likewise.
3380 * stack.c: Likewise.
3381 * std-regs.c: Likewise.
3382 * symfile.c: Likewise.
3383 * symmisc.c: Likewise.
3384 * symtab.c: Likewise.
3385 * target.c: Likewise.
3386 * thread.c: Likewise.
3387 * tilegx-linux-nat.c: Likewise.
3388 * tilegx-tdep.c: Likewise.
3390 * tracepoint.c: Likewise.
3391 * tui/tui-command.c: Likewise.
3392 * tui/tui-data.c: Likewise.
3393 * tui/tui-disasm.c: Likewise.
3394 * tui/tui-file.c: Likewise.
3395 * tui/tui-layout.c: Likewise.
3396 * tui/tui-out.c: Likewise.
3397 * tui/tui-regs.c: Likewise.
3398 * tui/tui-source.c: Likewise.
3399 * tui/tui-stack.c: Likewise.
3400 * tui/tui-win.c: Likewise.
3401 * tui/tui-windata.c: Likewise.
3402 * tui/tui-winsource.c: Likewise.
3403 * typeprint.c: Likewise.
3404 * ui-file.c: Likewise.
3405 * ui-out.c: Likewise.
3406 * user-regs.c: Likewise.
3407 * utils.c: Likewise.
3408 * v850-tdep.c: Likewise.
3409 * valarith.c: Likewise.
3410 * valops.c: Likewise.
3411 * valprint.c: Likewise.
3412 * value.c: Likewise.
3413 * varobj.c: Likewise.
3414 * vax-tdep.c: Likewise.
3415 * vaxnbsd-tdep.c: Likewise.
3416 * vaxobsd-tdep.c: Likewise.
3417 * windows-nat.c: Likewise.
3418 * xcoffread.c: Likewise.
3419 * xml-support.c: Likewise.
3420 * xstormy16-tdep.c: Likewise.
3421 * xtensa-linux-nat.c: Likewise.
3423 2014-08-07 Gary Benson <gbenson@redhat.com>
3425 * common/common-defs.h: Include gdb_assert.h.
3426 * aarch64-tdep.c: Do not include gdb_assert.h.
3427 * addrmap.c: Likewise.
3428 * aix-thread.c: Likewise.
3429 * alpha-linux-tdep.c: Likewise.
3430 * alpha-mdebug-tdep.c: Likewise.
3431 * alphanbsd-tdep.c: Likewise.
3432 * amd64-nat.c: Likewise.
3433 * amd64-tdep.c: Likewise.
3434 * amd64bsd-nat.c: Likewise.
3435 * amd64fbsd-nat.c: Likewise.
3436 * amd64fbsd-tdep.c: Likewise.
3437 * amd64nbsd-nat.c: Likewise.
3438 * amd64nbsd-tdep.c: Likewise.
3439 * amd64obsd-nat.c: Likewise.
3440 * amd64obsd-tdep.c: Likewise.
3441 * arch-utils.c: Likewise.
3442 * arm-tdep.c: Likewise.
3443 * armbsd-tdep.c: Likewise.
3445 * bcache.c: Likewise.
3446 * bfin-tdep.c: Likewise.
3447 * blockframe.c: Likewise.
3448 * breakpoint.c: Likewise.
3449 * bsd-kvm.c: Likewise.
3450 * bsd-uthread.c: Likewise.
3451 * buildsym.c: Likewise.
3452 * c-exp.y: Likewise.
3453 * c-lang.c: Likewise.
3454 * charset.c: Likewise.
3455 * cleanups.c: Likewise.
3456 * cli-out.c: Likewise.
3457 * cli/cli-decode.c: Likewise.
3458 * cli/cli-dump.c: Likewise.
3459 * cli/cli-logging.c: Likewise.
3460 * cli/cli-script.c: Likewise.
3461 * cli/cli-utils.c: Likewise.
3462 * coffread.c: Likewise.
3463 * common/common-utils.c: Likewise.
3464 * common/queue.h: Likewise.
3465 * common/signals.c: Likewise.
3466 * common/vec.h: Likewise.
3467 * complaints.c: Likewise.
3468 * completer.c: Likewise.
3469 * corelow.c: Likewise.
3470 * cp-abi.c: Likewise.
3471 * cp-name-parser.y: Likewise.
3472 * cp-namespace.c: Likewise.
3473 * cp-support.c: Likewise.
3474 * cris-tdep.c: Likewise.
3475 * dbxread.c: Likewise.
3476 * dictionary.c: Likewise.
3477 * doublest.c: Likewise.
3478 * dsrec.c: Likewise.
3479 * dummy-frame.c: Likewise.
3480 * dwarf2-frame-tailcall.c: Likewise.
3481 * dwarf2-frame.c: Likewise.
3482 * dwarf2expr.c: Likewise.
3483 * dwarf2loc.c: Likewise.
3484 * dwarf2read.c: Likewise.
3486 * event-loop.c: Likewise.
3487 * exceptions.c: Likewise.
3488 * expprint.c: Likewise.
3489 * f-valprint.c: Likewise.
3490 * fbsd-nat.c: Likewise.
3491 * findvar.c: Likewise.
3492 * frame-unwind.c: Likewise.
3493 * frame.c: Likewise.
3494 * frv-tdep.c: Likewise.
3495 * gcore.c: Likewise.
3496 * gdb-dlfcn.c: Likewise.
3497 * gdb_bfd.c: Likewise.
3498 * gdbarch.c: Likewise.
3499 * gdbarch.sh: Likewise.
3500 * gdbtypes.c: Likewise.
3501 * gnu-nat.c: Likewise.
3502 * gnu-v3-abi.c: Likewise.
3503 * go-lang.c: Likewise.
3504 * guile/scm-exception.c: Likewise.
3505 * guile/scm-gsmob.c: Likewise.
3506 * guile/scm-lazy-string.c: Likewise.
3507 * guile/scm-math.c: Likewise.
3508 * guile/scm-pretty-print.c: Likewise.
3509 * guile/scm-safe-call.c: Likewise.
3510 * guile/scm-utils.c: Likewise.
3511 * guile/scm-value.c: Likewise.
3512 * h8300-tdep.c: Likewise.
3513 * hppa-hpux-nat.c: Likewise.
3514 * hppa-tdep.c: Likewise.
3515 * hppanbsd-tdep.c: Likewise.
3516 * hppaobsd-tdep.c: Likewise.
3517 * i386-darwin-nat.c: Likewise.
3518 * i386-darwin-tdep.c: Likewise.
3519 * i386-nto-tdep.c: Likewise.
3520 * i386-tdep.c: Likewise.
3521 * i386bsd-nat.c: Likewise.
3522 * i386fbsd-tdep.c: Likewise.
3523 * i386gnu-nat.c: Likewise.
3524 * i386nbsd-tdep.c: Likewise.
3525 * i386obsd-tdep.c: Likewise.
3526 * i387-tdep.c: Likewise.
3527 * ia64-libunwind-tdep.c: Likewise.
3528 * ia64-tdep.c: Likewise.
3529 * inf-ptrace.c: Likewise.
3530 * inf-ttrace.c: Likewise.
3531 * infcall.c: Likewise.
3532 * infcmd.c: Likewise.
3533 * infrun.c: Likewise.
3534 * inline-frame.c: Likewise.
3535 * interps.c: Likewise.
3536 * jv-lang.c: Likewise.
3537 * jv-typeprint.c: Likewise.
3538 * linux-fork.c: Likewise.
3539 * linux-nat.c: Likewise.
3540 * linux-thread-db.c: Likewise.
3541 * m32c-tdep.c: Likewise.
3542 * m32r-linux-nat.c: Likewise.
3543 * m32r-tdep.c: Likewise.
3544 * m68k-tdep.c: Likewise.
3545 * m68kbsd-nat.c: Likewise.
3546 * m68kbsd-tdep.c: Likewise.
3547 * m88k-tdep.c: Likewise.
3548 * machoread.c: Likewise.
3549 * macroexp.c: Likewise.
3550 * macrotab.c: Likewise.
3551 * maint.c: Likewise.
3552 * mdebugread.c: Likewise.
3553 * memory-map.c: Likewise.
3554 * mep-tdep.c: Likewise.
3555 * mi/mi-common.c: Likewise.
3556 * microblaze-tdep.c: Likewise.
3557 * mingw-hdep.c: Likewise.
3558 * mips-linux-nat.c: Likewise.
3559 * mips-linux-tdep.c: Likewise.
3560 * mips-tdep.c: Likewise.
3561 * mips64obsd-tdep.c: Likewise.
3562 * mipsnbsd-tdep.c: Likewise.
3563 * mn10300-linux-tdep.c: Likewise.
3564 * mn10300-tdep.c: Likewise.
3565 * moxie-tdep.c: Likewise.
3566 * mt-tdep.c: Likewise.
3567 * nat/linux-btrace.c: Likewise.
3568 * nat/linux-osdata.c: Likewise.
3569 * nat/linux-ptrace.c: Likewise.
3570 * nat/mips-linux-watch.c: Likewise.
3571 * nios2-linux-tdep.c: Likewise.
3572 * nios2-tdep.c: Likewise.
3573 * objc-lang.c: Likewise.
3574 * objfiles.c: Likewise.
3575 * obsd-nat.c: Likewise.
3576 * opencl-lang.c: Likewise.
3577 * osabi.c: Likewise.
3578 * parse.c: Likewise.
3579 * ppc-linux-nat.c: Likewise.
3580 * ppc-sysv-tdep.c: Likewise.
3581 * ppcfbsd-nat.c: Likewise.
3582 * ppcfbsd-tdep.c: Likewise.
3583 * ppcnbsd-nat.c: Likewise.
3584 * ppcnbsd-tdep.c: Likewise.
3585 * ppcobsd-nat.c: Likewise.
3586 * ppcobsd-tdep.c: Likewise.
3587 * printcmd.c: Likewise.
3588 * procfs.c: Likewise.
3589 * prologue-value.c: Likewise.
3590 * psymtab.c: Likewise.
3591 * python/py-lazy-string.c: Likewise.
3592 * python/py-value.c: Likewise.
3593 * regcache.c: Likewise.
3594 * reggroups.c: Likewise.
3595 * registry.c: Likewise.
3596 * remote-sim.c: Likewise.
3597 * remote.c: Likewise.
3598 * rs6000-aix-tdep.c: Likewise.
3599 * rs6000-tdep.c: Likewise.
3600 * s390-linux-tdep.c: Likewise.
3601 * score-tdep.c: Likewise.
3602 * ser-base.c: Likewise.
3603 * ser-mingw.c: Likewise.
3604 * sh-tdep.c: Likewise.
3605 * sh64-tdep.c: Likewise.
3606 * solib-darwin.c: Likewise.
3607 * solib-spu.c: Likewise.
3608 * solib-svr4.c: Likewise.
3609 * source.c: Likewise.
3610 * sparc-nat.c: Likewise.
3611 * sparc-sol2-tdep.c: Likewise.
3612 * sparc-tdep.c: Likewise.
3613 * sparc64-sol2-tdep.c: Likewise.
3614 * sparc64-tdep.c: Likewise.
3615 * sparc64fbsd-tdep.c: Likewise.
3616 * sparc64nbsd-tdep.c: Likewise.
3617 * sparc64obsd-tdep.c: Likewise.
3618 * sparcnbsd-tdep.c: Likewise.
3619 * sparcobsd-tdep.c: Likewise.
3620 * spu-multiarch.c: Likewise.
3621 * spu-tdep.c: Likewise.
3622 * stabsread.c: Likewise.
3623 * stack.c: Likewise.
3624 * symfile.c: Likewise.
3625 * symtab.c: Likewise.
3626 * target-descriptions.c: Likewise.
3627 * target-memory.c: Likewise.
3628 * target.c: Likewise.
3629 * tic6x-linux-tdep.c: Likewise.
3630 * tic6x-tdep.c: Likewise.
3631 * tilegx-linux-nat.c: Likewise.
3632 * tilegx-tdep.c: Likewise.
3634 * tramp-frame.c: Likewise.
3635 * tui/tui-out.c: Likewise.
3636 * tui/tui-winsource.c: Likewise.
3637 * ui-out.c: Likewise.
3638 * user-regs.c: Likewise.
3639 * utils.c: Likewise.
3640 * v850-tdep.c: Likewise.
3641 * valops.c: Likewise.
3642 * value.c: Likewise.
3643 * varobj.c: Likewise.
3644 * vax-nat.c: Likewise.
3645 * xml-syscall.c: Likewise.
3646 * xml-tdesc.c: Likewise.
3647 * xstormy16-tdep.c: Likewise.
3648 * xtensa-linux-nat.c: Likewise.
3649 * xtensa-tdep.c: Likewise.
3651 2014-08-07 Gary Benson <gbenson@redhat.com>
3653 * common/common-defs.h: Include common-utils.h.
3654 * defs.h: Do not include common-utils.h.
3655 * common/gdb_assert.h: Likewise.
3656 * darwin-nat.h: Likewise.
3657 * nat/linux-btrace.c: Likewise.
3658 * target/waitstatus.h: Likewise.
3660 2014-08-07 Gary Benson <gbenson@redhat.com>
3662 * common/common-defs.h: Include ptid.h.
3663 * defs.h: Do not include ptid.h.
3664 * inferior.h: Likewise.
3665 * infrun.h: Likewise.
3666 * nat/linux-btrace.h: Likewise.
3667 * nat/linux-osdata.h: Likewise.
3668 * target/waitstatus.h: Likewise.
3670 2014-08-07 Gary Benson <gbenson@redhat.com>
3672 * common/common-defs.h: Include gdb_locale.h.
3673 * defs.h: Do not include gdb_locale.h.
3675 2014-08-07 Gary Benson <gbenson@redhat.com>
3677 * common/common-defs.h: Include gdb/signals.h.
3678 * defs.h: Do not include gdb/signals.h.
3680 2014-08-07 Gary Benson <gbenson@redhat.com>
3682 * common/common-defs.h: Include pathmax.h.
3683 * defs.h: Do not include pathmax.h.
3685 2014-08-07 Gary Benson <gbenson@redhat.com>
3687 * common/common-defs.h: Include libiberty.h.
3688 * defs.h: Do not include libiberty.h.
3689 * common/queue.h: Likewise.
3690 * cp-name-parser.y: Likewise.
3691 * mi/mi-cmd-catch.c: Likewise.
3692 * python/python.c: Likewise.
3694 2014-08-07 Gary Benson <gbenson@redhat.com>
3696 * common/common-defs.h: Include ansidecl.h.
3697 * defs.h: Do not include ansidecl.h.
3698 * common/buffer.h: Likewise.
3699 * common/common-utils.h: Likewise.
3701 2014-08-07 Gary Benson <gbenson@redhat.com>
3703 * common/common-defs.h: Include stddef.h.
3704 * defs.h: Do not include stddef.h.
3705 * common/common-utils.h: Likewise.
3706 * amd64fbsd-nat.c: Likewise.
3707 * bcache.c: Likewise.
3708 * charset.c: Likewise.
3709 * common/buffer.h: Likewise.
3710 * common/vec.h: Likewise.
3711 * i386bsd-nat.c: Likewise.
3712 * nat/linux-btrace.h: Likewise.
3713 * ppcfbsd-nat.c: Likewise.
3714 * ppcnbsd-tdep.h: Likewise.
3715 * ppcobsd-nat.c: Likewise.
3716 * ppcobsd-tdep.h: Likewise.
3717 * python/py-gdb-readline.c: Likewise.
3719 2014-08-07 Gary Benson <gbenson@redhat.com>
3721 * common/common-defs.h: Include stdarg.h.
3722 * defs.h: Do not include stdarg.h.
3723 * ada-lang.c: Likewise.
3724 * common/common-utils.h: Likewise.
3725 * guile/scm-string.c: Likewise.
3726 * guile/scm-utils.c: Likewise.
3727 * m32c-tdep.c: Likewise.
3729 2014-08-07 Gary Benson <gbenson@redhat.com>
3731 * common/common-defs.h: Include stdlib.h.
3732 * defs.h: Do not include stdlib.h.
3733 * addrmap.c: Likewise.
3734 * bcache.c: Likewise.
3735 * common/buffer.c: Likewise.
3736 * common/common-utils.c: Likewise.
3737 * cp-name-parser.y: Likewise.
3738 * go32-nat.c: Likewise.
3739 * mn10300-linux-tdep.c: Likewise.
3740 * nat/linux-osdata.c: Likewise.
3741 * tui/tui.c: Likewise.
3742 * windows-nat.c: Likewise.
3744 2014-08-07 Gary Benson <gbenson@redhat.com>
3746 * common/common-defs.h: Include stdio.h.
3747 * defs.h: Do not include stdio.h.
3748 * ada-lang.c: Likewise.
3749 * common/buffer.c: Likewise.
3750 * common/common-utils.c: Likewise.
3751 * cp-name-parser.y: Likewise.
3752 * gnu-nat.c: Likewise.
3753 * go32-nat.c: Likewise.
3754 * i386gnu-nat.c: Likewise.
3755 * proc-api.c: Likewise.
3756 * proc-events.c: Likewise.
3757 * proc-flags.c: Likewise.
3758 * proc-why.c: Likewise.
3759 * python/python-internal.h: Likewise.
3760 * target-memory.c: Likewise.
3761 * tui/tui-io.c: Likewise.
3762 * tui/tui.c: Likewise.
3764 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3766 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3767 (scan_dyntag_auxv): Same.
3769 2014-08-06 Yao Qi <yao@codesourcery.com>
3771 * amd64-linux-nat.c: Remove duplicated include
3773 * i386-linux-nat.c: Likewise.
3775 2014-08-06 Yao Qi <yao@codesourcery.com>
3777 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3778 operand" with "Special opcode" in comments.
3780 2014-08-05 Gary Benson <gbenson@redhat.com>
3782 * interps.c (initialize_interps): Remove prototype.
3783 (interpreter_initialized): Remove static global.
3784 (interp_add): Do not call initialize_interps.
3785 (initialize_interps): Remove function.
3787 2014-08-05 Gary Benson <gbenson@redhat.com>
3789 * utils.c (vwarning): Remove spurious va_end.
3791 2014-08-05 Alan Modra <amodra@gmail.com>
3793 * charset.c (convert_between_encodings): Cast result of obstack_base.
3794 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3795 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3796 (read_unwind_info): Use size_t for some locals.
3797 * jit.c (finalize_symtab): Likewise.
3798 * utils.c (hashtab_obstack_allocate): Likewise.
3799 * symmisc.c (print_objfile_statistics): Update format strings.
3801 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3803 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3804 (Changes in GDB 7.8): ... here.
3806 2014-08-04 Tom Tromey <tromey@redhat.com>
3808 * target.c (set_targetdebug): New function.
3809 (initialize_targets): Pass set_targetdebug when creating "set
3812 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3814 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3815 if detecting a variable-sized field that is not the last field.
3816 Fix struct type length computation.
3818 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3820 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3823 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3825 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3826 Remove "+ 8" offset in computation of CHAIN_VMA.
3828 2014-07-31 Doug Evans <dje@google.com>
3830 * inflow.c (child_terminal_inferior): Add comment.
3831 (child_terminal_ours_for_output): Add comment.
3832 (child_terminal_ours): Add comment.
3833 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3834 (linux_nat_terminal_ours): Add comment.
3836 2014-07-31 Gary Benson <gbenson@redhat.com>
3838 * common/btrace-common.h: Do not include defs.h or server.h.
3839 * nat/mips-linux-watch.h: Likewise.
3840 * gdb-dlfcn.h: Do not include defs.h.
3841 * tracefile.h: Likewise.
3843 2014-07-30 Roland McGrath <mcgrathr@google.com>
3845 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3847 2014-07-30 Tom Tromey <tromey@redhat.com>
3849 * bsd-kvm.c (bsd_kvm_open): Constify.
3850 * corelow.c (core_open): Constify.
3851 * ctf.c (ctf_open): Constify.
3852 * dbug-rom.c (dbug_open): Constify.
3853 * exec.c (exec_open): Constify.
3854 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3855 * microblaze-rom.c (picobug_open): Constify.
3856 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3858 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3859 * record-btrace.c (record_btrace_open): Constify.
3860 * record-full.c (record_full_core_open_1, record_full_open_1)
3861 (record_full_open): Constify.
3862 * remote-m32r-sdi.c (m32r_open): Constify.
3863 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3864 (rockhopper_open, lsi_open): Constify.
3865 * remote-sim.c (gdbsim_open): Constify.
3866 * remote.c (remote_open, extended_remote_open, remote_open_1):
3868 * target.h (struct target_ops) <to_open>: Make "arg" const.
3869 * tracefile-tfile.c (tfile_open): Constify.
3871 2014-07-30 Tom Tromey <tromey@redhat.com>
3873 * breakpoint.c (map_breakpoint_numbers): Update.
3874 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3875 (get_number_const): New function.
3876 (get_number): Rewrite using get_number_const.
3877 (init_number_or_range): Make "string" const.
3878 (number_is_in_list): Make "list" const.
3879 * cli/cli-utils.h (get_number_const): Declare.
3880 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3881 (init_number_or_range, number_is_in_list): Update.
3882 * printcmd.c (map_display_numbers): Update.
3883 * value.c (value_from_history_ref): Constify.
3884 * value.h (value_from_history_ref): Update.
3886 2014-07-30 Tom Tromey <tromey@redhat.com>
3888 * corefile.c (hook_type, call_extra_exec_file_hooks)
3889 (specify_exec_file_hook): Constify.
3890 * exec.c (exec_file_attach): Make "filename" const.
3891 * gdbcore.h (deprecated_exec_file_display_hook)
3892 (specify_exec_file_hook, exec_file_attach): Constify.
3893 * main.c (captured_main): Use catch_command_errors_const.
3895 2014-07-30 Tom Tromey <tromey@redhat.com>
3897 * target.c (open_target): New function.
3898 (add_target_with_completer, add_deprecated_target_alias): Use
3899 set_cmd_sfunc, set_cmd_context.
3900 (debug_to_open): Remove.
3901 (setup_target_debug): Update.
3903 2014-07-30 Yao Qi <yao@codesourcery.com>
3905 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3907 * parse.c (exp_iterate): Update comments.
3909 2014-07-30 Gary Benson <gbenson@redhat.com>
3911 * common/common-defs.h: New file.
3912 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3913 * defs.h: Include common-defs.h.
3914 Do not include config.h or build-gnulib/config.h.
3916 2014-07-30 Gary Benson <gbenson@redhat.com>
3918 * common/common-utils.h: Do not include config.h.
3919 * nat/linux-btrace.h: Likewise.
3921 2014-07-30 Gary Benson <gbenson@redhat.com>
3923 * btrace.c: Include defs.h.
3924 * common/ptid.c: Include defs.h or server.h as appropriate.
3925 * nat/mips-linux-watch.c: Likewise.
3927 2014-07-29 Tom Tromey <tromey@redhat.com>
3929 * target.c (target_is_pushed): Simplify.
3931 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3935 2014-07-29 Yao Qi <yao@codesourcery.com>
3938 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3940 2014-07-28 Doug Evans <xdje42@gmail.com>
3943 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3944 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3947 2014-07-28 Will Newton <will.newton@linaro.org>
3949 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3950 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3951 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3952 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3953 (THUMB2_EABI_SYSCALL): Likewise.
3954 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3956 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3957 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3959 2014-07-27 Doug Evans <xdje42@gmail.com>
3961 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3963 2014-07-27 Doug Evans <xdje42@gmail.com>
3965 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3967 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3968 Doug Evans <xdje42@gmail.com>
3971 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3972 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3973 * configure.ac: Try to use guild to compile an scm file, if it fails
3974 then disable guile support.
3975 * configure: Regenerate.
3976 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3978 (GUILE_COMPILED_FILES): New variable.
3979 (GUILE_FILES) Update.
3980 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3981 (stamp-guile): Compile scm files.
3982 * guile/guile.c (boot_guile_support): New function.
3983 (standard_throw_args_p): New function.
3984 (print_standard_throw_error, print_throw_error): New functions.
3985 (handle_boot_error): New function.
3986 (initialize_scheme_side): Rewrite to call boot_guile_support.
3987 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3988 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3990 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3991 Doug Evans <xdje42@gmail.com>
3994 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3995 * guile/lib/gdb/support.scm: New file.
3996 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3997 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3999 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4001 (%assert-type): Ditto, and renamed to assert-type.
4002 (%exception-print-style): Delete.
4004 2014-07-26 Doug Evans <xdje42@gmail.com>
4007 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4008 * configure: Regenerate.
4009 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4011 (PYTHON_FILES): New variable.
4012 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4013 (GUILE_FILES): New variable.
4014 (stamp-python, install-python, uninstall-python): Handle empty
4016 (stamp-guile, install-guile, uninstall-guile): Ditto.
4018 2014-07-26 Doug Evans <xdje42@gmail.com>
4021 * guile/lib/gdb.scm (pretty-printers): Export.
4022 (set-pretty-printers!): Export.
4023 * guile/lib/gdb/printing.scm (gdb module): Update.
4024 (prepend-pretty-printer!, append-pretty-printer!): Update.
4025 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4026 (pretty_printer_list_var): Delete.
4027 (pretty_printer_list): New static global.
4028 (gdbscm_pretty_printers): New function.
4029 (gdbscm_set_pretty_printers_x): New function.
4030 (ppscm_find_pretty_printer_from_gdb): Update.
4031 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4032 (gdbscm_initialize_pretty_printers): Update.
4034 2014-07-26 Doug Evans <xdje42@gmail.com>
4037 * configure.ac: Add check for header gc/gc.h.
4038 Add check for function setenv.
4039 * configure: Regenerate.
4040 * config.in: Regenerate.
4041 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4043 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4045 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4046 variation in gdbarch matching.
4048 2014-07-25 Tom Tromey <tromey@redhat.com>
4050 * exec.c (using_exec_ops): Remove.
4051 (exec_close_1): Update. Remove extraneous block, reindent.
4052 (add_target_sections): Use target_is_pushed.
4054 2014-07-25 Pedro Alves <palves@redhat.com>
4056 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4057 * monitor.c (monitor_create_inferior): Likewise.
4058 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4059 * remote-sim.c (gdbsim_create_inferior): Likewise.
4060 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4061 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4062 * windows-nat.c (do_initial_windows_stuff): Likewise.
4064 2014-07-25 Pedro Alves <palves@redhat.com>
4066 * NEWS: Mention signal passing and "signal" command changes.
4067 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4069 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4071 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4072 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4073 (jump_command): Adjust clear_proceed_status call.
4074 (signal_command): Warn if other thread that are resumed have
4075 signals that will be delivered. Adjust clear_proceed_status call.
4076 (until_next_command, finish_command)
4077 (proceed_after_attach_callback, attach_command_post_wait)
4078 (attach_command): Adjust clear_proceed_status call.
4079 * infrun.c (proceed_after_vfork_done): Likewise.
4080 (proceed_after_attach_callback): Adjust comment.
4081 (clear_proceed_status_thread): Clear stop_signal if not in pass
4083 (clear_proceed_status_callback): Delete.
4084 (clear_proceed_status): New 'step' parameter. Only clear the
4085 proceed status of threads the command being prepared is about to
4087 (proceed): If passed in an explicit signal, override stop_signal
4088 with it. Don't pass the last stop signal to the thread we're
4090 (init_wait_for_inferior): Adjust clear_proceed_status call.
4091 (switch_back_to_stepped_thread): Clear the signal if it should not
4093 * infrun.h (clear_proceed_status): New 'step' parameter.
4094 (user_visible_resume_ptid): Add comment.
4095 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4096 signal is in pass state.
4097 * remote.c (append_pending_thread_resumptions): Likewise.
4098 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4100 2014-07-25 Tom Tromey <tromey@redhat.com>
4102 * target.h (target_stopped_data_address)
4103 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4106 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4108 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4110 (avr_pointer_to_address): Likewise.
4112 2014-07-24 Tom Tromey <tromey@redhat.com>
4114 * monitor.c (compile_pattern): Update.
4115 * target.h (struct target_ops) <to_shortname, to_longname,
4118 2014-07-24 Tom Tromey <tromey@redhat.com>
4120 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4121 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4122 (add_info_alias, add_com): Make "doc" const.
4123 (print_doc_line): Make "str" const.
4124 (delete_cmd): Update.
4125 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4126 (print_doc_line): Update.
4127 * cli/cli-script.c (document_command): Update.
4128 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4129 (add_com, add_info, add_info_alias): Update.
4130 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4131 * python/py-cmd.c (cmdpy_destroyer): Update.
4133 2014-07-24 Tom Tromey <tromey@redhat.com>
4135 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4136 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4137 (help_cmd_list): Constify.
4138 (lookup_cmd): Update.
4139 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4141 (help_cmd_list, apropos_cmd): Update.
4142 * cli/cli-script.c (show_user): Update.
4143 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4144 * cli/cli-setshow.h (cmd_show_list): Update.
4145 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4146 (cmd_show_list): Update.
4147 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4148 * python/py-cmd.c (cmdpy_destroyer): Update.
4150 2014-07-24 Tom Tromey <tromey@redhat.com>
4152 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4153 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4155 * command.h (deprecate_cmd): Update.
4156 * maint.c (maintenance_do_deprecate): Add casts.
4158 2014-07-24 Tom Tromey <tromey@redhat.com>
4160 * cli/cli-decode.c (help_cmd): Make parameter "const".
4161 * cli/cli-decode.h (help_cmd): Update.
4163 2014-07-24 Tom Tromey <tromey@redhat.com>
4165 * stack.c (up_silently_base, down_silently_base): Make argument
4168 2014-07-24 Tom Tromey <tromey@redhat.com>
4170 * solib.c (solib_add): Make "pattern" const.
4171 * solib.h (solib_add): Update.
4173 2014-07-24 Tom Tromey <tromey@redhat.com>
4175 * remote.c (remote_serial_open, print_packet, putpkt)
4176 (putpkt_binary): Constify.
4177 * remote.h (putpkt): Update.
4179 2014-07-24 Tom Tromey <tromey@redhat.com>
4181 * monitor.c (monitor_open): Make "args" const.
4182 * monitor.h (monitor_open): Update.
4184 2014-07-24 Tom Tromey <tromey@redhat.com>
4186 * maint.c (match_bfd_flags): Make "string" const.
4187 (print_bfd_section_info): Remove casts.
4188 (print_objfile_section_info): Make "string" const.
4190 2014-07-24 Tom Tromey <tromey@redhat.com>
4192 * inf-child.c (inf_child_open_target): Make "arg" const.
4193 * inf-child.h (inf_child_open_target): Update.
4195 2014-07-24 Tom Tromey <tromey@redhat.com>
4197 * environ.c (unset_in_environ): Make "var" const.
4198 * environ.h (unset_in_environ): Update.
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4202 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4204 (scan_filename_with_cleanup): Likewise.
4205 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4206 Make arguments const.
4207 (restore_command): Update.
4209 2014-07-24 Pedro Alves <palves@redhat.com>
4211 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4213 2014-07-24 Tom Tromey <tromey@redhat.com>
4214 Gary Benson <gbenson@redhat.com>
4216 * nat/linux-ptrace.c (additional_flags): New global.
4217 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4218 additional_flags; don't check GDBSERVER.
4219 (linux_ptrace_set_additional_flags): New function.
4220 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4222 * linux-nat.c (_initialize_linux_nat): Call
4223 linux_ptrace_set_additional_flags.
4225 2014-07-24 Tom Tromey <tromey@redhat.com>
4227 * make-target-delegates (munge_type, write_debugmethod): New
4229 (debug_names): New global.
4230 ($TARGET_DEBUG_PRINTER): New global.
4231 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4233 Write debug methods. Generate init_debug_target.
4234 * target-debug.h: New file.
4235 * target-delegates.c: Rebuild.
4236 * target.c: Include target-debug.h.
4237 (debug_target): Hoist definition.
4238 (target_kill, target_get_section_table, target_memory_map)
4239 (target_flash_erase, target_flash_done, target_detach)
4240 (target_disconnect, target_wait, target_resume)
4241 (target_pass_signals, target_program_signals, target_follow_fork)
4242 (target_mourn_inferior, target_search_memory)
4243 (target_thread_address_space, target_close)
4244 (target_find_new_threads, target_core_of_thread)
4245 (target_verify_memory, target_insert_mask_watchpoint)
4246 (target_remove_mask_watchpoint): Remove targetdebug code.
4247 (debug_to_post_attach, debug_to_prepare_to_store)
4248 (debug_to_files_info, debug_to_insert_breakpoint)
4249 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4250 (debug_to_region_ok_for_hw_watchpoint)
4251 (debug_to_can_accel_watchpoint_condition)
4252 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4253 (debug_to_watchpoint_addr_within_range)
4254 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4255 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4256 (debug_to_terminal_init, debug_to_terminal_inferior)
4257 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4258 (debug_to_terminal_save_ours, debug_to_terminal_info)
4259 (debug_to_load, debug_to_post_startup_inferior)
4260 (debug_to_insert_fork_catchpoint)
4261 (debug_to_remove_fork_catchpoint)
4262 (debug_to_insert_vfork_catchpoint)
4263 (debug_to_remove_vfork_catchpoint)
4264 (debug_to_insert_exec_catchpoint)
4265 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4266 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4267 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4268 (setup_target_debug): Call init_debug_target.
4269 * target.h (TARGET_DEBUG_PRINTER): New macro.
4270 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4271 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4273 2014-07-24 Gary Benson <gbenson@redhat.com>
4275 * exceptions.h (throw_vfatal): Renamed to...
4276 (throw_vquit): New declaration.
4277 (throw_quit): Likewise.
4278 * exceptions.c (throw_vfatal): Renamed to...
4279 (throw_vquit): New function.
4280 (throw_quit): Likewise.
4281 (throw_error): Call throw_verror rather than throw_it.
4282 * utils.h (vfatal): Removed.
4284 * utils.c (vfatal): Removed.
4286 (internal_verror): Replaced call to fatal with call to throw_quit.
4287 (quit): Replaced calls to fatal with calls to throw_quit.
4289 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4291 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4294 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4296 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4297 less than zero in conditional expression.
4299 2014-07-23 Tom Tromey <tromey@redhat.com>
4301 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4302 ($INTRO_PART): Don't match whitespace.
4303 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4305 ($METHOD): Add $METHOD_TRAILER.
4307 (scan_target_h): New sub.
4308 Change main loop not to collect state.
4309 * target-delegates.c: Rebuild.
4311 2014-07-23 Gary Benson <gbenson@redhat.com>
4313 * cp-support.c (gdb_demangle): Fix build on systems without
4316 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4319 for reference entry value target data value.
4321 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4323 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4324 value_available_contents_eq.
4326 2014-07-22 Pedro Alves <palves@redhat.com>
4328 * value.c (allocate_optimized_out_value): Don't mark value as
4331 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4333 * MAINTAINERS (Write After Approval): Update my email address.
4335 2014-07-20 Doug Evans <dje@google.com>
4338 * remote.c (putpkt_binary): Add text to error message.
4340 2014-07-20 Yao Qi <yao@codesourcery.com>
4342 * eval.c: Remove "Chill" from comments.
4343 * gdbtypes.h: Likewise.
4344 * symtab.h: Likewise.
4346 2014-07-20 Yao Qi <yao@codesourcery.com>
4348 * std-operator.def: Update comments to TERNOP_SLICE.
4350 2014-07-20 Yao Qi <yao@codesourcery.com>
4352 * std-operator.def: Remove BINOP_RANGE.
4353 * breakpoint.c (watchpoint_exp_is_const): Update.
4354 * expprint.c (dump_subexp_body_standard): Likewise.
4355 * eval.c (init_array_element): Remove dead code.
4356 (evaluate_subexp_standard): Likewise.
4358 2014-07-20 Yao Qi <yao@codesourcery.com>
4360 * std-operator.def: Remove BINOP_IN.
4361 * breakpoint.c (watchpoint_exp_is_const): Update.
4362 * eval.c (evaluate_subexp_standard): Likewise.
4363 * expprint.c (dump_subexp_body_standard): Likewise.
4365 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4367 * microblaze-tdep.c (microblaze_register_names): Add
4368 the rshr and rslr register names.
4369 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4370 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4371 Use of tdesc_numbered_register. Use of
4372 microblaze_register_g_packet_guesses. Use of
4373 tdesc_use_registers. Use of set_gdbarch_register_type.
4374 (microblaze_register_g_packet_guesses): New.
4375 * microblaze-tdep.h (microblaze_reg_num): Add
4376 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4377 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4378 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4379 * features/microblaze-core.xml: New file.
4380 * features/microblaze-stack-protect.xml: New file.
4381 * features/microblaze-with-stack-protect.c: New file.
4382 * features/microblaze-with-stack-protect.xml: New file.
4383 * features/microblaze.xml: New file.
4384 * features/microblaze.c: New file.
4385 * features/Makefile (microblaze-with-stack-protect): Add
4386 microblaze-with-stack-protect microblaze and microblaze-expedite.
4387 * regformats/microblaze-with-stack-protect.dat: New file.
4388 * regformats/microblaze.dat: New file.
4389 * doc/gdb.texinfo (MicroBlaze Features): Added.
4391 2014-07-18 Tom Tromey <tromey@redhat.com>
4393 * exec.c (exec_ops): Now static.
4394 * exec.h (exec_ops): Don't declare.
4396 2014-07-18 Tom Tromey <tromey@redhat.com>
4398 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4399 to find_target_beneath.
4400 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4401 find_target_beneath.
4402 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4404 2014-07-18 Tom Tromey <tromey@redhat.com>
4407 * utils.c (quit): Use target_supports_terminal_ours.
4408 * target.h (target_supports_terminal_ours): Declare.
4409 * target.c (target_supports_delete_record): Don't check
4410 to_delete_record against NULL.
4411 (target_supports_terminal_ours): New function.
4413 2014-07-18 Tom Tromey <tromey@redhat.com>
4416 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4417 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4418 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4419 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4420 * windows-nat.c (windows_xfer_partial): Always delegate.
4421 * record-btrace.c (record_btrace_xfer_partial): Simplify
4423 (record_btrace_fetch_registers, record_btrace_store_registers)
4424 (record_btrace_prepare_to_store, record_btrace_resume)
4425 (record_btrace_wait, record_btrace_find_new_threads)
4426 (record_btrace_thread_alive): Likewise.
4427 * procfs.c (procfs_xfer_partial): Always delegate.
4428 * corelow.c (core_xfer_partial): Always delegate.
4429 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4431 2014-07-18 Tom Tromey <tromey@redhat.com>
4433 * exec.c (exec_make_note_section): Move earlier.
4435 2014-07-17 Doug Evans <dje@google.com>
4438 * maint.c (count_symtabs_and_blocks): Handle NULL
4439 current_program_space.
4440 (report_command_stats): Check global enabled flag in addition to
4441 recorded enabled flag.
4442 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4444 2014-07-16 Pedro Alves <palves@redhat.com>
4446 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4448 2014-07-16 Tom Tromey <tromey@redhat.com>
4450 * target.h (struct target_ops) <to_delete_record>: Reformat
4453 2014-07-16 Tom Tromey <tromey@redhat.com>
4455 * target-delegates.c: Rebuild.
4457 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4459 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4460 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4461 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4462 (avr_pointer_to_address): Likewise.
4463 (avr_address_class_type_flags): New function.
4464 (avr_address_class_type_flags_to_name): Likewise.
4465 (avr_address_class_name_to_type_flags): Likewise.
4466 (avr_gdbarch_init): Set address_class_type_flags,
4467 address_class_type_flags_to_name and
4468 address_class_name_to_type_flags.
4470 2014-07-15 Pedro Alves <palves@redhat.com>
4472 * linux-nat.c (kill_callback): Save errno and work with saved
4475 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4477 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4479 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4481 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4482 breakpoint support correctly.
4484 2014-07-14 Pedro Alves <palves@redhat.com>
4486 * utils.c (prompt_for_continue): Call target_terminal_ours.
4488 2014-07-14 Pedro Alves <palves@redhat.com>
4490 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4491 catch_errors. Don't re-enable stdin or notify observers where,
4493 (fetch_inferior_event_wrapper): Delete.
4495 2014-07-14 Pedro Alves <palves@redhat.com>
4498 * top.c: Include "inf-loop.h".
4499 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4501 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4503 (gdb_readline_wrapper): Store whether the target is async, and
4506 2014-07-14 Pedro Alves <palves@redhat.com>
4509 * top.c (gdb_readline_wrapper_line): Tweak comment.
4510 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4511 the input handler callback.
4513 2014-07-14 Pedro Alves <palves@redhat.com>
4516 * main.c: Include event-top.h.
4517 (handle_command_errors): New function.
4518 (catch_command_errors, catch_command_errors_const): Use it.
4520 2014-07-14 Pedro Alves <palves@redhat.com>
4522 * exceptions.c (catch_command_errors, catch_command_errors_const):
4524 * exceptions.h (catch_command_errors_ftype)
4525 (catch_command_errors_const_ftype): Moved to main.c.
4526 (catch_command_errors, catch_command_errors_const): Delete
4528 * main.c (catch_command_errors_ftype)
4529 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4530 (catch_command_errors, catch_command_errors_const)): Moved here
4531 from exceptions.c and make static.
4533 2014-07-14 Pedro Alves <palves@redhat.com>
4535 * exceptions.c (print_any_exception): Delete.
4536 (catch_exceptions_with_msg): Use exception_print instead of
4537 print_any_exception.
4538 (catch_errors): Use exception_fprintf instead of
4539 print_any_exception.
4540 (catch_command_errors, catch_command_errors_const): Use
4541 exception_print instead of print_any_exception.
4543 2014-07-14 Pedro Alves <palves@redhat.com>
4545 * infcall.c (run_inferior_call): Set 'sync_execution' while
4546 running the inferior call.
4548 2014-07-14 Pedro Alves <palves@redhat.com>
4550 * value.c (value_contents_equal): Delete function.
4551 * value.h (value_contents_equal): Delete declaration.
4553 2014-07-14 Tom Tromey <tromey@redhat.com>
4556 * gdbtypes.c (is_dynamic_type_internal): New function, from
4558 (is_dynamic_type): Rewrite.
4559 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4560 (resolve_dynamic_struct): Likewise.
4561 (resolve_dynamic_type_internal): New function, from
4562 resolve_dynamic_type.
4563 (resolve_dynamic_type): Rewrite.
4565 2014-07-14 Tom Tromey <tromey@redhat.com>
4567 * target.c (target_require_runnable): Also check record_stratum.
4570 2014-07-11 Yao Qi <yao@codesourcery.com>
4572 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4573 thumb_instruction_restores_sp return true.
4575 2014-07-11 Yao Qi <yao@codesourcery.com>
4577 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4578 (thumb_in_function_epilogue_p): Call
4579 thumb_instruction_restores_sp.
4581 2014-07-11 Yao Qi <yao@codesourcery.com>
4583 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4585 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4587 2014-07-11 Gary Benson <gbenson@redhat.com>
4589 * amd64-linux-nat.c (gdbcore.h): Remove include.
4590 (regset.h): Likewise.
4591 (nat/linux-btrace.h): Likewise.
4592 (btrace.h): Likewise.
4593 (gdb_assert.h): Likewise.
4594 (string.h): Likewise.
4595 (sys/uio.h): Likewise.
4596 (sys/debugreg.h): Likewise.
4597 (sys/syscall.h): Likewise.
4598 (sys/procfs.h): Likewise.
4599 (sys/user.h): Likewise.
4600 (asm/ptrace.h): Likewise.
4601 (i386-nat.h): Likewise.
4602 * i386-linux-nat.c (i386-nat.h): Likewise.
4603 (regset.h): Likewise.
4604 (target.h): Likewise.
4605 (linux-nat.h): Likewise.
4606 (nat/linux-btrace.h): Likewise.
4607 (btrace.h): Likewise.
4608 (gdb_assert.h): Likewise.
4609 (string.h): Likewise.
4610 (sys/uio.h): Likewise.
4611 (sys/user.h): Likewise.
4612 (sys/procfs.h): Likewise.
4613 (sys/reg.h): Likewise.
4614 (sys/debugreg.h): Likewise.
4615 (ORIG_EAX): Remove definition.
4617 2014-07-11 Gary Benson <gbenson@redhat.com>
4619 * i386-linux-nat.h: New file.
4620 * x86-linux-nat.h: Likewise.
4621 * x86-linux-nat.c: Likewise.
4622 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4623 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4624 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4625 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4626 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4627 (PTRACE_SETREGSET): Likewise.
4628 (arch_lwp_info): Now in x86-linux-nat.c.
4629 (have_ptrace_getregset): Now in x86-linux-nat.h.
4630 (x86_linux_dr_get): Now in x86-linux-nat.c.
4631 (x86_linux_dr_set): Likewise.
4632 (x86_linux_dr_get_addr): Likewise.
4633 (x86_linux_dr_get_control): Likewise.
4634 (x86_linux_dr_get_status): Likewise.
4635 (update_debug_registers_callback): Likewise.
4636 (x86_linux_dr_set_control): Likewise.
4637 (x86_linux_dr_set_addr): Likewise.
4638 (x86_linux_prepare_to_resume): Likewise.
4639 (x86_linux_new_thread): Likewise.
4640 (x86_linux_new_fork): Likewise.
4641 (x86_linux_get_thread_area): Likewise.
4642 (super_post_startup_inferior): Likewise.
4643 (x86_linux_child_post_startup_inferior): Likewise.
4644 (AMD64_LINUX_USER64_CS): Likewise.
4645 (AMD64_LINUX_X32_DS): Likewise.
4646 (x86_linux_read_description): Likewise.
4647 (x86_linux_enable_btrace): Likewise.
4648 (x86_linux_disable_btrace): Likewise.
4649 (x86_linux_teardown_btrace): Likewise.
4650 (x86_linux_read_btrace): Likewise.
4651 (x86_linux_create_target): Likewise.
4652 (x86_linux_add_target): Likewise.
4653 * i386-linux-nat.c (x86-linux-nat.h): New include.
4654 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4655 (PTRACE_SETREGSET): Likewise.
4656 (arch_lwp_info): Now in x86-linux-nat.c.
4657 (have_ptrace_getregset): Now in x86-linux-nat.h.
4658 (x86_linux_dr_get): Now in x86-linux-nat.c.
4659 (x86_linux_dr_set): Likewise.
4660 (x86_linux_dr_get_addr): Likewise.
4661 (x86_linux_dr_get_control): Likewise.
4662 (x86_linux_dr_get_status): Likewise.
4663 (update_debug_registers_callback): Likewise.
4664 (x86_linux_dr_set_control): Likewise.
4665 (x86_linux_dr_set_addr): Likewise.
4666 (x86_linux_prepare_to_resume): Likewise.
4667 (x86_linux_new_thread): Likewise.
4668 (x86_linux_new_fork): Likewise.
4669 (x86_linux_get_thread_area): Likewise.
4670 (super_post_startup_inferior): Likewise.
4671 (x86_linux_child_post_startup_inferior): Likewise.
4672 (AMD64_LINUX_USER64_CS): Likewise.
4673 (AMD64_LINUX_X32_DS): Likewise.
4674 (x86_linux_read_description): Likewise.
4675 (x86_linux_enable_btrace): Likewise.
4676 (x86_linux_disable_btrace): Likewise.
4677 (x86_linux_teardown_btrace): Likewise.
4678 (x86_linux_read_btrace): Likewise.
4679 (x86_linux_create_target): Likewise.
4680 (x86_linux_add_target): Likewise.
4682 2014-07-11 Gary Benson <gbenson@redhat.com>
4684 * amd64-linux-nat.c: Comment and whitespace changes.
4685 * i386-linux-nat.c: Comment and whitespace changes.
4687 2014-07-11 Gary Benson <gbenson@redhat.com>
4689 * amd64-linux-nat.c (x86_linux_create_target): New function.
4690 (x86_linux_add_target): Likewise.
4691 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4692 * i386-linux-nat.c (x86_linux_create_target): New function.
4693 (x86_linux_add_target): Likewise.
4694 (_initialize_i386_linux_nat): Delegate to the above new functions.
4696 2014-07-11 Gary Benson <gbenson@redhat.com>
4698 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4699 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4700 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4701 (ps_get_thread_area): Delegate to the above.
4703 2014-07-11 Gary Benson <gbenson@redhat.com>
4705 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4706 x86_linux_read_description. All uses updated. amd64-specific
4707 code conditionalized. Conditionalized i386-specific code added.
4708 Redundant cast removed.
4709 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4710 x86_linux_read_description. All uses updated. i386-specific
4711 code conditionalized. Conditionalized amd64-specific code added.
4712 One sizeof replaced with the actual type it is describing.
4714 2014-07-11 Gary Benson <gbenson@redhat.com>
4716 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4717 x86_linux_dr_get. All uses updated.
4718 (amd64_linux_dr_set): Renamed to
4719 x86_linux_dr_set. All uses updated.
4720 (amd64_linux_dr_get_addr): Renamed to
4721 x86_linux_dr_get_addr. All uses updated.
4722 (amd64_linux_dr_get_control): Renamed to
4723 x86_linux_dr_get_control. All uses updated.
4724 (amd64_linux_dr_get_status): Renamed to
4725 x86_linux_dr_get_status. All uses updated.
4726 (amd64_linux_dr_set_control): Renamed to
4727 x86_linux_dr_set_control. All uses updated.
4728 (amd64_linux_dr_set_addr): Renamed to
4729 x86_linux_dr_set_addr. All uses updated.
4730 (amd64_linux_prepare_to_resume): Renamed to
4731 x86_linux_prepare_to_resume. All uses updated.
4732 (amd64_linux_new_thread): Renamed to
4733 x86_linux_new_thread. All uses updated.
4734 (amd64_linux_new_fork): Renamed to
4735 x86_linux_new_fork. All uses updated.
4736 (amd64_linux_child_post_startup_inferior): Renamed to
4737 x86_linux_child_post_startup_inferior. All uses updated.
4738 (amd64_linux_enable_btrace): Renamed to
4739 x86_linux_enable_btrace. All uses updated.
4740 (amd64_linux_disable_btrace): Renamed to
4741 x86_linux_disable_btrace. All uses updated.
4742 (amd64_linux_teardown_btrace): Renamed to
4743 x86_linux_teardown_btrace. All uses updated.
4744 (amd64_linux_read_btrace): Renamed to
4745 x86_linux_read_btrace. All uses updated.
4746 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4747 x86_linux_dr_get. All uses updated.
4748 (i386_linux_dr_set): Renamed to
4749 x86_linux_dr_set. All uses updated.
4750 (i386_linux_dr_get_addr): Renamed to
4751 x86_linux_dr_get_addr. All uses updated.
4752 (i386_linux_dr_get_control): Renamed to
4753 x86_linux_dr_get_control. All uses updated.
4754 (i386_linux_dr_get_status): Renamed to
4755 x86_linux_dr_get_status. All uses updated.
4756 (i386_linux_dr_set_control): Renamed to
4757 x86_linux_dr_set_control. All uses updated.
4758 (i386_linux_dr_set_addr): Renamed to
4759 x86_linux_dr_set_addr. All uses updated.
4760 (i386_linux_prepare_to_resume): Renamed to
4761 x86_linux_prepare_to_resume. All uses updated.
4762 (i386_linux_new_thread): Renamed to
4763 x86_linux_new_thread. All uses updated.
4764 (i386_linux_new_fork): Renamed to
4765 x86_linux_new_fork. All uses updated.
4766 (i386_linux_child_post_startup_inferior): Renamed to
4767 x86_linux_child_post_startup_inferior. All uses updated.
4768 (i386_linux_enable_btrace): Renamed to
4769 x86_linux_enable_btrace. All uses updated.
4770 (i386_linux_disable_btrace): Renamed to
4771 x86_linux_disable_btrace. All uses updated.
4772 (i386_linux_teardown_btrace): Renamed to
4773 x86_linux_teardown_btrace. All uses updated.
4774 (i386_linux_read_btrace): Renamed to
4775 x86_linux_read_btrace. All uses updated.
4777 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4779 * remote.c (extended_remote_post_attach): New function.
4780 (init_extended_remote_ops): Install it as to_post_attach method.
4782 2014-07-09 Pedro Alves <palves@redhat.com>
4784 * infcmd.c (attach_command_post_wait): Don't call
4785 target_terminal_inferior here.
4786 (attach_command): Call it here instead.
4788 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4792 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4793 from varobj.c, with additional checks.
4794 (c_varobj_ops): Fill in is_path_expr_parent field.
4795 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4796 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4798 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4800 (varobj_default_is_path_expr_parent): New function.
4801 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4802 (varobj_default_is_path_expr_parent): Declare new function.
4804 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4806 * infcmd.c (finish_backward): Turn internal error into normal error.
4808 2014-07-07 Pedro Alves <palves@redhat.com>
4811 * remote.c (async_handle_remote_sigint)
4812 (async_handle_remote_sigint_twice): Call
4813 gdb_call_async_signal_handler instead of
4814 mark_async_signal_handler.
4816 2014-07-07 Tom Tromey <tromey@redhat.com>
4818 * target-delegates.c: Rebuild.
4819 * target.c (target_info_record): Remove.
4820 * record.c (info_record_command): Unconditionally call
4822 * target.h (struct target_ops) <to_info_record>: Use
4823 TARGET_DEFAULT_IGNORE.
4824 (target_info_record): Remove.
4826 2014-07-07 Tom Tromey <tromey@redhat.com>
4828 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4829 TARGET_DEFAULT_NORETURN.
4830 * target.c (generic_tls_error): New function.
4831 (target_translate_tls_address): Don't search target stack.
4832 * target-delegates.c: Rebuild.
4833 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4835 * linux-thread-db.c (thread_db_get_thread_local_address):
4836 Unconditionally call beneath target.
4838 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4840 * cli/cli-logging.c (pop_output_files): Assign targerr to
4843 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4845 * MAINTAINERS (Write After Approval): Update my email address.
4847 2014-07-02 Gary Benson <gbenson@redhat.com>
4849 * proc-service.c (ps_xfer_memory): Update comment.
4850 (ps_pstop): Remove unused function.
4851 (ps_pcontinue): Likewise.
4852 (ps_lstop): Likewise.
4853 (ps_lcontinue): Likewise.
4854 (ps_lgetxregsize): Likewise.
4855 (ps_lgetxregs): Likewise.
4856 (ps_lsetxregs): Likewise.
4857 (ps_plog): Likewise.
4858 (ps_ptread): Likewise.
4859 (ps_ptwrite): Likewise.
4861 2014-07-01 Mark Wielaard <mjw@redhat.com>
4863 * dwarf2read.c (add_array_cv_type): New function.
4864 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4865 (read_tag_volatile_type): Likewise.
4867 2014-07-01 Tom Tromey <tromey@redhat.com>
4869 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4870 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4871 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4872 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4873 * command.h (cmd_cfunc_ftype): Move earlier.
4874 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4875 (add_com, add_info): Use cmd_cfunc_ftype.
4877 2014-06-30 Tom Tromey <tromey@redhat.com>
4879 * symtab.c (operator_chars): Make parameters and return type
4881 (file_matches): Make "files" const.
4882 (struct search_symbols_data) <files>: Now const.
4883 (search_symbols): Make "regexp" and "files" parameters const.
4885 (symtab_symbol_info): Remove cast.
4886 (rbreak_command): Update.
4887 * symtab.h (search_symbols): Update.
4889 2014-06-27 Yao Qi <yao@codesourcery.com>
4891 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4892 Change parameter type to 'struct thread_info *'. Caller
4894 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4896 * dummy-frame.c (struct dummy_frame_id): New.
4897 (dummy_frame_id_eq): New function.
4898 (struct dummy_frame) <id>: Change its type to 'struct
4900 (dummy_frame_push): Add parameter ptid and save it in
4902 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4904 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4906 (lookup_dummy_frame): Change parameter type to 'struct
4907 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4908 instead of frame_id_eq.
4909 (dummy_frame_pop): Add parameter ptid. Callers updated.
4910 Update comments. Compose dummy_frame_id and pass it to
4912 (dummy_frame_discard): Add parameter ptid.
4913 (dummy_frame_sniffer): Compose dummy_frame_id and call
4914 dummy_frame_id_eq instead of frame_id_eq.
4915 (fprint_dummy_frames): Print ptid.
4916 * dummy-frame.h: Remove comments.
4917 (dummy_frame_push): Add ptid in declaration.
4918 (dummy_frame_pop, dummy_frame_discard): Likewise.
4920 2014-06-26 Tom Tromey <tromey@redhat.com>
4922 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4923 * command.h (error_no_arg): Update.
4925 2014-06-26 Tom Tromey <tromey@redhat.com>
4927 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4928 (do_show_command): Make "arg" const.
4929 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4931 2014-06-26 Tom Tromey <tromey@redhat.com>
4933 * record-full.c (record_full_get_bookmark): Make "args" const.
4934 (record_full_goto_bookmark): Make "raw_bookmark" const.
4935 * record.c (record_goto): New function.
4936 (cmd_record_goto): Use it. Now static.
4937 * record.h (record_goto): Declare.
4938 (cmd_record_goto): Remove declaration.
4939 * target-delegates.c: Rebuild.
4940 * target.h (struct target_ops) <to_get_bookmark,
4941 to_goto_bookmark>: Make parameter const.
4943 2014-06-26 Tom Tromey <tromey@redhat.com>
4945 * defs.h (generic_load): Update.
4946 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4947 * monitor.c (monitor_load): Make "args" const.
4948 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4949 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4951 (mips_load): Make "file" const.
4952 * remote-sim.c (gdbsim_load): Make "args" const.
4953 * remote.c (remote_load): Make "name" const.
4954 * symfile.c (generic_load): Make "args" const.
4955 * target-delegates.c: Rebuild.
4956 * target.c (target_load): Make "arg" const.
4957 (debug_to_load): Make "args" const.
4958 * target.h (struct target_ops) <to_load>: Make parameter const.
4959 (target_load): Update.
4961 2014-06-26 Tom Tromey <tromey@redhat.com>
4964 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4965 (dwarf2_physname, read_partial_die)
4966 (guess_partial_die_structure_name, fixup_partial_die)
4967 (guess_full_die_structure_name, anonymous_struct_prefix)
4968 (dwarf2_name): Use per-BFD obstack.
4970 2014-06-26 Yao Qi <yao@codesourcery.com>
4972 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4973 dummyframe and this_id into inner block below.
4975 2014-06-26 Yao Qi <yao@codesourcery.com>
4977 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4978 with "signal_pass[0]" in the initialization of signal_pass.
4980 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4982 * record-btrace.c (record_btrace_generating_corefile)
4983 (record_btrace_prepare_to_generate_core)
4984 (record_btrace_done_generating_core): New.
4985 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4986 (record_btrace_store_registers, record_btrace_prepare_to_store):
4987 Forward request when generating a core file.
4988 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4989 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4990 to_done_generating_core.
4992 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4994 * target.h (target_ops) <to_prepare_to_generate_core>
4995 <to_done_generating_core>: New.
4996 (target_prepare_to_generate_core, target_done_generating_core): New.
4997 * target.c (target_prepare_to_generate_core)
4998 (target_done_generating_core): New.
4999 * target-delegates.c: Regenerate.
5000 * gcore.c: (write_gcore_file): Rename to ...
5001 (write_gcore_file_1): ...this.
5002 (write_gcore_file): Call target_prepare_to_generate_core
5003 and target_done_generating_core.
5005 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5007 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5008 * gcore.c (write_gcore_file): Free memory returned from
5009 make_corefile_notes.
5010 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5011 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5013 2014-06-24 Yao Qi <yao@codesourcery.com>
5015 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5016 (arm_linux_init_abi): Set skip_trampoline_code with
5017 gdbarch_skip_trampoline_code instead of
5018 find_solib_trampoline_target.
5020 2014-06-24 Yao Qi <yao@codesourcery.com>
5022 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5023 arm_skip_bx_reg returns non-zero.
5025 2014-06-24 Yao Qi <yao@codesourcery.com>
5027 * arm-tdep.c (arm_skip_bx_reg): New function.
5028 (arm_skip_stub): Call arm_skip_bx_reg.
5030 2014-06-23 Don Breazeal <donb@codesourcery.com>
5032 * MAINTAINERS: Add myself as write-after-approval maintainer.
5034 2014-06-23 Pedro Alves <palves@redhat.com>
5036 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5037 DR_CONTROL before setting DR0..DR3.
5038 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5039 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5040 bits of DR_CONTROL related to the debug register slot being
5041 disabled. If all slots are vacant, clear local slowdown as well,
5042 and assert DR_CONTROL is 0.
5044 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5046 * python/lib/gdb/command/xmethods.py
5047 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5048 current progspace only if the string "progspace" matches LOCUS_RE.
5050 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5052 Fix --with-system-readline with readline-6.3 patch 5.
5053 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5054 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5057 2014-06-20 Tom Tromey <tromey@redhat.com>
5059 * dwarf2read.c (dw2_get_real_path): Use correct type in
5061 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5063 2014-06-20 Gary Benson <gbenson@redhat.com>
5065 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5066 * common/glibc_thread_db.h: Likewise.
5067 * common/i386-cpuid.h: Likewise.
5068 * common/i386-gcc-cpuid.h: Likewise.
5069 * common/linux-btrace.h: Likewise.
5070 * common/linux-osdata.h: Likewise.
5071 * common/linux-procfs.h: Likewise.
5072 * common/linux-ptrace.h: Likewise.
5073 * common/mips-linux-watch.h: Likewise.
5074 * common/linux-btrace.c: Moved to nat.
5075 * common/linux-osdata.c: Likewise.
5076 * common/linux-procfs.c: Likewise.
5077 * common/linux-ptrace.c: Likewise.
5078 * common/mips-linux-watch.c: Likewise.
5079 * nat/gdb_thread_db.h: Moved from common.
5080 * nat/glibc_thread_db.h: Likewise.
5081 * nat/i386-cpuid.h: Likewise.
5082 * nat/i386-gcc-cpuid.h: Likewise.
5083 * nat/linux-btrace.c: Likewise.
5084 * nat/linux-btrace.h: Likewise.
5085 * nat/linux-osdata.c: Likewise.
5086 * nat/linux-osdata.h: Likewise.
5087 * nat/linux-procfs.c: Likewise.
5088 * nat/linux-procfs.h: Likewise.
5089 * nat/linux-ptrace.c: Likewise.
5090 * nat/linux-ptrace.h: Likewise.
5091 * nat/mips-linux-watch.c: Likewise.
5092 * nat/mips-linux-watch.h: Likewise.
5093 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5094 (object file files): Reordered.
5095 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5096 of glibc_thread_db.h.
5098 2014-06-20 Gary Benson <gbenson@redhat.com>
5100 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5101 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5102 (i386_dr_low): Likewise.
5103 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5104 (i386_dr_low_set_addr): Likewise.
5105 (i386_dr_low_get_addr): Likewise.
5106 (i386_dr_low_can_set_control): Likewise.
5107 (i386_dr_low_set_control): Likewise.
5108 (i386_dr_low_get_control): Likewise.
5109 (i386_dr_low_get_status): Likewise.
5110 (i386_get_debug_register_length): Likewise.
5111 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5112 (i386_dr_low): Likewise.
5113 * nat/i386-dregs.c (i386-low.h): Remove include.
5114 (i386-nat.h): Likewise.
5115 (nat/i386-dregs.h): New include.
5116 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5117 (i386_dr_low_set_addr): Likewise.
5118 (i386_dr_low_get_addr): Likewise.
5119 (i386_dr_low_can_set_control): Likewise.
5120 (i386_dr_low_set_control): Likewise.
5121 (i386_dr_low_get_control): Likewise.
5122 (i386_dr_low_get_status): Likewise.
5123 (i386_get_debug_register_length): Likewise.
5124 (debug_hw_points): Likewise.
5126 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5128 * Makefile.in (SFILES): Add d-exp.y.
5129 (YYFILES): Add d-exp.c.
5130 (YYOBJ): Add d-exp.o.
5131 (local-maintainer-clean): Delete d-exp.c.
5132 * d-exp.y: New file.
5133 * d-lang.h (d_parse): New declaration.
5134 (d_error): New declaration.
5135 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5136 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5137 PREC_ORDER operators.
5138 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5140 2014-06-19 Yao Qi <yao@codesourcery.com>
5142 * gdbthread.h (any_running): Remove the declaration.
5143 * thread.c (any_running): Remove.
5145 2014-06-19 Yao Qi <yao@codesourcery.com>
5147 * gdbthread.h (struct thread_info) <state>: Change its type to
5148 'enum thread_state'. Update comments.
5150 2014-06-19 Pedro Alves <palves@redhat.com>
5152 * gdbthread.h (ALL_THREADS): Delete.
5153 (ALL_NON_EXITED_THREADS): New macro.
5154 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5155 instead of ALL_THREADS.
5156 * infrun.c (find_thread_needs_step_over)
5157 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5158 instead of ALL_THREADS.
5159 * record-btrace.c (record_btrace_open)
5160 (record_btrace_stop_recording, record_btrace_close)
5161 (record_btrace_is_replaying, record_btrace_resume)
5162 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5163 * remote.c (append_pending_thread_resumptions): Likewise.
5164 * thread.c (thread_apply_all_command): Likewise.
5166 2014-06-19 Gary Benson <gbenson@redhat.com>
5168 * i386-nat.c (i386_stopped_by_watchpoint):
5169 Use i386_dr_stopped_by_watchpoint.
5170 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5171 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5173 2014-06-19 Gary Benson <gbenson@redhat.com>
5175 * nat/i386-dregs.c: New file.
5176 * Makefile.in (i386-dregs.o): New rule.
5177 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5178 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5179 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5180 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5181 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5182 * config/i386/go32.mh (NATDEPFILES): Likewise.
5183 * config/i386/linux.mh (NATDEPFILES): Likewise.
5184 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5185 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5186 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5187 * i386-nat.h (debug_hw_points): New declaration.
5188 * i386-nat.c (breakpoint.h): Remove include.
5189 (command.h): Likewise.
5190 (target.h): Likewise.
5191 (gdb_assert.h): Likewise.
5192 (debug_hw_points): Made nonstatic.
5193 (debug_printf): Now in i386-dregs.c.
5194 (TARGET_HAS_DR_LEN_8): Likewise.
5195 (DR_CONTROL_SHIFT): Likewise.
5196 (DR_CONTROL_SIZE): Likewise.
5197 (DR_RW_EXECUTE): Likewise.
5198 (DR_RW_WRITE): Likewise.
5199 (DR_RW_READ): Likewise.
5200 (DR_RW_IORW): Likewise.
5201 (DR_LEN_1): Likewise.
5202 (DR_LEN_2): Likewise.
5203 (DR_LEN_4): Likewise.
5204 (DR_LEN_8): Likewise.
5205 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5206 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5207 (DR_ENABLE_SIZE): Likewise.
5208 (DR_LOCAL_SLOWDOWN): Likewise.
5209 (DR_GLOBAL_SLOWDOWN): Likewise.
5210 (DR_CONTROL_RESERVED): Likewise.
5211 (I386_DR_CONTROL_MASK): Likewise.
5212 (I386_DR_VACANT): Likewise.
5213 (I386_DR_LOCAL_ENABLE): Likewise.
5214 (I386_DR_GLOBAL_ENABLE): Likewise.
5215 (I386_DR_DISABLE): Likewise.
5216 (I386_DR_SET_RW_LEN): Likewise.
5217 (I386_DR_GET_RW_LEN): Likewise.
5218 (I386_DR_WATCH_HIT): Likewise.
5219 (i386_wp_op_t): Likewise.
5220 (i386_show_dr): Likewise.
5221 (i386_length_and_rw_bits): Likewise.
5222 (i386_insert_aligned_watchpoint): Likewise.
5223 (i386_remove_aligned_watchpoint): Likewise.
5224 (i386_handle_nonaligned_watchpoint): Likewise.
5225 (i386_update_inferior_debug_regs): Likewise.
5226 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5227 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5228 (i386_region_ok_for_watchpoint):
5229 Use i386_dr_region_ok_for_watchpoint.
5230 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5232 2014-06-19 Gary Benson <gbenson@redhat.com>
5234 * i386-nat.c (i386_insert_hw_breakpoint): Use
5235 i386_insert_watchpoint.
5236 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5238 2014-06-19 Gary Benson <gbenson@redhat.com>
5240 * i386-nat.c (i386_dr_show): Renamed to
5241 i386_show_dr and made static. All uses updated.
5242 (i386_dr_length_and_rw_bits): Renamed to
5243 i386_length_and_rw_bits and made static.
5245 (i386_dr_insert_aligned_watchpoint): Renamed to
5246 i386_insert_aligned_watchpoint and made static.
5248 (i386_dr_remove_aligned_watchpoint): Renamed to
5249 i386_remove_aligned_watchpoint and made static.
5251 (i386_dr_update_inferior_debug_regs): Renamed to
5252 i386_update_inferior_debug_regs and made static.
5254 * nat/i386-dregs.h (i386_dr_show): Removed.
5255 (i386_dr_length_and_rw_bits): Likewise.
5256 (i386_dr_insert_aligned_watchpoint): Likewise.
5257 (i386_dr_remove_aligned_watchpoint): Likewise.
5258 (i386_dr_update_inferior_debug_regs): Likewise.
5260 2014-06-19 Gary Benson <gbenson@redhat.com>
5262 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5263 * configure: Regenerate.
5264 * config.in: Likewise.
5265 * main.c (signal.h): New include.
5266 (setup_alternate_signal_stack): New function.
5267 (captured_main): Call the above.
5268 * cp-support.c (signal.h): New include.
5269 (catch_demangler_crashes): New flag.
5270 (SIGJMP_BUF): New define.
5271 (SIGSETJMP): Likewise.
5272 (SIGLONGJMP): Likewise.
5273 (gdb_demangle_jmp_buf): New static global.
5274 (gdb_demangle_attempt_core_dump): Likewise.
5275 (gdb_demangle_signal_handler): New function.
5276 (gdb_demangle): If catch_demangler_crashes is set, install the
5277 above signal handler before calling bfd_demangle, and restore
5278 the original signal handler afterwards. Display the offending
5279 symbol and call demangler_warning the first time a segmentation
5281 (_initialize_cp_support): New maint set/show command.
5283 2014-06-19 Gary Benson <gbenson@redhat.com>
5285 * utils.h (resource_limit_kind): New enum.
5286 (can_dump_core): New declaration.
5287 (warn_cant_dump_core): Likewise.
5288 (dump_core): Likewise.
5289 * utils.c (dump_core): Made nonstatic. Added new
5290 parameter "limit_kind".
5291 (can_dump_core): Made nonstatic. Moved printing code to...
5292 (warn_cant_dump_core): New function.
5293 (can_dump_core_warn): Likewise.
5294 (internal_vproblem): Replace calls to can_dump_core with
5295 calls to can_dump_core_warn. Supply new argument to each.
5297 2014-06-19 Gary Benson <gbenson@redhat.com>
5299 * utils.h (demangler_vwarning): New declaration.
5300 (demangler_warning): Likewise.
5301 * utils.c (struct internal_problem)
5302 <user_settable_should_quit>: New field.
5303 <user_settable_should_dump_core>: Likewise
5304 (internal_error_problem): Add values for above new fields.
5305 (internal_warning_problem): Likewise.
5306 (demangler_warning_problem): New static global.
5307 (demangler_vwarning): New function.
5308 (demangler_warning): Likewise.
5309 (add_internal_problem_command): Selectively add commands.
5310 (_initialize_utils): New internal problem command.
5311 * maint.c (maintenance_demangler_warning): New function.
5312 (_initialize_maint_cmds): New command.
5314 2014-06-18 Tom Tromey <tromey@redhat.com>
5316 * f-valprint.c (info_common_command_for_block): Update.
5317 * symtab.h (struct general_symbol_info) <common_block>: Now
5320 2014-06-18 Tom Tromey <tromey@redhat.com>
5322 * symtab.h (struct symtab) <blockvector>: Now const.
5323 * ada-lang.c (ada_add_global_exceptions): Update.
5324 * buildsym.c (augment_type_symtab): Update.
5325 * dwarf2read.c (dw2_lookup_symbol): Update.
5326 * jit.c (finalize_symtab): Update.
5327 * jv-lang.c (add_class_symtab_symbol): Update.
5328 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5330 * objfiles.c (objfile_relocate1): Update.
5331 * psymtab.c (lookup_symbol_aux_psymtabs)
5332 (maintenance_check_psymtabs): Update.
5333 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5335 * spu-tdep.c (spu_catch_start): Update.
5336 * symmisc.c (dump_symtab_1): Update.
5337 * symtab.c (lookup_global_symbol_from_objfile)
5338 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5339 (basic_lookup_transparent_type_quick)
5340 (basic_lookup_transparent_type, find_pc_sect_symtab)
5341 (find_pc_sect_line, search_symbols): Update.
5342 * block.c (find_block_in_blockvector): Make "bl" const.
5343 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5345 (blockvector_contains_pc): Make "bv" const.
5346 (block_for_pc_sect): Update.
5347 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5348 (blockvector_contains_pc): Update.
5349 * breakpoint.c (resolve_sal_pc): Update.
5350 * inline-frame.c (block_starting_point_at): Update.
5352 2014-06-18 Tom Tromey <tromey@redhat.com>
5354 * completer.c (complete_line): Make "line_buffer" const.
5355 * completer.h (complete_line): Update.
5357 2014-06-18 Tom Tromey <tromey@redhat.com>
5359 * symtab.c (add_macro_name): Remove unneeded cast.
5361 2014-06-18 Tom Tromey <tromey@redhat.com>
5363 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5364 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5366 2014-06-18 Tom Tromey <tromey@redhat.com>
5368 * probe.c (info_probes_for_ops): Make "arg" const.
5369 * probe.h (info_probes_for_ops): Update.
5371 2014-06-18 Tom Tromey <tromey@redhat.com>
5373 * varobj.c (varobj_create): Update.
5374 * valops.c (value_of_this): Update.
5375 * tracepoint.c (add_local_symbols, scope_info): Update.
5376 * symtab.h (struct general_symbol_info) <block>: Now const.
5377 * symtab.c (skip_prologue_sal)
5378 (default_make_symbol_completion_list_break_on)
5379 (skip_prologue_using_sal): Update.
5380 * stack.h (iterate_over_block_locals)
5381 (iterate_over_block_local_vars): Update.
5382 * stack.c (print_frame_args): Update.
5383 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5385 (get_selected_block): Make return type const.
5386 * python/py-frame.c (frapy_block): Update.
5387 * python/py-block.c (gdbpy_block_for_pc): Update.
5388 * p-exp.y (%union) <bval>: Now const.
5389 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5390 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5391 * m2-exp.y (%union) <bval>: Now const.
5392 * linespec.c (get_current_search_block): Make return type const.
5393 (create_sals_line_offset, find_label_symbols): Update.
5394 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5396 (block_starting_point_at): Make "block" const.
5397 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5398 (check_exception_resume): Update.
5399 * guile/scm-frame.c (gdbscm_frame_block): Update.
5400 * guile/scm-block.c (gdbscm_lookup_block): Update.
5401 * frame.h (get_frame_block): Update.
5402 (get_selected_block): Make return type const.
5403 * frame.c (frame_id_inner): Update.
5404 * f-valprint.c (info_common_command_for_block)
5405 (info_common_command): Update.
5406 * dwarf2loc.c (dwarf2_find_location_expression)
5407 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5408 (locexpr_describe_location_piece): Update.
5409 * c-exp.y (%union) <bval>: Now const.
5410 * breakpoint.c (resolve_sal_pc): Update.
5411 * blockframe.c (get_frame_block):Make return type const.
5412 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5413 (block_innermost_frame): Update.
5414 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5415 (block_for_pc, block_for_pc_sect): Update.
5416 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5418 (block_for_pc_sect, block_for_pc): Make return type const.
5419 * ax-gdb.c (gen_expr): Update.
5420 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5421 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5422 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5423 (ada_read_var_value): Update.
5424 * ada-exp.y (struct name_info) <block>: Now const.
5426 (block_lookup): Constify.
5428 2014-06-18 Gary Benson <gbenson@redhat.com>
5430 * nat/i386-dregs.h: New file.
5431 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5432 * i386-nat.h (i386-dregs.h): New include.
5433 (DR_FIRSTADDR): Now in i386-dregs.h.
5434 (DR_LASTADDR): Likewise.
5435 (DR_NADDR): Likewise.
5436 (DR_STATUS): Likewise.
5437 (DR_CONTROL): Likewise.
5438 (i386_debug_reg_state): Likewise.
5439 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5441 2014-06-18 Don Breazeal <donb@codesourcery.com>
5443 * breakpoint.c (set_longjmp_breakpoint): Call
5444 momentary_breakpoint_from_master with additional argument.
5445 (set_longjmp_breakpoint_for_call_dummy): Call
5446 momentary_breakpoint_from_master with additional argument.
5447 (set_std_terminate_breakpoint): Call
5448 momentary_breakpoint_from_master with additional argument.
5449 (momentary_breakpoint_from_master): Add argument to function
5450 definition and use it to initialize structure member flag.
5451 (clone_momentary_breakpoint): Call
5452 momentary_breakpoint_from_master with additional argument.
5453 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5454 member flags set in momentary_breakpoint_from_master.
5456 2014-06-18 Gary Benson <gbenson@redhat.com>
5458 * i386-nat.c (i386_show_dr): Renamed to
5459 i386_dr_show and made nonstatic. All uses updated.
5460 (i386_length_and_rw_bits): Renamed to
5461 i386_dr_length_and_rw_bits and made nonstatic.
5463 (i386_insert_aligned_watchpoint): Renamed to
5464 i386_dr_insert_aligned_watchpoint and made nonstatic.
5466 (i386_remove_aligned_watchpoint): Renamed to
5467 i386_dr_remove_aligned_watchpoint and made nonstatic.
5469 (i386_update_inferior_debug_regs): Renamed to
5470 i386_dr_update_inferior_debug_regs and made nonstatic.
5473 2014-06-18 Gary Benson <gbenson@redhat.com>
5475 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5476 (i386_dr_low_can_set_control): Likewise.
5477 (i386_dr_low_set_addr): Likewise.
5478 (i386_dr_low_set_control): Likewise.
5479 (i386_dr_low_get_addr): Likewise.
5480 (i386_dr_low_get_status): Likewise.
5481 (i386_dr_low_get_control): Likewise.
5482 (i386_insert_aligned_watchpoint): Use new macros.
5483 (i386_update_inferior_debug_regs): Likewise.
5484 (i386_stopped_data_address): Likewise.
5486 2014-06-18 Gary Benson <gbenson@redhat.com>
5488 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5489 New parameter. All uses updated.
5491 2014-06-18 Gary Benson <gbenson@redhat.com>
5493 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5496 2014-06-18 Gary Benson <gbenson@redhat.com>
5498 * i386-nat.c (debug_printf): New macro.
5499 (i386_get_debug_register_length): Likewise.
5500 (TARGET_HAS_DR_LEN_8): Use above macro.
5501 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5502 and printf_unfiltered. Use phex to format values.
5504 2014-06-18 Gary Benson <gbenson@redhat.com>
5506 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5509 2014-06-18 Gary Benson <gbenson@redhat.com>
5511 * i386-nat.c: Comment changes.
5513 2014-06-18 Gary Benson <gbenson@redhat.com>
5515 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5517 2014-06-18 Gary Benson <gbenson@redhat.com>
5519 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5520 (i386_insert_aligned_watchpoint): Likewise.
5521 (i386_remove_aligned_watchpoint): Likewise.
5522 (i386_handle_nonaligned_watchpoint): Likewise.
5524 2014-06-18 Gary Benson <gbenson@redhat.com>
5526 * i386-nat.c: Whitespace changes.
5528 2014-06-17 Samuel Bronson <naesten@gmail.com>
5530 * MAINTAINERS: Update Roland McGrath's email address.
5531 Thanks to Sergio Durigan Junior for pointing out that he left
5532 Red Hat a while ago, and giving me a current address.
5534 2014-06-17 Tom Tromey <tromey@redhat.com>
5536 * utils.h (savestring): Remove declaration.
5538 2014-06-17 Tom Tromey <tromey@redhat.com>
5540 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5542 2014-06-16 Keith Seitz <keiths@redhat.com>
5545 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5546 to update the varobj if inferior_ptid is null_ptid.
5548 2014-06-16 Tom Tromey <tromey@redhat.com>
5550 * target.h (struct target_ops) <to_info_proc>: Make parameter
5552 (target_info_proc): Update.
5553 * target.c (target_info_proc): Make "args" const.
5554 * procfs.c (procfs_info_proc): Update.
5555 * linux-tdep.c (linux_info_proc): Update.
5556 (linux_core_info_proc_mappings): Make "args" const.
5557 (linux_core_info_proc): Update.
5558 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5559 * gdbarch.c: Rebuild.
5560 * gdbarch.h: Rebuild.
5561 * corelow.c (core_info_proc): Update.
5563 2014-06-16 Tom Tromey <tromey@redhat.com>
5565 * target.h (struct target_ops) <to_disconnect>: Make parameter
5567 (target_disconnect): Update.
5568 * target.c (target_disconnect): Make "args" const.
5569 * target-delegates.c: Rebuild.
5570 * remote.c (remote_disconnect): Update.
5571 * record.h (record_disconnect): Update.
5572 * record.c (record_disconnect): Update.
5573 * inf-child.c (inf_child_disconnect): Update.
5575 2014-06-16 Tom Tromey <tromey@redhat.com>
5577 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5578 * target.c (debug_to_rcmd, default_rcmd): Update.
5579 * target-delegates.c: Rebuild.
5580 * remote.c (remote_rcmd): Update.
5581 * monitor.c (monitor_rcmd): Update.
5583 2014-06-16 Pedro Alves <palves@redhat.com>
5585 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5586 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5587 have OBJF_SHARED set.
5588 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5589 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5590 instead of OBJF_USERLOADED.
5591 * objfiles.h (OBJF_SHARED): Update comment.
5592 (userloaded_objfile_contains_address_p): Rename to ...
5593 (shared_objfile_contains_address_p): ... this, and update
5595 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5597 (remove_symbol_file_command): Skip objfiles that don't have
5600 2014-06-16 Tom Tromey <tromey@redhat.com>
5602 * minsyms.h (prim_record_minimal_symbol)
5603 (prim_record_minimal_symbol_and_info): Update comments.
5605 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5607 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5608 or --without-guile, according to how GDB was built.
5610 2014-06-13 Tom Tromey <tromey@redhat.com>
5612 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5614 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5616 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5618 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5619 help_list.Pass all_commands, not -1, to help_list.
5620 * cli/cli-dump.c (dump_command, append_command)
5621 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5622 (binary_dump_command, binary_append_command): Pass all_commands,
5623 not -1, to help_list.
5624 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5626 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5628 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5630 * top.c (set_history): Pass all_commands, not -1, to help_list.
5631 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5632 all_commands, not -1, to help_list.
5633 * symfile.c (overlay_command): Pass all_commands, not -1, to
5635 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5637 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5639 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5641 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5642 not -1, to help_list.
5643 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5644 not -1, to help_list.
5645 * maint.c (maintenance_command, maintenance_info_command)
5646 (maintenance_print_command, maintenance_set_cmd): Pass
5647 all_commands, not -1, to help_list.
5648 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5650 * language.c (set_check): Pass all_commands, not -1, to help_list.
5651 * infcmd.c (unset_command): Pass all_commands, not -1, to
5653 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5655 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5657 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5659 * breakpoint.c (save_command): Pass all_commands, not -1, to
5661 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5662 all_commands, not -1, to help_list.
5664 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5666 * regcache.c (struct register_to_invalidate): New structure.
5667 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5669 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5671 2014-06-12 Yao Qi <yao@codesourcery.com>
5673 * varobj.c (varobj_get_num_children): Call
5674 varobj_is_dynamic_p.
5675 (varobj_list_children): Likewise.
5676 (varobj_update): Likewise. Update comments.
5678 2014-06-12 Yao Qi <yao@codesourcery.com>
5680 * varobj.c (varobj_pretty_printed_p): Rename to ...
5681 (varobj_is_dynamic_p): ... this. New function.
5682 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5683 (varobj_is_dynamic_p): Declare.
5684 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5685 (mi_print_value_p, varobj_update_one): Likewise.
5687 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5688 Yao Qi <yao@codesourcery.com>
5690 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5691 (varobj_get_iterator): Wrap up code for pretty-printer by
5692 "#if HAVE_PYTHON" and "#endif".
5693 (update_dynamic_varobj_children): Likewise.
5695 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5696 Yao Qi <yao@codesourcery.com>
5698 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5699 gdb_python_initialized is false. Move some code from varobj.c.
5700 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5701 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5702 (struct varobj_item): Moved to varobj-iter.h".
5703 (varobj_clear_saved_item): New function.
5704 (update_dynamic_varobj_children): Move python-related code to
5706 (free_variable): Call varobj_clear_saved_item and
5709 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5710 Yao Qi <yao@codesourcery.com>
5712 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5713 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5714 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5715 (py-varobj.o): New rule.
5716 * python/py-varobj.c: New file.
5717 * python/python-internal.h (py_varobj_get_iterator): Declare.
5718 * varobj-iter.h: New file.
5719 * varobj.c: Include "varobj-iter.h"
5720 (struct varobj) <child_iter>: Change its type from "PyObject *"
5721 to "struct varobj_iter *".
5722 <saved_item>: Likewise.
5723 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5724 [HAVE_PYTHON] (varobj_get_iterator): New function.
5725 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5726 python-specific code to python/py-varobj.c.
5727 (install_visualizer): Call varobj_iter_delete instead of
5729 * varobj.h (varobj_ensure_python_env): Declare.
5731 2014-06-12 Yao Qi <yao@codesourcery.com>
5733 * varobj.c (struct varobj_item): New structure.
5734 (create_child_with_value): Update declaration.
5735 (varobj_add_child): Replace arguments 'name' and 'value' with
5736 'item'. All callers updated.
5737 (install_dynamic_child): Likewise.
5738 (update_dynamic_varobj_children): Likewise.
5739 (varobj_add_child): Likewise.
5740 (create_child_with_value): Likewise.
5742 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5744 * NEWS: Create a new section for the next release branch.
5745 Rename the section of the current branch, now that it has
5748 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5750 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5751 * version.in: Bump version to 7.8.50.DATE-cvs.
5753 2014-06-11 Pedro Alves <palves@redhat.com>
5756 * ser-mingw.c (net_windows_socket_check_pending): New function.
5757 (net_windows_select_thread): Ignore spurious wakeups. Use
5758 net_windows_socket_check_pending.
5759 (net_windows_wait_handle): Check for pending events with
5760 ioctlsocket, through net_windows_socket_check_pending, instead of
5761 checking the socket's event.
5763 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5765 * python/python-internal.h (gdb_PyObject_GetAttrString)
5766 (gdb_PyObject_HasAttrString): New inline function definitions.
5767 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5768 char * of the second argument to PyObject_GetAttrString.
5770 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5772 * serial.c (serial_write): Fix index of character to be printed
5773 in call to serial_logchar when serial debug traces are enabled.
5775 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5777 * gdbtypes (resolve_dynamic_range): Add function description.
5779 2014-06-09 Pedro Alves <palves@redhat.com>
5781 * linux-nat.c (linux_child_follow_fork): Initialize status with
5782 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5783 inner block. Only pass the signal to PTRACE_DETACH if in pass
5786 2014-06-09 Gary Benson <gbenson@redhat.com>
5788 * common/signals.c (gdb_signal_from_host): Reorder to separate
5789 the always-available ANSI-standard signals from the signals that
5791 (do_gdb_signal_to_host): Likewise.
5792 * proc-events.c (signal_table): Likewise.
5794 2014-06-08 Hui Zhu <hui@codesourcery.com>
5796 * common/linux-ptrace.c (linux_disable_event_reporting): New
5798 * common/linux-ptrace.h (linux_disable_event_reporting): New
5800 * linux-nat.c (linux_child_follow_fork): Do a single step before
5803 2014-06-07 Keith Seitz <keiths@redhat.com>
5807 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5808 from symbol_matches_domain in symtab.c. All local callers
5809 of symbol_matches_domain updated.
5810 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5811 search STRUCT_DOMAIN.
5812 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5813 independently. standard_lookup will do that automatically.
5814 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5815 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5816 (cp_lookup_symbol_in_namespace): Likewise.
5817 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5818 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5819 may return a STRUCT_DOMAIN match.
5820 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5821 * cp-support.c: Include language.h.
5822 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5824 * psymtab.c (match_partial_symbol): Compare the requested
5825 domain with the symbol's domain directly.
5826 (lookup_partial_symbol): Likewise.
5827 * symtab.c (lookup_symbol_in_language): Explain when/why
5828 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5829 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5830 appropriate languages.
5831 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5832 and moved to ada-lang.c
5833 (lookup_block_symbol): Explain that this function only returns
5834 symbol matching the requested DOMAIN.
5835 Compare the requested domain with the symbol's domain directly.
5836 (iterate_over_symbols): Compare the requested domain with the
5837 symbol's domain directly.
5838 * symtab.h (symbol_matches_domain): Remove.
5840 2014-06-06 Doug Evans <xdje42@gmail.com>
5842 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5843 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5844 (gdbscm_guile_version_is_at_least): Declare.
5845 (gdbscm_scm_string_to_int): Declare.
5846 * guile/guile.c (gdbscm_guile_major_version): New global.
5847 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5848 (guile_datadir): New static global.
5849 (gdbscm_guile_data_directory): New function.
5850 (initialize_scheme_side): Update.
5851 (misc_guile_functions): Add guile-data-directory.
5852 (initialize_gdb_module): Fetch guile version number.
5853 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5854 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5855 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5856 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5858 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5859 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5860 * guile/scm-value.c (gdbscm_value_to_string): Only call
5861 scm_port_conversion_strategy if Guile version >= 2.0.6.
5863 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5865 * main.c (print_gdb_help): Add -q and --silent.
5867 2014-06-06 Gary Benson <gbenson@redhat.com>
5869 * common/signals.c: Remove preprocessor conditionals for
5870 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5871 SIGSEGV and SIGTERM.
5872 * proc-events.c: Likewise.
5874 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5876 * symfile.c (symfile_free_objfile): Remove restriction to
5878 * symfile-mem.c (symbol_file_add_from_memory): Call
5879 add_target_sections_of_objfile.
5881 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5883 * guile/scm-value.c (gdbscm_history_append_x): Use
5884 'vlscm_get_value_smob_arg_unsafe' instead of
5885 'vlscm_scm_to_value'.
5887 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5890 * utils.c (printchar): Don't escape at all if quoter is NUL.
5891 Update function documentation to clarify effect of parameter
5893 * remote.c (escape_buffer): Pass '\\' as the quoter to
5894 fputstrn_unfiltered.
5895 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5896 generate the output.
5897 (mi_solib_unloaded): Same.
5899 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5901 * development.sh: Delete.
5902 * Makefile.in (config.status): Adjust dependency on development.sh.
5903 * configure.ac: Adjust development.sh source call.
5904 * configure: Regenerate.
5906 2014-06-04 Doug Evans <xdje42@gmail.com>
5908 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5909 is_scheme_bkpt, spec.
5910 (bpscm_make_breakpoint_smob): Initialize new members.
5911 (gdbscm_create_breakpoint_x): Split into two ...
5912 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5913 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5914 (scheme_function breakpoint_functions): Update.
5915 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5916 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5917 register-breakpoint!.
5919 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5922 * mem-break.c (z_type_supported): Return zero if
5923 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5925 2014-06-04 Tom Tromey <tromey@redhat.com>
5927 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5928 value_from_contents_and_address_unresolved.
5929 (ada_template_to_fixed_record_type_1): Likewise.
5930 (ada_which_variant_applies): Likewise.
5931 * value.h (value_from_contents_and_address_unresolved): Declare.
5932 * value.c (value_from_contents_and_address_unresolved): New
5934 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5935 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5936 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5938 2014-06-04 Tom Tromey <tromey@redhat.com>
5940 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5942 2014-06-04 Tom Tromey <tromey@redhat.com>
5944 * procfs.c (procfs_attach): Make "args" const.
5945 * windows-nat.c (windows_attach): Make "args" const.
5946 * nto-procfs.c (procfs_attach): Make "args" const.
5947 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5948 * go32-nat.c (go32_attach): Make "args" const.
5949 * gnu-nat.c (gnu_attach): Make "args" const.
5950 * darwin-nat.c (darwin_attach): Make "args" const.
5951 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5952 * linux-nat.c (linux_nat_attach): Make "args" const.
5953 * remote.c (extended_remote_attach_1, extended_remote_attach):
5955 * target.h (struct target_ops) <to_attach>: Make "args" const.
5956 (find_default_attach): Likewise.
5957 * utils.c (parse_pid_to_attach): Make "args" const.
5958 * utils.h (parse_pid_to_attach): Update.
5960 2014-06-04 Tom Tromey <tromey@redhat.com>
5962 * target-delegates.c: Rebuild.
5963 * target.c (default_thread_address_space): New function.
5964 (target_thread_address_space): Simplify.
5965 * target.h (struct target_ops) <to_thread_address_space>: Add
5966 TARGET_DEFAULT_FUNC.
5968 2014-06-04 Doug Evans <xdje42@gmail.com>
5970 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5972 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5974 * record-btrace.c: Include event-loop.h and inf-loop.h.
5975 (record_btrace_resume_exec_dir)
5976 (record_btrace_async_inferior_event_handler)
5977 (record_btrace_handle_async_inferior_event): New.
5978 (record_btrace_open): Create async event handler.
5979 (record_btrace_close): Delete async event handler.
5980 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5981 Mark async event handler.
5982 (record_btrace_execution_direction): New.
5983 (init_record_btrace_ops): Initialize to_execution_direction.
5985 2014-06-03 Doug Evans <xdje42@gmail.com>
5987 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5988 (gdbscm_make_parameter): Ditto.
5990 2014-06-03 Doug Evans <dje@google.com>
5992 * exec.c (exec_close_1): Call clear_section_table instead of
5993 resize_section_table.
5994 (clear_section_table): New function.
5995 (resize_section_table): Make static. Rename arg num_added to
5997 * exec.h (clear_section_table): Declare.
5998 (resize_section_table): Delete.
5999 * progspace.c (release_program_space): Call clear_section_table
6000 instead of resize_section_table.
6002 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6004 * NEWS (Python Scripting): Add entry about the new xmethods
6007 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6009 * python/py-xmethods.c: New file.
6010 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6011 (objfpy_dealloc): XDECREF on the new xmethods field.
6012 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6014 (objfpy_get_xmethods): New function.
6015 (objfile_getset): New entry 'xmethods'.
6016 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6017 (pspy_dealloc): XDECREF on the new xmethods field.
6018 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6020 (pspy_get_xmethods): New function.
6021 (pspace_getset): New entry 'xmethods'.
6022 * python/python-internal.h: Add declarations for new functions.
6023 * python/python.c (_initialize_python): Invoke
6024 gdbpy_initialize_xmethods.
6025 * python/lib/gdb/__init__.py (xmethods): New
6027 * python/lib/gdb/xmethod.py: New file.
6028 * python/lib/gdb/command/xmethods.py: New file.
6030 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6032 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6033 best match method returned by find_overload_match is an xmethod.
6034 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6035 the best matching operator returned by find_overload_match is an
6037 * valops.c: #include "extension.h".
6038 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6039 Return void. The list of matching source methods is returned in
6040 "fn_list" and a vector of matching debug method workers is
6041 returned in "xm_worker_vec". Update all callers.
6042 (value_find_oload_method_list): Likewise.
6043 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6044 non-NULL, then the index of the best matching method in this
6045 vector is returned. Update all callers.
6046 (find_overload_match): Include xmethods while performing overload
6049 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6051 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6052 * extension-priv.h (struct extension_language_ops): Add the
6054 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6055 get_matching_xmethod_workers, get_xmethod_argtypes,
6056 invoke_xmethod, free_xmethod_worker,
6057 free_xmethod_worker_vec): New functions.
6058 * extension.h: #include "common/vec.h".
6059 New function declarations.
6060 (struct xmethod_worker): New struct.
6061 (VEC (xmethod_worker_ptr)): New vector type.
6062 (xmethod_worker_ptr): New typedef.
6063 (xmethod_worker_vec): Likewise.
6064 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6066 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6067 (struct builtin_type): New field "xmethod".
6068 * valarith.c (value_ptradd): Assert that the value argument is not
6070 * valops.c (value_must_coerce_to_target): Return 0 for
6071 lval_xcallable values.
6072 * value.c (struct value): New field XM_WORKER in the field
6074 (value_address, value_raw_address): Return 0 for lval_xcallable
6076 (set_value_address): Assert that the value is not an
6078 (value_free): Free the associated xmethod worker when freeing
6079 lval_xcallable values.
6080 (set_value_component_location): Assert that the WHOLE value is not
6082 (value_of_xmethod, call_xmethod): New functions.
6083 * value.h: Declare "struct xmethod_worker".
6084 Declare new functions value_of_xmethod, call_xmethod.
6086 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6087 Pedro Alves <palves@redhat.com>
6089 PR breakpoints/17000
6090 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6091 New function, extracted from software_breakpoint_inserted_here_p.
6092 (software_breakpoint_inserted_here_p): Replace factored out code
6093 by call to find_non_raw_software_breakpoint_inserted_here.
6094 (bp_target_info_copy_insertion_state): New function.
6095 (bkpt_insert_location): Handle the case of a single-step
6096 breakpoint already inserted at the same address.
6097 (bkpt_remove_location): Handle the case of a single-step
6098 breakpoint still inserted at the same address.
6099 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6100 breakpoint already inserted at the same address.
6101 (deprecated_remove_raw_breakpoint): Handle the case of a
6102 non-raw breakpoint still inserted at the same address.
6103 (find_single_step_breakpoint): New function, extracted from
6104 single_step_breakpoint_inserted_here_p.
6105 (find_single_step_breakpoint): New function,
6106 factored out from single_step_breakpoint_inserted_here_p.
6107 (single_step_breakpoint_inserted_here_p): Reimplement.
6109 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6111 Pushed by Joel Brobecker <brobecker@adacore.com>
6112 * source.c (show_substitute_path_command): Fix display of matching
6115 2014-06-03 Gary Benson <gbenson@redhat.com>
6117 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6119 2014-06-02 Doug Evans <xdje42@gmail.com>
6121 Add parameter support for Guile.
6122 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6123 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6124 (scm-param.o): New rule.
6125 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6126 (gdbscm_misc_error): Declare.
6127 (gdbscm_canonicalize_command_name): Declare.
6128 (gdbscm_scm_to_host_string): Declare.
6129 (gdbscm_scm_from_host_string): Declare.
6130 (gdbscm_initialize_parameters): Declare.
6131 * guile/guile.c (initialize_gdb_module): Call
6132 gdbscm_initialize_parameters.
6133 * guile/lib/gdb.scm: Export parameter symbols.
6134 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6135 cmdscm_canonicalize_name and made public. All callers updated.
6136 * guile/scm-exception.c (gdbscm_misc_error): New function.
6137 * guile/scm-param.c: New file.
6138 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6139 (gdbscm_scm_to_host_string): New function.
6140 (gdbscm_scm_from_host_string): New function.
6141 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6143 2014-06-02 Doug Evans <xdje42@gmail.com>
6145 Add command support for Guile.
6146 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6147 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6148 (scm-cmd.o): New rule.
6149 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6150 (gdbscm_user_error_p): Declare.
6151 (gdbscm_parse_command_name): Declare.
6152 (gdbscm_valid_command_class_p): Declare.
6153 (gdbscm_initialize_commands): Declare.
6154 * guile/guile.c (initialize_gdb_module): Call
6155 gdbscm_initialize_commands.
6156 * guile/lib/gdb.scm: Export command symbols.
6157 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6158 (throw-user-error): New function.
6159 * guile/scm-cmd.c: New file.
6160 * guile/scm-exception.c (user_error_symbol): New static global.
6161 (gdbscm_user_error_p): New function.
6162 (gdbscm_initialize_exceptions): Set user_error_symbol.
6163 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6165 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6167 * top.c (command_loop): Handle comments here...
6168 (command_line_input): ... not here.
6170 2014-06-02 Doug Evans <xdje42@gmail.com>
6172 Add progspace support for Guile.
6173 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6174 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6175 (scm-progspace.o): New rule.
6176 * guile/guile-internal.h (pspace_smob): New typedef.
6177 (psscm_pspace_smob_pretty_printers): Declare.
6178 (psscm_pspace_smob_from_pspace): Declare.
6179 (psscm_scm_from_pspace): Declare.
6180 * guile/guile.c (initialize_gdb_module): Call
6181 gdbscm_initialize_pspaces.
6182 * guile/lib/gdb.scm: Export progspace symbols.
6183 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6185 (append-pretty-printer!): Ditto.
6186 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6188 * guile/scm-progspace.c: New file.
6190 2014-06-03 Alan Modra <amodra@gmail.com>
6192 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6193 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6195 2014-06-02 Doug Evans <dje@google.com>
6197 Add support for skeletonless type units.
6198 * dwarf2read.c (struct dwarf2_per_objfile): New member
6199 n_allocated_type_units.
6200 (struct dwarf2_per_objfile) <tu_stats>: New member
6201 nr_all_type_units_reallocs.
6202 (create_signatured_type_table_from_index): Initialize
6203 n_allocated_type_units
6204 (create_all_type_units): Ditto.
6205 (add_type_unit): Move up in file. New arg slot.
6206 All callers updated. Increase space for all_type_units more
6208 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6209 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6210 (lookup_dwp_signatured_type): Ditto.
6211 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6212 All callers updated.
6213 (build_type_psymtabs_1): Leave type_unit_groups as
6214 NULL if no TUs present.
6215 (print_tu_stats): New function.
6216 (process_skeletonless_type_unit): New function.
6217 (process_dwo_file_for_skeletonless_type_units): New
6219 (process_skeletonless_type_units): New function.
6220 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6221 Call print tu_stats if debugging enabled.
6223 2014-06-02 Pedro Alves <palves@redhat.com>
6225 * breakpoint.c (build_target_command_list): Don't build a command
6226 list if we have any duplicate location that isn't a dprintf.
6228 2014-06-02 Pedro Alves <palves@redhat.com>
6230 * breakpoint.c (dprintf_breakpoint_hit): New function.
6231 (initialize_breakpoint_ops): Install it as dprintf's
6232 breakpoint_hit method.
6234 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6236 * source.c (substitute_path_rule_matches): Simplify using
6237 filename_ncmp instead of FILENAME_CMP.
6239 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6241 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6243 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6245 * configure.ac: When Guile is available, check for the
6246 availability of 'scm_new_smob'.
6247 * configure, config.h.in: Regenerate.
6248 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6251 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6253 * frame.c (struct frame_info): Add stop_string field.
6254 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6255 (get_prev_frame_always): Old content moved into
6256 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6257 TRY_CATCH, handle MEMORY_ERROR exceptions.
6258 (frame_stop_reason_string): New function definition.
6259 * frame.h (unwind_stop_reason_to_string): Extend comment to
6260 mention frame_stop_reason_string.
6261 (frame_stop_reason_string): New function declaration.
6262 * stack.c (frame_info): Switch to frame_stop_reason_string.
6263 (backtrace_command_1): Switch to frame_stop_reason_string.
6264 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6265 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6266 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6268 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6270 * frame.c (frame_stop_reason_string): Rename to ...
6271 (unwind_stop_reason_to_string): this.
6272 * frame.h (frame_stop_reason_string): Rename to ...
6273 (unwind_stop_reason_to_string): this.
6274 * stack.c (frame_info): Update call to frame_stop_reason_string.
6275 (backtrace_command_1): Likewise.
6276 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6277 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6279 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6281 * frame.c (remove_prev_frame): New function.
6282 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6285 2014-05-29 Pedro Alves <palves@redhat.com>
6287 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6288 and make it const. When a single-step decays to a continue,
6289 clear 'step', not 'hw_step'. Pass whether the caller wanted
6290 to step to user_visible_resume_ptid, not what we ask the
6293 2014-05-29 Pedro Alves <palves@redhat.com>
6295 * infrun.c (process_event_stop_test, handle_step_into_function)
6296 (handle_step_into_function_backward): Adjust.
6297 Don't set the even thread's stop_step and call stop_waiting before
6298 calling end_stepping_range. Instead do that ...
6299 (end_stepping_range): ... here. Take an ecs pointer parameter.
6301 2014-05-29 Pedro Alves <palves@redhat.com>
6303 * infrun.c (stop_stepping): Rename to ...
6304 (stop_waiting): ... this.
6305 (proceed): Update comment.
6306 (process_event_stop_test, handle_inferior_event)
6307 (handle_signal_stop, handle_step_into_function)
6308 (handle_step_into_function_backward): Update.
6310 2014-05-29 Pedro Alves <palves@redhat.com>
6312 * infcall.c (run_inferior_call): Don't check whether the current
6313 thread is running after the proceed call.
6315 2014-05-29 Pedro Alves <palves@redhat.com>
6316 Tom Tromey <tromey@redhat.com>
6318 * NEWS: Mention "maint set target-async", "set mi-async", and that
6319 background execution commands are now always available.
6320 * target.h (target_async_permitted): Update comment.
6321 * target.c (target_async_permitted, target_async_permitted_1):
6323 (set_target_async_command): Rename to ...
6324 (maint_set_target_async_command): ... this.
6325 (show_target_async_command): Rename to ...
6326 (maint_show_target_async_command): ... this.
6327 (_initialize_target): Adjust.
6328 * infcmd.c (prepare_execution_command): Make extern.
6329 * inferior.h (prepare_execution_command): Declare.
6330 * infrun.c (set_observer_mode): Leave target async alone.
6331 * mi/mi-interp.c (mi_interpreter_init): Install
6332 mi_on_sync_execution_done as sync_execution_done observer.
6333 (mi_on_sync_execution_done): New function.
6334 (mi_execute_command_input_handler): Don't print the prompt if we
6335 just started a synchronous command with an async target.
6336 (mi_on_resume): Check sync_execution before printing prompt.
6337 * mi/mi-main.h (mi_async_p): Declare.
6338 * mi/mi-main.c: Include gdbcmd.h.
6339 (mi_async_p): New function.
6340 (mi_async, mi_async_1): New globals.
6341 (set_mi_async_command, show_mi_async_command, mi_async): New
6343 (exec_continue): Call prepare_execution_command.
6344 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6345 (mi_execute_async_cli_command): Use mi_async_p.
6346 (_initialize_mi_main): Install "set mi-async". Make
6347 "target-async" a deprecated alias.
6349 2014-05-29 Pedro Alves <palves@redhat.com>
6351 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6352 (_initialize_cli_interp): Adjust.
6353 * event-loop.c: Include "observer.h".
6354 (start_event_loop): Notify 'command_error' observers instead of
6355 calling display_gdb_prompt. Remove FIXME comment.
6356 * event-top.c (display_gdb_prompt): Remove call into the
6358 * inf-loop.c: Include "observer.h".
6359 (inferior_event_handler): Notify 'command_error' observers instead
6360 of calling display_gdb_prompt.
6361 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6362 observers instead of calling display_gdb_prompt.
6363 * interps.c (interp_set): Don't call display_gdb_prompt.
6364 (current_interp_display_prompt_p): Delete.
6365 * interps.h (interp_prompt_p): Delete declaration.
6366 (interp_prompt_p_ftype): Delete.
6367 (struct interp_procs) <prompt_proc_p>: Delete field.
6368 (current_interp_display_prompt_p): Delete declaration.
6369 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6370 (_initialize_mi_interp): Adjust.
6371 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6372 'command_error' observers.
6373 (tui_on_sync_execution_done, tui_on_command_error): New
6375 (tui_display_prompt_p): Delete.
6376 (_initialize_tui_interp): Adjust.
6378 2014-05-29 Pedro Alves <palves@redhat.com>
6381 * cli/cli-interp.c: Include infrun.h and observer.h.
6382 (cli_uiout, cli_interp): New globals.
6383 (cli_on_signal_received, cli_on_end_stepping_range)
6384 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6386 (cli_interpreter_init): Install them as 'end_stepping_range',
6387 'signal_received' 'signal_exited', 'exited' and 'no_history'
6389 (_initialize_cli_interp): Remove cli_interp local.
6390 * infrun.c (handle_inferior_event): Call the several stop reason
6391 observers instead of printing the stop reason directly.
6392 (end_stepping_range): New function.
6393 (print_end_stepping_range_reason, print_signal_exited_reason)
6394 (print_exited_reason, print_signal_received_reason)
6395 (print_no_history_reason): Make static, and add an uiout
6396 parameter. Print to that instead of to CURRENT_UIOUT.
6397 * infrun.h (print_end_stepping_range_reason)
6398 (print_signal_exited_reason, print_exited_reason)
6399 (print_signal_received_reason print_no_history_reason): New
6401 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6403 <cli_uiout>: New field.
6404 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6405 uiout for CLI output. Install 'signal_received',
6406 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6408 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6409 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6410 (mi_on_no_history): New functions.
6411 (ui_out_free_cleanup): Delete function.
6412 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6413 instead use the one already stored in the MI interpreter data.
6414 (mi_ui_out): Adjust.
6415 * tui/tui-interp.c: Include infrun.h and observer.h.
6416 (tui_interp): New global.
6417 (tui_on_signal_received, tui_on_end_stepping_range)
6418 (tui_on_signal_exited, tui_on_exited)
6419 (tui_on_no_history): New functions.
6420 (tui_init): Install them as 'end_stepping_range',
6421 'signal_received' 'signal_exited', 'exited' and 'no_history'
6423 (_initialize_tui_interp): Delete tui_interp local.
6425 2014-05-29 Pedro Alves <palves@redhat.com>
6428 * linux-nat.c (linux_nat_resume_callback): Rename the second
6429 parameter to 'except'. Skip LP if it points to EXCEPT.
6430 (linux_nat_resume): Don't mark the event lwp as not stopped
6431 before resuming sibling lwps. Instead ask
6432 linux_nat_resume_callback to skip the event lwp. Mark it as not
6433 stopped after actually resuming it.
6434 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6436 (wait_lwp): Mark the lwp as stopped here.
6437 (stop_wait_callback): Mark the lwp as not stopped right after
6438 resuming it. Don't mark lwps as stopped here.
6439 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6440 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6442 2014-05-29 Pedro Alves <palves@redhat.com>
6445 * infrun.c (resume): Determine how much to resume depending on
6446 whether the caller wanted a step, not whether we can hardware step
6447 the target. Mark all threads that we intend to run as running,
6448 unless we're calling an inferior function.
6449 (normal_stop): If the thread is running an infcall, don't finish
6451 * target.c (target_resume): Don't mark threads as running here.
6453 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6455 * serial.c (_initialize_serial): Remove support for
6456 the "set remotebaud" and "show remotebaud" commands.
6457 * NEWS: Add entry documenting the removal of that command.
6459 2014-05-28 Yao Qi <yao@codesourcery.com>
6461 * charset.c: Fix typo in comments.
6463 2014-05-27 Gary Benson <gbenson@redhat.com>
6465 * utils.c (internal_vproblem): Prompt for a bug report.
6467 2014-05-26 Andy Wingo <wingo@igalia.com>
6469 * guile/scm-arch.c (arscm_mark_arch_smob):
6470 * guile/scm-block.c (bkscm_mark_block_smob)
6471 (bkscm_mark_block_syms_progress_smob):
6472 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6473 * guile/scm-exception.c (exscm_mark_exception_smob):
6474 * guile/scm-frame.c (frscm_mark_frame_smob):
6475 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6476 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6477 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6478 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6479 (ppscm_mark_pretty_printer_worker_smob):
6480 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6481 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6482 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6483 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6485 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6488 2014-05-26 Andy Wingo <wingo@igalia.com>
6489 Doug Evans <xdje42@gmail.com>
6491 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6492 empty_base_class. All uses updated.
6493 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6494 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6496 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6497 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6498 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6499 (gdbscm_gsmob_has_property_p, add_property_name)
6500 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6501 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6502 (gdb-object-has-property?, gdb-object-properties): Remove.
6503 (gdb-object-kind): Renamed from gsmob-kind.
6505 2014-05-26 Andy Wingo <wingo@igalia.com>
6507 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6508 * configure: Regenerate.
6510 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6512 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6514 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6516 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6517 (replay_memory_access_read_only, replay_memory_access_read_write)
6518 (replay_memory_access_types, replay_memory_access)
6519 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6520 (cmd_set_record_btrace, cmd_show_record_btrace)
6521 (cmd_show_replay_memory_access): New.
6522 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6523 (record_btrace_remove_breakpoint): Replace
6524 record_btrace_allow_memory_access with replay_memory_access.
6525 (_initialize_record_btrace): Add commands.
6526 * NEWS: Announce it.
6528 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6530 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6532 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6534 * MAINTAINERS (Write After Approval): Move self back from
6537 2014-05-22 Pedro Alves <palves@redhat.com>
6539 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6540 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6541 (disable_randomization, enum exec_direction_kind)
6542 (execution_direction, stop_registers, start_remote)
6543 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6544 (wait_for_inferior, normal_stop, get_last_target_status)
6545 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6546 (insert_step_resume_breakpoint_at_sal)
6547 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6548 (set_step_info, print_stop_event, signal_stop_state)
6549 (signal_print_state, signal_pass_state, signal_stop_update)
6550 (signal_print_update, signal_pass_update)
6551 (update_signals_program_target, clear_exit_convenience_vars)
6552 (displaced_step_dump_bytes, update_observer_mode)
6553 (signal_catch_update, gdb_signal_from_command): Move
6555 * infrun.h: ... to this new file.
6556 * amd64-tdep.c: Include infrun.h.
6557 * annotate.c: Include infrun.h.
6558 * arch-utils.c: Include infrun.h.
6559 * arm-linux-tdep.c: Include infrun.h.
6560 * arm-tdep.c: Include infrun.h.
6561 * break-catch-sig.c: Include infrun.h.
6562 * breakpoint.c: Include infrun.h.
6563 * common/agent.c: Include infrun.h instead of inferior.h.
6564 * corelow.c: Include infrun.h.
6565 * event-top.c: Include infrun.h.
6566 * go32-nat.c: Include infrun.h.
6567 * i386-tdep.c: Include infrun.h.
6568 * inf-loop.c: Include infrun.h.
6569 * infcall.c: Include infrun.h.
6570 * infcmd.c: Include infrun.h.
6571 * infrun.c: Include infrun.h.
6572 * linux-fork.c: Include infrun.h.
6573 * linux-nat.c: Include infrun.h.
6574 * linux-thread-db.c: Include infrun.h.
6575 * monitor.c: Include infrun.h.
6576 * nto-tdep.c: Include infrun.h.
6577 * procfs.c: Include infrun.h.
6578 * record-btrace.c: Include infrun.h.
6579 * record-full.c: Include infrun.h.
6580 * remote-m32r-sdi.c: Include infrun.h.
6581 * remote-mips.c: Include infrun.h.
6582 * remote-notif.c: Include infrun.h.
6583 * remote-sim.c: Include infrun.h.
6584 * remote.c: Include infrun.h.
6585 * reverse.c: Include infrun.h.
6586 * rs6000-tdep.c: Include infrun.h.
6587 * s390-linux-tdep.c: Include infrun.h.
6588 * solib-irix.c: Include infrun.h.
6589 * solib-osf.c: Include infrun.h.
6590 * solib-svr4.c: Include infrun.h.
6591 * target.c: Include infrun.h.
6592 * top.c: Include infrun.h.
6593 * windows-nat.c: Include infrun.h.
6594 * mi/mi-interp.c: Include infrun.h.
6595 * mi/mi-main.c: Include infrun.h.
6596 * python/py-threadevent.c: Include infrun.h.
6598 2014-05-22 Pedro Alves <palves@redhat.com>
6600 * infrun.c (handle_inferior_event): Store the exit code for
6601 --return-child-result here, instead of ...
6602 (print_exited_reason): ... here.
6604 2014-05-21 Pedro Alves <palves@redhat.com>
6607 * gdbthread.h (struct thread_control_state): New field
6609 * infrun.c (follow_fork): Copy the new thread control field to the
6611 (clear_proceed_status_thread): Clear the new thread control field.
6612 (proceed): Set the new thread control field.
6613 * interps.h (command_interp): Declare.
6614 * interps.c (command_interpreter): New global.
6615 (command_interp): New function.
6616 (interp_exec): Set `command_interpreter' while here.
6617 * cli-out.c (cli_uiout_dtor): New function.
6618 (cli_ui_out_impl): Install it.
6619 * mi/mi-interp.c: Include cli-out.h.
6620 (mi_cmd_interpreter_exec): Add comment.
6621 (restore_current_uiout_cleanup): New function.
6622 (ui_out_free_cleanup): New function.
6623 (mi_on_normal_stop): If finishing an execution command started by
6624 a CLI command, or any kind of breakpoint-like event triggered,
6625 print the stop event to the output (CLI) stream.
6626 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6628 2014-05-21 Pedro Alves <palves@redhat.com>
6630 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6631 current source line having changed.
6632 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6633 * infrun.c (normal_stop): Adjust call to
6634 set_current_sal_from_frame.
6635 * source.c (clear_lines_listed_range): New function.
6636 (set_current_source_symtab_and_line, identify_source_line): Clear
6637 the lines listed range.
6638 (line_info): Handle the first "info line" after the current source
6639 line having changed.
6640 * stack.c (print_stack_frame): Remove center handling.
6641 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6644 2014-05-21 Pedro Alves <palves@redhat.com>
6646 * inf-child.c (inf_child_mourn_inferior): New function.
6647 * inf-child.h (inf_child_mourn_inferior): New declaration.
6648 * darwin-nat.c (darwin_mourn_inferior): Use
6649 inf_child_mourn_inferior.
6650 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6651 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6652 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6653 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6654 * windows-nat.c (windows_mourn_inferior): Likewise.
6656 2014-05-21 Doug Evans <xdje42@gmail.com>
6658 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6660 2014-05-21 Doug Evans <xdje42@gmail.com>
6662 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6663 (gdbscm_out_of_range_error): Ditto.
6664 (gdbscm_memory_error): Ditto.
6665 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6666 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6667 (gdbscm_out_of_range_error): Update.
6668 (gdbscm_memory_error): Update.
6669 (gdbscm_scm_to_target_string_unsafe): Delete.
6671 2014-05-21 Pedro Alves <palves@redhat.com>
6673 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6675 (inf_child_open_target): New function.
6676 (inf_child_open): Use inf_child_open_target to push the target
6677 instead of erroring out.
6678 (inf_child_disconnect, inf_child_close)
6679 (inf_child_maybe_unpush_target): New functions.
6680 (inf_child_target): Install inf_child_disconnect and
6681 inf_child_close. Store a pointer to the returned object.
6682 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6684 * target.c (auto_connect_native_target): New global.
6685 (show_default_run_target): New function.
6686 (find_default_run_target): Return NULL if automatically connecting
6687 to the native target is disabled.
6688 (_initialize_target): Install set/show auto-connect-native-target.
6689 * NEWS: Mention "set auto-connect-native-target", and "target
6691 * linux-nat.c (super_close): New global.
6692 (linux_nat_close): Call super_close.
6693 (linux_nat_add_target): Store a pointer to the base class's
6695 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6696 inf_child_maybe_unpush.
6697 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6699 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6700 the inferior. Use inf_child_maybe_unpush_target.
6701 (inf_ttrace_attach): Don't push the target if it is already
6703 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6704 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6705 after mourning the inferior. Use inf_child_maybe_unpush_target.
6706 (darwin_attach_pid): Don't push the target if it is already
6708 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6709 mourning the inferior. Use inf_child_maybe_unpush_target.
6710 (gnu_detach): Use inf_child_maybe_unpush_target.
6711 * go32-nat.c (go32_create_inferior): Don't push the target if it
6713 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6714 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6715 (procfs_open): Rename to ...
6716 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6717 comments. Can target_preopen before changing node. Call
6718 inf_child_open_target to push the target explicitly.
6719 (procfs_attach): Don't push the target if it is already pushed.
6720 (procfs_detach): Use inf_child_maybe_unpush_target.
6721 (procfs_create_inferior): Don't push the target if it is already
6723 (nto_native_ops): New global.
6724 (procfs_open): Reimplement.
6725 (procfs_native_open): New function.
6726 (init_procfs_targets): Install procfs_native_open as to_open of
6727 "target native". Store a pointer to the "native" target in
6729 * procfs.c (procfs_attach): Don't push the target if it is already
6731 (procfs_detach): Use inf_child_maybe_unpush_target.
6732 (procfs_mourn_inferior): Only unpush the target after mourning the
6733 inferior. Use inf_child_maybe_unpush_target.
6734 (procfs_init_inferior): Don't push the target if it is already
6736 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6737 if it is already pushed.
6739 2014-05-21 Pedro Alves <palves@redhat.com>
6741 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6742 and "procfs" targets are now called "native" instead.
6744 2014-05-21 Pedro Alves <palves@redhat.com>
6746 * go32-nat.c (go32_open): Delete.
6747 (go32_target): Don't override the to_open method.
6749 2014-05-21 Pedro Alves <palves@redhat.com>
6751 * nto-procfs.c (procfs_can_run): New function.
6752 (nto_procfs_ops): New global.
6753 (init_procfs_targets): New, based on procfs_target. Install
6754 "target native" in addition to "target procfs".
6755 (_initialize_procfs): Call init_procfs_targets instead of adding
6758 2014-05-21 Pedro Alves <palves@redhat.com>
6760 * windows-nat.c (windows_target): Don't override to_shortname,
6761 to_longname or to_doc.
6763 2014-05-21 Pedro Alves <palves@redhat.com>
6765 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6768 2014-05-21 Pedro Alves <palves@redhat.com>
6770 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6771 to_shortname, to_longname or to_doc.
6773 2014-05-21 Pedro Alves <palves@redhat.com>
6775 * go32-nat.c (go32_target): Don't override to_shortname,
6776 to_longname or to_doc.
6778 2014-05-21 Pedro Alves <palves@redhat.com>
6780 * inf-child.c (inf_child_open): Remove mention of "child".
6781 (inf_child_target): Rename target to "native" instead of "child".
6783 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6785 * Makefile.in (SFILES): Delete "regset.c".
6786 (COMMON_OBS): Delete "regset.o".
6788 * regset.h (regset_alloc): Delete prototype.
6790 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6792 * sparc-linux-tdep.c (sparc32_linux_gregset)
6793 (sparc32_linux_fpregset): New static regset structures.
6794 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6795 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6797 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6798 (sparc64_linux_fpregset): New static regset structures.
6799 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6800 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6801 New static regset structures.
6802 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6803 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6804 New static regset structures.
6805 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6806 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6807 New static regset structures.
6808 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6809 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6810 New static regset structures.
6811 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6813 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6815 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6816 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6817 register maps ("regmaps") from "*regset" to "*regmap". Do this
6818 for all regmap types and variables.
6819 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6820 (sparc32_linux_supply_core_gregset)
6821 (sparc32_linux_collect_core_gregset)
6822 (sparc32_linux_supply_core_fpregset)
6823 (sparc32_linux_collect_core_fpregset): Likewise.
6824 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6825 (sparc_gregmap, sparc_fpregmap): ... these.
6826 (sparc_supply_gregset, sparc_collect_gregset)
6827 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6828 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6829 (_initialize_sparc_nat): Rename regmaps.
6830 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6831 (sparc_gregmap, sparc_fpregmap): ... these.
6832 (sparc_supply_gregset, sparc_collect_gregset)
6833 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6834 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6836 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6837 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6839 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6841 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6842 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6843 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6845 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6846 (sparc32_bsd_fpregset): Rename to...
6847 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6848 (sparc32_bsd_fpregmap): ... these.
6849 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6850 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6851 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6852 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6853 (struct sparc_gregmap, struct sparc_fpregmap)
6854 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6855 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6856 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6857 (sparc32_supply_regset, sparc32_collect_gregset)
6858 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6860 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6861 (sparc64_linux_ptrace_gregmap): ... this.
6862 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6863 (_initialize_sparc64_linux_nat): Rename regmaps.
6864 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6865 (sparc64_linux_core_gregmap): ... this.
6866 (sparc64_linux_supply_core_gregset)
6867 (sparc64_linux_collect_core_gregset)
6868 (sparc64_linux_supply_core_fpregset)
6869 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6870 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6871 (sparc64_sol2_fpregset): Rename to...
6872 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6873 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6874 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6876 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6877 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6878 (sparc64_bsd_fpregset): Rename to...
6879 (struct sparc_gregmap, sparc64_sol2_gregmap)
6880 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6881 (sparc64_bsd_fpregmap): ... these.
6882 (sparc64_supply_gregset, sparc64_collect_gregset)
6883 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6885 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6886 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6887 (sparc64fbsd_gregmap): ... this.
6888 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6889 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6891 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6892 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6893 (sparc64nbsd_collect_fpregset): Likewise.
6894 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6895 (sparc64nbsd_gregmap): ... this.
6896 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6898 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6899 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6900 (sparc64obsd_gregmap): ... this.
6901 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6903 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6904 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6905 (sparc32nbsd_gregmap): ... this.
6906 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6909 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6911 * score-tdep.c (score7_linux_gregset): New static regset
6913 (score7_linux_regset_from_core_section): Remove dynamic regset
6915 (score_gdbarch_init): Drop allocation of tdep structure.
6916 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6918 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6920 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6922 (am33_regset_from_core_section): Remove dynamic regset
6925 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6927 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6928 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6930 (mips_linux_regset_from_core_section): Remove dynamic regset
6932 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6933 'gregset64', 'fpregset', and 'fpregset64'.
6934 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6935 deleted tdep fields.
6937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6939 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6941 (amd64_regset_from_core_section): Remove dynamic regset
6943 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6945 (amd64obsd_regset_from_core_section): Remove dynamic regset
6947 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6949 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6950 x86-common regset supply function.
6951 * i386-tdep.c (i386_collect_gregset): Make static.
6952 (i386_gregset): New global regset structure.
6953 (i386_fpregset, i386_xstateregset): New static regset structures.
6954 (i386_regset_from_core_section): Remove dynamic regset
6956 (i386_gdbarch_init): Remove initialization of tdep fields
6957 'gregset', 'fpregset', and 'xstateregset'.
6958 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6959 'fpregset', and 'xstateregset'.
6960 (i386_collect_gregset): Remove prototype.
6961 (i386_gregset): New declaration.
6962 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6964 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6967 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6969 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6970 (arm_linux_vfpregset): New static regset structures.
6971 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6973 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6974 and 'vfpregset' fields.
6976 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6978 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6979 (aarch64_linux_fpregset): New static regset structures.
6980 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6981 of regset structures.
6982 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6987 * regset.h (struct regset): Remove gdbarch field.
6988 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6989 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6990 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6992 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6993 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6994 (ppc32_linux_vsxregset): Likewise.
6995 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6996 via the regcache instead of the regset.
6997 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6998 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6999 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7000 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7005 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7006 Constify structures.
7007 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7008 (alphanbsd_aout_gregset): Likewise.
7009 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7010 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7012 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7013 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7015 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7016 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7017 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7018 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7019 * m88k-tdep.c (m88k_gregset): Likewise.
7020 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7021 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7022 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7023 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7024 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7025 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7026 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7027 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7028 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7030 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7031 * sh-tdep.h (sh_corefile_gregset): Likewise.
7032 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7033 * vax-tdep.c (vax_gregset): Likewise.
7035 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7037 Fix TLS access for -static -pthread.
7038 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7039 (try_thread_db_load_1): Initialize it.
7040 (thread_db_get_thread_local_address): Call it if LM is zero.
7041 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7042 * target.h (struct target_ops) (to_get_thread_local_address): Add
7043 load_module_addr comment.
7045 2014-05-21 Pedro Alves <palves@redhat.com>
7047 * dcache.c (dcache_read_memory_partial): If reading the cache line
7048 fails, fallback to reading just the memory the caller wanted.
7050 2014-05-20 Doug Evans <dje@google.com>
7052 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7053 instead of get_current_arch.
7055 2014-05-20 Pedro Alves <palves@redhat.com>
7057 * NEWS: Mention that compare-sections now works with all targets.
7059 * remote.c (PACKET_qCRC): New enum value.
7060 (remote_verify_memory): Don't send qCRC if the target has no
7061 execution. Use packet_support/packet_ok. If the target doesn't
7062 support the qCRC packet, fallback to a deep memory copy.
7063 (compare_sections_command): Say "target image" instead of "remote
7065 (_initialize_remote): Add PACKET_qCRC to the list of config
7066 packets that have no associated command. Extend comment.
7067 * target.c (simple_verify_memory, default_verify_memory): New
7069 * target.h (struct target_ops) <to_verify_memory>: Default to
7070 default_verify_memory.
7071 (simple_verify_memory): New declaration.
7072 * target-delegates.c: Regenerate.
7074 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7076 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7078 2014-05-20 Hui Zhu <hui@codesourcery.com>
7079 Yao Qi <yao@codesourcery.com>
7082 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7083 and change address of sp and pc.
7085 2014-05-19 Tom Tromey <tromey@redhat.com>
7087 * gdbtypes.c (rank_function): Use XNEWVEC.
7088 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7090 2014-05-19 Doug Evans <dje@google.com>
7092 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7093 build_type_unit_groups and moved closer to only caller. Remove
7094 arguments. All references updated. Remove outdated .gdb_index
7096 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7097 build_type_psymtabs_1.
7099 2014-05-19 Doug Evans <dje@google.com>
7101 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7102 n_type_unit_groups, all_type_unit_groups. All uses removed.
7103 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7104 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7105 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7106 (add_type_unit_group_to_table): Delete.
7108 2014-05-19 Doug Evans <dje@google.com>
7110 * eval.c (evaluate_subexp_standard): Add some comments.
7112 2014-05-17 Doug Evans <xdje42@gmail.com>
7114 * progspace.c (remove_program_space): Delete, unused.
7115 * progspace.h (remove_program_space): Ditto.
7117 2014-05-17 Doug Evans <xdje42@gmail.com>
7119 * inferior.c (prune_inferiors): Fix comment.
7120 (remove_inferior_command): Call prune_program_spaces.
7122 2014-05-16 Doug Evans <dje@google.com>
7124 New command line option -D.
7126 * main.c (set_gdb_data_directory): New function.
7127 (captured_main): Recognize -D. Flag error for --data-directory "".
7128 Call set_gdb_data_directory.
7129 (print_gdb_help): Print --data-directory, -D.
7130 * main.h (set_gdb_data_directory): Declare.
7131 * top.c (staged_gdb_datadir): New static global.
7132 (set_gdb_datadir): Call set_gdb_data_directory
7133 (show_gdb_datadir): New function.
7134 (init_main): Update init of data-directory parameter.
7136 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7138 Import the "dirfd" gnulib module.
7139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7140 * gnulib/aclocal.m4: Update.
7141 * gnulib/config.in: Update.
7142 * gnulib/configure: Update.
7143 * gnulib/import/Makefile.am: Update.
7144 * gnulib/import/Makefile.in: Update.
7145 * gnulib/import/dirfd.c: New.
7146 * gnulib/import/m4/dirfd.m4: New.
7147 * gnulib/import/m4/gnulib-cache.m4: Update.
7148 * gnulib/import/m4/gnulib-comp.m4: Update.
7150 2014-05-16 Pierre Muller <muller@sourceware.org>
7151 Yao Qi <yao@codesourcery.com>
7153 * valprint.c (print_wchar): Move the code on checking whether
7154 W is a printable wide char to the default branch of switch
7155 statement below. Call wchar_printable instead of gdb_iswprint.
7157 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7159 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7160 ldr.w and ldrd instructions.
7162 2014-05-15 Doug Evans <dje@google.com>
7164 * dwarf2read.c (read_structure_type): Delete outdated comments.
7166 2014-05-14 Tom Tromey <tromey@redhat.com>
7168 * macrocmd.c (print_macro_definition): Reindent.
7170 2014-05-13 Doug Evans <xdje42@gmail.com>
7172 * python/py-cmd.c (cmdpy_completer): Add comment.
7173 (completers): Make const.
7175 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7177 * infrun.c (resume): Remove should_resume (unused). Move up
7178 declaration of resume_ptid.
7180 2014-05-13 Tom Tromey <tromey@redhat.com>
7182 * language.h (unop_type_check): Remove.
7183 (binop_type_check): Don't declare.
7185 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7187 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7188 call to regcache_raw_collect.
7190 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7192 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7193 mi_console->quote as the quoting character.
7195 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7197 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7199 2014-04-29 Tom Tromey <tromey@redhat.com>
7201 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7202 "show debug varobj".
7204 2014-05-07 Kyle McMartin <kyle@redhat.com>
7206 Pushed by Joel Brobecker <brobecker@adacore.com>.
7207 * aarch64-tdep.c (aarch64_software_single_step): New function.
7208 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7209 with aarch64_software_single_step.
7211 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7215 2014-05-05 Keith Seitz <keiths@redhat.com>
7217 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7218 variable or history value is successfully parsed.
7220 2014-05-05 Yao Qi <yao@codesourcery.com>
7221 Pedro Alves <palves@redhat.com>
7223 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7224 address of blocks that intersects the requested range. Trim
7225 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7227 * ctf.c (ctf_xfer_partial): Likewise.
7229 2014-05-05 Yao Qi <yao@codesourcery.com>
7231 * printcmd.c (display_command): Remove the check to
7232 target_has_execution.
7234 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7236 * ppcobsd-nat.c: Include "obsd-nat.h".
7237 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7239 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7241 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7243 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7244 and 16-bit signed and unsigned arguments. Update comment.
7245 (stap_parse_probe_arguments): Extend code to handle such
7246 arguments. Use warning instead of complaint to notify about
7247 unrecognized bitness.
7249 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7251 PR breakpoints/16889
7252 * stap-probe.c (stap_parse_probe_arguments): Simplify
7253 check for non-prefixed probes (i.e., probes whose
7254 arguments do not start with "N@"). Always set the
7255 argument type to a sane value.
7257 2014-05-01 David Taylor <dtaylor@emc.com>
7259 * remote.c (compare_sections_command): Add -r option to compare
7260 all loadable read-only sections.
7262 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7264 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7265 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7267 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7268 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7269 Remove unused CORE_ADDR argument. Update all callers.
7271 2014-04-29 Pedro Alves <palves@redhat.com>
7273 * remote.c (struct packet_config) <detect>: Extend comment.
7274 (add_packet_config_cmd): Don't set the config's detect or support
7276 (init_all_packet_configs): Also initialize the config's 'detect'
7278 (reset_all_packet_configs_support): New function.
7279 (remote_open_1): Call reset_all_packet_configs_support instead of
7280 init_all_packet_configs.
7281 (_initialize_remote): Initialize all packet configs. Assert that
7282 all packets have an associated command, except a few known
7285 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7287 * dwarf2read.c (read_subrange_type): Handle dynamic
7288 DW_AT_lower_bound attributes.
7290 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7292 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7293 dynamic bounds before computing its upper bound.
7294 (ada_discrete_type_low_bound): Same as above with the lower bound.
7296 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7298 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7299 range types. Adjust the array handling implementation to
7300 take advantage of this change.
7301 (resolve_dynamic_range): New function, mostly extracted from
7302 resolve_dynamic_bounds.
7303 (resolve_dynamic_array): New function, mostly extracted from
7304 resolve_dynamic_bounds.
7305 (resolve_dynamic_bounds): Delete.
7306 (resolve_dynamic_type): Reimplement. Add handling of
7307 TYPE_CODE_RANGE types.
7309 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7311 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7312 handling of parallel ___XA types.
7314 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7316 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7317 unnecessary second call to static_unwrap_type.
7319 2014-04-27 Hui Zhu <hui@codesourcery.com>
7321 * stack.c (print_frame_info): Call do_gdb_disassembly with
7322 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7324 2014-04-26 Doug Evans <xdje42@gmail.com>
7326 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7328 2014-04-25 Pedro Alves <palves@redhat.com>
7331 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7332 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7333 and newline from built string.
7334 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7335 (linux_ptrace_attach_fail_reason): ... this.
7336 * linux-nat.c (linux_nat_attach): Adjust to use
7337 linux_ptrace_attach_fail_reason.
7339 2014-04-25 Pedro Alves <palves@redhat.com>
7341 * remote.c (struct remote_state): Remove multi_process_aware,
7342 non_stop_aware, cond_tracepoints, cond_breakpoints,
7343 breakpoint_commands, fast_tracepoints, static_tracepoints,
7344 install_in_trace, disconnected_tracing,
7345 enable_disable_tracepoints, string_tracing, and
7346 augmented_libraries_svr4_read fields.
7347 (remote_multi_process_p): Move further below in the file.
7348 (struct packet_config): Add comments.
7349 (update_packet_config): Delete function.
7350 (show_packet_config_cmd): Use packet_config_support.
7351 (add_packet_config_cmd): Use NULL as set callback.
7352 (packet_ok): "set remote foo-packet"-style commands no longer
7353 change config->supported -- adjust.
7354 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7355 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7356 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7357 (PACKET_QNonStop, PACKET_multiprocess_feature)
7358 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7359 (PACKET_DisconnectedTracing_feature)
7360 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7361 (set_remote_protocol_packet_cmd): Delete function.
7362 (packet_config_support, packet_support): New functions.
7363 (set_remote_protocol_Z_packet_cmd): Don't call
7364 update_packet_config.
7365 (remote_query_attached, remote_pass_signals)
7366 (remote_program_signals, remote_threads_info)
7367 (remote_threads_extra_info, remote_start_remote): Use
7369 (remote_start_remote): Use packet_config_support and
7371 (init_all_packet_configs): Set all packets to unknown support,
7372 instead of calling update_packet_config.
7373 (remote_check_symbols): Use packet_support.
7374 (remote_supported_packet): Unconditionally set the packet config's
7376 (remote_multi_process_feature, remote_non_stop_feature)
7377 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7378 (remote_breakpoint_commands_feature)
7379 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7380 (remote_install_in_trace_feature)
7381 (remote_disconnected_tracing_feature)
7382 (remote_enable_disable_tracepoint_feature)
7383 (remote_string_tracing_feature)
7384 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7385 (remote_protocol_features): Adjust to use remote_supported_packet
7386 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7387 "ConditionalTracepoints", "ConditionalBreakpoints",
7388 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7389 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7390 "EnableDisableTracepoints", and "tracenz".
7391 (remote_query_supported): Use packet_support.
7392 (remote_open_1): Adjust.
7393 (extended_remote_attach_1): Use packet_support. Switch on the
7394 result of packet_ok instead of checking whether the packet ended
7396 (remote_vcont_resume): Use packet_support.
7397 (remote_resume, remote_stop_ns, fetch_register_using_p)
7398 (remote_prepare_to_store, store_register_using_P)
7399 (check_binary_download, remote_write_bytes): Use packet_support.
7400 (remote_vkill): Use packet_support. Switch on the result of
7401 packet_ok instead of checking whether the packet ended up
7403 (extended_remote_supports_disable_randomization): Use
7405 (extended_remote_run): Switch on the result of packet_ok instead
7406 of checking whether the packet ended up disabled.
7407 (remote_insert_breakpoint, remote_remove_breakpoint)
7408 (remote_insert_watchpoint, remote_remove_watchpoint)
7409 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7411 (remote_search_memory): Use packet_config_support.
7412 (remote_get_thread_local_address, remote_get_tib_address)
7413 (remote_hostio_send_command, remote_can_execute_reverse): Use
7415 (remote_supports_cond_tracepoints)
7416 (remote_supports_cond_breakpoints)
7417 (remote_supports_fast_tracepoints)
7418 (remote_supports_static_tracepoints)
7419 (remote_supports_install_in_trace)
7420 (remote_supports_enable_disable_tracepoint)
7421 (remote_supports_string_tracing)
7422 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7423 the packet config says the feature is enabled or disabled.
7424 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7425 (remote_get_trace_status): Use packet_support.
7426 (remote_set_disconnected_tracing): Adjust to check whether the
7427 feature is enabled with packet_support.
7428 (remote_set_trace_buffer_size, remote_use_agent)
7429 (remote_can_use_agent, remote_supports_btrace): Use
7431 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7432 Use packet_config_support.
7433 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7434 the packet config says the feature is enabled or disabled.
7435 (set_range_stepping): Use packet_support.
7437 2014-04-25 Tom Tromey <tromey@redhat.com>
7439 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7442 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7444 * NEWS: Mention support for C99 variable length arrays.
7446 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7448 * ada-lang.c (standard_exc): Expand introductory comment.
7450 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7451 Walfred Tedeschi <walfred.tedeschi@intel.com>
7453 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7455 (amd64_linux_read_description): Add code to handle AVX512 xstate
7456 mask and return respective tdesc.
7457 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7458 and features/i386/x32-avx512-linux.c.
7459 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7460 (amd64_linux_core_read_description): Add code to handle AVX512
7461 xstate mask and return respective tdesc.
7462 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7463 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7465 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7466 (tdesc_amd64_avx512_linux): New prototype.
7467 (tdesc_x32_avx512_linux): Likewise.
7468 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7469 features/i386/x32-avx512.c.
7470 (amd64_ymm_avx512_names): New register names for pseudo
7472 (amd64_ymmh_avx512_names): New register names for raw registers
7474 (amd64_k_names): New register names for K registers.
7475 (amd64_zmmh_names): New register names for ZMM raw registers.
7476 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7477 (amd64_xmm_avx512_names): New register names for XMM16-31
7479 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7481 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7482 if feature is present.
7483 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7484 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7485 (AMD64_NUM_REGS): Adjust to new number of registers.
7486 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7487 registers supplied via XSTATE by AVX512 registers.
7488 (i386_linux_read_description): Add case for AVX512.
7489 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7490 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7491 (i386_linux_core_read_description): Add case for AVX512.
7492 (i386_linux_init_abi): Install supported register note section
7494 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7496 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7497 registers to be number of zmm7h + 1.
7498 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7499 * i386-tdep.c: Include features/i386/i386-avx512.c.
7500 (i386_zmm_names): Add ZMM pseudo register names array.
7501 (i386_zmmh_names): Add ZMM raw register names array.
7502 (i386_k_names): Add K raw register names array.
7503 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7504 registers. AVX512 has 16 more ZMM registers than there are YMM
7506 (i386_zmmh_regnum_p): Add function to look up register number of
7508 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7509 (i386_k_regnum_p): Likewise for K raw registers.
7510 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7511 registers added by AVX512.
7512 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7513 registers added by AVX512.
7514 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7516 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7517 (i386_pseudo_register_name): Add ZMM pseudo registers.
7518 (i386_zmm_type): Construct and return vector registers type for ZMM
7520 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7521 ZMM0-31 pseudo registers and K registers.
7522 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7523 and YMM16-31 registers from register cache.
7524 (i386_pseudo_register_write): Add code to write K, ZMM and
7526 (i386_register_reggroup_p): Add code to include/exclude AVX512
7527 registers in/from respective register groups.
7528 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7529 registers if feature is present in xcr0.
7530 (i386_gdbarch_init): Add code to initialize AVX512 feature
7531 variables in tdep structure, wire in pseudo registers and call
7532 initialize_tdesc_i386_avx512.
7533 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7535 (i386_regnum): Add AVX512 registers.
7536 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7537 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7538 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7539 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7541 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7542 (i386_ymm_avx512_regnum_p): Likewise.
7543 (i386_k_regnum_p): Likewise.
7544 (i386_zmm_regnum_p): Likewise.
7545 (i386_zmmh_regnum_p): Likewise.
7546 * i387-tdep.c : Update year in copyright notice.
7547 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7549 (XSAVE_YMM_AVX512_ADDR): New macro.
7550 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7552 (XSAVE_XMM_AVX512_ADDR): New macro.
7553 (xsave_avx512_k_offset): New table for K register offsets in
7555 (XSAVE_AVX512_K_ADDR): New macro.
7556 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7558 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7559 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7561 (i387_collect_xsave): Add code to collect AVX512 registers from
7563 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7564 of XMM16-31 registers.
7565 (I387_NUM_K_REGS): New define for number of K registers.
7566 (I387_K0_REGNUM): New define for K0 register number.
7567 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7568 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7569 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7571 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7572 (I387_XMM16_REGNUM): New define for XMM16 register number.
7573 (I387_YMM0_REGNUM): New define for YMM0 register number.
7574 (I387_KEND_REGNUM): New define for last K register number.
7575 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7576 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7578 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7580 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7582 * features/Makefile: Add AVX512 related files.
7583 * features/i386/32bit-avx512.xml: New file.
7584 * features/i386/64bit-avx512.xml: Likewise.
7585 * features/i386/amd64-avx512-linux.c: Likewise.
7586 * features/i386/amd64-avx512-linux.xml: Likewise.
7587 * features/i386/amd64-avx512.c: Likewise.
7588 * features/i386/amd64-avx512.xml: Likewise.
7589 * features/i386/i386-avx512-linux.c: Likewise.
7590 * features/i386/i386-avx512-linux.xml: Likewise.
7591 * features/i386/i386-avx512.c: Likewise.
7592 * features/i386/i386-avx512.xml: Likewise.
7593 * features/i386/x32-avx512-linux.c: Likewise.
7594 * features/i386/x32-avx512-linux.xml: Likewise.
7595 * features/i386/x32-avx512.c: Likewise.
7596 * features/i386/x32-avx512.xml: Likewise.
7597 * regformats/i386/amd64-avx512-linux.dat: New file.
7598 * regformats/i386/amd64-avx512.dat: Likewise.
7599 * regformats/i386/i386-avx512-linux.dat: Likewise.
7600 * regformats/i386/i386-avx512.dat: Likewise.
7601 * regformats/i386/x32-avx512-linux.dat: Likewise.
7602 * regformats/i386/x32-avx512.dat: Likewise.
7603 * NEWS: Add note about new support for AVX512.
7606 2014-04-23 Pedro Alves <palves@redhat.com>
7608 * breakpoint.c (insert_bp_location): Tolerate errors if the
7609 breakpoint is set in a user-loaded objfile.
7610 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7611 location is marked shlib_disabled. If the breakpoint is set in a
7612 user-loaded objfile is a GDB-side memory breakpoint, validate it
7613 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7614 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7616 * mem-break.c (memory_validate_breakpoint): New function.
7617 * objfiles.c (userloaded_objfile_contains_address_p): New
7619 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7620 * target.h (memory_validate_breakpoint): New declaration.
7622 2014-04-23 Pedro Alves <palves@redhat.com>
7624 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7625 the breakpoint is set in a shared library, only suppress
7626 errors for software breakpoints, not hardware breakpoints.
7628 2014-04-22 Pedro Alves <palves@redhat.com>
7630 * infrun.c (schedlock_applies): New function, factored out from
7631 find_thread_needs_step_over.
7632 (find_thread_needs_step_over): Use it.
7633 (switch_back_to_stepped_thread): Always clear trap_expected if the
7634 step over is finished. Return early if scheduler locking applies.
7635 Look for the stepping thread and a potential step-over thread with
7637 (currently_stepping_or_nexting_callback): Delete.
7639 2014-04-22 Nick Clifton <nickc@redhat.com>
7641 * NEWS: Mention that ARM sim now supports tracing.
7643 2014-04-22 Yao Qi <yao@codesourcery.com>
7645 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7647 * tracefile.c (tracefile_fetch_registers): ... it. New
7649 * tracefile.h (tracefile_fetch_registers): Declare.
7650 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7651 tracefile_fetch_registers.
7653 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7656 * windows-nat.c (thread_rec): Don't display a warning when
7657 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7658 fails for any reason, set th->suspended to -1, so that we don't
7659 try to resume such a thread. Also, don't return NULL in these
7660 cases, to avoid completely ruin the session due to "PC register is
7661 not available" error.
7662 (do_windows_fetch_inferior_registers): Check errors in
7663 GetThreadContext call.
7664 (windows_continue): Accept an additional argument KILLED; if not
7665 zero, ignore errors in the SetThreadContext call, since the
7666 inferior was killed and is shutting down.
7667 (windows_resume, get_windows_debug_event)
7668 (windows_create_inferior, windows_mourn_inferior)
7669 (windows_kill_inferior): All callers of windows_continue changed
7670 to adjust to its new calling sequence.
7672 2014-04-19 Yao Qi <yao@codesourcery.com>
7674 * ctf.c (ctf_open): Call post_create_inferior.
7676 2014-04-19 Yao Qi <yao@codesourcery.com>
7678 * ctf.c (handle_id): New static variable.
7679 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7680 value. Get the declaration of event "register" and get length
7681 of field "contents".
7683 2014-04-19 Yao Qi <yao@codesourcery.com>
7685 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7687 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7689 * valops.c (oload_method_static): Remove unnecessary argument
7690 METHOD. Update all callers.
7692 2014-04-18 Pedro alves <palves@redhat.com>
7693 Tom Tromey <tromey@redhat.com>
7696 * frame.c (get_prev_frame_1): Rename to ...
7697 (get_prev_frame_always): ... this, and make extern. Adjust.
7698 (skip_artificial_frames): Use get_prev_frame_always.
7699 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7700 (get_frame_unwind_stop_reason): Adjust to rename.
7701 * frame.h (get_prev_frame_always): Declare.
7702 * inline-frame.c: Include frame.h.
7703 (inline_frame_this_id): Use get_prev_frame_always.
7705 2014-04-18 Tristan Gingold <gingold@adacore.com>
7707 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7708 code by using bfd_mach_o_get_base_address.
7710 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7712 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7713 (spu_ax_pseudo_register_collect): New function.
7714 (spu_ax_pseudo_register_push_stack): Likewise.
7715 (spu_dwarf_reg_to_regnum): Likewise.
7716 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7718 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7720 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7721 Replace FRAME argument with FRAME_ID.
7722 * gdbarch.c, gdbarch.h: Regenerate.
7723 * findvar.c (default_value_from_register): Add GDBARCH argument;
7724 replace FRAME by FRAME_ID. No longer call get_frame_id.
7725 (value_from_register): Update call to gdbarch_value_from_register.
7726 * value.h (default_value_from_register): Update prototype.
7727 * s390-linux-tdep.c (s390_value_from_register): Update interface
7728 and call to default_value_from_register.
7729 * spu-tdep.c (spu_value_from_register): Likewise.
7731 * findvar.c (address_from_register): Remove TYPE argument.
7732 Do not call value_from_register; use gdbarch_value_from_register
7733 with null_frame_id instead.
7734 * value.h (address_from_register): Update prototype.
7735 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7736 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7737 address_from_register interface change.
7739 2014-04-17 Yao Qi <yao@codesourcery.com>
7741 * gdbtypes.h: Update comments to link to types and macros'
7744 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7746 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7748 2014-04-16 Keith Seitz <keiths@redhat.com>
7751 * dwarf2read.c (skip_one_die): Check that all relative-offset
7752 sibling DIEs fall within range of the current reader's buffer.
7753 (read_partial_die): Likewise.
7755 2014-04-16 Keith Seitz <keiths@redhat.com>
7758 * cp-namespace.c (lookup_symbol_file): If the type name of
7759 `this' is NULL, return immediately.
7761 2014-04-14 Keith Seitz <keiths@redhat.com>
7764 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7765 from symbol_matches_domain in symtab.c. All local callers
7766 of symbol_matches_domain updated.
7767 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7768 search STRUCT_DOMAIN.
7769 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7770 independently. standard_lookup will do that automatically.
7771 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7772 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7773 (cp_lookup_symbol_in_namespace): Likewise.
7774 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7775 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7776 may return a STRUCT_DOMAIN match.
7777 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7778 * cp-support.c: Include language.h.
7779 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7781 * psymtab.c (match_partial_symbol): Compare the requested
7782 domain with the symbol's domain directly.
7783 (lookup_partial_symbol): Likewise.
7784 * symtab.c (lookup_symbol_in_language): Explain when/why
7785 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7786 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7787 appropriate languages.
7788 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7789 and moved to ada-lang.c
7790 (lookup_block_symbol): Explain that this function only returns
7791 symbol matching the requested DOMAIN.
7792 Compare the requested domain with the symbol's domain directly.
7793 (iterate_over_symbols): Compare the requested domain with the
7794 symbol's domain directly.
7795 * symtab.h (symbol_matches_domain): Remove.
7797 2014-04-14 Tom Tromey <tromey@redhat.com>
7800 * c-exp.y (type_aggregate_p): New function.
7801 (qualified_name, classify_inner_name): Use it.
7802 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7803 and TYPE_TARGET_TYPE of an enum type.
7804 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7806 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7807 handle TYPE_DECLARED_CLASS.
7808 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7810 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7811 * valops.c (enum_constant_from_type): New function.
7812 (value_aggregate_elt): Use it.
7813 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7816 2014-04-14 Tom Tromey <tromey@redhat.com>
7818 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7819 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7821 * value.h (value_aggregate_elt): Update.
7823 2014-04-14 Tom Tromey <tromey@redhat.com>
7825 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7827 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7829 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7830 (evaluate_subexp_standard): Pass noside argument.
7831 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7832 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7833 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7834 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7835 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7837 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7839 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7840 points to a constant blob.
7842 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7844 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7845 property and store it as the high bound and flag the range accordingly.
7846 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7847 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7848 * gdbtypes.h (enum range_flags): New enum.
7849 (struct range_bounds): Add flags member.
7851 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7853 * c-typeprint.c (c_type_print_varspec_suffix): Added
7854 check for not yet resolved high bound. If unresolved, print
7855 "variable length" string to the console instead of random
7858 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7860 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7862 (ada_template_to_fixed_record_type_1): Likewise.
7863 (ada_to_fixed_type_1): Likewise.
7864 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7865 (cp_print_value): Likewise.
7866 * d-valprint.c (dynamic_array_type): Likewise.
7867 * findvar.c (address_of_variable): Likewise.
7868 * jv-valprint.c (java_value_print): Likewise.
7869 * valops.c (value_ind): Likewise.
7870 * value.c (coerce_ref): Likewise.
7872 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7874 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7875 value and retrieve the dynamic type size.
7877 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7879 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7880 passed to sizeof is dynamic evaluate the argument to compute the length.
7882 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7883 Joel Brobecker <brobecker@adacore.com>
7885 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7886 (dwarf2_evaluate_property): New function.
7887 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7888 * dwarf2read.c (attr_to_dynamic_prop): New function.
7889 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7891 * gdbtypes.c: Include dwarf2loc.h.
7892 (is_dynamic_type): New function.
7893 (resolve_dynamic_type): New function.
7894 (resolve_dynamic_bounds): New function.
7895 (get_type_length): New function.
7896 (check_typedef): Use get_type_length to compute type length.
7897 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7898 (TYPE_LOW_BOUND_KIND): New macro.
7899 (is_dynamic_type): New function prototype.
7900 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7901 to resolve dynamic properties of the type. Update comment.
7902 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7904 2014-04-14 Richard Henderson <rth@redhat.com>
7906 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7908 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7909 Doug Evans <xdje42@gmail.com>
7911 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7912 dereference TYPE_CODE_REF values.
7914 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7916 Revert the following changes due to regressions:
7918 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7919 (dwarf2_evaluate_property): New function.
7920 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7921 * dwarf2read.c (attr_to_dynamic_prop): New function.
7922 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7924 * gdbtypes.c: Include dwarf2loc.h.
7925 (is_dynamic_type): New function.
7926 (resolve_dynamic_type): New function.
7927 (resolve_dynamic_bounds): New function.
7928 (get_type_length): New function.
7929 (check_typedef): Use get_type_length to compute type length.
7930 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7931 (TYPE_LOW_BOUND_KIND): New macro.
7932 (is_dynamic_type): New function prototype.
7933 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7934 to resolve dynamic properties of the type. Update comment.
7935 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7937 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7938 passed to sizeof is dynamic evaluate the argument to compute the length.
7940 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7941 value and retrieve the dynamic type size.
7943 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7944 (ada_template_to_fixed_record_type_1): Likewise.
7945 (ada_to_fixed_type_1): Likewise.
7946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7947 (cp_print_value): Likewise.
7948 * d-valprint.c (dynamic_array_type): Likewise.
7949 * eval.c (evaluate_subexp_with_coercion): Likewise.
7950 * findvar.c (address_of_variable): Likewise.
7951 * jv-valprint.c (java_value_print): Likewise.
7952 * valops.c (value_ind): Likewise.
7953 * value.c (coerce_ref): Likewise.
7955 * c-typeprint.c (c_type_print_varspec_suffix): Added
7956 check for not yet resolved high bound. If unresolved, print
7957 "variable length" string to the console instead of random
7960 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7961 property and store it as the high bound and flag the range accordingly.
7962 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7963 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7964 * gdbtypes.h (enum range_flags): New enum.
7965 (struct range_bounds): Add flags member.
7967 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7968 points to a constant blob.
7970 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7971 (evaluate_subexp_standard): Pass noside argument.
7972 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7973 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7974 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7975 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7976 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7978 2014-04-11 Keith Seitz <keiths@redhat.com>
7981 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7982 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7985 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7987 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7988 (evaluate_subexp_standard): Pass noside argument.
7989 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7990 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7991 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7992 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7993 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7995 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7997 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7998 points to a constant blob.
8000 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8003 property and store it as the high bound and flag the range accordingly.
8004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8006 * gdbtypes.h (enum range_flags): New enum.
8007 (struct range_bounds): Add flags member.
8009 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8011 * c-typeprint.c (c_type_print_varspec_suffix): Added
8012 check for not yet resolved high bound. If unresolved, print
8013 "variable length" string to the console instead of random
8016 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8018 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8019 (ada_template_to_fixed_record_type_1): Likewise.
8020 (ada_to_fixed_type_1): Likewise.
8021 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8022 (cp_print_value): Likewise.
8023 * d-valprint.c (dynamic_array_type): Likewise.
8024 * eval.c (evaluate_subexp_with_coercion): Likewise.
8025 * findvar.c (address_of_variable): Likewise.
8026 * jv-valprint.c (java_value_print): Likewise.
8027 * valops.c (value_ind): Likewise.
8028 * value.c (coerce_ref): Likewise.
8030 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8033 value and retrieve the dynamic type size.
8035 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8037 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8038 passed to sizeof is dynamic evaluate the argument to compute the length.
8040 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8042 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8043 (dwarf2_evaluate_property): New function.
8044 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8045 * dwarf2read.c (attr_to_dynamic_prop): New function.
8046 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8048 * gdbtypes.c: Include dwarf2loc.h.
8049 (is_dynamic_type): New function.
8050 (resolve_dynamic_type): New function.
8051 (resolve_dynamic_bounds): New function.
8052 (get_type_length): New function.
8053 (check_typedef): Use get_type_length to compute type length.
8054 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8055 (TYPE_LOW_BOUND_KIND): New macro.
8056 (is_dynamic_type): New function prototype.
8057 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8058 to resolve dynamic properties of the type. Update comment.
8059 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8063 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8064 declaring high/low bounds and change uses accordingly. Call
8065 create_range_type instead of create_static_range_type.
8066 * gdbtypes.c (create_range_type): New function.
8067 (create_range_type): Convert bounds into struct bound_prop and pass
8068 them to create_range_type.
8069 * gdbtypes.h (struct bound_prop): New struct.
8070 (create_range_type): New function prototype.
8071 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8072 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8073 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8075 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8079 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8080 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8081 * ada-lang.c: All uses of create_range_type updated.
8082 * coffread.c: All uses of create_range_type updated.
8083 * dwarf2read.c: All uses of create_range_type updated.
8084 * f-exp.y: All uses of create_range_type updated.
8085 * m2-valprint.c: All uses of create_range_type updated.
8086 * mdebugread.c: All uses of create_range_type updated.
8087 * stabsread.c: All uses of create_range_type updated.
8088 * valops.c: All uses of create_range_type updated.
8089 * valprint.c: All uses of create_range_type updated.
8091 2014-04-10 Pedro Alves <palves@redhat.com>
8093 * breakpoint.c (single_step_breakpoints)
8094 (single_step_gdbarch): Move up in the file.
8095 (one_breakpoint_xfer_memory): New function, factored out from ...
8096 (breakpoint_xfer_memory): ... here. Also process single-step
8099 2014-04-09 Tristan Gingold <gingold@adacore.com>
8101 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8103 (darwin_decode_exception_message): Free port only after use.
8105 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8107 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8108 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8109 when setting the size of call_length.
8111 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8113 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8114 dereference TYPE_CODE_REF values.
8116 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8118 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8119 end of warning message.
8121 2014-04-03 Doug Evans <dje@google.com>
8123 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8124 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8126 2014-04-02 Alan Modra <amodra@gmail.com>
8128 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8129 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8130 (struct symbol_file_add_from_memory_args): Add size field.
8131 (find_vdso_size): New function.
8132 (add_vsyscall_page): Attempt to find vdso size.
8134 2014-04-01 Doug Evans <dje@google.com>
8136 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8138 2014-04-01 Tristan Gingold <gingold@adacore.com>
8140 * darwin-nat.c (darwin_encode_reply): Add prototype.
8141 (darwin_decode_exception_message): Reply to unknown inferiors.
8142 (darwin_decode_message): Handle message by id. Ignore message
8143 to unknown inferior.
8144 (darwin_wait): Discard unknown messages, add debug trace.
8146 2014-03-31 Doug Evans <dje@google.com>
8148 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8151 2014-03-31 Doug Evans <dje@google.com>
8153 New option "set print symbol-loading".
8155 * solib.c (solib_read_symbols): Only print symbol loading messages
8157 (solib_add): If symbol loading is in "brief" mode, notify user
8158 symbols are being loaded.
8159 (reload_shared_libraries_1): Ditto.
8160 * symfile.c (print_symbol_loading_off): New static global.
8161 (print_symbol_loading_brief): New static global.
8162 (print_symbol_loading_full): New static global.
8163 (print_symbol_loading_enums): New static global.
8164 (print_symbol_loading): New static global.
8165 (print_symbol_loading_p): New function.
8166 (symbol_file_add_with_addrs): Only print symbol loading messages
8168 (_initialize_symfile): Register "print symbol-loading" set/show
8170 * symfile.h (print_symbol_loading_p): Declare.
8172 2014-03-30 Doug Evans <xdje42@gmail.com>
8174 * infrun.c (set_last_target_status): New function.
8175 (handle_inferior_event): Call it.
8177 2014-03-30 Doug Evans <xdje42@gmail.com>
8179 * inferior.h (enum stop_kind): Improve comment.
8181 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8183 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8184 a reference, strip the reference layer before calling
8185 the lang_ops value_has_mutated callback.
8187 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8189 Remove some globals from our parser.
8190 * language.c (unk_lang_parser): Add "struct parser_state"
8192 * language.h (struct language_defn) <la_parser>: Likewise.
8193 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8194 (initialize_expout): Add "struct parser_state" argument.
8195 Rewrite function to use the parser state.
8196 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8197 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8198 write_exp_elt_longcst, write_exp_elt_dblcst,
8199 write_exp_elt_decfloatcst, write_exp_elt_type,
8200 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8201 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8202 write_dollar_variable): Likewise.
8203 (parse_exp_in_context_1): Use parser state.
8204 (insert_type_address_space): Add "struct parser_state" argument.
8206 (increase_expout_size): New function.
8207 * parser-defs.h: Forward declare "struct language_defn" and
8208 "struct parser_state".
8209 (expout, expout_size, expout_ptr): Remove extern declarations.
8210 (parse_gdbarch, parse_language): Rewrite macro declarations to
8211 accept the parser state.
8212 (struct parser_state): New struct.
8213 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8214 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8215 write_exp_elt_decfloatcst, write_exp_elt_type,
8216 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8217 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8218 write_exp_msymbol, write_dollar_variable,
8219 mark_struct_expression, insert_type_address_space): Add "struct
8220 parser_state" argument.
8221 (increase_expout_size): New function.
8222 * utils.c (do_clear_parser_state): New function.
8223 (make_cleanup_clear_parser_state): Likewise.
8224 * utils.h (make_cleanup_clear_parser_state): New function
8226 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8227 Update calls to write_exp* in order to pass the parser state.
8228 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8229 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8230 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8231 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8232 * stap-probe.c (stap_parse_register_operand): Likewise.
8233 (stap_parse_single_operand): Likewise.
8234 (stap_parse_argument_1): Likewise.
8235 (stap_parse_argument): Use parser state.
8236 * stap-probe.h: Include "parser-defs.h".
8237 (struct stap_parse_info) <pstate>: New field.
8238 * c-exp.y (parse_type): Rewrite to use parser state.
8239 (yyparse): Redefine to c_parse_internal.
8240 (pstate): New global variable.
8241 (parse_number): Add "struct parser_state" argument.
8242 (write_destructor_name): Likewise.
8243 (type_exp): Update calls to write_exp* and similars in order to
8245 (exp1, exp, variable, qualified_name, space_identifier,
8246 typename, typebase): Likewise.
8247 (write_destructor_name, parse_number, lex_one_token,
8248 classify_name, classify_inner_name, c_parse): Add "struct
8249 parser_state" argument. Update function to use parser state.
8250 * c-lang.h: Forward declare "struct parser_state".
8251 (c_parse): Add "struct parser_state" argument.
8252 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8253 (yyparse): Redefine macro to ada_parse_internal.
8254 (pstate): New variable.
8255 (write_int, write_object_renaming, write_var_or_type,
8256 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8257 type_int, type_long, type_long_long, type_float, type_double,
8258 type_long_double, type_char, type_boolean, type_system_address):
8259 Add "struct parser_state" argument.
8260 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8261 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8262 var_or_type, aggregate, aggregate_component_list,
8263 positional_list, others, component_group,
8264 component_associations): Update calls to write_exp* and similar
8265 functions in order to use parser state.
8266 (ada_parse, write_var_from_sym, write_int,
8267 write_exp_op_with_string, write_object_renaming,
8268 find_primitive_type, write_selectors, write_ambiguous_var,
8269 write_var_or_type, write_name_assoc, type_int, type_long,
8270 type_long_long, type_float, type_double, type_long_double,
8271 type_char, type_boolean, type_system_address): Add "struct
8272 parser_state" argument. Adjust function to use parser state.
8273 * ada-lang.c (parse): Likewise.
8274 * ada-lang.h: Forward declare "struct parser_state".
8275 (ada_parse): Add "struct parser_state" argument.
8276 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8277 calls to both functions.
8278 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8280 (yyparse): Redefine macro to f_parse_internal.
8281 (pstate): New variable.
8282 (parse_number): Add "struct parser_state" argument.
8283 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8284 and similars in order to use parser state.
8285 (parse_number): Adjust code to use parser state.
8287 (f_parse): New function.
8288 * f-lang.h: Forward declare "struct parser_state".
8289 (f_parse): Add "struct parser_state" argument.
8290 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8292 (yyparse): Redefine macro for java_parse_internal.
8293 (pstate): New variable.
8294 (push_expression_name, push_expression_name, insert_exp): Add
8295 "struct parser_state" argument.
8296 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8297 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8298 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8299 PostIncrementExpression, PostDecrementExpression,
8300 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8301 UnaryExpressionNotPlusMinus, CastExpression,
8302 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8303 RelationalExpression, EqualityExpression, AndExpression,
8304 ExclusiveOrExpression, InclusiveOrExpression,
8305 ConditionalAndExpression, ConditionalOrExpression,
8306 ConditionalExpression, Assignment, LeftHandSide): Update
8307 calls to write_exp* and similars in order to use parser state.
8308 (parse_number): Ajust code to use parser state.
8310 (java_parse): New function.
8311 (push_variable): Add "struct parser_state" argument. Adjust
8312 code to user parser state.
8313 (push_fieldnames, push_qualified_expression_name,
8314 push_expression_name, insert_exp): Likewise.
8315 * jv-lang.h: Forward declare "struct parser_state".
8316 (java_parse): Add "struct parser_state" argument.
8317 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8319 (yyparse): Redefine macro to m2_parse_internal.
8320 (pstate): New variable.
8321 (type_exp, exp, fblock, variable, type): Update calls to
8322 write_exp* and similars to use parser state.
8324 (m2_parse): New function.
8325 * m2-lang.h: Forward declare "struct parser_state".
8326 (m2_parse): Add "struct parser_state" argument.
8327 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8328 * objc-lang.h: Forward declare "struct parser_state".
8329 (end_msglist): Add "struct parser_state" argument.
8330 * p-exp.y (parse_type): Rewrite macro to use parser state.
8331 (yyparse): Redefine macro to pascal_parse_internal.
8332 (pstate): New variable.
8333 (parse_number): Add "struct parser_state" argument.
8334 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8335 write_exp* and similars in order to use parser state.
8336 (parse_number, yylex): Adjust code to use parser state.
8337 (pascal_parse): New function.
8338 * p-lang.h: Forward declare "struct parser_state".
8339 (pascal_parse): Add "struct parser_state" argument.
8340 * go-exp.y (parse_type): Rewrite macro to use parser state.
8341 (yyparse): Redefine macro to go_parse_internal.
8342 (pstate): New variable.
8343 (parse_number): Add "struct parser_state" argument.
8344 (type_exp, exp1, exp, variable, type): Update calls to
8345 write_exp* and similars in order to use parser state.
8346 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8347 to use parser state.
8348 (go_parse): Likewise.
8349 * go-lang.h: Forward declare "struct parser_state".
8350 (go_parse): Add "struct parser_state" argument.
8352 2014-03-27 Doug Evans <dje@google.com>
8354 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8356 2014-03-27 Doug Evans <dje@google.com>
8358 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8359 Remove argument abbrev_section. All callers updated.
8361 2014-03-27 Doug Evans <dje@google.com>
8363 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8364 addr_base, ranges_base.
8366 2014-03-26 Keith Seitz <keiths@redhat.com>
8368 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8369 types, not VAR_DOMAIN.
8371 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8373 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8375 * features/nios2-linux.c: Regenerated.
8376 * features/nios2.c: Regenerated.
8378 2014-03-25 Pedro Alves <palves@redhat.com>
8380 * cli/cli-script.c (script_from_file): Force the interpreter to
8383 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8385 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8386 small stack allocation.
8388 2014-03-24 Tristan Gingold <gingold@adacore.com>
8390 * darwin-nat.c (exc_server): Remove unused prototype.
8391 (darwin_dump_message): Correctly display data on x86_64.
8392 (darwin_encode_reply): Fix style.
8393 Add comments and fix indentation.
8395 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8397 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8399 2014-03-22 Doug Evans <xdje42@gmail.com>
8401 * infcmd.c: Whitespace fixes.
8402 (interrupt_command): Merge two function comments into one.
8404 2014-03-22 Doug Evans <xdje42@gmail.com>
8406 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8409 2014-03-22 Yao Qi <yao@codesourcery.com>
8411 * remote.c (target_read_live_memory): Remove.
8412 (memory_xfer_live_readonly_partial): Rename it to
8413 remote_xfer_live_readonly_partial. Remove argument 'object'.
8414 All callers updated. Call remote_read_bytes_1
8415 instead of target_read_live_memory.
8416 * tracepoint.c (set_traceframe_number): Remove.
8417 (make_cleanup_restore_traceframe_number): Likewise .
8418 * tracepoint.h (set_traceframe_number): Remove declaration.
8419 (make_cleanup_restore_traceframe_number): Likewise.
8421 2014-03-22 Yao Qi <yao@codesourcery.com>
8423 * remote.c (remote_read_bytes): Move code on reading from the
8425 (remote_read_bytes_1): ... here. New function.
8427 2014-03-22 Yao Qi <yao@codesourcery.com>
8429 * ctf.c (ctf_xfer_partial): Check the return value of
8430 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8431 return TARGET_XFER_UNAVAILABLE.
8432 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8433 * target.c (target_read_live_memory): Move it to remote.c.
8434 (memory_xfer_live_readonly_partial): Likewise.
8435 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8436 * remote.c (target_read_live_memory): Moved from target.c.
8437 (memory_xfer_live_readonly_partial): Likewise.
8438 (remote_read_bytes): Factored out from
8439 memory_xfer_partial_1.
8441 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8443 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8446 2014-03-21 Pedro Alves <palves@redhat.com>
8448 * infrun.c (normal_stop): Extend comment.
8450 2014-03-21 Hui Zhu <hui@codesourcery.com>
8451 Pedro Alves <palves@redhat.com>
8453 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8455 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8456 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8457 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8459 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8461 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8462 `z' formatted output modifier.
8464 2014-03-20 Tom Tromey <tromey@redhat.com>
8465 Sergio Durigan Junior <sergiodj@redhat.com>
8467 * probe.c (parse_probes): Turn assert into an ordinary error.
8468 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8469 exceptions when parsing probes. Rearrange the code for clarity.
8471 2014-03-20 Tom Tromey <tromey@redhat.com>
8474 * top.c (execute_command): Only dispatch events if the command
8477 2014-03-20 Tom Tromey <tromey@redhat.com>
8480 * infcall.c: Include event-top.h.
8481 (run_inferior_call): Call async_disable_stdin if needed.
8483 2014-03-20 Pedro Alves <palves@redhat.com>
8485 * infrun.c (prepare_to_proceed): Delete.
8486 (thread_still_needs_step_over): New function.
8487 (find_thread_needs_step_over): New function.
8488 (proceed): If the current thread needs a step-over, set its
8489 steping_over_breakpoint flag. Adjust to use
8490 find_thread_needs_step_over instead of prepare_to_proceed.
8491 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8492 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8494 (switch_back_to_stepped_thread): Step over breakpoints of all
8495 threads not the stepping thread, before switching back to the
8498 2014-03-20 Pedro Alves <palves@redhat.com>
8500 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8502 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8503 * infrun.c (saved_singlestep_ptid)
8504 (stepping_past_singlestep_breakpoint): Delete.
8505 (resume): Remove stepping_past_singlestep_breakpoint handling.
8506 (proceed): Store the prev_pc of the stepping thread too.
8507 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8509 (enum infwait_states): Delete infwait_thread_hop_state.
8510 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8512 (handle_inferior_event): Adjust.
8513 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8514 handling and the thread-hop code. Before removing single-step
8515 breakpoints, check whether the thread hit a single-step breakpoint
8516 of another thread. If it did, the trap is not a random signal.
8517 (switch_back_to_stepped_thread): If the event thread hit a
8518 single-step breakpoint, unblock it before switching to the
8519 stepping thread. Handle the case of the stepped thread having
8521 (keep_going): Handle the case of the current thread moving past a
8522 single-step breakpoint.
8524 2014-03-20 Pedro Alves <palves@redhat.com>
8527 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8528 are being stepped over.
8529 (breakpoint_address_match): Make extern.
8530 * breakpoint.h (breakpoint_address_match): New declaration.
8531 * inferior.h (stepping_past_instruction_at): New declaration.
8532 * infrun.c (struct step_over_info): New type.
8533 (step_over_info): New global.
8534 (set_step_over_info, clear_step_over_info)
8535 (stepping_past_instruction_at): New functions.
8536 (handle_inferior_event): Clear the step-over info when
8537 trap_expected is cleared.
8538 (resume): Remove now stale comment.
8539 (clear_proceed_status): Clear step-over info.
8540 (proceed): Adjust step-over handling to set or clear the step-over
8541 info instead of removing all breakpoints.
8542 (handle_signal_stop): When setting up a thread-hop, don't remove
8544 (stop_stepping): Clear step-over info.
8545 (keep_going): Adjust step-over handling to set or clear step-over
8546 info and then always inserting breakpoints, instead of removing
8547 all breakpoints when stepping over one.
8549 2014-03-20 Pedro Alves <palves@redhat.com>
8551 * infrun.c (previous_inferior_ptid): Adjust comment.
8552 (deferred_step_ptid): Delete.
8553 (infrun_thread_ptid_changed, prepare_to_proceed)
8554 (init_wait_for_inferior): Adjust.
8555 (handle_signal_stop): Delete deferred_step_ptid handling.
8557 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8560 * defs.h (sync_quit_force_run): New declaration.
8561 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8562 * event-top.c (async_sigterm_handler): New declaration.
8563 (async_sigterm_token): New variable.
8564 (async_init_signals): Create also async_sigterm_token.
8565 (async_sigterm_handler): New function.
8566 (sync_quit_force_run): New variable.
8567 (handle_sigterm): Replace quit_force call by other calls.
8568 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8570 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8572 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8573 offset into SPE pseudo registers.
8575 2014-03-18 Pedro Alves <palves@redhat.com>
8578 * inferior.h (print_stop_event): Declare.
8579 * infrun.c (print_stop_event): New, factored out from ...
8580 (normal_stop): ... this.
8581 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8582 of bpstat_print/print_stack_frame.
8584 2014-03-17 Tom Tromey <tromey@redhat.com>
8586 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8588 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8590 * ada-lang.c (decode_constrained_packed_array): Perform a
8591 minimal coercion for reference with coerce_ref instead of
8594 2014-03-17 Tristan Gingold <gingold@adacore.com>
8596 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8597 (darwin_solib_create_inferior_hook): Emit a warning if version
8600 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8602 * python/py-value.c (get_field_flag): Cast flag_name argument to
8603 PyObject_GetAttrString to support Python 2.4.
8605 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8607 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8608 (Global Maintainers): Remove Jan Kratochvil.
8610 2014-03-14 Pedro Alves <palves@redhat.com>
8612 * inferior.h (terminal_ours_for_output): Rename to ...
8613 (child_terminal_ours_for_output): ... this.
8614 (terminal_save_ours): Rename to ...
8615 (child_terminal_save_ours): ... this.
8616 (terminal_ours): Rename to ...
8617 (child_terminal_ours): ... this.
8618 (terminal_inferior): Rename to ...
8619 (child_terminal_inferior): ... this.
8620 (terminal_init_inferior): Rename to ...
8621 (child_terminal_init_inferior): ... this.
8622 (terminal_init_inferior_with_pgrp): Rename to ...
8623 (child_terminal_init_inferior_with_pgrp): ... this.
8624 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8625 (child_terminal_init_with_pgrp): ... this.
8626 (terminal_save_ours): Rename to ...
8627 (child_terminal_save_ours): ... this.
8628 (terminal_init_inferior): Rename to ...
8629 (child_terminal_init): ... this. Adjust.
8630 (terminal_inferior): Rename to ...
8631 (child_terminal_inferior): ... this.
8632 (terminal_ours_for_output): Rename to ...
8633 (child_terminal_ours_for_output): ... this. Adjust.
8634 (terminal_ours): Rename to ...
8635 (child_terminal_ours): ... this.
8636 (terminal_ours_1): Rename to ...
8637 (child_terminal_ours_1): ... this. Adjust.
8638 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8639 * windows-nat.c (do_initial_windows_stuff): Adjust.
8640 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8641 (gnu_terminal_init): ... this. Adjust.
8642 (gnu_target): Adjust.
8643 * inf-child.c (inf_child_target): Adjust.
8645 2014-03-13 Doug Evans <xdje42@gmail.com>
8648 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8651 2014-03-13 Doug Evans <xdje42@gmail.com>
8653 * value.c (record_latest_value): Call release_value_or_incref
8654 instead of release_value.
8656 2014-03-13 Pedro Alves <palves@redhat.com>
8658 * procfs.c (procfs_target): Don't override to_shortname,
8659 to_longname or to_doc.
8661 2014-03-13 Pedro Alves <palves@redhat.com>
8663 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8664 Unix in user visible strings.
8666 2014-03-12 Stan Shebs <stan@codesourcery.com>
8668 * gdbtypes.h: Annotate comments for Doxygen, add a page
8669 block comment with some general info.
8671 2014-03-12 Pedro Alves <palves@redhat.com>
8673 * infcmd.c (prepare_execution_command): New function, factored out
8674 from several execution commands.
8675 (run_command_1, continue_command, step_1, jump_command)
8676 (signal_command, until_command, advance_command, finish_command)
8677 (attach_command): Use prepare_execution_command.
8679 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8681 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8684 (struct arm_linux_thread_points): Removed.
8685 (struct arm_linux_process_info): New.
8686 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8687 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8688 (arm_linux_find_breakpoints_by_tid): Removed.
8689 (struct arch_lwp_info): New.
8690 (arm_linux_find_process_pid): New functions.
8691 (arm_linux_add_process): New functions.
8692 (arm_linux_process_info_get): New functions.
8693 (arm_linux_forget_process): New function.
8694 (arm_linux_get_debug_reg_state): New function.
8695 (struct update_registers_data): New.
8696 (update_registers_callback): New function.
8697 (arm_linux_insert_hw_breakpoint1): Updated.
8698 (arm_linux_remove_hw_breakpoint1): Updated.
8699 (arm_linux_insert_hw_breakpoint): Updated.
8700 (arm_linux_remove_hw_breakpoint): Updated.
8701 (arm_linux_insert_watchpoint): Updated.
8702 (arm_linux_remove_watchpoint): Updated.
8703 (arm_linux_new_thread): Updated.
8704 (arm_linux_prepare_to_resume): New function.
8705 (arm_linux_new_fork): New function.
8706 (_initialize_arm_linux_nat): Updated.
8708 2014-03-12 Pedro Alves <palves@redhat.com>
8710 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8712 2014-03-12 Tom Tromey <tromey@redhat.com>
8714 * inf-child.c (return_zero): New function.
8715 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8716 * aix-thread.c (aix_thread_inferior_created): New function.
8717 (aix_thread_attach): Remove.
8718 (init_aix_thread_ops): Don't set to_attach.
8719 (_initialize_aix_thread): Register inferior_created observer.
8720 * corelow.c (init_core_ops): Don't set to_attach or
8722 * exec.c (init_exec_ops): Don't set to_attach or
8724 * infcmd.c (run_command_1): Use find_run_target. Make direct
8726 (attach_command): Use find_attach_target. Make direct target
8728 * record-btrace.c (init_record_btrace_ops): Don't set
8730 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8732 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8733 set to_create_inferior.
8734 * target.c (complete_target_initialization): Add assertion.
8735 (target_create_inferior): Remove.
8736 (find_default_attach, find_default_create_inferior): Remove.
8737 (find_attach_target, find_run_target): New functions.
8738 (find_default_is_async_p, find_default_can_async_p)
8739 (target_supports_non_stop, target_attach): Remove.
8740 (init_dummy_target): Don't set to_create_inferior or
8741 to_supports_non_stop.
8742 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8743 TARGET_DEFAULT_FUNC.
8744 <to_create_inferior>: Add comment.
8745 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8746 TARGET_DEFAULT_RETURN.
8747 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8748 (find_attach_target, find_run_target): Declare.
8749 (target_create_inferior): Remove.
8750 (target_has_execution_1): Update comment.
8751 (target_supports_non_stop): Remove.
8752 * target-delegates.c: Rebuild.
8754 2014-03-12 Pedro Alves <palves@redhat.com>
8756 * inf-child.h: Update comment to not mention Unix.
8758 2014-03-12 Pedro Alves <palves@redhat.com>
8760 * inf-child.c: Update top comment to not mention Unix. Add
8761 generic comment describing how this target is meant to be used.
8762 (inf_child_post_attach, inf_child_post_startup_inferior)
8763 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8766 2014-03-12 Pedro Alves <palves@redhat.com>
8768 * nto-procfs.c: Include inf-child.h.
8769 (procfs_ops): Delete global.
8770 (procfs_can_run): Delete method.
8771 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8772 target pointer instead of referencing procfs_ops.
8773 (procfs_prepare_to_store): Delete.
8774 (init_procfs_ops): Delete function.
8775 (procfs_target): New function, based on init_procfs_ops, but
8776 inherit inf_child_target.
8777 (_initialize_procfs): Use procfs_target.
8779 2014-03-12 Pedro Alves <palves@redhat.com>
8781 * windows-nat.c: Include inf-child.h.
8782 (windows_ops): Delete global.
8783 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8785 (init_windows_ops): Delete function.
8786 (windows_target): New function, based on init_windows_ops, but
8787 inherit inf_child_target.
8788 (_initialize_windows_nat): Use windows_target. Install x86
8789 specific target methods here.
8791 2014-03-10 Doug Evans <xdje42@gmail.com>
8793 * guile/guile.c (call_initialize_gdb_module): New function.
8794 (initialize_guile): Replace call to scm_init_guile with call to
8797 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8799 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8800 in call to TYPE_CODE macro.
8802 2014-03-10 Jerome Guitton <guitton@adacore.com>
8804 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8805 Resolve tagged types to full view.
8807 2014-03-10 Hui Zhu <hui@codesourcery.com>
8809 * target.h (target_insert_breakpoint): Remove "hardware" from its
8812 2014-03-07 Doug Evans <dje@google.com>
8814 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8816 2014-03-07 Doug Evans <dje@google.com>
8818 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8819 Remove unused local comp_dir_attr. Assert exactly one of
8820 stub_comp_unit_die, stub_comp_dir is non-NULL.
8822 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8824 * target.h (complete_target_initialization, add_target):
8827 2014-03-07 Pedro Alves <palves@redhat.com>
8829 * go32-nat.c: Include inf-child.h.
8830 (go32_ops): Delete global.
8831 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8833 (go32_create_inferior): Push the passed in target pointer instead
8834 of referencing go32_ops.
8835 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8836 (go32_target): New function, based on init_go32_ops, but inherit
8838 (_initialize_go32_nat): Use go32_target. Move parts of
8841 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8843 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8844 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8845 SYMBOL_VALUE_ADDRESS.
8846 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8848 2014-03-06 Yao Qi <yao@codesourcery.com>
8850 * breakpoint.c (get_tracepoint_by_number): Remove argument
8851 optional_p. All callers updated. Adjust comments. Update
8853 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8855 2014-03-06 Yao Qi <yao@codesourcery.com>
8857 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8858 early if get_number returns zero. Use 'p' instead of 'args'.
8860 2014-03-06 Yao Qi <yao@codesourcery.com>
8862 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8865 2014-03-06 Yao Qi <yao@codesourcery.com>
8867 PR breakpoints/16508
8868 * tracepoint.c (check_trace_running): New function.
8869 (trace_find_command): Move code to check_trace_running and
8870 call check_trace_running.
8871 (trace_find_pc_command): Likewise.
8872 (trace_find_tracepoint_command): Likewise.
8873 (trace_find_line_command): Likewise.
8874 (trace_find_range_command): Likewise.
8875 * tracepoint.h (check_trace_running): Likewise.
8876 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8878 2014-03-06 Yao Qi <yao@codesourcery.com>
8880 * target.h (struct target_ops) <to_traceframe_info>: Use
8881 TARGET_DEFAULT_NORETURN (tcomplain ()).
8882 * target-delegates.c: Regenerated.
8884 2014-03-05 Pedro Alves <palves@redhat.com>
8887 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8888 void. Update comment.
8889 (dcache_xfer_memory): Delete.
8890 (dcache_read_memory_partial): New, based on the read bits of
8892 (dcache_update): Add status parameter. Use ULONGEST for len, and
8893 adjust. Discard cache lines if the reason for the update was
8895 * dcache.h (dcache_xfer_memory): Delete declaration.
8896 (dcache_read_memory_partial): New declaration.
8897 (dcache_update): Update prototype.
8898 * target.c (raw_memory_xfer_partial): Update the dcache here.
8899 (memory_xfer_partial_1): Don't handle dcache writes here.
8901 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8903 * remote-sim.c (gdbsim_load): Add const to prog.
8905 2014-03-03 Tom Tromey <tromey@redhat.com>
8907 * elfread.c (probe_key): Change to bfd_data.
8908 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8909 now per-BFD, not per-objfile.
8910 * stap-probe.c (stap_probe_destroy): Update comment.
8911 (handle_stap_probe): Allocate on the per-BFD obstack.
8913 2014-03-03 Tom Tromey <tromey@redhat.com>
8915 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8916 * breakpoint.c (create_longjmp_master_breakpoint): Use
8918 (add_location_to_breakpoint, bkpt_probe_insert_location)
8919 (bkpt_probe_remove_location): Update.
8920 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8921 * elfread.c (elf_symfile_relocate_probe): Remove.
8922 (elf_probe_fns): Update.
8923 (insert_exception_resume_breakpoint): Change type of "probe"
8924 parameter to bound_probe.
8925 (check_exception_resume): Update.
8926 * objfiles.c (objfile_relocate1): Don't relocate probes.
8927 * probe.c (bound_probe_s): New typedef.
8928 (parse_probes): Use get_probe_address. Set sal's objfile.
8929 (find_probe_by_pc): Return a bound_probe.
8930 (collect_probes): Return a VEC(bound_probe_s).
8931 (compare_probes): Update.
8932 (gen_ui_out_table_header_info): Change type of "probes"
8934 (info_probes_for_ops): Update.
8935 (get_probe_address): New function.
8936 (probe_safe_evaluate_at_pc): Update.
8937 * probe.h (struct probe_ops) <get_probe_address>: New field.
8938 <set_semaphore, clear_semaphore>: Add objfile parameter.
8939 (struct probe) <objfile>: Remove field.
8941 <address>: Update comment.
8942 (struct bound_probe): New.
8943 (find_probe_by_pc): Return a bound_probe.
8944 (get_probe_address): Declare.
8945 * solib-svr4.c (struct probe_and_action) <address>: New field.
8946 (hash_probe_and_action, equal_probe_and_action): Update.
8947 (register_solib_event_probe): Add address parameter.
8948 (solib_event_probe_at): Update.
8949 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8951 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8952 (stap_get_probe_address): New function.
8953 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8954 (compile_probe_arg): Update.
8955 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8957 (handle_stap_probe): Don't relocate the probe.
8958 (stap_relocate): Remove.
8959 (stap_gen_info_probes_table_values): Update.
8960 (stap_probe_ops): Remove stap_relocate.
8961 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8962 (debug_sym_probe_fns): Update.
8963 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8964 * symtab.c (init_sal): Use memset.
8965 * symtab.h (struct symtab_and_line) <objfile>: New field.
8966 * tracepoint.c (start_tracing, stop_tracing): Update.
8968 2014-03-03 Tom Tromey <tromey@redhat.com>
8970 * probe.h (parse_probes, find_probe_by_pc)
8971 (find_probes_in_objfile): Fix comments.
8973 2014-03-02 Doug Evans <xdje42@gmail.com>
8975 * infrun.c (handle_signal_stop): Replace test for
8976 TARGET_WAITKIND_STOPPED with an assert.
8978 2014-03-02 Doug Evans <xdje42@gmail.com>
8980 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8982 2014-03-02 Doug Evans <xdje42@gmail.com>
8984 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8986 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8988 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8990 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8992 * i386obsd-nat.c: Include "obsd-nat.h".
8993 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8995 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8997 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8999 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9001 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9003 * mips64obsd-nat.c: Include "obsd-nath".
9004 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9006 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9008 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9010 * amd64obsd-nat.c: Include "obsd-nat,h.
9011 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9013 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9015 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9017 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9018 (find_overload_match): Update call to find_oload_champ.
9019 (find_oload_champ_namespace_loop): Likewise
9021 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9023 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9025 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9026 * config/sparc/obsd64.mh: New file.
9027 * sparc64obsd-nat.c: New file.
9029 * obsd-nat.h: New file.
9030 * obsd-nat.c: New file.
9031 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9032 (ALLDEPFILES): Add obsd-nat.c.
9034 2014-02-28 Tom Tromey <tromey@redhat.com>
9036 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9037 * cli-out.h (cli_ui_out_impl): Now const.
9038 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9039 * ui-out.c (struct ui_out) <impl>: Now const.
9040 (default_ui_out_impl): Now const.
9041 (ui_out_new): Make 'impl' parameter const.
9042 * ui-out.h (ui_out_new): Update.
9044 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9046 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9048 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9050 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9052 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9054 Additional PR 8882 fix.
9055 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9057 2014-02-27 Pedro Alves <palves@redhat.com>
9059 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9062 2014-02-27 Pedro Alves <palves@redhat.com>
9065 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9066 * nat/linux-waitpid.c: Include string.h.
9067 (status_to_str): Moved here and made extern.
9068 * nat/linux-waitpid.h (status_to_str): New declaration.
9070 2014-02-27 Hui Zhu <hui@codesourcery.com>
9073 * infrun.c (ptid_match): Move ...
9074 * common/ptid.c (ptid_match): ... here.
9075 * inferior.h (ptid_match): Move ...
9076 * common/ptid.h (ptid_match): ... here.
9078 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9080 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9081 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9084 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9086 * obsd-tdep.c (obsd_auxv_parse): New function.
9087 (obsd_init_abi): Set auxv_parse.
9089 * gdbarch.sh (auxv_parse): New.
9090 * gdbarch.h: Regenerated.
9091 * gdbarch.c: Regenerated.
9092 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9094 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9096 * guile/scm-value.c (gdbscm_history_append_x): New function.
9097 (value_functions): Add it.
9099 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9101 * dwarf2read.c (attr_value_as_address): New function.
9102 (dwarf2_find_base_address, read_call_site_scope): Use
9103 attr_value_as_address in place of DW_ADDR.
9104 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9105 the low and high addresses. Slight rework of the handling
9106 of the high pc being a constant form, and limit it to
9107 DWARF verson 4 or higher.
9108 (dwarf2_record_block_ranges): Likewise.
9109 (read_partial_die): Likewise.
9110 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9112 2014-02-26 Tom Tromey <tromey@redhat.com>
9114 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9116 2014-02-26 Tom Tromey <tromey@redhat.com>
9118 * elfread.c (elf_read_minimal_symbols): Return early if
9119 minimal symbols have already been read. Add "ei" parameter.
9120 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9121 * minsyms.c (prim_record_minimal_symbol_full): Update.
9122 * objfiles.h (struct objstats) <n_minsyms>: Move...
9123 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9124 * symmisc.c (print_objfile_statistics): Update.
9126 2014-02-26 Tom Tromey <tromey@redhat.com>
9128 * elfread.c (elf_read_minimal_symbols): New function, from
9130 (elf_symfile_read): Call it.
9132 2014-02-26 Tom Tromey <tromey@redhat.com>
9134 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9135 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9136 (lookup_minimal_symbol_solib_trampoline)
9137 (lookup_minimal_symbol_by_pc_section_1)
9138 (lookup_minimal_symbol_and_objfile): Update.
9139 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9140 Don't allocate a minimal symbol if minsyms have already been read.
9141 (build_minimal_symbol_hash_tables): Update.
9142 (install_minimal_symbols): Do nothing if minsyms already read.
9143 Use the per-BFD obstack.
9144 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9145 * objfiles.c (allocate_objfile): Call
9146 terminate_minimal_symbol_table later.
9147 (have_minimal_symbols): Update.
9148 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9149 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9150 Move from struct objfile.
9151 <minsyms_read>: New field.
9152 (struct objfile) <msymbols, minimal_symbol_count,
9153 msymbol_hash, msymbol_demangled_hash>: Move.
9154 (ALL_OBJFILE_MSYMBOLS): Update.
9155 * symfile.c (read_symbols): Set minsyms_read.
9156 (reread_symbols): Update.
9157 * symmisc.c (dump_objfile, dump_msymbols): Update.
9159 2014-02-26 Tom Tromey <tromey@redhat.com>
9161 * minsyms.c (msymbols_sort): Remove.
9162 * minsyms.h (msymbols_sort): Remove.
9163 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9164 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9165 * elfread.c (elf_symtab_read): Don't add section offsets.
9166 * xcoffread.c (record_minimal_symbol): Don't add section offset
9167 to minimal symbol address.
9168 * somread.c (text_offset, data_offset): Remove.
9169 (som_symtab_read): Don't add section offsets to minimal symbol
9171 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9172 Don't add section offsets to minimal symbols.
9173 * coffread.c (coff_symtab_read): Don't add section offsets
9174 to minimal symbol addresses.
9175 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9176 to minimal symbol addresses.
9177 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9178 section offset to minimal symbol addresses.
9179 * mdebugread.c (parse_partial_symbols): Don't add section
9180 offset to minimal symbol addresses.
9181 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9182 offset to minimal symbol addresses.
9184 2014-02-26 Tom Tromey <tromey@redhat.com>
9186 * ada-lang.c (ada_main_name): Update.
9187 (ada_add_standard_exceptions): Update.
9188 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9189 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9190 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9191 * auxv.c (ld_so_xfer_auxv): Update.
9192 * avr-tdep.c (avr_scan_prologue): Update.
9193 * ax-gdb.c (gen_var_ref): Update.
9194 * blockframe.c (get_pc_function_start)
9195 (find_pc_partial_function_gnu_ifunc): Update.
9196 * breakpoint.c (create_overlay_event_breakpoint)
9197 (create_longjmp_master_breakpoint)
9198 (create_std_terminate_master_breakpoint)
9199 (create_exception_master_breakpoint): Update.
9200 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9201 * c-valprint.c (c_val_print): Update.
9202 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9203 * common/agent.c (agent_look_up_symbols): Update.
9204 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9205 * dwarf2loc.c (call_site_to_target_addr): Update.
9206 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9207 * elfread.c (elf_gnu_ifunc_record_cache)
9208 (elf_gnu_ifunc_resolve_by_got): Update.
9209 * findvar.c (default_read_var_value): Update.
9210 * frame.c (inside_main_func): Update.
9211 * frv-tdep.c (frv_frame_this_id): Update.
9212 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9213 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9215 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9216 (hppa_hpux_find_dummy_bpaddr): Update.
9217 * hppa-tdep.c (hppa_symbol_address): Update.
9218 * infcmd.c (until_next_command): Update.
9219 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9221 * linespec.c (minsym_found, add_minsym): Update.
9222 * linux-nat.c (get_signo): Update.
9223 * linux-thread-db.c (inferior_has_bug): Update.
9224 * m32c-tdep.c (m32c_return_value)
9225 (m32c_m16c_address_to_pointer): Update.
9226 * m32r-tdep.c (m32r_frame_this_id): Update.
9227 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9228 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9229 * maint.c (maintenance_translate_address): Update.
9230 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9231 (frob_address): New function.
9232 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9233 frob_address. Rename parameter to "pc_in".
9234 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9236 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9238 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9239 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9240 * objc-lang.c (find_objc_msgsend): Update.
9241 * objfiles.c (objfile_relocate1): Update.
9242 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9243 * p-valprint.c (pascal_val_print): Update.
9244 * parse.c (write_exp_msymbol): Update.
9245 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9246 (ppc_elfv2_skip_entrypoint): Update.
9247 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9248 * printcmd.c (build_address_symbolic, msym_info)
9249 (address_info): Update.
9250 * proc-service.c (ps_pglobal_lookup): Update.
9251 * psymtab.c (find_pc_sect_psymtab_closer)
9252 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9253 Change msymbol parameter to bound_minimal_symbol.
9254 * ravenscar-thread.c (get_running_thread_id): Update.
9255 * remote.c (remote_check_symbols): Update.
9256 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9258 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9259 * solib-dsbt.c (lm_base): Update.
9260 * solib-frv.c (lm_base, main_got): Update.
9261 * solib-irix.c (locate_base): Update.
9262 * solib-som.c (som_solib_create_inferior_hook)
9263 (link_map_start): Update.
9264 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9265 * solib-svr4.c (elf_locate_base, enable_break): Update.
9266 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9267 (flush_ea_cache): Update.
9268 * stabsread.c (define_symbol, scan_file_globals): Update.
9269 * stack.c (find_frame_funname): Update.
9270 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9271 (debug_qf_find_pc_sect_symtab): Update.
9272 * symfile.c (simple_read_overlay_table)
9273 (simple_overlay_update): Update.
9274 * symfile.h (struct quick_symbol_functions)
9275 <find_pc_sect_symtab>: Change type of msymbol to
9276 bound_minimal_symbol.
9277 * symmisc.c (dump_msymbols): Update.
9278 * symtab.c (find_pc_sect_symtab_via_partial)
9279 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9280 (search_symbols, print_msymbol_info): Update.
9281 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9282 (MSYMBOL_VALUE_ADDRESS): Redefine.
9283 (BMSYMBOL_VALUE_ADDRESS): New macro.
9284 * tracepoint.c (scope_info): Update.
9285 * tui/tui-disasm.c (tui_find_disassembly_address)
9286 (tui_get_begin_asm_address): Update.
9287 * valops.c (find_function_in_inferior): Update.
9288 * value.c (value_static_field, value_fn_field): Update.
9290 2014-02-26 Tom Tromey <tromey@redhat.com>
9292 * ada-lang.c (ada_update_initial_language): Update.
9293 (ada_main_name, ada_has_this_exception_support): Update.
9294 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9295 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9296 * arm-tdep.c (arm_skip_stub): Update.
9297 * auxv.c (ld_so_xfer_auxv): Update.
9298 * avr-tdep.c (avr_scan_prologue): Update.
9299 * ax-gdb.c (gen_var_ref): Update.
9300 * breakpoint.c (struct breakpoint_objfile_data)
9301 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9302 type to bound_minimal_symbol.
9303 (create_overlay_event_breakpoint)
9304 (create_longjmp_master_breakpoint)
9305 (create_std_terminate_master_breakpoint)
9306 (create_exception_master_breakpoint): Update.
9307 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9308 * c-exp.y (classify_name): Update.
9309 * coffread.c (coff_symfile_read): Update.
9310 * common/agent.c (agent_look_up_symbols): Update.
9311 * d-lang.c (d_main_name): Update.
9312 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9313 * dec-thread.c (enable_dec_thread): Update.
9314 * dwarf2loc.c (call_site_to_target_addr): Update.
9315 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9316 * eval.c (evaluate_subexp_standard): Update.
9317 * findvar.c (struct minsym_lookup_data) <result>: Change type
9318 to bound_minimal_symbol.
9320 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9321 * frame.c (inside_main_func): Update.
9322 * frv-tdep.c (frv_frame_this_id): Update.
9323 * gcore.c (call_target_sbrk): Update.
9324 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9325 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9327 * go-lang.c (go_main_name): Update.
9328 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9329 (hppa_hpux_find_import_stub_for_addr): Update.
9330 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9331 Update. Change return type.
9332 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9334 * jit.c (jit_breakpoint_re_set_internal): Update.
9335 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9337 * linux-nat.c (get_signo): Update.
9338 * linux-thread-db.c (inferior_has_bug): Update
9339 * m32c-tdep.c (m32c_return_value)
9340 (m32c_m16c_address_to_pointer): Update.
9341 * m32r-tdep.c (m32r_frame_this_id): Update.
9342 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9343 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9344 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9345 lookup_minimal_symbol. Change return type.
9346 (lookup_minimal_symbol): Remove.
9347 (lookup_bound_minimal_symbol): Update.
9348 (lookup_minimal_symbol_text): Change return type.
9349 (lookup_minimal_symbol_solib_trampoline): Change return type.
9350 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9351 (lookup_minimal_symbol_solib_trampoline): Change return type.
9352 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9353 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9354 (value_nsstring, find_imps): Update.
9355 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9356 * p-lang.c (pascal_main_name): Update.
9357 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9358 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9359 * proc-service.c (ps_pglobal_lookup): Update.
9360 * ravenscar-thread.c (get_running_thread_msymbol): Change
9362 (has_ravenscar_runtime, get_running_thread_id): Update.
9363 * remote.c (remote_check_symbols): Update.
9364 * sol-thread.c (ps_pglobal_lookup): Update.
9365 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9366 * solib-dsbt.c (lm_base): Update.
9367 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9369 * solib-irix.c (locate_base): Update.
9370 * solib-som.c (som_solib_create_inferior_hook)
9371 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9373 * solib-spu.c (spu_enable_break): Update.
9374 * solib-svr4.c (elf_locate_base, enable_break): Update.
9375 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9376 (flush_ea_cache): Update.
9377 * stabsread.c (define_symbol): Update.
9378 * symfile.c (simple_read_overlay_table): Update.
9379 * symtab.c (find_pc_sect_line): Update.
9380 * tracepoint.c (scope_info): Update.
9381 * tui-disasm.c (tui_get_begin_asm_address): Update.
9382 * value.c (value_static_field): Update.
9384 2014-02-26 Tom Tromey <tromey@redhat.com>
9386 * minsyms.c (prim_record_minimal_symbol_full): Use
9387 SET_MSYMBOL_VALUE_ADDRESS.
9388 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9389 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9390 SET_MSYMBOL_VALUE_ADDRESS.
9391 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9392 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9394 2014-02-26 Tom Tromey <tromey@redhat.com>
9396 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9397 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9398 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9399 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9400 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9401 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9402 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9403 * ada-lang.c (ada_main_name): Update.
9404 (ada_lookup_simple_minsym): Update.
9405 (ada_make_symbol_completion_list): Update.
9406 (ada_add_standard_exceptions): Update.
9407 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9408 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9409 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9410 * arm-tdep.c (skip_prologue_function): Update.
9411 (arm_skip_stack_protector, arm_skip_stub): Update.
9412 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9413 (arm_wince_skip_main_prologue): Update.
9414 * auxv.c (ld_so_xfer_auxv): Update.
9415 * avr-tdep.c (avr_scan_prologue): Update.
9416 * ax-gdb.c (gen_var_ref): Update.
9417 * block.c (call_site_for_pc): Update.
9418 * blockframe.c (get_pc_function_start): Update.
9419 (find_pc_partial_function_gnu_ifunc): Update.
9420 * breakpoint.c (create_overlay_event_breakpoint): Update.
9421 (create_longjmp_master_breakpoint): Update.
9422 (create_std_terminate_master_breakpoint): Update.
9423 (create_exception_master_breakpoint): Update.
9424 (resolve_sal_pc): Update.
9425 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9426 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9428 * c-valprint.c (c_val_print): Update.
9429 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9430 * coffread.c (coff_symfile_read): Update.
9431 * common/agent.c (agent_look_up_symbols): Update.
9432 * dbxread.c (find_stab_function_addr): Update.
9433 (end_psymtab): Update.
9434 * dwarf2loc.c (call_site_to_target_addr): Update.
9435 (func_verify_no_selftailcall): Update.
9436 (tailcall_dump): Update.
9437 (call_site_find_chain_1): Update.
9438 (dwarf_expr_reg_to_entry_parameter): Update.
9439 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9440 (elf_gnu_ifunc_resolve_by_got): Update.
9441 * f-valprint.c (info_common_command): Update.
9442 * findvar.c (read_var_value): Update.
9443 * frame.c (get_prev_frame_1): Update.
9444 (inside_main_func): Update.
9445 * frv-tdep.c (frv_skip_main_prologue): Update.
9446 (frv_frame_this_id): Update.
9447 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9448 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9449 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9450 (gnuv3_skip_trampoline): Update.
9451 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9452 (hppa64_hpux_in_solib_call_trampoline): Update.
9453 (hppa_hpux_skip_trampoline_code): Update.
9454 (hppa64_hpux_search_dummy_call_sequence): Update.
9455 (hppa_hpux_find_import_stub_for_addr): Update.
9456 (hppa_hpux_find_dummy_bpaddr): Update.
9457 * hppa-tdep.c (hppa_symbol_address)
9458 (hppa_lookup_stub_minimal_symbol): Update.
9459 * i386-tdep.c (i386_skip_main_prologue): Update.
9460 (i386_pe_skip_trampoline_code): Update.
9461 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9462 * infcall.c (get_function_name): Update.
9463 * infcmd.c (until_next_command): Update.
9464 * jit.c (jit_breakpoint_re_set_internal): Update.
9465 (jit_inferior_init): Update.
9466 * linespec.c (minsym_found): Update.
9467 (add_minsym): Update.
9468 * linux-fork.c (info_checkpoints_command): Update.
9469 * linux-nat.c (get_signo): Update.
9470 * linux-thread-db.c (inferior_has_bug): Update.
9471 * m32c-tdep.c (m32c_return_value): Update.
9472 (m32c_m16c_address_to_pointer): Update.
9473 (m32c_m16c_pointer_to_address): Update.
9474 * m32r-tdep.c (m32r_frame_this_id): Update.
9475 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9476 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9477 * maint.c (maintenance_translate_address): Update.
9478 * minsyms.c (add_minsym_to_hash_table): Update.
9479 (add_minsym_to_demangled_hash_table): Update.
9480 (msymbol_objfile): Update.
9481 (lookup_minimal_symbol): Update.
9482 (iterate_over_minimal_symbols): Update.
9483 (lookup_minimal_symbol_text): Update.
9484 (lookup_minimal_symbol_by_pc_name): Update.
9485 (lookup_minimal_symbol_solib_trampoline): Update.
9486 (lookup_minimal_symbol_by_pc_section_1): Update.
9487 (lookup_minimal_symbol_and_objfile): Update.
9488 (prim_record_minimal_symbol_full): Update.
9489 (compare_minimal_symbols): Update.
9490 (compact_minimal_symbols): Update.
9491 (build_minimal_symbol_hash_tables): Update.
9492 (install_minimal_symbols): Update.
9493 (terminate_minimal_symbol_table): Update.
9494 (find_solib_trampoline_target): Update.
9495 (minimal_symbol_upper_bound): Update.
9496 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9497 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9498 (mips_skip_pic_trampoline_code): Update.
9499 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9500 * objc-lang.c (selectors_info): Update.
9501 (classes_info): Update.
9502 (find_methods): Update.
9503 (find_imps): Update.
9504 (find_objc_msgsend): Update.
9505 * objfiles.c (objfile_relocate1): Update.
9506 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9507 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9508 * p-valprint.c (pascal_val_print): Update.
9509 * parse.c (write_exp_msymbol): Update.
9510 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9511 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9512 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9513 * printcmd.c (build_address_symbolic): Update.
9515 (address_info): Update.
9516 * proc-service.c (ps_pglobal_lookup): Update.
9517 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9518 (find_pc_sect_psymtab): Update.
9519 * python/py-framefilter.c (py_print_frame): Update.
9520 * ravenscar-thread.c (get_running_thread_id): Update.
9521 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9523 * remote.c (remote_check_symbols): Update.
9524 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9525 (rs6000_skip_trampoline_code): Update.
9526 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9527 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9528 * solib-dsbt.c (lm_base): Update.
9529 * solib-frv.c (lm_base): Update.
9531 * solib-irix.c (locate_base): Update.
9532 * solib-som.c (som_solib_create_inferior_hook): Update.
9533 (som_solib_desire_dynamic_linker_symbols): Update.
9534 (link_map_start): Update.
9535 * solib-spu.c (spu_enable_break): Update.
9536 (ocl_enable_break): Update.
9537 * solib-svr4.c (elf_locate_base): Update.
9538 (enable_break): Update.
9539 * spu-tdep.c (spu_get_overlay_table): Update.
9540 (spu_catch_start): Update.
9541 (flush_ea_cache): Update.
9542 * stabsread.c (define_symbol): Update.
9543 (scan_file_globals): Update.
9544 * stack.c (find_frame_funname): Update.
9545 (frame_info): Update.
9546 * symfile.c (simple_read_overlay_table): Update.
9547 (simple_overlay_update): Update.
9548 * symmisc.c (dump_msymbols): Update.
9549 * symtab.c (fixup_section): Update.
9550 (find_pc_sect_line): Update.
9551 (skip_prologue_sal): Update.
9552 (search_symbols): Update.
9553 (print_msymbol_info): Update.
9554 (rbreak_command): Update.
9555 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9556 (completion_list_objc_symbol): Update.
9557 (default_make_symbol_completion_list_break_on): Update.
9558 * tracepoint.c (scope_info): Update.
9559 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9560 (tui_get_begin_asm_address): Update.
9561 * valops.c (find_function_in_inferior): Update.
9562 * value.c (value_static_field): Update.
9563 (value_fn_field): Update.
9565 2014-02-26 Tom Tromey <tromey@redhat.com>
9567 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9568 bound minimal symbols. Move code that knows about minsym
9570 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9572 * minsyms.h (minimal_symbol_upper_bound): Declare.
9573 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9574 minimal_symbol_upper_bound.
9576 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9578 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9579 Use the type's name if its basic type does not have a tag.
9581 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9583 * dwarf2read.c (read_subrange_type): Add comment.
9585 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9587 * dwarf2read.c (update_enumeration_type_from_children): New
9588 function, mostly extracted from process_structure_scope.
9589 (read_enumeration_type): Call update_enumeration_type_from_children.
9590 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9591 and flag_flag_enum fields.
9593 2014-02-26 Pedro Alves <palves@redhat.com>
9595 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9596 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9597 to_xfer_partial method.
9599 2014-02-26 Pedro Alves <palves@redhat.com>
9601 * target.c (complete_target_initialization): Don't install
9602 default_xfer_partial as to_xfer_partial hook.
9604 (update_current_target): Don't INHERIT nor de_fault
9605 deprecated_xfer_memory. Delete de_fault macro.
9606 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9607 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9608 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9611 2014-02-26 Pedro Alves <palves@redhat.com>
9613 * go32-nat.c (my_write_child): New function.
9614 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9615 (go32_xfer_partial): New function.
9616 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9617 Instead install a to_xfer_partial hook.
9619 2014-02-26 Pedro Alves <palves@redhat.com>
9621 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9622 to_xfer_partial helper. Rewrite.
9623 (procfs_xfer_partial): New function.
9624 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9625 Install a to_xfer_partial hook.
9627 2014-02-26 Pedro Alves <palves@redhat.com>
9629 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9630 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9631 (m32r_xfer_partial): New function.
9632 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9633 Install a to_xfer_partial hook.
9635 2014-02-26 Pedro Alves <palves@redhat.com>
9637 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9639 (mips_xfer_partial): New function.
9640 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9641 hook. Install a to_xfer_partial hook.
9643 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9645 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9646 * gdbtypes.c (create_array_type_with_stride): New function,
9647 renaming create_array_type, but with an added parameter
9648 called "bit_stride".
9649 (create_array_type): Re-implement using
9650 create_array_type_with_stride.
9651 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9652 and DW_AT_bit_stride attributes.
9654 2014-02-26 Pedro Alves <palves@redhat.com>
9656 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9657 task-specific breakpoints.
9659 2014-02-25 Pedro Alves <palves@redhat.com>
9661 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9662 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9664 2014-02-25 Stan Shebs <stan@codesourcery.com>
9666 * defs.h: Annotate comments for Doxygen.
9668 2014-02-25 Tom Tromey <tromey@redhat.com>
9670 * target.h (target_ignore): Don't declare.
9671 * target.c (target_ignore): Remove.
9673 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9676 * auto-load.c (auto_load_objfile_script_1): Change filename to
9679 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9681 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9682 documentation. Adjust prototype to match the target_ops
9683 to_xfer_partial method. Adjust implementation accordingly.
9685 2014-02-25 Hui Zhu <hui@codesourcery.com>
9687 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9690 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9692 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9693 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9694 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9695 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9696 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9697 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9698 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9699 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9701 (rl78_register_type): Use a data pointer type for SP and
9702 new pseudo registers mentioned above. Use a 16 bit integer
9703 type for all other register pairs.
9704 (rl78_register_name, rl78_g10_register_name): Update for
9705 new pseudo registers.
9706 (rl78_pseudo_register_read): Likewise.
9707 (rl78_pseudo_register_write): Likewise.
9708 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9709 to the newly added pseudo registers.
9711 2014-02-24 Doug Evans <dje@google.com>
9713 * value.c (record_latest_value): Fix comment.
9714 * printcmd.c (print_command_1): Remove code to handle -1 return from
9715 record_latest_value.
9717 2014-02-24 Pedro Alves <palves@redhat.com>
9719 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9720 deprecated_xfer_memory hook.
9721 (procfs_xfer_partial): Call procfs_xfer_memory instead
9722 of the deprecated_xfer_memory target hook.
9723 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9726 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9728 * windows-nat.c (windows_xfer_shared_libraries): Return
9729 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9730 requested object is TARGET_OBJECT_LIBRARIES.
9732 2014-02-24 Yao Qi <yao@codesourcery.com>
9734 * target.h (enum target_xfer_status)
9735 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9736 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9738 * corefile.c (memory_error_message): User updated.
9739 * exec.c (section_table_read_available_memory): Likewise.
9740 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9741 * target.c (target_xfer_status_to_string): Likewise.
9742 (raw_memory_xfer_partial): Likewise.
9743 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9744 * valops.c (read_value_memory): Likewise.
9745 * exec.h: Update comments.
9747 2014-02-24 Yao Qi <yao@codesourcery.com>
9749 * target.c (target_xfer_status_to_string): Rename argument err
9751 * target.h (target_xfer_status_to_string): Update declaration.
9752 Replace target_xfer_error_to_string with
9753 target_xfer_status_to_string in comment.
9755 2014-02-24 Yao Qi <yao@codesourcery.com>
9757 * mips-linux-nat.c (super_close): Update its type.
9758 (mips_linux_close): Pass 'self' to super_close.
9760 2014-02-24 Yao Qi <yao@codesourcery.com>
9762 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9763 * corefile.c (read_memory): Adjusted.
9764 * target.c (target_write_with_progress): Adjusted.
9766 2014-02-23 Yao Qi <yao@codesourcery.com>
9770 2013-10-25 Yao Qi <yao@codesourcery.com>
9772 * remote.c (remote_traceframe_info): Return early if
9773 traceframe is not selected.
9775 2013-07-19 Yao Qi <yao@codesourcery.com>
9777 * target.c (update_current_target): Change the default action
9778 of 'to_traceframe_info' from tcomplain to return_zero.
9779 * target.h (struct target_ops) <to_traceframe_info>: Add more
9782 2014-02-23 Yao Qi <yao@codesourcery.com>
9784 * valops.c (read_value_memory): Rewrite it. Call
9785 target_xfer_partial in a loop.
9786 * exec.h (section_table_available_memory): Remove declaration.
9787 Move comments to ...
9788 * exec.c (section_table_available_memory): ... here. Make it
9791 2014-02-23 Yao Qi <yao@codesourcery.com>
9793 * exec.c (section_table_read_available_memory): New function.
9794 * exec.h (section_table_read_available_memory): Declare.
9795 * ctf.c (ctf_xfer_partial): Call
9796 section_table_read_available_memory.
9797 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9799 2014-02-23 Yao Qi <yao@codesourcery.com>
9801 * ctf.c (ctf_xfer_partial): Move code to ...
9802 * exec.c (exec_read_partial_read_only): ... it. New function.
9803 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9804 * tracefile.c: Include "exec.h".
9805 * exec.h (exec_read_partial_read_only): Declare.
9807 2014-02-23 Yao Qi <yao@codesourcery.com>
9809 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9810 (tfile_has_memory): Remove.
9811 (init_tfile_ops): Don't set fields to_has_all_memory and
9812 to_has_memory of tfile_ops.
9813 * tracefile.c (tracefile_has_all_memory): New function.
9814 (tracefile_has_memory): New function.
9815 (init_tracefile_ops): Initialize fields to_has_all_memory and
9816 to_has_memory of 'ops'.
9818 2014-02-23 Yao Qi <yao@codesourcery.com>
9820 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9821 (ctf_thread_alive, ctf_get_trace_status): Remove.
9822 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9824 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9825 (tfile_has_stack, tfile_has_registers): Remove.
9826 (tfile_thread_alive): Remove.
9827 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9829 * tracefile.c (tracefile_has_stack): New function.
9830 (tracefile_has_registers): New function.
9831 (tracefile_thread_alive): New function.
9832 (tracefile_get_trace_status): New function.
9833 (init_tracefile_ops): New function.
9834 * tracefile.h (init_tracefile_ops): Declare.
9836 2014-02-23 Yao Qi <yao@codesourcery.com>
9838 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9839 (O_LARGEFILE): Likewise.
9840 (tfile_ops): Likewise.
9841 (TRACE_HEADER_SIZE): Likewise.
9842 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9843 (cur_data_size): Likewise.
9844 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9845 (tfile_close, tfile_files_info): Likewise.
9846 (tfile_get_trace_status): Likewise.
9847 (tfile_get_tracepoint_status): Likewise.
9848 (tfile_get_traceframe_address): Likewise.
9849 (tfile_trace_find, match_blocktype): Likewise.
9850 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9851 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9852 (tfile_get_trace_state_variable_value): Likewise.
9853 (tfile_has_all_memory, tfile_has_memory): Likewise.
9854 (tfile_has_stack, tfile_has_registers): Likewise.
9855 (tfile_thread_alive, build_traceframe_info): Likewise.
9856 (tfile_traceframe_info, init_tfile_ops): Likewise.
9857 (_initialize_tracepoint): Don't call init_tfile_ops
9858 and add_target_with_completer.
9859 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9860 exec.h, completer.h and filenames.h.
9861 (_initialize_tracefile_tfile): New function.
9863 2014-02-23 Yao Qi <yao@codesourcery.com>
9865 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9867 (HFILES_NO_SRCDIR): Add tracefile.h.
9868 * ctf.c: Include "tracefile.h".
9869 * tracefile.h: New file.
9870 * tracefile.c: New file
9871 * tracefile-tfile.c: New file.
9872 * tracepoint.c: Include "tracefile.h".
9873 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9874 (stop_reason_names): Add const.
9875 (trace_file_writer_xfree): Move it to tracefile.c.
9876 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9877 (trace_save_ctf): Likewise.
9878 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9879 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9880 (tfile_write_header, tfile_write_regblock_type): Likewise.
9881 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9882 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9883 (tfile_write_raw_data, tfile_end): Likewise.
9884 (tfile_trace_file_writer_new): Likewise.
9885 (free_uploaded_tp): Make it extern.
9886 (free_uploaded_tsv): Make it extern.
9887 (_initialize_tracepoint): Move code to register command 'tsave'
9889 * tracepoint.h (stop_reason_names): Declare.
9890 (struct trace_frame_write_ops): Move it to tracefile.h.
9891 (struct trace_file_write_ops): Likewise.
9892 (struct trace_file_writer): Likewise.
9893 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9895 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9898 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9900 (get_cores_used_by_process): New parameter num_cores, use it.
9901 (linux_xfer_osdata_processes): Pass num_cores to it.
9902 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9905 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9907 * target.c (memory_xfer_partial): Fix length arg in call to
9908 breakpoint_xfer_memory.
9910 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9913 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9914 number comes after the + or - signs. Adjust length of register
9915 name to be extracted.
9917 2014-02-20 Tom Tromey <tromey@redhat.com>
9919 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9920 (ada_varobj_ops): Mark "extern".
9922 2014-02-20 Tom Tromey <tromey@redhat.com>
9924 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9926 2014-02-20 Doug Evans <xdje42@gmail.com>
9928 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9929 All callers updated.
9930 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9931 All callers updated.
9932 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9933 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9935 2014-02-20 lin zuojian <manjian2006@gmail.com>
9936 Joel Brobecker <brobecker@adacore.com>
9937 Doug Evans <xdje42@gmail.com>
9940 * dwarf2read.c (struct die_info): New member in_process.
9941 (reset_die_in_process): New function.
9942 (process_die): Set it at the start, reset when returning.
9943 (inherit_abstract_dies): Only call process_die if origin_child_die
9944 not already being processed.
9946 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9948 * windows-nat.c (handle_unload_dll): Add function documentation.
9949 (do_initial_windows_stuff): Add comment explaining why we wait
9950 until after inferior initialization has finished before
9951 processing all DLLs.
9953 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9955 * windows-nat.c (get_module_name): Delete.
9956 (windows_get_exec_module_filename): New function, mostly
9957 inspired from get_module_name.
9958 (windows_pid_to_exec_file): Replace call to get_module_name
9959 by call to windows_get_exec_module_filename.
9961 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9963 * windows-nat.c (handle_load_dll): Rewrite this function's
9964 introductory comment. Remove code using get_module_name
9965 to get the DLL's name.
9967 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9969 * windows-nat.c (get_windows_debug_event): Ignore
9970 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9971 if windows_initialization_done == 0.
9972 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9973 Adjust implementation to always load all DLLs.
9974 (do_initial_windows_stuff): Replace call to
9975 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9977 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9979 * windows-nat.c (_initialize_windows_nat): Deprecate the
9980 "dll-symbols" command. Turn the "add-shared-symbol-files"
9981 and "assf" aliases into commands, and deprecate them as well.
9982 * NEWS: Add entry explaining that "dll-symbols" and its two
9983 aliases are now deprecated.
9985 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9987 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9988 new-line in debug string. Remove trailing spaces.
9990 2014-02-19 Stan Shebs <stan@codesourcery.com>
9992 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9994 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9996 * NEWS: Add entry for the new feature
9997 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10000 2014-02-19 Stan Shebs <stan@codesourcery.com>
10002 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10004 2014-02-19 Pedro Alves <palves@redhat.com>
10006 * common/ptid.h (struct ptid): Mention that process_stratum
10007 targets should prefer ptid.lwp.
10009 2014-02-19 Pedro Alves <palves@redhat.com>
10011 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10012 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10013 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10014 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10015 store remote thread ids rather than ptid.tid.
10016 (_initialize_remote): Adjust.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target.c (target_get_unwinder): Rewrite.
10021 (target_get_tailcall_unwinder): Rewrite.
10022 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10023 (record_btrace_to_get_tailcall_unwinder): New function.
10024 (init_record_btrace_ops): Update.
10025 * target.h (struct target_ops) <to_get_unwinder,
10026 to_get_tailcall_unwinder>: Now function pointers. Use
10027 TARGET_DEFAULT_RETURN.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10033 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10039 * target-delegates.c: Rebuild.
10040 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10041 TARGET_DEFAULT_FUNC.
10042 * target.c (default_target_decr_pc_after_break): Rename from
10043 forward_target_decr_pc_after_break. Simplify.
10044 (target_decr_pc_after_break): Rely on delegation.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target.c (update_current_target): Do not INHERIT to_doc or
10049 to_magic. Do not de_fault to_open or to_close.
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10053 * gcore.h (objfile_find_memory_regions): Declare.
10054 * gcore.c (objfile_find_memory_regions): No longer static. Add
10056 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10057 * exec.c: Include gcore.h.
10058 (exec_set_find_memory_regions): Remove.
10059 (exec_find_memory_regions): Remove.
10060 (exec_do_find_memory_regions): Remove.
10061 (init_exec_ops): Update.
10062 * defs.h (exec_set_find_memory_regions): Remove.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target-delegates.c: Rebuild.
10067 * target.h (struct target_ops) <to_extra_thread_info,
10068 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10069 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10070 not 0, in TARGET_DEFAULT_RETURN.
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target.c (complete_target_initialization): Remove casts. Use
10075 return_zero_has_execution.
10076 (return_zero): Add "ignore" argument.
10077 (return_zero_has_execution): New function.
10078 (init_dummy_target): Remove casts. Use
10079 return_zero_has_execution.
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10083 * target.c (update_current_target): Update comments. Do not
10084 INHERIT to_stratum.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10090 * corelow.c (core_read_description): Delegate when needed.
10091 * remote.c (remote_read_description): Delegate when needed.
10092 * target-delegates.c: Rebuild.
10093 * target.c (target_read_description): Rewrite.
10094 * target.h (struct target_ops) <to_read_description>: Update
10095 comment. Use TARGET_DEFAULT_RETURN.
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target-delegates.c: Rebuild.
10100 * target.c (update_current_target): Don't inherit or default
10102 (find_default_run_target): Check against delegate_can_run.
10103 * target.h (struct target_ops) <to_can_run>: Use
10104 TARGET_DEFAULT_RETURN.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target-delegates.c: Rebuild.
10109 * target.c (target_disconnect): Unconditionally delegate.
10110 * target.h (struct target_ops) <to_disconnect>: Use
10111 TARGET_DEFAULT_NORETURN.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * record.c (record_stop): Unconditionally delegate.
10116 * target-delegates.c: Rebuild.
10117 * target.c (target_stop_recording): Unconditionally delegate.
10118 * target.h (struct target_ops) <to_stop_recording>: Use
10119 TARGET_DEFAULT_IGNORE.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_enable_btrace): Unconditionally delegate.
10125 * target.h (struct target_ops) <to_enable_btrace>: Use
10126 TARGET_DEFAULT_NORETURN.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target-delegates.c: Rebuild.
10131 * target.c (target_read_btrace): Unconditionally delegate.
10132 * target.h (struct target_ops) <to_read_btrace>: Use
10133 TARGET_DEFAULT_NORETURN.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (target_teardown_btrace): Unconditionally delegate.
10139 * target.h (struct target_ops) <to_teardown_btrace>: Use
10140 TARGET_DEFAULT_NORETURN.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (target_disable_btrace): Unconditionally delegate.
10146 * target.h (struct target_ops) <to_disable_btrace>: Use
10147 TARGET_DEFAULT_NORETURN.
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10151 * target-delegates.c: Rebuild.
10152 * target.c (default_search_memory): New function.
10153 (simple_search_memory): Update comment.
10154 (target_search_memory): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_search_memory>: Use
10156 TARGET_DEFAULT_FUNC.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * auxv.c (default_auxv_parse): No longer static.
10161 (target_auxv_parse): Unconditionally delegate.
10162 * auxv.h (default_auxv_parse): Declare.
10163 * target-delegates.c: Rebuild.
10164 * target.c: Include auxv.h.
10165 * target.h (struct target_ops) <to_auxv_parse>: Use
10166 TARGET_DEFAULT_FUNC.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target-delegates.c: Rebuild.
10171 * target.c (target_memory_map): Unconditionally delegate.
10172 * target.h (struct target_ops) <to_memory_map>: Use
10173 TARGET_DEFAULT_RETURN.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_thread_alive): Unconditionally delegate.
10179 * target.h (struct target_ops) <to_thread_alive>: Use
10180 TARGET_DEFAULT_RETURN.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_save_record): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_save_record>: Use
10187 TARGET_DEFAULT_NORETURN.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_delete_record): Unconditionally delegate.
10193 * target.h (struct target_ops) <to_delete_record>: Use
10194 TARGET_DEFAULT_NORETURN.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target-delegates.c: Rebuild.
10199 * target.c (target_record_is_replaying): Unconditionally
10201 * target.h (struct target_ops) <to_record_is_replaying>: Use
10202 TARGET_DEFAULT_RETURN.
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10206 * target-delegates.c: Rebuild.
10207 * target.c (target_goto_record_begin): Unconditionally delegate.
10208 * target.h (struct target_ops) <to_goto_record_begin>: Use
10209 TARGET_DEFAULT_NORETURN.
10211 2014-02-19 Tom Tromey <tromey@redhat.com>
10213 * target-delegates.c: Rebuild.
10214 * target.c (target_goto_record_end): Unconditionally delegate.
10215 * target.h (struct target_ops) <to_goto_record_end>: Use
10216 TARGET_DEFAULT_NORETURN.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target-delegates.c: Rebuild.
10221 * target.c (target_goto_record): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_goto_record>: Use
10223 TARGET_DEFAULT_NORETURN.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target-delegates.c: Rebuild.
10228 * target.c (target_insn_history): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_insn_history>: Use
10230 TARGET_DEFAULT_NORETURN.
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_insn_history_from): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_insn_history_from>: Use
10237 TARGET_DEFAULT_NORETURN.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_insn_history_range): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_insn_history_range>: Use
10244 TARGET_DEFAULT_NORETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_call_history): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_call_history>: Use
10251 TARGET_DEFAULT_NORETURN.
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_call_history_from): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_call_history_from>: Use
10258 TARGET_DEFAULT_NORETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_call_history_range): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_call_history_range>: Use
10265 TARGET_DEFAULT_NORETURN.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target-delegates.c: Rebuild.
10270 * target.c (target_verify_memory): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_verify_memory>: Use
10272 TARGET_DEFAULT_NORETURN.
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target-delegates.c: Rebuild.
10277 * target.c (target_core_of_thread): Unconditionally delegate.
10278 * target.h (struct target_ops) <to_core_of_thread>: Use
10279 TARGET_DEFAULT_RETURN.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_flash_done): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_flash_done>: Use
10286 TARGET_DEFAULT_NORETURN.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_flash_erase): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_flash_erase>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_get_section_table): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_get_section_table>: Use
10300 TARGET_DEFAULT_RETURN.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target-delegates.c: Rebuild.
10305 * target.c (target_pid_to_str): Unconditionally delegate.
10306 (init_dummy_target): Don't initialize to_pid_to_str.
10307 (default_pid_to_str): Rename from dummy_pid_to_str.
10308 * target.h (struct target_ops) <to_pid_to_str>: Use
10309 TARGET_DEFAULT_FUNC.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (target_find_new_threads): Unconditionally delegate.
10315 * target.h (struct target_ops) <to_find_new_threads>: Use
10316 TARGET_DEFAULT_RETURN.
10318 2014-02-19 Tom Tromey <tromey@redhat.com>
10320 * target-delegates.c: Rebuild.
10321 * target.c (target_program_signals): Unconditionally delegate.
10322 * target.h (struct target_ops) <to_program_signals>: Use
10323 TARGET_DEFAULT_IGNORE.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (target_pass_signals): Unconditionally delegate.
10329 * target.h (struct target_ops) <to_pass_signals>: Use
10330 TARGET_DEFAULT_IGNORE.
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * target-delegates.c: Rebuild.
10335 * target.c (default_mourn_inferior): New function.
10336 (target_mourn_inferior): Unconditionally delegate.
10337 * target.h (struct target_ops) <to_mourn_inferior>: Use
10338 TARGET_DEFAULT_FUNC.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target-delegates.c: Rebuild.
10343 * target.c (default_follow_fork): New function.
10344 (target_follow_fork): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_follow_fork>: Use
10346 TARGET_DEFAULT_FUNC.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (target_kill): Unconditionally delegate.
10352 * target.h (struct target_ops) <to_kill>: Use
10353 TARGET_DEFAULT_NORETURN.
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target-delegates.c: Rebuild.
10358 * target.c (target_masked_watch_num_registers): Unconditionally
10360 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10361 Use TARGET_DEFAULT_RETURN.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target-delegates.c: Rebuild.
10366 * target.c (target_remove_mask_watchpoint): Unconditionally
10368 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10369 TARGET_DEFAULT_RETURN.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_insert_mask_watchpoint): Unconditionally
10376 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10377 TARGET_DEFAULT_RETURN.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target-delegates.c: Rebuild.
10382 * target.c (target_ranged_break_num_registers): Unconditionally
10384 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10385 Use TARGET_DEFAULT_RETURN.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target-delegates.c: Rebuild.
10390 * target.c (target_fetch_registers): Unconditionally delegate.
10391 * target.h (struct target_ops) <to_fetch_registers>: Use
10392 TARGET_DEFAULT_NORETURN.
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10396 * target-delegates.c: Rebuild.
10397 * target.c (update_current_target): Don't inherit or default
10399 * target.h (struct target_ops) <to_stop>: Use
10400 TARGET_DEFAULT_IGNORE.
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10404 * target-delegates.c: Rebuild.
10405 * target.c (update_current_target): Don't inherit or default
10406 to_can_run_breakpoint_commands.
10407 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10408 Use TARGET_DEFAULT_RETURN.
10410 2014-02-19 Tom Tromey <tromey@redhat.com>
10412 * target-delegates.c: Rebuild.
10413 * target.c (update_current_target): Don't inherit or default
10414 to_supports_evaluation_of_breakpoint_conditions.
10415 * target.h (struct target_ops)
10416 <to_supports_evaluation_of_breakpoint_conditions>: Use
10417 TARGET_DEFAULT_RETURN.
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10421 * target-delegates.c: Rebuild.
10422 * target.c (update_current_target): Don't inherit or default
10423 to_augmented_libraries_svr4_read.
10424 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10425 Use TARGET_DEFAULT_RETURN.
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target-delegates.c: Rebuild.
10430 * target.c (update_current_target): Don't inherit or default
10432 * target.h (struct target_ops) <to_can_use_agent>: Use
10433 TARGET_DEFAULT_RETURN.
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10440 * target.h (struct target_ops) <to_use_agent>: Use
10441 TARGET_DEFAULT_NORETURN.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10447 to_traceframe_info.
10448 (return_null): Remove.
10449 * target.h (struct target_ops) <to_traceframe_info>: Use
10450 TARGET_DEFAULT_RETURN.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_static_tracepoint_markers_by_strid.
10457 * target.h (struct target_ops)
10458 <to_static_tracepoint_markers_by_strid>: Use
10459 TARGET_DEFAULT_NORETURN.
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_static_tracepoint_marker_at.
10466 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10467 Use TARGET_DEFAULT_RETURN.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_set_permissions.
10474 * target.h (struct target_ops) <to_set_permissions>: Use
10475 TARGET_DEFAULT_IGNORE.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_get_tib_address.
10482 * target.h (struct target_ops) <to_get_tib_address>: Use
10483 TARGET_DEFAULT_NORETURN.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_set_trace_notes.
10490 * target.h (struct target_ops) <to_set_trace_notes>: Use
10491 TARGET_DEFAULT_RETURN.
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't initialize
10497 to_set_trace_buffer_size.
10498 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10499 TARGET_DEFAULT_IGNORE.
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_set_circular_trace_buffer.
10506 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10507 TARGET_DEFAULT_IGNORE.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't inherit or default
10513 to_set_disconnected_tracing.
10514 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10515 TARGET_DEFAULT_IGNORE.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target-delegates.c: Rebuild.
10520 * target.c (update_current_target): Don't inherit or default
10521 to_get_min_fast_tracepoint_insn_len.
10522 (return_minus_one): Remove.
10523 * target.h (struct target_ops)
10524 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10528 * target-delegates.c: Rebuild.
10529 * target.c (update_current_target): Don't inherit or default
10530 to_get_raw_trace_data.
10531 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10532 TARGET_DEFAULT_NORETURN.
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10536 * target-delegates.c: Rebuild.
10537 * target.c (update_current_target): Don't inherit or default
10538 to_upload_trace_state_variables.
10539 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10540 Use TARGET_DEFAULT_RETURN.
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10544 * target-delegates.c: Rebuild.
10545 * target.c (update_current_target): Don't inherit or default
10546 to_upload_tracepoints.
10547 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10548 TARGET_DEFAULT_RETURN.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10554 to_save_trace_data.
10555 * target.h (struct target_ops) <to_save_trace_data>: Use
10556 TARGET_DEFAULT_NORETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_get_trace_state_variable_value.
10563 * target.h (struct target_ops)
10564 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10571 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10575 * target-delegates.c: Rebuild.
10576 * target.c (update_current_target): Don't inherit or default
10578 * target.h (struct target_ops) <to_trace_stop>: Use
10579 TARGET_DEFAULT_NORETURN.
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10583 * target-delegates.c: Rebuild.
10584 * target.c (update_current_target): Don't inherit or default
10585 to_get_tracepoint_status.
10586 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10587 TARGET_DEFAULT_NORETURN.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10593 to_get_trace_status.
10594 * target.h (struct target_ops) <to_get_trace_status>: Use
10595 TARGET_DEFAULT_RETURN.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10602 * target.h (struct target_ops) <to_trace_start>: Use
10603 TARGET_DEFAULT_NORETURN.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_trace_set_readonly_regions.
10610 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10611 Use TARGET_DEFAULT_NORETURN.
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target-delegates.c: Rebuild.
10616 * target.c (update_current_target): Don't inherit or default
10617 to_disable_tracepoint.
10618 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10619 TARGET_DEFAULT_NORETURN.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_enable_tracepoint.
10626 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10627 TARGET_DEFAULT_NORETURN.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target-delegates.c: Rebuild.
10632 * target.c (update_current_target): Don't inherit or default
10633 to_download_trace_state_variable.
10634 * target.h (struct target_ops) <to_download_trace_state_variable>:
10635 Use TARGET_DEFAULT_NORETURN.
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_can_download_tracepoint.
10642 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10643 TARGET_DEFAULT_RETURN.
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_download_tracepoint.
10650 * target.h (struct target_ops) <to_download_tracepoint>: Use
10651 TARGET_DEFAULT_NORETURN.
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10658 * target.h (struct target_ops) <to_trace_init>: Use
10659 TARGET_DEFAULT_RETURN.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_supports_string_tracing.
10666 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10667 TARGET_DEFAULT_RETURN.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_supports_enable_disable_tracepoint.
10674 * target.h (struct target_ops)
10675 <to_supports_enable_disable_tracepoint>: Use
10676 TARGET_DEFAULT_RETURN.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_supports_multi_process.
10683 * target.h (struct target_ops) <to_supports_multi_process>: Use
10684 TARGET_DEFAULT_RETURN.
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_get_ada_task_ptid.
10691 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10692 TARGET_DEFAULT_FUNC.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_thread_architecture.
10699 * target.h (struct target_ops) <to_thread_architecture>: Use
10700 TARGET_DEFAULT_FUNC.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_execution_direction.
10707 * target.h (struct target_ops) <to_execution_direction>: Use
10708 TARGET_DEFAULT_FUNC.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_can_execute_reverse.
10715 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10716 TARGET_DEFAULT_RETURN.
10717 (target_can_execute_reverse): Unconditionally delegate.
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10724 (dummy_goto_bookmark): Remove.
10725 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10726 * target.h (struct target_ops) <to_goto_bookmark>: Use
10727 TARGET_DEFAULT_NORETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10734 (dummy_get_bookmark): Remove.
10735 (init_dummy_target): Don't inherit or default to_get_bookmark.
10736 * target.h (struct target_ops) <to_get_bookmark>: Use
10737 TARGET_DEFAULT_NORETURN
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_make_corefile_notes.
10744 (init_dummy_target): Don't initialize to_make_corefile_notes.
10745 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10746 TARGET_DEFAULT_FUNC.
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_find_memory_regions.
10753 (init_dummy_target): Don't initialize to_find_memory_regions.
10754 * target.h (struct target_ops) <to_find_memory_regions>: Use
10755 TARGET_DEFAULT_FUNC.
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target-delegates.c: Rebuild.
10760 * target.c (update_current_target): Don't inherit or default
10762 * target.h (struct target_ops) <to_log_command>: Use
10763 TARGET_DEFAULT_IGNORE.
10764 (target_log_command): Unconditionally delegate.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_pid_to_exec_file.
10771 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10772 TARGET_DEFAULT_RETURN.
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10779 (target_thread_name): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_thread_name>: Use
10781 TARGET_DEFAULT_RETURN.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10787 to_extra_thread_info.
10788 * target.h (struct target_ops) <to_extra_thread_info>: Use
10789 TARGET_DEFAULT_RETURN.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10796 * target.h (struct target_ops) <to_has_exited>: Use
10797 TARGET_DEFAULT_RETURN..
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_set_syscall_catchpoint.
10804 (return_one): Remove.
10805 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10806 TARGET_DEFAULT_RETURN.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_insert_exec_catchpoint.
10813 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10814 TARGET_DEFAULT_RETURN.
10816 2014-01-08 Tom Tromey <tromey@redhat.com>
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_insert_exec_catchpoint.
10821 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10822 TARGET_DEFAULT_RETURN.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10828 to_remove_vfork_catchpoint.
10829 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10830 TARGET_DEFAULT_RETURN.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_insert_vfork_catchpoint.
10837 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10838 TARGET_DEFAULT_RETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (update_current_target): Don't inherit or default
10844 to_remove_fork_catchpoint.
10845 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10846 TARGET_DEFAULT_RETURN.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target-delegates.c: Rebuild.
10851 * target.c (update_current_target): Don't inherit or default
10852 to_insert_fork_catchpoint.
10853 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10854 TARGET_DEFAULT_RETURN.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target-delegates.c: Rebuild.
10859 * target.c (update_current_target): Don't inherit or default
10860 to_post_startup_inferior.
10861 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10862 TARGET_DEFAULT_IGNORE.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target-delegates.c: Rebuild.
10867 * target.c (update_current_target): Don't inherit or default
10869 * target.h (struct target_ops) <to_load>: Use
10870 TARGET_DEFAULT_NORETURN.
10872 2014-02-19 Tom Tromey <tromey@redhat.com>
10874 * target-delegates.c: Rebuild.
10875 * target.c (update_current_target): Don't inherit or default
10877 * target.h (struct target_ops) <to_terminal_info>: Use
10878 TARGET_DEFAULT_FUNC.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.c (update_current_target): Don't inherit or default
10884 to_terminal_save_ours.
10885 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10886 TARGET_DEFAULT_IGNORE.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target-delegates.c: Rebuild.
10891 * target.c (update_current_target): Don't inherit or default
10893 * target.h (struct target_ops) <to_terminal_ours>: Use
10894 TARGET_DEFAULT_IGNORE.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target-delegates.c: Rebuild.
10899 * target.c (update_current_target): Don't inherit or default
10900 to_terminal_ours_for_output.
10901 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10902 TARGET_DEFAULT_IGNORE.
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10906 * target-delegates.c: Rebuild.
10907 * target.c (update_current_target): Don't inherit or default
10908 to_terminal_inferior.
10909 * target.h (struct target_ops) <to_terminal_inferior>: Use
10910 TARGET_DEFAULT_IGNORE.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (update_current_target): Don't inherit or default
10917 * target.h (struct target_ops) <to_terminal_init>: Use
10918 TARGET_DEFAULT_IGNORE.
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10922 * target-delegates.c: Rebuild.
10923 * target.c (update_current_target): Don't inherit or default
10924 to_can_accel_watchpoint_condition.
10925 * target.h (struct target_ops)
10926 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target-delegates.c: Rebuild.
10931 * target.c (update_current_target): Don't inherit or default
10932 to_region_ok_for_hw_watchpoint.
10933 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10934 Use TARGET_DEFAULT_FUNC.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target-delegates.c: Rebuild.
10939 * target.c (update_current_target): Don't inherit or default
10940 to_watchpoint_addr_within_range.
10941 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10942 Use TARGET_DEFAULT_FUNC.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (update_current_target): Don't inherit or default
10948 to_remove_watchpoint.
10949 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10950 TARGET_DEFAULT_NORETURN.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10956 to_insert_watchpoint.
10957 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10958 TARGET_DEFAULT_RETURN.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target-delegates.c: Rebuild.
10963 * target.c (update_current_target): Don't inherit or default
10964 to_remove_hw_breakpoint.
10965 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10966 TARGET_DEFAULT_RETURN.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_insert_hw_breakpoint.
10973 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10974 TARGET_DEFAULT_RETURN.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10980 to_can_use_hw_breakpoint.
10981 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10982 TARGET_DEFAULT_RETURN.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10989 * target.h (struct target_ops) <to_files_info>: Use
10990 TARGET_DEFAULT_IGNORE.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target-delegates.c: Rebuild.
10995 * target.c (update_current_target): Don't inherit or default
10997 * target.h (struct target_ops) <to_store>: Use
10998 TARGET_DEFAULT_NORETURN.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target-delegates.c: Rebuild.
11003 * target.c (update_current_target): Don't inherit or default
11005 * target.h (struct target_ops) <to_post_attach>: Use
11006 TARGET_DEFAULT_IGNORE.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target-delegates.c: Rebuild.
11011 * target.c (update_current_target): Don't inherit or default
11013 (default_rcmd): New function.
11014 (do_monitor_command): Unconditionally delegate.
11015 * target.h (struct target_ops) <to_rmcd>: Use
11016 TARGET_DEFAULT_FUNC.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (init_dummy_target): Don't initialize to_attach.
11022 (target_attach): Unconditionally delegate.
11023 * target.h (struct target_ops) <to_attach>: Use
11024 TARGET_DEFAULT_FUNC.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target-delegates.c: Rebuild.
11029 * target.c (target_detach): Unconditionally delegate.
11030 (init_dummy_target): Don't initialize to_detach.
11031 * target.h (struct target_ops) <to_detach>: Use
11032 TARGET_DEFAULT_IGNORE.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11038 (target_augmented_libraries_svr4_read): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target.h (struct target_ops) <to_call_history_range>: Add
11047 * target.c (target_call_history_range): Add argument.
11048 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11050 (record_btrace_call_history_from): Update.
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * target.h (struct target_ops) <to_call_history_from>: Add
11056 * target.c (target_call_history_from): Add argument.
11057 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target.h (struct target_ops) <to_call_history>: Add argument.
11063 * target.c (target_call_history): Add argument.
11064 * record-btrace.c (record_btrace_call_history): Add 'self'
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target.h (struct target_ops) <to_insn_history_range>: Add
11071 * target.c (target_insn_history_range): Add argument.
11072 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11074 (record_btrace_insn_history_from): Update.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_insn_history_from>: Add
11080 * target.c (target_insn_history_from): Add argument.
11081 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target.h (struct target_ops) <to_insn_history>: Add argument.
11087 * target.c (target_insn_history): Add argument.
11088 * record-btrace.c (record_btrace_insn_history): Add 'self'
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * target.h (struct target_ops) <to_goto_record>: Add argument.
11094 * target.c (target_goto_record): Add argument.
11095 * record-full.c (record_full_goto): Add 'self' argument.
11096 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11101 * target.c (target_goto_record_end): Add argument.
11102 * record-full.c (record_full_goto_end): Add 'self' argument.
11103 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * target.h (struct target_ops) <to_goto_record_begin>: Add
11109 * target.c (target_goto_record_begin): Add argument.
11110 * record-full.c (record_full_goto_begin): Add 'self' argument.
11111 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target.h (struct target_ops) <to_record_is_replaying>: Add
11118 * target.c (target_record_is_replaying): Add argument.
11119 * record-full.c (record_full_is_replaying): Add 'self' argument.
11120 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11122 (record_btrace_xfer_partial, record_btrace_store_registers)
11123 (record_btrace_prepare_to_store, record_btrace_resume)
11124 (record_btrace_wait, record_btrace_decr_pc_after_break)
11125 (record_btrace_find_new_threads, record_btrace_thread_alive):
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target.h (struct target_ops) <to_delete_record>: Add argument.
11131 * target.c (target_delete_record): Add argument.
11132 * record-full.c (record_full_delete): Add 'self' argument.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_save_record>: Add argument.
11137 * target.c (target_save_record): Add argument.
11138 * record-full.c (record_full_save): Add 'self' argument.
11139 (record_full_save): Add 'self' argument.
11141 2014-02-19 Tom Tromey <tromey@redhat.com>
11143 * target.h (struct target_ops) <to_info_record>: Add argument.
11144 * target.c (target_info_record): Add argument.
11145 * record.c (info_record_command): Add argument.
11146 * record-full.c (record_full_info): Add 'self' argument.
11147 * record-btrace.c (record_btrace_info): Add 'self' argument.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11152 * target.c (target_stop_recording): Add argument.
11153 * record.c (record_stop): Add argument.
11154 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11160 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11161 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11163 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11164 (_initialize_amd64_linux_nat): Use it.
11165 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11166 (_initialize_i386_linux_nat): Use it.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11171 * target.c (target_teardown_btrace): Add argument.
11172 * remote.c (remote_teardown_btrace): Add 'self' argument.
11173 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11175 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11181 * target.c (target_disable_btrace): Add argument.
11182 * remote.c (remote_disable_btrace): Add 'self' argument.
11183 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11185 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11191 * target.c (target_enable_btrace): Add argument.
11192 * remote.c (remote_enable_btrace): Add 'self' argument.
11193 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11195 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11201 (target_can_use_agent): Add argument.
11202 * target.c (update_current_target): Update.
11203 * remote.c (remote_can_use_agent): Add 'self' argument.
11204 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_use_agent>: Add argument.
11209 (target_use_agent): Add argument.
11210 * target.c (update_current_target): Update.
11211 * remote.c (remote_use_agent): Add 'self' argument.
11212 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11217 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11218 (target_traceframe_info): Add argument.
11219 * target.c (update_current_target): Update.
11220 * remote.c (remote_traceframe_info): Add 'self' argument.
11221 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * target.h (target_static_tracepoint_markers_by_strid): Add
11227 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11229 * target.c (update_current_target): Update.
11230 * remote.c (struct target_ops)
11231 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11232 * linux-nat.c (struct target_ops)
11233 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11239 (target_static_tracepoint_marker_at): Add argument.
11240 * target.c (update_current_target): Update.
11241 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11246 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11247 (target_set_permissions): Add argument.
11248 * target.c (update_current_target): Update.
11249 * remote.c (remote_set_permissions): Add 'self' argument.
11250 (remote_start_remote): Update.
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11254 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11255 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11256 (target_get_tib_address): Add argument.
11257 * target.c (update_current_target): Update.
11258 * remote.c (remote_get_tib_address): Add 'self' argument.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11263 (target_set_trace_notes): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_set_trace_notes): Add 'self' argument.
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11269 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11271 (target_set_trace_buffer_size): Add argument.
11272 * target.c (update_current_target): Update.
11273 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11279 (target_set_circular_trace_buffer): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11284 2014-02-19 Tom Tromey <tromey@redhat.com>
11286 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11288 (target_set_disconnected_tracing): Add argument.
11289 * target.c (update_current_target): Update.
11290 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11294 * target.h (struct target_ops)
11295 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11296 (target_get_min_fast_tracepoint_insn_len): Add argument.
11297 * target.c (update_current_target): Update.
11298 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11305 (target_get_raw_trace_data): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11313 (target_upload_trace_state_variables): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_upload_trace_state_variables): Add 'self'
11317 (remote_start_remote): Update.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11323 (target_upload_tracepoints): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11326 (remote_start_remote): Update.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11331 (target_save_trace_data): Add argument.
11332 * target.c (update_current_target): Update.
11333 * remote.c (remote_save_trace_data): Add 'self' argument.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11339 * target.h (struct target_ops)
11340 <to_get_trace_state_variable_value>: Add argument.
11341 (target_get_trace_state_variable_value): Add argument.
11342 * target.c (update_current_target): Update.
11343 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11345 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11349 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11350 * target.h (struct target_ops) <to_trace_find>: Add argument.
11351 (target_trace_find): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_trace_find): Add 'self' argument.
11354 * ctf.c (ctf_trace_find): Add 'self' argument.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11359 (target_trace_stop): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_trace_stop): Add 'self' argument.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11366 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11368 (target_get_tracepoint_status): Add argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11375 * target.h (struct target_ops) <to_get_trace_status>: Add
11377 (target_get_trace_status): Add argument.
11378 * target.c (update_current_target): Update.
11379 * remote.c (remote_get_trace_status): Add 'self' argument.
11380 (remote_start_remote, remote_can_download_tracepoint): Update.
11381 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target.h (struct target_ops) <to_trace_start>: Add argument.
11386 (target_trace_start): Add argument.
11387 * target.c (update_current_target): Update.
11388 * remote.c (remote_trace_start): Add 'self' argument.
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11392 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11394 (target_trace_set_readonly_regions): Add argument.
11395 * target.c (update_current_target): Update.
11396 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11403 (target_disable_tracepoint): Add argument.
11404 * target.c (update_current_target): Update.
11405 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11411 (target_enable_tracepoint): Add argument.
11412 * target.c (update_current_target): Update.
11413 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target.h (struct target_ops) <to_download_trace_state_variable>:
11419 (target_download_trace_state_variable): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_download_trace_state_variable): Add 'self'
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11426 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11428 (target_can_download_tracepoint): Add argument.
11429 * target.c (update_current_target): Update.
11430 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target.h (struct target_ops) <to_download_tracepoint>: Add
11436 (target_download_tracepoint): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_download_tracepoint): Add 'self' argument.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target.h (struct target_ops) <to_trace_init>: Add argument.
11443 (target_trace_init): Add argument.
11444 * target.c (update_current_target): Update.
11445 * remote.c (remote_trace_init): Add 'self' argument.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11450 * target.c (target_fileio_readlink): Add argument.
11451 * remote.c (remote_hostio_readlink): Add 'self' argument.
11452 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11457 * target.c (target_fileio_unlink): Add argument.
11458 * remote.c (remote_hostio_unlink): Add 'self' argument.
11459 (remote_file_delete): Update.
11460 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11464 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11465 * target.c (target_fileio_close): Add argument.
11466 * remote.c (remote_hostio_close): Add 'self' argument.
11467 (remote_hostio_close_cleanup): Update.
11468 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11470 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11475 * target.c (target_fileio_pread): Add argument.
11476 * remote.c (remote_hostio_pread): Add 'self' argument.
11477 (remote_bfd_iovec_pread, remote_file_get): Update.
11478 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11483 * target.c (target_fileio_pwrite): Add argument.
11484 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11485 (remote_file_put): Update.
11486 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11491 * target.c (target_fileio_open): Add argument.
11492 * remote.c (remote_hostio_open): Add 'self' argument.
11493 (remote_bfd_iovec_open): Add 'self' argument.
11494 (remote_file_put): Add 'self' argument.
11495 (remote_file_get): Add 'self' argument.
11496 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11498 2014-02-19 Tom Tromey <tromey@redhat.com>
11500 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11502 (target_can_run_breakpoint_commands): Add argument.
11503 * target.c (update_current_target): Update.
11504 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11506 (remote_insert_breakpoint): Add 'self' argument.
11507 (remote_insert_hw_breakpoint): Add 'self' argument.
11508 (remote_can_run_breakpoint_commands): Add 'self' argument.
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11512 * target.h (struct target_ops)
11513 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11514 (target_supports_evaluation_of_breakpoint_conditions): Add
11516 * target.c (update_current_target): Update.
11517 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11519 (remote_insert_breakpoint): Add 'self' argument.
11520 (remote_insert_hw_breakpoint): Add 'self' argument.
11521 (remote_supports_cond_breakpoints): Add 'self' argument.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11527 (target_supports_string_tracing): Add argument.
11528 * target.c (update_current_target): Update.
11529 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target.h (struct target_ops)
11534 <to_supports_disable_randomization>: Add argument.
11535 * target.c (find_default_supports_disable_randomization): Add
11537 (target_supports_disable_randomization): Add argument.
11538 (find_default_supports_disable_randomization): Add 'self'
11540 * remote.c (extended_remote_supports_disable_randomization): Add
11542 (remote_supports_disable_randomization): Add 'self' argument.
11543 (extended_remote_create_inferior): Update.
11544 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target.h (struct target_ops)
11550 <to_supports_enable_disable_tracepoint>: Add argument.
11551 (target_supports_enable_disable_tracepoint): Add argument.
11552 * target.c (update_current_target): Update.
11553 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target.h (struct target_ops) <to_supports_multi_process>: Add
11560 (target_supports_multi_process): Add argument.
11561 * target.c (update_current_target): Update.
11562 * remote.c (remote_supports_multi_process): Add 'self' argument.
11563 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11565 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target.h (struct target_ops) <to_execution_direction>: Add
11572 (target_execution_direction): Add argument.
11573 * target.c (default_execution_direction): Add 'self' argument.
11574 * record-full.c (record_full_execution_direction): Add 'self'
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11581 (target_can_execute_reverse): Add argument.
11582 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11583 * record-full.c (record_full_can_execute_reverse): Add 'self'
11585 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11588 2014-02-19 Tom Tromey <tromey@redhat.com>
11590 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11591 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11593 (target_get_ada_task_ptid): Add argument.
11594 * target.c (update_current_target): Update.
11595 (default_get_ada_task_ptid): Add 'self' argument.
11596 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11597 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11598 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11600 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11602 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11604 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11606 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11607 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11613 (target_goto_bookmark): Add argument.
11614 * target.c (dummy_goto_bookmark): Add 'self' argument.
11615 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11620 (target_get_bookmark): Add argument.
11621 * target.c (dummy_get_bookmark): Add 'self' argument.
11622 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11624 2014-02-19 Tom Tromey <tromey@redhat.com>
11626 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11628 (target_make_corefile_notes): Add argument.
11629 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11630 * procfs.c (procfs_make_note_section): Add 'self' argument.
11631 (procfs_make_note_section): Add 'self' argument.
11632 (procfs_make_note_section): Add 'self' argument.
11633 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11635 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11636 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11637 * exec.c (exec_make_note_section): Add 'self' argument.
11638 (exec_make_note_section): Add 'self' argument.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_find_memory_regions>: Add
11644 (target_find_memory_regions): Add argument.
11645 * target.c (dummy_find_memory_regions): Add 'self' argument.
11646 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11647 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11648 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11649 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11650 * exec. (exec_do_find_memory_regions): New global.
11651 (exec_set_find_memory_regions): Rewrite.
11652 (exec_find_memory_regions): New function.
11653 (init_exec_ops): Use exec_find_memory_regions.
11655 2014-02-19 Tom Tromey <tromey@redhat.com>
11657 * target.h (struct target_ops) <to_supports_non_stop>: Add
11659 * target.c (find_default_supports_non_stop): Add argument.
11660 (target_supports_non_stop): Add argument.
11661 (find_default_supports_non_stop): Add 'self' argument.
11662 * remote.c (remote_supports_non_stop): Add 'self' argument.
11663 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_log_command>: Add argument.
11668 (target_log_command): Add argument.
11669 * serial.h (serial_log_command): Add 'self' argument.
11670 * serial.c (serial_log_command): Add 'self' argument.
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11674 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11675 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11677 (target_pid_to_exec_file): Add argument.
11678 * target.c (debug_to_pid_to_exec_file): Add argument.
11679 (update_current_target): Update.
11680 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11681 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11682 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11683 (linux_handle_extended_wait): Update.
11684 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11685 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11686 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11687 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target.h (struct target_ops) <to_rcmd>: Add argument.
11692 (target_rcmd): Add argument.
11693 * target.c (debug_to_rcmd): Add argument.
11694 (update_current_target, do_monitor_command): Update.
11695 * remote.c (remote_rcmd): Add 'self' argument.
11696 * monitor.c (monitor_rcmd): Add 'self' argument.
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * windows-nat.c (windows_stop): Add 'self' argument.
11701 * target.h (struct target_ops) <to_stop>: Add argument.
11702 * target.c (target_stop): Add argument.
11703 (debug_to_stop): Add argument.
11704 (update_current_target): Update.
11705 * remote.c (remote_stop): Add 'self' argument.
11706 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11707 (gdbsim_cntrl_c): Update.
11708 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11709 * procfs.c (procfs_stop): Add 'self' argument.
11710 * nto-procfs.c (procfs_stop): Add 'self' argument.
11711 * monitor.c (monitor_stop): Add 'self' argument.
11712 (monitor_open): Update.
11713 * linux-nat.c (linux_nat_stop): Add argument.
11714 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11715 * gnu-nat.c (gnu_stop): Add 'self' argument.
11716 * darwin-nat.c (darwin_stop): Add 'self' argument.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target.h (struct target_ops) <to_thread_name>: Add argument.
11721 * target.c (target_thread_name): Add argument.
11722 (update_current_target): Update.
11723 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * target.h (struct target_ops) <to_extra_thread_info>: Add
11729 (target_extra_thread_info): Add argument.
11730 * target.c (update_current_target): Update.
11731 * remote.c (remote_threads_extra_info): Add 'self' argument.
11732 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11734 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11735 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11736 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11738 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11740 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11742 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11745 2014-02-19 Tom Tromey <tromey@redhat.com>
11747 * target.h (struct target_ops) <to_program_signals>: Add argument.
11748 * target.c (target_program_signals): Add argument.
11749 * remote.c (remote_program_signals): Add 'self' argument.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11754 * target.c (target_pass_signals): Add argument.
11755 * remote.c (remote_pass_signals): Add 'self' argument.
11756 (remote_start_remote): Update.
11757 * procfs.c (procfs_pass_signals): Add 'self' argument.
11758 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11759 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11760 (linux_nat_create_inferior, linux_nat_attach): Update.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * windows-nat.c (windows_can_run): Add 'self' argument.
11765 * target.h (struct target_ops) <to_can_run>: Add argument.
11766 (target_can_run): Add argument.
11767 * target.c (debug_to_can_run): Add argument.
11768 (update_current_target): Update.
11769 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11770 * inf-child.c (inf_child_can_run): Add 'self' argument.
11771 * go32-nat.c (go32_can_run): Add 'self' argument.
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11775 * target.h (struct target_ops) <to_has_exited>: Add argument.
11776 (target_has_exited): Add argument.
11777 * target.c (debug_to_has_exited): Add argument.
11778 (update_current_target): Update.
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11782 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11784 (target_set_syscall_catchpoint): Add argument.
11785 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11787 * target.c (update_current_target): Update.
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11793 (target_remove_exec_catchpoint): Add argument.
11794 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11795 (update_current_target): Update.
11796 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11799 2014-02-19 Tom Tromey <tromey@redhat.com>
11801 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11803 (target_insert_exec_catchpoint): Add argument.
11804 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11805 (update_current_target): Update.
11806 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11813 (target_remove_vfork_catchpoint): Add argument.
11814 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11815 (update_current_target): Update.
11816 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11823 (target_insert_vfork_catchpoint): Add argument.
11824 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11825 (update_current_target): Update.
11826 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11833 (target_remove_fork_catchpoint): Add argument.
11834 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11835 (update_current_target): Update.
11836 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11843 (target_insert_fork_catchpoint): Add argument.
11844 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11845 (update_current_target): Update.
11846 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11853 (target_post_startup_inferior): Add argument.
11854 * target.c (debug_to_post_startup_inferior): Add argument.
11855 (update_current_target): Update.
11856 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11858 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11860 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11862 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11864 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11866 (super_post_startup_inferior): Likewise.
11867 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11869 (super_post_startup_inferior): Likewise.
11870 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11871 Add 'self' argument.
11872 (super_post_startup_inferior): Likewise.
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11876 * target.h (struct target_ops) <to_load>: Add argument.
11877 * target.c (target_load): Add argument.
11878 (debug_to_load): Add argument.
11879 (update_current_target): Update.
11880 * remote.c (remote_load): Add 'self' argument.
11881 * remote-sim.c (gdbsim_load): Add 'self' argument.
11882 * remote-mips.c (mips_load): Add 'self' argument.
11883 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11884 * monitor.c (monitor_load): Add 'self' argument.
11885 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11890 (target_terminal_info): Add argument.
11891 * target.c (debug_to_terminal_info): Add argument.
11892 (default_terminal_info): Likewise.
11893 * inflow.c (child_terminal_info): Add 'self' argument.
11894 * inferior.h (child_terminal_info): Add 'self' argument.
11895 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11901 (target_terminal_save_ours): Add argument.
11902 * target.c (debug_to_terminal_save_ours): Add argument.
11903 (update_current_target): Update.
11904 * inflow.c (terminal_save_ours): Add 'self' argument.
11905 * inferior.h (terminal_save_ours): Add 'self' argument.
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11910 (target_terminal_ours): Add argument.
11911 * target.c (debug_to_terminal_ours): Add argument.
11912 (update_current_target): Update.
11913 * remote.c (remote_terminal_ours): Add 'self' argument.
11914 (remote_close): Update.
11915 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11916 * inflow.c (terminal_ours): Add 'self' argument.
11917 * inferior.h (terminal_ours): Add 'self' argument.
11918 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11920 2014-02-19 Pedro Alves <palves@redhat.com>
11921 Tom Tromey <tromey@redhat.com>
11923 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11925 (target_terminal_ours_for_output): Add argument.
11926 * target.c (debug_to_terminal_ours_for_output): Add argument.
11927 (update_current_target): Update.
11928 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11929 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11930 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target.h (struct target_ops) <to_terminal_inferior>: Add
11936 * target.c (target_terminal_inferior): Add argument.
11937 (update_current_target): Update.
11938 * remote.c (remote_terminal_inferior): Add 'self' argument.
11939 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11940 * inflow.c (terminal_inferior): Add 'self' argument.
11941 * inferior.h (terminal_inferior): Add 'self' argument.
11942 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11943 (go32_terminal_inferior): Add 'self' argument.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11948 (target_terminal_init): Add argument.
11949 * target.c (debug_to_terminal_init): Add argument.
11950 (update_current_target): Update.
11951 * inflow.c (terminal_init_inferior): Add 'self' argument.
11952 * inferior.h (terminal_init_inferior): Add 'self' argument.
11953 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11954 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target.h (struct target_ops)
11959 <to_can_accel_watchpoint_condition>: Add argument.
11960 (target_can_accel_watchpoint_condition): Add argument.
11961 * target.c (debug_to_can_accel_watchpoint_condition): Add
11963 (update_current_target): Update.
11964 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11971 (target_region_ok_for_hw_watchpoint): Add argument.
11972 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11973 (default_region_ok_for_hw_watchpoint): Add argument.
11974 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11975 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11977 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11979 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11981 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11983 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11985 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11987 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11988 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11990 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11991 Add 'self' argument.
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11995 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11997 (target_insert_watchpoint): Add argument.
11998 * target.c (debug_to_insert_watchpoint): Add argument.
11999 (update_current_target): Update.
12000 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12001 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12002 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12003 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12004 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12005 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12007 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12008 (procfs_insert_hw_watchpoint): Add 'self' argument.
12009 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12011 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12013 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12015 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12016 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12018 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12023 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12025 (target_remove_watchpoint): Add argument.
12026 * target.c (debug_to_remove_watchpoint): Add argument.
12027 (update_current_target): Update.
12028 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12029 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12030 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12031 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12032 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12033 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12035 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12036 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12038 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12040 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12042 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12043 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12045 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12052 (target_remove_hw_breakpoint): Add argument.
12053 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12054 (update_current_target): Update.
12055 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12056 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12058 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12059 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12061 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12068 (target_insert_hw_breakpoint): Add argument.
12069 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12070 (update_current_target): Update.
12071 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12072 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12074 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12075 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12076 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12078 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12085 (target_can_use_hardware_watchpoint): Add argument.
12086 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12087 (update_current_target): Update.
12088 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12090 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12092 * remote.c (remote_check_watch_resources): Add 'self' argument.
12093 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12094 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12096 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12097 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12099 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12101 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12103 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12105 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12107 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12109 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12110 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12112 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_post_attach>: Add argument.
12118 (target_post_attach): Add argument.
12119 * target.c (debug_to_post_attach): Add argument.
12120 (update_current_target): Update.
12121 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12122 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12123 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12124 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12125 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * windows-nat.c (windows_close): Add 'self' argument.
12130 * tracepoint.c (tfile_close): Add 'self' argument.
12131 * target.h (struct target_ops) <to_close>: Add argument.
12132 * target.c (target_close): Add argument.
12133 (update_current_target): Update.
12134 * remote.c (remote_close): Add 'self' argument.
12135 * remote-sim.c (gdbsim_close): Add 'self' argument.
12136 * remote-mips.c (mips_close): Add 'self' argument.
12137 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12138 * record-full.c (record_full_close): Add 'self' argument.
12139 * record-btrace.c (record_btrace_close): Add 'self' argument.
12140 * monitor.h (monitor_close): Add 'self' argument.
12141 * monitor.c (monitor_close): Add 'self' argument.
12142 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12143 * linux-nat.c (linux_nat_close): Add argument.
12144 * go32-nat.c (go32_close): Add 'self' argument.
12145 * exec.c (exec_close_1): Add 'self' argument.
12146 * ctf.c (ctf_close): Add 'self' argument.
12147 * corelow.c (core_close): Add 'self' argument.
12148 (core_close_cleanup): Update.
12149 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12150 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * remote.c (remote_load): New function.
12155 (init_remote_ops): Use it.
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12159 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12161 * common/linux-btrace.h (linux_supports_btrace): Update.
12162 * remote.c (remote_supports_btrace): Add "self" argument.
12163 * target-delegates.c: Rebuild.
12164 * target.c (target_supports_btrace): Remove.
12165 * target.h (struct target_ops) <to_supports_btrace>: Add
12166 target_ops argument.
12167 (target_supports_btrace): New define.
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * record-full.c (record_full_beneath_to_resume_ops)
12172 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12173 (record_full_beneath_to_wait)
12174 (record_full_beneath_to_store_registers_ops)
12175 (record_full_beneath_to_store_registers)
12176 (record_full_beneath_to_xfer_partial_ops)
12177 (record_full_beneath_to_xfer_partial)
12178 (record_full_beneath_to_insert_breakpoint_ops)
12179 (record_full_beneath_to_insert_breakpoint)
12180 (record_full_beneath_to_remove_breakpoint_ops)
12181 (record_full_beneath_to_remove_breakpoint)
12182 (record_full_beneath_to_stopped_by_watchpoint)
12183 (record_full_beneath_to_stopped_data_address)
12184 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12185 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12186 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12187 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12188 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12189 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12190 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12191 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12192 (record_full_resume, record_full_wait_1)
12193 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12194 (record_full_store_registers, record_full_xfer_partial)
12195 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12196 (record_full_async, record_full_core_xfer_partial): Use target
12198 * target-delegates.c: Rebuild.
12199 * target.c (current_xfer_partial): Remove.
12200 (update_current_target): Do not INHERIT or de_fault
12201 to_insert_breakpoint, to_remove_breakpoint,
12202 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12203 to_is_async_p, to_async. Do not set to_xfer_partial field.
12204 (default_xfer_partial): Simplify.
12205 (current_xfer_partial): Remove.
12206 (target_wait, target_resume): Simplify.
12207 (find_default_can_async_p, find_default_is_async_p): Update.
12208 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12209 to_xfer_partial, to_stopped_by_watchpoint,
12210 to_stopped_data_address.
12211 (target_store_registers): Simplify.
12212 (forward_target_remove_breakpoint)
12213 (forward_target_insert_breakpoint): Remove.
12214 (target_remove_breakpoint, target_insert_breakpoint)
12215 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12216 * target.h (struct target_ops) <to_resume, to_wait,
12217 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12218 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12219 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12221 (forward_target_remove_breakpoint)
12222 (forward_target_insert_breakpoint): Remove.
12223 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12225 (record_btrace_insert_breakpoint): Delegate directly.
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: New file.
12231 * target.c: Include target-delegates.c.
12232 (init_dummy_target): Call install_dummy_methods.
12233 (complete_target_initialization): Call install_delegators.
12234 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12235 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12236 * make-target-delegates: New file.
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12240 * record.c (find_record_target): Use find_target_at.
12241 * target.c (find_target_at): New function.
12242 * target.h (find_target_at): Declare.
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12247 Add 'ops' argument.
12248 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12250 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12251 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12253 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12255 * linux-nat.c (save_sigtrap): Update.
12256 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12257 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12258 (linux_nat_close): Update.
12259 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12261 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12263 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12264 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12265 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12266 (tmp_to_async): Add 'ops' argument.
12267 (record_full_stopped_by_watchpoint, record_full_async)
12268 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12270 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12271 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12272 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12273 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12274 (remote_is_async_p, remote_async): Add 'ops' argument.
12275 (remote_stopped_data_address): Update.
12276 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12277 * target.c (update_current_target)
12278 (find_default_can_async_p, find_default_is_async_p): Update.
12279 (init_dummy_target): Update.
12280 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12281 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12282 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12283 (target_can_async_p, target_is_async_p, target_async)
12284 (target_stopped_by_watchpoint): Update.
12286 2014-02-19 Yao Qi <yao@codesourcery.com>
12289 * gdbarch.sh: Remove startup_gdbarch.
12290 * gdbarch.c: Regenerated.
12291 * gdbarch.h: Likewise.
12293 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12295 * rl78-tdep.c (rl78_g10_register_name): New function.
12296 (rl78_return_value): Add g10 support.
12297 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12300 2014-02-17 Doug Evans <xdje42@gmail.com>
12302 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12303 (SUBDIR_GUILE_SRCS): Ditto.
12304 (scm-gsmob.o): Ditto.
12306 2014-02-17 Yao Qi <yao@codesourcery.com>
12308 * gnu-nat.c (ILL_RPC): Declare defined function.
12310 2014-02-17 Yao Qi <yao@codesourcery.com>
12312 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12313 mach_msg_type_number_t.
12314 (gnu_write_inferior): Likewise.
12316 2014-02-17 Yao Qi <yao@codesourcery.com>
12318 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12320 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12321 (inf_validate_procs, inf_signal): Likewise.
12322 (S_exception_raise_request): Likewise.
12323 (do_mach_notify_dead_name): Likewise.
12324 (steal_exc_port): Likewise.
12325 (gnu_read_inferior): Change 'copy_count''s type to
12326 mach_msg_type_number_t.
12327 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12330 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12332 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12333 flag. Adjust all users; in particular...
12334 (gnu_wait): ..., don't decrement its value in here...
12335 (gnu_create_inferior): ..., and instead set the flag in here,
12336 around the startup_inferior call, and call that one with
12337 START_INFERIOR_TRAPS_EXPECTED.
12339 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12340 (ILL_RPC): ... new macro.
12341 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12342 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12343 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12344 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12345 functions with ILL_RPC macro.
12346 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12347 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12348 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12349 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12350 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12351 (S_proc_getlogin_reply, S_proc_getsid_reply)
12352 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12353 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12354 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12355 (S_proc_getnports_reply, S_proc_is_important_reply)
12356 (S_proc_get_code_reply): New stub functions, generated with
12359 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12360 collected the type check structures.
12362 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12364 2014-02-14 Doug Evans <dje@google.com>
12366 * target.c (target_write_partial): Fix result type.
12368 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12370 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12371 the proper offsets to access fpregset_t.
12373 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12375 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12376 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12377 * h8300-tdep.c (setmachinelist): Remove global.
12378 * hppa-tdep.c (hppa_sigtramp): Remove global.
12379 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12380 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12381 * ravenscar-thread.c (update_target_observer): Remove global.
12382 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12384 2014-02-12 Tom Tromey <tromey@redhat.com>
12386 * common/rsp-low.c: Update comments.
12387 * common/rsp-low.h: Update comments.
12389 2014-02-12 Tom Tromey <tromey@redhat.com>
12391 * common/rsp-low.c (convert_ascii_to_int): Remove.
12392 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12394 2014-02-12 Tom Tromey <tromey@redhat.com>
12396 * common/rsp-low.h (unhexify): Don't declare.
12397 * common/rsp-low.c (unhexify): Remove.
12399 2014-02-12 Tom Tromey <tromey@redhat.com>
12401 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12402 * common/rsp-low.c (convert_int_to_ascii): Remove.
12404 2014-02-12 Tom Tromey <tromey@redhat.com>
12406 * common/rsp-low.h (hexify): Don't declare.
12407 * common/rsp-low.c (hexify): Remove.
12409 2014-02-12 Tom Tromey <tromey@redhat.com>
12411 * common/rsp-low.c (hexify): Never take strlen of argument.
12413 2014-02-12 Tom Tromey <tromey@redhat.com>
12415 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12416 * remote.c (extended_remote_run, remote_rcmd)
12417 (remote_download_trace_state_variable, remote_save_trace_data)
12418 (remote_set_trace_notes): Update.
12419 * tracepoint.c (encode_source_string, tfile_write_status)
12420 (tfile_write_uploaded_tsv): Update.
12422 2014-02-12 Tom Tromey <tromey@redhat.com>
12424 * tracepoint.c: Include rsp-low.h.
12425 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12426 * remote.c: Include rsp-low.h.
12427 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12428 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12429 (remote_unescape_input): Move to common/rsp-low.c.
12430 * common/rsp-low.h: New file.
12431 * common/rsp-low.c: New file.
12432 * Makefile.in (SFILES): Add common/rsp-low.c.
12433 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12434 (COMMON_OBS): Add rsp-low.o.
12435 (rsp-low.o): New target.
12437 2014-02-12 Tom Tromey <tromey@redhat.com>
12439 * utils.h: Include print-utils.h.
12440 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12441 (int_string, core_addr_to_string, core_addr_to_string_nz)
12442 (hex_string, hex_string_custom): Don't declare.
12443 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12444 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12445 (hex_string_custom, int_string, core_addr_to_string)
12446 (core_addr_to_string_nz, host_address_to_string): Move to
12447 common/print-utils.c.
12448 * common/print-utils.h: New file.
12449 * common/print-utils.c: New file
12450 * Makefile.in (SFILES): Add common/print-utils.c.
12451 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12452 (COMMON_OBS): Add print-utils.o.
12453 (print-utils.o): New target.
12455 2014-02-12 Tom Tromey <tromey@redhat.com>
12457 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12459 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12461 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12463 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12465 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12466 if a PT_IO ptrace request returns sucessfully but indicates that 0
12467 bytes were transferred.
12469 2014-02-12 Pedro Alves <palves@redhat.com>
12470 Kevin Buettner <kevinb@redhat.com>
12472 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12473 TYPE_INSTANCE_FLAG_CODE_SPACE.
12475 2014-02-12 Pedro Alves <palves@redhat.com>
12477 * h8300-tdep.c (pseudo_from_raw_register)
12478 (raw_from_pseudo_register): New functions.
12479 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12482 2014-02-12 Pedro Alves <palves@redhat.com>
12484 * h8300-tdep.c (h8300_register_sim_regno): New function.
12485 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12486 gdbarch_register_sim_regno hook.
12488 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12490 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12492 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12494 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12496 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12498 * obsd-tdep.h (obsd_init_abi): New prototype.
12499 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12500 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12501 (obsd_init_abi): New functions.
12502 * i386obsd-tdep.c: Include "obsd-tdep.h".
12503 (i386obsd_init_abi): Call obsd_init_abi.
12504 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12505 (amd64obsd_init_abi): Call obsd_init_abi.
12506 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12507 obsd-tdep.c to gdb_target_obs.
12509 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12511 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12512 double float arguments to 16-byte in the argument slots.
12514 2014-02-11 Doug Evans <xdje42@gmail.com>
12516 * configure.ac: Don't crash if pkg-config is not found and guile
12517 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12519 * configure: Regenerate.
12521 2014-02-11 Yao Qi <yao@codesourcery.com>
12523 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12524 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12525 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12526 * gnu-nat.c (gnu_xfer_memory): Likewise.
12527 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12528 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12529 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12530 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12532 2014-02-11 Yao Qi <yao@codesourcery.com>
12534 * target.h (enum target_xfer_error): Rename to ...
12535 (enum target_xfer_status): ... it. New. All users updated.
12536 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12538 (TARGET_XFER_STATUS_ERROR_P): New macro.
12539 (target_xfer_error_to_string): Remove declaration.
12540 (target_xfer_status_to_string): Declare.
12541 (target_xfer_partial_ftype): Adjust it.
12542 (struct target_ops) <to_xfer_partial>: Return
12543 target_xfer_status. Add argument xfered_len. Update
12545 * target.c (target_xfer_error_to_string): Rename to ...
12546 (target_xfer_status_to_string): ... it. New. All callers
12548 (target_read_live_memory): Likewise. Call target_xfer_partial
12549 instead of target_read.
12550 (memory_xfer_live_readonly_partial): Return
12551 target_xfer_status. Add argument xfered_len.
12552 (raw_memory_xfer_partial): Likewise.
12553 (memory_xfer_partial_1): Likewise.
12554 (memory_xfer_partial): Likewise.
12555 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12556 properly. Update debug message.
12557 (default_xfer_partial, current_xfer_partial): Likewise.
12558 (target_write_partial): Likewise.
12559 (target_read_partial): Likewise. All callers updated.
12560 (read_whatever_is_readable): Likewise.
12561 (target_write_with_progress): Likewise.
12562 (target_read_alloc_1): Likewise.
12564 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12565 * auxv.c (procfs_xfer_auxv): Likewise.
12566 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12567 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12568 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12569 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12570 * corefile.c (read_memory): Adjust.
12571 * corelow.c (core_xfer_partial): Likewise.
12572 * ctf.c (ctf_xfer_partial): Likewise.
12573 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12575 (darwin_xfer_partial): Likewise.
12576 * exec.c (section_table_xfer_memory_partial): Likewise. All
12578 (exec_xfer_partial): Likewise.
12579 * exec.h (section_table_xfer_memory_partial): Update
12581 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12583 (gnu_xfer_partial): Likewise.
12584 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12585 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12586 (ia64_hpux_xfer_solib_got): Likewise.
12587 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12588 type of 'partial_len' to ULONGEST.
12589 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12590 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12591 (linux_nat_xfer_partial): Likewise.
12592 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12593 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12594 * monitor.c (monitor_xfer_memory): Likewise.
12595 (monitor_xfer_partial): Likewise.
12596 * procfs.c (procfs_xfer_partial): Likewise.
12597 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12598 * record-full.c (record_full_xfer_partial): Likewise.
12599 (record_full_core_xfer_partial): Likewise.
12600 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12601 (gdbsim_xfer_partial): Likewise.
12602 * remote.c (remote_write_bytes_aux): Likewise. All callers
12604 (remote_write_bytes, remote_read_bytes): Likewise. All
12606 (remote_flash_erase): Likewise. All callers updated.
12607 (remote_write_qxfer): Likewise. All callers updated.
12608 (remote_read_qxfer): Likewise. All callers updated.
12609 (remote_xfer_partial): Likewise.
12610 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12611 (rs6000_xfer_shared_libraries): Likewise.
12612 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12613 (sol_thread_xfer_partial): Likewise.
12614 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12615 (sparc_xfer_partial): Likewise.
12616 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12618 (spu_xfer_partial): Likewise.
12619 * spu-multiarch.c (spu_xfer_partial): Likewise.
12620 * tracepoint.c (tfile_xfer_partial): Likewise.
12621 * windows-nat.c (windows_xfer_memory): Likewise.
12622 (windows_xfer_shared_libraries): Likewise.
12623 (windows_xfer_partial): Likewise.
12624 * valprint.c: Replace 'target_xfer_error' with
12625 'target_xfer_status' in comments.
12627 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12629 Checked in by Joel Brobecker <brobecker@adacore.com>.
12630 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12632 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12634 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12635 function parameters.
12637 2014-02-10 Will Newton <will.newton@linaro.org>
12639 * elfread.c (elf_rel_plt_read): Look for a .got section if
12640 looking up .got.plt fails.
12641 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12642 on address passed to elf_gnu_ifunc_record_cache.
12643 (elf_gnu_ifunc_resolve_addr): Likewise.
12644 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12646 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12648 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12649 (X_RETTURN): New macro.
12650 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12652 * sparc64-tdep.c (sparc64_init_abi): Hook
12653 sparc_in_function_epilogue_p.
12655 2014-02-10 Gary Benson <gbenson@redhat.com>
12657 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12658 Rename name_matcher to symbol_matcher.
12660 2014-02-10 Gary Benson <gbenson@redhat.com>
12662 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12663 Use expand_symtabs_file_matcher_ftype and
12664 expand_symtabs_symbol_matcher_ftype.
12666 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12668 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12669 (struct ada_symbol_cache): New.
12670 (ada_free_symbol_cache): Forward declare.
12671 (struct ada_pspace_data): New.
12672 (ada_pspace_data_handle): New static global.
12673 (get_ada_pspace_data, ada_pspace_data_cleanup)
12674 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12675 (cache_space, cache): Delete, now folded inside struct
12677 (ada_get_symbol_cache): New function.
12678 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12680 (_initialize_ada_language): Remove initialization of cache_space.
12681 Move call to observer_attach_inferior_exit up, grouping it
12682 with the other observer registrations inside this function.
12683 Rename command to be more general. Add call to
12684 register_program_space_data_with_cleanup.
12686 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12688 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12689 ada_new_objfile_observer.
12690 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12691 (_initialize_tasks): Update uses of ada_new_objfile_observer
12692 and ada_tasks_normal_stop_observer.
12694 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12696 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12697 returned by the 'Length attribute to integer.
12699 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12701 * ada-lang.c (_initialize_ada_language): Initialize
12702 cache_space obstack.
12704 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12706 * ada-lang.c (HASH_SIZE): New macro.
12707 (struct cache_entry): New type.
12708 (cache_space, cache): New static globals.
12709 (ada_clear_symbol_cache, find_entry): New functions.
12710 (lookup_cached_symbol, cache_symbol): Implement.
12711 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12712 (_initialize_ada_language): Attach ada_new_objfile_observer
12713 and ada_free_objfile_observer.
12715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12717 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12718 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12719 struct block * parameter.
12720 (ada_lookup_symbol_list_worker): Constify local variable "block".
12721 Remove cast which is no longer necessary.
12723 2014-02-10 Doug Evans <xdje42@gmail.com>
12725 Add Guile as an extension language.
12726 * NEWS: Mention Guile scripting.
12727 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12728 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12729 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12730 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12731 (CLIBS): Add GUILE_LIBS.
12732 (install-guile): New rule.
12733 (guile.o): New rule.
12734 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12735 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12736 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12737 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12738 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12739 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12740 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12741 * configure.ac: New option --with-guile.
12742 * configure: Regenerate.
12743 * config.in: Regenerate.
12744 * auto-load.c: Remove #include "python/python.h". Add #include
12745 "gdb/section-scripts.h".
12746 (source_section_scripts): Handle Guile scripts.
12747 (_initialize_auto_load): Add name of Guile objfile script to
12748 scripts-directory help text.
12749 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12750 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12751 (struct breakpoint): New member scm_bp_object.
12752 * defs.h (enum command_control_type): New value guile_control.
12753 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12755 (show_user): Update comment.
12756 (_initialize_cli_cmds): Update help text for "show user". Update help
12757 text for max-user-call-depth.
12758 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12760 (multi_line_command_p): Add guile_control.
12761 (print_command_lines): Handle guile_control.
12762 (execute_control_command, recurse_read_control_structure): Ditto.
12763 (process_next_line): Recognize "guile" commands.
12764 * disasm.c (gdb_disassemble_info): Make non-static.
12765 * disasm.h: #include "dis-asm.h".
12766 (struct gdbarch): Add forward decl.
12767 (gdb_disassemble_info): Declare.
12768 * extension.c: #include "guile/guile.h".
12769 (extension_languages): Add guile.
12770 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12771 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12772 * gdbtypes.c (get_unsigned_type_max): New function.
12773 (get_signed_type_minmax): New function.
12774 * gdbtypes.h (get_unsigned_type_max): Declare.
12775 (get_signed_type_minmax): Declare.
12776 * guile/README: New file.
12777 * guile/guile-internal.h: New file.
12778 * guile/guile.c: New file.
12779 * guile/guile.h: New file.
12780 * guile/scm-arch.c: New file.
12781 * guile/scm-auto-load.c: New file.
12782 * guile/scm-block.c: New file.
12783 * guile/scm-breakpoint.c: New file.
12784 * guile/scm-disasm.c: New file.
12785 * guile/scm-exception.c: New file.
12786 * guile/scm-frame.c: New file.
12787 * guile/scm-gsmob.c: New file.
12788 * guile/scm-iterator.c: New file.
12789 * guile/scm-lazy-string.c: New file.
12790 * guile/scm-math.c: New file.
12791 * guile/scm-objfile.c: New file.
12792 * guile/scm-ports.c: New file.
12793 * guile/scm-pretty-print.c: New file.
12794 * guile/scm-safe-call.c: New file.
12795 * guile/scm-string.c: New file.
12796 * guile/scm-symbol.c: New file.
12797 * guile/scm-symtab.c: New file.
12798 * guile/scm-type.c: New file.
12799 * guile/scm-utils.c: New file.
12800 * guile/scm-value.c: New file.
12801 * guile/lib/gdb.scm: New file.
12802 * guile/lib/gdb/boot.scm: New file.
12803 * guile/lib/gdb/experimental.scm: New file.
12804 * guile/lib/gdb/init.scm: New file.
12805 * guile/lib/gdb/iterator.scm: New file.
12806 * guile/lib/gdb/printing.scm: New file.
12807 * guile/lib/gdb/types.scm: New file.
12808 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12809 (VPATH): Add $(GUILE_SRCDIR).
12810 (GUILE_DIR): New variable.
12811 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12812 (all): Add stamp-guile dependency.
12813 (stamp-guile): New rule.
12814 (clean-guile, install-guile, uninstall-guile): New rules.
12815 (install-only): Add install-guile dependency.
12816 (uninstall): Add uninstall-guile dependency.
12817 (clean): Add clean-guile dependency.
12819 2014-02-09 Doug Evans <xdje42@gmail.com>
12821 Revert this patch (which I approved, mea culpa).
12823 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12825 * Makefile.in (all-lib): Remove.
12826 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12828 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12830 Fix Python stack corruption.
12831 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12834 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12836 * Makefile.in (all-lib): Remove.
12837 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12839 2014-02-07 Doug Evans <dje@google.com>
12841 * extension-priv.h (extension_language_script_ops): Add comment.
12842 (extension_language_ops): Add comment.
12843 (active_ext_lang_state): Fix typo in comment.
12845 2014-02-07 Pedro Alves <palves@redhat.com>
12847 PR breakpoints/16292
12848 * infrun.c (handle_signal_stop) <signal arrives while stepping
12849 over a breakpoint>: Switch back to the stepping thread.
12851 2014-02-07 Yao Qi <yao@codesourcery.com>
12853 * target.c (target_xfer_partial): Return zero if LEN is zero.
12855 2014-02-07 Yao Qi <yao@codesourcery.com>
12857 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12858 (ld_so_xfer_auxv): Likewise.
12859 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12860 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12861 * corelow.c (core_xfer_partial): Likewise.
12862 * ctf.c (ctf_xfer_partial): Likewise.
12863 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12864 (darwin_xfer_partial): Likewise.
12865 * exec.c (exec_xfer_partial): Likewise.
12866 * gnu-nat.c (gnu_xfer_partial): Likewise.
12867 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12868 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12869 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12870 * linux-nat.c (linux_xfer_siginfo): Likewise.
12871 (linux_proc_xfer_spu): Likewise.
12872 * procfs.c (procfs_xfer_partial): Likewise.
12873 * record-full.c (record_full_xfer_partial): Likewise.
12874 (record_full_core_xfer_partial): Likewise.
12875 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12876 * remote.c (remote_write_qxfer): Likewise.
12877 (remote_write_qxfer, remote_read_qxfer): Likewise.
12878 (remote_xfer_partial): Likewise.
12879 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12880 (rs6000_xfer_shared_libraries): Likewise.
12881 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12882 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12883 (spu_xfer_partial): Likewise.
12884 * target.c (memory_xfer_partial_1): Likewise.
12885 * tracepoint.c (tfile_xfer_partial): Likewise.
12886 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12887 (windows_xfer_partial): Likewise.
12889 2014-02-07 Yao Qi <yao@codesourcery.com>
12891 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12893 (core_xfer_shared_libraries_aix): Likewise.
12894 * gdbarch.c, gdbarch.h: Regenerated.
12895 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12896 ULONGEST. Change 'len_avail' type to ULONGEST.
12897 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12898 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12900 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12902 2014-02-07 Yao Qi <yao@codesourcery.com>
12904 * corefile.c (memory_error): Get 'exception' from ERR and pass
12905 'exception' to throw_error.
12907 2014-02-06 Doug Evans <xdje42@gmail.com>
12909 * configure.ac (libpython checking): Remove all but python.o from
12910 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12911 * configure: Regenerate.
12913 * Makefile.in (SFILES): Add extension.c.
12914 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12915 (COMMON_OBS): Add extension.o.
12916 * extension.h: New file.
12917 * extension-priv.h: New file.
12918 * extension.c: New file.
12920 * python/python-internal.h: #include "extension.h".
12921 (gdbpy_auto_load_enabled): Declare.
12922 (gdbpy_apply_val_pretty_printer): Declare.
12923 (gdbpy_apply_frame_filter): Declare.
12924 (gdbpy_preserve_values): Declare.
12925 (gdbpy_breakpoint_cond_says_stop): Declare.
12926 (gdbpy_breakpoint_has_cond): Declare.
12927 (void source_python_script_for_objfile): Delete.
12928 * python/python.c: #include "extension-priv.h".
12929 Delete inclusion of "observer.h".
12930 (extension_language_python): Moved here and renamed from
12931 script_language_python in py-auto-load.c.
12932 Redefined to be of type extension_language_defn.
12933 (python_extension_script_ops): New global.
12934 (python_extension_ops): New global.
12935 (struct python_env): New member previous_active.
12936 (restore_python_env): Call restore_active_ext_lang.
12937 (ensure_python_env): Call set_active_ext_lang.
12938 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12940 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12942 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12944 (gdbpy_eval_from_control_command): Renamed from
12945 eval_python_from_control_command, made static. New arg extlang.
12946 (gdbpy_source_script) Renamed from source_python_script, made static.
12948 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12949 result to int. New arg extlang.
12950 (gdbpy_source_objfile_script): Renamed from
12951 source_python_script_for_objfile, made static. New arg extlang.
12952 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12953 static. New args extlang, extlang_printers. Change result type to
12955 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12956 static. New arg extlang. Rename arg printers to extlang_printers
12957 and change type to ext_lang_type_printers *.
12958 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12959 static. Replace argument arg with extlang, extlang_printers.
12960 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12961 (!HAVE_PYTHON, source_python_script): Delete.
12962 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12963 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12964 (!HAVE_PYTHON, start_type_printers): Delete.
12965 (!HAVE_PYTHON, apply_type_printers): Delete.
12966 (!HAVE_PYTHON, free_type_printers): Delete.
12967 (_initialize_python): Delete call to observer_attach_before_prompt.
12968 (finalize_python): Set/restore active extension language.
12969 (gdbpy_finish_initialization) Renamed from
12970 finish_python_initialization, made static. New arg extlang.
12971 (gdbpy_initialized): New function.
12972 * python/python.h: #include "extension.h". Delete #include
12973 "value.h", "mi/mi-cmds.h".
12974 (extension_language_python): Declare.
12975 (GDBPY_AUTO_FILE_NAME): Delete.
12976 (enum py_bt_status): Moved to extension.h and renamed to
12977 ext_lang_bt_status.
12978 (enum frame_filter_flags): Moved to extension.h.
12979 (enum py_frame_args): Moved to extension.h and renamed to
12980 ext_lang_frame_args.
12981 (finish_python_initialization): Delete.
12982 (eval_python_from_control_command): Delete.
12983 (source_python_script): Delete.
12984 (apply_val_pretty_printer): Delete.
12985 (apply_frame_filter): Delete.
12986 (preserve_python_values): Delete.
12987 (gdbpy_script_language_defn): Delete.
12988 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12989 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12991 * auto-load.c: #include "extension.h".
12992 (GDB_AUTO_FILE_NAME): Delete.
12993 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12994 (script_language_gdb): Delete, moved to extension.c and renamed to
12995 extension_language_gdb.
12996 (source_gdb_script_for_objfile): Delete.
12997 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12998 (loaded_script): Change type of language member to
12999 struct extension_language_defn *.
13000 (init_loaded_scripts_info): Initialize
13001 unsupported_script_warning_printed.
13002 (maybe_add_script): Make static. Change type of language arg to
13003 struct extension_language_defn *.
13004 (clear_section_scripts): Reset unsupported_script_warning_printed.
13005 (auto_load_objfile_script_1): Rewrite to use extension language API.
13006 (auto_load_objfile_script): Make public. Remove support-compiled-in
13007 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13008 (source_section_scripts): Rewrite to use extension language API.
13009 (load_auto_scripts_for_objfile): Rewrite to use
13010 auto_load_scripts_for_objfile.
13011 (collect_matching_scripts_data): Change type of language member to
13012 struct extension_language_defn *.
13013 (auto_load_info_scripts): Change type of language arg to
13014 struct extension_language_defn *.
13015 (unsupported_script_warning_print): New function.
13016 (script_not_found_warning_print): Make static.
13017 (_initialize_auto_load): Rewrite construction of scripts-directory
13019 * auto-load.h (struct objfile): Add forward decl.
13020 (struct script_language): Delete.
13021 (struct auto_load_pspace_info): Add forward decl.
13022 (struct extension_language_defn): Add forward decl.
13023 (maybe_add_script): Delete.
13024 (auto_load_objfile_script): Declare.
13025 (script_not_found_warning_print): Delete.
13026 (auto_load_info_scripts): Update prototype.
13027 (auto_load_gdb_scripts_enabled): Declare.
13028 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13029 auto_load_python_scripts_enabled and made public.
13030 (script_language_python): Delete, moved to python.c.
13031 (gdbpy_script_language_defn): Delete.
13032 (info_auto_load_python_scripts): Update to use
13033 extension_language_python.
13035 * breakpoint.c (condition_command): Replace call to
13036 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13037 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13038 with call to breakpoint_ext_lang_cond_says_stop.
13039 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13040 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13041 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13042 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13044 (local_setattro): Print name of extension language with existing
13047 * valprint.c (val_print, value_print): Update to call
13048 apply_ext_lang_val_pretty_printer.
13049 * cp-valprint.c (cp_print_value): Update call to
13050 apply_ext_lang_val_pretty_printer.
13051 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13052 (gdbpy_apply_val_pretty_printer): Renamed from
13053 apply_val_pretty_printer. New arg extlang.
13054 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13056 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13057 extension language API.
13058 * cli/cli-script.c (execute_control_command): Update to call
13059 eval_ext_lang_from_control_command.
13061 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13062 enum ext_lang_bt_status values. Update call to
13063 apply_ext_lang_frame_filter.
13064 (mi_cmd_stack_list_locals): Ditto.
13065 (mi_cmd_stack_list_args): Ditto.
13066 (mi_cmd_stack_list_variables): Ditto.
13067 * mi/mi-main.c: Delete #include "python/python-internal.h".
13068 Add #include "extension.h".
13069 (mi_cmd_list_features): Replace reference to python internal variable
13070 gdb_python_initialized with call to ext_lang_initialized_p.
13072 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13073 Update to use enum ext_lang_frame_args. Update to call
13074 apply_ext_lang_frame_filter.
13075 * python/py-framefilter.c (extract_sym): Update to use enum
13076 ext_lang_bt_status.
13077 (extract_value, py_print_type, py_print_value): Ditto.
13078 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13079 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13080 (py_print_frame): Ditto.
13081 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13082 New arg extlang. Update to use enum ext_lang_bt_status.
13084 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13085 finish_python_initialization. Replace with call to
13086 finish_ext_lang_initialization.
13088 * typeprint.c (do_free_global_table): Update to call
13089 free_ext_lang_type_printers.
13090 (create_global_typedef_table): Update to call
13091 start_ext_lang_type_printers.
13092 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13093 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13094 (type_print_options): Change type of global_printers from "void *"
13095 to "struct ext_lang_type_printers *".
13097 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13098 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13099 (gdbpy_preserve_values): Renamed from preserve_python_values.
13101 (!HAVE_PYTHON, preserve_python_values): Delete.
13103 * utils.c (quit_flag): Delete, moved to extension.c.
13104 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13107 * eval.c: Delete #include "python/python.h".
13108 * main.c: Delete #include "python/python.h".
13110 * defs.h: Update comment.
13112 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13116 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13118 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13121 2014-02-05 Yao Qi <yao@codesourcery.com>
13123 * remote.c (remote_pass_signals): Remove local 'buf' and use
13125 (remote_program_signals): Likewise.
13127 2014-02-05 Yao Qi <yao@codesourcery.com>
13129 * ctf.c: Include "inferior.h" and "gdbthread.h".
13130 (CTF_PID): A new macro.
13131 (ctf_open): Call inferior_appeared and add_thread_silent.
13132 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13133 (ctf_thread_alive): New function.
13134 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13136 2014-02-05 Yao Qi <yao@codesourcery.com>
13140 2013-05-24 Yao Qi <yao@codesourcery.com>
13142 * tracepoint.c (TFILE_PID): Remove.
13143 (tfile_open): Don't add thread and inferior.
13144 (tfile_close): Don't set 'inferior_ptid'. Don't call
13145 exit_inferior_silent.
13146 (tfile_thread_alive): Remove.
13147 (init_tfile_ops): Don't set field 'to_thread_alive' of
13150 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13152 * remote.c (remote_start_remote): Call remote_check_symbols even
13153 if only symbol-file (not file) has been given.
13155 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13157 * gdbarch.sh (skip_entrypoint): New callback.
13158 * gdbarch.c, gdbarch.h: Regenerate.
13159 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13160 * infrun.c (fill_in_stop_func): Likewise.
13161 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13162 (ppc_elfv2_elf_make_msymbol_special): New function.
13163 (ppc_elfv2_skip_entrypoint): Likewise.
13164 (ppc_linux_init_abi): Install them for ELFv2.
13166 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13168 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13169 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13170 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13171 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13172 structures returned in GPRs.
13174 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13176 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13177 offset to the stack parameter list for the ELFv2 ABI.
13179 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13181 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13182 set_gdbarch_convert_from_func_ptr_addr and
13183 set_gdbarch_elf_make_msymbol_special for ELFv1.
13184 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13185 function descriptors on ELFv1.
13186 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13187 set up r12 at function entry.
13189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13191 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13192 (struct gdbarch_tdep): New member elf_abi.
13194 * rs6000-tdep.c: Include "elf/ppc64.h".
13195 (rs6000_gdbarch_init): Detect ELF ABI version.
13197 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13199 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13200 within a register pair holding a DFP 128-bit value on little-endian.
13201 (ppc64_sysv_abi_return_value_base): Likewise.
13202 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13203 (dfp_pseudo_register_write): Likewise.
13205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13208 offset on little-endian when passing _Decimal32.
13209 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13213 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13214 of the overlapped FP register within the VSX register on little-
13216 (efpr_pseudo_register_write): Likewise.
13218 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13220 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13221 offset on little-endian when passing small structures.
13223 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13225 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13226 (struct ppc64_sysv_argpos): New data structure.
13227 (ppc64_sysv_abi_push_float): Remove.
13228 (ppc64_sysv_abi_push_val): New function.
13229 (ppc64_sysv_abi_push_integer): Likewise.
13230 (ppc64_sysv_abi_push_freg): Likewise.
13231 (ppc64_sysv_abi_push_vreg): Likewise.
13232 (ppc64_sysv_abi_push_param): Likewise.
13233 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13234 (ppc64_sysv_abi_return_value_base): New function.
13235 (ppc64_sysv_abi_return_value): Refactor to use it.
13237 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13239 * NEWS: Document new target powerpc64le-*-linux*.
13241 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13243 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13244 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13246 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13247 register set used in ELF core dumps. Add floating-point register set.
13249 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13251 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13252 dwarf2_to_gdb[] table using symbolic constants. Adjust
13253 penultimate entry from number representing the PC register
13254 to symbolic constant representing the MDR register. Add
13255 constant for the PC register to the end of the table.
13257 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13259 * bsd-kvm.c: Include <sys/param.h>
13261 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13263 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13265 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13267 * ada-lang.h (clear_ada_sym_cache): Delete.
13269 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13271 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13273 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13275 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13276 the sigreturn register save area only if the syscall is
13279 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13281 * valops.c (value_slice): Minor reformatting.
13283 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13285 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13287 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13289 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13290 New static globals.
13291 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13292 (ada_ignore_descriptive_types_p): New static global.
13293 (find_parallel_type_by_descriptive_type): Return immediately
13294 if ada_ignore_descriptive_types_p is set.
13295 (_initialize_ada_language): Register new commands "maintenance
13296 set ada", "maintenance show ada", "maintenance set ada
13297 ignore-descriptive-types" and "maintenance show ada
13298 ignore-descriptive-types".
13299 * NEWS: Add entry for new "maint ada set/show
13300 ignore-descriptive-types" commands.
13302 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13304 * record-btrace.c (record_btrace_close): Call btrace_teardown
13307 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13309 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13312 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13314 * ada-typeprint (type_is_full_subrange_of_target_type):
13316 (print_range): Add parameter bounds_prefered_p. If not set,
13317 try printing range types using the name of their base type.
13318 (print_range_type): Add parameter bounds_prefered_p.
13319 Use it in call to print_range.
13320 (print_array_type, ada_print_type): Update calls to print_range
13321 and print_range_type.
13323 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13325 * ada-typeprint.c (print_array_type, print_choices, print_range)
13326 (print_range_bound, print_dynamic_range_bound, print_range_type):
13327 Remove declaration.
13329 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13331 * ada-typeprint.c (print_range): Add missing empty line
13332 after local declaration.
13334 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13336 * ada-valprint.c (print_optional_low_bound): Get index_type's
13337 target type for as long as it is a TYPE_CODE_RANGE.
13339 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13341 * procfs.c (procfs_make_note_section): Remove assertion and
13342 associated comment.
13344 2014-01-24 Yao Qi <yao@codesourcery.com>
13346 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13347 * corelow.c (get_core_siginfo): Likewise.
13349 2014-01-24 Yao Qi <yao@codesourcery.com>
13351 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13352 ULONGEST. Don't check 'len' is negative.
13353 (remote_write_bytes): Change type of 'len' to ULONGEST.
13355 2014-01-23 Tom Tromey <tromey@redhat.com>
13358 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13359 Handle exception from frame.block.
13360 (FrameVars.fetch_frame_locals): Likewise.
13362 2014-01-23 Tom Tromey <tromey@redhat.com>
13365 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13366 on a NULL pointer. Move "goto error" to correct place.
13368 2014-01-23 Tom Tromey <tromey@redhat.com>
13371 * python/py-framefilter.c (apply_frame_filter): Call
13372 ensure_python_env after computing gdbarch.
13374 2014-01-23 Yao Qi <yao@codesourcery.com>
13376 * target.c (raw_memory_xfer_partial): Change argument type
13377 from void * to gdb_byte *.
13378 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13380 2014-01-22 Doug Evans <dje@google.com>
13382 New gdbserver option --debug-format=timestamp.
13383 * NEWS: Mention it.
13385 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13387 * syscalls/s390x-linux.xml: New file.
13388 * syscalls/s390-linux.xml: New file.
13389 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13390 (XML_SYSCALL_FILENAME_S390X): Likewise.
13391 (op_svc): New enum value for SVC opcode.
13392 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13393 (s390_linux_get_syscall_number): New function.
13394 (s390_gdbarch_init): Register '*get_syscall_number' and the
13395 syscall xml file name.
13396 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13397 "s390-linux.xml" and "s390x-linux.xml".
13398 * NEWS: Announce new feature.
13400 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13402 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13404 2014-01-22 Pedro Alves <palves@redhat.com>
13406 * xtensa-config.c: Include defs.h.
13408 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13410 * common/common-utils.h: Add "ARI:" comment beside __func__
13413 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13415 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13416 documentation a bit.
13418 2014-01-21 Roland McGrath <mcgrathr@google.com>
13420 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13421 * configure: Regenerate.
13422 * aclocal.m4: Regenerate.
13423 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13424 New substituted variables.
13425 (install-strip): New target.
13426 (INSTALL_SCRIPT): New substituted variable.
13427 (FLAGS_TO_PASS): Add it.
13428 (install-only): Use $(INSTALL_SCRIPT) rather than
13429 $(INSTALL_PROGRAM) for gcore.
13431 2014-01-20 Tom Tromey <tromey@redhat.com>
13433 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13436 2014-01-20 Tom Tromey <tromey@redhat.com>
13438 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13439 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13440 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13441 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13442 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13443 (struct cmd_list_element) <flags>: Remove.
13444 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13445 doc_allocated>: New fields.
13446 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13448 * maint.c (maintenance_do_deprecate): Update.
13449 * top.c (execute_command): Update.
13451 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13453 * xtensa-linux-nat.c: Include asm/ptrace.h.
13455 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13457 * Makefile.in (SFILES): Add d-support.c.
13458 (COMMON_OBS): Add d-support.o.
13459 * d-lang.h (d_parse_symbol): Add comment, now defined in
13461 * d-lang.c (parse_call_convention)
13462 (parse_attributes, parse_function_types)
13463 (parse_function_args, parse_type, parse_identifier)
13464 (call_convention_p, d_parse_symbol): Move functions to ...
13465 * d-support.c: ... New file.
13467 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13469 * d-lang.h (d_parse_symbol): Add declaration.
13470 * d-lang.c (extract_identifiers)
13471 (extract_type_info): Remove functions.
13472 (parse_call_convention, parse_attributes)
13473 (parse_function_types, parse_function_args)
13474 (parse_type, parse_identifier, call_convention_p)
13475 (d_parse_symbol): New functions.
13476 (d_demangle): Use d_parse_symbol to demangle D symbols.
13478 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13480 * d-lang.h (struct builtin_d_type): New data type.
13481 (builtin_d_type): Add declaration.
13482 * d-lang.c (d_language_arch_info, build_d_types)
13483 (builtin_d_type): New functions.
13484 (enum d_primitive_types): New data type.
13485 (d_language_defn): Change c_language_arch_info to
13486 d_language_arch_info.
13487 (d_type_data): New static variable.
13488 (_initialize_d_language): Initialize d_type_data.
13490 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13492 * d-lang.h (d_main_name): Add declaration.
13493 * d-lang.c (d_main_name): New function.
13494 * symtab.c (find_main_name): Add call to d_main_name.
13496 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13498 * d-lang.c (d_language_defn): Change macro_expansion_c to
13499 macro_expansion_no.
13501 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13503 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13505 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13507 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13508 gdb_exception" declaration.
13509 * remote.c (getpkt_or_notif_sane): Likewise.
13511 2014-01-17 Doug Evans <dje@google.com>
13513 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13514 function, contents of dirnames_to_char_ptr_vec_append moved here.
13515 (delim_string_to_char_ptr_vec): New function.
13516 (dirnames_to_char_ptr_vec_append): Rewrite.
13517 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13519 2014-01-17 Doug Evans <dje@google.com>
13521 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13523 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13524 #include "common-utils.h".
13525 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13526 * common/vec.h (VEC_ASSERT_PASS): Update.
13527 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13528 (MACH_CHECK_ERROR): Update.
13530 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13532 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13534 * gdbarch.h: Regenerate.
13536 2014-01-16 Tom Tromey <tromey@redhat.com>
13538 * value.c (struct value) <regnum>: Move earlier.
13540 2014-01-16 Tom Tromey <tromey@redhat.com>
13542 * remote.c (extended_remote_create_inferior): Rename from
13543 extended_remote_create_inferior_1. Add "ops" argument. Remove
13544 old implementation.
13546 2014-01-16 Pedro Alves <palves@redhat.com>
13548 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13549 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13552 2014-01-16 Doug Evans <dje@google.com>
13554 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558 * btrace.h (btrace_thread_flag): New.
13559 (struct btrace_thread_info) <flags>: New.
13560 * record-btrace.c (record_btrace_resume_thread)
13561 (record_btrace_find_thread_to_move, btrace_step_no_history)
13562 (btrace_step_stopped, record_btrace_start_replaying)
13563 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13564 (record_btrace_find_resume_thread): New.
13565 (record_btrace_resume, record_btrace_wait): Extend.
13566 (record_btrace_can_execute_reverse): New.
13567 (record_btrace_open): Fail in non-stop mode.
13568 (record_btrace_set_replay): Split into this, ...
13569 (record_btrace_stop_replaying): ... this, ...
13570 (record_btrace_clear_histories): ... and this.
13571 (init_record_btrace_ops): Init to_can_execute_reverse.
13572 * NEWS: Announce it.
13574 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13576 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13577 (forward_target_decr_pc_after_break)
13578 (target_decr_pc_after_break): New.
13579 * target.c (forward_target_decr_pc_after_break)
13580 (target_decr_pc_after_break): New.
13581 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13582 instead of gdbarch_decr_pc_after_break.
13583 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13584 instead of gdbarch_decr_pc_after_break.
13585 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13586 instead of gdbarch_decr_pc_after_break.
13587 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13588 instead of gdbarch_decr_pc_after_break.
13589 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13590 instead of gdbarch_decr_pc_after_break.
13591 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13592 instead of gdbarch_decr_pc_after_break.
13594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13596 * btrace.c: Include regcache.h.
13597 (btrace_add_pc): New.
13598 (btrace_enable): Call btrace_add_pc.
13599 (btrace_is_empty): New.
13600 * btrace.h (btrace_is_empty): New.
13601 * record-btrace.c (require_btrace, record_btrace_info): Call
13604 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13606 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13607 Support delta reads.
13608 (linux_disable_btrace): Change return type.
13609 * common/linux-btrace.h (linux_read_btrace): Change parameters
13610 and return type to allow error reporting. Update users.
13611 (linux_disable_btrace): Change return type. Update users.
13612 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13614 (btrace_error): New.
13615 (btrace_block) <begin>: Comment on BEGIN == 0.
13616 * btrace.c (btrace_compute_ftrace): Start from the end of
13618 (btrace_stitch_trace, btrace_clear_history): New.
13619 (btrace_fetch): Read delta trace, return if replaying.
13620 (btrace_clear): Move clear history code to btrace_clear_history.
13621 (parse_xml_btrace): Throw an error if parsing failed.
13622 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13623 and return type to allow error reporting.
13624 (target_read_btrace): Change parameters and return type to allow
13626 * target.c (target_read_btrace): Update.
13627 * remote.c (remote_read_btrace): Support delta reads. Pass
13629 * NEWS: Announce it.
13631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13633 * record.h (record_btrace_frame_unwind)
13634 (record_btrace_tailcall_frame_unwind): New declarations.
13635 * dwarf2-frame: Include record.h
13636 (dwarf2_frame_cfa): Throw an error for btrace frames.
13637 * record-btrace.c: Include hashtab.h.
13638 (btrace_get_bfun_name): New.
13639 (btrace_call_history): Call btrace_get_bfun_name.
13640 (struct btrace_frame_cache): New.
13642 (bfcache_hash, bfcache_eq, bfcache_new): New.
13643 (btrace_get_frame_function): New.
13644 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13645 (record_btrace_frame_this_id): Compute own id.
13646 (record_btrace_frame_prev_register): Provide PC, throw_error
13647 for all other registers.
13648 (record_btrace_frame_sniffer): Detect btrace frames.
13649 (record_btrace_tailcall_frame_sniffer): New.
13650 (record_btrace_frame_dealloc_cache): New.
13651 (record_btrace_frame_unwind): Add new functions.
13652 (record_btrace_tailcall_frame_unwind): New.
13653 (_initialize_record_btrace): Allocate cache.
13654 * btrace.c (btrace_clear): Call reinit_frame_cache.
13655 * NEWS: Announce it.
13657 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13659 * record-btrace.c (record_btrace_set_replay)
13660 (record_btrace_goto_begin, record_btrace_goto_end)
13661 (record_btrace_goto): New.
13662 (init_record_btrace_ops): Initialize them.
13663 * NEWS: Announce it.
13665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13667 * record-btrace.c (record_btrace_find_new_threads)
13668 (record_btrace_thread_alive): New.
13669 (init_record_btrace_ops): Initialize to_find_new_threads and
13672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13674 * record-btrace.c (record_btrace_resume): New.
13675 (record_btrace_wait): New.
13676 (init_record_btrace_ops): Initialize to_wait and to_resume.
13678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13680 * record-btrace.c (record_btrace_xfer_partial)
13681 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13682 (record_btrace_allow_memory_access): New.
13683 (init_record_btrace_ops): Initialize new methods.
13684 * target.c (raw_memory_xfer_partial): Bail out if target reports
13685 that this memory is not available.
13687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13689 * target.h (target_ops) <to_insert_breakpoint>
13690 <to_remove_breakpoint>: Add target_ops parameter.
13691 (forward_target_insert_breakpoint): New.
13692 (forward_target_remove_breakpoint): New.
13693 (memory_remove_breakpoint, memory_insert_breakpoint):
13694 Add target_ops parameter.
13695 * target.c (target_insert_breakpoint): Split into this and ...
13696 (forward_target_insert_breakpoint): ... this.
13697 (target_remove_breakpoint): Split into this and ...
13698 (forward_target_remove_breakpoint): ... this.
13699 (debug_to_insert_breakpoint): Add target_ops parameter.
13700 Call forward_target_insert_breakpoint.
13701 (debug_to_remove_breakpoint): Add target_ops parameter.
13702 Call forward_target_remove_breakpoint.
13703 (update_current_target): Do not inherit or default to_insert_breakpoint
13704 and to_remove_breakpoint.
13705 * corelow.c (ignore): Add target_ops parameter.
13706 * exec.c (ignore): Add target_ops parameter.
13707 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13708 Add target_ops parameter.
13709 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13710 Add target_ops parameter.
13711 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13712 Add target_ops parameter.
13713 * record-full.c (record_full_beneath_to_insert_breakpoint)
13714 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13715 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13716 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13717 (record_full_core_remove_breakpoint): Add target_ops parameter.
13719 (record_full_beneath_to_insert_breakpoint_ops)
13720 (record_full_beneath_to_remove_breakpoint_ops)
13721 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13722 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13723 tmp_to_remove_breakpoint_ops,
13724 record_full_beneath_to_insert_breakpoint_ops, and
13725 record_full_beneath_to_remove_breakpoint_ops.
13726 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13727 (m32r_remove_breakpoint): Add target_ops parameter.
13728 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13729 Add target_ops parameter.
13730 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13731 Add target_ops parameter.
13733 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13734 Markus Metzger <markus.t.metzger@intel.com>
13736 * record-btrace.c: Include frame-unwind.h.
13737 (record_btrace_frame_unwind_stop_reason)
13738 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13739 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13741 (init_record_btrace_ops): Install it.
13743 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13745 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13748 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13750 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13753 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13755 * frame-unwind.c: Include target.h.
13756 (frame_unwind_try_unwinder): New function with code from ...
13757 (frame_unwind_find_by_frame): ... here. New variable
13758 unwinder_from_target, call also target_get_unwinder)
13759 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13760 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13761 * target.h (struct target_ops): New fields to_get_unwinder and
13762 to_get_tailcall_unwinder.
13763 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13767 * record-btrace.c (record_btrace_fetch_registers)
13768 (record_btrace_store_registers)
13769 (record_btrace_to_prepare_to_store): New.
13770 (init_record_btrace_ops): Add the above.
13772 2014-01-16 Tom Tromey <tromey@redhat.com>
13774 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13775 * target.h (struct target_ops) <to_prepare_to_store>: Add
13777 (target_prepare_to_store): Add argument.
13778 * target.c (debug_to_prepare_to_store): Add argument.
13779 (update_current_target): Update.
13780 * remote.c (remote_prepare_to_store): Add 'self' argument.
13781 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13782 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13783 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13784 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13786 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13787 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13788 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13789 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13790 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13794 * btrace.h (replay) <replay>: New.
13795 (btrace_is_replaying): New.
13796 * btrace.c (btrace_clear): Free replay iterator.
13797 (btrace_is_replaying): New.
13798 * record-btrace.c (record_btrace_is_replaying): New.
13799 (record_btrace_info): Print insn number if replaying.
13800 (record_btrace_insn_history): Start at replay position.
13801 (record_btrace_call_history): Start at replay position.
13802 (init_record_btrace_ops): Init to_record_is_replaying.
13804 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13806 * record-btrace.c (record_btrace_insn_history_range): Include
13808 (record_btrace_insn_history_from): Adjust range.
13809 (record_btrace_call_history_range): Include
13811 (record_btrace_call_history_from): Adjust range.
13812 * NEWS: Announce changes.
13814 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13816 * record.h (enum record_print_flag)
13817 <record_print_indent_calls>: New.
13818 * record.c (get_call_history_modifiers): Recognize /c modifier.
13819 (_initialize_record): Document /c modifier.
13820 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13821 Reorder fields. Optionally indent the function name. Update
13823 * NEWS: Announce changes.
13825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13827 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13831 * btrace.c (ftrace_new_function): Start counting at one.
13832 * record-btrace.c (record_btrace_info): Adjust number of calls
13834 * NEWS: Announce it.
13836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13838 * record-btrace.c (btrace_call_history_insn_range): Print
13839 insn range as [begin, end].
13841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13843 * btrace.h (struct btrace_func_link): New.
13844 (enum btrace_function_flag): New.
13845 (struct btrace_inst): Rename to ...
13846 (struct btrace_insn): ...this. Update all users.
13847 (struct btrace_func) <ibegin, iend>: Remove.
13848 (struct btrace_func_link): New.
13849 (struct btrace_func): Rename to ...
13850 (struct btrace_function): ...this. Update all users.
13851 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13852 (number, level, flags>: New.
13853 (struct btrace_insn_iterator): Rename to ...
13854 (struct btrace_insn_history): ...this.
13856 (struct btrace_insn_iterator, btrace_call_iterator): New.
13857 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13858 (struct btrace_target_info) <begin, end, level>
13859 <insn_history, call_history>: New.
13860 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13861 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13862 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13863 (btrace_call_number, btrace_call_begin, btrace_call_end)
13864 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13865 (btrace_find_function_by_number, btrace_set_insn_history)
13866 (btrace_set_call_history): New.
13867 * btrace.c (btrace_init_insn_iterator)
13868 (btrace_init_func_iterator, compute_itrace): Remove.
13869 (ftrace_print_function_name, ftrace_print_filename)
13870 (ftrace_skip_file): Change
13871 parameter to const.
13872 (ftrace_init_func): Remove.
13873 (ftrace_debug): Use new btrace_function fields.
13874 (ftrace_function_switched): Also consider gaining and
13875 losing symbol information).
13876 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13877 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13878 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13880 (ftrace_new_function): Move. Remove debug print.
13881 (ftrace_update_lines, ftrace_update_insns): New.
13882 (ftrace_update_function): Check for call, ret, and jump.
13883 (compute_ftrace): Renamed to ...
13884 (btrace_compute_ftrace): ...this. Rewritten to compute call
13886 (btrace_fetch, btrace_clear): Updated.
13887 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13888 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13889 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13890 (btrace_call_number, btrace_call_begin, btrace_call_end)
13891 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13892 (btrace_find_function_by_number, btrace_set_insn_history)
13893 (btrace_set_call_history): New.
13894 * record-btrace.c (require_btrace): Use new btrace thread
13896 (record_btrace_info, btrace_insn_history)
13897 (record_btrace_insn_history, record_btrace_insn_history_range):
13898 Use new btrace thread info fields and new iterator.
13899 (btrace_func_history_src_line): Rename to ...
13900 (btrace_call_history_src_line): ...this. Use new btrace
13901 thread info fields.
13902 (btrace_func_history): Rename to ...
13903 (btrace_call_history): ...this. Use new btrace thread info
13904 fields and new iterator.
13905 (record_btrace_call_history, record_btrace_call_history_range):
13906 Use new btrace thread info fields and new iterator.
13908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13910 * frame.h (frame_id_build_unavailable_stack_special): New.
13911 * frame.c (frame_id_build_unavailable_stack_special): New.
13913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13915 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13916 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13917 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13919 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13920 (i386_insn_is_jump, i386_jmp_p): New.
13921 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13922 insn_is_jump to gdbarch.
13923 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13924 * gdbarch.h: Regenerated.
13925 * gdbarch.c: Regenerated.
13926 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13927 (default_insn_is_jump): New.
13928 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13929 (default_insn_is_jump): New.
13931 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13933 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13935 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13936 (btrace_read_type) <btrace_read_new>: Change to ...
13937 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13939 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13941 * common/linux-btrace.c (linux_read_btrace): Free trace from
13942 previous iteration.
13944 2014-01-15 Doug Evans <dje@google.com>
13946 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13949 2014-01-15 Tom Tromey <tromey@redhat.com>
13951 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13952 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13953 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13954 (set_objfile_main_name): New function.
13955 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13956 language_of_main>: New fields.
13957 (set_objfile_main_name): Declare.
13958 * symtab.c (find_main_name): Loop over objfiles to find the main
13960 (set_main_name): Now static.
13961 (get_main_info): Add comment.
13962 * symtab.h (set_main_name): Don't declare.
13964 2014-01-15 Tom Tromey <tromey@redhat.com>
13966 * symtab.c (main_progspace_key): New global.
13967 (struct main_info): New.
13968 (name_of_main, language_of_main): Remove.
13969 (get_main_info, main_info_cleanup): New function.
13970 (set_main_name, main_name, main_language): Use get_main_info.
13971 (_initialize_symtab): Initialize main_progspace_key.
13973 2014-01-15 Tom Tromey <tromey@redhat.com>
13975 * dbxread.c (process_one_symbol): Update.
13976 * dwarf2read.c (read_partial_die): Update.
13977 * symfile.c (set_initial_language): Call main_language.
13978 * symtab.c (language_of_main): Now static.
13979 (set_main_name): Add 'lang' parameter.
13980 (find_main_name): Update.
13981 (main_language): New function.
13982 (symtab_observer_executable_changed): Update.
13983 * symtab.h (set_main_name): Update.
13984 (language_of_main): Remove.
13985 (main_language): Declare.
13987 2014-01-15 Tom Tromey <tromey@redhat.com>
13989 * symfile.c (init_entry_point_info): Use new "initialized" field.
13991 * objfiles.h (struct entry_point) <initialized>: New field.
13992 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13993 (struct objfile) <ei>: ...here. Remove.
13994 * objfiles.c (entry_point_address_query): Update.
13996 2014-01-15 Tom Tromey <tromey@redhat.com>
13998 * objfiles.c (entry_point_address_query): Relocate entry point
14000 (objfile_relocate1): Do not relocate entry point address.
14001 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14002 <the_bfd_section_index>: New field.
14003 * symfile.c (init_entry_point_info): Find the entry point's
14006 2014-01-15 Tom Tromey <tromey@redhat.com>
14008 * solib-frv.c (enable_break): Use entry_point_address_query.
14010 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14012 * NEWS: Add note on improved process record-replay on
14013 arm*-linux* targets.
14015 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14017 * arm-tdep.c (enum arm_record_result): New enum.
14018 (arm_record_unsupported_insn): New function.
14019 (arm_record_coproc_data_proc): Removed.
14020 (thumb2_record_ld_st_multiple): New function.
14021 (thumb2_record_ld_st_dual_ex_tbb): New function.
14022 (thumb2_record_data_proc_sreg_mimm): New function.
14023 (thumb2_record_ps_dest_generic): New function.
14024 (thumb2_record_branch_misc_cntrl): New function.
14025 (thumb2_record_str_single_data): New function.
14026 (thumb2_record_ld_mem_hints): New function.
14027 (thumb2_record_ld_word): New function.
14028 (thumb2_record_lmul_lmla_div): New function.
14029 (thumb2_record_decode_insn_handler): New function.
14030 (decode_insn): Add thumb32 instruction handlers.
14032 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14034 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14035 (struct arm_linux_record_tdep): Declare.
14036 (arm_canonicalize_syscall): New function.
14037 (arm_all_but_pc_registers_record): New function.
14038 (arm_linux_syscall_record): New function.
14039 (arm_linux_init_abi): Add syscall recording constructs.
14040 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14041 decoding. (arm_record_coproc_data_proc): Update arm syscall
14043 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14044 <arm_syscall_record>: New field.
14045 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14048 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14050 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14051 register for push instruction recording.
14053 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14055 * arm-tdep.c (thumb_record_misc): Update to correct logical
14056 error while recording ldm, ldmia and pop instructions.
14058 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14060 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14062 2014-01-15 Pedro Alves <palves@redhat.com>
14064 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14065 (go32_resume, go32_fetch_registers, store_register)
14066 (go32_store_registers, go32_prepare_to_store)
14067 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14068 (go32_create_inferior, go32_can_run, go32_terminal_init)
14069 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14072 2014-01-15 Tom Tromey <tromey@redhat.com>
14074 * target.h (async_callback_ftype): New typedef.
14075 (struct target_ops) <to_async>: Use it.
14077 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14079 * python/py-value.c (get_field_type): Remove unnecessary curly
14080 braces for single-statement if block.
14082 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14084 * python/py-type.c (convert_field): Add missing empty line
14085 after declarations.
14087 2014-01-14 Doug Evans <dje@google.com>
14089 * symfile.h (expand_symtabs_matching): Renamed from
14090 expand_partial_symbol_names. Update prototype.
14091 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14092 * symfile.c (expand_symtabs_matching): Renamed from
14093 expand_partial_symbol_names. New args file_matcher, kind.
14094 Rename arg fun to symbol_matcher.
14095 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14096 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14097 ada_expand_partial_symbol_name.
14098 (ada_make_symbol_completion_list): Update to call
14099 expand_symtabs_matching.
14100 (ada_add_global_exceptions): Call expand_symtabs_matching.
14101 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14102 call map_symbol_filenames.
14103 * symtab.c (sources_info): Update to call map_symbol_filenames.
14104 (search_symbols): Call expand_symtabs_matching.
14105 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14106 (default_make_symbol_completion_list_break_on): Update to call
14107 expand_symtabs_matching.
14108 (make_source_files_completion_list): Update to call
14109 map_symbol_filenames.
14111 2014-01-14 Doug Evans <dje@google.com>
14113 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14114 (expand_symtabs_symbol_matcher_ftype): New typedef.
14115 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14116 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14117 * symfile.c (expand_partial_symbol_names): Update to use
14118 expand_symtabs_symbol_matcher_ftype.
14119 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14120 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14121 Arg name_matcher renamed to symbol_matcher.
14122 * psymtab.c (recursively_search_psymtabs): Update to use
14123 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14125 (expand_symtabs_matching_via_partial): Update to use
14126 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14127 Arg name_matcher renamed to symbol_matcher.
14129 2014-01-14 Doug Evans <dje@google.com>
14131 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14132 (map_partial_symbol_filenames): Ditto.
14133 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14134 (map_partial_symbol_filenames): Ditto.
14135 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14136 (map_partial_symbol_filenames): Ditto.
14137 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14138 (map_partial_symbol_filenames): Ditto.
14139 * symtab.c: Delete #include "psymtab.h".
14141 2014-01-14 Pedro Alves <palves@redhat.com>
14142 Tom Tromey <tromey@redhat.com>
14144 * infrun.c (use_displaced_stepping): Use find_record_target
14145 instead of RECORD_IS_USED.
14146 (adjust_pc_after_break): Use record_full_is_used instead of
14148 * record-btrace.c (record_btrace_open): Call record_preopen
14149 instead of checking RECORD_IS_USED.
14150 * record-full.c (record_full_shortname)
14151 (record_full_core_shortname): New globals.
14152 (record_full_is_used): New function.
14153 (find_full_open): Call record_preopen instead of checking
14155 (init_record_full_ops): Set the target's shortname to
14156 record_full_shortname.
14157 (init_record_full_core_ops): Set the target's shortname to
14158 record_full_core_shortname.
14159 * record-full.h (record_full_is_used): Declare.
14160 * record.c (find_record_target): Make extern.
14161 (record_preopen): New function.
14162 * record.h (RECORD_IS_USED): Delete macro.
14163 (find_record_target, record_preopen): Declare functions.
14165 2014-01-14 Yao Qi <yao@codesourcery.com>
14167 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14168 'len''s type to ULONGEST.
14169 (core_xfer_shared_libraries_aix): Likewise.
14170 * gdbarch.c, gdbarch.h: Regenerated.
14171 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14172 Change type of 'len' to ULONGEST.
14173 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14174 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14176 2014-01-14 Yao Qi <yao@codesourcery.com>
14178 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14179 type of 'len' to ULONGEST.
14180 (linux_xfer_osdata_processgroups): Likewise.
14181 (linux_xfer_osdata_threads): Likewise.
14182 (linux_xfer_osdata_fds): Likewise.
14183 (linux_xfer_osdata_isockets): Likewise.
14184 (linux_xfer_osdata_shm): Likewise.
14185 (linux_xfer_osdata_sem): Likewise.
14186 (linux_xfer_osdata_msg): Likewise.
14187 (linux_common_xfer_osdata): Likewise.
14188 (struct osdata_type) <getter>: Likewise.
14189 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14192 2014-01-14 Yao Qi <yao@codesourcery.com>
14194 * target.h (target_xfer_partial_ftype): Update.
14195 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14197 * aix-thread.c (aix_thread_xfer_partial): Change type of
14198 argument 'len' to ULONGEST.
14199 * auxv.c (procfs_xfer_auxv): Likewise.
14200 (ld_so_xfer_auxv): Likewise.
14201 (memory_xfer_auxv): Likewise.
14202 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14203 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14204 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14205 * corelow.c (core_xfer_partial): Likewise.
14206 * ctf.c (ctf_xfer_partial): Likewise.
14207 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14209 (darwin_read_dyld_info): Likewise.
14210 (darwin_xfer_partial): Likewise.
14211 * exec.c (section_table_xfer_memory_partial): Likewise.
14212 (exec_xfer_partial): Likewise.
14213 * exec.h (section_table_xfer_memory_partial): Update
14215 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14216 instead of plongest.
14217 (gnu_xfer_partial): Likewise.
14218 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14219 (ia64_hpux_xfer_solib_got): Likewise.
14220 (ia64_hpux_xfer_partial): Likewise.
14221 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14222 * inf-ptrace.c (inf_ptrace_xfer_partial):
14223 * inf-ttrace.c (inf_ttrace_xfer_partial):
14224 * linux-nat.c (linux_xfer_siginfo): Likewise.
14225 (linux_nat_xfer_partial): Likewise.
14226 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14227 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14228 * monitor.c (monitor_xfer_memory): Likewise.
14229 (monitor_xfer_partial): Likewise.
14230 * procfs.c (procfs_xfer_partial): Likewise.
14231 * record-full.c (record_full_xfer_partial): Likewise.
14232 (record_full_core_xfer_partial): Likewise.
14233 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14234 instead of plongest.
14235 (gdbsim_xfer_partial): Likewise.
14236 * remote.c (remote_xfer_partial): Likewise.
14237 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14238 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14240 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14241 (rs6000_xfer_shared_libraries): Likewise.
14242 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14243 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14244 (sparc_xfer_partial): Likewise.
14245 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14246 (spu_xfer_partial): Likewise.
14247 * spu-multiarch.c (spu_xfer_partial): Likewise.
14248 * target.c (target_read_live_memory): Likewise.
14249 (memory_xfer_live_readonly_partial): Likewise.
14250 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14251 (target_xfer_partial, default_xfer_partial): Likewise.
14252 (current_xfer_partial): Likewise.
14253 * tracepoint.c (tfile_xfer_partial): Likewise.
14254 * windows-nat.c (windows_xfer_memory): Likewise. Call
14255 pulongest instead of plongest.
14256 (windows_xfer_partial): Likewise.
14257 (windows_xfer_shared_libraries): Likewise.
14259 2014-01-14 Yao Qi <yao@codesourcery.com>
14261 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14262 target_xfer_partial_ftype.
14264 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14268 * valops.c (value_struct_elt_bitpos): New function
14269 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14270 object to 'None' if the field name is an empty string ("").
14271 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14272 attribute to look for a field when 'name' is 'None'.
14273 (get_field_type): New function
14275 2014-01-13 Doug Evans <dje@google.com>
14278 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14279 (try_open_dwop_file): Ditto.
14280 * gdb_bfd.c: #include "vec.h".
14281 (bfdp): New typedef.
14282 (struct gdb_bfd_data): New member included_bfds.
14283 (gdb_bfd_unref): Unref all included bfds.
14284 (gdb_bfd_record_inclusion): New function.
14285 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14287 2014-01-13 Tom Tromey <tromey@redhat.com>
14289 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14291 2014-01-13 Tom Tromey <tromey@redhat.com>
14293 * defs.h (use_windows): Remove.
14294 * gdb.c (main): Update.
14295 * main.c (captured_main, gdb_main): Update.
14296 * main.h (struct captured_main_args) <use_windows>: Remove.
14297 * top.c (use_windows): Remove.
14299 2014-01-13 Tom Tromey <tromey@redhat.com>
14301 * defs.h (deprecated_flush_hook): Remove.
14303 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14306 * linux-thread-db.c (try_thread_db_load): Add parameter
14307 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14308 (try_thread_db_load_from_pdir_1): Move it there from here.
14309 (try_thread_db_load_from_sdir): Update caller.
14310 (try_thread_db_load_from_dir): Move it there from here.
14312 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14314 * regformats/regdat.sh: Always rewrite the register file.
14316 2014-01-13 Pedro Alves <palves@redhat.com>
14318 * Makefile.in (CHECK_HEADERS): New variable.
14319 (check-headers:): New rule.
14321 2014-01-13 Tom Tromey <tromey@redhat.com>
14323 * cli/cli-setshow.c (do_set_command): Update.
14324 * defs.h (deprecated_set_hook): Remove.
14325 * top.c (deprecated_set_hook): Remove.
14327 2014-01-13 Pedro Alves <palves@redhat.com>
14329 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14330 the tracepoint if the PC is a pseudo-register.
14332 2014-01-13 Tom Tromey <tromey@redhat.com>
14334 * defs.h (XCALLOC): Remove.
14335 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14336 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14337 * dwarf2loc.c (allocate_piece_closure): Likewise.
14338 * elfread.c (elf_symfile_segments): Likewise.
14339 (elf_symfile_segments): Likewise.
14340 * gdbtypes.c (copy_type_recursive): Likewise.
14341 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14342 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14343 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14345 * mt-tdep.c (mt_gdbarch_init): Likewise.
14346 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14348 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14349 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14350 * registry.c (registry_alloc_data): Likewise.
14351 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14352 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14353 * serial.c (serial_fdopen_ops): Likewise.
14354 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14356 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14357 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14360 2014-01-13 Tom Tromey <tromey@redhat.com>
14362 * defs.h (XMALLOC): Remove.
14363 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14364 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14365 * cli-out.c (struct ui_out *): Likewise.
14366 * cli/cli-dump.c (add_dump_command): Likewise.
14367 (add_dump_command): Likewise.
14368 * complaints.c (get_complaints): Likewise.
14369 (find_complaint): Likewise.
14370 * dwarf2-frame.c (execute_cfa_program): Likewise.
14371 * dwarf2read.c (abbrev_table_read_table): Likewise.
14372 * gdbarch.sh: Likewise.
14373 * gdbarch.c: Rebuild.
14374 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14375 * interps.c (interp_new): Likewise.
14376 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14377 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14378 * mi/mi-console.c (mi_console_file_new): Likewise.
14379 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14380 * mi/mi-out.c (mi_out_new): Likewise.
14381 * mi/mi-parse.c (mi_parse): Likewise.
14382 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14383 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14384 * observer.c (xalloc_observer_list_node): Likewise.
14385 * regcache.c (regcache_xmalloc_1): Likewise.
14386 * reggroups.c (reggroup_new): Likewise.
14387 (_initialize_reggroup): Likewise.
14388 * registry.c (register_data_with_cleanup): Likewise.
14389 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14390 * ser-base.c (serial_ttystate): Likewise.
14391 * ser-mingw.c (make_pipe_state): Likewise.
14392 * ser-pipe.c (pipe_open): Likewise.
14393 * serial.c (serial_open): Likewise.
14394 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14395 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14396 (tui_alloc_win_info): Likewise.
14397 (tui_add_content_elements): Likewise.
14398 * tui/tui-file.c (tui_file_new): Likewise.
14399 * tui/tui-out.c (tui_out_new): Likewise.
14400 * ui-file.c (mem_file_new): Likewise.
14401 * ui-out.c (push_level): Likewise.
14402 (make_cleanup_ui_out_end): Likewise.
14403 (append_header_to_list): Likewise.
14404 (ui_out_new): Likewise.
14405 * user-regs.c (user_reg_add_builtin): Likewise.
14407 2014-01-13 Tom Tromey <tromey@redhat.com>
14409 * defs.h (XZALLOC): Remove.
14410 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14411 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14412 (get_ada_tasks_inferior_data): Likewise.
14413 * auto-load.c (get_auto_load_pspace_data): Likewise.
14414 * auxv.c (get_auxv_inferior_data): Likewise.
14415 * bfd-target.c (target_bfd_reopen): Likewise.
14416 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14417 (deprecated_insert_raw_breakpoint): Likewise.
14418 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14419 * corelow.c (core_open): Likewise.
14420 * darwin-nat.c (darwin_check_new_threads): Likewise.
14421 (darwin_attach_pid): Likewise.
14422 * dummy-frame.c (dummy_frame_push): Likewise.
14423 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14424 * dwarf2loc.c (allocate_piece_closure): Likewise.
14425 * elfread.c (elf_symfile_segments): Likewise.
14426 * eval.c (ptrmath_type_p): Likewise.
14427 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14428 * gdbtypes.c (alloc_type_arch): Likewise.
14429 (alloc_type_instance): Likewise.
14430 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14431 * inf-child.c (inf_child_can_use_agent): Likewise.
14432 * inflow.c (get_inflow_inferior_data): Likewise.
14433 * infrun.c (save_infcall_suspend_state): Likewise.
14434 * jit.c (jit_reader_load): Likewise.
14435 (get_jit_objfile_data): Likewise.
14436 (get_jit_program_space_data): Likewise.
14437 (jit_object_open_impl): Likewise.
14438 (jit_symtab_open_impl): Likewise.
14439 (jit_block_open_impl): Likewise.
14440 (jit_frame_sniffer): Likewise.
14441 * linux-fork.c (add_fork): Likewise.
14442 * maint.c (make_command_stats_cleanup): Likewise.
14443 * objfiles.c (get_objfile_pspace_data): Likewise.
14444 * opencl-lang.c (struct lval_closure): Likewise.
14445 * osdata.c (osdata_start_osdata): Likewise.
14446 * progspace.c (new_address_space): Likewise.
14447 (add_program_space): Likewise.
14448 * remote-sim.c (get_sim_inferior_data): Likewise.
14449 * sh-tdep.c (sh_gdbarch_init): Likewise.
14450 * skip.c (Ignore): Likewise.
14451 (skip_delete_command): Likewise.
14452 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14453 (library_list_start_library): Likewise.
14454 (solib_aix_current_sos): Likewise.
14455 * solib-darwin.c (get_darwin_info): Likewise.
14456 (darwin_current_sos): Likewise.
14457 * solib-dsbt.c (get_dsbt_info): Likewise.
14458 * solib-ia64-hpux.c (new_so_list): Likewise.
14459 (ia64_hpux_get_solib_linkage_addr): Likewise.
14460 * solib-spu.c (append_ocl_sos): Likewise.
14461 (spu_current_sos): Likewise.
14462 * solib-svr4.c (get_svr4_info): Likewise.
14463 (svr4_keep_data_in_core): Likewise.
14464 (library_list_start_library): Likewise.
14465 (svr4_default_sos): Likewise.
14466 (svr4_read_so_list): Likewise.
14467 * solib-target.c (library_list_start_library): Likewise.
14468 (solib_target_current_sos): Likewise.
14469 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14470 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14471 * symfile.c (default_symfile_segments): Likewise.
14472 * target-descriptions.c (tdesc_data_init): Likewise.
14473 (tdesc_create_reg): Likewise.
14474 (struct tdesc_type *): Likewise.
14475 (tdesc_create_vector): Likewise.
14476 (tdesc_set_struct_size): Likewise.
14477 (struct tdesc_type *): Likewise.
14478 (tdesc_free_feature): Likewise.
14479 (tdesc_create_feature): Likewise.
14480 * windows-nat.c (windows_add_thread): Likewise.
14481 (windows_make_so): Likewise.
14482 * xml-support.c (gdb_xml_body_text): Likewise.
14483 (gdb_xml_create_parser_and_cleanup): Likewise.
14484 (xml_process_xincludes): Likewise.
14485 * xml-syscall.c (allocate_syscalls_info): Likewise.
14486 (syscall_create_syscall_desc): Likewise.
14488 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14490 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14491 function, with code from i386_stap_parse_special_token.
14492 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14493 (i386_stap_parse_special_token): Move code to the two functions
14494 above; simplify it.
14496 2014-01-09 Pedro Alves <palves@redhat.com>
14497 Hui Zhu <hui@codesourcery.com>
14500 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14501 bp_err_string. Don't mark the location shlib_disabled if the
14502 error thrown wasn't a generic or memory error. Catch errors
14503 thrown while inserting breakpoints in overlayed code. Output
14504 error message of software breakpoints.
14505 * remote.c (remote_insert_breakpoint): If this breakpoint has
14506 target-side commands but this stub doesn't support Z0 packets,
14507 throw NOT_SUPPORTED_ERROR error.
14508 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14509 * target.h (target_insert_breakpoint): Extend comment.
14510 (target_insert_hw_breakpoint): Add comment.
14512 2014-01-08 Pedro Alves <palves@redhat.com>
14514 * remote.c (remote_add_thread): Add threads silently if starting
14516 (remote_notice_new_inferior): If in all-stop, and starting up,
14517 don't call notice_new_inferior.
14518 (get_current_thread): New function, factored out from ...
14519 (add_current_inferior_and_thread): ... this. Adjust.
14520 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14521 found any thread, then select the remote's current thread as GDB's
14522 current thread too.
14524 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14526 * NEWS: Create a new section for the next release branch.
14527 Rename the section of the current branch, now that it has
14530 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14532 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14533 * version.in: Bump version to 7.7.50.DATE-cvs.
14535 2014-01-08 Yao Qi <yao@codesourcery.com>
14537 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14538 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14539 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14541 2014-01-08 Yao Qi <yao@codesourcery.com>
14543 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14544 return value of bfd_get_filename to symbol_file_add_from_bfd.
14546 2014-01-08 Pierre Muller <muller@sourceware.org>
14549 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14550 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14551 to prim_record_mininal_symbol_and_info.
14552 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14553 in call to prim_record_minimal_symbol_and_info.
14554 (read_pe_exported_syms): Set index field of section_data.
14556 2014-01-07 Andrew Pinski <apinski@cavium.com>
14558 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14559 * features/aarch64.c: Regenerate.
14561 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14563 * target.c (return_null): Define.
14564 (update_current_target): Use it instead of return_zero for
14565 functions that return a pointer.
14567 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14569 * source.c (add_path): Fix check for duplicated paths in the previously
14572 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14574 * ada-lang.c: Remove duplicated include statements.
14575 * alphabsd-nat.c: Ditto.
14576 * amd64-darwin-tdep.c: Ditto.
14577 * amd64fbsd-nat.c: Ditto.
14578 * auto-load.c: Ditto.
14580 * breakpoint.c: Ditto.
14581 * dbxread.c: Ditto.
14582 * fork-child.c: Ditto.
14583 * gdb_usleep.c: Ditto.
14584 * i386-darwin-tdep.c: Ditto.
14585 * i386fbsd-nat.c: Ditto.
14587 * inferior.c: Ditto.
14588 * jv-lang.c: Ditto.
14589 * linux-nat.c: Ditto.
14590 * linux-tdep.c: Ditto.
14591 * m68kbsd-nat.c: Ditto.
14592 * m68klinux-nat.c: Ditto.
14593 * microblaze-tdep.c: Ditto.
14594 * mips-linux-tdep.c: Ditto.
14595 * mn10300-tdep.c: Ditto.
14596 * nto-tdep.c: Ditto.
14597 * opencl-lang.c: Ditto.
14599 * printcmd.c: Ditto.
14600 * regcache.c: Ditto.
14601 * remote-m32r-sdi.c: Ditto.
14603 * symfile.c: Ditto.
14605 * tilegx-linux-nat.c: Ditto.
14606 * tilegx-tdep.c: Ditto.
14607 * tracepoint.c: Ditto.
14609 * vaxbsd-nat.c: Ditto.
14610 * windows-nat.c: Ditto.
14611 * xtensa-tdep.c: Ditto.
14613 2014-01-07 Yao Qi <yao@codesourcery.com>
14615 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14617 2014-01-07 Yao Qi <yao@codesourcery.com>
14618 Joel Brobecker <brobecker@adacore.com>
14620 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14621 (pdc_write_regs): Likewise.
14622 (fetch_regs_kernel_thread): Likewise.
14623 (store_regs_kernel_thread): Likewise.
14625 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14627 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14628 tagged type objects to their actual type.
14630 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14632 * ada-valprint.c (print_field_values): Add "language" parameter.
14633 Update calls to print_field_values and print_variant_part.
14634 Pass new parameter "language" in call to val_print instead
14635 of "current_language". Replace call to ada_val_print by call
14637 (print_variant_part): Add "language" parameter.
14638 (ada_val_print_struct_union): Update call to print_field_values.
14640 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14642 * ada-valprint.c (ui_memcpy): Delete.
14643 (ada_print_floating): Update documentation. Add empty line
14644 between between function documentation and implementation.
14645 Delete variable "buffer". Use ui_file_xstrdup in place of
14646 ui_file_put. Minor adjustments following this change.
14648 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14650 * ada-valprint.c (ada_val_print_string): New function,
14651 extracted from ada_val_print_array.
14652 (ada_val_print_array): Replace extracted code by call
14653 to ada_val_print_string followed by a return. Move
14654 "else" branch to the function's top block.
14656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14658 * ada-valprint.c (ada_val_print_array): Move implementation
14659 down. Rename parameter "offset" and "val" into "offset_aligned"
14660 and "original_value" respectively. Add parameter "offset".
14662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14664 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14665 re-organizing the code. Change the "???" message printed
14666 when target type is a TYPE_CODE_UNDEF into
14667 "<ref to undefined type>".
14669 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14671 * ada-valprint.c (print_record): Delete, implementation inlined...
14672 (ada_val_print_struct_union): ... here. Remove call to
14673 ada_check_typedef in inlined implementation.
14675 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14677 * ada-valprint.c (ada_val_print_gnat_array): New function,
14678 extracted from ada_val_print_1;
14679 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14680 (ada_val_print_flt, ada_val_print_struct_union)
14681 (ada_val_print_ref): Likewise.
14682 (ada_val_print_1): Delete variables i and elttype.
14683 Replace extracted-out code by call to corresponding
14686 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14688 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14692 * ada-valprint.c (ada_val_print_1): Replace calls to
14693 ada_val_print_1 by calls to val_print.
14695 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14697 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14698 Update calls to self accordingly. Replace calls to c_val_print
14699 by calls to val_print.
14701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14703 * ada-valprint.c (print_record): Delete declaration.
14704 (adjust_type_signedness, ada_val_print_1): Likewise.
14705 (ada_val_print): Move function implementation down.
14706 (print_variant_part, print_field_values, print_record):
14707 Move function implementation up.
14709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14711 * python/py-type.c (typy_get_name): New function.
14712 (type_object_getset): Add entry for attribute "name".
14713 * NEWS: Add entry mentioning this new attribute.
14715 2014-01-07 Yao Qi <yao@codesourcery.com>
14717 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14720 2014-01-07 Yao Qi <yao@codesourcery.com>
14722 * gnu-nat.c (info_port_rights): Add qualifier const to
14725 2014-01-07 Yao Qi <yao@codesourcery.com>
14727 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14729 2014-01-07 Yao Qi <yao@codesourcery.com>
14731 * gnu-nat.c (make_inf) Update declaration.
14732 (make_inf): Make it static.
14733 (inf_set_traced): Likewise.
14734 (inf_port_to_thread, inf_task_died_status): Likewise.
14736 2014-01-07 Yao Qi <yao@codesourcery.com>
14738 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14740 2014-01-07 Yao Qi <yao@codesourcery.com>
14742 * gnu-nat.c (_initialize_gnu_nat): Declare.
14744 2014-01-07 Yao Qi <yao@codesourcery.com>
14746 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14748 (struct gdbarch_info) <byte_order>: Change type to
14750 <byte_order_for_code>: Likewise.
14751 * gdbarch.c, gdbarch.h: Regenerated.
14753 2014-01-06 Sasha Smundak <asmundak@google.com>
14755 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14757 2014-01-06 Tom Tromey <tromey@redhat.com>
14759 * doublest.c (convert_doublest_to_floatformat): Use const, not
14761 * somread.c (som_symtab_read): Likewise.
14763 2014-01-07 Hui Zhu <hui@codesourcery.com>
14765 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14766 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14767 (gdb_bfd_fopen): Ditto.
14768 (gdb_bfd_openr): Ditto.
14769 (gdb_bfd_openw): Ditto.
14770 (gdb_bfd_openr_iovec): Ditto.
14771 (gdb_bfd_fdopenr): Ditto.
14772 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14773 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14775 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14777 * symfile-mem.c (symbol_file_add_from_memory): Removed
14778 gdb_bfd_stash_filename.
14780 2014-01-03 Doug Evans <dje@google.com>
14782 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14785 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14787 Update year range in copyright notice of all files.
14789 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14791 * top.c (print_gdb_version): Set copyright year to 2014.
14793 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14795 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14797 For older changes see ChangeLog-2013.
14803 version-control: never