1 2014-11-06 Doug Evans <xdje42@gmail.com>
3 * symtab.h (lookup_global_symbol): Improve function comment.
5 2014-11-06 Doug Evans <xdje42@gmail.com>
7 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
9 * symtab.h (lookup_global_symbol): Update decl.
10 (lookup_static_symbol): Move decl to better location.
12 2014-11-06 Doug Evans <xdje42@gmail.com>
14 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
16 2014-11-06 Doug Evans <xdje42@gmail.com>
18 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
20 (lookup_symbol_in_all_objfiles): Renamed from
21 lookup_symbol_aux_symtabs. All callers updated.
22 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
24 (lookup_symbol_in_objfile_symtabs): Renamed from
25 lookup_symbol_aux_objfile. All callers updated.
27 2014-11-06 Doug Evans <xdje42@gmail.com>
29 * symtab.c (lookup_symbol_in_block): Renamed from
30 lookup_symbol_aux_block. All callers updated.
32 2014-11-06 Doug Evans <xdje42@gmail.com>
34 * symtab.c (lookup_static_symbol): Renamed from
35 lookup_static_symbol_aux. All callers updated.
36 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
39 2014-11-06 Doug Evans <xdje42@gmail.com>
41 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
42 * block.c (block_lookup_symbol): Use it.
43 * cp-support.c (make_symbol_overload_list_block): Use it.
44 * symtab.c (iterate_over_symbols): Use it.
46 2014-11-06 Doug Evans <xdje42@gmail.com>
48 * symtab.c (lookup_block_symbol): Moved to ...
49 * block.c (block_lookup_symbol): ... here and renamed.
51 * block.h (block_lookup_symbol): Declare.
52 * symtab.h (lookup_block_symbol): Delete.
54 2014-11-06 Doug Evans <xdje42@gmail.com>
56 * ada-lang.c (ada_make_symbol_completion_list): Use
57 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
58 * symtab.c (lookup_objfile_from_block): Ditto.
60 2014-11-06 Doug Evans <xdje42@gmail.com>
62 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
65 2014-11-06 Doug Evans <xdje42@gmail.com>
67 * objfiles.c (get_objfile_arch): Constify.
68 * objfiles.h (get_objfile_arch): Update prototype.
69 * solib.c (solib_global_lookup): Fetch arch from objfile,
72 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
74 * nios2-tdep.c (wild_insn): Delete.
75 (profiler_insn, irqentry_insn): Delete.
76 (nios2_match_sequence): Delete.
77 (nios2_analyze_prologue): Update comments. Remove matching
78 of obsolete profiler_insn and irqentry_insn sequences.
80 2014-11-05 Alan Modra <amodra@gmail.com>
82 * charset.c (convert_between_encodings): Shrink obstack using
84 * minsyms.c (install_minimal_symbols): Likewise.
85 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
86 to char* before doing pointer arithmetic.
88 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
90 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
92 2014-11-04 Pedro Alves <palves@redhat.com>
94 * breakpoint.c (breakpoint_thread_match): Delete function.
95 * breakpoint.h (breakpoint_thread_match): Delete declaration.
97 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
100 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
101 the method args also under EVAL_SKIP when evaluating method
102 calls under EVAL_SKIP.
104 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
106 * dwarf2loc.c (read_pieced_value): Do big endian
107 processing only if gdb_regnum is not -1.
108 (write_pieced_value): Ditto.
110 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
112 * arm-linux-tdep.c (arm_linux_init_abi): Use
113 info.byte_order_for_code to choose endianity of breakpoint
114 instructions snippets.
116 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
118 * arm-tdep.c (extract_arm_insn): Use
119 gdbarch_byte_order_for_code to read arm instruction.
121 2014-11-02 Doug Evans <xdje42@gmail.com>
123 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
125 2014-11-02 Doug Evans <xdje42@gmail.com>
127 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
128 main_subfile before returning.
130 2014-10-31 Doug Evans <xdje42@gmail.com>
132 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
133 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
135 2014-10-31 Doug Evans <xdje42@gmail.com>
137 * valops.c (value_cast_pointers): Fix whitespace.
138 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
141 2014-10-30 Doug Evans <dje@google.com>
143 * NEWS: Mention ability add attributes to gdb.Objfile and
144 gdb.Progspace objects.
145 * python/py-objfile.c (objfile_object): New member dict.
146 (objfpy_dealloc): Py_XDECREF dict.
147 (objfpy_initialize): Initialize dict.
148 (objfile_getset): Add __dict__.
149 (objfile_object_type): Set tp_dictoffset member.
150 * python/py-progspace.c (progspace_object): New member dict.
151 (pspy_dealloc): Py_XDECREF dict.
152 (pspy_initialize): Initialize dict.
153 (pspace_getset): Add __dict__.
154 (pspace_object_type): Set tp_dictoffset member.
156 2014-10-30 Yao Qi <yao@codesourcery.com>
158 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
159 replace '\\' with '\\\\'.
161 2014-10-29 Joel Brobecker <brobecker@adacore.com>
165 2014-10-29 Pedro Alves <palves@redhat.com>
168 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
169 instead of assuming a thread with a stepping range is always
172 2014-10-29 Pedro Alves <palves@redhat.com>
175 * event-top.c (change_line_handler): Call
176 gdb_rl_callback_handler_remove instead of
177 rl_callback_handler_remove.
178 (callback_handler_installed): New global.
179 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
180 (gdb_rl_callback_handler_reinstall): New functions.
181 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
182 gdb_rl_callback_handler_install instead of
183 rl_callback_handler_remove and rl_callback_handler_install.
184 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
185 instead of rl_callback_handler_remove.
186 * event-top.h (gdb_rl_callback_handler_remove)
187 (gdb_rl_callback_handler_install)
188 (gdb_rl_callback_handler_reinstall): New declarations.
189 * infrun.c (reinstall_readline_callback_handler_cleanup): New
191 (fetch_inferior_event): Install it.
192 * top.c (gdb_readline_wrapper_line) Call
193 gdb_rl_callback_handler_remove instead of
194 rl_callback_handler_remove.
195 (gdb_readline_wrapper_cleanup): Don't call
196 rl_callback_handler_install.
198 2014-10-29 Pedro Alves <palves@redhat.com>
200 * event-top.c (command_line_handler): Clear the first byte of
201 linebuffer, when it is first allocated.
203 2014-10-29 Pedro Alves <palves@redhat.com>
205 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
208 2014-10-29 Pedro Alves <palves@redhat.com>
212 * tui/tui-interp.c (tui_is_toplevel): Delete global.
213 (tui_allowed_p): Delete function.
214 * tui/tui.c: Include "interps.h".
215 (tui_enable): Don't use tui_allowed_p. Error out here with
216 detailed error messages if the TUI is the top level interpreter,
217 or if output is not a terminal. Use newterm instead of initscr,
218 and error out if initializing the terminal fails. Also error out if
219 the terminal doesn't support cursor addressing.
220 * tui/tui.h (tui_allowed_p): Delete declaration.
222 2014-10-29 Joel Brobecker <brobecker@adacore.com>
224 * arm-tdep.c (arm_skip_stack_protector): Return early if
225 address loaded by first "ldr" instruction does not have
226 a corresponding minimal symbol. Update comment.
228 2014-10-29 Yao Qi <yao@codesourcery.com>
230 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
231 loaded address correctly of ldr instruction.
233 2014-10-28 Pedro Alves <palves@redhat.com>
236 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
238 * infrun.c (resume) <stepping breakpoint instruction>: Set the
239 thread's stepped_breakpoint field. Skip if reverse debugging.
241 (init_thread_stepping_state, handle_signal_stop): Clear the
242 thread's stepped_breakpoint field.
244 2014-10-27 Pedro Alves <palves@redhat.com>
246 * remote.c (remote_thread_alive): New, factored out from ...
247 (remote_thread_alive): ... this.
248 (remote_update_thread_list): Bail out before deleting threads if
249 the target returned an empty list, and, the current thread has a
252 2014-10-27 Pedro Alves <palves@redhat.com>
254 * infrun.c (handle_signal_stop): Also skip handlers when a random
255 signal arrives while handling a "stepi" or a "nexti". Set the
256 thread's 'step_after_step_resume_breakpoint' flag.
258 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
260 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
261 (arm_record_ld_st_imm_offset): Reimplement to cover all
262 load/store cases for ARM opcode 010.
263 (arm_record_ld_st_multiple): Reimplement to cover all
264 load/store cases for ARM opcode 100.
266 2014-10-26 Doug Evans <xdje42@gmail.com>
268 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
270 2014-10-26 Doug Evans <xdje42@gmail.com>
272 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
273 parameter "kind" to "block_index".
274 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
276 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
278 2014-10-26 Doug Evans <xdje42@gmail.com>
280 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
282 2014-10-26 Doug Evans <xdje42@gmail.com>
284 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
287 2014-10-26 Doug Evans <xdje42@gmail.com>
289 * parser-defs.h (block_found): Move decl from here ...
290 * symtab.h (block_found): ... to here.
292 2014-10-26 Doug Evans <xdje42@gmail.com>
294 * symtab.h (struct field_of_this_result): Fix typo in comment.
295 (lookup_symbol_in_language): Move function comment here.
296 (lookup_symbol): Improve function comment.
297 (basic_lookup_symbol_nonlocal): Ditto.
298 (lookup_symbol_static, lookup_symbol_global): Ditto.
299 (lookup_symbol_aux_block): Ditto.
300 (lookup_language_this): Add function comment.
301 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
303 (lookup_block_symbol): Improve function comment.
304 (lookup_struct): Fix capitalization in function comment.
305 (lookup_transparent_type): Add function comment.
306 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
307 Improve function comment.
308 (lookup_objfile_from_block): Add function comment.
309 * symtab.c (lookup_symbol_in_language): Update function comment.
310 (lookup_symbol, lookup_language_this): Ditto.
311 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
312 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
313 (basic_lookup_symbol_nonlocal): Ditto.
314 (lookup_symbol_static, lookup_symbol_global): Ditto.
315 (lookup_transparent_type, lookup_block_symbol): Ditto.
317 2014-10-25 Doug Evans <xdje42@gmail.com>
319 * symtab.c (types_info): Delete forward decl.
320 (functions_info, variables_info, sources_info): Ditto.
321 (_initialize_symtab): Rewrite forward decl to use
322 initialize_file_ftype.
324 2014-10-25 Doug Evans <xdje42@gmail.com>
326 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
328 2014-10-25 Doug Evans <xdje42@gmail.com>
330 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
331 of local var child_die.
333 2014-10-24 Don Breazeal <donb@codesourcery.com>
335 * infrun.c (follow_fork_inferior): Update fork message printing
336 to use target_terminal_ours_for_output instead of
337 target_terminal_ours, to use _() for all format strings, to print
338 "vfork" instead of "fork" for vforks, and to add a detach message.
339 (handle_vfork_child_exec_or_exit): Update message printing to use
340 target_terminal_ours_for_output instead of target_terminal_ours, to
341 use _() for all format strings, and to fix some formatting.
343 2014-10-24 Pedro Alves <palves@redhat.com>
345 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
346 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
347 * config/vax/vax.mh: Delete.
348 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
349 obsolete configurations section.
350 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
351 * vax-nat.c: Delete file.
353 2014-10-24 Pedro Alves <palves@redhat.com>
355 * NEWS (Removed targets): Add OS/arch column.
357 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
359 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
360 on the arg type of a constructor only if it is of reference type.
362 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
364 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
365 accessors and constants from nios2 opcodes update.
366 (nios2_get_next_pc): Likewise.
368 2014-10-19 Doug Evans <xdje42@gmail.com>
370 * gdbthread.h (set_running): Fix comment.
371 (set_executing, finish_thread_state): Fix comment.
373 2014-10-18 Doug Evans <xdje42@gmail.com>
375 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
377 2014-10-17 Doug Evans <dje@google.com>
379 * NEWS: Mention new event gdb.clear_objfiles.
380 * python/py-event.h (emit_clear_objfiles_event): Clear
381 * python/py-events.h (events_object): New member clear_objfiles.
382 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
384 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
385 emit clear_objfiles event.
386 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
388 (emit_clear_objfiles_event): New function.
389 (clear_objfiles): New event.
390 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
392 * python/python.c (_initialize_python): Call
393 gdbpy_initialize_clear_objfiles_event.
395 2014-10-17 Doug Evans <dje@google.com>
397 * NEWS: Mention new gdb.Objfile.progspace attribute.
398 * python/py-objfile.c (objfpy_get_progspace): New function.
399 (objfile_getset): New entry for "progspace".
401 2014-10-17 Pedro Alves <palves@redhat.com>
404 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
405 returns a copy of the input.
406 (run_command_1, continue_command, step_1, jump_command)
407 (signal_command, until_command, advance_command, finish_command)
408 (attach_command): Adjust and install a cleanup to free the
411 2014-10-17 Pedro Alves <palves@redhat.com>
414 * infcmd.c (continue_1): If continuing all threads in the
415 foreground, make sure the inferior's terminal settings are put in
418 2014-10-17 Pedro Alves <palves@redhat.com>
421 * annotate.c (annotate_breakpoints_invalid): Use
422 target_terminal_our_for_output instead of target_terminal_ours.
423 Give back the terminal to the target.
424 (annotate_frames_invalid): Likewise.
426 2014-10-17 Pedro Alves <palves@redhat.com>
428 * target.c (enum terminal_state): New enum.
429 (terminal_state): New global.
430 (target_terminal_init): New function.
431 (target_terminal_inferior): Skip if inferior already owns the
433 (target_terminal_ours, target_terminal_ours_for_output): New
435 * target.h (target_terminal_init): Convert to function prototype.
436 (target_terminal_ours_for_output): Convert to function prototype
438 (target_terminal_ours): Convert to function prototype and tweak
440 * windows-nat.c (do_initial_windows_stuff): Call
441 target_terminal_init instead of child_terminal_init_with_pgrp.
443 2014-10-17 Pedro Alves <palves@redhat.com>
445 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
446 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
447 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
449 * NEWS: Mention that support for alpha*-*-osf* has been removed.
450 * ada-lang.h [__alpha__ && __osf__]
451 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
452 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
453 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
455 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
457 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
458 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
459 * configure: Regenerate.
460 * configure.ac: Remove references to osf.
461 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
462 section. Remove all other references to osf.
463 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
464 Remove all other references to osf.
465 * dec-thread.c: Delete file.
466 * defs.h (GDB_OSABI_OSF1): Delete.
467 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
469 * osabi.c (gdb_osabi_names): Delete "OSF/1".
470 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
472 (unconditionally_kill_inferior)
473 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
474 * solib-osf.c: Delete file.
476 2014-10-17 Pedro Alves <palves@redhat.com>
478 * remote.c (clear_threads_listing_context): Move higher up, out of
479 the HAVE_LIBEXPAT guard.
481 2014-10-16 Tristan Gingold <gingold@adacore.com>
483 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
484 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
487 2014-10-15 Pedro Alves <palves@redhat.com>
489 * dec-thread.c (dec_thread_count_gdb_threads)
490 (dec_thread_add_gdb_thread): Delete.
491 (dec_thread_update_thread_list): Delete.
492 (dec_thread_find_new_threads): Rename to ...
493 (dec_thread_update_thread_list): ... this. Delete GDB-size
494 threads that are no longer found in dec_thread_list.
495 (resync_thread_list): Delete.
496 (dec_thread_wait): Call dec_thread_update_thread_list instead of
499 2014-10-15 Pedro Alves <palves@redhat.com>
501 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
502 * remote.c (remote_update_thread_list): Skip calling prune_threads
503 if any thread listing method is supported, and instead walk over
504 the set of remote threads listed, deleting those that are not
505 found in GDB's thread list.
507 2014-10-15 Pedro Alves <palves@redhat.com>
509 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
510 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
511 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
512 (bsd_uthread_target): Adjust.
513 * corelow.c (core_open): Adjust.
514 * dec-thread.c (dec_thread_find_new_threads): Update comment.
515 (dec_thread_update_thread_list): New function.
516 (init_dec_thread_ops): Adjust.
517 * gdbthread.h (prune_threads): New declaration.
518 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
519 (thread_db_update_thread_list): ... this. Call prune_threads.
520 (init_thread_db_ops): Adjust.
521 * nto-procfs.c (procfs_find_new_threads): Rename to ...
522 (procfs_update_thread_list): ... this. Call prune_threads.
523 (procfs_attach, procfs_create_inferior, init_procfs_targets):
525 * obsd-nat.c (obsd_find_new_threads): Rename to ...
526 (obsd_update_thread_list): ... this. Call prune_threads.
527 (obsd_add_target): Adjust.
528 * procfs.c (procfs_target): Adjust.
529 (procfs_notice_thread): Update comment.
530 (procfs_find_new_threads): Rename to ...
531 (procfs_update_thread_list): ... this. Call prune_threads.
532 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
534 (ravenscar_wait): Adjust.
535 (ravenscar_find_new_threads): Rename to ...
536 (ravenscar_update_thread_list): ... this. Call prune_threads.
537 (init_ravenscar_thread_ops): Adjust.
538 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
539 (record_btrace_update_thread_list): ... this. Adjust comment.
540 (init_record_btrace_ops): Adjust.
541 * remote.c (remote_threads_info): Rename to ...
542 (remote_update_thread_list): ... this. Call prune_threads.
543 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
545 * sol-thread.c (check_for_thread_db): Adjust.
546 (sol_find_new_threads_callback): Rename to ...
547 (sol_update_thread_list_callback): ... this.
548 (sol_find_new_threads): Rename to ...
549 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
550 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
551 * target-delegates.c: Regenerate.
552 * target.c (target_find_new_threads): Rename to ...
553 (target_update_thread_list): ... this.
554 * target.h (struct target_ops): Rename to_find_new_threads field
555 to to_update_thread_list.
556 (target_find_new_threads): Rename to ...
557 (target_update_thread_list): ... this.
558 * thread.c (prune_threads): Make extern.
559 (update_thread_list): Adjust.
561 2014-10-15 Pedro Alves <palves@redhat.com>
563 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
564 Add describing comment. Return -1 if the qL packet is not
566 (struct thread_item, thread_item_t): Move higher up in
567 the file. Add comments.
568 (struct threads_parsing_context): Move higher up in
569 the file, add comments, and remote to ...
570 (struct threads_listing_context): ... this.
571 (remote_newthread_step): Don't add the thread to GDB's thread
572 database here. Instead push it to the thread_listing_context
574 (remote_find_new_threads): Rename to ...
575 (remote_get_threads_with_ql): ... this. Add target_ops and
576 targets_listing_context parameters. Pass down context.
577 (start_thread): Adjust.
578 (clear_threads_parsing_context): Rename to ...
579 (clear_threads_listing_context): ... this.
580 (remote_get_threads_with_qxfer): New, with parts salvaged from old
582 (remote_get_threads_with_qthreadinfo): Ditto.
583 (remote_threads_info): Reimplement.
585 2014-10-15 Pedro Alves <palves@redhat.com>
587 * infrun.c (resume): Don't force displaced-stepping for all
588 single-steps on software single-stepping archs.
590 2014-10-15 Pedro Alves <palves@redhat.com>
592 * breakpoint.c (single_step_breakpoints): Delete global.
593 (insert_single_step_breakpoint): Adjust to store the breakpoint
594 pointer in the current thread.
595 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
596 (cancel_single_step_breakpoints): Delete functions.
597 (breakpoint_has_location_inserted_here): Make extern.
598 (single_step_breakpoint_inserted_here_p): Adjust to walk the
600 * breakpoint.h (breakpoint_has_location_inserted_here): New
602 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
603 (cancel_single_step_breakpoints): Remove declarations.
604 * gdbthread.h (struct thread_control_state)
605 <single_step_breakpoints>: New field.
606 (delete_single_step_breakpoints)
607 (thread_has_single_step_breakpoints_set)
608 (thread_has_single_step_breakpoint_here): New declarations.
609 * infrun.c (follow_exec): Also clear the single-step breakpoints.
610 (singlestep_breakpoints_inserted_p, singlestep_ptid)
611 (singlestep_pc): Delete globals.
612 (infrun_thread_ptid_changed): Remove references to removed
614 (resume_cleanups): Delete the current thread's single-step
616 (maybe_software_singlestep): Remove references to removed globals.
617 (resume): Adjust to use thread_has_single_step_breakpoints_set and
618 delete_single_step_breakpoints.
619 (init_wait_for_inferior): Remove references to removed globals.
620 (delete_thread_infrun_breakpoints): Delete the thread's
621 single-step breakpoints too.
622 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
623 single-step breakpoints here.
624 (delete_stopped_threads_single_step_breakpoints): New function.
625 (adjust_pc_after_break): Adjust to use
626 thread_has_single_step_breakpoints_set.
627 (handle_inferior_event): Remove references to removed globals.
628 Use delete_stopped_threads_single_step_breakpoints.
629 (handle_signal_stop): Adjust to per-thread single-step
630 breakpoints. Swap test order to do cheaper tests first.
631 (switch_back_to_stepped_thread): Extend debug output. Remove
632 references to removed globals.
633 * record-full.c (record_full_wait_1): Adjust to per-thread
634 single-step breakpoints.
635 * thread.c (delete_single_step_breakpoints)
636 (thread_has_single_step_breakpoints_set)
637 (thread_has_single_step_breakpoint_here): New functions.
638 (clear_thread_inferior_resources): Also delete the thread's
639 single-step breakpoints.
641 2014-10-15 Pedro Alves <palves@redhat.com>
643 * thread.c (delete_thread_breakpoint): New function.
644 (delete_step_resume_breakpoint)
645 (delete_exception_resume_breakpoint): Use it.
646 (delete_at_next_stop): New function.
647 (clear_thread_inferior_resources): Use delete_at_next_stop.
649 2014-10-15 Pedro Alves <palves@redhat.com>
651 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
652 (breakpoint_inserted_here_p): ... here. Remove special case for
653 software single-step breakpoints.
654 (find_non_raw_software_breakpoint_inserted_here): Inline ...
655 (software_breakpoint_inserted_here_p): ... here. Remove special
656 case for software single-step breakpoints.
657 (bp_target_info_copy_insertion_state)
658 (deprecated_insert_raw_breakpoint)
659 (deprecated_remove_raw_breakpoint): Delete functions.
660 * breakpoint.h (deprecated_insert_raw_breakpoint)
661 (deprecated_remove_raw_breakpoint): Remove declarations.
663 2014-10-15 Pedro Alves <palves@redhat.com>
666 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
667 Delete array globals.
668 (single_step_breakpoints): New global.
669 (breakpoint_xfer_memory): Remove special handling for single-step
671 (update_breakpoints_after_exec): Delete bp_single_step
673 (detach_breakpoints): Remove special handling for single-step
675 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
676 (bpstat_stop_status): Add comment.
677 (bpstat_what, bptype_string, print_one_breakpoint_location)
678 (adjust_breakpoint_address, init_bp_location): Handle
680 (new_single_step_breakpoint): New function.
681 (set_momentary_breakpoint, bkpt_remove_location): Remove special
682 handling for single-step breakpoints.
683 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
684 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
686 (detach_single_step_breakpoints, find_single_step_breakpoint):
688 (breakpoint_has_location_inserted_here): New function.
689 (single_step_breakpoint_inserted_here_p): Rewrite.
690 * breakpoint.h: Remove FIXME.
691 (enum bptype) <bp_single_step>: New enum value.
692 (insert_single_step_breakpoint): Update comment.
693 * infrun.c (resume_cleanups)
694 (delete_step_thread_step_resume_breakpoint): Remove single-step
696 (fetch_inferior_event): Install a cleanup that removes infrun
698 (switch_back_to_stepped_thread) <expect thread advanced also>:
699 Clear step-over info.
701 2014-10-15 Pedro Alves <palves@redhat.com>
703 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
704 (delete_thread_infrun_breakpoints): New function, with parts
705 salvaged from delete_step_resume_breakpoint_callback.
706 (delete_step_thread_step_resume_breakpoint): Delete.
707 (for_each_just_stopped_thread_callback_func): New typedef.
708 (for_each_just_stopped_thread): New function.
709 (delete_just_stopped_threads_infrun_breakpoints): New function.
710 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
711 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
713 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
715 2014-10-15 Pedro Alves <palves@redhat.com>
717 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
718 trying to step past a non-steppable watchpoint.
719 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
721 * infrun.c (struct step_over_info): Add new field
722 'nonsteppable_watchpoint_p' and adjust comments.
723 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
725 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
726 (stepping_past_nonsteppable_watchpoint): New function.
727 (step_over_info_valid_p): Also return true if stepping past a
728 nonsteppable watchpoint.
729 (proceed): Adjust call to set_step_over_info. Remove reference to
731 (init_wait_for_inferior): Remove reference to init_infwait_state.
732 (waiton_ptid): Delete global.
733 (struct execution_control_state)
734 <stepped_after_stopped_by_watchpoint>: Delete field.
735 (wait_for_inferior, fetch_inferior_event): Always pass
736 minus_one_ptid to target_wait.
737 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
739 (init_infwait_state): Delete function.
740 (handle_inferior_event): Remove infwait_state handling.
741 (handle_signal_stop) <watchpoints handling>: Adjust after
742 stepped_after_stopped_by_watchpoint removal. Don't remove
743 breakpoints here nor set infwait_state. Set the thread's
744 stepping_over_watchpoint flag, and call keep_going instead.
745 (keep_going): Handle stepping_over_watchpoint. Adjust
746 set_step_over_info calls.
747 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
750 2014-10-15 Pedro Alves <palves@redhat.com>
752 * infrun.c (step_over_info_valid_p): New function.
753 (resume): Use step_over_info_valid_p instead of checking the
754 threads's trap_expected flag.
756 2014-10-15 Doug Evans <dje@google.com>
757 Walfred Tedeschi <walfred.tedeschi@intel.com>
760 * python/lib/gdb/__init__.py (packages): Add "printer".
761 * python/lib/gdb/command/bound_registers.py: Moved to ...
762 * python/lib/gdb/printer/bound_registers.py: ... here.
763 Add printer to global set of builtin printers. Rename printer from
764 "bound" to "mpx_bound128".
765 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
766 registered as global "builtin" printer.
767 (add_builtin_pretty_printer): New function.
768 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
769 gdb/printer/__init__.py.
771 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
773 * Makefile.in (SFILES): Remove d-support.c.
774 (COMMON_OBS): Remove d-support.o.
775 * d-lang.h (d_parse_symbol): Remove declaration.
776 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
777 * d-support.c: Remove file.
779 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
781 * gdb/infrun.c (process_event_stop_test): Apply
782 gdbarch_addr_bits_remove to longjmp resume address.
784 2014-10-15 Pedro Alves <palves@redhat.com>
786 * regformats/microblaze.dat: Delete file.
788 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
790 * features/Makefile (microblaze-expedite): Replace pc with rpc.
791 * regformats/microblaze-with-stack-protect.dat: Regenerate.
793 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
795 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
798 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
802 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
805 2014-10-14 Joel Brobecker <brobecker@adacore.com>
807 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
808 of the case where the second operand is a pointer.
809 <BINOP_SUB>: Likewise.
811 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
813 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
814 only if it is not NULL.
815 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
816 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
817 (struct probe_ops) <clear_semaphore>: Likewise.
818 * tracepoint.c (start_tracing): Call set_semaphore only if it is
820 (stop_tracing): Likewise, for clear_semaphore.
822 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
824 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
825 using language_c, instead of current_language.
827 2014-10-13 Doug Evans <dje@google.com>
829 * python/py-objfile.c (objfpy_initialize): New function.
830 (objfpy_new, objfile_to_objfile_object): Call it.
831 * python/py-progspace.c (pspy_initialize): New function.
832 (pspy_new, pspace_to_pspace_object): Call it.
834 2014-10-13 Miroslav Franc <mfranc@redhat.com>
835 Jan Kratochvil <jan.kratochvil@redhat.com>
837 Fix "save breakpoints" for "catch" command.
838 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
841 2014-10-12 Miroslav Franc <mfranc@redhat.com>
843 Fix "save breakpoints" for "disable $bpnum" command.
844 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
846 2014-10-10 Pedro Alves <palves@redhat.com>
848 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
849 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
850 (HFILES_NO_SRCDIR): Remove solib-irix.h.
851 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
853 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
854 * configure.ac: Remove references to IRIX.
855 * configure.host: Add *-*-irix* to the obsolete hosts section.
856 Remove all other references to irix.
857 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
860 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
862 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
863 isn't valid, release the tdesc arch data and return NULL.
865 2014-10-10 Pedro Alves <palves@redhat.com>
867 * linux-tdep.c: Include observer.h.
868 (linux_inferior_data): New global.
869 (struct linux_info): New structure.
870 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
871 (get_linux_inferior_data): New functions.
872 (linux_vsyscall_range): Rename to ...
873 (linux_vsyscall_range_raw): ... this.
874 (linux_vsyscall_range): New function; handles caching.
875 (_initialize_linux_tdep): Register linux_inferior_data. Install
876 inferior_exit and inferior_appeared observers.
878 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
879 Pedro Alves <palves@redhat.com>
882 * solib-svr4.c (svr4_read_so_list): Rename to ...
883 (svr4_current_sos_1): ... this and change the function comment.
884 (svr4_current_sos): New function.
886 2014-10-10 Pedro Alves <palves@redhat.com>
888 * arch-utils.c (default_vsyscall_range): New function.
889 * arch-utils.h (default_vsyscall_range): New declaration.
890 * gdbarch.sh (vsyscall_range): New hook.
891 * gdbarch.h, gdbarch.c: Regenerate.
892 * linux-tdep.c (linux_vsyscall_range): New function.
893 (linux_init_abi): Install linux_vsyscall_range as
894 vsyscall_range gdbarch hook.
895 * memrange.c (address_in_mem_range): New function.
896 * memrange.h (address_in_mem_range): New declaration.
897 * symfile-mem.c (find_vdso_size): Delete function.
898 (add_vsyscall_page): Use gdbarch_vsyscall_range.
900 2014-10-10 Pedro Alves <palves@redhat.com>
902 * infrun.c (normal_stop): Fix typo in comment.
904 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
907 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
908 typo when using logical AND to determine instruction type.
910 2014-10-09 Yao Qi <yao@codesourcery.com>
912 * infrun.c (handle_signal_stop): Remove local variable
915 2014-10-08 Stan Shebs <stan@codesourcery.com>
917 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
919 2014-10-08 Gary Benson <gbenson@redhat.com>
921 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
923 2014-10-08 Gary Benson <gbenson@redhat.com>
925 * common/common-defs.h: Include common-exceptions.h.
926 * exceptions.h: Do not include common-exceptions.h.
928 2014-10-08 Gary Benson <gbenson@redhat.com>
930 * common/common-defs.h: Include cleanups.h.
931 * common/common-exceptions.c: Do not include cleanups.h.
934 2014-10-08 Gary Benson <gbenson@redhat.com>
936 * ada-lang.c: Do not include exceptions.h.
937 * ada-valprint.c: Likewise.
938 * amd64-tdep.c: Likewise.
939 * auto-load.c: Likewise.
941 * break-catch-throw.c: Likewise.
942 * breakpoint.c: Likewise.
943 * btrace.c: Likewise.
944 * c-lang.c: Likewise.
945 * cli/cli-cmds.c: Likewise.
946 * cli/cli-interp.c: Likewise.
947 * cli/cli-script.c: Likewise.
948 * completer.c: Likewise.
949 * corefile.c: Likewise.
950 * corelow.c: Likewise.
951 * cp-abi.c: Likewise.
952 * cp-support.c: Likewise.
953 * cp-valprint.c: Likewise.
954 * darwin-nat.c: Likewise.
955 * dwarf2-frame-tailcall.c: Likewise.
956 * dwarf2-frame.c: Likewise.
957 * dwarf2loc.c: Likewise.
958 * dwarf2read.c: Likewise.
960 * event-loop.c: Likewise.
961 * event-top.c: Likewise.
962 * f-valprint.c: Likewise.
963 * frame-unwind.c: Likewise.
965 * gdbtypes.c: Likewise.
966 * gnu-v2-abi.c: Likewise.
967 * gnu-v3-abi.c: Likewise.
968 * guile/scm-auto-load.c: Likewise.
969 * guile/scm-breakpoint.c: Likewise.
970 * guile/scm-cmd.c: Likewise.
971 * guile/scm-frame.c: Likewise.
972 * guile/scm-lazy-string.c: Likewise.
973 * guile/scm-param.c: Likewise.
974 * guile/scm-symbol.c: Likewise.
975 * guile/scm-type.c: Likewise.
976 * hppa-hpux-tdep.c: Likewise.
977 * i386-tdep.c: Likewise.
978 * inf-loop.c: Likewise.
979 * infcall.c: Likewise.
980 * infcmd.c: Likewise.
981 * infrun.c: Likewise.
982 * interps.c: Likewise.
983 * interps.h: Likewise.
985 * linespec.c: Likewise.
986 * linux-nat.c: Likewise.
987 * linux-thread-db.c: Likewise.
988 * m32r-rom.c: Likewise.
990 * memory-map.c: Likewise.
991 * mi/mi-cmd-break.c: Likewise.
992 * mi/mi-cmd-stack.c: Likewise.
993 * mi/mi-interp.c: Likewise.
994 * mi/mi-main.c: Likewise.
995 * monitor.c: Likewise.
996 * nto-procfs.c: Likewise.
997 * objc-lang.c: Likewise.
998 * p-valprint.c: Likewise.
1000 * ppc-linux-tdep.c: Likewise.
1001 * printcmd.c: Likewise.
1002 * probe.c: Likewise.
1003 * python/py-auto-load.c: Likewise.
1004 * python/py-breakpoint.c: Likewise.
1005 * python/py-cmd.c: Likewise.
1006 * python/py-finishbreakpoint.c: Likewise.
1007 * python/py-frame.c: Likewise.
1008 * python/py-framefilter.c: Likewise.
1009 * python/py-function.c: Likewise.
1010 * python/py-gdb-readline.c: Likewise.
1011 * python/py-inferior.c: Likewise.
1012 * python/py-infthread.c: Likewise.
1013 * python/py-lazy-string.c: Likewise.
1014 * python/py-linetable.c: Likewise.
1015 * python/py-param.c: Likewise.
1016 * python/py-prettyprint.c: Likewise.
1017 * python/py-symbol.c: Likewise.
1018 * python/py-type.c: Likewise.
1019 * python/py-value.c: Likewise.
1020 * python/python-internal.h: Likewise.
1021 * python/python.c: Likewise.
1022 * record-btrace.c: Likewise.
1023 * record-full.c: Likewise.
1024 * regcache.c: Likewise.
1025 * remote-fileio.c: Likewise.
1026 * remote-mips.c: Likewise.
1027 * remote.c: Likewise.
1028 * rs6000-aix-tdep.c: Likewise.
1029 * rs6000-nat.c: Likewise.
1031 * solib-darwin.c: Likewise.
1032 * solib-dsbt.c: Likewise.
1033 * solib-frv.c: Likewise.
1034 * solib-ia64-hpux.c: Likewise.
1035 * solib-spu.c: Likewise.
1036 * solib-svr4.c: Likewise.
1037 * solib.c: Likewise.
1038 * spu-tdep.c: Likewise.
1039 * stack.c: Likewise.
1040 * stap-probe.c: Likewise.
1041 * symfile-mem.c: Likewise.
1042 * symmisc.c: Likewise.
1043 * target.c: Likewise.
1044 * thread.c: Likewise.
1046 * tracepoint.c: Likewise.
1047 * tui/tui-interp.c: Likewise.
1048 * typeprint.c: Likewise.
1049 * utils.c: Likewise.
1050 * valarith.c: Likewise.
1051 * valops.c: Likewise.
1052 * valprint.c: Likewise.
1053 * value.c: Likewise.
1054 * varobj.c: Likewise.
1055 * windows-nat.c: Likewise.
1056 * xml-support.c: Likewise.
1058 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1060 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1062 (extended_mips16_next_pc): Update accordingly.
1064 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1066 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1068 (micromips_instruction_is_compact_branch): Likewise.
1069 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1070 or a compact jump, reaching a jump delay slot, or seeing a
1071 second non-prologue instruction.
1072 (micromips_scan_prologue): Also terminate scanning upon seeing a
1073 compact branch or jump, or reaching a branch or jump delay slot.
1074 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1075 or jump delay slot, or seeing a second non-prologue instruction.
1076 (mips32_instruction_has_delay_slot): Retain instruction
1077 examination code only, update arguments accordingly and move
1078 instruction fetch pieces to...
1079 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1080 (micromips_instruction_has_delay_slot): Likewise and to...
1081 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1082 (mips16_instruction_has_delay_slot): Likewise and to...
1083 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1084 (mips_single_step_through_delay): Update accordingly.
1085 (mips_adjust_breakpoint_address): Likewise.
1087 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1089 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1090 !mustbe32 also return 1 for 32-bit instructions.
1091 (mips16_instruction_has_delay_slot): Likewise. Add an
1092 explanatory comment.
1094 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1096 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1099 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1101 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1103 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1104 for the breakpoint's address. Don't preinitialize `placed_size'.
1105 (insert_bp_location): Set `reqstd_address' rather than
1107 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1108 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1110 (bkpt_remove_location): Likewise.
1111 (deprecated_insert_raw_breakpoint): Likewise.
1112 (deprecated_remove_raw_breakpoint): Likewise.
1113 (find_single_step_breakpoint): Likewise.
1114 * mem-break.c (default_memory_insert_breakpoint): Use
1115 `reqstd_address' for the breakpoint's address. Don't set
1116 `placed_address' or `placed_size' if breakpoint contents couldn't
1117 have been determined.
1118 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1119 the breakpoint's address.
1120 (remote_insert_hw_breakpoint): Likewise. Don't set
1121 `placed_address' or `placed_size' if breakpoint couldn't have been
1123 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1124 `reqstd_address' for the breakpoint's address.
1125 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1126 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1127 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1128 * microblaze-linux-tdep.c
1129 (microblaze_linux_memory_remove_breakpoint): Likewise.
1130 * monitor.c (monitor_insert_breakpoint): Likewise.
1131 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1132 (procfs_insert_hw_breakpoint): Likewise.
1133 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1134 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1135 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1136 * remote-mips.c (mips_insert_breakpoint): Likewise.
1137 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1139 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1141 * valops.c (value_assign): Check for bit field assignments
1142 before calling architecture-specific register value
1143 conversion functions.
1145 2014-10-03 Pierre Muller <muller@sourceware.org>
1147 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1149 2014-10-02 Pedro Alves <palves@redhat.com>
1151 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1152 threads_are_executing.
1153 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1155 * gdbthread.h (threads_are_executing): Declare.
1156 (handle_signal_stop) <random signals>: Don't print about the
1157 signal here if stopping.
1158 (end_stepping_range): Don't notify observers here.
1159 (normal_stop): Update the thread list. If stopped by a random
1160 signal or a stepping range ended, notify observers.
1161 * thread.c (threads_executing): New global.
1162 (init_thread_list): Clear 'threads_executing'.
1163 (set_executing): Set or clear 'threads_executing'.
1164 (threads_are_executing): New function.
1165 (update_threads_executing): New function.
1166 (update_thread_list): Use it.
1168 2014-10-02 Pedro Alves <palves@redhat.com>
1170 PR breakpoints/17431
1171 * breakpoint.c (update_breakpoints_after_exec): Don't create
1172 overlay, longjmp, std terminate nor exception breakpoints here.
1174 2014-10-02 Pedro Alves <palves@redhat.com>
1176 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1178 * inferior.c (find_inferior_for_program_space): Give preference to
1179 the current inferior.
1180 * inferior.h (find_inferior_for_program_space): Update comment.
1181 * progspace.c (switch_to_program_space_and_thread): Prefer the
1182 current inferior if it's bound to the program space requested. If
1183 the inferior found doesn't have a PID yet, don't bother looking up
1185 * progspace.h (switch_to_program_space_and_thread): Adjust
1187 * thread.c (any_thread_of_process, any_live_thread_of_process):
1188 Give preference to the current thread.
1190 2014-10-01 Pedro Alves <palves@redhat.com>
1192 * breakpoint.c (insert_bp_location): Error out if inserting a
1193 software breakpoint at a read-only address.
1194 * target.c (memory_xfer_check_region): New function, factored out
1196 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1198 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1199 against the memory region attributes.
1201 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1203 * NEWS: Announce new exit-code field in -list-thread-groups
1205 * inferior.c (exit_inferior_1): Don't clear exit code.
1206 (inferior_appeared): Clear exit code.
1207 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1210 2014-10-01 Pedro Alves <palves@redhat.com>
1212 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1213 GENERATED" along with emacs/vi read-only markers.
1214 * regformats/aarch64.dat: Regenerate.
1215 * regformats/arm-with-iwmmxt.dat: Regenerate.
1216 * regformats/arm-with-neon.dat: Regenerate.
1217 * regformats/arm-with-vfpv2.dat: Regenerate.
1218 * regformats/arm-with-vfpv3.dat: Regenerate.
1219 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1220 * regformats/i386/amd64-avx.dat: Regenerate.
1221 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1222 * regformats/i386/amd64-avx512.dat: Regenerate.
1223 * regformats/i386/amd64-linux.dat: Regenerate.
1224 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1225 * regformats/i386/amd64-mpx.dat: Regenerate.
1226 * regformats/i386/amd64.dat: Regenerate.
1227 * regformats/i386/i386-avx-linux.dat: Regenerate.
1228 * regformats/i386/i386-avx.dat: Regenerate.
1229 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1230 * regformats/i386/i386-avx512.dat: Regenerate.
1231 * regformats/i386/i386-linux.dat: Regenerate.
1232 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1233 * regformats/i386/i386-mmx.dat: Regenerate.
1234 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1235 * regformats/i386/i386-mpx.dat: Regenerate.
1236 * regformats/i386/i386.dat: Regenerate.
1237 * regformats/i386/x32-avx-linux.dat: Regenerate.
1238 * regformats/i386/x32-avx.dat: Regenerate.
1239 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1240 * regformats/i386/x32-avx512.dat: Regenerate.
1241 * regformats/i386/x32-linux.dat: Regenerate.
1242 * regformats/i386/x32.dat: Regenerate.
1243 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1244 * regformats/mips-dsp-linux.dat: Regenerate.
1245 * regformats/mips-linux.dat: Regenerate.
1246 * regformats/mips64-dsp-linux.dat: Regenerate.
1247 * regformats/mips64-linux.dat: Regenerate.
1248 * regformats/nios2-linux.dat: Regenerate.
1249 * regformats/rs6000/powerpc-32.dat: Regenerate.
1250 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1251 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1252 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1253 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1254 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1255 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1256 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1257 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1258 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1259 * regformats/s390-linux32.dat: Regenerate.
1260 * regformats/s390-linux32v1.dat: Regenerate.
1261 * regformats/s390-linux32v2.dat: Regenerate.
1262 * regformats/s390-linux64.dat: Regenerate.
1263 * regformats/s390-linux64v1.dat: Regenerate.
1264 * regformats/s390-linux64v2.dat: Regenerate.
1265 * regformats/s390-te-linux64.dat: Regenerate.
1266 * regformats/s390x-linux64.dat: Regenerate.
1267 * regformats/s390x-linux64v1.dat: Regenerate.
1268 * regformats/s390x-linux64v2.dat: Regenerate.
1269 * regformats/s390x-te-linux64.dat: Regenerate.
1270 * regformats/tic6x-c62x-linux.dat: Regenerate.
1271 * regformats/tic6x-c62x.dat: Regenerate.
1272 * regformats/tic6x-c64x-linux.dat: Regenerate.
1273 * regformats/tic6x-c64x.dat: Regenerate.
1274 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1275 * regformats/tic6x-c64xp.dat: Regenerate.
1277 2014-10-01 Pedro Alves <palves@redhat.com>
1279 * features/Makefile: Update comments.
1280 (XMLTOC): List all xml files we build C files from.
1281 (clean-cfiles): New rule.
1283 2014-10-01 Pedro Alves <palves@redhat.com>
1285 * features/i386/amd64-avx512-linux.c: Regenerate.
1286 * features/i386/amd64-avx512.c: Regenerate.
1287 * features/i386/x32-avx512-linux.c: Regenerate.
1288 * features/i386/x32-avx512.c: Regenerate.
1290 2014-10-01 Pedro Alves <palves@redhat.com>
1292 * features/Makefile (WHICH): Remove arm-with-m,
1293 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1295 2014-10-01 Pedro Alves <palves@redhat.com>
1297 * features/Makefile (clean): New rule.
1299 2014-10-01 Pedro Alves <palves@redhat.com>
1301 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1302 (zmm14h): Add missing end quotes.
1304 2014-10-01 Pedro Alves <palves@redhat.com>
1306 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1307 * features/aarch64.c: Regenerate.
1309 2014-09-30 Don Breazeal <donb@codesourcery.com>
1311 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1312 code so as to work with follow_fork_inferior.
1313 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1314 (inf_ttrace_create_inferior): Remove reference to
1315 inf_ttrace_vfork_ppid.
1316 (inf_ttrace_attach): Ditto.
1317 (inf_ttrace_detach): Ditto.
1318 (inf_ttrace_kill): Use current_inferior instead of
1319 inf_ttrace_vfork_ppid.
1320 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1321 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1322 inferior away from the parent.
1323 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1325 (follow_fork_inferior): New function.
1326 (follow_inferior_reset_breakpoints): Make function static.
1327 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1328 * linux-nat.c (linux_child_follow_fork): Move target-independent
1329 code to infrun.c:follow_fork_inferior.
1331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1333 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1334 * gdbarch.c: Regenerate.
1335 * gdbarch.h: Likewise.
1336 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1337 gdbarch method 'regset_from_core_section'.
1338 (get_core_register_section): Remove handling for the case that
1339 regset == NULL and regset_from_core_section is defined.
1340 (get_core_registers): Drop check for deleted method.
1341 * procfs.c (procfs_do_thread_registers): Adjust comment.
1343 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1346 (linux_nat_make_corefile_notes): Remove.
1347 (linux_target_install_ops): Do not set target method
1348 'make_corefile_notes'.
1349 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1351 (linux_corefile_thread_callback): Instead of args->collect, call
1352 linux_collect_thread_registers.
1353 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1354 NULL unless there is a regset iterator.
1355 (linux_make_corefile_notes_1): Remove.
1356 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1357 by linux_make_corefile_notes.
1358 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1360 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1362 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1363 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1365 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1367 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1369 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1370 (xtensa_iterate_over_regset_sections): New.
1371 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1373 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1375 * vax-tdep.c (vax_regset_from_core_section): Remove.
1376 (vax_iterate_over_regset_sections): New.
1377 (vax_gdbarch_init): Adjust gdbarch initialization.
1379 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1382 (tilegx_regset_from_core_section): Remove.
1383 (tilegx_iterate_over_regset_sections): New.
1384 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1386 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1388 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1389 (sparc_iterate_over_regset_sections): New.
1390 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1391 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1393 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1394 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1395 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1396 target method 'make_corefile_notes'.
1398 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1400 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1401 'sizeof_gregset' and 'sizeof_fpregset'.
1402 * sh-tdep.c (sh_regset_from_core_section): Remove.
1403 (sh_iterate_over_regset_sections): New.
1404 (sh_gdbarch_init): Adjust gdbarch initialization.
1405 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1407 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1410 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1412 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1413 (score7_linux_iterate_over_regset_sections): New.
1414 (score_gdbarch_init): Adjust gdbarch initialization.
1416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1418 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1420 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1421 method 'make_corefile_notes'.
1422 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1423 (ppcfbsd_regset_from_core_section): Remove.
1424 (ppcfbsd_iterate_over_regset_sections): New.
1425 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1427 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1428 (ppcnbsd_iterate_over_regset_sections): New.
1429 (ppcnbsd_init_abi): Adjust.
1430 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1431 (ppcobsd_iterate_over_regset_sections): New.
1432 (ppcobsd_init_abi): Adjust.
1433 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1434 (rs6000_aix_iterate_over_regset_sections): New.
1435 (rs6000_aix_init_osabi): Adjust.
1437 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1440 (nios2_regset_from_core_section): Remove.
1441 (nios2_iterate_over_regset_sections): New.
1442 (nios2_linux_init_abi): Adjust gdbarch initialization.
1444 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1446 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1447 (am33_iterate_over_regset_sections): New.
1448 (am33_linux_init_osabi): Adjust gdbarch initialization.
1450 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1452 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1453 (mips_linux_iterate_over_regset_sections): New.
1454 (mips_linux_init_abi): Adjust gdbarch initialization.
1455 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1456 (mips64obsd_iterate_over_regset_sections): New.
1457 (mips64obsd_init_abi): Adjust.
1458 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1459 (mipsnbsd_iterate_over_regset_sections): New.
1460 (mipsnbsd_init_abi): Adjust.
1462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1464 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1465 (m88k_iterate_over_regset_sections): New.
1466 (m88k_gdbarch_init): Adjust gdbarch initialization.
1468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1471 (ia64_linux_iterate_over_regset_sections): New.
1472 (ia64_linux_init_abi): Adjust gdbarch initialization.
1474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1476 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1477 (m68kbsd_iterate_over_regset_sections): New.
1478 (m68kbsd_init_abi): Adjust gdbarch initialization.
1479 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1480 (m68k_linux_iterate_over_regset_sections): New.
1481 (m68k_linux_init_abi): Adjust gdbarch initialization.
1483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1485 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1486 (m32r_linux_regset_from_core_section): Remove.
1487 (m32r_linux_iterate_over_regset_sections): New.
1488 (m32r_linux_init_abi): Adjust gdbarch initialization.
1490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1493 (amd64obsd_iterate_over_regset_sections): New.
1494 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1495 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1497 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1498 regset_from_core_section initialization.
1499 * i386-tdep.c (i386_regset_from_core_section): Remove.
1500 (i386_iterate_over_regset_sections): New.
1501 (i386_gdbarch_init): Adjust gdbarch initialization.
1502 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1503 (i386_iterate_over_regset_sections): New prototype.
1504 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1506 (i386obsd_aout_iterate_over_regset_sections): New.
1507 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1508 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1510 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1511 (amd64fbsd_init_abi): Call fbsd_init_abi.
1512 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1513 (i386fbsd4_init_abi): Call fbsd_init_abi.
1514 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1515 target method 'make_corefile_notes'.
1516 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1518 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1521 (hppa_hpux_iterate_over_regset_sections): New.
1522 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1523 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1524 (hppa_linux_iterate_over_regset_sections): New.
1525 (hppa_linux_init_abi): Adjust.
1526 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1527 (hppanbsd_iterate_over_regset_sections): New.
1528 (hppanbsd_init_abi): Adjust.
1529 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1530 (hppaobsd_iterate_over_regset_sections): New.
1531 (hppaobsd_init_abi): Adjust.
1533 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1535 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1536 (frv_linux_iterate_over_regset_sections): New.
1537 (frv_linux_init_abi): Adjust gdbarch initialization.
1539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1542 (armbsd_iterate_over_regset_sections): New prototype.
1543 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1544 (armbsd_iterate_over_regset_sections): New.
1545 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1548 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1551 (alpha_linux_iterate_over_regset_sections): New.
1552 (alpha_linux_init_abi): Adjust gdbarch initialization.
1553 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1555 (alphanbsd_iterate_over_regset_sections): New prototype.
1557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1561 (aarch64_linux_iterate_over_regset_sections): New.
1562 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566 * fbsd-tdep.c: New file.
1567 * fbsd-tdep.h: New file.
1568 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1569 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1570 (ALLDEPFILES): Add fbsd-tdep.c.
1572 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1574 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1576 * gdbarch.h: Regenerate.
1577 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1579 (get_core_register_section): Add parameter 'regset' and use it, if
1580 set. Add parameter 'min_size' and verify the bfd section size
1582 (get_core_registers_cb): Add parameter 'regset' and pass it to
1583 get_core_register section. For the "standard" register sections
1584 ".reg" and ".reg2", set an appropriate default for human_name.
1585 (get_core_registers): Don't abort when the gdbarch has an iterator
1586 but no regset_from_core_section. Add NULL/0 for parameters
1587 'regset'/'min_size' in calls to get_core_register_section.
1588 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1589 'regset' and use it instead of calling the
1590 regset_from_core_section gdbarch method.
1591 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1592 * i386-tdep.c (i386_supply_xstateregset)
1593 (i386_collect_xstateregset, i386_xstateregset): Moved to
1595 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1597 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1598 core file support only if the regset iterator hasn't been set.
1599 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1600 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1601 Moved from i386-tdep.c and renamed to *_linux*.
1602 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1603 each callback invocation. Allow any .reg-xstate size when reading
1605 * amd64-tdep.c (amd64_supply_xstateregset)
1606 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1608 (amd64_regset_from_core_section): Remove.
1609 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1610 install an amd64-specific regset_from_core_section gdbarch method.
1611 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1612 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1613 Moved from amd64-tdep.c and renamed to *_linux*.
1614 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1615 to each callback invocation. Allow any .reg-xstate size when
1616 reading from a core file.
1617 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1618 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1619 each callback invocation.
1620 (arm_linux_init_abi): No longer set the regset_from_core_section
1622 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1623 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1624 each callback invocation.
1625 (ppc_linux_init_abi): No longer set the regset_from_core_section
1627 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1628 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1629 (s390_regset_from_core_section): Remove.
1630 (s390_iterate_over_regset_sections): Add regset parameter to each
1631 callback invocation.
1632 (s390_gdbarch_init): No longer set the regset_from_core_section
1633 gdbarch method. Drop initialization of deleted tdep fields.
1635 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1637 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1638 (amd64_linux_iterate_over_regset_sections): New.
1639 (amd64_linux_init_abi_common): Don't install the regset section
1640 list, but the new iterator in gdbarch.
1641 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1642 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1643 (arm_linux_iterate_over_regset_sections): ...here. New function.
1644 (arm_linux_init_abi): Set iterator instead of section list.
1645 * corelow.c (get_core_registers_cb): New function, logic moved
1647 (get_core_registers): ...loop body here. Use new iterator method
1648 instead of walking through the regset section list.
1649 * gdbarch.sh: Remove 'core_regset_sections'. New method
1650 'iterate_over_regset_sections'. New typedef
1651 'iterate_over_regset_sections_cb'.
1652 * gdbarch.c: Regenerate.
1653 * gdbarch.h: Likewise.
1654 * i386-linux-tdep.c (i386_linux_regset_sections)
1655 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1657 (i386_linux_iterate_over_regset_sections): New.
1658 (i386_linux_init_abi): Don't choose a regset section list, but
1659 install new iterator in gdbarch.
1660 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1661 (linux_collect_regset_section_cb): New function, logic moved
1663 (linux_collect_thread_registers): ...loop body here. Use iterator
1664 method instead of walking through list.
1665 (linux_make_corefile_notes_1): Check for presence of iterator
1666 method instead of regset section list.
1667 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1668 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1669 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1670 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1671 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1672 (ppc_linux_init_abi): Don't choose from above regset section
1673 lists, but install new iterator in gdbarch.
1674 * regset.h (struct core_regset_section): Remove.
1675 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1676 have_linux_v1, have_linux_v2, and have_tdb.
1677 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1678 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1679 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1680 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1681 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1682 (s390_iterate_over_regset_sections): ...here. New function. Use
1684 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1685 regset section lists, but install new iterator.
1687 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1689 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1691 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1693 * progspace.c (print_program_space): Don't prune program spaces
1694 before printing them.
1696 2014-09-25 Pedro Alves <palves@redhat.com>
1698 * infrun.c (user_visible_resume_ptid): Don't check
1699 singlestep_breakpoints_inserted_p.
1701 2014-09-25 Pedro Alves <palves@redhat.com>
1703 * breakpoint.c (should_be_inserted): Add debug output.
1705 2014-09-25 Pedro Alves <palves@redhat.com>
1707 * infrun.c (stepping_past_instruction_at)
1708 (clear_exit_convenience_vars): Point at infrun.h instead of
1710 (handle_signal_stop): Fix typo.
1712 2014-09-24 Yao Qi <yao@codesourcery.com>
1714 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1717 2014-09-22 Gary Benson <gbenson@redhat.com>
1719 * target.c (target_stop): Updated comment.
1721 2014-09-22 Gary Benson <gbenson@redhat.com>
1723 * target/target.h (target_stop_ptid): Renamed as...
1724 (target_stop_and_wait): New function. Updated comment.
1726 (target_continue_ptid): Renamed as...
1727 (target_continue_no_signal): New function. Updated comment.
1730 2014-09-22 Pedro Alves <palves@redhat.com>
1732 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1734 * breakpoint.c (enum ugll_insert_mode): New enum.
1735 (always_inserted_mode): Now a plain boolean.
1736 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1737 (breakpoints_always_inserted_mode): Delete.
1738 (breakpoints_should_be_inserted_now): New function.
1739 (insert_breakpoints): Pass UGLL_INSERT to
1740 update_global_location_list instead of calling
1741 insert_breakpoint_locations manually.
1742 (create_solib_event_breakpoint_1): New, factored out from ...
1743 (create_solib_event_breakpoint): ... this.
1744 (create_and_insert_solib_event_breakpoint): Use
1745 create_solib_event_breakpoint_1 instead of calling
1746 insert_breakpoint_locations manually.
1747 (update_global_location_list): Change parameter type from boolean
1748 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1749 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1750 (update_global_location_list_nothrow): Change parameter type from
1751 boolean to enum ugll_insert_mode.
1752 (_initialize_breakpoint): "breakpoint always-inserted" option is
1753 now a boolean command. Update help text.
1754 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1755 (breakpoints_should_be_inserted_now): New declaration.
1756 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1757 Remove breakpoints_always_inserted_mode check.
1758 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1759 * remote.c (remote_start_remote): Likewise.
1761 2014-09-22 Pedro Alves <palves@redhat.com>
1763 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1764 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1765 Instead, pass UGLL_INSERT to update_global_location_list.
1766 (update_global_location_list): Change parameter type from boolean
1767 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1768 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1769 (create_solib_event_breakpoint_1): New, factored out from ...
1770 (create_solib_event_breakpoint): ... this.
1771 (create_and_insert_solib_event_breakpoint): Use
1772 create_solib_event_breakpoint_1 instead of calling
1773 insert_breakpoint_locations manually.
1774 (update_global_location_list): Handle UGLL_INSERT.
1776 2014-09-22 Pedro Alves <palves@redhat.com>
1778 * breakpoint.c (enum ugll_insert_mode): New enum.
1779 (update_global_location_list)
1780 (update_global_location_list_nothrow): Change parameter type from
1781 boolean to enum ugll_insert_mode. All callers adjusted.
1783 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1785 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1786 SystemTap support in GDB.
1788 2014-09-19 Don Breazeal <donb@codesourcery.com>
1790 * linux-nat.c (linux_handle_extended_wait): Call
1791 linux_ptrace_get_extended_event.
1792 (wait_lwp): Call linux_is_extended_waitstatus.
1793 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1794 and linux_is_extended_waitstatus.
1795 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1796 linux_ptrace_get_extended_event.
1797 (linux_ptrace_get_extended_event): New function.
1798 (linux_is_extended_waitstatus): New function.
1799 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1800 (linux_is_extended_waitstatus): New declarations.
1802 2014-09-19 Yao Qi <yao@codesourcery.com>
1804 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1805 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1806 comments. Callers update.
1807 (dwarf_decode_lines): Likewise.
1808 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1809 comments. Skip the line table if 'lowpc' is greater than
1810 'address'. Don't check
1811 dwarf2_per_objfile->has_section_at_zero.
1813 2014-09-18 Doug Evans <dje@google.com>
1815 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1816 * python/py-symtab.c (stpy_get_producer): New function.
1817 (symtab_object_getset): Add "producer" attribute.
1819 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1822 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1823 (do_captured_read_memory_integer): Remove.
1824 (safe_read_memory_integer): Use target_read_memory directly instead
1825 of catching errors in do_captured_read_memory_integer.
1827 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1829 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1832 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1834 * objc-lang.c (find_implementation_from_class): Remove dead code.
1836 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1839 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1840 "fprintf_unfiltered (gdb_stdlog...)".
1842 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1844 PR breakpoints/12526
1845 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1847 * breakpoint.c (watch_command_1): Use these fields to retain
1848 bitfield information.
1849 (extract_bitfield_from_watchpoint_value): New function.
1850 (watchpoint_check): Use it.
1851 (update_watchpoint): Use it. Optimize the address and length of a
1852 HW watchpoint pointing to a bitfield.
1853 * value.h (unpack_value_bitfield): New prototype.
1854 * value.c (unpack_value_bitfield): Make extern.
1856 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1858 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1860 * gnu-nat.c (inf_threads): New function.
1861 * gnu-nat.h (inf_threads_ftype): New typedef.
1862 (inf_threads): New declaration.
1863 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1864 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1865 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1866 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1867 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1868 (i386_gnu_dr_get_control): New functions.
1869 (reg_addr): New structure.
1870 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1871 i386 debugging register hooks.
1872 * NEWS: Mention this.
1874 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1876 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1877 vector data transfer instructions.
1878 (arm_record_coproc_data_proc): Updated.
1880 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1882 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1883 arm_record_exreg_ld_st_insn.
1884 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1887 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1889 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1890 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1891 processing instructions.
1893 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1895 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1896 for advance SIMD struct ld/st insn.
1897 (thumb2_record_decode_insn_handler): Replace stub handler with
1898 thumb2_record_asimd_struct_ld_st.
1900 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1902 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1903 for asimd, vfp and coprocessor insns.
1904 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1905 and coprocessor insns.
1906 (thumb2_record_coproc_insn): New function.
1907 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1909 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1912 2014-09-13 Doug Evans <xdje42@gmail.com>
1914 * NEWS: Mention new "queue-signal" command.
1915 * infcmd.c (queue_signal_command): New function.
1916 (_initialize_infcmd): Add new queue-signal command.
1918 2014-09-13 Doug Evans <xdje42@gmail.com>
1920 * linux-nat.c (wait_lwp): Add debugging printf.
1921 (linux_nat_wait_1): Ditto.
1923 2014-09-12 Pedro Alves <palves@redhat.com>
1925 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1926 (create_and_insert_solib_event_breakpoint): New functions.
1927 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1928 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1929 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1930 (remove_dbx_link_breakpoint): Delete function.
1931 (insert_dbx_link_bpt_in_file): Use
1932 create_and_insert_solib_event_breakpoint instead of
1933 deprecated_insert_raw_breakpoint.
1934 (procfs_wait): Don't check whether we hit __dbx_link here.
1935 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1937 * solib-irix.c (base_breakpoint): Delete global.
1938 (disable_break): Delete function.
1939 (enable_break): Use create_solib_event_breakpoint
1940 instead of deprecated_insert_raw_breakpoint.
1941 (irix_solib_handle_event): New function.
1942 (irix_solib_create_inferior_hook): Don't run the target or disable
1943 the mapping-complete breakpoint here.
1944 (_initialize_irix_solib): Install irix_solib_handle_event as
1945 so_ops->handle_event hook.
1947 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1948 Ulrich Weigand <uweigand@de.ibm.com>
1951 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1952 instead of read_memory_unsigned_integer.
1954 2014-09-12 Gary Benson <gbenson@redhat.com>
1956 * nat/linux-waitpid.c: Include common-defs.h.
1957 [GDBSERVER]: Add FIXME comment.
1958 [!GDBSERVER]: Don't include defs.h or signal.h.
1959 (linux_debug) [!GDBSERVER]: Remove empty block.
1961 2014-09-12 Gary Benson <gbenson@redhat.com>
1963 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1964 Don't include defs.h or server.h.
1966 2014-09-12 Gary Benson <gbenson@redhat.com>
1968 * nat/linux-btrace.c: Include common-defs.h.
1969 Don't include defs.h, server.h or gdbthread.h.
1970 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1972 2014-09-12 Gary Benson <gbenson@redhat.com>
1974 * common/agent.c: Include common-defs.h.
1975 Don't include defs.h or server.h.
1976 * common/buffer.c: Likewise.
1977 * common/common-debug.c: Likewise.
1978 * common/common-utils.c: Likewise.
1979 * common/errors.c: Likewise.
1980 * common/filestuff.c: Likewise.
1981 * common/format.c: Likewise.
1982 * common/gdb_vecs.c: Likewise.
1983 * common/print-utils.c: Likewise.
1984 * common/ptid.c: Likewise.
1985 * common/rsp-low.c: Likewise.
1986 * common/signals.c: Likewise.
1987 * common/vec.c: Likewise.
1988 * common/xml-utils.c: Likewise.
1989 * nat/linux-osdata.c: Likewise.
1990 * nat/linux-procfs.c: Likewise.
1991 * nat/linux-ptrace.c: Likewise.
1992 * nat/mips-linux-watch.c: Likewise.
1993 * target/waitstatus.c: Likewise.
1995 2014-09-12 Tom Tromey <tromey@redhat.com>
1996 Gary Benson <gbenson@redhat.com>
1998 * common/common-regcache.h: New file.
1999 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2000 * regcache.h: Include common-regcache.h.
2001 (regcache_read_pc): Don't declare.
2002 * regcache.c (get_thread_regcache_for_ptid): New function.
2003 * nat/linux-btrace.c: Don't include regcache.h.
2004 Include common-regcache.h.
2005 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2007 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2009 * regcache.h (struct regset): Declare.
2011 2014-09-11 Pedro Alves <palves@redhat.com>
2014 * main.c: Include "infrun.h".
2015 (catch_command_errors, catch_command_errors_const): Wait for the
2016 foreground command to complete.
2017 * top.c (maybe_wait_sync_command_done): New function, factored out
2019 (maybe_wait_sync_command_done): ... here.
2020 * top.h (maybe_wait_sync_command_done): New declaration.
2022 2014-09-11 Tom Tromey <tromey@redhat.com>
2023 Gary Benson <gbenson@redhat.com>
2025 * common/symbol.h: New file.
2026 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2027 * minsyms.c (find_minimal_symbol_address): New function.
2028 * common/agent.c: Include common/symbol.h.
2029 [!GDBSERVER]: Don't include objfiles.h.
2030 (agent_look_up_symbols): Use find_minimal_symbol_address.
2032 2014-09-11 Gary Benson <gbenson@redhat.com>
2034 * target/target.h (target_stop_ptid, target_continue_ptid):
2036 * target.c (target_stop_ptid, target_continue_ptid): New
2038 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2039 (agent_run_command): Always use target_stop_ptid and
2040 target_continue_ptid.
2042 2014-09-11 Tom Tromey <tromey@redhat.com>
2043 Gary Benson <gbenson@redhat.com>
2045 * target/target.h: New file.
2046 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2047 * target.h: Include target/target.h.
2048 (target_read_memory, target_write_memory): Don't declare.
2049 * target.c (target_read_uint32): New function.
2050 * common/agent.c: Include target/target.h.
2051 [!GDBSERVER]: Don't include target.h.
2052 (helper_thread_id): Type changed to uint32_t.
2053 (agent_get_helper_thread_id): Use target_read_uint32.
2054 (agent_run_command): Always use target_read_memory and
2055 target_write_memory.
2056 (agent_capability): Type changed to uint32_t.
2057 (agent_capability_check): Use target_read_uint32.
2059 2014-09-11 Gary Benson <gbenson@redhat.com>
2061 * common/common-debug.h (show_debug_regs): Declare.
2062 * common/common-debug.c (show_debug_regs): Define.
2063 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2064 all uses with show_debug_regs. Replace all uses that considered
2065 debug_hw_points as a multi-value integer with straight boolean
2067 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2068 with show_debug_regs.
2069 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2070 all uses with show_debug_regs.
2071 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2072 uses with show_debug_regs.
2074 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2076 * findvar.c (address_from_register): Handle targets requiring
2077 a special conversion routine even for plain pointer types.
2079 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2081 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2082 (store_register): Do not call exec_one_dummy_insn.
2084 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2086 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2087 dereference it first. Use value_enclosing_type instead of
2089 (ada_array_length): Likewise.
2091 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2093 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2094 Adjust function implementation and documentation accordingly.
2095 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2096 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2097 Update call to ada_value_ptr_subscript.
2099 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2101 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2102 instead of VAL's type.
2104 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2106 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2108 2014-09-09 Doug Evans <xdje42@gmail.com>
2111 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2112 last parameter to pkg-config, not first.
2113 * configure.ac: Pass --with-guile provided pkg-config path to
2114 GDB_GUILE_PROGRAM_NAMES.
2115 * configure: Regenerate.
2117 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2119 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2122 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2124 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2125 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2126 the list of sections determining GDB_OSABI_IRIX.
2128 2014-09-09 James Hogan <james.hogan@imgtec.com>
2130 * MAINTAINERS (Write After Approval): Add "James Hogan".
2132 2014-09-09 James Hogan <james.hogan@imgtec.com>
2134 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2136 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2138 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2140 2014-09-08 Doug Evans <xdje42@gmail.com>
2143 * guile.c: #include <signal.h>.
2144 (_initialize_guile): Block SIGCHLD while initializing Guile.
2146 Replaces the following, which is reverted.
2148 2014-07-26 Doug Evans <xdje42@gmail.com>
2151 * configure.ac: Add check for header gc/gc.h.
2152 Add check for function setenv.
2153 * configure: Regenerate.
2154 * config.in: Regenerate.
2155 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2157 2014-09-08 Doug Evans <xdje42@gmail.com>
2159 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2160 with named constant. Fix style of pointer comparison.
2161 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2163 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2166 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2167 decide whether we display the command on "show user".
2168 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2169 printing command name.
2170 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2171 * cli/cli-decode.c (cli_user_command_p): Create helper function
2172 to verify whether cmd_list_element is a user-defined command.
2174 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2178 Fix goto out of TRY_CATCH.
2180 2014-09-06 Doug Evans <xdje42@gmail.com>
2181 Tom Tromey <tromey@redhat.com>
2184 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2185 $_any_caller_matches.
2186 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2187 * python/lib/gdb/function/caller_is.py: New file.
2189 2014-09-06 Doug Evans <xdje42@gmail.com>
2191 * infcmd.c (program_info): Fix typo.
2193 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2196 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2197 'number'. New variable 'has_digit'. Rewrite code to deal with
2198 subexpressions on SDT probes.
2200 2014-09-04 Pedro Alves <palves@redhat.com>
2202 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2203 the input is only one character long.
2205 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2208 * f-valprint.c (f_val_print): Specify the correct print option to
2209 use when printing integer values.
2211 2014-09-04 Gary Benson <gbenson@redhat.com>
2213 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2214 Remove code to cope with LWPs wrapped as PIDs.
2215 Add assertions to ensure no wrapped LWPs are passed.
2217 2014-09-04 Pedro Alves <palves@redhat.com>
2219 * value.c (value_ranges_copy_adjusted): New function, factored out
2221 (value_contents_copy_raw): ... here.
2222 (unpack_value_bits_as_long_1): Rename back to ...
2223 (unpack_bits_as_long): ... this. Remove 'original_value' and
2224 'result' parameters. Change return type to LONGEST.
2225 (unpack_value_bits_as_long): Delete.
2226 (unpack_value_field_as_long_1): Delete.
2227 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2228 (unpack_value_bitfield): New function.
2229 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2230 (value_fetch_lazy): Use unpack_value_bitfield.
2231 * value.h (unpack_value_bits_as_long): Delete declaration.
2233 2014-09-03 Sasha Smundak <asmundak@google.com>
2235 * python/py-frame.c (frapy_read_register): New function.
2237 2014-09-03 James Hogan <james.hogan@imgtec.com>
2239 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2240 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2242 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2245 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2247 (add_cmd): Set "completer_handle_brkchars" to NULL.
2248 * cli/cli-decode.h (struct cmd_list_element)
2249 <completer_handle_brkchars>: New field.
2250 * command.h (completer_ftype_void): New typedef.
2251 (set_cmd_completer_handle_brkchars): New prototype.
2252 * completer.c (set_gdb_completion_word_break_characters): New
2254 (complete_line_internal): Call "completer_handle_brkchars"
2255 callback from command.
2256 * completer.h: Include "command.h".
2257 (set_gdb_completion_word_break_characters): New prototype.
2258 * python/py-cmd.c (cmdpy_completer_helper): New function.
2259 (cmdpy_completer_handle_brkchars): New function.
2260 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2261 (cmdpy_init): Set completer_handle_brkchars to
2262 cmdpy_completer_handle_brkchars.
2264 2014-09-03 Gary Benson <gbenson@redhat.com>
2266 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2267 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2268 Loop conditions changed to equivalent form.
2269 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2270 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2271 ALL_DEBUG_ADDRESS_REGISTERS.
2273 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2275 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2278 2014-09-02 Doug Evans <dje@google.com>
2280 * typeprint.c (find_global_typedef): Fix comment.
2282 2014-09-02 Gary Benson <gbenson@redhat.com>
2284 * i386-nat.h: Renamed as...
2285 * x86-nat.h: New file. All type, function and variable name
2286 prefixes changed from "i386_" to "x86_". All references updated.
2287 * i386-nat.c: Renamed as...
2288 * x86-nat.c: New file. All type, function and variable name
2289 prefixes changed from "i386_" to "x86_". All references updated.
2290 * common/i386-xstate.h: Renamed as...
2291 * common/x86-xstate.h: New file. All type, function and variable
2292 name prefixes changed from "i386_" to "x86_". All references
2294 * nat/i386-cpuid.h: Renamed as...
2295 * nat/x86-cpuid.h: New file. All type, function and variable name
2296 prefixes changed from "i386_" to "x86_". All references updated.
2297 * nat/i386-gcc-cpuid.h: Renamed as...
2298 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2299 name prefixes changed from "i386_" to "x86_". All references
2301 * nat/i386-dregs.h: Renamed as...
2302 * nat/x86-dregs.h: New file. All type, function and variable name
2303 prefixes changed from "i386_" to "x86_". All references updated.
2304 * nat/i386-dregs.c: Renamed as...
2305 * nat/x86-dregs.c: New file. All type, function and variable name
2306 prefixes changed from "i386_" to "x86_". All references updated.
2308 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2310 * varobj.c (_initialize_varobj): Move to the end of file.
2312 2014-08-29 Gary Benson <gbenson@redhat.com>
2314 * common/common-exceptions.h: New file.
2315 * common/common-exceptions.c: Likewise.
2316 * Makefile.in (SFILES): Add common/common-exceptions.c.
2317 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2318 (COMMON_OBS): Add common-exceptions.o.
2319 (common-exceptions.o): New rule.
2320 * exceptions.h (common-exceptions.h): Include.
2321 (gdb_setjmp.h): Do not include.
2322 (return_reason): Moved to common-exceptions.h.
2323 (enum return_reason): Likewise.
2324 (RETURN_MASK): Likewise.
2325 (typedef return_mask): Likewise.
2326 (enum errors): Likewise.
2327 (struct gdb_exception): Likewise.
2328 (exceptions_state_mc_init): Likewise.
2329 (exceptions_state_mc_action_iter): Likewise.
2330 (exceptions_state_mc_action_iter_1): Likewise.
2331 (TRY_CATCH): Likewise.
2332 (throw_exception): Likewise.
2333 (throw_verror): Likewise.
2334 (throw_vquit): Likewise.
2335 (throw_error): Likewise.
2336 (throw_quit): Likewise.
2337 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2338 (enum catcher_action): Likewise.
2339 (struct catcher): Likewise.
2340 (current_catcher): Likewise.
2341 (catcher_list_size): Likewise.
2342 (exceptions_state_mc_init): Likewise.
2343 (catcher_pop): Likewise.
2344 (exceptions_state_mc): Likewise.
2345 (exceptions_state_mc_action_iter): Likewise.
2346 (exceptions_state_mc_action_iter_1): Likewise.
2347 (throw_exception): Likewise.
2348 (exception_messages): Likewise.
2349 (exception_messages_size): Likewise.
2350 (throw_it): Likewise.
2351 (throw_verror): Likewise.
2352 (throw_vquit): Likewise.
2353 (throw_error): Likewise.
2354 (throw_quit): Likewise.
2355 (prepare_to_throw_exception): New function.
2357 2014-08-29 Gary Benson <gbenson@redhat.com>
2359 * common/gdb_setjmp.h: New file.
2360 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2361 * configure.ac: Move sigsetjmp check...
2362 * common/common.m4: ...here.
2363 * configure: Regenerate.
2364 * cp-support.c (SIGJMP_BUF): Delete.
2365 (SIGSETJMP): Likewise.
2366 (SIGLONGJMP): Likewise.
2367 * exceptions.h (gdb_setjmp.h): Include.
2368 (setjmp.h): Do not include.
2369 (EXCEPTIONS_SIGJMP_BUF): Delete.
2370 (EXCEPTIONS_SIGSETJMP): Likewise.
2371 (EXCEPTIONS_SIGLONGJMP): Likewise.
2372 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2374 * exceptions.c: Likewise.
2376 2014-08-29 Gary Benson <gbenson@redhat.com>
2378 * cleanups.h: Moved to...
2379 * common/cleanups.h: New file.
2380 * cleanups.c: Moved to...
2381 * common/cleanups.c: New file. Include common-defs.h and
2382 cleanups.h. Do not include defs.h.
2383 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2384 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2385 (cleanups.o): New rule.
2387 2014-08-29 Gary Benson <gbenson@redhat.com>
2389 * common/errors.h (internal_warning): New declaration.
2390 (internal_vwarning): Likewise.
2391 * common/errors.c (internal_warning): New function.
2392 * utils.h (internal_warning): Don't declare.
2393 (internal_vwarning): Likewise.
2394 * utils.c (internal_warning): Removed.
2396 2014-08-29 Gary Benson <gbenson@redhat.com>
2398 * main.c (captured_main): Use warning during startup.
2399 Prefix startup warning messages with command name.
2401 2014-08-29 Gary Benson <gbenson@redhat.com>
2403 * main.c (captured_main): Handle usage errors with error.
2405 2014-08-29 Gary Benson <gbenson@redhat.com>
2407 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2408 exit pair with a call to error. Wrap the message with _().
2410 2014-08-29 Gary Benson <gbenson@redhat.com>
2412 * main.c (captured_main): Replace a fprintf/exit
2413 pair with a call to error. Wrap the message with _().
2415 2014-08-29 Gary Benson <gbenson@redhat.com>
2417 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2418 pairs with calls to error. Wrap the message with _().
2420 2014-08-29 Gary Benson <gbenson@redhat.com>
2422 * utils.c (vwarning): Protect calls to target_terminal_ours
2425 2014-08-29 Gary Benson <gbenson@redhat.com>
2427 * exceptions.c (print_flush): Protect calls to
2428 target_terminal_ours and wrap_here.
2430 2014-08-29 Gary Benson <gbenson@redhat.com>
2432 * utils.h (filtered_printing_initialized): New declaration.
2433 * utils.c (abort_with_message): New function.
2434 (internal_vproblem): Use abort_with_message for first level
2435 recursive internal problems, and if gdb_stderr is not set up.
2436 Protect calls to target_terminal_ours, begin_line and query.
2438 2014-08-28 Doug Evans <dje@google.com>
2440 * symtab.c (in_prologue): Move definition to better spot.
2441 (skip_prologue_using_sal): Ditto.
2443 2014-08-28 Doug Evans <dje@google.com>
2445 * symtab.c (find_function_start_sal): Move definition to better spot.
2447 2014-08-28 Yao Qi <yao@codesourcery.com>
2449 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2450 found_stack_adjust in forward scan. Remove condition check
2451 on found_stack_adjust which is always true. Indent the code.
2453 2014-08-28 Yao Qi <yao@codesourcery.com>
2455 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2456 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2457 (dwarf_decode_lines): Remove argument
2458 want_line_info. Remove condition check on want_line_info.
2461 2014-08-27 Doug Evans <dje@google.com>
2463 * dwarf2read.c (dwarf_record_line): Fix typo.
2465 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2467 * target.h (struct target_ops::to_terminal_save_ours): Remove
2469 (target_terminal_save_ours): Remove macro.
2470 * target-delegates.c: Regenerate.
2471 * inf-child.c (inf_child_target): Don't set the nonexistent
2472 field to_terminal_save_ours.
2473 * inferior.h (child_terminal_save_ours): Remove declaration.
2474 * terminal.h (gdb_save_tty_state): New declaration.
2475 * inflow.c (child_terminal_save_ours): Rename to ...
2476 (gdb_save_tty_state): ... this.
2477 * tui/tui.c: Include terminal.h.
2478 (tui_enable): Use gdb_save_tty_state instead of
2479 target_terminal_save_ours.
2480 (tui_disable): Likewise.
2482 2014-08-25 Doug Evans <dje@google.com>
2484 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2485 Pass NULL instead of 0 for context pointer.
2487 2014-08-25 Yao Qi <yao@codesourcery.com>
2489 * dwarf2read.c: Fix grammatical error.
2491 2014-08-24 Yao Qi <yao@codesourcery.com>
2493 * dwarf2read.c (scan_partial_symbols): Update comments.
2494 Rename argument 'need_pc' with 'set_addrmap'.
2495 (add_partial_namespace): Rename argument 'need_pc' with
2497 (add_partial_module): Likewise.
2498 (add_partial_subprogram): Likewise. Update comments.
2499 (dwarf2_name): Fix typo.
2501 2014-08-22 Doug Evans <dje@google.com>
2504 * dwarf2read.c (dwarf_record_line_p): New function.
2505 (dwarf_decode_lines_1): Ignore subsequent line number entries
2506 for the same line if any entry had a non-zero discriminator.
2508 2014-08-22 Doug Evans <dje@google.com>
2510 * buildsym.h (record_line_ftype): New typedef.
2511 (record_line): Use it.
2512 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2513 (dwarf_decode_lines_1): Call them.
2515 2014-08-22 Yao Qi <yao@codesourcery.com>
2517 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2518 (ctf_end): Remove code.
2520 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2523 (linux_make_corefile_notes): call update_thread_list, protected against
2526 2014-08-21 Pedro Alves <palves@redhat.com>
2528 * infcmd.c (attach_command): Remove comment.
2530 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2532 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2533 unsigned LONGEST to ULONGEST.
2535 2014-08-20 Pedro Alves <palves@redhat.com>
2537 * Makefile.in (check-read1): New rule.
2539 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2541 * value.c (value_from_contents_and_address): Strip resolved_type's
2542 typedef layers before checking its TYPE_DATA_LOCATION.
2544 2014-08-20 Pedro Alves <palves@redhat.com>
2546 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2548 2014-08-20 Yao Qi <yao@codesourcery.com>
2550 * amd64-tdep.c (amd64_classify): Add a blank line after the
2551 example. Move "*/" to a new line.
2552 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2553 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2554 * dwarf2read.c (psymtab_include_file_name): Likewise.
2556 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2557 Pedro Alves <palves@redhat.com>
2561 * ada-lang.c (coerce_unspec_val_to_type): Use
2562 value_contents_copy_raw.
2563 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2564 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2565 * cp-valprint.c (cp_print_value_fields): Let the common printing
2566 code handle optimized out values.
2567 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2568 * d-valprint.c (dynamic_array_type): Use
2569 value_bits_any_optimized_out.
2570 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2571 check_any_valid fields.
2572 (check_pieced_value_bits): Delete and inline ...
2573 (check_pieced_synthetic_pointer): ... here.
2574 (check_pieced_value_validity): Delete.
2575 (check_pieced_value_invalid): Delete.
2576 (pieced_value_funcs): Remove check_validity and check_any_valid
2578 (read_pieced_value): Use mark_value_bits_optimized_out.
2579 (write_pieced_value): Switch to use
2580 mark_value_bytes_optimized_out.
2581 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2582 of assuming the whole value is optimized out.
2583 * findvar.c (read_frame_register_value): Remove special handling
2584 of optimized out registers.
2585 (value_from_register): Use mark_value_bytes_optimized_out.
2586 * frame-unwind.c (frame_unwind_got_optimized): Use
2587 mark_value_bytes_optimized_out.
2588 * jv-valprint.c (java_value_print): Adjust.
2589 (java_print_value_fields): Let the common printing code handle
2590 optimized out values.
2591 * mips-tdep.c (mips_print_register): Remove special handling of
2592 optimized out registers.
2593 * opencl-lang.c (lval_func_check_validity): Delete.
2594 (lval_func_check_any_valid): Delete.
2595 (opencl_value_funcs): Remove check_validity and check_any_valid
2597 * p-valprint.c (pascal_object_print_value_fields): Let the common
2598 printing code handle optimized out values.
2599 * stack.c (read_frame_arg): Remove special handling of optimized
2600 out values. Fetch both VAL and ENTRYVAL before comparing
2601 contents. Adjust to value_available_contents_eq rename.
2602 * valprint.c (valprint_check_validity)
2603 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2604 (val_print_array_elements): Adjust.
2605 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2606 (value_bits_any_optimized_out): New function.
2607 (value_entirely_covered_by_range_vector): New function, factored
2608 out from value_entirely_unavailable.
2609 (value_entirely_unavailable): Reimplement.
2610 (value_entirely_optimized_out): New function.
2611 (insert_into_bit_range_vector): New function, factored out from
2612 mark_value_bits_unavailable.
2613 (mark_value_bits_unavailable): Reimplement.
2614 (struct ranges_and_idx): New struct.
2615 (find_first_range_overlap_and_match): New function, factored out
2616 from value_available_contents_bits_eq.
2617 (value_available_contents_bits_eq): Rename to ...
2618 (value_contents_bits_eq): ... this. Check both unavailable
2619 contents and optimized out contents.
2620 (value_available_contents_eq): Rename to ...
2621 (value_contents_eq): ... this.
2622 (allocate_value_lazy): Remove reference to the old optimized_out
2624 (allocate_optimized_out_value): Use
2625 mark_value_bytes_optimized_out.
2626 (require_not_optimized_out): Adjust to check whether the
2627 optimized_out vec is empty.
2628 (ranges_copy_adjusted): New function, factored out from
2629 value_contents_copy_raw.
2630 (value_contents_copy_raw): Also copy the optimized out ranges.
2631 Assert the destination ranges aren't optimized out.
2632 (value_contents_copy): Update comment, remove call to
2633 require_not_optimized_out.
2634 (value_contents_equal): Adjust to check whether the optimized_out
2636 (set_value_optimized_out, value_optimized_out_const): Delete.
2637 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2639 (value_entirely_optimized_out, value_bits_valid): Delete.
2640 (value_copy): Take a VEC copy of the 'optimized_out' field.
2641 (value_primitive_field): Remove special handling of optimized out.
2642 (value_fetch_lazy): Assert that lazy values have no unavailable
2643 regions. Use value_bits_any_optimized_out. Remove some special
2644 handling for optimized out values.
2645 * value.h: Add intro comment about <optimized out> and
2647 (struct lval_funcs): Remove check_validity and check_any_valid
2649 (set_value_optimized_out, value_optimized_out_const): Remove.
2650 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2652 (value_bits_any_optimized_out): New declaration.
2653 (value_bits_valid): Delete declaration.
2654 (value_available_contents_eq): Rename to ...
2655 (value_contents_eq): ... this, and extend comments.
2657 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2659 Fix -fsanitize=address on unreadable inferior strings.
2660 * valprint.c (val_print_string): Fix access before BUFFER.
2662 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2664 * target.c (target_struct_size): Remove.
2665 (target_struct_allocsize): Remove.
2666 (DEFAULT_ALLOCSIZE): Remove.
2667 (target_ops_p): New typedef.
2668 (DEF_VEC_P (target_ops_p)): New vector type.
2669 (target_structs): Change type to VEC (target_ops_p).
2670 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2671 (find_default_run_target): Rewrite for loop following changes to
2674 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2676 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2677 Adjust code accordingly. Adjust function description comment.
2679 2014-08-19 Yao Qi <yao@codesourcery.com>
2681 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2684 2014-08-19 Alan Modra <amodra@gmail.com>
2686 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2687 * config.in: Regenerate.
2688 * configure: Regenerate.
2690 2014-08-19 Tom Tromey <tromey@redhat.com>
2691 Gary Benson <gbenson@redhat.com>
2693 * common/common-debug.h: New file.
2694 * common/common-debug.c: Likewise.
2695 * debug.c: Likewise.
2696 * Makefile.in (SFILES): Add common/common-debug.c.
2697 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2698 (COMMON_OBS): Add common-debug.o and debug.o.
2699 (common-debug.o): New rule.
2700 * common/common-defs.h: Include common-debug.h.
2701 * common/agent.c (debug_agent_printf): New function.
2702 (DEBUG_AGENT): Redefine.
2703 * nat/i386-dregs.c (debug_printf): Undefine.
2705 2014-08-19 Gary Benson <gbenson@redhat.com>
2707 * common/common-defs.h: Include print-utils.h.
2708 * utils.h: Do not include print-utils.h.
2710 2014-08-19 Tom Tromey <tromey@redhat.com>
2711 Gary Benson <gbenson@redhat.com>
2713 * common/common-types.h: New file.
2714 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2715 * common/common-defs.h: Include common-types.h.
2716 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2719 2014-08-19 Tom Tromey <tromey@redhat.com>
2720 Gary Benson <gbenson@redhat.com>
2722 * common/errors.h: New file.
2723 * common/errors.c: Likewise.
2724 * Makefile.in (SFILES): Add common/errors.c.
2725 (HFILES_NO_SRCDIR): Add common/errors.h.
2726 (COMMON_OBS): Add errors.o.
2727 (errors.o): New rule.
2728 * common/common-defs.h: Include errors.h.
2729 * utils.h (perror_with_name, error, verror, warning, vwarning):
2731 * common/common-utils.h: (malloc_failure, internal_error):
2734 2014-08-19 Gary Benson <gbenson@redhat.com>
2736 * utils.c (internal_vproblem): Always print the message.
2738 2014-08-18 Doug Evans <dje@google.com>
2740 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2742 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2744 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2745 Return 0 if TYPE is dynamic.
2746 (print_range): Add handling of dynamic ranges.
2748 2014-08-18 Keven Boell <keven.boell@intel.com>
2749 Joel Brobecker <brobecker@adacore.com>
2751 * gdbtypes.h (struct main_type): Add field "data_location".
2752 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2753 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2754 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2755 a dynamic data location.
2756 (resolve_dynamic_type): Add DW_AT_data_location handling.
2757 (copy_recursive, copy_type): Copy the data_location information
2759 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2760 * value.c (value_from_contents_and_address): Add
2761 DW_AT_data_location handling.
2763 2014-08-18 Keven Boell <keven.boell@intel.com>
2764 Joel Brobecker <brobecker@adacore.com>
2766 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2767 field "get_object_address".
2768 * dwarf2expr.c (execute_stack_op): Add handling for
2769 DW_OP_push_object_address.
2770 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2771 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2772 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2773 (dwarf_expr_get_obj_addr): New function.
2774 (dwarf_expr_ctx_funcs): Add get_object_address field.
2775 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2776 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2777 (dwarf2_evaluate_property): Add parameter "address". Use it.
2778 (needs_get_obj_addr): New function.
2779 (needs_frame_ctx_funcs): Add get_object_address field.
2780 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2781 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2782 (resolve_dynamic_array): Likewise.
2784 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2786 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2787 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2788 fixed value for records and unions for which some GNAT encodings
2791 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2793 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2794 rewrite to avoid "else if" and "else" constructs. Should be
2795 a no-op in practice.
2797 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2799 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2802 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2805 * eval.c: Update all calls to find_overload_match.
2806 * valarith.c: Likewise.
2807 (value_user_defined_cpp_op, value_user_defined_op): New
2808 argument NOSIDE. Update all callers.
2809 * valops.c (find_overload_match): New argument NOSIDE.
2810 * value.h (find_overload_match): Update signature.
2812 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2814 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2815 'items' methods instead of 'iteritems' method on dictionaries.
2817 2014-08-15 Doug Evans <dje@google.com>
2819 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2822 2014-08-15 Doug Evans <dje@google.com>
2824 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2826 2014-08-15 Doug Evans <dje@google.com>
2828 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2830 2014-08-15 Doug Evans <dje@google.com>
2832 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2835 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2837 * dcache.h: Include target.h, to avoid compile time warnings.
2839 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2841 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2842 frame_info" partial declaration.
2843 * gdbarch.h: Regenerate.
2845 2014-08-15 Yao Qi <yao@codesourcery.com>
2847 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2848 Add parameter 'decode_for_pst_p'. Callers update.
2850 2014-08-13 Yao Qi <yao@codesourcery.com>
2853 * configure.ac: Use local variable 'pos'.
2854 * configure: Regenerated.
2856 2014-08-11 Doug Evans <dje@google.com>
2858 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2859 message, it is redundant with "Reading symbols from ..." message.
2861 2014-08-10 Doug Evans <xdje42@gmail.com>
2863 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2865 2014-08-09 Yao Qi <yao@codesourcery.com>
2868 * remote.c (remote_xfer_partial): Remove dead code.
2870 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2872 * ia64-linux-tdep.c: Include "regset.h".
2873 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2874 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2875 (ia64_linux_supply_fpregset): New function.
2876 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2877 (ia64_linux_regset_from_core_section): New function.
2878 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2881 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2883 * m68klinux-tdep.c: Include "regset.h".
2884 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2885 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2886 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2887 (m68k_linux_regset_from_core_section): New function.
2888 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2891 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2893 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2894 function. Move logic to...
2895 (tilegx_linux_regmap): ... this new register map.
2896 (tilegx_linux_regset): Refer to register map, replace supply
2897 method by regcache_supply_regset, and add collect method.
2898 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2899 TILEGX_FIRST_EASY_REGNUM.
2901 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2903 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2904 that calls regcache_supply_regset and handles the EPC register
2905 separately. Move main logic to...
2906 (score7_linux_gregmap): ... this new register map.
2907 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2908 (score7_linux_gregset): Refer to register map. Add collect method.
2909 (score7_linux_regset_from_core_section): Replace
2910 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2911 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2912 (struct regset): Delete unused forward declaraction.
2913 (struct pt_regs): Delete structure definition.
2914 (elf_gregset_t): Delete typedef.
2916 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2919 (nios2_core_regset): Add collect method.
2921 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2923 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2924 platform-independent and don't write to read-only input buffer.
2925 (m32r_linux_collect_gregset): New function.
2926 (m32r_linux_gregset): Add collect method.
2928 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2930 * hppa-linux-tdep.c (greg_map): Rename to...
2931 (hppa_linux_gregmap): ... this. Also convert to
2932 regcache_map_entry format.
2933 (hppa_linux_supply_regset): Delete function.
2934 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2935 (hppa_linux_fpregmap): ... this new register map.
2936 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2937 register map, replace supply method by regcache_supply_regset, and
2938 add collect method regcache_collect_regset.
2940 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2943 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2944 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2945 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2946 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2947 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2948 (frv_linux_supply_gregset): Replace main logic by call to
2949 regcache_supply_regset, but keep clearing gr32-gr63.
2950 (frv_linux_supply_fpregset): Delete function.
2951 (frv_linux_gregset): Refer to appropriate register map and add
2952 regcache_collect_regset as the collect method.
2953 (frv_linux_fpregset): Likewise. Also exchange the supply method
2954 by regcache_supply_regset.
2956 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2958 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2959 by call to alpha_supply_int_regs.
2960 (alpha_linux_collect_gregset): New function.
2961 (alpha_linux_supply_fpregset): Replace logic by call to
2962 alpha_supply_fp_regs.
2963 (alpha_linux_collect_fpregset): New function.
2964 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2966 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2968 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2969 by call to regcache_collect_regset.
2970 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2971 instead of aarch64_linux_supply_gregset/_fpregset.
2972 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2973 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2974 header file instead.
2975 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2976 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2977 functions. Move logic to ...
2978 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2980 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2981 refer to new register maps, replace *_regset_from_core by
2982 regcache_supply_regset, and also use regcache_collect_regset.
2983 * aarch64-linux-tdep.h: Include "regset.h".
2984 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2986 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2987 macros, moved from C source file.
2988 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2989 variable declarations.
2991 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993 * s390-linux-nat.c: Include "regset.h".
2994 (regmap_gregset): Delete macro.
2995 (s390_64_regmap_gregset): New register map for
2996 regcache_supply/_collect_regset.
2997 (s390_64_gregset): New regset.
2998 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2999 (regmap_fpregset): Delete macro.
3000 (s390_native_supply, s390_native_collect): Delete functions.
3001 (supply_gregset, fill_gregset): Replace s390-specific regmap
3002 handling by a call to regcache_supply/_collect_regset.
3003 (supply_fpregset, fill_fpregset): Call regcache_supply/
3004 _collect_regset instead of s390_native_supply/_collect.
3005 (fetch_regset, store_regset): Likewise. Also change the last
3006 parameter to a regset instead of a regmap.
3007 (s390_linux_fetch_inferior_registers)
3008 (390_linux_store_inferior_registers): Adjust last parameter in
3009 calls to fetch_regset and store_regset.
3010 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3011 (s390_gregmap): ... this. Also make static const and convert to
3012 regcache_map_entry format.
3013 (s390x_regmap_gregset): Delete.
3014 (s390_regmap_fpregset): Rename to...
3015 (s390_fpregmap): ... this. Make static const and convert to
3016 regcache_map_entry format.
3017 (s390_regmap_upper, s390_regmap_last_break)
3018 (s390x_regmap_last_break, s390_regmap_system_call)
3019 (s390_regmap_tdb): Likewise.
3020 (s390_supply_regset, s390_collect_regset): Remove functions.
3021 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3023 (s390_gregset, s390_fpregset, s390_upper_regset)
3024 (s390_last_break_regset, s390x_last_break_regset)
3025 (s390_system_call_regset, s390_tdb_regset): Make global and
3026 replace s390_supply/_collect_regset by regcache_supply/
3028 (s390x_gregset): Delete.
3029 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3030 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3031 (s390_regmap_fpregset, s390_regmap_last_break)
3032 (s390x_regmap_last_break, s390_regmap_system_call)
3033 (s390_regmap_tdb): Delete global variable declarations.
3034 (s390_gregset, s390_fpregset, s390_last_break_regset)
3035 (s390x_last_break_regset, s390_system_call_regset)
3036 (s390_tdb_regset): New global variable declarations.
3038 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3040 * regcache.c: Include "regset.h".
3041 (regcache_transfer_regset): New local function.
3042 (regcache_supply_regset, regcache_collect_regset): New functions.
3043 * regcache.h (struct regcache_map_entry): New structure.
3044 (REGCACHE_MAP_SKIP): New enum value.
3045 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3047 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3049 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3050 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3051 (ppc_linux_collect_gregset ): Likewise.
3052 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3053 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3054 (ppc_collect_vrregset): Likewise.
3055 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3058 2014-08-07 Yao Qi <yao@codesourcery.com>
3060 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3061 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3062 * remote.c (remote_read_bytes): Likewise.
3064 2014-08-07 Yao Qi <yao@codesourcery.com>
3066 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3068 2014-08-07 Yao Qi <yao@codesourcery.com>
3071 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3072 TARGET_XFER_OK instead of 0.
3074 2014-08-07 Gary Benson <gbenson@redhat.com>
3076 * common/common-defs.h: Include errno.h.
3077 * defs.h: Do not include errno.h.
3078 * ada-typeprint.c: Likewise.
3079 * c-typeprint.c: Likewise.
3080 * core-regset.c: Likewise.
3081 * corefile.c: Likewise.
3082 * corelow.c: Likewise.
3083 * event-loop.c: Likewise.
3084 * f-typeprint.c: Likewise.
3085 * gnu-nat.c: Likewise.
3086 * go32-nat.c: Likewise.
3087 * i386gnu-nat.c: Likewise.
3088 * m2-typeprint.c: Likewise.
3089 * nat/linux-btrace.c: Likewise.
3090 * p-typeprint.c: Likewise.
3091 * procfs.c: Likewise.
3092 * remote-sim.c: Likewise.
3093 * rs6000-nat.c: Likewise.
3094 * target.c: Likewise.
3095 * typeprint.c: Likewise.
3096 * ui-file.c: Likewise.
3097 * valops.c: Likewise.
3098 * valprint.c: Likewise.
3100 2014-08-07 Gary Benson <gbenson@redhat.com>
3102 * common/common-defs.h: Include string.h.
3103 * aarch64-tdep.c: Do not include string.h.
3104 * ada-exp.y: Likewise.
3105 * ada-lang.c: Likewise.
3106 * ada-lex.l: Likewise.
3107 * ada-typeprint.c: Likewise.
3108 * ada-valprint.c: Likewise.
3109 * aix-thread.c: Likewise.
3110 * alpha-linux-tdep.c: Likewise.
3111 * alpha-mdebug-tdep.c: Likewise.
3112 * alpha-nat.c: Likewise.
3113 * alpha-osf1-tdep.c: Likewise.
3114 * alpha-tdep.c: Likewise.
3115 * alphanbsd-tdep.c: Likewise.
3116 * amd64-dicos-tdep.c: Likewise.
3117 * amd64-linux-tdep.c: Likewise.
3118 * amd64-nat.c: Likewise.
3119 * amd64-sol2-tdep.c: Likewise.
3120 * amd64fbsd-tdep.c: Likewise.
3121 * amd64obsd-tdep.c: Likewise.
3122 * arch-utils.c: Likewise.
3123 * arm-linux-nat.c: Likewise.
3124 * arm-linux-tdep.c: Likewise.
3125 * arm-tdep.c: Likewise.
3126 * arm-wince-tdep.c: Likewise.
3127 * armbsd-tdep.c: Likewise.
3128 * armnbsd-nat.c: Likewise.
3129 * armnbsd-tdep.c: Likewise.
3130 * armobsd-tdep.c: Likewise.
3131 * avr-tdep.c: Likewise.
3132 * ax-gdb.c: Likewise.
3133 * ax-general.c: Likewise.
3134 * bcache.c: Likewise.
3135 * bfin-tdep.c: Likewise.
3136 * breakpoint.c: Likewise.
3137 * build-id.c: Likewise.
3138 * buildsym.c: Likewise.
3139 * c-exp.y: Likewise.
3140 * c-lang.c: Likewise.
3141 * c-typeprint.c: Likewise.
3142 * c-valprint.c: Likewise.
3143 * charset.c: Likewise.
3144 * cli-out.c: Likewise.
3145 * cli/cli-cmds.c: Likewise.
3146 * cli/cli-decode.c: Likewise.
3147 * cli/cli-dump.c: Likewise.
3148 * cli/cli-interp.c: Likewise.
3149 * cli/cli-logging.c: Likewise.
3150 * cli/cli-script.c: Likewise.
3151 * cli/cli-setshow.c: Likewise.
3152 * cli/cli-utils.c: Likewise.
3153 * coffread.c: Likewise.
3154 * common/agent.c: Likewise.
3155 * common/buffer.c: Likewise.
3156 * common/buffer.h: Likewise.
3157 * common/common-utils.c: Likewise.
3158 * common/filestuff.c: Likewise.
3159 * common/filestuff.c: Likewise.
3160 * common/format.c: Likewise.
3161 * common/print-utils.c: Likewise.
3162 * common/rsp-low.c: Likewise.
3163 * common/signals.c: Likewise.
3164 * common/vec.h: Likewise.
3165 * common/xml-utils.c: Likewise.
3166 * core-regset.c: Likewise.
3167 * corefile.c: Likewise.
3168 * corelow.c: Likewise.
3169 * cp-abi.c: Likewise.
3170 * cp-name-parser.y: Likewise.
3171 * cp-support.c: Likewise.
3172 * cp-valprint.c: Likewise.
3173 * cris-tdep.c: Likewise.
3174 * d-exp.y: Likewise.
3175 * darwin-nat.c: Likewise.
3176 * dbxread.c: Likewise.
3177 * dcache.c: Likewise.
3178 * demangle.c: Likewise.
3179 * dicos-tdep.c: Likewise.
3180 * disasm.c: Likewise.
3181 * doublest.c: Likewise.
3182 * dsrec.c: Likewise.
3183 * dummy-frame.c: Likewise.
3184 * dwarf2-frame.c: Likewise.
3185 * dwarf2loc.c: Likewise.
3186 * dwarf2read.c: Likewise.
3187 * elfread.c: Likewise.
3188 * environ.c: Likewise.
3190 * event-loop.c: Likewise.
3191 * exceptions.c: Likewise.
3193 * expprint.c: Likewise.
3194 * f-exp.y: Likewise.
3195 * f-lang.c: Likewise.
3196 * f-typeprint.c: Likewise.
3197 * f-valprint.c: Likewise.
3198 * fbsd-nat.c: Likewise.
3199 * findcmd.c: Likewise.
3200 * findvar.c: Likewise.
3201 * fork-child.c: Likewise.
3202 * frame.c: Likewise.
3203 * frv-linux-tdep.c: Likewise.
3204 * frv-tdep.c: Likewise.
3206 * gdb_bfd.c: Likewise.
3207 * gdbarch.c: Likewise.
3208 * gdbarch.sh: Likewise.
3209 * gdbtypes.c: Likewise.
3210 * gnu-nat.c: Likewise.
3211 * gnu-v2-abi.c: Likewise.
3212 * gnu-v3-abi.c: Likewise.
3213 * go-exp.y: Likewise.
3214 * go-lang.c: Likewise.
3215 * go32-nat.c: Likewise.
3216 * guile/guile.c: Likewise.
3217 * guile/scm-auto-load.c: Likewise.
3218 * hppa-hpux-tdep.c: Likewise.
3219 * hppa-linux-nat.c: Likewise.
3220 * hppanbsd-tdep.c: Likewise.
3221 * hppaobsd-tdep.c: Likewise.
3222 * i386-cygwin-tdep.c: Likewise.
3223 * i386-dicos-tdep.c: Likewise.
3224 * i386-linux-tdep.c: Likewise.
3225 * i386-nto-tdep.c: Likewise.
3226 * i386-sol2-tdep.c: Likewise.
3227 * i386-tdep.c: Likewise.
3228 * i386bsd-tdep.c: Likewise.
3229 * i386gnu-nat.c: Likewise.
3230 * i386nbsd-tdep.c: Likewise.
3231 * i386obsd-tdep.c: Likewise.
3232 * i387-tdep.c: Likewise.
3233 * ia64-libunwind-tdep.c: Likewise.
3234 * ia64-linux-nat.c: Likewise.
3235 * inf-child.c: Likewise.
3236 * inf-ptrace.c: Likewise.
3237 * inf-ttrace.c: Likewise.
3238 * infcall.c: Likewise.
3239 * infcmd.c: Likewise.
3240 * inflow.c: Likewise.
3241 * infrun.c: Likewise.
3242 * interps.c: Likewise.
3243 * iq2000-tdep.c: Likewise.
3244 * irix5-nat.c: Likewise.
3245 * jv-exp.y: Likewise.
3246 * jv-lang.c: Likewise.
3247 * jv-typeprint.c: Likewise.
3248 * jv-valprint.c: Likewise.
3249 * language.c: Likewise.
3250 * linux-fork.c: Likewise.
3251 * linux-nat.c: Likewise.
3252 * lm32-tdep.c: Likewise.
3253 * m2-exp.y: Likewise.
3254 * m2-typeprint.c: Likewise.
3255 * m32c-tdep.c: Likewise.
3256 * m32r-linux-nat.c: Likewise.
3257 * m32r-linux-tdep.c: Likewise.
3258 * m32r-rom.c: Likewise.
3259 * m32r-tdep.c: Likewise.
3260 * m68hc11-tdep.c: Likewise.
3261 * m68k-tdep.c: Likewise.
3262 * m68kbsd-tdep.c: Likewise.
3263 * m68klinux-nat.c: Likewise.
3264 * m68klinux-tdep.c: Likewise.
3265 * m88k-tdep.c: Likewise.
3266 * machoread.c: Likewise.
3267 * macrocmd.c: Likewise.
3269 * mdebugread.c: Likewise.
3270 * mem-break.c: Likewise.
3271 * memattr.c: Likewise.
3272 * memory-map.c: Likewise.
3273 * mep-tdep.c: Likewise.
3274 * mi/mi-cmd-break.c: Likewise.
3275 * mi/mi-cmd-disas.c: Likewise.
3276 * mi/mi-cmd-env.c: Likewise.
3277 * mi/mi-cmd-stack.c: Likewise.
3278 * mi/mi-cmd-var.c: Likewise.
3279 * mi/mi-cmds.c: Likewise.
3280 * mi/mi-console.c: Likewise.
3281 * mi/mi-getopt.c: Likewise.
3282 * mi/mi-interp.c: Likewise.
3283 * mi/mi-main.c: Likewise.
3284 * mi/mi-parse.c: Likewise.
3285 * microblaze-rom.c: Likewise.
3286 * microblaze-tdep.c: Likewise.
3287 * mingw-hdep.c: Likewise.
3288 * minidebug.c: Likewise.
3289 * minsyms.c: Likewise.
3290 * mips-irix-tdep.c: Likewise.
3291 * mips-linux-tdep.c: Likewise.
3292 * mips-tdep.c: Likewise.
3293 * mips64obsd-tdep.c: Likewise.
3294 * mipsnbsd-tdep.c: Likewise.
3295 * mipsread.c: Likewise.
3296 * mn10300-linux-tdep.c: Likewise.
3297 * mn10300-tdep.c: Likewise.
3298 * monitor.c: Likewise.
3299 * moxie-tdep.c: Likewise.
3300 * mt-tdep.c: Likewise.
3301 * nat/linux-btrace.c: Likewise.
3302 * nat/linux-osdata.c: Likewise.
3303 * nat/linux-procfs.c: Likewise.
3304 * nat/linux-ptrace.c: Likewise.
3305 * nat/linux-waitpid.c: Likewise.
3306 * nbsd-tdep.c: Likewise.
3307 * nios2-linux-tdep.c: Likewise.
3308 * nto-procfs.c: Likewise.
3309 * nto-tdep.c: Likewise.
3310 * objc-lang.c: Likewise.
3311 * objfiles.c: Likewise.
3312 * opencl-lang.c: Likewise.
3313 * osabi.c: Likewise.
3314 * osdata.c: Likewise.
3315 * p-exp.y: Likewise.
3316 * p-lang.c: Likewise.
3317 * p-typeprint.c: Likewise.
3318 * parse.c: Likewise.
3319 * posix-hdep.c: Likewise.
3320 * ppc-linux-nat.c: Likewise.
3321 * ppc-sysv-tdep.c: Likewise.
3322 * ppcfbsd-tdep.c: Likewise.
3323 * ppcnbsd-tdep.c: Likewise.
3324 * ppcobsd-tdep.c: Likewise.
3325 * printcmd.c: Likewise.
3326 * procfs.c: Likewise.
3327 * prologue-value.c: Likewise.
3328 * python/py-auto-load.c: Likewise.
3329 * python/py-gdb-readline.c: Likewise.
3330 * ravenscar-thread.c: Likewise.
3331 * regcache.c: Likewise.
3332 * registry.c: Likewise.
3333 * remote-fileio.c: Likewise.
3334 * remote-m32r-sdi.c: Likewise.
3335 * remote-mips.c: Likewise.
3336 * remote-notif.c: Likewise.
3337 * remote-sim.c: Likewise.
3338 * remote.c: Likewise.
3339 * reverse.c: Likewise.
3340 * rs6000-aix-tdep.c: Likewise.
3341 * ser-base.c: Likewise.
3342 * ser-go32.c: Likewise.
3343 * ser-mingw.c: Likewise.
3344 * ser-pipe.c: Likewise.
3345 * ser-tcp.c: Likewise.
3346 * ser-unix.c: Likewise.
3347 * serial.c: Likewise.
3348 * sh-tdep.c: Likewise.
3349 * sh64-tdep.c: Likewise.
3350 * shnbsd-tdep.c: Likewise.
3352 * sol-thread.c: Likewise.
3353 * solib-dsbt.c: Likewise.
3354 * solib-frv.c: Likewise.
3355 * solib-osf.c: Likewise.
3356 * solib-som.c: Likewise.
3357 * solib-spu.c: Likewise.
3358 * solib-target.c: Likewise.
3359 * solib.c: Likewise.
3360 * somread.c: Likewise.
3361 * source.c: Likewise.
3362 * sparc-nat.c: Likewise.
3363 * sparc-sol2-tdep.c: Likewise.
3364 * sparc-tdep.c: Likewise.
3365 * sparc64-tdep.c: Likewise.
3366 * sparc64fbsd-tdep.c: Likewise.
3367 * sparc64nbsd-tdep.c: Likewise.
3368 * sparcnbsd-tdep.c: Likewise.
3369 * spu-linux-nat.c: Likewise.
3370 * spu-multiarch.c: Likewise.
3371 * spu-tdep.c: Likewise.
3372 * stabsread.c: Likewise.
3373 * stack.c: Likewise.
3374 * std-regs.c: Likewise.
3375 * symfile.c: Likewise.
3376 * symmisc.c: Likewise.
3377 * symtab.c: Likewise.
3378 * target.c: Likewise.
3379 * thread.c: Likewise.
3380 * tilegx-linux-nat.c: Likewise.
3381 * tilegx-tdep.c: Likewise.
3383 * tracepoint.c: Likewise.
3384 * tui/tui-command.c: Likewise.
3385 * tui/tui-data.c: Likewise.
3386 * tui/tui-disasm.c: Likewise.
3387 * tui/tui-file.c: Likewise.
3388 * tui/tui-layout.c: Likewise.
3389 * tui/tui-out.c: Likewise.
3390 * tui/tui-regs.c: Likewise.
3391 * tui/tui-source.c: Likewise.
3392 * tui/tui-stack.c: Likewise.
3393 * tui/tui-win.c: Likewise.
3394 * tui/tui-windata.c: Likewise.
3395 * tui/tui-winsource.c: Likewise.
3396 * typeprint.c: Likewise.
3397 * ui-file.c: Likewise.
3398 * ui-out.c: Likewise.
3399 * user-regs.c: Likewise.
3400 * utils.c: Likewise.
3401 * v850-tdep.c: Likewise.
3402 * valarith.c: Likewise.
3403 * valops.c: Likewise.
3404 * valprint.c: Likewise.
3405 * value.c: Likewise.
3406 * varobj.c: Likewise.
3407 * vax-tdep.c: Likewise.
3408 * vaxnbsd-tdep.c: Likewise.
3409 * vaxobsd-tdep.c: Likewise.
3410 * windows-nat.c: Likewise.
3411 * xcoffread.c: Likewise.
3412 * xml-support.c: Likewise.
3413 * xstormy16-tdep.c: Likewise.
3414 * xtensa-linux-nat.c: Likewise.
3416 2014-08-07 Gary Benson <gbenson@redhat.com>
3418 * common/common-defs.h: Include gdb_assert.h.
3419 * aarch64-tdep.c: Do not include gdb_assert.h.
3420 * addrmap.c: Likewise.
3421 * aix-thread.c: Likewise.
3422 * alpha-linux-tdep.c: Likewise.
3423 * alpha-mdebug-tdep.c: Likewise.
3424 * alphanbsd-tdep.c: Likewise.
3425 * amd64-nat.c: Likewise.
3426 * amd64-tdep.c: Likewise.
3427 * amd64bsd-nat.c: Likewise.
3428 * amd64fbsd-nat.c: Likewise.
3429 * amd64fbsd-tdep.c: Likewise.
3430 * amd64nbsd-nat.c: Likewise.
3431 * amd64nbsd-tdep.c: Likewise.
3432 * amd64obsd-nat.c: Likewise.
3433 * amd64obsd-tdep.c: Likewise.
3434 * arch-utils.c: Likewise.
3435 * arm-tdep.c: Likewise.
3436 * armbsd-tdep.c: Likewise.
3438 * bcache.c: Likewise.
3439 * bfin-tdep.c: Likewise.
3440 * blockframe.c: Likewise.
3441 * breakpoint.c: Likewise.
3442 * bsd-kvm.c: Likewise.
3443 * bsd-uthread.c: Likewise.
3444 * buildsym.c: Likewise.
3445 * c-exp.y: Likewise.
3446 * c-lang.c: Likewise.
3447 * charset.c: Likewise.
3448 * cleanups.c: Likewise.
3449 * cli-out.c: Likewise.
3450 * cli/cli-decode.c: Likewise.
3451 * cli/cli-dump.c: Likewise.
3452 * cli/cli-logging.c: Likewise.
3453 * cli/cli-script.c: Likewise.
3454 * cli/cli-utils.c: Likewise.
3455 * coffread.c: Likewise.
3456 * common/common-utils.c: Likewise.
3457 * common/queue.h: Likewise.
3458 * common/signals.c: Likewise.
3459 * common/vec.h: Likewise.
3460 * complaints.c: Likewise.
3461 * completer.c: Likewise.
3462 * corelow.c: Likewise.
3463 * cp-abi.c: Likewise.
3464 * cp-name-parser.y: Likewise.
3465 * cp-namespace.c: Likewise.
3466 * cp-support.c: Likewise.
3467 * cris-tdep.c: Likewise.
3468 * dbxread.c: Likewise.
3469 * dictionary.c: Likewise.
3470 * doublest.c: Likewise.
3471 * dsrec.c: Likewise.
3472 * dummy-frame.c: Likewise.
3473 * dwarf2-frame-tailcall.c: Likewise.
3474 * dwarf2-frame.c: Likewise.
3475 * dwarf2expr.c: Likewise.
3476 * dwarf2loc.c: Likewise.
3477 * dwarf2read.c: Likewise.
3479 * event-loop.c: Likewise.
3480 * exceptions.c: Likewise.
3481 * expprint.c: Likewise.
3482 * f-valprint.c: Likewise.
3483 * fbsd-nat.c: Likewise.
3484 * findvar.c: Likewise.
3485 * frame-unwind.c: Likewise.
3486 * frame.c: Likewise.
3487 * frv-tdep.c: Likewise.
3488 * gcore.c: Likewise.
3489 * gdb-dlfcn.c: Likewise.
3490 * gdb_bfd.c: Likewise.
3491 * gdbarch.c: Likewise.
3492 * gdbarch.sh: Likewise.
3493 * gdbtypes.c: Likewise.
3494 * gnu-nat.c: Likewise.
3495 * gnu-v3-abi.c: Likewise.
3496 * go-lang.c: Likewise.
3497 * guile/scm-exception.c: Likewise.
3498 * guile/scm-gsmob.c: Likewise.
3499 * guile/scm-lazy-string.c: Likewise.
3500 * guile/scm-math.c: Likewise.
3501 * guile/scm-pretty-print.c: Likewise.
3502 * guile/scm-safe-call.c: Likewise.
3503 * guile/scm-utils.c: Likewise.
3504 * guile/scm-value.c: Likewise.
3505 * h8300-tdep.c: Likewise.
3506 * hppa-hpux-nat.c: Likewise.
3507 * hppa-tdep.c: Likewise.
3508 * hppanbsd-tdep.c: Likewise.
3509 * hppaobsd-tdep.c: Likewise.
3510 * i386-darwin-nat.c: Likewise.
3511 * i386-darwin-tdep.c: Likewise.
3512 * i386-nto-tdep.c: Likewise.
3513 * i386-tdep.c: Likewise.
3514 * i386bsd-nat.c: Likewise.
3515 * i386fbsd-tdep.c: Likewise.
3516 * i386gnu-nat.c: Likewise.
3517 * i386nbsd-tdep.c: Likewise.
3518 * i386obsd-tdep.c: Likewise.
3519 * i387-tdep.c: Likewise.
3520 * ia64-libunwind-tdep.c: Likewise.
3521 * ia64-tdep.c: Likewise.
3522 * inf-ptrace.c: Likewise.
3523 * inf-ttrace.c: Likewise.
3524 * infcall.c: Likewise.
3525 * infcmd.c: Likewise.
3526 * infrun.c: Likewise.
3527 * inline-frame.c: Likewise.
3528 * interps.c: Likewise.
3529 * jv-lang.c: Likewise.
3530 * jv-typeprint.c: Likewise.
3531 * linux-fork.c: Likewise.
3532 * linux-nat.c: Likewise.
3533 * linux-thread-db.c: Likewise.
3534 * m32c-tdep.c: Likewise.
3535 * m32r-linux-nat.c: Likewise.
3536 * m32r-tdep.c: Likewise.
3537 * m68k-tdep.c: Likewise.
3538 * m68kbsd-nat.c: Likewise.
3539 * m68kbsd-tdep.c: Likewise.
3540 * m88k-tdep.c: Likewise.
3541 * machoread.c: Likewise.
3542 * macroexp.c: Likewise.
3543 * macrotab.c: Likewise.
3544 * maint.c: Likewise.
3545 * mdebugread.c: Likewise.
3546 * memory-map.c: Likewise.
3547 * mep-tdep.c: Likewise.
3548 * mi/mi-common.c: Likewise.
3549 * microblaze-tdep.c: Likewise.
3550 * mingw-hdep.c: Likewise.
3551 * mips-linux-nat.c: Likewise.
3552 * mips-linux-tdep.c: Likewise.
3553 * mips-tdep.c: Likewise.
3554 * mips64obsd-tdep.c: Likewise.
3555 * mipsnbsd-tdep.c: Likewise.
3556 * mn10300-linux-tdep.c: Likewise.
3557 * mn10300-tdep.c: Likewise.
3558 * moxie-tdep.c: Likewise.
3559 * mt-tdep.c: Likewise.
3560 * nat/linux-btrace.c: Likewise.
3561 * nat/linux-osdata.c: Likewise.
3562 * nat/linux-ptrace.c: Likewise.
3563 * nat/mips-linux-watch.c: Likewise.
3564 * nios2-linux-tdep.c: Likewise.
3565 * nios2-tdep.c: Likewise.
3566 * objc-lang.c: Likewise.
3567 * objfiles.c: Likewise.
3568 * obsd-nat.c: Likewise.
3569 * opencl-lang.c: Likewise.
3570 * osabi.c: Likewise.
3571 * parse.c: Likewise.
3572 * ppc-linux-nat.c: Likewise.
3573 * ppc-sysv-tdep.c: Likewise.
3574 * ppcfbsd-nat.c: Likewise.
3575 * ppcfbsd-tdep.c: Likewise.
3576 * ppcnbsd-nat.c: Likewise.
3577 * ppcnbsd-tdep.c: Likewise.
3578 * ppcobsd-nat.c: Likewise.
3579 * ppcobsd-tdep.c: Likewise.
3580 * printcmd.c: Likewise.
3581 * procfs.c: Likewise.
3582 * prologue-value.c: Likewise.
3583 * psymtab.c: Likewise.
3584 * python/py-lazy-string.c: Likewise.
3585 * python/py-value.c: Likewise.
3586 * regcache.c: Likewise.
3587 * reggroups.c: Likewise.
3588 * registry.c: Likewise.
3589 * remote-sim.c: Likewise.
3590 * remote.c: Likewise.
3591 * rs6000-aix-tdep.c: Likewise.
3592 * rs6000-tdep.c: Likewise.
3593 * s390-linux-tdep.c: Likewise.
3594 * score-tdep.c: Likewise.
3595 * ser-base.c: Likewise.
3596 * ser-mingw.c: Likewise.
3597 * sh-tdep.c: Likewise.
3598 * sh64-tdep.c: Likewise.
3599 * solib-darwin.c: Likewise.
3600 * solib-spu.c: Likewise.
3601 * solib-svr4.c: Likewise.
3602 * source.c: Likewise.
3603 * sparc-nat.c: Likewise.
3604 * sparc-sol2-tdep.c: Likewise.
3605 * sparc-tdep.c: Likewise.
3606 * sparc64-sol2-tdep.c: Likewise.
3607 * sparc64-tdep.c: Likewise.
3608 * sparc64fbsd-tdep.c: Likewise.
3609 * sparc64nbsd-tdep.c: Likewise.
3610 * sparc64obsd-tdep.c: Likewise.
3611 * sparcnbsd-tdep.c: Likewise.
3612 * sparcobsd-tdep.c: Likewise.
3613 * spu-multiarch.c: Likewise.
3614 * spu-tdep.c: Likewise.
3615 * stabsread.c: Likewise.
3616 * stack.c: Likewise.
3617 * symfile.c: Likewise.
3618 * symtab.c: Likewise.
3619 * target-descriptions.c: Likewise.
3620 * target-memory.c: Likewise.
3621 * target.c: Likewise.
3622 * tic6x-linux-tdep.c: Likewise.
3623 * tic6x-tdep.c: Likewise.
3624 * tilegx-linux-nat.c: Likewise.
3625 * tilegx-tdep.c: Likewise.
3627 * tramp-frame.c: Likewise.
3628 * tui/tui-out.c: Likewise.
3629 * tui/tui-winsource.c: Likewise.
3630 * ui-out.c: Likewise.
3631 * user-regs.c: Likewise.
3632 * utils.c: Likewise.
3633 * v850-tdep.c: Likewise.
3634 * valops.c: Likewise.
3635 * value.c: Likewise.
3636 * varobj.c: Likewise.
3637 * vax-nat.c: Likewise.
3638 * xml-syscall.c: Likewise.
3639 * xml-tdesc.c: Likewise.
3640 * xstormy16-tdep.c: Likewise.
3641 * xtensa-linux-nat.c: Likewise.
3642 * xtensa-tdep.c: Likewise.
3644 2014-08-07 Gary Benson <gbenson@redhat.com>
3646 * common/common-defs.h: Include common-utils.h.
3647 * defs.h: Do not include common-utils.h.
3648 * common/gdb_assert.h: Likewise.
3649 * darwin-nat.h: Likewise.
3650 * nat/linux-btrace.c: Likewise.
3651 * target/waitstatus.h: Likewise.
3653 2014-08-07 Gary Benson <gbenson@redhat.com>
3655 * common/common-defs.h: Include ptid.h.
3656 * defs.h: Do not include ptid.h.
3657 * inferior.h: Likewise.
3658 * infrun.h: Likewise.
3659 * nat/linux-btrace.h: Likewise.
3660 * nat/linux-osdata.h: Likewise.
3661 * target/waitstatus.h: Likewise.
3663 2014-08-07 Gary Benson <gbenson@redhat.com>
3665 * common/common-defs.h: Include gdb_locale.h.
3666 * defs.h: Do not include gdb_locale.h.
3668 2014-08-07 Gary Benson <gbenson@redhat.com>
3670 * common/common-defs.h: Include gdb/signals.h.
3671 * defs.h: Do not include gdb/signals.h.
3673 2014-08-07 Gary Benson <gbenson@redhat.com>
3675 * common/common-defs.h: Include pathmax.h.
3676 * defs.h: Do not include pathmax.h.
3678 2014-08-07 Gary Benson <gbenson@redhat.com>
3680 * common/common-defs.h: Include libiberty.h.
3681 * defs.h: Do not include libiberty.h.
3682 * common/queue.h: Likewise.
3683 * cp-name-parser.y: Likewise.
3684 * mi/mi-cmd-catch.c: Likewise.
3685 * python/python.c: Likewise.
3687 2014-08-07 Gary Benson <gbenson@redhat.com>
3689 * common/common-defs.h: Include ansidecl.h.
3690 * defs.h: Do not include ansidecl.h.
3691 * common/buffer.h: Likewise.
3692 * common/common-utils.h: Likewise.
3694 2014-08-07 Gary Benson <gbenson@redhat.com>
3696 * common/common-defs.h: Include stddef.h.
3697 * defs.h: Do not include stddef.h.
3698 * common/common-utils.h: Likewise.
3699 * amd64fbsd-nat.c: Likewise.
3700 * bcache.c: Likewise.
3701 * charset.c: Likewise.
3702 * common/buffer.h: Likewise.
3703 * common/vec.h: Likewise.
3704 * i386bsd-nat.c: Likewise.
3705 * nat/linux-btrace.h: Likewise.
3706 * ppcfbsd-nat.c: Likewise.
3707 * ppcnbsd-tdep.h: Likewise.
3708 * ppcobsd-nat.c: Likewise.
3709 * ppcobsd-tdep.h: Likewise.
3710 * python/py-gdb-readline.c: Likewise.
3712 2014-08-07 Gary Benson <gbenson@redhat.com>
3714 * common/common-defs.h: Include stdarg.h.
3715 * defs.h: Do not include stdarg.h.
3716 * ada-lang.c: Likewise.
3717 * common/common-utils.h: Likewise.
3718 * guile/scm-string.c: Likewise.
3719 * guile/scm-utils.c: Likewise.
3720 * m32c-tdep.c: Likewise.
3722 2014-08-07 Gary Benson <gbenson@redhat.com>
3724 * common/common-defs.h: Include stdlib.h.
3725 * defs.h: Do not include stdlib.h.
3726 * addrmap.c: Likewise.
3727 * bcache.c: Likewise.
3728 * common/buffer.c: Likewise.
3729 * common/common-utils.c: Likewise.
3730 * cp-name-parser.y: Likewise.
3731 * go32-nat.c: Likewise.
3732 * mn10300-linux-tdep.c: Likewise.
3733 * nat/linux-osdata.c: Likewise.
3734 * tui/tui.c: Likewise.
3735 * windows-nat.c: Likewise.
3737 2014-08-07 Gary Benson <gbenson@redhat.com>
3739 * common/common-defs.h: Include stdio.h.
3740 * defs.h: Do not include stdio.h.
3741 * ada-lang.c: Likewise.
3742 * common/buffer.c: Likewise.
3743 * common/common-utils.c: Likewise.
3744 * cp-name-parser.y: Likewise.
3745 * gnu-nat.c: Likewise.
3746 * go32-nat.c: Likewise.
3747 * i386gnu-nat.c: Likewise.
3748 * proc-api.c: Likewise.
3749 * proc-events.c: Likewise.
3750 * proc-flags.c: Likewise.
3751 * proc-why.c: Likewise.
3752 * python/python-internal.h: Likewise.
3753 * target-memory.c: Likewise.
3754 * tui/tui-io.c: Likewise.
3755 * tui/tui.c: Likewise.
3757 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3759 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3760 (scan_dyntag_auxv): Same.
3762 2014-08-06 Yao Qi <yao@codesourcery.com>
3764 * amd64-linux-nat.c: Remove duplicated include
3766 * i386-linux-nat.c: Likewise.
3768 2014-08-06 Yao Qi <yao@codesourcery.com>
3770 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3771 operand" with "Special opcode" in comments.
3773 2014-08-05 Gary Benson <gbenson@redhat.com>
3775 * interps.c (initialize_interps): Remove prototype.
3776 (interpreter_initialized): Remove static global.
3777 (interp_add): Do not call initialize_interps.
3778 (initialize_interps): Remove function.
3780 2014-08-05 Gary Benson <gbenson@redhat.com>
3782 * utils.c (vwarning): Remove spurious va_end.
3784 2014-08-05 Alan Modra <amodra@gmail.com>
3786 * charset.c (convert_between_encodings): Cast result of obstack_base.
3787 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3788 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3789 (read_unwind_info): Use size_t for some locals.
3790 * jit.c (finalize_symtab): Likewise.
3791 * utils.c (hashtab_obstack_allocate): Likewise.
3792 * symmisc.c (print_objfile_statistics): Update format strings.
3794 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3796 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3797 (Changes in GDB 7.8): ... here.
3799 2014-08-04 Tom Tromey <tromey@redhat.com>
3801 * target.c (set_targetdebug): New function.
3802 (initialize_targets): Pass set_targetdebug when creating "set
3805 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3807 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3808 if detecting a variable-sized field that is not the last field.
3809 Fix struct type length computation.
3811 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3813 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3816 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3818 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3819 Remove "+ 8" offset in computation of CHAIN_VMA.
3821 2014-07-31 Doug Evans <dje@google.com>
3823 * inflow.c (child_terminal_inferior): Add comment.
3824 (child_terminal_ours_for_output): Add comment.
3825 (child_terminal_ours): Add comment.
3826 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3827 (linux_nat_terminal_ours): Add comment.
3829 2014-07-31 Gary Benson <gbenson@redhat.com>
3831 * common/btrace-common.h: Do not include defs.h or server.h.
3832 * nat/mips-linux-watch.h: Likewise.
3833 * gdb-dlfcn.h: Do not include defs.h.
3834 * tracefile.h: Likewise.
3836 2014-07-30 Roland McGrath <mcgrathr@google.com>
3838 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3840 2014-07-30 Tom Tromey <tromey@redhat.com>
3842 * bsd-kvm.c (bsd_kvm_open): Constify.
3843 * corelow.c (core_open): Constify.
3844 * ctf.c (ctf_open): Constify.
3845 * dbug-rom.c (dbug_open): Constify.
3846 * exec.c (exec_open): Constify.
3847 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3848 * microblaze-rom.c (picobug_open): Constify.
3849 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3851 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3852 * record-btrace.c (record_btrace_open): Constify.
3853 * record-full.c (record_full_core_open_1, record_full_open_1)
3854 (record_full_open): Constify.
3855 * remote-m32r-sdi.c (m32r_open): Constify.
3856 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3857 (rockhopper_open, lsi_open): Constify.
3858 * remote-sim.c (gdbsim_open): Constify.
3859 * remote.c (remote_open, extended_remote_open, remote_open_1):
3861 * target.h (struct target_ops) <to_open>: Make "arg" const.
3862 * tracefile-tfile.c (tfile_open): Constify.
3864 2014-07-30 Tom Tromey <tromey@redhat.com>
3866 * breakpoint.c (map_breakpoint_numbers): Update.
3867 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3868 (get_number_const): New function.
3869 (get_number): Rewrite using get_number_const.
3870 (init_number_or_range): Make "string" const.
3871 (number_is_in_list): Make "list" const.
3872 * cli/cli-utils.h (get_number_const): Declare.
3873 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3874 (init_number_or_range, number_is_in_list): Update.
3875 * printcmd.c (map_display_numbers): Update.
3876 * value.c (value_from_history_ref): Constify.
3877 * value.h (value_from_history_ref): Update.
3879 2014-07-30 Tom Tromey <tromey@redhat.com>
3881 * corefile.c (hook_type, call_extra_exec_file_hooks)
3882 (specify_exec_file_hook): Constify.
3883 * exec.c (exec_file_attach): Make "filename" const.
3884 * gdbcore.h (deprecated_exec_file_display_hook)
3885 (specify_exec_file_hook, exec_file_attach): Constify.
3886 * main.c (captured_main): Use catch_command_errors_const.
3888 2014-07-30 Tom Tromey <tromey@redhat.com>
3890 * target.c (open_target): New function.
3891 (add_target_with_completer, add_deprecated_target_alias): Use
3892 set_cmd_sfunc, set_cmd_context.
3893 (debug_to_open): Remove.
3894 (setup_target_debug): Update.
3896 2014-07-30 Yao Qi <yao@codesourcery.com>
3898 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3900 * parse.c (exp_iterate): Update comments.
3902 2014-07-30 Gary Benson <gbenson@redhat.com>
3904 * common/common-defs.h: New file.
3905 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3906 * defs.h: Include common-defs.h.
3907 Do not include config.h or build-gnulib/config.h.
3909 2014-07-30 Gary Benson <gbenson@redhat.com>
3911 * common/common-utils.h: Do not include config.h.
3912 * nat/linux-btrace.h: Likewise.
3914 2014-07-30 Gary Benson <gbenson@redhat.com>
3916 * btrace.c: Include defs.h.
3917 * common/ptid.c: Include defs.h or server.h as appropriate.
3918 * nat/mips-linux-watch.c: Likewise.
3920 2014-07-29 Tom Tromey <tromey@redhat.com>
3922 * target.c (target_is_pushed): Simplify.
3924 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3928 2014-07-29 Yao Qi <yao@codesourcery.com>
3931 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3933 2014-07-28 Doug Evans <xdje42@gmail.com>
3936 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3937 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3940 2014-07-28 Will Newton <will.newton@linaro.org>
3942 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3943 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3944 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3945 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3946 (THUMB2_EABI_SYSCALL): Likewise.
3947 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3949 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3950 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3952 2014-07-27 Doug Evans <xdje42@gmail.com>
3954 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3956 2014-07-27 Doug Evans <xdje42@gmail.com>
3958 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3960 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3961 Doug Evans <xdje42@gmail.com>
3964 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3965 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3966 * configure.ac: Try to use guild to compile an scm file, if it fails
3967 then disable guile support.
3968 * configure: Regenerate.
3969 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3971 (GUILE_COMPILED_FILES): New variable.
3972 (GUILE_FILES) Update.
3973 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3974 (stamp-guile): Compile scm files.
3975 * guile/guile.c (boot_guile_support): New function.
3976 (standard_throw_args_p): New function.
3977 (print_standard_throw_error, print_throw_error): New functions.
3978 (handle_boot_error): New function.
3979 (initialize_scheme_side): Rewrite to call boot_guile_support.
3980 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3981 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3983 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3984 Doug Evans <xdje42@gmail.com>
3987 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3988 * guile/lib/gdb/support.scm: New file.
3989 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3990 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3992 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3994 (%assert-type): Ditto, and renamed to assert-type.
3995 (%exception-print-style): Delete.
3997 2014-07-26 Doug Evans <xdje42@gmail.com>
4000 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4001 * configure: Regenerate.
4002 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4004 (PYTHON_FILES): New variable.
4005 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4006 (GUILE_FILES): New variable.
4007 (stamp-python, install-python, uninstall-python): Handle empty
4009 (stamp-guile, install-guile, uninstall-guile): Ditto.
4011 2014-07-26 Doug Evans <xdje42@gmail.com>
4014 * guile/lib/gdb.scm (pretty-printers): Export.
4015 (set-pretty-printers!): Export.
4016 * guile/lib/gdb/printing.scm (gdb module): Update.
4017 (prepend-pretty-printer!, append-pretty-printer!): Update.
4018 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4019 (pretty_printer_list_var): Delete.
4020 (pretty_printer_list): New static global.
4021 (gdbscm_pretty_printers): New function.
4022 (gdbscm_set_pretty_printers_x): New function.
4023 (ppscm_find_pretty_printer_from_gdb): Update.
4024 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4025 (gdbscm_initialize_pretty_printers): Update.
4027 2014-07-26 Doug Evans <xdje42@gmail.com>
4030 * configure.ac: Add check for header gc/gc.h.
4031 Add check for function setenv.
4032 * configure: Regenerate.
4033 * config.in: Regenerate.
4034 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4036 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4038 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4039 variation in gdbarch matching.
4041 2014-07-25 Tom Tromey <tromey@redhat.com>
4043 * exec.c (using_exec_ops): Remove.
4044 (exec_close_1): Update. Remove extraneous block, reindent.
4045 (add_target_sections): Use target_is_pushed.
4047 2014-07-25 Pedro Alves <palves@redhat.com>
4049 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4050 * monitor.c (monitor_create_inferior): Likewise.
4051 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4052 * remote-sim.c (gdbsim_create_inferior): Likewise.
4053 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4054 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4055 * windows-nat.c (do_initial_windows_stuff): Likewise.
4057 2014-07-25 Pedro Alves <palves@redhat.com>
4059 * NEWS: Mention signal passing and "signal" command changes.
4060 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4062 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4064 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4065 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4066 (jump_command): Adjust clear_proceed_status call.
4067 (signal_command): Warn if other thread that are resumed have
4068 signals that will be delivered. Adjust clear_proceed_status call.
4069 (until_next_command, finish_command)
4070 (proceed_after_attach_callback, attach_command_post_wait)
4071 (attach_command): Adjust clear_proceed_status call.
4072 * infrun.c (proceed_after_vfork_done): Likewise.
4073 (proceed_after_attach_callback): Adjust comment.
4074 (clear_proceed_status_thread): Clear stop_signal if not in pass
4076 (clear_proceed_status_callback): Delete.
4077 (clear_proceed_status): New 'step' parameter. Only clear the
4078 proceed status of threads the command being prepared is about to
4080 (proceed): If passed in an explicit signal, override stop_signal
4081 with it. Don't pass the last stop signal to the thread we're
4083 (init_wait_for_inferior): Adjust clear_proceed_status call.
4084 (switch_back_to_stepped_thread): Clear the signal if it should not
4086 * infrun.h (clear_proceed_status): New 'step' parameter.
4087 (user_visible_resume_ptid): Add comment.
4088 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4089 signal is in pass state.
4090 * remote.c (append_pending_thread_resumptions): Likewise.
4091 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4093 2014-07-25 Tom Tromey <tromey@redhat.com>
4095 * target.h (target_stopped_data_address)
4096 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4099 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4101 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4103 (avr_pointer_to_address): Likewise.
4105 2014-07-24 Tom Tromey <tromey@redhat.com>
4107 * monitor.c (compile_pattern): Update.
4108 * target.h (struct target_ops) <to_shortname, to_longname,
4111 2014-07-24 Tom Tromey <tromey@redhat.com>
4113 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4114 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4115 (add_info_alias, add_com): Make "doc" const.
4116 (print_doc_line): Make "str" const.
4117 (delete_cmd): Update.
4118 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4119 (print_doc_line): Update.
4120 * cli/cli-script.c (document_command): Update.
4121 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4122 (add_com, add_info, add_info_alias): Update.
4123 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4124 * python/py-cmd.c (cmdpy_destroyer): Update.
4126 2014-07-24 Tom Tromey <tromey@redhat.com>
4128 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4129 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4130 (help_cmd_list): Constify.
4131 (lookup_cmd): Update.
4132 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4134 (help_cmd_list, apropos_cmd): Update.
4135 * cli/cli-script.c (show_user): Update.
4136 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4137 * cli/cli-setshow.h (cmd_show_list): Update.
4138 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4139 (cmd_show_list): Update.
4140 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4141 * python/py-cmd.c (cmdpy_destroyer): Update.
4143 2014-07-24 Tom Tromey <tromey@redhat.com>
4145 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4146 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4148 * command.h (deprecate_cmd): Update.
4149 * maint.c (maintenance_do_deprecate): Add casts.
4151 2014-07-24 Tom Tromey <tromey@redhat.com>
4153 * cli/cli-decode.c (help_cmd): Make parameter "const".
4154 * cli/cli-decode.h (help_cmd): Update.
4156 2014-07-24 Tom Tromey <tromey@redhat.com>
4158 * stack.c (up_silently_base, down_silently_base): Make argument
4161 2014-07-24 Tom Tromey <tromey@redhat.com>
4163 * solib.c (solib_add): Make "pattern" const.
4164 * solib.h (solib_add): Update.
4166 2014-07-24 Tom Tromey <tromey@redhat.com>
4168 * remote.c (remote_serial_open, print_packet, putpkt)
4169 (putpkt_binary): Constify.
4170 * remote.h (putpkt): Update.
4172 2014-07-24 Tom Tromey <tromey@redhat.com>
4174 * monitor.c (monitor_open): Make "args" const.
4175 * monitor.h (monitor_open): Update.
4177 2014-07-24 Tom Tromey <tromey@redhat.com>
4179 * maint.c (match_bfd_flags): Make "string" const.
4180 (print_bfd_section_info): Remove casts.
4181 (print_objfile_section_info): Make "string" const.
4183 2014-07-24 Tom Tromey <tromey@redhat.com>
4185 * inf-child.c (inf_child_open_target): Make "arg" const.
4186 * inf-child.h (inf_child_open_target): Update.
4188 2014-07-24 Tom Tromey <tromey@redhat.com>
4190 * environ.c (unset_in_environ): Make "var" const.
4191 * environ.h (unset_in_environ): Update.
4193 2014-07-24 Tom Tromey <tromey@redhat.com>
4195 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4197 (scan_filename_with_cleanup): Likewise.
4198 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4199 Make arguments const.
4200 (restore_command): Update.
4202 2014-07-24 Pedro Alves <palves@redhat.com>
4204 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4206 2014-07-24 Tom Tromey <tromey@redhat.com>
4207 Gary Benson <gbenson@redhat.com>
4209 * nat/linux-ptrace.c (additional_flags): New global.
4210 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4211 additional_flags; don't check GDBSERVER.
4212 (linux_ptrace_set_additional_flags): New function.
4213 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4215 * linux-nat.c (_initialize_linux_nat): Call
4216 linux_ptrace_set_additional_flags.
4218 2014-07-24 Tom Tromey <tromey@redhat.com>
4220 * make-target-delegates (munge_type, write_debugmethod): New
4222 (debug_names): New global.
4223 ($TARGET_DEBUG_PRINTER): New global.
4224 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4226 Write debug methods. Generate init_debug_target.
4227 * target-debug.h: New file.
4228 * target-delegates.c: Rebuild.
4229 * target.c: Include target-debug.h.
4230 (debug_target): Hoist definition.
4231 (target_kill, target_get_section_table, target_memory_map)
4232 (target_flash_erase, target_flash_done, target_detach)
4233 (target_disconnect, target_wait, target_resume)
4234 (target_pass_signals, target_program_signals, target_follow_fork)
4235 (target_mourn_inferior, target_search_memory)
4236 (target_thread_address_space, target_close)
4237 (target_find_new_threads, target_core_of_thread)
4238 (target_verify_memory, target_insert_mask_watchpoint)
4239 (target_remove_mask_watchpoint): Remove targetdebug code.
4240 (debug_to_post_attach, debug_to_prepare_to_store)
4241 (debug_to_files_info, debug_to_insert_breakpoint)
4242 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4243 (debug_to_region_ok_for_hw_watchpoint)
4244 (debug_to_can_accel_watchpoint_condition)
4245 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4246 (debug_to_watchpoint_addr_within_range)
4247 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4248 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4249 (debug_to_terminal_init, debug_to_terminal_inferior)
4250 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4251 (debug_to_terminal_save_ours, debug_to_terminal_info)
4252 (debug_to_load, debug_to_post_startup_inferior)
4253 (debug_to_insert_fork_catchpoint)
4254 (debug_to_remove_fork_catchpoint)
4255 (debug_to_insert_vfork_catchpoint)
4256 (debug_to_remove_vfork_catchpoint)
4257 (debug_to_insert_exec_catchpoint)
4258 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4259 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4260 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4261 (setup_target_debug): Call init_debug_target.
4262 * target.h (TARGET_DEBUG_PRINTER): New macro.
4263 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4264 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4266 2014-07-24 Gary Benson <gbenson@redhat.com>
4268 * exceptions.h (throw_vfatal): Renamed to...
4269 (throw_vquit): New declaration.
4270 (throw_quit): Likewise.
4271 * exceptions.c (throw_vfatal): Renamed to...
4272 (throw_vquit): New function.
4273 (throw_quit): Likewise.
4274 (throw_error): Call throw_verror rather than throw_it.
4275 * utils.h (vfatal): Removed.
4277 * utils.c (vfatal): Removed.
4279 (internal_verror): Replaced call to fatal with call to throw_quit.
4280 (quit): Replaced calls to fatal with calls to throw_quit.
4282 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4284 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4287 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4289 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4290 less than zero in conditional expression.
4292 2014-07-23 Tom Tromey <tromey@redhat.com>
4294 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4295 ($INTRO_PART): Don't match whitespace.
4296 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4298 ($METHOD): Add $METHOD_TRAILER.
4300 (scan_target_h): New sub.
4301 Change main loop not to collect state.
4302 * target-delegates.c: Rebuild.
4304 2014-07-23 Gary Benson <gbenson@redhat.com>
4306 * cp-support.c (gdb_demangle): Fix build on systems without
4309 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4312 for reference entry value target data value.
4314 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4317 value_available_contents_eq.
4319 2014-07-22 Pedro Alves <palves@redhat.com>
4321 * value.c (allocate_optimized_out_value): Don't mark value as
4324 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4326 * MAINTAINERS (Write After Approval): Update my email address.
4328 2014-07-20 Doug Evans <dje@google.com>
4331 * remote.c (putpkt_binary): Add text to error message.
4333 2014-07-20 Yao Qi <yao@codesourcery.com>
4335 * eval.c: Remove "Chill" from comments.
4336 * gdbtypes.h: Likewise.
4337 * symtab.h: Likewise.
4339 2014-07-20 Yao Qi <yao@codesourcery.com>
4341 * std-operator.def: Update comments to TERNOP_SLICE.
4343 2014-07-20 Yao Qi <yao@codesourcery.com>
4345 * std-operator.def: Remove BINOP_RANGE.
4346 * breakpoint.c (watchpoint_exp_is_const): Update.
4347 * expprint.c (dump_subexp_body_standard): Likewise.
4348 * eval.c (init_array_element): Remove dead code.
4349 (evaluate_subexp_standard): Likewise.
4351 2014-07-20 Yao Qi <yao@codesourcery.com>
4353 * std-operator.def: Remove BINOP_IN.
4354 * breakpoint.c (watchpoint_exp_is_const): Update.
4355 * eval.c (evaluate_subexp_standard): Likewise.
4356 * expprint.c (dump_subexp_body_standard): Likewise.
4358 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4360 * microblaze-tdep.c (microblaze_register_names): Add
4361 the rshr and rslr register names.
4362 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4363 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4364 Use of tdesc_numbered_register. Use of
4365 microblaze_register_g_packet_guesses. Use of
4366 tdesc_use_registers. Use of set_gdbarch_register_type.
4367 (microblaze_register_g_packet_guesses): New.
4368 * microblaze-tdep.h (microblaze_reg_num): Add
4369 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4370 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4371 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4372 * features/microblaze-core.xml: New file.
4373 * features/microblaze-stack-protect.xml: New file.
4374 * features/microblaze-with-stack-protect.c: New file.
4375 * features/microblaze-with-stack-protect.xml: New file.
4376 * features/microblaze.xml: New file.
4377 * features/microblaze.c: New file.
4378 * features/Makefile (microblaze-with-stack-protect): Add
4379 microblaze-with-stack-protect microblaze and microblaze-expedite.
4380 * regformats/microblaze-with-stack-protect.dat: New file.
4381 * regformats/microblaze.dat: New file.
4382 * doc/gdb.texinfo (MicroBlaze Features): Added.
4384 2014-07-18 Tom Tromey <tromey@redhat.com>
4386 * exec.c (exec_ops): Now static.
4387 * exec.h (exec_ops): Don't declare.
4389 2014-07-18 Tom Tromey <tromey@redhat.com>
4391 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4392 to find_target_beneath.
4393 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4394 find_target_beneath.
4395 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4397 2014-07-18 Tom Tromey <tromey@redhat.com>
4400 * utils.c (quit): Use target_supports_terminal_ours.
4401 * target.h (target_supports_terminal_ours): Declare.
4402 * target.c (target_supports_delete_record): Don't check
4403 to_delete_record against NULL.
4404 (target_supports_terminal_ours): New function.
4406 2014-07-18 Tom Tromey <tromey@redhat.com>
4409 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4410 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4411 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4412 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4413 * windows-nat.c (windows_xfer_partial): Always delegate.
4414 * record-btrace.c (record_btrace_xfer_partial): Simplify
4416 (record_btrace_fetch_registers, record_btrace_store_registers)
4417 (record_btrace_prepare_to_store, record_btrace_resume)
4418 (record_btrace_wait, record_btrace_find_new_threads)
4419 (record_btrace_thread_alive): Likewise.
4420 * procfs.c (procfs_xfer_partial): Always delegate.
4421 * corelow.c (core_xfer_partial): Always delegate.
4422 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4424 2014-07-18 Tom Tromey <tromey@redhat.com>
4426 * exec.c (exec_make_note_section): Move earlier.
4428 2014-07-17 Doug Evans <dje@google.com>
4431 * maint.c (count_symtabs_and_blocks): Handle NULL
4432 current_program_space.
4433 (report_command_stats): Check global enabled flag in addition to
4434 recorded enabled flag.
4435 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4437 2014-07-16 Pedro Alves <palves@redhat.com>
4439 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4441 2014-07-16 Tom Tromey <tromey@redhat.com>
4443 * target.h (struct target_ops) <to_delete_record>: Reformat
4446 2014-07-16 Tom Tromey <tromey@redhat.com>
4448 * target-delegates.c: Rebuild.
4450 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4452 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4453 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4454 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4455 (avr_pointer_to_address): Likewise.
4456 (avr_address_class_type_flags): New function.
4457 (avr_address_class_type_flags_to_name): Likewise.
4458 (avr_address_class_name_to_type_flags): Likewise.
4459 (avr_gdbarch_init): Set address_class_type_flags,
4460 address_class_type_flags_to_name and
4461 address_class_name_to_type_flags.
4463 2014-07-15 Pedro Alves <palves@redhat.com>
4465 * linux-nat.c (kill_callback): Save errno and work with saved
4468 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4470 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4472 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4474 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4475 breakpoint support correctly.
4477 2014-07-14 Pedro Alves <palves@redhat.com>
4479 * utils.c (prompt_for_continue): Call target_terminal_ours.
4481 2014-07-14 Pedro Alves <palves@redhat.com>
4483 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4484 catch_errors. Don't re-enable stdin or notify observers where,
4486 (fetch_inferior_event_wrapper): Delete.
4488 2014-07-14 Pedro Alves <palves@redhat.com>
4491 * top.c: Include "inf-loop.h".
4492 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4494 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4496 (gdb_readline_wrapper): Store whether the target is async, and
4499 2014-07-14 Pedro Alves <palves@redhat.com>
4502 * top.c (gdb_readline_wrapper_line): Tweak comment.
4503 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4504 the input handler callback.
4506 2014-07-14 Pedro Alves <palves@redhat.com>
4509 * main.c: Include event-top.h.
4510 (handle_command_errors): New function.
4511 (catch_command_errors, catch_command_errors_const): Use it.
4513 2014-07-14 Pedro Alves <palves@redhat.com>
4515 * exceptions.c (catch_command_errors, catch_command_errors_const):
4517 * exceptions.h (catch_command_errors_ftype)
4518 (catch_command_errors_const_ftype): Moved to main.c.
4519 (catch_command_errors, catch_command_errors_const): Delete
4521 * main.c (catch_command_errors_ftype)
4522 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4523 (catch_command_errors, catch_command_errors_const)): Moved here
4524 from exceptions.c and make static.
4526 2014-07-14 Pedro Alves <palves@redhat.com>
4528 * exceptions.c (print_any_exception): Delete.
4529 (catch_exceptions_with_msg): Use exception_print instead of
4530 print_any_exception.
4531 (catch_errors): Use exception_fprintf instead of
4532 print_any_exception.
4533 (catch_command_errors, catch_command_errors_const): Use
4534 exception_print instead of print_any_exception.
4536 2014-07-14 Pedro Alves <palves@redhat.com>
4538 * infcall.c (run_inferior_call): Set 'sync_execution' while
4539 running the inferior call.
4541 2014-07-14 Pedro Alves <palves@redhat.com>
4543 * value.c (value_contents_equal): Delete function.
4544 * value.h (value_contents_equal): Delete declaration.
4546 2014-07-14 Tom Tromey <tromey@redhat.com>
4549 * gdbtypes.c (is_dynamic_type_internal): New function, from
4551 (is_dynamic_type): Rewrite.
4552 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4553 (resolve_dynamic_struct): Likewise.
4554 (resolve_dynamic_type_internal): New function, from
4555 resolve_dynamic_type.
4556 (resolve_dynamic_type): Rewrite.
4558 2014-07-14 Tom Tromey <tromey@redhat.com>
4560 * target.c (target_require_runnable): Also check record_stratum.
4563 2014-07-11 Yao Qi <yao@codesourcery.com>
4565 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4566 thumb_instruction_restores_sp return true.
4568 2014-07-11 Yao Qi <yao@codesourcery.com>
4570 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4571 (thumb_in_function_epilogue_p): Call
4572 thumb_instruction_restores_sp.
4574 2014-07-11 Yao Qi <yao@codesourcery.com>
4576 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4578 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4580 2014-07-11 Gary Benson <gbenson@redhat.com>
4582 * amd64-linux-nat.c (gdbcore.h): Remove include.
4583 (regset.h): Likewise.
4584 (nat/linux-btrace.h): Likewise.
4585 (btrace.h): Likewise.
4586 (gdb_assert.h): Likewise.
4587 (string.h): Likewise.
4588 (sys/uio.h): Likewise.
4589 (sys/debugreg.h): Likewise.
4590 (sys/syscall.h): Likewise.
4591 (sys/procfs.h): Likewise.
4592 (sys/user.h): Likewise.
4593 (asm/ptrace.h): Likewise.
4594 (i386-nat.h): Likewise.
4595 * i386-linux-nat.c (i386-nat.h): Likewise.
4596 (regset.h): Likewise.
4597 (target.h): Likewise.
4598 (linux-nat.h): Likewise.
4599 (nat/linux-btrace.h): Likewise.
4600 (btrace.h): Likewise.
4601 (gdb_assert.h): Likewise.
4602 (string.h): Likewise.
4603 (sys/uio.h): Likewise.
4604 (sys/user.h): Likewise.
4605 (sys/procfs.h): Likewise.
4606 (sys/reg.h): Likewise.
4607 (sys/debugreg.h): Likewise.
4608 (ORIG_EAX): Remove definition.
4610 2014-07-11 Gary Benson <gbenson@redhat.com>
4612 * i386-linux-nat.h: New file.
4613 * x86-linux-nat.h: Likewise.
4614 * x86-linux-nat.c: Likewise.
4615 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4616 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4617 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4618 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4619 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4620 (PTRACE_SETREGSET): Likewise.
4621 (arch_lwp_info): Now in x86-linux-nat.c.
4622 (have_ptrace_getregset): Now in x86-linux-nat.h.
4623 (x86_linux_dr_get): Now in x86-linux-nat.c.
4624 (x86_linux_dr_set): Likewise.
4625 (x86_linux_dr_get_addr): Likewise.
4626 (x86_linux_dr_get_control): Likewise.
4627 (x86_linux_dr_get_status): Likewise.
4628 (update_debug_registers_callback): Likewise.
4629 (x86_linux_dr_set_control): Likewise.
4630 (x86_linux_dr_set_addr): Likewise.
4631 (x86_linux_prepare_to_resume): Likewise.
4632 (x86_linux_new_thread): Likewise.
4633 (x86_linux_new_fork): Likewise.
4634 (x86_linux_get_thread_area): Likewise.
4635 (super_post_startup_inferior): Likewise.
4636 (x86_linux_child_post_startup_inferior): Likewise.
4637 (AMD64_LINUX_USER64_CS): Likewise.
4638 (AMD64_LINUX_X32_DS): Likewise.
4639 (x86_linux_read_description): Likewise.
4640 (x86_linux_enable_btrace): Likewise.
4641 (x86_linux_disable_btrace): Likewise.
4642 (x86_linux_teardown_btrace): Likewise.
4643 (x86_linux_read_btrace): Likewise.
4644 (x86_linux_create_target): Likewise.
4645 (x86_linux_add_target): Likewise.
4646 * i386-linux-nat.c (x86-linux-nat.h): New include.
4647 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4648 (PTRACE_SETREGSET): Likewise.
4649 (arch_lwp_info): Now in x86-linux-nat.c.
4650 (have_ptrace_getregset): Now in x86-linux-nat.h.
4651 (x86_linux_dr_get): Now in x86-linux-nat.c.
4652 (x86_linux_dr_set): Likewise.
4653 (x86_linux_dr_get_addr): Likewise.
4654 (x86_linux_dr_get_control): Likewise.
4655 (x86_linux_dr_get_status): Likewise.
4656 (update_debug_registers_callback): Likewise.
4657 (x86_linux_dr_set_control): Likewise.
4658 (x86_linux_dr_set_addr): Likewise.
4659 (x86_linux_prepare_to_resume): Likewise.
4660 (x86_linux_new_thread): Likewise.
4661 (x86_linux_new_fork): Likewise.
4662 (x86_linux_get_thread_area): Likewise.
4663 (super_post_startup_inferior): Likewise.
4664 (x86_linux_child_post_startup_inferior): Likewise.
4665 (AMD64_LINUX_USER64_CS): Likewise.
4666 (AMD64_LINUX_X32_DS): Likewise.
4667 (x86_linux_read_description): Likewise.
4668 (x86_linux_enable_btrace): Likewise.
4669 (x86_linux_disable_btrace): Likewise.
4670 (x86_linux_teardown_btrace): Likewise.
4671 (x86_linux_read_btrace): Likewise.
4672 (x86_linux_create_target): Likewise.
4673 (x86_linux_add_target): Likewise.
4675 2014-07-11 Gary Benson <gbenson@redhat.com>
4677 * amd64-linux-nat.c: Comment and whitespace changes.
4678 * i386-linux-nat.c: Comment and whitespace changes.
4680 2014-07-11 Gary Benson <gbenson@redhat.com>
4682 * amd64-linux-nat.c (x86_linux_create_target): New function.
4683 (x86_linux_add_target): Likewise.
4684 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4685 * i386-linux-nat.c (x86_linux_create_target): New function.
4686 (x86_linux_add_target): Likewise.
4687 (_initialize_i386_linux_nat): Delegate to the above new functions.
4689 2014-07-11 Gary Benson <gbenson@redhat.com>
4691 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4692 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4693 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4694 (ps_get_thread_area): Delegate to the above.
4696 2014-07-11 Gary Benson <gbenson@redhat.com>
4698 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4699 x86_linux_read_description. All uses updated. amd64-specific
4700 code conditionalized. Conditionalized i386-specific code added.
4701 Redundant cast removed.
4702 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4703 x86_linux_read_description. All uses updated. i386-specific
4704 code conditionalized. Conditionalized amd64-specific code added.
4705 One sizeof replaced with the actual type it is describing.
4707 2014-07-11 Gary Benson <gbenson@redhat.com>
4709 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4710 x86_linux_dr_get. All uses updated.
4711 (amd64_linux_dr_set): Renamed to
4712 x86_linux_dr_set. All uses updated.
4713 (amd64_linux_dr_get_addr): Renamed to
4714 x86_linux_dr_get_addr. All uses updated.
4715 (amd64_linux_dr_get_control): Renamed to
4716 x86_linux_dr_get_control. All uses updated.
4717 (amd64_linux_dr_get_status): Renamed to
4718 x86_linux_dr_get_status. All uses updated.
4719 (amd64_linux_dr_set_control): Renamed to
4720 x86_linux_dr_set_control. All uses updated.
4721 (amd64_linux_dr_set_addr): Renamed to
4722 x86_linux_dr_set_addr. All uses updated.
4723 (amd64_linux_prepare_to_resume): Renamed to
4724 x86_linux_prepare_to_resume. All uses updated.
4725 (amd64_linux_new_thread): Renamed to
4726 x86_linux_new_thread. All uses updated.
4727 (amd64_linux_new_fork): Renamed to
4728 x86_linux_new_fork. All uses updated.
4729 (amd64_linux_child_post_startup_inferior): Renamed to
4730 x86_linux_child_post_startup_inferior. All uses updated.
4731 (amd64_linux_enable_btrace): Renamed to
4732 x86_linux_enable_btrace. All uses updated.
4733 (amd64_linux_disable_btrace): Renamed to
4734 x86_linux_disable_btrace. All uses updated.
4735 (amd64_linux_teardown_btrace): Renamed to
4736 x86_linux_teardown_btrace. All uses updated.
4737 (amd64_linux_read_btrace): Renamed to
4738 x86_linux_read_btrace. All uses updated.
4739 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4740 x86_linux_dr_get. All uses updated.
4741 (i386_linux_dr_set): Renamed to
4742 x86_linux_dr_set. All uses updated.
4743 (i386_linux_dr_get_addr): Renamed to
4744 x86_linux_dr_get_addr. All uses updated.
4745 (i386_linux_dr_get_control): Renamed to
4746 x86_linux_dr_get_control. All uses updated.
4747 (i386_linux_dr_get_status): Renamed to
4748 x86_linux_dr_get_status. All uses updated.
4749 (i386_linux_dr_set_control): Renamed to
4750 x86_linux_dr_set_control. All uses updated.
4751 (i386_linux_dr_set_addr): Renamed to
4752 x86_linux_dr_set_addr. All uses updated.
4753 (i386_linux_prepare_to_resume): Renamed to
4754 x86_linux_prepare_to_resume. All uses updated.
4755 (i386_linux_new_thread): Renamed to
4756 x86_linux_new_thread. All uses updated.
4757 (i386_linux_new_fork): Renamed to
4758 x86_linux_new_fork. All uses updated.
4759 (i386_linux_child_post_startup_inferior): Renamed to
4760 x86_linux_child_post_startup_inferior. All uses updated.
4761 (i386_linux_enable_btrace): Renamed to
4762 x86_linux_enable_btrace. All uses updated.
4763 (i386_linux_disable_btrace): Renamed to
4764 x86_linux_disable_btrace. All uses updated.
4765 (i386_linux_teardown_btrace): Renamed to
4766 x86_linux_teardown_btrace. All uses updated.
4767 (i386_linux_read_btrace): Renamed to
4768 x86_linux_read_btrace. All uses updated.
4770 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4772 * remote.c (extended_remote_post_attach): New function.
4773 (init_extended_remote_ops): Install it as to_post_attach method.
4775 2014-07-09 Pedro Alves <palves@redhat.com>
4777 * infcmd.c (attach_command_post_wait): Don't call
4778 target_terminal_inferior here.
4779 (attach_command): Call it here instead.
4781 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4783 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4785 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4786 from varobj.c, with additional checks.
4787 (c_varobj_ops): Fill in is_path_expr_parent field.
4788 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4789 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4791 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4793 (varobj_default_is_path_expr_parent): New function.
4794 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4795 (varobj_default_is_path_expr_parent): Declare new function.
4797 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4799 * infcmd.c (finish_backward): Turn internal error into normal error.
4801 2014-07-07 Pedro Alves <palves@redhat.com>
4804 * remote.c (async_handle_remote_sigint)
4805 (async_handle_remote_sigint_twice): Call
4806 gdb_call_async_signal_handler instead of
4807 mark_async_signal_handler.
4809 2014-07-07 Tom Tromey <tromey@redhat.com>
4811 * target-delegates.c: Rebuild.
4812 * target.c (target_info_record): Remove.
4813 * record.c (info_record_command): Unconditionally call
4815 * target.h (struct target_ops) <to_info_record>: Use
4816 TARGET_DEFAULT_IGNORE.
4817 (target_info_record): Remove.
4819 2014-07-07 Tom Tromey <tromey@redhat.com>
4821 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4822 TARGET_DEFAULT_NORETURN.
4823 * target.c (generic_tls_error): New function.
4824 (target_translate_tls_address): Don't search target stack.
4825 * target-delegates.c: Rebuild.
4826 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4828 * linux-thread-db.c (thread_db_get_thread_local_address):
4829 Unconditionally call beneath target.
4831 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4833 * cli/cli-logging.c (pop_output_files): Assign targerr to
4836 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4838 * MAINTAINERS (Write After Approval): Update my email address.
4840 2014-07-02 Gary Benson <gbenson@redhat.com>
4842 * proc-service.c (ps_xfer_memory): Update comment.
4843 (ps_pstop): Remove unused function.
4844 (ps_pcontinue): Likewise.
4845 (ps_lstop): Likewise.
4846 (ps_lcontinue): Likewise.
4847 (ps_lgetxregsize): Likewise.
4848 (ps_lgetxregs): Likewise.
4849 (ps_lsetxregs): Likewise.
4850 (ps_plog): Likewise.
4851 (ps_ptread): Likewise.
4852 (ps_ptwrite): Likewise.
4854 2014-07-01 Mark Wielaard <mjw@redhat.com>
4856 * dwarf2read.c (add_array_cv_type): New function.
4857 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4858 (read_tag_volatile_type): Likewise.
4860 2014-07-01 Tom Tromey <tromey@redhat.com>
4862 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4863 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4864 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4865 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4866 * command.h (cmd_cfunc_ftype): Move earlier.
4867 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4868 (add_com, add_info): Use cmd_cfunc_ftype.
4870 2014-06-30 Tom Tromey <tromey@redhat.com>
4872 * symtab.c (operator_chars): Make parameters and return type
4874 (file_matches): Make "files" const.
4875 (struct search_symbols_data) <files>: Now const.
4876 (search_symbols): Make "regexp" and "files" parameters const.
4878 (symtab_symbol_info): Remove cast.
4879 (rbreak_command): Update.
4880 * symtab.h (search_symbols): Update.
4882 2014-06-27 Yao Qi <yao@codesourcery.com>
4884 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4885 Change parameter type to 'struct thread_info *'. Caller
4887 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4889 * dummy-frame.c (struct dummy_frame_id): New.
4890 (dummy_frame_id_eq): New function.
4891 (struct dummy_frame) <id>: Change its type to 'struct
4893 (dummy_frame_push): Add parameter ptid and save it in
4895 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4897 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4899 (lookup_dummy_frame): Change parameter type to 'struct
4900 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4901 instead of frame_id_eq.
4902 (dummy_frame_pop): Add parameter ptid. Callers updated.
4903 Update comments. Compose dummy_frame_id and pass it to
4905 (dummy_frame_discard): Add parameter ptid.
4906 (dummy_frame_sniffer): Compose dummy_frame_id and call
4907 dummy_frame_id_eq instead of frame_id_eq.
4908 (fprint_dummy_frames): Print ptid.
4909 * dummy-frame.h: Remove comments.
4910 (dummy_frame_push): Add ptid in declaration.
4911 (dummy_frame_pop, dummy_frame_discard): Likewise.
4913 2014-06-26 Tom Tromey <tromey@redhat.com>
4915 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4916 * command.h (error_no_arg): Update.
4918 2014-06-26 Tom Tromey <tromey@redhat.com>
4920 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4921 (do_show_command): Make "arg" const.
4922 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4924 2014-06-26 Tom Tromey <tromey@redhat.com>
4926 * record-full.c (record_full_get_bookmark): Make "args" const.
4927 (record_full_goto_bookmark): Make "raw_bookmark" const.
4928 * record.c (record_goto): New function.
4929 (cmd_record_goto): Use it. Now static.
4930 * record.h (record_goto): Declare.
4931 (cmd_record_goto): Remove declaration.
4932 * target-delegates.c: Rebuild.
4933 * target.h (struct target_ops) <to_get_bookmark,
4934 to_goto_bookmark>: Make parameter const.
4936 2014-06-26 Tom Tromey <tromey@redhat.com>
4938 * defs.h (generic_load): Update.
4939 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4940 * monitor.c (monitor_load): Make "args" const.
4941 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4942 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4944 (mips_load): Make "file" const.
4945 * remote-sim.c (gdbsim_load): Make "args" const.
4946 * remote.c (remote_load): Make "name" const.
4947 * symfile.c (generic_load): Make "args" const.
4948 * target-delegates.c: Rebuild.
4949 * target.c (target_load): Make "arg" const.
4950 (debug_to_load): Make "args" const.
4951 * target.h (struct target_ops) <to_load>: Make parameter const.
4952 (target_load): Update.
4954 2014-06-26 Tom Tromey <tromey@redhat.com>
4957 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4958 (dwarf2_physname, read_partial_die)
4959 (guess_partial_die_structure_name, fixup_partial_die)
4960 (guess_full_die_structure_name, anonymous_struct_prefix)
4961 (dwarf2_name): Use per-BFD obstack.
4963 2014-06-26 Yao Qi <yao@codesourcery.com>
4965 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4966 dummyframe and this_id into inner block below.
4968 2014-06-26 Yao Qi <yao@codesourcery.com>
4970 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4971 with "signal_pass[0]" in the initialization of signal_pass.
4973 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4975 * record-btrace.c (record_btrace_generating_corefile)
4976 (record_btrace_prepare_to_generate_core)
4977 (record_btrace_done_generating_core): New.
4978 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4979 (record_btrace_store_registers, record_btrace_prepare_to_store):
4980 Forward request when generating a core file.
4981 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4982 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4983 to_done_generating_core.
4985 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4987 * target.h (target_ops) <to_prepare_to_generate_core>
4988 <to_done_generating_core>: New.
4989 (target_prepare_to_generate_core, target_done_generating_core): New.
4990 * target.c (target_prepare_to_generate_core)
4991 (target_done_generating_core): New.
4992 * target-delegates.c: Regenerate.
4993 * gcore.c: (write_gcore_file): Rename to ...
4994 (write_gcore_file_1): ...this.
4995 (write_gcore_file): Call target_prepare_to_generate_core
4996 and target_done_generating_core.
4998 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5000 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5001 * gcore.c (write_gcore_file): Free memory returned from
5002 make_corefile_notes.
5003 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5004 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5006 2014-06-24 Yao Qi <yao@codesourcery.com>
5008 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5009 (arm_linux_init_abi): Set skip_trampoline_code with
5010 gdbarch_skip_trampoline_code instead of
5011 find_solib_trampoline_target.
5013 2014-06-24 Yao Qi <yao@codesourcery.com>
5015 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5016 arm_skip_bx_reg returns non-zero.
5018 2014-06-24 Yao Qi <yao@codesourcery.com>
5020 * arm-tdep.c (arm_skip_bx_reg): New function.
5021 (arm_skip_stub): Call arm_skip_bx_reg.
5023 2014-06-23 Don Breazeal <donb@codesourcery.com>
5025 * MAINTAINERS: Add myself as write-after-approval maintainer.
5027 2014-06-23 Pedro Alves <palves@redhat.com>
5029 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5030 DR_CONTROL before setting DR0..DR3.
5031 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5032 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5033 bits of DR_CONTROL related to the debug register slot being
5034 disabled. If all slots are vacant, clear local slowdown as well,
5035 and assert DR_CONTROL is 0.
5037 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5039 * python/lib/gdb/command/xmethods.py
5040 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5041 current progspace only if the string "progspace" matches LOCUS_RE.
5043 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5045 Fix --with-system-readline with readline-6.3 patch 5.
5046 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5047 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5050 2014-06-20 Tom Tromey <tromey@redhat.com>
5052 * dwarf2read.c (dw2_get_real_path): Use correct type in
5054 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5056 2014-06-20 Gary Benson <gbenson@redhat.com>
5058 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5059 * common/glibc_thread_db.h: Likewise.
5060 * common/i386-cpuid.h: Likewise.
5061 * common/i386-gcc-cpuid.h: Likewise.
5062 * common/linux-btrace.h: Likewise.
5063 * common/linux-osdata.h: Likewise.
5064 * common/linux-procfs.h: Likewise.
5065 * common/linux-ptrace.h: Likewise.
5066 * common/mips-linux-watch.h: Likewise.
5067 * common/linux-btrace.c: Moved to nat.
5068 * common/linux-osdata.c: Likewise.
5069 * common/linux-procfs.c: Likewise.
5070 * common/linux-ptrace.c: Likewise.
5071 * common/mips-linux-watch.c: Likewise.
5072 * nat/gdb_thread_db.h: Moved from common.
5073 * nat/glibc_thread_db.h: Likewise.
5074 * nat/i386-cpuid.h: Likewise.
5075 * nat/i386-gcc-cpuid.h: Likewise.
5076 * nat/linux-btrace.c: Likewise.
5077 * nat/linux-btrace.h: Likewise.
5078 * nat/linux-osdata.c: Likewise.
5079 * nat/linux-osdata.h: Likewise.
5080 * nat/linux-procfs.c: Likewise.
5081 * nat/linux-procfs.h: Likewise.
5082 * nat/linux-ptrace.c: Likewise.
5083 * nat/linux-ptrace.h: Likewise.
5084 * nat/mips-linux-watch.c: Likewise.
5085 * nat/mips-linux-watch.h: Likewise.
5086 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5087 (object file files): Reordered.
5088 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5089 of glibc_thread_db.h.
5091 2014-06-20 Gary Benson <gbenson@redhat.com>
5093 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5094 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5095 (i386_dr_low): Likewise.
5096 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5097 (i386_dr_low_set_addr): Likewise.
5098 (i386_dr_low_get_addr): Likewise.
5099 (i386_dr_low_can_set_control): Likewise.
5100 (i386_dr_low_set_control): Likewise.
5101 (i386_dr_low_get_control): Likewise.
5102 (i386_dr_low_get_status): Likewise.
5103 (i386_get_debug_register_length): Likewise.
5104 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5105 (i386_dr_low): Likewise.
5106 * nat/i386-dregs.c (i386-low.h): Remove include.
5107 (i386-nat.h): Likewise.
5108 (nat/i386-dregs.h): New include.
5109 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5110 (i386_dr_low_set_addr): Likewise.
5111 (i386_dr_low_get_addr): Likewise.
5112 (i386_dr_low_can_set_control): Likewise.
5113 (i386_dr_low_set_control): Likewise.
5114 (i386_dr_low_get_control): Likewise.
5115 (i386_dr_low_get_status): Likewise.
5116 (i386_get_debug_register_length): Likewise.
5117 (debug_hw_points): Likewise.
5119 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5121 * Makefile.in (SFILES): Add d-exp.y.
5122 (YYFILES): Add d-exp.c.
5123 (YYOBJ): Add d-exp.o.
5124 (local-maintainer-clean): Delete d-exp.c.
5125 * d-exp.y: New file.
5126 * d-lang.h (d_parse): New declaration.
5127 (d_error): New declaration.
5128 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5129 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5130 PREC_ORDER operators.
5131 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5133 2014-06-19 Yao Qi <yao@codesourcery.com>
5135 * gdbthread.h (any_running): Remove the declaration.
5136 * thread.c (any_running): Remove.
5138 2014-06-19 Yao Qi <yao@codesourcery.com>
5140 * gdbthread.h (struct thread_info) <state>: Change its type to
5141 'enum thread_state'. Update comments.
5143 2014-06-19 Pedro Alves <palves@redhat.com>
5145 * gdbthread.h (ALL_THREADS): Delete.
5146 (ALL_NON_EXITED_THREADS): New macro.
5147 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5148 instead of ALL_THREADS.
5149 * infrun.c (find_thread_needs_step_over)
5150 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5151 instead of ALL_THREADS.
5152 * record-btrace.c (record_btrace_open)
5153 (record_btrace_stop_recording, record_btrace_close)
5154 (record_btrace_is_replaying, record_btrace_resume)
5155 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5156 * remote.c (append_pending_thread_resumptions): Likewise.
5157 * thread.c (thread_apply_all_command): Likewise.
5159 2014-06-19 Gary Benson <gbenson@redhat.com>
5161 * i386-nat.c (i386_stopped_by_watchpoint):
5162 Use i386_dr_stopped_by_watchpoint.
5163 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5164 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5166 2014-06-19 Gary Benson <gbenson@redhat.com>
5168 * nat/i386-dregs.c: New file.
5169 * Makefile.in (i386-dregs.o): New rule.
5170 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5171 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5172 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5173 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5174 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5175 * config/i386/go32.mh (NATDEPFILES): Likewise.
5176 * config/i386/linux.mh (NATDEPFILES): Likewise.
5177 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5178 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5179 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5180 * i386-nat.h (debug_hw_points): New declaration.
5181 * i386-nat.c (breakpoint.h): Remove include.
5182 (command.h): Likewise.
5183 (target.h): Likewise.
5184 (gdb_assert.h): Likewise.
5185 (debug_hw_points): Made nonstatic.
5186 (debug_printf): Now in i386-dregs.c.
5187 (TARGET_HAS_DR_LEN_8): Likewise.
5188 (DR_CONTROL_SHIFT): Likewise.
5189 (DR_CONTROL_SIZE): Likewise.
5190 (DR_RW_EXECUTE): Likewise.
5191 (DR_RW_WRITE): Likewise.
5192 (DR_RW_READ): Likewise.
5193 (DR_RW_IORW): Likewise.
5194 (DR_LEN_1): Likewise.
5195 (DR_LEN_2): Likewise.
5196 (DR_LEN_4): Likewise.
5197 (DR_LEN_8): Likewise.
5198 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5199 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5200 (DR_ENABLE_SIZE): Likewise.
5201 (DR_LOCAL_SLOWDOWN): Likewise.
5202 (DR_GLOBAL_SLOWDOWN): Likewise.
5203 (DR_CONTROL_RESERVED): Likewise.
5204 (I386_DR_CONTROL_MASK): Likewise.
5205 (I386_DR_VACANT): Likewise.
5206 (I386_DR_LOCAL_ENABLE): Likewise.
5207 (I386_DR_GLOBAL_ENABLE): Likewise.
5208 (I386_DR_DISABLE): Likewise.
5209 (I386_DR_SET_RW_LEN): Likewise.
5210 (I386_DR_GET_RW_LEN): Likewise.
5211 (I386_DR_WATCH_HIT): Likewise.
5212 (i386_wp_op_t): Likewise.
5213 (i386_show_dr): Likewise.
5214 (i386_length_and_rw_bits): Likewise.
5215 (i386_insert_aligned_watchpoint): Likewise.
5216 (i386_remove_aligned_watchpoint): Likewise.
5217 (i386_handle_nonaligned_watchpoint): Likewise.
5218 (i386_update_inferior_debug_regs): Likewise.
5219 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5220 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5221 (i386_region_ok_for_watchpoint):
5222 Use i386_dr_region_ok_for_watchpoint.
5223 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5225 2014-06-19 Gary Benson <gbenson@redhat.com>
5227 * i386-nat.c (i386_insert_hw_breakpoint): Use
5228 i386_insert_watchpoint.
5229 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5231 2014-06-19 Gary Benson <gbenson@redhat.com>
5233 * i386-nat.c (i386_dr_show): Renamed to
5234 i386_show_dr and made static. All uses updated.
5235 (i386_dr_length_and_rw_bits): Renamed to
5236 i386_length_and_rw_bits and made static.
5238 (i386_dr_insert_aligned_watchpoint): Renamed to
5239 i386_insert_aligned_watchpoint and made static.
5241 (i386_dr_remove_aligned_watchpoint): Renamed to
5242 i386_remove_aligned_watchpoint and made static.
5244 (i386_dr_update_inferior_debug_regs): Renamed to
5245 i386_update_inferior_debug_regs and made static.
5247 * nat/i386-dregs.h (i386_dr_show): Removed.
5248 (i386_dr_length_and_rw_bits): Likewise.
5249 (i386_dr_insert_aligned_watchpoint): Likewise.
5250 (i386_dr_remove_aligned_watchpoint): Likewise.
5251 (i386_dr_update_inferior_debug_regs): Likewise.
5253 2014-06-19 Gary Benson <gbenson@redhat.com>
5255 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5256 * configure: Regenerate.
5257 * config.in: Likewise.
5258 * main.c (signal.h): New include.
5259 (setup_alternate_signal_stack): New function.
5260 (captured_main): Call the above.
5261 * cp-support.c (signal.h): New include.
5262 (catch_demangler_crashes): New flag.
5263 (SIGJMP_BUF): New define.
5264 (SIGSETJMP): Likewise.
5265 (SIGLONGJMP): Likewise.
5266 (gdb_demangle_jmp_buf): New static global.
5267 (gdb_demangle_attempt_core_dump): Likewise.
5268 (gdb_demangle_signal_handler): New function.
5269 (gdb_demangle): If catch_demangler_crashes is set, install the
5270 above signal handler before calling bfd_demangle, and restore
5271 the original signal handler afterwards. Display the offending
5272 symbol and call demangler_warning the first time a segmentation
5274 (_initialize_cp_support): New maint set/show command.
5276 2014-06-19 Gary Benson <gbenson@redhat.com>
5278 * utils.h (resource_limit_kind): New enum.
5279 (can_dump_core): New declaration.
5280 (warn_cant_dump_core): Likewise.
5281 (dump_core): Likewise.
5282 * utils.c (dump_core): Made nonstatic. Added new
5283 parameter "limit_kind".
5284 (can_dump_core): Made nonstatic. Moved printing code to...
5285 (warn_cant_dump_core): New function.
5286 (can_dump_core_warn): Likewise.
5287 (internal_vproblem): Replace calls to can_dump_core with
5288 calls to can_dump_core_warn. Supply new argument to each.
5290 2014-06-19 Gary Benson <gbenson@redhat.com>
5292 * utils.h (demangler_vwarning): New declaration.
5293 (demangler_warning): Likewise.
5294 * utils.c (struct internal_problem)
5295 <user_settable_should_quit>: New field.
5296 <user_settable_should_dump_core>: Likewise
5297 (internal_error_problem): Add values for above new fields.
5298 (internal_warning_problem): Likewise.
5299 (demangler_warning_problem): New static global.
5300 (demangler_vwarning): New function.
5301 (demangler_warning): Likewise.
5302 (add_internal_problem_command): Selectively add commands.
5303 (_initialize_utils): New internal problem command.
5304 * maint.c (maintenance_demangler_warning): New function.
5305 (_initialize_maint_cmds): New command.
5307 2014-06-18 Tom Tromey <tromey@redhat.com>
5309 * f-valprint.c (info_common_command_for_block): Update.
5310 * symtab.h (struct general_symbol_info) <common_block>: Now
5313 2014-06-18 Tom Tromey <tromey@redhat.com>
5315 * symtab.h (struct symtab) <blockvector>: Now const.
5316 * ada-lang.c (ada_add_global_exceptions): Update.
5317 * buildsym.c (augment_type_symtab): Update.
5318 * dwarf2read.c (dw2_lookup_symbol): Update.
5319 * jit.c (finalize_symtab): Update.
5320 * jv-lang.c (add_class_symtab_symbol): Update.
5321 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5323 * objfiles.c (objfile_relocate1): Update.
5324 * psymtab.c (lookup_symbol_aux_psymtabs)
5325 (maintenance_check_psymtabs): Update.
5326 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5328 * spu-tdep.c (spu_catch_start): Update.
5329 * symmisc.c (dump_symtab_1): Update.
5330 * symtab.c (lookup_global_symbol_from_objfile)
5331 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5332 (basic_lookup_transparent_type_quick)
5333 (basic_lookup_transparent_type, find_pc_sect_symtab)
5334 (find_pc_sect_line, search_symbols): Update.
5335 * block.c (find_block_in_blockvector): Make "bl" const.
5336 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5338 (blockvector_contains_pc): Make "bv" const.
5339 (block_for_pc_sect): Update.
5340 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5341 (blockvector_contains_pc): Update.
5342 * breakpoint.c (resolve_sal_pc): Update.
5343 * inline-frame.c (block_starting_point_at): Update.
5345 2014-06-18 Tom Tromey <tromey@redhat.com>
5347 * completer.c (complete_line): Make "line_buffer" const.
5348 * completer.h (complete_line): Update.
5350 2014-06-18 Tom Tromey <tromey@redhat.com>
5352 * symtab.c (add_macro_name): Remove unneeded cast.
5354 2014-06-18 Tom Tromey <tromey@redhat.com>
5356 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5357 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5359 2014-06-18 Tom Tromey <tromey@redhat.com>
5361 * probe.c (info_probes_for_ops): Make "arg" const.
5362 * probe.h (info_probes_for_ops): Update.
5364 2014-06-18 Tom Tromey <tromey@redhat.com>
5366 * varobj.c (varobj_create): Update.
5367 * valops.c (value_of_this): Update.
5368 * tracepoint.c (add_local_symbols, scope_info): Update.
5369 * symtab.h (struct general_symbol_info) <block>: Now const.
5370 * symtab.c (skip_prologue_sal)
5371 (default_make_symbol_completion_list_break_on)
5372 (skip_prologue_using_sal): Update.
5373 * stack.h (iterate_over_block_locals)
5374 (iterate_over_block_local_vars): Update.
5375 * stack.c (print_frame_args): Update.
5376 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5378 (get_selected_block): Make return type const.
5379 * python/py-frame.c (frapy_block): Update.
5380 * python/py-block.c (gdbpy_block_for_pc): Update.
5381 * p-exp.y (%union) <bval>: Now const.
5382 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5383 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5384 * m2-exp.y (%union) <bval>: Now const.
5385 * linespec.c (get_current_search_block): Make return type const.
5386 (create_sals_line_offset, find_label_symbols): Update.
5387 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5389 (block_starting_point_at): Make "block" const.
5390 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5391 (check_exception_resume): Update.
5392 * guile/scm-frame.c (gdbscm_frame_block): Update.
5393 * guile/scm-block.c (gdbscm_lookup_block): Update.
5394 * frame.h (get_frame_block): Update.
5395 (get_selected_block): Make return type const.
5396 * frame.c (frame_id_inner): Update.
5397 * f-valprint.c (info_common_command_for_block)
5398 (info_common_command): Update.
5399 * dwarf2loc.c (dwarf2_find_location_expression)
5400 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5401 (locexpr_describe_location_piece): Update.
5402 * c-exp.y (%union) <bval>: Now const.
5403 * breakpoint.c (resolve_sal_pc): Update.
5404 * blockframe.c (get_frame_block):Make return type const.
5405 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5406 (block_innermost_frame): Update.
5407 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5408 (block_for_pc, block_for_pc_sect): Update.
5409 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5411 (block_for_pc_sect, block_for_pc): Make return type const.
5412 * ax-gdb.c (gen_expr): Update.
5413 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5414 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5415 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5416 (ada_read_var_value): Update.
5417 * ada-exp.y (struct name_info) <block>: Now const.
5419 (block_lookup): Constify.
5421 2014-06-18 Gary Benson <gbenson@redhat.com>
5423 * nat/i386-dregs.h: New file.
5424 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5425 * i386-nat.h (i386-dregs.h): New include.
5426 (DR_FIRSTADDR): Now in i386-dregs.h.
5427 (DR_LASTADDR): Likewise.
5428 (DR_NADDR): Likewise.
5429 (DR_STATUS): Likewise.
5430 (DR_CONTROL): Likewise.
5431 (i386_debug_reg_state): Likewise.
5432 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5434 2014-06-18 Don Breazeal <donb@codesourcery.com>
5436 * breakpoint.c (set_longjmp_breakpoint): Call
5437 momentary_breakpoint_from_master with additional argument.
5438 (set_longjmp_breakpoint_for_call_dummy): Call
5439 momentary_breakpoint_from_master with additional argument.
5440 (set_std_terminate_breakpoint): Call
5441 momentary_breakpoint_from_master with additional argument.
5442 (momentary_breakpoint_from_master): Add argument to function
5443 definition and use it to initialize structure member flag.
5444 (clone_momentary_breakpoint): Call
5445 momentary_breakpoint_from_master with additional argument.
5446 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5447 member flags set in momentary_breakpoint_from_master.
5449 2014-06-18 Gary Benson <gbenson@redhat.com>
5451 * i386-nat.c (i386_show_dr): Renamed to
5452 i386_dr_show and made nonstatic. All uses updated.
5453 (i386_length_and_rw_bits): Renamed to
5454 i386_dr_length_and_rw_bits and made nonstatic.
5456 (i386_insert_aligned_watchpoint): Renamed to
5457 i386_dr_insert_aligned_watchpoint and made nonstatic.
5459 (i386_remove_aligned_watchpoint): Renamed to
5460 i386_dr_remove_aligned_watchpoint and made nonstatic.
5462 (i386_update_inferior_debug_regs): Renamed to
5463 i386_dr_update_inferior_debug_regs and made nonstatic.
5466 2014-06-18 Gary Benson <gbenson@redhat.com>
5468 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5469 (i386_dr_low_can_set_control): Likewise.
5470 (i386_dr_low_set_addr): Likewise.
5471 (i386_dr_low_set_control): Likewise.
5472 (i386_dr_low_get_addr): Likewise.
5473 (i386_dr_low_get_status): Likewise.
5474 (i386_dr_low_get_control): Likewise.
5475 (i386_insert_aligned_watchpoint): Use new macros.
5476 (i386_update_inferior_debug_regs): Likewise.
5477 (i386_stopped_data_address): Likewise.
5479 2014-06-18 Gary Benson <gbenson@redhat.com>
5481 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5482 New parameter. All uses updated.
5484 2014-06-18 Gary Benson <gbenson@redhat.com>
5486 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5489 2014-06-18 Gary Benson <gbenson@redhat.com>
5491 * i386-nat.c (debug_printf): New macro.
5492 (i386_get_debug_register_length): Likewise.
5493 (TARGET_HAS_DR_LEN_8): Use above macro.
5494 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5495 and printf_unfiltered. Use phex to format values.
5497 2014-06-18 Gary Benson <gbenson@redhat.com>
5499 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5502 2014-06-18 Gary Benson <gbenson@redhat.com>
5504 * i386-nat.c: Comment changes.
5506 2014-06-18 Gary Benson <gbenson@redhat.com>
5508 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5510 2014-06-18 Gary Benson <gbenson@redhat.com>
5512 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5513 (i386_insert_aligned_watchpoint): Likewise.
5514 (i386_remove_aligned_watchpoint): Likewise.
5515 (i386_handle_nonaligned_watchpoint): Likewise.
5517 2014-06-18 Gary Benson <gbenson@redhat.com>
5519 * i386-nat.c: Whitespace changes.
5521 2014-06-17 Samuel Bronson <naesten@gmail.com>
5523 * MAINTAINERS: Update Roland McGrath's email address.
5524 Thanks to Sergio Durigan Junior for pointing out that he left
5525 Red Hat a while ago, and giving me a current address.
5527 2014-06-17 Tom Tromey <tromey@redhat.com>
5529 * utils.h (savestring): Remove declaration.
5531 2014-06-17 Tom Tromey <tromey@redhat.com>
5533 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5535 2014-06-16 Keith Seitz <keiths@redhat.com>
5538 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5539 to update the varobj if inferior_ptid is null_ptid.
5541 2014-06-16 Tom Tromey <tromey@redhat.com>
5543 * target.h (struct target_ops) <to_info_proc>: Make parameter
5545 (target_info_proc): Update.
5546 * target.c (target_info_proc): Make "args" const.
5547 * procfs.c (procfs_info_proc): Update.
5548 * linux-tdep.c (linux_info_proc): Update.
5549 (linux_core_info_proc_mappings): Make "args" const.
5550 (linux_core_info_proc): Update.
5551 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5552 * gdbarch.c: Rebuild.
5553 * gdbarch.h: Rebuild.
5554 * corelow.c (core_info_proc): Update.
5556 2014-06-16 Tom Tromey <tromey@redhat.com>
5558 * target.h (struct target_ops) <to_disconnect>: Make parameter
5560 (target_disconnect): Update.
5561 * target.c (target_disconnect): Make "args" const.
5562 * target-delegates.c: Rebuild.
5563 * remote.c (remote_disconnect): Update.
5564 * record.h (record_disconnect): Update.
5565 * record.c (record_disconnect): Update.
5566 * inf-child.c (inf_child_disconnect): Update.
5568 2014-06-16 Tom Tromey <tromey@redhat.com>
5570 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5571 * target.c (debug_to_rcmd, default_rcmd): Update.
5572 * target-delegates.c: Rebuild.
5573 * remote.c (remote_rcmd): Update.
5574 * monitor.c (monitor_rcmd): Update.
5576 2014-06-16 Pedro Alves <palves@redhat.com>
5578 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5579 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5580 have OBJF_SHARED set.
5581 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5582 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5583 instead of OBJF_USERLOADED.
5584 * objfiles.h (OBJF_SHARED): Update comment.
5585 (userloaded_objfile_contains_address_p): Rename to ...
5586 (shared_objfile_contains_address_p): ... this, and update
5588 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5590 (remove_symbol_file_command): Skip objfiles that don't have
5593 2014-06-16 Tom Tromey <tromey@redhat.com>
5595 * minsyms.h (prim_record_minimal_symbol)
5596 (prim_record_minimal_symbol_and_info): Update comments.
5598 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5600 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5601 or --without-guile, according to how GDB was built.
5603 2014-06-13 Tom Tromey <tromey@redhat.com>
5605 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5607 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5609 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5611 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5612 help_list.Pass all_commands, not -1, to help_list.
5613 * cli/cli-dump.c (dump_command, append_command)
5614 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5615 (binary_dump_command, binary_append_command): Pass all_commands,
5616 not -1, to help_list.
5617 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5619 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5621 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5623 * top.c (set_history): Pass all_commands, not -1, to help_list.
5624 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5625 all_commands, not -1, to help_list.
5626 * symfile.c (overlay_command): Pass all_commands, not -1, to
5628 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5630 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5632 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5634 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5635 not -1, to help_list.
5636 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5637 not -1, to help_list.
5638 * maint.c (maintenance_command, maintenance_info_command)
5639 (maintenance_print_command, maintenance_set_cmd): Pass
5640 all_commands, not -1, to help_list.
5641 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5643 * language.c (set_check): Pass all_commands, not -1, to help_list.
5644 * infcmd.c (unset_command): Pass all_commands, not -1, to
5646 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5648 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5650 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5652 * breakpoint.c (save_command): Pass all_commands, not -1, to
5654 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5655 all_commands, not -1, to help_list.
5657 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5659 * regcache.c (struct register_to_invalidate): New structure.
5660 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5662 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5664 2014-06-12 Yao Qi <yao@codesourcery.com>
5666 * varobj.c (varobj_get_num_children): Call
5667 varobj_is_dynamic_p.
5668 (varobj_list_children): Likewise.
5669 (varobj_update): Likewise. Update comments.
5671 2014-06-12 Yao Qi <yao@codesourcery.com>
5673 * varobj.c (varobj_pretty_printed_p): Rename to ...
5674 (varobj_is_dynamic_p): ... this. New function.
5675 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5676 (varobj_is_dynamic_p): Declare.
5677 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5678 (mi_print_value_p, varobj_update_one): Likewise.
5680 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5681 Yao Qi <yao@codesourcery.com>
5683 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5684 (varobj_get_iterator): Wrap up code for pretty-printer by
5685 "#if HAVE_PYTHON" and "#endif".
5686 (update_dynamic_varobj_children): Likewise.
5688 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5689 Yao Qi <yao@codesourcery.com>
5691 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5692 gdb_python_initialized is false. Move some code from varobj.c.
5693 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5694 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5695 (struct varobj_item): Moved to varobj-iter.h".
5696 (varobj_clear_saved_item): New function.
5697 (update_dynamic_varobj_children): Move python-related code to
5699 (free_variable): Call varobj_clear_saved_item and
5702 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5703 Yao Qi <yao@codesourcery.com>
5705 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5706 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5707 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5708 (py-varobj.o): New rule.
5709 * python/py-varobj.c: New file.
5710 * python/python-internal.h (py_varobj_get_iterator): Declare.
5711 * varobj-iter.h: New file.
5712 * varobj.c: Include "varobj-iter.h"
5713 (struct varobj) <child_iter>: Change its type from "PyObject *"
5714 to "struct varobj_iter *".
5715 <saved_item>: Likewise.
5716 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5717 [HAVE_PYTHON] (varobj_get_iterator): New function.
5718 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5719 python-specific code to python/py-varobj.c.
5720 (install_visualizer): Call varobj_iter_delete instead of
5722 * varobj.h (varobj_ensure_python_env): Declare.
5724 2014-06-12 Yao Qi <yao@codesourcery.com>
5726 * varobj.c (struct varobj_item): New structure.
5727 (create_child_with_value): Update declaration.
5728 (varobj_add_child): Replace arguments 'name' and 'value' with
5729 'item'. All callers updated.
5730 (install_dynamic_child): Likewise.
5731 (update_dynamic_varobj_children): Likewise.
5732 (varobj_add_child): Likewise.
5733 (create_child_with_value): Likewise.
5735 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5737 * NEWS: Create a new section for the next release branch.
5738 Rename the section of the current branch, now that it has
5741 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5743 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5744 * version.in: Bump version to 7.8.50.DATE-cvs.
5746 2014-06-11 Pedro Alves <palves@redhat.com>
5749 * ser-mingw.c (net_windows_socket_check_pending): New function.
5750 (net_windows_select_thread): Ignore spurious wakeups. Use
5751 net_windows_socket_check_pending.
5752 (net_windows_wait_handle): Check for pending events with
5753 ioctlsocket, through net_windows_socket_check_pending, instead of
5754 checking the socket's event.
5756 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5758 * python/python-internal.h (gdb_PyObject_GetAttrString)
5759 (gdb_PyObject_HasAttrString): New inline function definitions.
5760 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5761 char * of the second argument to PyObject_GetAttrString.
5763 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5765 * serial.c (serial_write): Fix index of character to be printed
5766 in call to serial_logchar when serial debug traces are enabled.
5768 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5770 * gdbtypes (resolve_dynamic_range): Add function description.
5772 2014-06-09 Pedro Alves <palves@redhat.com>
5774 * linux-nat.c (linux_child_follow_fork): Initialize status with
5775 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5776 inner block. Only pass the signal to PTRACE_DETACH if in pass
5779 2014-06-09 Gary Benson <gbenson@redhat.com>
5781 * common/signals.c (gdb_signal_from_host): Reorder to separate
5782 the always-available ANSI-standard signals from the signals that
5784 (do_gdb_signal_to_host): Likewise.
5785 * proc-events.c (signal_table): Likewise.
5787 2014-06-08 Hui Zhu <hui@codesourcery.com>
5789 * common/linux-ptrace.c (linux_disable_event_reporting): New
5791 * common/linux-ptrace.h (linux_disable_event_reporting): New
5793 * linux-nat.c (linux_child_follow_fork): Do a single step before
5796 2014-06-07 Keith Seitz <keiths@redhat.com>
5800 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5801 from symbol_matches_domain in symtab.c. All local callers
5802 of symbol_matches_domain updated.
5803 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5804 search STRUCT_DOMAIN.
5805 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5806 independently. standard_lookup will do that automatically.
5807 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5808 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5809 (cp_lookup_symbol_in_namespace): Likewise.
5810 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5811 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5812 may return a STRUCT_DOMAIN match.
5813 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5814 * cp-support.c: Include language.h.
5815 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5817 * psymtab.c (match_partial_symbol): Compare the requested
5818 domain with the symbol's domain directly.
5819 (lookup_partial_symbol): Likewise.
5820 * symtab.c (lookup_symbol_in_language): Explain when/why
5821 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5822 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5823 appropriate languages.
5824 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5825 and moved to ada-lang.c
5826 (lookup_block_symbol): Explain that this function only returns
5827 symbol matching the requested DOMAIN.
5828 Compare the requested domain with the symbol's domain directly.
5829 (iterate_over_symbols): Compare the requested domain with the
5830 symbol's domain directly.
5831 * symtab.h (symbol_matches_domain): Remove.
5833 2014-06-06 Doug Evans <xdje42@gmail.com>
5835 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5836 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5837 (gdbscm_guile_version_is_at_least): Declare.
5838 (gdbscm_scm_string_to_int): Declare.
5839 * guile/guile.c (gdbscm_guile_major_version): New global.
5840 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5841 (guile_datadir): New static global.
5842 (gdbscm_guile_data_directory): New function.
5843 (initialize_scheme_side): Update.
5844 (misc_guile_functions): Add guile-data-directory.
5845 (initialize_gdb_module): Fetch guile version number.
5846 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5847 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5848 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5849 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5851 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5852 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5853 * guile/scm-value.c (gdbscm_value_to_string): Only call
5854 scm_port_conversion_strategy if Guile version >= 2.0.6.
5856 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5858 * main.c (print_gdb_help): Add -q and --silent.
5860 2014-06-06 Gary Benson <gbenson@redhat.com>
5862 * common/signals.c: Remove preprocessor conditionals for
5863 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5864 SIGSEGV and SIGTERM.
5865 * proc-events.c: Likewise.
5867 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5869 * symfile.c (symfile_free_objfile): Remove restriction to
5871 * symfile-mem.c (symbol_file_add_from_memory): Call
5872 add_target_sections_of_objfile.
5874 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5876 * guile/scm-value.c (gdbscm_history_append_x): Use
5877 'vlscm_get_value_smob_arg_unsafe' instead of
5878 'vlscm_scm_to_value'.
5880 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5883 * utils.c (printchar): Don't escape at all if quoter is NUL.
5884 Update function documentation to clarify effect of parameter
5886 * remote.c (escape_buffer): Pass '\\' as the quoter to
5887 fputstrn_unfiltered.
5888 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5889 generate the output.
5890 (mi_solib_unloaded): Same.
5892 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5894 * development.sh: Delete.
5895 * Makefile.in (config.status): Adjust dependency on development.sh.
5896 * configure.ac: Adjust development.sh source call.
5897 * configure: Regenerate.
5899 2014-06-04 Doug Evans <xdje42@gmail.com>
5901 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5902 is_scheme_bkpt, spec.
5903 (bpscm_make_breakpoint_smob): Initialize new members.
5904 (gdbscm_create_breakpoint_x): Split into two ...
5905 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5906 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5907 (scheme_function breakpoint_functions): Update.
5908 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5909 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5910 register-breakpoint!.
5912 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5915 * mem-break.c (z_type_supported): Return zero if
5916 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5918 2014-06-04 Tom Tromey <tromey@redhat.com>
5920 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5921 value_from_contents_and_address_unresolved.
5922 (ada_template_to_fixed_record_type_1): Likewise.
5923 (ada_which_variant_applies): Likewise.
5924 * value.h (value_from_contents_and_address_unresolved): Declare.
5925 * value.c (value_from_contents_and_address_unresolved): New
5927 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5928 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5929 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5931 2014-06-04 Tom Tromey <tromey@redhat.com>
5933 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5935 2014-06-04 Tom Tromey <tromey@redhat.com>
5937 * procfs.c (procfs_attach): Make "args" const.
5938 * windows-nat.c (windows_attach): Make "args" const.
5939 * nto-procfs.c (procfs_attach): Make "args" const.
5940 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5941 * go32-nat.c (go32_attach): Make "args" const.
5942 * gnu-nat.c (gnu_attach): Make "args" const.
5943 * darwin-nat.c (darwin_attach): Make "args" const.
5944 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5945 * linux-nat.c (linux_nat_attach): Make "args" const.
5946 * remote.c (extended_remote_attach_1, extended_remote_attach):
5948 * target.h (struct target_ops) <to_attach>: Make "args" const.
5949 (find_default_attach): Likewise.
5950 * utils.c (parse_pid_to_attach): Make "args" const.
5951 * utils.h (parse_pid_to_attach): Update.
5953 2014-06-04 Tom Tromey <tromey@redhat.com>
5955 * target-delegates.c: Rebuild.
5956 * target.c (default_thread_address_space): New function.
5957 (target_thread_address_space): Simplify.
5958 * target.h (struct target_ops) <to_thread_address_space>: Add
5959 TARGET_DEFAULT_FUNC.
5961 2014-06-04 Doug Evans <xdje42@gmail.com>
5963 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5965 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5967 * record-btrace.c: Include event-loop.h and inf-loop.h.
5968 (record_btrace_resume_exec_dir)
5969 (record_btrace_async_inferior_event_handler)
5970 (record_btrace_handle_async_inferior_event): New.
5971 (record_btrace_open): Create async event handler.
5972 (record_btrace_close): Delete async event handler.
5973 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5974 Mark async event handler.
5975 (record_btrace_execution_direction): New.
5976 (init_record_btrace_ops): Initialize to_execution_direction.
5978 2014-06-03 Doug Evans <xdje42@gmail.com>
5980 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5981 (gdbscm_make_parameter): Ditto.
5983 2014-06-03 Doug Evans <dje@google.com>
5985 * exec.c (exec_close_1): Call clear_section_table instead of
5986 resize_section_table.
5987 (clear_section_table): New function.
5988 (resize_section_table): Make static. Rename arg num_added to
5990 * exec.h (clear_section_table): Declare.
5991 (resize_section_table): Delete.
5992 * progspace.c (release_program_space): Call clear_section_table
5993 instead of resize_section_table.
5995 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5997 * NEWS (Python Scripting): Add entry about the new xmethods
6000 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6002 * python/py-xmethods.c: New file.
6003 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6004 (objfpy_dealloc): XDECREF on the new xmethods field.
6005 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6007 (objfpy_get_xmethods): New function.
6008 (objfile_getset): New entry 'xmethods'.
6009 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6010 (pspy_dealloc): XDECREF on the new xmethods field.
6011 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6013 (pspy_get_xmethods): New function.
6014 (pspace_getset): New entry 'xmethods'.
6015 * python/python-internal.h: Add declarations for new functions.
6016 * python/python.c (_initialize_python): Invoke
6017 gdbpy_initialize_xmethods.
6018 * python/lib/gdb/__init__.py (xmethods): New
6020 * python/lib/gdb/xmethod.py: New file.
6021 * python/lib/gdb/command/xmethods.py: New file.
6023 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6025 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6026 best match method returned by find_overload_match is an xmethod.
6027 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6028 the best matching operator returned by find_overload_match is an
6030 * valops.c: #include "extension.h".
6031 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6032 Return void. The list of matching source methods is returned in
6033 "fn_list" and a vector of matching debug method workers is
6034 returned in "xm_worker_vec". Update all callers.
6035 (value_find_oload_method_list): Likewise.
6036 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6037 non-NULL, then the index of the best matching method in this
6038 vector is returned. Update all callers.
6039 (find_overload_match): Include xmethods while performing overload
6042 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6044 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6045 * extension-priv.h (struct extension_language_ops): Add the
6047 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6048 get_matching_xmethod_workers, get_xmethod_argtypes,
6049 invoke_xmethod, free_xmethod_worker,
6050 free_xmethod_worker_vec): New functions.
6051 * extension.h: #include "common/vec.h".
6052 New function declarations.
6053 (struct xmethod_worker): New struct.
6054 (VEC (xmethod_worker_ptr)): New vector type.
6055 (xmethod_worker_ptr): New typedef.
6056 (xmethod_worker_vec): Likewise.
6057 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6059 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6060 (struct builtin_type): New field "xmethod".
6061 * valarith.c (value_ptradd): Assert that the value argument is not
6063 * valops.c (value_must_coerce_to_target): Return 0 for
6064 lval_xcallable values.
6065 * value.c (struct value): New field XM_WORKER in the field
6067 (value_address, value_raw_address): Return 0 for lval_xcallable
6069 (set_value_address): Assert that the value is not an
6071 (value_free): Free the associated xmethod worker when freeing
6072 lval_xcallable values.
6073 (set_value_component_location): Assert that the WHOLE value is not
6075 (value_of_xmethod, call_xmethod): New functions.
6076 * value.h: Declare "struct xmethod_worker".
6077 Declare new functions value_of_xmethod, call_xmethod.
6079 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6080 Pedro Alves <palves@redhat.com>
6082 PR breakpoints/17000
6083 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6084 New function, extracted from software_breakpoint_inserted_here_p.
6085 (software_breakpoint_inserted_here_p): Replace factored out code
6086 by call to find_non_raw_software_breakpoint_inserted_here.
6087 (bp_target_info_copy_insertion_state): New function.
6088 (bkpt_insert_location): Handle the case of a single-step
6089 breakpoint already inserted at the same address.
6090 (bkpt_remove_location): Handle the case of a single-step
6091 breakpoint still inserted at the same address.
6092 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6093 breakpoint already inserted at the same address.
6094 (deprecated_remove_raw_breakpoint): Handle the case of a
6095 non-raw breakpoint still inserted at the same address.
6096 (find_single_step_breakpoint): New function, extracted from
6097 single_step_breakpoint_inserted_here_p.
6098 (find_single_step_breakpoint): New function,
6099 factored out from single_step_breakpoint_inserted_here_p.
6100 (single_step_breakpoint_inserted_here_p): Reimplement.
6102 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6104 Pushed by Joel Brobecker <brobecker@adacore.com>
6105 * source.c (show_substitute_path_command): Fix display of matching
6108 2014-06-03 Gary Benson <gbenson@redhat.com>
6110 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6112 2014-06-02 Doug Evans <xdje42@gmail.com>
6114 Add parameter support for Guile.
6115 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6116 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6117 (scm-param.o): New rule.
6118 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6119 (gdbscm_misc_error): Declare.
6120 (gdbscm_canonicalize_command_name): Declare.
6121 (gdbscm_scm_to_host_string): Declare.
6122 (gdbscm_scm_from_host_string): Declare.
6123 (gdbscm_initialize_parameters): Declare.
6124 * guile/guile.c (initialize_gdb_module): Call
6125 gdbscm_initialize_parameters.
6126 * guile/lib/gdb.scm: Export parameter symbols.
6127 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6128 cmdscm_canonicalize_name and made public. All callers updated.
6129 * guile/scm-exception.c (gdbscm_misc_error): New function.
6130 * guile/scm-param.c: New file.
6131 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6132 (gdbscm_scm_to_host_string): New function.
6133 (gdbscm_scm_from_host_string): New function.
6134 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6136 2014-06-02 Doug Evans <xdje42@gmail.com>
6138 Add command support for Guile.
6139 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6140 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6141 (scm-cmd.o): New rule.
6142 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6143 (gdbscm_user_error_p): Declare.
6144 (gdbscm_parse_command_name): Declare.
6145 (gdbscm_valid_command_class_p): Declare.
6146 (gdbscm_initialize_commands): Declare.
6147 * guile/guile.c (initialize_gdb_module): Call
6148 gdbscm_initialize_commands.
6149 * guile/lib/gdb.scm: Export command symbols.
6150 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6151 (throw-user-error): New function.
6152 * guile/scm-cmd.c: New file.
6153 * guile/scm-exception.c (user_error_symbol): New static global.
6154 (gdbscm_user_error_p): New function.
6155 (gdbscm_initialize_exceptions): Set user_error_symbol.
6156 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6158 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6160 * top.c (command_loop): Handle comments here...
6161 (command_line_input): ... not here.
6163 2014-06-02 Doug Evans <xdje42@gmail.com>
6165 Add progspace support for Guile.
6166 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6167 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6168 (scm-progspace.o): New rule.
6169 * guile/guile-internal.h (pspace_smob): New typedef.
6170 (psscm_pspace_smob_pretty_printers): Declare.
6171 (psscm_pspace_smob_from_pspace): Declare.
6172 (psscm_scm_from_pspace): Declare.
6173 * guile/guile.c (initialize_gdb_module): Call
6174 gdbscm_initialize_pspaces.
6175 * guile/lib/gdb.scm: Export progspace symbols.
6176 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6178 (append-pretty-printer!): Ditto.
6179 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6181 * guile/scm-progspace.c: New file.
6183 2014-06-03 Alan Modra <amodra@gmail.com>
6185 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6186 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6188 2014-06-02 Doug Evans <dje@google.com>
6190 Add support for skeletonless type units.
6191 * dwarf2read.c (struct dwarf2_per_objfile): New member
6192 n_allocated_type_units.
6193 (struct dwarf2_per_objfile) <tu_stats>: New member
6194 nr_all_type_units_reallocs.
6195 (create_signatured_type_table_from_index): Initialize
6196 n_allocated_type_units
6197 (create_all_type_units): Ditto.
6198 (add_type_unit): Move up in file. New arg slot.
6199 All callers updated. Increase space for all_type_units more
6201 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6202 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6203 (lookup_dwp_signatured_type): Ditto.
6204 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6205 All callers updated.
6206 (build_type_psymtabs_1): Leave type_unit_groups as
6207 NULL if no TUs present.
6208 (print_tu_stats): New function.
6209 (process_skeletonless_type_unit): New function.
6210 (process_dwo_file_for_skeletonless_type_units): New
6212 (process_skeletonless_type_units): New function.
6213 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6214 Call print tu_stats if debugging enabled.
6216 2014-06-02 Pedro Alves <palves@redhat.com>
6218 * breakpoint.c (build_target_command_list): Don't build a command
6219 list if we have any duplicate location that isn't a dprintf.
6221 2014-06-02 Pedro Alves <palves@redhat.com>
6223 * breakpoint.c (dprintf_breakpoint_hit): New function.
6224 (initialize_breakpoint_ops): Install it as dprintf's
6225 breakpoint_hit method.
6227 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6229 * source.c (substitute_path_rule_matches): Simplify using
6230 filename_ncmp instead of FILENAME_CMP.
6232 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6234 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6236 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6238 * configure.ac: When Guile is available, check for the
6239 availability of 'scm_new_smob'.
6240 * configure, config.h.in: Regenerate.
6241 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6244 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6246 * frame.c (struct frame_info): Add stop_string field.
6247 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6248 (get_prev_frame_always): Old content moved into
6249 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6250 TRY_CATCH, handle MEMORY_ERROR exceptions.
6251 (frame_stop_reason_string): New function definition.
6252 * frame.h (unwind_stop_reason_to_string): Extend comment to
6253 mention frame_stop_reason_string.
6254 (frame_stop_reason_string): New function declaration.
6255 * stack.c (frame_info): Switch to frame_stop_reason_string.
6256 (backtrace_command_1): Switch to frame_stop_reason_string.
6257 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6258 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6259 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6261 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6263 * frame.c (frame_stop_reason_string): Rename to ...
6264 (unwind_stop_reason_to_string): this.
6265 * frame.h (frame_stop_reason_string): Rename to ...
6266 (unwind_stop_reason_to_string): this.
6267 * stack.c (frame_info): Update call to frame_stop_reason_string.
6268 (backtrace_command_1): Likewise.
6269 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6270 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6272 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6274 * frame.c (remove_prev_frame): New function.
6275 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6278 2014-05-29 Pedro Alves <palves@redhat.com>
6280 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6281 and make it const. When a single-step decays to a continue,
6282 clear 'step', not 'hw_step'. Pass whether the caller wanted
6283 to step to user_visible_resume_ptid, not what we ask the
6286 2014-05-29 Pedro Alves <palves@redhat.com>
6288 * infrun.c (process_event_stop_test, handle_step_into_function)
6289 (handle_step_into_function_backward): Adjust.
6290 Don't set the even thread's stop_step and call stop_waiting before
6291 calling end_stepping_range. Instead do that ...
6292 (end_stepping_range): ... here. Take an ecs pointer parameter.
6294 2014-05-29 Pedro Alves <palves@redhat.com>
6296 * infrun.c (stop_stepping): Rename to ...
6297 (stop_waiting): ... this.
6298 (proceed): Update comment.
6299 (process_event_stop_test, handle_inferior_event)
6300 (handle_signal_stop, handle_step_into_function)
6301 (handle_step_into_function_backward): Update.
6303 2014-05-29 Pedro Alves <palves@redhat.com>
6305 * infcall.c (run_inferior_call): Don't check whether the current
6306 thread is running after the proceed call.
6308 2014-05-29 Pedro Alves <palves@redhat.com>
6309 Tom Tromey <tromey@redhat.com>
6311 * NEWS: Mention "maint set target-async", "set mi-async", and that
6312 background execution commands are now always available.
6313 * target.h (target_async_permitted): Update comment.
6314 * target.c (target_async_permitted, target_async_permitted_1):
6316 (set_target_async_command): Rename to ...
6317 (maint_set_target_async_command): ... this.
6318 (show_target_async_command): Rename to ...
6319 (maint_show_target_async_command): ... this.
6320 (_initialize_target): Adjust.
6321 * infcmd.c (prepare_execution_command): Make extern.
6322 * inferior.h (prepare_execution_command): Declare.
6323 * infrun.c (set_observer_mode): Leave target async alone.
6324 * mi/mi-interp.c (mi_interpreter_init): Install
6325 mi_on_sync_execution_done as sync_execution_done observer.
6326 (mi_on_sync_execution_done): New function.
6327 (mi_execute_command_input_handler): Don't print the prompt if we
6328 just started a synchronous command with an async target.
6329 (mi_on_resume): Check sync_execution before printing prompt.
6330 * mi/mi-main.h (mi_async_p): Declare.
6331 * mi/mi-main.c: Include gdbcmd.h.
6332 (mi_async_p): New function.
6333 (mi_async, mi_async_1): New globals.
6334 (set_mi_async_command, show_mi_async_command, mi_async): New
6336 (exec_continue): Call prepare_execution_command.
6337 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6338 (mi_execute_async_cli_command): Use mi_async_p.
6339 (_initialize_mi_main): Install "set mi-async". Make
6340 "target-async" a deprecated alias.
6342 2014-05-29 Pedro Alves <palves@redhat.com>
6344 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6345 (_initialize_cli_interp): Adjust.
6346 * event-loop.c: Include "observer.h".
6347 (start_event_loop): Notify 'command_error' observers instead of
6348 calling display_gdb_prompt. Remove FIXME comment.
6349 * event-top.c (display_gdb_prompt): Remove call into the
6351 * inf-loop.c: Include "observer.h".
6352 (inferior_event_handler): Notify 'command_error' observers instead
6353 of calling display_gdb_prompt.
6354 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6355 observers instead of calling display_gdb_prompt.
6356 * interps.c (interp_set): Don't call display_gdb_prompt.
6357 (current_interp_display_prompt_p): Delete.
6358 * interps.h (interp_prompt_p): Delete declaration.
6359 (interp_prompt_p_ftype): Delete.
6360 (struct interp_procs) <prompt_proc_p>: Delete field.
6361 (current_interp_display_prompt_p): Delete declaration.
6362 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6363 (_initialize_mi_interp): Adjust.
6364 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6365 'command_error' observers.
6366 (tui_on_sync_execution_done, tui_on_command_error): New
6368 (tui_display_prompt_p): Delete.
6369 (_initialize_tui_interp): Adjust.
6371 2014-05-29 Pedro Alves <palves@redhat.com>
6374 * cli/cli-interp.c: Include infrun.h and observer.h.
6375 (cli_uiout, cli_interp): New globals.
6376 (cli_on_signal_received, cli_on_end_stepping_range)
6377 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6379 (cli_interpreter_init): Install them as 'end_stepping_range',
6380 'signal_received' 'signal_exited', 'exited' and 'no_history'
6382 (_initialize_cli_interp): Remove cli_interp local.
6383 * infrun.c (handle_inferior_event): Call the several stop reason
6384 observers instead of printing the stop reason directly.
6385 (end_stepping_range): New function.
6386 (print_end_stepping_range_reason, print_signal_exited_reason)
6387 (print_exited_reason, print_signal_received_reason)
6388 (print_no_history_reason): Make static, and add an uiout
6389 parameter. Print to that instead of to CURRENT_UIOUT.
6390 * infrun.h (print_end_stepping_range_reason)
6391 (print_signal_exited_reason, print_exited_reason)
6392 (print_signal_received_reason print_no_history_reason): New
6394 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6396 <cli_uiout>: New field.
6397 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6398 uiout for CLI output. Install 'signal_received',
6399 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6401 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6402 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6403 (mi_on_no_history): New functions.
6404 (ui_out_free_cleanup): Delete function.
6405 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6406 instead use the one already stored in the MI interpreter data.
6407 (mi_ui_out): Adjust.
6408 * tui/tui-interp.c: Include infrun.h and observer.h.
6409 (tui_interp): New global.
6410 (tui_on_signal_received, tui_on_end_stepping_range)
6411 (tui_on_signal_exited, tui_on_exited)
6412 (tui_on_no_history): New functions.
6413 (tui_init): Install them as 'end_stepping_range',
6414 'signal_received' 'signal_exited', 'exited' and 'no_history'
6416 (_initialize_tui_interp): Delete tui_interp local.
6418 2014-05-29 Pedro Alves <palves@redhat.com>
6421 * linux-nat.c (linux_nat_resume_callback): Rename the second
6422 parameter to 'except'. Skip LP if it points to EXCEPT.
6423 (linux_nat_resume): Don't mark the event lwp as not stopped
6424 before resuming sibling lwps. Instead ask
6425 linux_nat_resume_callback to skip the event lwp. Mark it as not
6426 stopped after actually resuming it.
6427 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6429 (wait_lwp): Mark the lwp as stopped here.
6430 (stop_wait_callback): Mark the lwp as not stopped right after
6431 resuming it. Don't mark lwps as stopped here.
6432 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6433 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6435 2014-05-29 Pedro Alves <palves@redhat.com>
6438 * infrun.c (resume): Determine how much to resume depending on
6439 whether the caller wanted a step, not whether we can hardware step
6440 the target. Mark all threads that we intend to run as running,
6441 unless we're calling an inferior function.
6442 (normal_stop): If the thread is running an infcall, don't finish
6444 * target.c (target_resume): Don't mark threads as running here.
6446 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6448 * serial.c (_initialize_serial): Remove support for
6449 the "set remotebaud" and "show remotebaud" commands.
6450 * NEWS: Add entry documenting the removal of that command.
6452 2014-05-28 Yao Qi <yao@codesourcery.com>
6454 * charset.c: Fix typo in comments.
6456 2014-05-27 Gary Benson <gbenson@redhat.com>
6458 * utils.c (internal_vproblem): Prompt for a bug report.
6460 2014-05-26 Andy Wingo <wingo@igalia.com>
6462 * guile/scm-arch.c (arscm_mark_arch_smob):
6463 * guile/scm-block.c (bkscm_mark_block_smob)
6464 (bkscm_mark_block_syms_progress_smob):
6465 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6466 * guile/scm-exception.c (exscm_mark_exception_smob):
6467 * guile/scm-frame.c (frscm_mark_frame_smob):
6468 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6469 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6470 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6471 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6472 (ppscm_mark_pretty_printer_worker_smob):
6473 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6474 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6475 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6476 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6478 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6481 2014-05-26 Andy Wingo <wingo@igalia.com>
6482 Doug Evans <xdje42@gmail.com>
6484 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6485 empty_base_class. All uses updated.
6486 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6487 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6489 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6490 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6491 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6492 (gdbscm_gsmob_has_property_p, add_property_name)
6493 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6494 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6495 (gdb-object-has-property?, gdb-object-properties): Remove.
6496 (gdb-object-kind): Renamed from gsmob-kind.
6498 2014-05-26 Andy Wingo <wingo@igalia.com>
6500 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6501 * configure: Regenerate.
6503 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6505 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6507 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6509 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6510 (replay_memory_access_read_only, replay_memory_access_read_write)
6511 (replay_memory_access_types, replay_memory_access)
6512 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6513 (cmd_set_record_btrace, cmd_show_record_btrace)
6514 (cmd_show_replay_memory_access): New.
6515 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6516 (record_btrace_remove_breakpoint): Replace
6517 record_btrace_allow_memory_access with replay_memory_access.
6518 (_initialize_record_btrace): Add commands.
6519 * NEWS: Announce it.
6521 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6523 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6525 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6527 * MAINTAINERS (Write After Approval): Move self back from
6530 2014-05-22 Pedro Alves <palves@redhat.com>
6532 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6533 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6534 (disable_randomization, enum exec_direction_kind)
6535 (execution_direction, stop_registers, start_remote)
6536 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6537 (wait_for_inferior, normal_stop, get_last_target_status)
6538 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6539 (insert_step_resume_breakpoint_at_sal)
6540 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6541 (set_step_info, print_stop_event, signal_stop_state)
6542 (signal_print_state, signal_pass_state, signal_stop_update)
6543 (signal_print_update, signal_pass_update)
6544 (update_signals_program_target, clear_exit_convenience_vars)
6545 (displaced_step_dump_bytes, update_observer_mode)
6546 (signal_catch_update, gdb_signal_from_command): Move
6548 * infrun.h: ... to this new file.
6549 * amd64-tdep.c: Include infrun.h.
6550 * annotate.c: Include infrun.h.
6551 * arch-utils.c: Include infrun.h.
6552 * arm-linux-tdep.c: Include infrun.h.
6553 * arm-tdep.c: Include infrun.h.
6554 * break-catch-sig.c: Include infrun.h.
6555 * breakpoint.c: Include infrun.h.
6556 * common/agent.c: Include infrun.h instead of inferior.h.
6557 * corelow.c: Include infrun.h.
6558 * event-top.c: Include infrun.h.
6559 * go32-nat.c: Include infrun.h.
6560 * i386-tdep.c: Include infrun.h.
6561 * inf-loop.c: Include infrun.h.
6562 * infcall.c: Include infrun.h.
6563 * infcmd.c: Include infrun.h.
6564 * infrun.c: Include infrun.h.
6565 * linux-fork.c: Include infrun.h.
6566 * linux-nat.c: Include infrun.h.
6567 * linux-thread-db.c: Include infrun.h.
6568 * monitor.c: Include infrun.h.
6569 * nto-tdep.c: Include infrun.h.
6570 * procfs.c: Include infrun.h.
6571 * record-btrace.c: Include infrun.h.
6572 * record-full.c: Include infrun.h.
6573 * remote-m32r-sdi.c: Include infrun.h.
6574 * remote-mips.c: Include infrun.h.
6575 * remote-notif.c: Include infrun.h.
6576 * remote-sim.c: Include infrun.h.
6577 * remote.c: Include infrun.h.
6578 * reverse.c: Include infrun.h.
6579 * rs6000-tdep.c: Include infrun.h.
6580 * s390-linux-tdep.c: Include infrun.h.
6581 * solib-irix.c: Include infrun.h.
6582 * solib-osf.c: Include infrun.h.
6583 * solib-svr4.c: Include infrun.h.
6584 * target.c: Include infrun.h.
6585 * top.c: Include infrun.h.
6586 * windows-nat.c: Include infrun.h.
6587 * mi/mi-interp.c: Include infrun.h.
6588 * mi/mi-main.c: Include infrun.h.
6589 * python/py-threadevent.c: Include infrun.h.
6591 2014-05-22 Pedro Alves <palves@redhat.com>
6593 * infrun.c (handle_inferior_event): Store the exit code for
6594 --return-child-result here, instead of ...
6595 (print_exited_reason): ... here.
6597 2014-05-21 Pedro Alves <palves@redhat.com>
6600 * gdbthread.h (struct thread_control_state): New field
6602 * infrun.c (follow_fork): Copy the new thread control field to the
6604 (clear_proceed_status_thread): Clear the new thread control field.
6605 (proceed): Set the new thread control field.
6606 * interps.h (command_interp): Declare.
6607 * interps.c (command_interpreter): New global.
6608 (command_interp): New function.
6609 (interp_exec): Set `command_interpreter' while here.
6610 * cli-out.c (cli_uiout_dtor): New function.
6611 (cli_ui_out_impl): Install it.
6612 * mi/mi-interp.c: Include cli-out.h.
6613 (mi_cmd_interpreter_exec): Add comment.
6614 (restore_current_uiout_cleanup): New function.
6615 (ui_out_free_cleanup): New function.
6616 (mi_on_normal_stop): If finishing an execution command started by
6617 a CLI command, or any kind of breakpoint-like event triggered,
6618 print the stop event to the output (CLI) stream.
6619 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6621 2014-05-21 Pedro Alves <palves@redhat.com>
6623 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6624 current source line having changed.
6625 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6626 * infrun.c (normal_stop): Adjust call to
6627 set_current_sal_from_frame.
6628 * source.c (clear_lines_listed_range): New function.
6629 (set_current_source_symtab_and_line, identify_source_line): Clear
6630 the lines listed range.
6631 (line_info): Handle the first "info line" after the current source
6632 line having changed.
6633 * stack.c (print_stack_frame): Remove center handling.
6634 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6637 2014-05-21 Pedro Alves <palves@redhat.com>
6639 * inf-child.c (inf_child_mourn_inferior): New function.
6640 * inf-child.h (inf_child_mourn_inferior): New declaration.
6641 * darwin-nat.c (darwin_mourn_inferior): Use
6642 inf_child_mourn_inferior.
6643 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6644 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6645 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6646 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6647 * windows-nat.c (windows_mourn_inferior): Likewise.
6649 2014-05-21 Doug Evans <xdje42@gmail.com>
6651 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6653 2014-05-21 Doug Evans <xdje42@gmail.com>
6655 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6656 (gdbscm_out_of_range_error): Ditto.
6657 (gdbscm_memory_error): Ditto.
6658 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6659 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6660 (gdbscm_out_of_range_error): Update.
6661 (gdbscm_memory_error): Update.
6662 (gdbscm_scm_to_target_string_unsafe): Delete.
6664 2014-05-21 Pedro Alves <palves@redhat.com>
6666 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6668 (inf_child_open_target): New function.
6669 (inf_child_open): Use inf_child_open_target to push the target
6670 instead of erroring out.
6671 (inf_child_disconnect, inf_child_close)
6672 (inf_child_maybe_unpush_target): New functions.
6673 (inf_child_target): Install inf_child_disconnect and
6674 inf_child_close. Store a pointer to the returned object.
6675 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6677 * target.c (auto_connect_native_target): New global.
6678 (show_default_run_target): New function.
6679 (find_default_run_target): Return NULL if automatically connecting
6680 to the native target is disabled.
6681 (_initialize_target): Install set/show auto-connect-native-target.
6682 * NEWS: Mention "set auto-connect-native-target", and "target
6684 * linux-nat.c (super_close): New global.
6685 (linux_nat_close): Call super_close.
6686 (linux_nat_add_target): Store a pointer to the base class's
6688 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6689 inf_child_maybe_unpush.
6690 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6692 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6693 the inferior. Use inf_child_maybe_unpush_target.
6694 (inf_ttrace_attach): Don't push the target if it is already
6696 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6697 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6698 after mourning the inferior. Use inf_child_maybe_unpush_target.
6699 (darwin_attach_pid): Don't push the target if it is already
6701 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6702 mourning the inferior. Use inf_child_maybe_unpush_target.
6703 (gnu_detach): Use inf_child_maybe_unpush_target.
6704 * go32-nat.c (go32_create_inferior): Don't push the target if it
6706 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6707 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6708 (procfs_open): Rename to ...
6709 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6710 comments. Can target_preopen before changing node. Call
6711 inf_child_open_target to push the target explicitly.
6712 (procfs_attach): Don't push the target if it is already pushed.
6713 (procfs_detach): Use inf_child_maybe_unpush_target.
6714 (procfs_create_inferior): Don't push the target if it is already
6716 (nto_native_ops): New global.
6717 (procfs_open): Reimplement.
6718 (procfs_native_open): New function.
6719 (init_procfs_targets): Install procfs_native_open as to_open of
6720 "target native". Store a pointer to the "native" target in
6722 * procfs.c (procfs_attach): Don't push the target if it is already
6724 (procfs_detach): Use inf_child_maybe_unpush_target.
6725 (procfs_mourn_inferior): Only unpush the target after mourning the
6726 inferior. Use inf_child_maybe_unpush_target.
6727 (procfs_init_inferior): Don't push the target if it is already
6729 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6730 if it is already pushed.
6732 2014-05-21 Pedro Alves <palves@redhat.com>
6734 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6735 and "procfs" targets are now called "native" instead.
6737 2014-05-21 Pedro Alves <palves@redhat.com>
6739 * go32-nat.c (go32_open): Delete.
6740 (go32_target): Don't override the to_open method.
6742 2014-05-21 Pedro Alves <palves@redhat.com>
6744 * nto-procfs.c (procfs_can_run): New function.
6745 (nto_procfs_ops): New global.
6746 (init_procfs_targets): New, based on procfs_target. Install
6747 "target native" in addition to "target procfs".
6748 (_initialize_procfs): Call init_procfs_targets instead of adding
6751 2014-05-21 Pedro Alves <palves@redhat.com>
6753 * windows-nat.c (windows_target): Don't override to_shortname,
6754 to_longname or to_doc.
6756 2014-05-21 Pedro Alves <palves@redhat.com>
6758 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6761 2014-05-21 Pedro Alves <palves@redhat.com>
6763 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6764 to_shortname, to_longname or to_doc.
6766 2014-05-21 Pedro Alves <palves@redhat.com>
6768 * go32-nat.c (go32_target): Don't override to_shortname,
6769 to_longname or to_doc.
6771 2014-05-21 Pedro Alves <palves@redhat.com>
6773 * inf-child.c (inf_child_open): Remove mention of "child".
6774 (inf_child_target): Rename target to "native" instead of "child".
6776 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6778 * Makefile.in (SFILES): Delete "regset.c".
6779 (COMMON_OBS): Delete "regset.o".
6781 * regset.h (regset_alloc): Delete prototype.
6783 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6785 * sparc-linux-tdep.c (sparc32_linux_gregset)
6786 (sparc32_linux_fpregset): New static regset structures.
6787 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6788 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6790 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6791 (sparc64_linux_fpregset): New static regset structures.
6792 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6793 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6794 New static regset structures.
6795 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6796 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6797 New static regset structures.
6798 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6799 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6800 New static regset structures.
6801 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6802 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6803 New static regset structures.
6804 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6806 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6808 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6809 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6810 register maps ("regmaps") from "*regset" to "*regmap". Do this
6811 for all regmap types and variables.
6812 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6813 (sparc32_linux_supply_core_gregset)
6814 (sparc32_linux_collect_core_gregset)
6815 (sparc32_linux_supply_core_fpregset)
6816 (sparc32_linux_collect_core_fpregset): Likewise.
6817 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6818 (sparc_gregmap, sparc_fpregmap): ... these.
6819 (sparc_supply_gregset, sparc_collect_gregset)
6820 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6821 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6822 (_initialize_sparc_nat): Rename regmaps.
6823 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6824 (sparc_gregmap, sparc_fpregmap): ... these.
6825 (sparc_supply_gregset, sparc_collect_gregset)
6826 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6827 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6829 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6830 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6832 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6834 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6835 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6836 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6838 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6839 (sparc32_bsd_fpregset): Rename to...
6840 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6841 (sparc32_bsd_fpregmap): ... these.
6842 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6843 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6844 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6845 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6846 (struct sparc_gregmap, struct sparc_fpregmap)
6847 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6848 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6849 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6850 (sparc32_supply_regset, sparc32_collect_gregset)
6851 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6853 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6854 (sparc64_linux_ptrace_gregmap): ... this.
6855 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6856 (_initialize_sparc64_linux_nat): Rename regmaps.
6857 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6858 (sparc64_linux_core_gregmap): ... this.
6859 (sparc64_linux_supply_core_gregset)
6860 (sparc64_linux_collect_core_gregset)
6861 (sparc64_linux_supply_core_fpregset)
6862 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6863 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6864 (sparc64_sol2_fpregset): Rename to...
6865 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6866 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6867 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6869 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6870 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6871 (sparc64_bsd_fpregset): Rename to...
6872 (struct sparc_gregmap, sparc64_sol2_gregmap)
6873 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6874 (sparc64_bsd_fpregmap): ... these.
6875 (sparc64_supply_gregset, sparc64_collect_gregset)
6876 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6878 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6879 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6880 (sparc64fbsd_gregmap): ... this.
6881 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6882 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6884 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6885 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6886 (sparc64nbsd_collect_fpregset): Likewise.
6887 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6888 (sparc64nbsd_gregmap): ... this.
6889 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6891 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6892 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6893 (sparc64obsd_gregmap): ... this.
6894 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6896 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6897 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6898 (sparc32nbsd_gregmap): ... this.
6899 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6902 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6904 * score-tdep.c (score7_linux_gregset): New static regset
6906 (score7_linux_regset_from_core_section): Remove dynamic regset
6908 (score_gdbarch_init): Drop allocation of tdep structure.
6909 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6911 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6913 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6915 (am33_regset_from_core_section): Remove dynamic regset
6918 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6920 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6921 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6923 (mips_linux_regset_from_core_section): Remove dynamic regset
6925 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6926 'gregset64', 'fpregset', and 'fpregset64'.
6927 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6928 deleted tdep fields.
6930 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6932 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6934 (amd64_regset_from_core_section): Remove dynamic regset
6936 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6938 (amd64obsd_regset_from_core_section): Remove dynamic regset
6940 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6942 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6943 x86-common regset supply function.
6944 * i386-tdep.c (i386_collect_gregset): Make static.
6945 (i386_gregset): New global regset structure.
6946 (i386_fpregset, i386_xstateregset): New static regset structures.
6947 (i386_regset_from_core_section): Remove dynamic regset
6949 (i386_gdbarch_init): Remove initialization of tdep fields
6950 'gregset', 'fpregset', and 'xstateregset'.
6951 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6952 'fpregset', and 'xstateregset'.
6953 (i386_collect_gregset): Remove prototype.
6954 (i386_gregset): New declaration.
6955 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6957 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6962 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6963 (arm_linux_vfpregset): New static regset structures.
6964 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6966 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6967 and 'vfpregset' fields.
6969 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6971 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6972 (aarch64_linux_fpregset): New static regset structures.
6973 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6974 of regset structures.
6975 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6980 * regset.h (struct regset): Remove gdbarch field.
6981 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6982 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6983 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6985 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6986 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6987 (ppc32_linux_vsxregset): Likewise.
6988 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6989 via the regcache instead of the regset.
6990 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6991 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6992 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6993 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6996 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6998 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6999 Constify structures.
7000 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7001 (alphanbsd_aout_gregset): Likewise.
7002 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7003 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7005 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7006 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7008 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7009 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7010 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7011 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7012 * m88k-tdep.c (m88k_gregset): Likewise.
7013 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7014 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7015 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7016 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7017 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7018 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7019 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7020 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7021 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7023 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7024 * sh-tdep.h (sh_corefile_gregset): Likewise.
7025 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7026 * vax-tdep.c (vax_gregset): Likewise.
7028 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7030 Fix TLS access for -static -pthread.
7031 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7032 (try_thread_db_load_1): Initialize it.
7033 (thread_db_get_thread_local_address): Call it if LM is zero.
7034 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7035 * target.h (struct target_ops) (to_get_thread_local_address): Add
7036 load_module_addr comment.
7038 2014-05-21 Pedro Alves <palves@redhat.com>
7040 * dcache.c (dcache_read_memory_partial): If reading the cache line
7041 fails, fallback to reading just the memory the caller wanted.
7043 2014-05-20 Doug Evans <dje@google.com>
7045 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7046 instead of get_current_arch.
7048 2014-05-20 Pedro Alves <palves@redhat.com>
7050 * NEWS: Mention that compare-sections now works with all targets.
7052 * remote.c (PACKET_qCRC): New enum value.
7053 (remote_verify_memory): Don't send qCRC if the target has no
7054 execution. Use packet_support/packet_ok. If the target doesn't
7055 support the qCRC packet, fallback to a deep memory copy.
7056 (compare_sections_command): Say "target image" instead of "remote
7058 (_initialize_remote): Add PACKET_qCRC to the list of config
7059 packets that have no associated command. Extend comment.
7060 * target.c (simple_verify_memory, default_verify_memory): New
7062 * target.h (struct target_ops) <to_verify_memory>: Default to
7063 default_verify_memory.
7064 (simple_verify_memory): New declaration.
7065 * target-delegates.c: Regenerate.
7067 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7069 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7071 2014-05-20 Hui Zhu <hui@codesourcery.com>
7072 Yao Qi <yao@codesourcery.com>
7075 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7076 and change address of sp and pc.
7078 2014-05-19 Tom Tromey <tromey@redhat.com>
7080 * gdbtypes.c (rank_function): Use XNEWVEC.
7081 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7083 2014-05-19 Doug Evans <dje@google.com>
7085 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7086 build_type_unit_groups and moved closer to only caller. Remove
7087 arguments. All references updated. Remove outdated .gdb_index
7089 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7090 build_type_psymtabs_1.
7092 2014-05-19 Doug Evans <dje@google.com>
7094 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7095 n_type_unit_groups, all_type_unit_groups. All uses removed.
7096 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7097 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7098 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7099 (add_type_unit_group_to_table): Delete.
7101 2014-05-19 Doug Evans <dje@google.com>
7103 * eval.c (evaluate_subexp_standard): Add some comments.
7105 2014-05-17 Doug Evans <xdje42@gmail.com>
7107 * progspace.c (remove_program_space): Delete, unused.
7108 * progspace.h (remove_program_space): Ditto.
7110 2014-05-17 Doug Evans <xdje42@gmail.com>
7112 * inferior.c (prune_inferiors): Fix comment.
7113 (remove_inferior_command): Call prune_program_spaces.
7115 2014-05-16 Doug Evans <dje@google.com>
7117 New command line option -D.
7119 * main.c (set_gdb_data_directory): New function.
7120 (captured_main): Recognize -D. Flag error for --data-directory "".
7121 Call set_gdb_data_directory.
7122 (print_gdb_help): Print --data-directory, -D.
7123 * main.h (set_gdb_data_directory): Declare.
7124 * top.c (staged_gdb_datadir): New static global.
7125 (set_gdb_datadir): Call set_gdb_data_directory
7126 (show_gdb_datadir): New function.
7127 (init_main): Update init of data-directory parameter.
7129 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7131 Import the "dirfd" gnulib module.
7132 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7133 * gnulib/aclocal.m4: Update.
7134 * gnulib/config.in: Update.
7135 * gnulib/configure: Update.
7136 * gnulib/import/Makefile.am: Update.
7137 * gnulib/import/Makefile.in: Update.
7138 * gnulib/import/dirfd.c: New.
7139 * gnulib/import/m4/dirfd.m4: New.
7140 * gnulib/import/m4/gnulib-cache.m4: Update.
7141 * gnulib/import/m4/gnulib-comp.m4: Update.
7143 2014-05-16 Pierre Muller <muller@sourceware.org>
7144 Yao Qi <yao@codesourcery.com>
7146 * valprint.c (print_wchar): Move the code on checking whether
7147 W is a printable wide char to the default branch of switch
7148 statement below. Call wchar_printable instead of gdb_iswprint.
7150 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7152 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7153 ldr.w and ldrd instructions.
7155 2014-05-15 Doug Evans <dje@google.com>
7157 * dwarf2read.c (read_structure_type): Delete outdated comments.
7159 2014-05-14 Tom Tromey <tromey@redhat.com>
7161 * macrocmd.c (print_macro_definition): Reindent.
7163 2014-05-13 Doug Evans <xdje42@gmail.com>
7165 * python/py-cmd.c (cmdpy_completer): Add comment.
7166 (completers): Make const.
7168 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7170 * infrun.c (resume): Remove should_resume (unused). Move up
7171 declaration of resume_ptid.
7173 2014-05-13 Tom Tromey <tromey@redhat.com>
7175 * language.h (unop_type_check): Remove.
7176 (binop_type_check): Don't declare.
7178 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7180 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7181 call to regcache_raw_collect.
7183 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7185 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7186 mi_console->quote as the quoting character.
7188 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7190 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7192 2014-04-29 Tom Tromey <tromey@redhat.com>
7194 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7195 "show debug varobj".
7197 2014-05-07 Kyle McMartin <kyle@redhat.com>
7199 Pushed by Joel Brobecker <brobecker@adacore.com>.
7200 * aarch64-tdep.c (aarch64_software_single_step): New function.
7201 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7202 with aarch64_software_single_step.
7204 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7208 2014-05-05 Keith Seitz <keiths@redhat.com>
7210 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7211 variable or history value is successfully parsed.
7213 2014-05-05 Yao Qi <yao@codesourcery.com>
7214 Pedro Alves <palves@redhat.com>
7216 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7217 address of blocks that intersects the requested range. Trim
7218 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7220 * ctf.c (ctf_xfer_partial): Likewise.
7222 2014-05-05 Yao Qi <yao@codesourcery.com>
7224 * printcmd.c (display_command): Remove the check to
7225 target_has_execution.
7227 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7229 * ppcobsd-nat.c: Include "obsd-nat.h".
7230 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7232 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7234 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7236 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7237 and 16-bit signed and unsigned arguments. Update comment.
7238 (stap_parse_probe_arguments): Extend code to handle such
7239 arguments. Use warning instead of complaint to notify about
7240 unrecognized bitness.
7242 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7244 PR breakpoints/16889
7245 * stap-probe.c (stap_parse_probe_arguments): Simplify
7246 check for non-prefixed probes (i.e., probes whose
7247 arguments do not start with "N@"). Always set the
7248 argument type to a sane value.
7250 2014-05-01 David Taylor <dtaylor@emc.com>
7252 * remote.c (compare_sections_command): Add -r option to compare
7253 all loadable read-only sections.
7255 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7257 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7258 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7260 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7261 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7262 Remove unused CORE_ADDR argument. Update all callers.
7264 2014-04-29 Pedro Alves <palves@redhat.com>
7266 * remote.c (struct packet_config) <detect>: Extend comment.
7267 (add_packet_config_cmd): Don't set the config's detect or support
7269 (init_all_packet_configs): Also initialize the config's 'detect'
7271 (reset_all_packet_configs_support): New function.
7272 (remote_open_1): Call reset_all_packet_configs_support instead of
7273 init_all_packet_configs.
7274 (_initialize_remote): Initialize all packet configs. Assert that
7275 all packets have an associated command, except a few known
7278 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7280 * dwarf2read.c (read_subrange_type): Handle dynamic
7281 DW_AT_lower_bound attributes.
7283 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7285 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7286 dynamic bounds before computing its upper bound.
7287 (ada_discrete_type_low_bound): Same as above with the lower bound.
7289 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7291 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7292 range types. Adjust the array handling implementation to
7293 take advantage of this change.
7294 (resolve_dynamic_range): New function, mostly extracted from
7295 resolve_dynamic_bounds.
7296 (resolve_dynamic_array): New function, mostly extracted from
7297 resolve_dynamic_bounds.
7298 (resolve_dynamic_bounds): Delete.
7299 (resolve_dynamic_type): Reimplement. Add handling of
7300 TYPE_CODE_RANGE types.
7302 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7304 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7305 handling of parallel ___XA types.
7307 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7309 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7310 unnecessary second call to static_unwrap_type.
7312 2014-04-27 Hui Zhu <hui@codesourcery.com>
7314 * stack.c (print_frame_info): Call do_gdb_disassembly with
7315 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7317 2014-04-26 Doug Evans <xdje42@gmail.com>
7319 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7321 2014-04-25 Pedro Alves <palves@redhat.com>
7324 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7325 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7326 and newline from built string.
7327 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7328 (linux_ptrace_attach_fail_reason): ... this.
7329 * linux-nat.c (linux_nat_attach): Adjust to use
7330 linux_ptrace_attach_fail_reason.
7332 2014-04-25 Pedro Alves <palves@redhat.com>
7334 * remote.c (struct remote_state): Remove multi_process_aware,
7335 non_stop_aware, cond_tracepoints, cond_breakpoints,
7336 breakpoint_commands, fast_tracepoints, static_tracepoints,
7337 install_in_trace, disconnected_tracing,
7338 enable_disable_tracepoints, string_tracing, and
7339 augmented_libraries_svr4_read fields.
7340 (remote_multi_process_p): Move further below in the file.
7341 (struct packet_config): Add comments.
7342 (update_packet_config): Delete function.
7343 (show_packet_config_cmd): Use packet_config_support.
7344 (add_packet_config_cmd): Use NULL as set callback.
7345 (packet_ok): "set remote foo-packet"-style commands no longer
7346 change config->supported -- adjust.
7347 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7348 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7349 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7350 (PACKET_QNonStop, PACKET_multiprocess_feature)
7351 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7352 (PACKET_DisconnectedTracing_feature)
7353 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7354 (set_remote_protocol_packet_cmd): Delete function.
7355 (packet_config_support, packet_support): New functions.
7356 (set_remote_protocol_Z_packet_cmd): Don't call
7357 update_packet_config.
7358 (remote_query_attached, remote_pass_signals)
7359 (remote_program_signals, remote_threads_info)
7360 (remote_threads_extra_info, remote_start_remote): Use
7362 (remote_start_remote): Use packet_config_support and
7364 (init_all_packet_configs): Set all packets to unknown support,
7365 instead of calling update_packet_config.
7366 (remote_check_symbols): Use packet_support.
7367 (remote_supported_packet): Unconditionally set the packet config's
7369 (remote_multi_process_feature, remote_non_stop_feature)
7370 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7371 (remote_breakpoint_commands_feature)
7372 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7373 (remote_install_in_trace_feature)
7374 (remote_disconnected_tracing_feature)
7375 (remote_enable_disable_tracepoint_feature)
7376 (remote_string_tracing_feature)
7377 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7378 (remote_protocol_features): Adjust to use remote_supported_packet
7379 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7380 "ConditionalTracepoints", "ConditionalBreakpoints",
7381 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7382 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7383 "EnableDisableTracepoints", and "tracenz".
7384 (remote_query_supported): Use packet_support.
7385 (remote_open_1): Adjust.
7386 (extended_remote_attach_1): Use packet_support. Switch on the
7387 result of packet_ok instead of checking whether the packet ended
7389 (remote_vcont_resume): Use packet_support.
7390 (remote_resume, remote_stop_ns, fetch_register_using_p)
7391 (remote_prepare_to_store, store_register_using_P)
7392 (check_binary_download, remote_write_bytes): Use packet_support.
7393 (remote_vkill): Use packet_support. Switch on the result of
7394 packet_ok instead of checking whether the packet ended up
7396 (extended_remote_supports_disable_randomization): Use
7398 (extended_remote_run): Switch on the result of packet_ok instead
7399 of checking whether the packet ended up disabled.
7400 (remote_insert_breakpoint, remote_remove_breakpoint)
7401 (remote_insert_watchpoint, remote_remove_watchpoint)
7402 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7404 (remote_search_memory): Use packet_config_support.
7405 (remote_get_thread_local_address, remote_get_tib_address)
7406 (remote_hostio_send_command, remote_can_execute_reverse): Use
7408 (remote_supports_cond_tracepoints)
7409 (remote_supports_cond_breakpoints)
7410 (remote_supports_fast_tracepoints)
7411 (remote_supports_static_tracepoints)
7412 (remote_supports_install_in_trace)
7413 (remote_supports_enable_disable_tracepoint)
7414 (remote_supports_string_tracing)
7415 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7416 the packet config says the feature is enabled or disabled.
7417 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7418 (remote_get_trace_status): Use packet_support.
7419 (remote_set_disconnected_tracing): Adjust to check whether the
7420 feature is enabled with packet_support.
7421 (remote_set_trace_buffer_size, remote_use_agent)
7422 (remote_can_use_agent, remote_supports_btrace): Use
7424 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7425 Use packet_config_support.
7426 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7427 the packet config says the feature is enabled or disabled.
7428 (set_range_stepping): Use packet_support.
7430 2014-04-25 Tom Tromey <tromey@redhat.com>
7432 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7435 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7437 * NEWS: Mention support for C99 variable length arrays.
7439 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7441 * ada-lang.c (standard_exc): Expand introductory comment.
7443 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7444 Walfred Tedeschi <walfred.tedeschi@intel.com>
7446 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7448 (amd64_linux_read_description): Add code to handle AVX512 xstate
7449 mask and return respective tdesc.
7450 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7451 and features/i386/x32-avx512-linux.c.
7452 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7453 (amd64_linux_core_read_description): Add code to handle AVX512
7454 xstate mask and return respective tdesc.
7455 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7456 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7458 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7459 (tdesc_amd64_avx512_linux): New prototype.
7460 (tdesc_x32_avx512_linux): Likewise.
7461 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7462 features/i386/x32-avx512.c.
7463 (amd64_ymm_avx512_names): New register names for pseudo
7465 (amd64_ymmh_avx512_names): New register names for raw registers
7467 (amd64_k_names): New register names for K registers.
7468 (amd64_zmmh_names): New register names for ZMM raw registers.
7469 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7470 (amd64_xmm_avx512_names): New register names for XMM16-31
7472 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7474 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7475 if feature is present.
7476 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7477 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7478 (AMD64_NUM_REGS): Adjust to new number of registers.
7479 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7480 registers supplied via XSTATE by AVX512 registers.
7481 (i386_linux_read_description): Add case for AVX512.
7482 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7483 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7484 (i386_linux_core_read_description): Add case for AVX512.
7485 (i386_linux_init_abi): Install supported register note section
7487 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7489 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7490 registers to be number of zmm7h + 1.
7491 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7492 * i386-tdep.c: Include features/i386/i386-avx512.c.
7493 (i386_zmm_names): Add ZMM pseudo register names array.
7494 (i386_zmmh_names): Add ZMM raw register names array.
7495 (i386_k_names): Add K raw register names array.
7496 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7497 registers. AVX512 has 16 more ZMM registers than there are YMM
7499 (i386_zmmh_regnum_p): Add function to look up register number of
7501 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7502 (i386_k_regnum_p): Likewise for K raw registers.
7503 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7504 registers added by AVX512.
7505 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7506 registers added by AVX512.
7507 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7509 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7510 (i386_pseudo_register_name): Add ZMM pseudo registers.
7511 (i386_zmm_type): Construct and return vector registers type for ZMM
7513 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7514 ZMM0-31 pseudo registers and K registers.
7515 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7516 and YMM16-31 registers from register cache.
7517 (i386_pseudo_register_write): Add code to write K, ZMM and
7519 (i386_register_reggroup_p): Add code to include/exclude AVX512
7520 registers in/from respective register groups.
7521 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7522 registers if feature is present in xcr0.
7523 (i386_gdbarch_init): Add code to initialize AVX512 feature
7524 variables in tdep structure, wire in pseudo registers and call
7525 initialize_tdesc_i386_avx512.
7526 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7528 (i386_regnum): Add AVX512 registers.
7529 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7530 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7531 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7532 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7534 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7535 (i386_ymm_avx512_regnum_p): Likewise.
7536 (i386_k_regnum_p): Likewise.
7537 (i386_zmm_regnum_p): Likewise.
7538 (i386_zmmh_regnum_p): Likewise.
7539 * i387-tdep.c : Update year in copyright notice.
7540 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7542 (XSAVE_YMM_AVX512_ADDR): New macro.
7543 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7545 (XSAVE_XMM_AVX512_ADDR): New macro.
7546 (xsave_avx512_k_offset): New table for K register offsets in
7548 (XSAVE_AVX512_K_ADDR): New macro.
7549 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7551 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7552 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7554 (i387_collect_xsave): Add code to collect AVX512 registers from
7556 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7557 of XMM16-31 registers.
7558 (I387_NUM_K_REGS): New define for number of K registers.
7559 (I387_K0_REGNUM): New define for K0 register number.
7560 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7561 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7562 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7564 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7565 (I387_XMM16_REGNUM): New define for XMM16 register number.
7566 (I387_YMM0_REGNUM): New define for YMM0 register number.
7567 (I387_KEND_REGNUM): New define for last K register number.
7568 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7569 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7571 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7573 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7575 * features/Makefile: Add AVX512 related files.
7576 * features/i386/32bit-avx512.xml: New file.
7577 * features/i386/64bit-avx512.xml: Likewise.
7578 * features/i386/amd64-avx512-linux.c: Likewise.
7579 * features/i386/amd64-avx512-linux.xml: Likewise.
7580 * features/i386/amd64-avx512.c: Likewise.
7581 * features/i386/amd64-avx512.xml: Likewise.
7582 * features/i386/i386-avx512-linux.c: Likewise.
7583 * features/i386/i386-avx512-linux.xml: Likewise.
7584 * features/i386/i386-avx512.c: Likewise.
7585 * features/i386/i386-avx512.xml: Likewise.
7586 * features/i386/x32-avx512-linux.c: Likewise.
7587 * features/i386/x32-avx512-linux.xml: Likewise.
7588 * features/i386/x32-avx512.c: Likewise.
7589 * features/i386/x32-avx512.xml: Likewise.
7590 * regformats/i386/amd64-avx512-linux.dat: New file.
7591 * regformats/i386/amd64-avx512.dat: Likewise.
7592 * regformats/i386/i386-avx512-linux.dat: Likewise.
7593 * regformats/i386/i386-avx512.dat: Likewise.
7594 * regformats/i386/x32-avx512-linux.dat: Likewise.
7595 * regformats/i386/x32-avx512.dat: Likewise.
7596 * NEWS: Add note about new support for AVX512.
7599 2014-04-23 Pedro Alves <palves@redhat.com>
7601 * breakpoint.c (insert_bp_location): Tolerate errors if the
7602 breakpoint is set in a user-loaded objfile.
7603 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7604 location is marked shlib_disabled. If the breakpoint is set in a
7605 user-loaded objfile is a GDB-side memory breakpoint, validate it
7606 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7607 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7609 * mem-break.c (memory_validate_breakpoint): New function.
7610 * objfiles.c (userloaded_objfile_contains_address_p): New
7612 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7613 * target.h (memory_validate_breakpoint): New declaration.
7615 2014-04-23 Pedro Alves <palves@redhat.com>
7617 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7618 the breakpoint is set in a shared library, only suppress
7619 errors for software breakpoints, not hardware breakpoints.
7621 2014-04-22 Pedro Alves <palves@redhat.com>
7623 * infrun.c (schedlock_applies): New function, factored out from
7624 find_thread_needs_step_over.
7625 (find_thread_needs_step_over): Use it.
7626 (switch_back_to_stepped_thread): Always clear trap_expected if the
7627 step over is finished. Return early if scheduler locking applies.
7628 Look for the stepping thread and a potential step-over thread with
7630 (currently_stepping_or_nexting_callback): Delete.
7632 2014-04-22 Nick Clifton <nickc@redhat.com>
7634 * NEWS: Mention that ARM sim now supports tracing.
7636 2014-04-22 Yao Qi <yao@codesourcery.com>
7638 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7640 * tracefile.c (tracefile_fetch_registers): ... it. New
7642 * tracefile.h (tracefile_fetch_registers): Declare.
7643 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7644 tracefile_fetch_registers.
7646 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7649 * windows-nat.c (thread_rec): Don't display a warning when
7650 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7651 fails for any reason, set th->suspended to -1, so that we don't
7652 try to resume such a thread. Also, don't return NULL in these
7653 cases, to avoid completely ruin the session due to "PC register is
7654 not available" error.
7655 (do_windows_fetch_inferior_registers): Check errors in
7656 GetThreadContext call.
7657 (windows_continue): Accept an additional argument KILLED; if not
7658 zero, ignore errors in the SetThreadContext call, since the
7659 inferior was killed and is shutting down.
7660 (windows_resume, get_windows_debug_event)
7661 (windows_create_inferior, windows_mourn_inferior)
7662 (windows_kill_inferior): All callers of windows_continue changed
7663 to adjust to its new calling sequence.
7665 2014-04-19 Yao Qi <yao@codesourcery.com>
7667 * ctf.c (ctf_open): Call post_create_inferior.
7669 2014-04-19 Yao Qi <yao@codesourcery.com>
7671 * ctf.c (handle_id): New static variable.
7672 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7673 value. Get the declaration of event "register" and get length
7674 of field "contents".
7676 2014-04-19 Yao Qi <yao@codesourcery.com>
7678 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7680 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7682 * valops.c (oload_method_static): Remove unnecessary argument
7683 METHOD. Update all callers.
7685 2014-04-18 Pedro alves <palves@redhat.com>
7686 Tom Tromey <tromey@redhat.com>
7689 * frame.c (get_prev_frame_1): Rename to ...
7690 (get_prev_frame_always): ... this, and make extern. Adjust.
7691 (skip_artificial_frames): Use get_prev_frame_always.
7692 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7693 (get_frame_unwind_stop_reason): Adjust to rename.
7694 * frame.h (get_prev_frame_always): Declare.
7695 * inline-frame.c: Include frame.h.
7696 (inline_frame_this_id): Use get_prev_frame_always.
7698 2014-04-18 Tristan Gingold <gingold@adacore.com>
7700 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7701 code by using bfd_mach_o_get_base_address.
7703 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7705 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7706 (spu_ax_pseudo_register_collect): New function.
7707 (spu_ax_pseudo_register_push_stack): Likewise.
7708 (spu_dwarf_reg_to_regnum): Likewise.
7709 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7711 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7713 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7714 Replace FRAME argument with FRAME_ID.
7715 * gdbarch.c, gdbarch.h: Regenerate.
7716 * findvar.c (default_value_from_register): Add GDBARCH argument;
7717 replace FRAME by FRAME_ID. No longer call get_frame_id.
7718 (value_from_register): Update call to gdbarch_value_from_register.
7719 * value.h (default_value_from_register): Update prototype.
7720 * s390-linux-tdep.c (s390_value_from_register): Update interface
7721 and call to default_value_from_register.
7722 * spu-tdep.c (spu_value_from_register): Likewise.
7724 * findvar.c (address_from_register): Remove TYPE argument.
7725 Do not call value_from_register; use gdbarch_value_from_register
7726 with null_frame_id instead.
7727 * value.h (address_from_register): Update prototype.
7728 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7729 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7730 address_from_register interface change.
7732 2014-04-17 Yao Qi <yao@codesourcery.com>
7734 * gdbtypes.h: Update comments to link to types and macros'
7737 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7739 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7741 2014-04-16 Keith Seitz <keiths@redhat.com>
7744 * dwarf2read.c (skip_one_die): Check that all relative-offset
7745 sibling DIEs fall within range of the current reader's buffer.
7746 (read_partial_die): Likewise.
7748 2014-04-16 Keith Seitz <keiths@redhat.com>
7751 * cp-namespace.c (lookup_symbol_file): If the type name of
7752 `this' is NULL, return immediately.
7754 2014-04-14 Keith Seitz <keiths@redhat.com>
7757 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7758 from symbol_matches_domain in symtab.c. All local callers
7759 of symbol_matches_domain updated.
7760 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7761 search STRUCT_DOMAIN.
7762 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7763 independently. standard_lookup will do that automatically.
7764 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7765 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7766 (cp_lookup_symbol_in_namespace): Likewise.
7767 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7768 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7769 may return a STRUCT_DOMAIN match.
7770 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7771 * cp-support.c: Include language.h.
7772 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7774 * psymtab.c (match_partial_symbol): Compare the requested
7775 domain with the symbol's domain directly.
7776 (lookup_partial_symbol): Likewise.
7777 * symtab.c (lookup_symbol_in_language): Explain when/why
7778 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7779 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7780 appropriate languages.
7781 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7782 and moved to ada-lang.c
7783 (lookup_block_symbol): Explain that this function only returns
7784 symbol matching the requested DOMAIN.
7785 Compare the requested domain with the symbol's domain directly.
7786 (iterate_over_symbols): Compare the requested domain with the
7787 symbol's domain directly.
7788 * symtab.h (symbol_matches_domain): Remove.
7790 2014-04-14 Tom Tromey <tromey@redhat.com>
7793 * c-exp.y (type_aggregate_p): New function.
7794 (qualified_name, classify_inner_name): Use it.
7795 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7796 and TYPE_TARGET_TYPE of an enum type.
7797 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7799 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7800 handle TYPE_DECLARED_CLASS.
7801 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7803 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7804 * valops.c (enum_constant_from_type): New function.
7805 (value_aggregate_elt): Use it.
7806 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7809 2014-04-14 Tom Tromey <tromey@redhat.com>
7811 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7812 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7814 * value.h (value_aggregate_elt): Update.
7816 2014-04-14 Tom Tromey <tromey@redhat.com>
7818 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7820 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7822 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7823 (evaluate_subexp_standard): Pass noside argument.
7824 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7825 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7826 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7827 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7828 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7830 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7832 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7833 points to a constant blob.
7835 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7837 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7838 property and store it as the high bound and flag the range accordingly.
7839 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7840 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7841 * gdbtypes.h (enum range_flags): New enum.
7842 (struct range_bounds): Add flags member.
7844 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7846 * c-typeprint.c (c_type_print_varspec_suffix): Added
7847 check for not yet resolved high bound. If unresolved, print
7848 "variable length" string to the console instead of random
7851 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7853 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7855 (ada_template_to_fixed_record_type_1): Likewise.
7856 (ada_to_fixed_type_1): Likewise.
7857 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7858 (cp_print_value): Likewise.
7859 * d-valprint.c (dynamic_array_type): Likewise.
7860 * findvar.c (address_of_variable): Likewise.
7861 * jv-valprint.c (java_value_print): Likewise.
7862 * valops.c (value_ind): Likewise.
7863 * value.c (coerce_ref): Likewise.
7865 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7867 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7868 value and retrieve the dynamic type size.
7870 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7872 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7873 passed to sizeof is dynamic evaluate the argument to compute the length.
7875 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7876 Joel Brobecker <brobecker@adacore.com>
7878 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7879 (dwarf2_evaluate_property): New function.
7880 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7881 * dwarf2read.c (attr_to_dynamic_prop): New function.
7882 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7884 * gdbtypes.c: Include dwarf2loc.h.
7885 (is_dynamic_type): New function.
7886 (resolve_dynamic_type): New function.
7887 (resolve_dynamic_bounds): New function.
7888 (get_type_length): New function.
7889 (check_typedef): Use get_type_length to compute type length.
7890 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7891 (TYPE_LOW_BOUND_KIND): New macro.
7892 (is_dynamic_type): New function prototype.
7893 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7894 to resolve dynamic properties of the type. Update comment.
7895 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7897 2014-04-14 Richard Henderson <rth@redhat.com>
7899 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7901 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7902 Doug Evans <xdje42@gmail.com>
7904 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7905 dereference TYPE_CODE_REF values.
7907 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7909 Revert the following changes due to regressions:
7911 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7912 (dwarf2_evaluate_property): New function.
7913 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7914 * dwarf2read.c (attr_to_dynamic_prop): New function.
7915 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7917 * gdbtypes.c: Include dwarf2loc.h.
7918 (is_dynamic_type): New function.
7919 (resolve_dynamic_type): New function.
7920 (resolve_dynamic_bounds): New function.
7921 (get_type_length): New function.
7922 (check_typedef): Use get_type_length to compute type length.
7923 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7924 (TYPE_LOW_BOUND_KIND): New macro.
7925 (is_dynamic_type): New function prototype.
7926 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7927 to resolve dynamic properties of the type. Update comment.
7928 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7930 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7931 passed to sizeof is dynamic evaluate the argument to compute the length.
7933 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7934 value and retrieve the dynamic type size.
7936 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7937 (ada_template_to_fixed_record_type_1): Likewise.
7938 (ada_to_fixed_type_1): Likewise.
7939 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7940 (cp_print_value): Likewise.
7941 * d-valprint.c (dynamic_array_type): Likewise.
7942 * eval.c (evaluate_subexp_with_coercion): Likewise.
7943 * findvar.c (address_of_variable): Likewise.
7944 * jv-valprint.c (java_value_print): Likewise.
7945 * valops.c (value_ind): Likewise.
7946 * value.c (coerce_ref): Likewise.
7948 * c-typeprint.c (c_type_print_varspec_suffix): Added
7949 check for not yet resolved high bound. If unresolved, print
7950 "variable length" string to the console instead of random
7953 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7954 property and store it as the high bound and flag the range accordingly.
7955 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7956 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7957 * gdbtypes.h (enum range_flags): New enum.
7958 (struct range_bounds): Add flags member.
7960 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7961 points to a constant blob.
7963 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7964 (evaluate_subexp_standard): Pass noside argument.
7965 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7966 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7967 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7968 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7969 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7971 2014-04-11 Keith Seitz <keiths@redhat.com>
7974 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7975 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7978 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7980 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7981 (evaluate_subexp_standard): Pass noside argument.
7982 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7983 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7984 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7985 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7986 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7988 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7990 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7991 points to a constant blob.
7993 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7995 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7996 property and store it as the high bound and flag the range accordingly.
7997 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7998 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7999 * gdbtypes.h (enum range_flags): New enum.
8000 (struct range_bounds): Add flags member.
8002 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8004 * c-typeprint.c (c_type_print_varspec_suffix): Added
8005 check for not yet resolved high bound. If unresolved, print
8006 "variable length" string to the console instead of random
8009 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8011 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8012 (ada_template_to_fixed_record_type_1): Likewise.
8013 (ada_to_fixed_type_1): Likewise.
8014 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8015 (cp_print_value): Likewise.
8016 * d-valprint.c (dynamic_array_type): Likewise.
8017 * eval.c (evaluate_subexp_with_coercion): Likewise.
8018 * findvar.c (address_of_variable): Likewise.
8019 * jv-valprint.c (java_value_print): Likewise.
8020 * valops.c (value_ind): Likewise.
8021 * value.c (coerce_ref): Likewise.
8023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8025 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8026 value and retrieve the dynamic type size.
8028 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8030 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8031 passed to sizeof is dynamic evaluate the argument to compute the length.
8033 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8035 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8036 (dwarf2_evaluate_property): New function.
8037 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8038 * dwarf2read.c (attr_to_dynamic_prop): New function.
8039 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8041 * gdbtypes.c: Include dwarf2loc.h.
8042 (is_dynamic_type): New function.
8043 (resolve_dynamic_type): New function.
8044 (resolve_dynamic_bounds): New function.
8045 (get_type_length): New function.
8046 (check_typedef): Use get_type_length to compute type length.
8047 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8048 (TYPE_LOW_BOUND_KIND): New macro.
8049 (is_dynamic_type): New function prototype.
8050 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8051 to resolve dynamic properties of the type. Update comment.
8052 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8054 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8056 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8057 declaring high/low bounds and change uses accordingly. Call
8058 create_range_type instead of create_static_range_type.
8059 * gdbtypes.c (create_range_type): New function.
8060 (create_range_type): Convert bounds into struct bound_prop and pass
8061 them to create_range_type.
8062 * gdbtypes.h (struct bound_prop): New struct.
8063 (create_range_type): New function prototype.
8064 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8065 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8066 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8068 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8070 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8072 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8073 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8074 * ada-lang.c: All uses of create_range_type updated.
8075 * coffread.c: All uses of create_range_type updated.
8076 * dwarf2read.c: All uses of create_range_type updated.
8077 * f-exp.y: All uses of create_range_type updated.
8078 * m2-valprint.c: All uses of create_range_type updated.
8079 * mdebugread.c: All uses of create_range_type updated.
8080 * stabsread.c: All uses of create_range_type updated.
8081 * valops.c: All uses of create_range_type updated.
8082 * valprint.c: All uses of create_range_type updated.
8084 2014-04-10 Pedro Alves <palves@redhat.com>
8086 * breakpoint.c (single_step_breakpoints)
8087 (single_step_gdbarch): Move up in the file.
8088 (one_breakpoint_xfer_memory): New function, factored out from ...
8089 (breakpoint_xfer_memory): ... here. Also process single-step
8092 2014-04-09 Tristan Gingold <gingold@adacore.com>
8094 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8096 (darwin_decode_exception_message): Free port only after use.
8098 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8100 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8101 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8102 when setting the size of call_length.
8104 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8106 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8107 dereference TYPE_CODE_REF values.
8109 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8111 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8112 end of warning message.
8114 2014-04-03 Doug Evans <dje@google.com>
8116 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8117 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8119 2014-04-02 Alan Modra <amodra@gmail.com>
8121 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8122 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8123 (struct symbol_file_add_from_memory_args): Add size field.
8124 (find_vdso_size): New function.
8125 (add_vsyscall_page): Attempt to find vdso size.
8127 2014-04-01 Doug Evans <dje@google.com>
8129 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8131 2014-04-01 Tristan Gingold <gingold@adacore.com>
8133 * darwin-nat.c (darwin_encode_reply): Add prototype.
8134 (darwin_decode_exception_message): Reply to unknown inferiors.
8135 (darwin_decode_message): Handle message by id. Ignore message
8136 to unknown inferior.
8137 (darwin_wait): Discard unknown messages, add debug trace.
8139 2014-03-31 Doug Evans <dje@google.com>
8141 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8144 2014-03-31 Doug Evans <dje@google.com>
8146 New option "set print symbol-loading".
8148 * solib.c (solib_read_symbols): Only print symbol loading messages
8150 (solib_add): If symbol loading is in "brief" mode, notify user
8151 symbols are being loaded.
8152 (reload_shared_libraries_1): Ditto.
8153 * symfile.c (print_symbol_loading_off): New static global.
8154 (print_symbol_loading_brief): New static global.
8155 (print_symbol_loading_full): New static global.
8156 (print_symbol_loading_enums): New static global.
8157 (print_symbol_loading): New static global.
8158 (print_symbol_loading_p): New function.
8159 (symbol_file_add_with_addrs): Only print symbol loading messages
8161 (_initialize_symfile): Register "print symbol-loading" set/show
8163 * symfile.h (print_symbol_loading_p): Declare.
8165 2014-03-30 Doug Evans <xdje42@gmail.com>
8167 * infrun.c (set_last_target_status): New function.
8168 (handle_inferior_event): Call it.
8170 2014-03-30 Doug Evans <xdje42@gmail.com>
8172 * inferior.h (enum stop_kind): Improve comment.
8174 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8176 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8177 a reference, strip the reference layer before calling
8178 the lang_ops value_has_mutated callback.
8180 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8182 Remove some globals from our parser.
8183 * language.c (unk_lang_parser): Add "struct parser_state"
8185 * language.h (struct language_defn) <la_parser>: Likewise.
8186 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8187 (initialize_expout): Add "struct parser_state" argument.
8188 Rewrite function to use the parser state.
8189 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8190 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8191 write_exp_elt_longcst, write_exp_elt_dblcst,
8192 write_exp_elt_decfloatcst, write_exp_elt_type,
8193 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8194 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8195 write_dollar_variable): Likewise.
8196 (parse_exp_in_context_1): Use parser state.
8197 (insert_type_address_space): Add "struct parser_state" argument.
8199 (increase_expout_size): New function.
8200 * parser-defs.h: Forward declare "struct language_defn" and
8201 "struct parser_state".
8202 (expout, expout_size, expout_ptr): Remove extern declarations.
8203 (parse_gdbarch, parse_language): Rewrite macro declarations to
8204 accept the parser state.
8205 (struct parser_state): New struct.
8206 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8207 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8208 write_exp_elt_decfloatcst, write_exp_elt_type,
8209 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8210 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8211 write_exp_msymbol, write_dollar_variable,
8212 mark_struct_expression, insert_type_address_space): Add "struct
8213 parser_state" argument.
8214 (increase_expout_size): New function.
8215 * utils.c (do_clear_parser_state): New function.
8216 (make_cleanup_clear_parser_state): Likewise.
8217 * utils.h (make_cleanup_clear_parser_state): New function
8219 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8220 Update calls to write_exp* in order to pass the parser state.
8221 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8222 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8223 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8224 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8225 * stap-probe.c (stap_parse_register_operand): Likewise.
8226 (stap_parse_single_operand): Likewise.
8227 (stap_parse_argument_1): Likewise.
8228 (stap_parse_argument): Use parser state.
8229 * stap-probe.h: Include "parser-defs.h".
8230 (struct stap_parse_info) <pstate>: New field.
8231 * c-exp.y (parse_type): Rewrite to use parser state.
8232 (yyparse): Redefine to c_parse_internal.
8233 (pstate): New global variable.
8234 (parse_number): Add "struct parser_state" argument.
8235 (write_destructor_name): Likewise.
8236 (type_exp): Update calls to write_exp* and similars in order to
8238 (exp1, exp, variable, qualified_name, space_identifier,
8239 typename, typebase): Likewise.
8240 (write_destructor_name, parse_number, lex_one_token,
8241 classify_name, classify_inner_name, c_parse): Add "struct
8242 parser_state" argument. Update function to use parser state.
8243 * c-lang.h: Forward declare "struct parser_state".
8244 (c_parse): Add "struct parser_state" argument.
8245 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8246 (yyparse): Redefine macro to ada_parse_internal.
8247 (pstate): New variable.
8248 (write_int, write_object_renaming, write_var_or_type,
8249 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8250 type_int, type_long, type_long_long, type_float, type_double,
8251 type_long_double, type_char, type_boolean, type_system_address):
8252 Add "struct parser_state" argument.
8253 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8254 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8255 var_or_type, aggregate, aggregate_component_list,
8256 positional_list, others, component_group,
8257 component_associations): Update calls to write_exp* and similar
8258 functions in order to use parser state.
8259 (ada_parse, write_var_from_sym, write_int,
8260 write_exp_op_with_string, write_object_renaming,
8261 find_primitive_type, write_selectors, write_ambiguous_var,
8262 write_var_or_type, write_name_assoc, type_int, type_long,
8263 type_long_long, type_float, type_double, type_long_double,
8264 type_char, type_boolean, type_system_address): Add "struct
8265 parser_state" argument. Adjust function to use parser state.
8266 * ada-lang.c (parse): Likewise.
8267 * ada-lang.h: Forward declare "struct parser_state".
8268 (ada_parse): Add "struct parser_state" argument.
8269 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8270 calls to both functions.
8271 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8273 (yyparse): Redefine macro to f_parse_internal.
8274 (pstate): New variable.
8275 (parse_number): Add "struct parser_state" argument.
8276 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8277 and similars in order to use parser state.
8278 (parse_number): Adjust code to use parser state.
8280 (f_parse): New function.
8281 * f-lang.h: Forward declare "struct parser_state".
8282 (f_parse): Add "struct parser_state" argument.
8283 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8285 (yyparse): Redefine macro for java_parse_internal.
8286 (pstate): New variable.
8287 (push_expression_name, push_expression_name, insert_exp): Add
8288 "struct parser_state" argument.
8289 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8290 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8291 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8292 PostIncrementExpression, PostDecrementExpression,
8293 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8294 UnaryExpressionNotPlusMinus, CastExpression,
8295 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8296 RelationalExpression, EqualityExpression, AndExpression,
8297 ExclusiveOrExpression, InclusiveOrExpression,
8298 ConditionalAndExpression, ConditionalOrExpression,
8299 ConditionalExpression, Assignment, LeftHandSide): Update
8300 calls to write_exp* and similars in order to use parser state.
8301 (parse_number): Ajust code to use parser state.
8303 (java_parse): New function.
8304 (push_variable): Add "struct parser_state" argument. Adjust
8305 code to user parser state.
8306 (push_fieldnames, push_qualified_expression_name,
8307 push_expression_name, insert_exp): Likewise.
8308 * jv-lang.h: Forward declare "struct parser_state".
8309 (java_parse): Add "struct parser_state" argument.
8310 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8312 (yyparse): Redefine macro to m2_parse_internal.
8313 (pstate): New variable.
8314 (type_exp, exp, fblock, variable, type): Update calls to
8315 write_exp* and similars to use parser state.
8317 (m2_parse): New function.
8318 * m2-lang.h: Forward declare "struct parser_state".
8319 (m2_parse): Add "struct parser_state" argument.
8320 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8321 * objc-lang.h: Forward declare "struct parser_state".
8322 (end_msglist): Add "struct parser_state" argument.
8323 * p-exp.y (parse_type): Rewrite macro to use parser state.
8324 (yyparse): Redefine macro to pascal_parse_internal.
8325 (pstate): New variable.
8326 (parse_number): Add "struct parser_state" argument.
8327 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8328 write_exp* and similars in order to use parser state.
8329 (parse_number, yylex): Adjust code to use parser state.
8330 (pascal_parse): New function.
8331 * p-lang.h: Forward declare "struct parser_state".
8332 (pascal_parse): Add "struct parser_state" argument.
8333 * go-exp.y (parse_type): Rewrite macro to use parser state.
8334 (yyparse): Redefine macro to go_parse_internal.
8335 (pstate): New variable.
8336 (parse_number): Add "struct parser_state" argument.
8337 (type_exp, exp1, exp, variable, type): Update calls to
8338 write_exp* and similars in order to use parser state.
8339 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8340 to use parser state.
8341 (go_parse): Likewise.
8342 * go-lang.h: Forward declare "struct parser_state".
8343 (go_parse): Add "struct parser_state" argument.
8345 2014-03-27 Doug Evans <dje@google.com>
8347 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8349 2014-03-27 Doug Evans <dje@google.com>
8351 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8352 Remove argument abbrev_section. All callers updated.
8354 2014-03-27 Doug Evans <dje@google.com>
8356 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8357 addr_base, ranges_base.
8359 2014-03-26 Keith Seitz <keiths@redhat.com>
8361 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8362 types, not VAR_DOMAIN.
8364 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8366 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8368 * features/nios2-linux.c: Regenerated.
8369 * features/nios2.c: Regenerated.
8371 2014-03-25 Pedro Alves <palves@redhat.com>
8373 * cli/cli-script.c (script_from_file): Force the interpreter to
8376 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8378 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8379 small stack allocation.
8381 2014-03-24 Tristan Gingold <gingold@adacore.com>
8383 * darwin-nat.c (exc_server): Remove unused prototype.
8384 (darwin_dump_message): Correctly display data on x86_64.
8385 (darwin_encode_reply): Fix style.
8386 Add comments and fix indentation.
8388 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8390 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8392 2014-03-22 Doug Evans <xdje42@gmail.com>
8394 * infcmd.c: Whitespace fixes.
8395 (interrupt_command): Merge two function comments into one.
8397 2014-03-22 Doug Evans <xdje42@gmail.com>
8399 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8402 2014-03-22 Yao Qi <yao@codesourcery.com>
8404 * remote.c (target_read_live_memory): Remove.
8405 (memory_xfer_live_readonly_partial): Rename it to
8406 remote_xfer_live_readonly_partial. Remove argument 'object'.
8407 All callers updated. Call remote_read_bytes_1
8408 instead of target_read_live_memory.
8409 * tracepoint.c (set_traceframe_number): Remove.
8410 (make_cleanup_restore_traceframe_number): Likewise .
8411 * tracepoint.h (set_traceframe_number): Remove declaration.
8412 (make_cleanup_restore_traceframe_number): Likewise.
8414 2014-03-22 Yao Qi <yao@codesourcery.com>
8416 * remote.c (remote_read_bytes): Move code on reading from the
8418 (remote_read_bytes_1): ... here. New function.
8420 2014-03-22 Yao Qi <yao@codesourcery.com>
8422 * ctf.c (ctf_xfer_partial): Check the return value of
8423 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8424 return TARGET_XFER_UNAVAILABLE.
8425 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8426 * target.c (target_read_live_memory): Move it to remote.c.
8427 (memory_xfer_live_readonly_partial): Likewise.
8428 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8429 * remote.c (target_read_live_memory): Moved from target.c.
8430 (memory_xfer_live_readonly_partial): Likewise.
8431 (remote_read_bytes): Factored out from
8432 memory_xfer_partial_1.
8434 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8436 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8439 2014-03-21 Pedro Alves <palves@redhat.com>
8441 * infrun.c (normal_stop): Extend comment.
8443 2014-03-21 Hui Zhu <hui@codesourcery.com>
8444 Pedro Alves <palves@redhat.com>
8446 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8448 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8449 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8450 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8452 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8454 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8455 `z' formatted output modifier.
8457 2014-03-20 Tom Tromey <tromey@redhat.com>
8458 Sergio Durigan Junior <sergiodj@redhat.com>
8460 * probe.c (parse_probes): Turn assert into an ordinary error.
8461 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8462 exceptions when parsing probes. Rearrange the code for clarity.
8464 2014-03-20 Tom Tromey <tromey@redhat.com>
8467 * top.c (execute_command): Only dispatch events if the command
8470 2014-03-20 Tom Tromey <tromey@redhat.com>
8473 * infcall.c: Include event-top.h.
8474 (run_inferior_call): Call async_disable_stdin if needed.
8476 2014-03-20 Pedro Alves <palves@redhat.com>
8478 * infrun.c (prepare_to_proceed): Delete.
8479 (thread_still_needs_step_over): New function.
8480 (find_thread_needs_step_over): New function.
8481 (proceed): If the current thread needs a step-over, set its
8482 steping_over_breakpoint flag. Adjust to use
8483 find_thread_needs_step_over instead of prepare_to_proceed.
8484 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8485 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8487 (switch_back_to_stepped_thread): Step over breakpoints of all
8488 threads not the stepping thread, before switching back to the
8491 2014-03-20 Pedro Alves <palves@redhat.com>
8493 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8495 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8496 * infrun.c (saved_singlestep_ptid)
8497 (stepping_past_singlestep_breakpoint): Delete.
8498 (resume): Remove stepping_past_singlestep_breakpoint handling.
8499 (proceed): Store the prev_pc of the stepping thread too.
8500 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8502 (enum infwait_states): Delete infwait_thread_hop_state.
8503 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8505 (handle_inferior_event): Adjust.
8506 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8507 handling and the thread-hop code. Before removing single-step
8508 breakpoints, check whether the thread hit a single-step breakpoint
8509 of another thread. If it did, the trap is not a random signal.
8510 (switch_back_to_stepped_thread): If the event thread hit a
8511 single-step breakpoint, unblock it before switching to the
8512 stepping thread. Handle the case of the stepped thread having
8514 (keep_going): Handle the case of the current thread moving past a
8515 single-step breakpoint.
8517 2014-03-20 Pedro Alves <palves@redhat.com>
8520 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8521 are being stepped over.
8522 (breakpoint_address_match): Make extern.
8523 * breakpoint.h (breakpoint_address_match): New declaration.
8524 * inferior.h (stepping_past_instruction_at): New declaration.
8525 * infrun.c (struct step_over_info): New type.
8526 (step_over_info): New global.
8527 (set_step_over_info, clear_step_over_info)
8528 (stepping_past_instruction_at): New functions.
8529 (handle_inferior_event): Clear the step-over info when
8530 trap_expected is cleared.
8531 (resume): Remove now stale comment.
8532 (clear_proceed_status): Clear step-over info.
8533 (proceed): Adjust step-over handling to set or clear the step-over
8534 info instead of removing all breakpoints.
8535 (handle_signal_stop): When setting up a thread-hop, don't remove
8537 (stop_stepping): Clear step-over info.
8538 (keep_going): Adjust step-over handling to set or clear step-over
8539 info and then always inserting breakpoints, instead of removing
8540 all breakpoints when stepping over one.
8542 2014-03-20 Pedro Alves <palves@redhat.com>
8544 * infrun.c (previous_inferior_ptid): Adjust comment.
8545 (deferred_step_ptid): Delete.
8546 (infrun_thread_ptid_changed, prepare_to_proceed)
8547 (init_wait_for_inferior): Adjust.
8548 (handle_signal_stop): Delete deferred_step_ptid handling.
8550 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8553 * defs.h (sync_quit_force_run): New declaration.
8554 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8555 * event-top.c (async_sigterm_handler): New declaration.
8556 (async_sigterm_token): New variable.
8557 (async_init_signals): Create also async_sigterm_token.
8558 (async_sigterm_handler): New function.
8559 (sync_quit_force_run): New variable.
8560 (handle_sigterm): Replace quit_force call by other calls.
8561 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8563 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8565 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8566 offset into SPE pseudo registers.
8568 2014-03-18 Pedro Alves <palves@redhat.com>
8571 * inferior.h (print_stop_event): Declare.
8572 * infrun.c (print_stop_event): New, factored out from ...
8573 (normal_stop): ... this.
8574 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8575 of bpstat_print/print_stack_frame.
8577 2014-03-17 Tom Tromey <tromey@redhat.com>
8579 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8581 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8583 * ada-lang.c (decode_constrained_packed_array): Perform a
8584 minimal coercion for reference with coerce_ref instead of
8587 2014-03-17 Tristan Gingold <gingold@adacore.com>
8589 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8590 (darwin_solib_create_inferior_hook): Emit a warning if version
8593 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8595 * python/py-value.c (get_field_flag): Cast flag_name argument to
8596 PyObject_GetAttrString to support Python 2.4.
8598 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8600 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8601 (Global Maintainers): Remove Jan Kratochvil.
8603 2014-03-14 Pedro Alves <palves@redhat.com>
8605 * inferior.h (terminal_ours_for_output): Rename to ...
8606 (child_terminal_ours_for_output): ... this.
8607 (terminal_save_ours): Rename to ...
8608 (child_terminal_save_ours): ... this.
8609 (terminal_ours): Rename to ...
8610 (child_terminal_ours): ... this.
8611 (terminal_inferior): Rename to ...
8612 (child_terminal_inferior): ... this.
8613 (terminal_init_inferior): Rename to ...
8614 (child_terminal_init_inferior): ... this.
8615 (terminal_init_inferior_with_pgrp): Rename to ...
8616 (child_terminal_init_inferior_with_pgrp): ... this.
8617 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8618 (child_terminal_init_with_pgrp): ... this.
8619 (terminal_save_ours): Rename to ...
8620 (child_terminal_save_ours): ... this.
8621 (terminal_init_inferior): Rename to ...
8622 (child_terminal_init): ... this. Adjust.
8623 (terminal_inferior): Rename to ...
8624 (child_terminal_inferior): ... this.
8625 (terminal_ours_for_output): Rename to ...
8626 (child_terminal_ours_for_output): ... this. Adjust.
8627 (terminal_ours): Rename to ...
8628 (child_terminal_ours): ... this.
8629 (terminal_ours_1): Rename to ...
8630 (child_terminal_ours_1): ... this. Adjust.
8631 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8632 * windows-nat.c (do_initial_windows_stuff): Adjust.
8633 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8634 (gnu_terminal_init): ... this. Adjust.
8635 (gnu_target): Adjust.
8636 * inf-child.c (inf_child_target): Adjust.
8638 2014-03-13 Doug Evans <xdje42@gmail.com>
8641 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8644 2014-03-13 Doug Evans <xdje42@gmail.com>
8646 * value.c (record_latest_value): Call release_value_or_incref
8647 instead of release_value.
8649 2014-03-13 Pedro Alves <palves@redhat.com>
8651 * procfs.c (procfs_target): Don't override to_shortname,
8652 to_longname or to_doc.
8654 2014-03-13 Pedro Alves <palves@redhat.com>
8656 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8657 Unix in user visible strings.
8659 2014-03-12 Stan Shebs <stan@codesourcery.com>
8661 * gdbtypes.h: Annotate comments for Doxygen, add a page
8662 block comment with some general info.
8664 2014-03-12 Pedro Alves <palves@redhat.com>
8666 * infcmd.c (prepare_execution_command): New function, factored out
8667 from several execution commands.
8668 (run_command_1, continue_command, step_1, jump_command)
8669 (signal_command, until_command, advance_command, finish_command)
8670 (attach_command): Use prepare_execution_command.
8672 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8674 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8677 (struct arm_linux_thread_points): Removed.
8678 (struct arm_linux_process_info): New.
8679 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8680 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8681 (arm_linux_find_breakpoints_by_tid): Removed.
8682 (struct arch_lwp_info): New.
8683 (arm_linux_find_process_pid): New functions.
8684 (arm_linux_add_process): New functions.
8685 (arm_linux_process_info_get): New functions.
8686 (arm_linux_forget_process): New function.
8687 (arm_linux_get_debug_reg_state): New function.
8688 (struct update_registers_data): New.
8689 (update_registers_callback): New function.
8690 (arm_linux_insert_hw_breakpoint1): Updated.
8691 (arm_linux_remove_hw_breakpoint1): Updated.
8692 (arm_linux_insert_hw_breakpoint): Updated.
8693 (arm_linux_remove_hw_breakpoint): Updated.
8694 (arm_linux_insert_watchpoint): Updated.
8695 (arm_linux_remove_watchpoint): Updated.
8696 (arm_linux_new_thread): Updated.
8697 (arm_linux_prepare_to_resume): New function.
8698 (arm_linux_new_fork): New function.
8699 (_initialize_arm_linux_nat): Updated.
8701 2014-03-12 Pedro Alves <palves@redhat.com>
8703 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8705 2014-03-12 Tom Tromey <tromey@redhat.com>
8707 * inf-child.c (return_zero): New function.
8708 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8709 * aix-thread.c (aix_thread_inferior_created): New function.
8710 (aix_thread_attach): Remove.
8711 (init_aix_thread_ops): Don't set to_attach.
8712 (_initialize_aix_thread): Register inferior_created observer.
8713 * corelow.c (init_core_ops): Don't set to_attach or
8715 * exec.c (init_exec_ops): Don't set to_attach or
8717 * infcmd.c (run_command_1): Use find_run_target. Make direct
8719 (attach_command): Use find_attach_target. Make direct target
8721 * record-btrace.c (init_record_btrace_ops): Don't set
8723 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8725 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8726 set to_create_inferior.
8727 * target.c (complete_target_initialization): Add assertion.
8728 (target_create_inferior): Remove.
8729 (find_default_attach, find_default_create_inferior): Remove.
8730 (find_attach_target, find_run_target): New functions.
8731 (find_default_is_async_p, find_default_can_async_p)
8732 (target_supports_non_stop, target_attach): Remove.
8733 (init_dummy_target): Don't set to_create_inferior or
8734 to_supports_non_stop.
8735 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8736 TARGET_DEFAULT_FUNC.
8737 <to_create_inferior>: Add comment.
8738 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8739 TARGET_DEFAULT_RETURN.
8740 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8741 (find_attach_target, find_run_target): Declare.
8742 (target_create_inferior): Remove.
8743 (target_has_execution_1): Update comment.
8744 (target_supports_non_stop): Remove.
8745 * target-delegates.c: Rebuild.
8747 2014-03-12 Pedro Alves <palves@redhat.com>
8749 * inf-child.h: Update comment to not mention Unix.
8751 2014-03-12 Pedro Alves <palves@redhat.com>
8753 * inf-child.c: Update top comment to not mention Unix. Add
8754 generic comment describing how this target is meant to be used.
8755 (inf_child_post_attach, inf_child_post_startup_inferior)
8756 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8759 2014-03-12 Pedro Alves <palves@redhat.com>
8761 * nto-procfs.c: Include inf-child.h.
8762 (procfs_ops): Delete global.
8763 (procfs_can_run): Delete method.
8764 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8765 target pointer instead of referencing procfs_ops.
8766 (procfs_prepare_to_store): Delete.
8767 (init_procfs_ops): Delete function.
8768 (procfs_target): New function, based on init_procfs_ops, but
8769 inherit inf_child_target.
8770 (_initialize_procfs): Use procfs_target.
8772 2014-03-12 Pedro Alves <palves@redhat.com>
8774 * windows-nat.c: Include inf-child.h.
8775 (windows_ops): Delete global.
8776 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8778 (init_windows_ops): Delete function.
8779 (windows_target): New function, based on init_windows_ops, but
8780 inherit inf_child_target.
8781 (_initialize_windows_nat): Use windows_target. Install x86
8782 specific target methods here.
8784 2014-03-10 Doug Evans <xdje42@gmail.com>
8786 * guile/guile.c (call_initialize_gdb_module): New function.
8787 (initialize_guile): Replace call to scm_init_guile with call to
8790 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8792 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8793 in call to TYPE_CODE macro.
8795 2014-03-10 Jerome Guitton <guitton@adacore.com>
8797 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8798 Resolve tagged types to full view.
8800 2014-03-10 Hui Zhu <hui@codesourcery.com>
8802 * target.h (target_insert_breakpoint): Remove "hardware" from its
8805 2014-03-07 Doug Evans <dje@google.com>
8807 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8809 2014-03-07 Doug Evans <dje@google.com>
8811 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8812 Remove unused local comp_dir_attr. Assert exactly one of
8813 stub_comp_unit_die, stub_comp_dir is non-NULL.
8815 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8817 * target.h (complete_target_initialization, add_target):
8820 2014-03-07 Pedro Alves <palves@redhat.com>
8822 * go32-nat.c: Include inf-child.h.
8823 (go32_ops): Delete global.
8824 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8826 (go32_create_inferior): Push the passed in target pointer instead
8827 of referencing go32_ops.
8828 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8829 (go32_target): New function, based on init_go32_ops, but inherit
8831 (_initialize_go32_nat): Use go32_target. Move parts of
8834 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8836 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8837 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8838 SYMBOL_VALUE_ADDRESS.
8839 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8841 2014-03-06 Yao Qi <yao@codesourcery.com>
8843 * breakpoint.c (get_tracepoint_by_number): Remove argument
8844 optional_p. All callers updated. Adjust comments. Update
8846 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8848 2014-03-06 Yao Qi <yao@codesourcery.com>
8850 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8851 early if get_number returns zero. Use 'p' instead of 'args'.
8853 2014-03-06 Yao Qi <yao@codesourcery.com>
8855 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8858 2014-03-06 Yao Qi <yao@codesourcery.com>
8860 PR breakpoints/16508
8861 * tracepoint.c (check_trace_running): New function.
8862 (trace_find_command): Move code to check_trace_running and
8863 call check_trace_running.
8864 (trace_find_pc_command): Likewise.
8865 (trace_find_tracepoint_command): Likewise.
8866 (trace_find_line_command): Likewise.
8867 (trace_find_range_command): Likewise.
8868 * tracepoint.h (check_trace_running): Likewise.
8869 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8871 2014-03-06 Yao Qi <yao@codesourcery.com>
8873 * target.h (struct target_ops) <to_traceframe_info>: Use
8874 TARGET_DEFAULT_NORETURN (tcomplain ()).
8875 * target-delegates.c: Regenerated.
8877 2014-03-05 Pedro Alves <palves@redhat.com>
8880 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8881 void. Update comment.
8882 (dcache_xfer_memory): Delete.
8883 (dcache_read_memory_partial): New, based on the read bits of
8885 (dcache_update): Add status parameter. Use ULONGEST for len, and
8886 adjust. Discard cache lines if the reason for the update was
8888 * dcache.h (dcache_xfer_memory): Delete declaration.
8889 (dcache_read_memory_partial): New declaration.
8890 (dcache_update): Update prototype.
8891 * target.c (raw_memory_xfer_partial): Update the dcache here.
8892 (memory_xfer_partial_1): Don't handle dcache writes here.
8894 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8896 * remote-sim.c (gdbsim_load): Add const to prog.
8898 2014-03-03 Tom Tromey <tromey@redhat.com>
8900 * elfread.c (probe_key): Change to bfd_data.
8901 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8902 now per-BFD, not per-objfile.
8903 * stap-probe.c (stap_probe_destroy): Update comment.
8904 (handle_stap_probe): Allocate on the per-BFD obstack.
8906 2014-03-03 Tom Tromey <tromey@redhat.com>
8908 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8909 * breakpoint.c (create_longjmp_master_breakpoint): Use
8911 (add_location_to_breakpoint, bkpt_probe_insert_location)
8912 (bkpt_probe_remove_location): Update.
8913 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8914 * elfread.c (elf_symfile_relocate_probe): Remove.
8915 (elf_probe_fns): Update.
8916 (insert_exception_resume_breakpoint): Change type of "probe"
8917 parameter to bound_probe.
8918 (check_exception_resume): Update.
8919 * objfiles.c (objfile_relocate1): Don't relocate probes.
8920 * probe.c (bound_probe_s): New typedef.
8921 (parse_probes): Use get_probe_address. Set sal's objfile.
8922 (find_probe_by_pc): Return a bound_probe.
8923 (collect_probes): Return a VEC(bound_probe_s).
8924 (compare_probes): Update.
8925 (gen_ui_out_table_header_info): Change type of "probes"
8927 (info_probes_for_ops): Update.
8928 (get_probe_address): New function.
8929 (probe_safe_evaluate_at_pc): Update.
8930 * probe.h (struct probe_ops) <get_probe_address>: New field.
8931 <set_semaphore, clear_semaphore>: Add objfile parameter.
8932 (struct probe) <objfile>: Remove field.
8934 <address>: Update comment.
8935 (struct bound_probe): New.
8936 (find_probe_by_pc): Return a bound_probe.
8937 (get_probe_address): Declare.
8938 * solib-svr4.c (struct probe_and_action) <address>: New field.
8939 (hash_probe_and_action, equal_probe_and_action): Update.
8940 (register_solib_event_probe): Add address parameter.
8941 (solib_event_probe_at): Update.
8942 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8944 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8945 (stap_get_probe_address): New function.
8946 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8947 (compile_probe_arg): Update.
8948 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8950 (handle_stap_probe): Don't relocate the probe.
8951 (stap_relocate): Remove.
8952 (stap_gen_info_probes_table_values): Update.
8953 (stap_probe_ops): Remove stap_relocate.
8954 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8955 (debug_sym_probe_fns): Update.
8956 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8957 * symtab.c (init_sal): Use memset.
8958 * symtab.h (struct symtab_and_line) <objfile>: New field.
8959 * tracepoint.c (start_tracing, stop_tracing): Update.
8961 2014-03-03 Tom Tromey <tromey@redhat.com>
8963 * probe.h (parse_probes, find_probe_by_pc)
8964 (find_probes_in_objfile): Fix comments.
8966 2014-03-02 Doug Evans <xdje42@gmail.com>
8968 * infrun.c (handle_signal_stop): Replace test for
8969 TARGET_WAITKIND_STOPPED with an assert.
8971 2014-03-02 Doug Evans <xdje42@gmail.com>
8973 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8975 2014-03-02 Doug Evans <xdje42@gmail.com>
8977 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8979 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8981 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8983 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8985 * i386obsd-nat.c: Include "obsd-nat.h".
8986 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8988 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8990 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8992 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8994 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8996 * mips64obsd-nat.c: Include "obsd-nath".
8997 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8999 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9001 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9003 * amd64obsd-nat.c: Include "obsd-nat,h.
9004 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9006 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9008 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9010 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9011 (find_overload_match): Update call to find_oload_champ.
9012 (find_oload_champ_namespace_loop): Likewise
9014 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9016 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9018 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9019 * config/sparc/obsd64.mh: New file.
9020 * sparc64obsd-nat.c: New file.
9022 * obsd-nat.h: New file.
9023 * obsd-nat.c: New file.
9024 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9025 (ALLDEPFILES): Add obsd-nat.c.
9027 2014-02-28 Tom Tromey <tromey@redhat.com>
9029 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9030 * cli-out.h (cli_ui_out_impl): Now const.
9031 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9032 * ui-out.c (struct ui_out) <impl>: Now const.
9033 (default_ui_out_impl): Now const.
9034 (ui_out_new): Make 'impl' parameter const.
9035 * ui-out.h (ui_out_new): Update.
9037 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9039 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9041 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9043 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9045 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9047 Additional PR 8882 fix.
9048 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9050 2014-02-27 Pedro Alves <palves@redhat.com>
9052 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9055 2014-02-27 Pedro Alves <palves@redhat.com>
9058 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9059 * nat/linux-waitpid.c: Include string.h.
9060 (status_to_str): Moved here and made extern.
9061 * nat/linux-waitpid.h (status_to_str): New declaration.
9063 2014-02-27 Hui Zhu <hui@codesourcery.com>
9066 * infrun.c (ptid_match): Move ...
9067 * common/ptid.c (ptid_match): ... here.
9068 * inferior.h (ptid_match): Move ...
9069 * common/ptid.h (ptid_match): ... here.
9071 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9073 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9074 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9077 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9079 * obsd-tdep.c (obsd_auxv_parse): New function.
9080 (obsd_init_abi): Set auxv_parse.
9082 * gdbarch.sh (auxv_parse): New.
9083 * gdbarch.h: Regenerated.
9084 * gdbarch.c: Regenerated.
9085 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9087 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9089 * guile/scm-value.c (gdbscm_history_append_x): New function.
9090 (value_functions): Add it.
9092 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9094 * dwarf2read.c (attr_value_as_address): New function.
9095 (dwarf2_find_base_address, read_call_site_scope): Use
9096 attr_value_as_address in place of DW_ADDR.
9097 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9098 the low and high addresses. Slight rework of the handling
9099 of the high pc being a constant form, and limit it to
9100 DWARF verson 4 or higher.
9101 (dwarf2_record_block_ranges): Likewise.
9102 (read_partial_die): Likewise.
9103 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9105 2014-02-26 Tom Tromey <tromey@redhat.com>
9107 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9109 2014-02-26 Tom Tromey <tromey@redhat.com>
9111 * elfread.c (elf_read_minimal_symbols): Return early if
9112 minimal symbols have already been read. Add "ei" parameter.
9113 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9114 * minsyms.c (prim_record_minimal_symbol_full): Update.
9115 * objfiles.h (struct objstats) <n_minsyms>: Move...
9116 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9117 * symmisc.c (print_objfile_statistics): Update.
9119 2014-02-26 Tom Tromey <tromey@redhat.com>
9121 * elfread.c (elf_read_minimal_symbols): New function, from
9123 (elf_symfile_read): Call it.
9125 2014-02-26 Tom Tromey <tromey@redhat.com>
9127 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9128 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9129 (lookup_minimal_symbol_solib_trampoline)
9130 (lookup_minimal_symbol_by_pc_section_1)
9131 (lookup_minimal_symbol_and_objfile): Update.
9132 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9133 Don't allocate a minimal symbol if minsyms have already been read.
9134 (build_minimal_symbol_hash_tables): Update.
9135 (install_minimal_symbols): Do nothing if minsyms already read.
9136 Use the per-BFD obstack.
9137 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9138 * objfiles.c (allocate_objfile): Call
9139 terminate_minimal_symbol_table later.
9140 (have_minimal_symbols): Update.
9141 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9142 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9143 Move from struct objfile.
9144 <minsyms_read>: New field.
9145 (struct objfile) <msymbols, minimal_symbol_count,
9146 msymbol_hash, msymbol_demangled_hash>: Move.
9147 (ALL_OBJFILE_MSYMBOLS): Update.
9148 * symfile.c (read_symbols): Set minsyms_read.
9149 (reread_symbols): Update.
9150 * symmisc.c (dump_objfile, dump_msymbols): Update.
9152 2014-02-26 Tom Tromey <tromey@redhat.com>
9154 * minsyms.c (msymbols_sort): Remove.
9155 * minsyms.h (msymbols_sort): Remove.
9156 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9157 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9158 * elfread.c (elf_symtab_read): Don't add section offsets.
9159 * xcoffread.c (record_minimal_symbol): Don't add section offset
9160 to minimal symbol address.
9161 * somread.c (text_offset, data_offset): Remove.
9162 (som_symtab_read): Don't add section offsets to minimal symbol
9164 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9165 Don't add section offsets to minimal symbols.
9166 * coffread.c (coff_symtab_read): Don't add section offsets
9167 to minimal symbol addresses.
9168 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9169 to minimal symbol addresses.
9170 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9171 section offset to minimal symbol addresses.
9172 * mdebugread.c (parse_partial_symbols): Don't add section
9173 offset to minimal symbol addresses.
9174 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9175 offset to minimal symbol addresses.
9177 2014-02-26 Tom Tromey <tromey@redhat.com>
9179 * ada-lang.c (ada_main_name): Update.
9180 (ada_add_standard_exceptions): Update.
9181 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9182 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9183 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9184 * auxv.c (ld_so_xfer_auxv): Update.
9185 * avr-tdep.c (avr_scan_prologue): Update.
9186 * ax-gdb.c (gen_var_ref): Update.
9187 * blockframe.c (get_pc_function_start)
9188 (find_pc_partial_function_gnu_ifunc): Update.
9189 * breakpoint.c (create_overlay_event_breakpoint)
9190 (create_longjmp_master_breakpoint)
9191 (create_std_terminate_master_breakpoint)
9192 (create_exception_master_breakpoint): Update.
9193 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9194 * c-valprint.c (c_val_print): Update.
9195 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9196 * common/agent.c (agent_look_up_symbols): Update.
9197 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9198 * dwarf2loc.c (call_site_to_target_addr): Update.
9199 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9200 * elfread.c (elf_gnu_ifunc_record_cache)
9201 (elf_gnu_ifunc_resolve_by_got): Update.
9202 * findvar.c (default_read_var_value): Update.
9203 * frame.c (inside_main_func): Update.
9204 * frv-tdep.c (frv_frame_this_id): Update.
9205 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9206 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9208 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9209 (hppa_hpux_find_dummy_bpaddr): Update.
9210 * hppa-tdep.c (hppa_symbol_address): Update.
9211 * infcmd.c (until_next_command): Update.
9212 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9214 * linespec.c (minsym_found, add_minsym): Update.
9215 * linux-nat.c (get_signo): Update.
9216 * linux-thread-db.c (inferior_has_bug): Update.
9217 * m32c-tdep.c (m32c_return_value)
9218 (m32c_m16c_address_to_pointer): Update.
9219 * m32r-tdep.c (m32r_frame_this_id): Update.
9220 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9221 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9222 * maint.c (maintenance_translate_address): Update.
9223 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9224 (frob_address): New function.
9225 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9226 frob_address. Rename parameter to "pc_in".
9227 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9229 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9231 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9232 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9233 * objc-lang.c (find_objc_msgsend): Update.
9234 * objfiles.c (objfile_relocate1): Update.
9235 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9236 * p-valprint.c (pascal_val_print): Update.
9237 * parse.c (write_exp_msymbol): Update.
9238 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9239 (ppc_elfv2_skip_entrypoint): Update.
9240 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9241 * printcmd.c (build_address_symbolic, msym_info)
9242 (address_info): Update.
9243 * proc-service.c (ps_pglobal_lookup): Update.
9244 * psymtab.c (find_pc_sect_psymtab_closer)
9245 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9246 Change msymbol parameter to bound_minimal_symbol.
9247 * ravenscar-thread.c (get_running_thread_id): Update.
9248 * remote.c (remote_check_symbols): Update.
9249 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9251 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9252 * solib-dsbt.c (lm_base): Update.
9253 * solib-frv.c (lm_base, main_got): Update.
9254 * solib-irix.c (locate_base): Update.
9255 * solib-som.c (som_solib_create_inferior_hook)
9256 (link_map_start): Update.
9257 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9258 * solib-svr4.c (elf_locate_base, enable_break): Update.
9259 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9260 (flush_ea_cache): Update.
9261 * stabsread.c (define_symbol, scan_file_globals): Update.
9262 * stack.c (find_frame_funname): Update.
9263 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9264 (debug_qf_find_pc_sect_symtab): Update.
9265 * symfile.c (simple_read_overlay_table)
9266 (simple_overlay_update): Update.
9267 * symfile.h (struct quick_symbol_functions)
9268 <find_pc_sect_symtab>: Change type of msymbol to
9269 bound_minimal_symbol.
9270 * symmisc.c (dump_msymbols): Update.
9271 * symtab.c (find_pc_sect_symtab_via_partial)
9272 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9273 (search_symbols, print_msymbol_info): Update.
9274 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9275 (MSYMBOL_VALUE_ADDRESS): Redefine.
9276 (BMSYMBOL_VALUE_ADDRESS): New macro.
9277 * tracepoint.c (scope_info): Update.
9278 * tui/tui-disasm.c (tui_find_disassembly_address)
9279 (tui_get_begin_asm_address): Update.
9280 * valops.c (find_function_in_inferior): Update.
9281 * value.c (value_static_field, value_fn_field): Update.
9283 2014-02-26 Tom Tromey <tromey@redhat.com>
9285 * ada-lang.c (ada_update_initial_language): Update.
9286 (ada_main_name, ada_has_this_exception_support): Update.
9287 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9288 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9289 * arm-tdep.c (arm_skip_stub): Update.
9290 * auxv.c (ld_so_xfer_auxv): Update.
9291 * avr-tdep.c (avr_scan_prologue): Update.
9292 * ax-gdb.c (gen_var_ref): Update.
9293 * breakpoint.c (struct breakpoint_objfile_data)
9294 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9295 type to bound_minimal_symbol.
9296 (create_overlay_event_breakpoint)
9297 (create_longjmp_master_breakpoint)
9298 (create_std_terminate_master_breakpoint)
9299 (create_exception_master_breakpoint): Update.
9300 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9301 * c-exp.y (classify_name): Update.
9302 * coffread.c (coff_symfile_read): Update.
9303 * common/agent.c (agent_look_up_symbols): Update.
9304 * d-lang.c (d_main_name): Update.
9305 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9306 * dec-thread.c (enable_dec_thread): Update.
9307 * dwarf2loc.c (call_site_to_target_addr): Update.
9308 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9309 * eval.c (evaluate_subexp_standard): Update.
9310 * findvar.c (struct minsym_lookup_data) <result>: Change type
9311 to bound_minimal_symbol.
9313 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9314 * frame.c (inside_main_func): Update.
9315 * frv-tdep.c (frv_frame_this_id): Update.
9316 * gcore.c (call_target_sbrk): Update.
9317 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9318 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9320 * go-lang.c (go_main_name): Update.
9321 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9322 (hppa_hpux_find_import_stub_for_addr): Update.
9323 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9324 Update. Change return type.
9325 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9327 * jit.c (jit_breakpoint_re_set_internal): Update.
9328 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9330 * linux-nat.c (get_signo): Update.
9331 * linux-thread-db.c (inferior_has_bug): Update
9332 * m32c-tdep.c (m32c_return_value)
9333 (m32c_m16c_address_to_pointer): Update.
9334 * m32r-tdep.c (m32r_frame_this_id): Update.
9335 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9336 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9337 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9338 lookup_minimal_symbol. Change return type.
9339 (lookup_minimal_symbol): Remove.
9340 (lookup_bound_minimal_symbol): Update.
9341 (lookup_minimal_symbol_text): Change return type.
9342 (lookup_minimal_symbol_solib_trampoline): Change return type.
9343 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9344 (lookup_minimal_symbol_solib_trampoline): Change return type.
9345 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9346 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9347 (value_nsstring, find_imps): Update.
9348 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9349 * p-lang.c (pascal_main_name): Update.
9350 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9351 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9352 * proc-service.c (ps_pglobal_lookup): Update.
9353 * ravenscar-thread.c (get_running_thread_msymbol): Change
9355 (has_ravenscar_runtime, get_running_thread_id): Update.
9356 * remote.c (remote_check_symbols): Update.
9357 * sol-thread.c (ps_pglobal_lookup): Update.
9358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9359 * solib-dsbt.c (lm_base): Update.
9360 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9362 * solib-irix.c (locate_base): Update.
9363 * solib-som.c (som_solib_create_inferior_hook)
9364 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9366 * solib-spu.c (spu_enable_break): Update.
9367 * solib-svr4.c (elf_locate_base, enable_break): Update.
9368 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9369 (flush_ea_cache): Update.
9370 * stabsread.c (define_symbol): Update.
9371 * symfile.c (simple_read_overlay_table): Update.
9372 * symtab.c (find_pc_sect_line): Update.
9373 * tracepoint.c (scope_info): Update.
9374 * tui-disasm.c (tui_get_begin_asm_address): Update.
9375 * value.c (value_static_field): Update.
9377 2014-02-26 Tom Tromey <tromey@redhat.com>
9379 * minsyms.c (prim_record_minimal_symbol_full): Use
9380 SET_MSYMBOL_VALUE_ADDRESS.
9381 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9382 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9383 SET_MSYMBOL_VALUE_ADDRESS.
9384 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9385 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9387 2014-02-26 Tom Tromey <tromey@redhat.com>
9389 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9390 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9391 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9392 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9393 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9394 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9395 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9396 * ada-lang.c (ada_main_name): Update.
9397 (ada_lookup_simple_minsym): Update.
9398 (ada_make_symbol_completion_list): Update.
9399 (ada_add_standard_exceptions): Update.
9400 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9401 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9402 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9403 * arm-tdep.c (skip_prologue_function): Update.
9404 (arm_skip_stack_protector, arm_skip_stub): Update.
9405 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9406 (arm_wince_skip_main_prologue): Update.
9407 * auxv.c (ld_so_xfer_auxv): Update.
9408 * avr-tdep.c (avr_scan_prologue): Update.
9409 * ax-gdb.c (gen_var_ref): Update.
9410 * block.c (call_site_for_pc): Update.
9411 * blockframe.c (get_pc_function_start): Update.
9412 (find_pc_partial_function_gnu_ifunc): Update.
9413 * breakpoint.c (create_overlay_event_breakpoint): Update.
9414 (create_longjmp_master_breakpoint): Update.
9415 (create_std_terminate_master_breakpoint): Update.
9416 (create_exception_master_breakpoint): Update.
9417 (resolve_sal_pc): Update.
9418 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9419 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9421 * c-valprint.c (c_val_print): Update.
9422 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9423 * coffread.c (coff_symfile_read): Update.
9424 * common/agent.c (agent_look_up_symbols): Update.
9425 * dbxread.c (find_stab_function_addr): Update.
9426 (end_psymtab): Update.
9427 * dwarf2loc.c (call_site_to_target_addr): Update.
9428 (func_verify_no_selftailcall): Update.
9429 (tailcall_dump): Update.
9430 (call_site_find_chain_1): Update.
9431 (dwarf_expr_reg_to_entry_parameter): Update.
9432 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9433 (elf_gnu_ifunc_resolve_by_got): Update.
9434 * f-valprint.c (info_common_command): Update.
9435 * findvar.c (read_var_value): Update.
9436 * frame.c (get_prev_frame_1): Update.
9437 (inside_main_func): Update.
9438 * frv-tdep.c (frv_skip_main_prologue): Update.
9439 (frv_frame_this_id): Update.
9440 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9441 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9442 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9443 (gnuv3_skip_trampoline): Update.
9444 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9445 (hppa64_hpux_in_solib_call_trampoline): Update.
9446 (hppa_hpux_skip_trampoline_code): Update.
9447 (hppa64_hpux_search_dummy_call_sequence): Update.
9448 (hppa_hpux_find_import_stub_for_addr): Update.
9449 (hppa_hpux_find_dummy_bpaddr): Update.
9450 * hppa-tdep.c (hppa_symbol_address)
9451 (hppa_lookup_stub_minimal_symbol): Update.
9452 * i386-tdep.c (i386_skip_main_prologue): Update.
9453 (i386_pe_skip_trampoline_code): Update.
9454 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9455 * infcall.c (get_function_name): Update.
9456 * infcmd.c (until_next_command): Update.
9457 * jit.c (jit_breakpoint_re_set_internal): Update.
9458 (jit_inferior_init): Update.
9459 * linespec.c (minsym_found): Update.
9460 (add_minsym): Update.
9461 * linux-fork.c (info_checkpoints_command): Update.
9462 * linux-nat.c (get_signo): Update.
9463 * linux-thread-db.c (inferior_has_bug): Update.
9464 * m32c-tdep.c (m32c_return_value): Update.
9465 (m32c_m16c_address_to_pointer): Update.
9466 (m32c_m16c_pointer_to_address): Update.
9467 * m32r-tdep.c (m32r_frame_this_id): Update.
9468 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9469 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9470 * maint.c (maintenance_translate_address): Update.
9471 * minsyms.c (add_minsym_to_hash_table): Update.
9472 (add_minsym_to_demangled_hash_table): Update.
9473 (msymbol_objfile): Update.
9474 (lookup_minimal_symbol): Update.
9475 (iterate_over_minimal_symbols): Update.
9476 (lookup_minimal_symbol_text): Update.
9477 (lookup_minimal_symbol_by_pc_name): Update.
9478 (lookup_minimal_symbol_solib_trampoline): Update.
9479 (lookup_minimal_symbol_by_pc_section_1): Update.
9480 (lookup_minimal_symbol_and_objfile): Update.
9481 (prim_record_minimal_symbol_full): Update.
9482 (compare_minimal_symbols): Update.
9483 (compact_minimal_symbols): Update.
9484 (build_minimal_symbol_hash_tables): Update.
9485 (install_minimal_symbols): Update.
9486 (terminate_minimal_symbol_table): Update.
9487 (find_solib_trampoline_target): Update.
9488 (minimal_symbol_upper_bound): Update.
9489 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9490 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9491 (mips_skip_pic_trampoline_code): Update.
9492 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9493 * objc-lang.c (selectors_info): Update.
9494 (classes_info): Update.
9495 (find_methods): Update.
9496 (find_imps): Update.
9497 (find_objc_msgsend): Update.
9498 * objfiles.c (objfile_relocate1): Update.
9499 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9500 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9501 * p-valprint.c (pascal_val_print): Update.
9502 * parse.c (write_exp_msymbol): Update.
9503 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9504 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9505 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9506 * printcmd.c (build_address_symbolic): Update.
9508 (address_info): Update.
9509 * proc-service.c (ps_pglobal_lookup): Update.
9510 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9511 (find_pc_sect_psymtab): Update.
9512 * python/py-framefilter.c (py_print_frame): Update.
9513 * ravenscar-thread.c (get_running_thread_id): Update.
9514 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9516 * remote.c (remote_check_symbols): Update.
9517 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9518 (rs6000_skip_trampoline_code): Update.
9519 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9520 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9521 * solib-dsbt.c (lm_base): Update.
9522 * solib-frv.c (lm_base): Update.
9524 * solib-irix.c (locate_base): Update.
9525 * solib-som.c (som_solib_create_inferior_hook): Update.
9526 (som_solib_desire_dynamic_linker_symbols): Update.
9527 (link_map_start): Update.
9528 * solib-spu.c (spu_enable_break): Update.
9529 (ocl_enable_break): Update.
9530 * solib-svr4.c (elf_locate_base): Update.
9531 (enable_break): Update.
9532 * spu-tdep.c (spu_get_overlay_table): Update.
9533 (spu_catch_start): Update.
9534 (flush_ea_cache): Update.
9535 * stabsread.c (define_symbol): Update.
9536 (scan_file_globals): Update.
9537 * stack.c (find_frame_funname): Update.
9538 (frame_info): Update.
9539 * symfile.c (simple_read_overlay_table): Update.
9540 (simple_overlay_update): Update.
9541 * symmisc.c (dump_msymbols): Update.
9542 * symtab.c (fixup_section): Update.
9543 (find_pc_sect_line): Update.
9544 (skip_prologue_sal): Update.
9545 (search_symbols): Update.
9546 (print_msymbol_info): Update.
9547 (rbreak_command): Update.
9548 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9549 (completion_list_objc_symbol): Update.
9550 (default_make_symbol_completion_list_break_on): Update.
9551 * tracepoint.c (scope_info): Update.
9552 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9553 (tui_get_begin_asm_address): Update.
9554 * valops.c (find_function_in_inferior): Update.
9555 * value.c (value_static_field): Update.
9556 (value_fn_field): Update.
9558 2014-02-26 Tom Tromey <tromey@redhat.com>
9560 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9561 bound minimal symbols. Move code that knows about minsym
9563 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9565 * minsyms.h (minimal_symbol_upper_bound): Declare.
9566 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9567 minimal_symbol_upper_bound.
9569 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9571 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9572 Use the type's name if its basic type does not have a tag.
9574 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9576 * dwarf2read.c (read_subrange_type): Add comment.
9578 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9580 * dwarf2read.c (update_enumeration_type_from_children): New
9581 function, mostly extracted from process_structure_scope.
9582 (read_enumeration_type): Call update_enumeration_type_from_children.
9583 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9584 and flag_flag_enum fields.
9586 2014-02-26 Pedro Alves <palves@redhat.com>
9588 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9589 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9590 to_xfer_partial method.
9592 2014-02-26 Pedro Alves <palves@redhat.com>
9594 * target.c (complete_target_initialization): Don't install
9595 default_xfer_partial as to_xfer_partial hook.
9597 (update_current_target): Don't INHERIT nor de_fault
9598 deprecated_xfer_memory. Delete de_fault macro.
9599 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9600 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9601 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9604 2014-02-26 Pedro Alves <palves@redhat.com>
9606 * go32-nat.c (my_write_child): New function.
9607 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9608 (go32_xfer_partial): New function.
9609 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9610 Instead install a to_xfer_partial hook.
9612 2014-02-26 Pedro Alves <palves@redhat.com>
9614 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9615 to_xfer_partial helper. Rewrite.
9616 (procfs_xfer_partial): New function.
9617 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9618 Install a to_xfer_partial hook.
9620 2014-02-26 Pedro Alves <palves@redhat.com>
9622 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9623 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9624 (m32r_xfer_partial): New function.
9625 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9626 Install a to_xfer_partial hook.
9628 2014-02-26 Pedro Alves <palves@redhat.com>
9630 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9632 (mips_xfer_partial): New function.
9633 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9634 hook. Install a to_xfer_partial hook.
9636 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9638 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9639 * gdbtypes.c (create_array_type_with_stride): New function,
9640 renaming create_array_type, but with an added parameter
9641 called "bit_stride".
9642 (create_array_type): Re-implement using
9643 create_array_type_with_stride.
9644 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9645 and DW_AT_bit_stride attributes.
9647 2014-02-26 Pedro Alves <palves@redhat.com>
9649 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9650 task-specific breakpoints.
9652 2014-02-25 Pedro Alves <palves@redhat.com>
9654 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9655 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9657 2014-02-25 Stan Shebs <stan@codesourcery.com>
9659 * defs.h: Annotate comments for Doxygen.
9661 2014-02-25 Tom Tromey <tromey@redhat.com>
9663 * target.h (target_ignore): Don't declare.
9664 * target.c (target_ignore): Remove.
9666 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9669 * auto-load.c (auto_load_objfile_script_1): Change filename to
9672 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9674 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9675 documentation. Adjust prototype to match the target_ops
9676 to_xfer_partial method. Adjust implementation accordingly.
9678 2014-02-25 Hui Zhu <hui@codesourcery.com>
9680 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9683 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9685 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9686 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9687 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9688 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9689 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9690 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9691 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9692 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9694 (rl78_register_type): Use a data pointer type for SP and
9695 new pseudo registers mentioned above. Use a 16 bit integer
9696 type for all other register pairs.
9697 (rl78_register_name, rl78_g10_register_name): Update for
9698 new pseudo registers.
9699 (rl78_pseudo_register_read): Likewise.
9700 (rl78_pseudo_register_write): Likewise.
9701 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9702 to the newly added pseudo registers.
9704 2014-02-24 Doug Evans <dje@google.com>
9706 * value.c (record_latest_value): Fix comment.
9707 * printcmd.c (print_command_1): Remove code to handle -1 return from
9708 record_latest_value.
9710 2014-02-24 Pedro Alves <palves@redhat.com>
9712 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9713 deprecated_xfer_memory hook.
9714 (procfs_xfer_partial): Call procfs_xfer_memory instead
9715 of the deprecated_xfer_memory target hook.
9716 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9719 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9721 * windows-nat.c (windows_xfer_shared_libraries): Return
9722 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9723 requested object is TARGET_OBJECT_LIBRARIES.
9725 2014-02-24 Yao Qi <yao@codesourcery.com>
9727 * target.h (enum target_xfer_status)
9728 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9729 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9731 * corefile.c (memory_error_message): User updated.
9732 * exec.c (section_table_read_available_memory): Likewise.
9733 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9734 * target.c (target_xfer_status_to_string): Likewise.
9735 (raw_memory_xfer_partial): Likewise.
9736 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9737 * valops.c (read_value_memory): Likewise.
9738 * exec.h: Update comments.
9740 2014-02-24 Yao Qi <yao@codesourcery.com>
9742 * target.c (target_xfer_status_to_string): Rename argument err
9744 * target.h (target_xfer_status_to_string): Update declaration.
9745 Replace target_xfer_error_to_string with
9746 target_xfer_status_to_string in comment.
9748 2014-02-24 Yao Qi <yao@codesourcery.com>
9750 * mips-linux-nat.c (super_close): Update its type.
9751 (mips_linux_close): Pass 'self' to super_close.
9753 2014-02-24 Yao Qi <yao@codesourcery.com>
9755 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9756 * corefile.c (read_memory): Adjusted.
9757 * target.c (target_write_with_progress): Adjusted.
9759 2014-02-23 Yao Qi <yao@codesourcery.com>
9763 2013-10-25 Yao Qi <yao@codesourcery.com>
9765 * remote.c (remote_traceframe_info): Return early if
9766 traceframe is not selected.
9768 2013-07-19 Yao Qi <yao@codesourcery.com>
9770 * target.c (update_current_target): Change the default action
9771 of 'to_traceframe_info' from tcomplain to return_zero.
9772 * target.h (struct target_ops) <to_traceframe_info>: Add more
9775 2014-02-23 Yao Qi <yao@codesourcery.com>
9777 * valops.c (read_value_memory): Rewrite it. Call
9778 target_xfer_partial in a loop.
9779 * exec.h (section_table_available_memory): Remove declaration.
9780 Move comments to ...
9781 * exec.c (section_table_available_memory): ... here. Make it
9784 2014-02-23 Yao Qi <yao@codesourcery.com>
9786 * exec.c (section_table_read_available_memory): New function.
9787 * exec.h (section_table_read_available_memory): Declare.
9788 * ctf.c (ctf_xfer_partial): Call
9789 section_table_read_available_memory.
9790 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9792 2014-02-23 Yao Qi <yao@codesourcery.com>
9794 * ctf.c (ctf_xfer_partial): Move code to ...
9795 * exec.c (exec_read_partial_read_only): ... it. New function.
9796 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9797 * tracefile.c: Include "exec.h".
9798 * exec.h (exec_read_partial_read_only): Declare.
9800 2014-02-23 Yao Qi <yao@codesourcery.com>
9802 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9803 (tfile_has_memory): Remove.
9804 (init_tfile_ops): Don't set fields to_has_all_memory and
9805 to_has_memory of tfile_ops.
9806 * tracefile.c (tracefile_has_all_memory): New function.
9807 (tracefile_has_memory): New function.
9808 (init_tracefile_ops): Initialize fields to_has_all_memory and
9809 to_has_memory of 'ops'.
9811 2014-02-23 Yao Qi <yao@codesourcery.com>
9813 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9814 (ctf_thread_alive, ctf_get_trace_status): Remove.
9815 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9817 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9818 (tfile_has_stack, tfile_has_registers): Remove.
9819 (tfile_thread_alive): Remove.
9820 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9822 * tracefile.c (tracefile_has_stack): New function.
9823 (tracefile_has_registers): New function.
9824 (tracefile_thread_alive): New function.
9825 (tracefile_get_trace_status): New function.
9826 (init_tracefile_ops): New function.
9827 * tracefile.h (init_tracefile_ops): Declare.
9829 2014-02-23 Yao Qi <yao@codesourcery.com>
9831 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9832 (O_LARGEFILE): Likewise.
9833 (tfile_ops): Likewise.
9834 (TRACE_HEADER_SIZE): Likewise.
9835 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9836 (cur_data_size): Likewise.
9837 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9838 (tfile_close, tfile_files_info): Likewise.
9839 (tfile_get_trace_status): Likewise.
9840 (tfile_get_tracepoint_status): Likewise.
9841 (tfile_get_traceframe_address): Likewise.
9842 (tfile_trace_find, match_blocktype): Likewise.
9843 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9844 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9845 (tfile_get_trace_state_variable_value): Likewise.
9846 (tfile_has_all_memory, tfile_has_memory): Likewise.
9847 (tfile_has_stack, tfile_has_registers): Likewise.
9848 (tfile_thread_alive, build_traceframe_info): Likewise.
9849 (tfile_traceframe_info, init_tfile_ops): Likewise.
9850 (_initialize_tracepoint): Don't call init_tfile_ops
9851 and add_target_with_completer.
9852 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9853 exec.h, completer.h and filenames.h.
9854 (_initialize_tracefile_tfile): New function.
9856 2014-02-23 Yao Qi <yao@codesourcery.com>
9858 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9860 (HFILES_NO_SRCDIR): Add tracefile.h.
9861 * ctf.c: Include "tracefile.h".
9862 * tracefile.h: New file.
9863 * tracefile.c: New file
9864 * tracefile-tfile.c: New file.
9865 * tracepoint.c: Include "tracefile.h".
9866 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9867 (stop_reason_names): Add const.
9868 (trace_file_writer_xfree): Move it to tracefile.c.
9869 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9870 (trace_save_ctf): Likewise.
9871 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9872 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9873 (tfile_write_header, tfile_write_regblock_type): Likewise.
9874 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9875 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9876 (tfile_write_raw_data, tfile_end): Likewise.
9877 (tfile_trace_file_writer_new): Likewise.
9878 (free_uploaded_tp): Make it extern.
9879 (free_uploaded_tsv): Make it extern.
9880 (_initialize_tracepoint): Move code to register command 'tsave'
9882 * tracepoint.h (stop_reason_names): Declare.
9883 (struct trace_frame_write_ops): Move it to tracefile.h.
9884 (struct trace_file_write_ops): Likewise.
9885 (struct trace_file_writer): Likewise.
9886 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9888 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9891 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9893 (get_cores_used_by_process): New parameter num_cores, use it.
9894 (linux_xfer_osdata_processes): Pass num_cores to it.
9895 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9898 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9900 * target.c (memory_xfer_partial): Fix length arg in call to
9901 breakpoint_xfer_memory.
9903 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9906 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9907 number comes after the + or - signs. Adjust length of register
9908 name to be extracted.
9910 2014-02-20 Tom Tromey <tromey@redhat.com>
9912 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9913 (ada_varobj_ops): Mark "extern".
9915 2014-02-20 Tom Tromey <tromey@redhat.com>
9917 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9919 2014-02-20 Doug Evans <xdje42@gmail.com>
9921 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9922 All callers updated.
9923 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9924 All callers updated.
9925 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9926 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9928 2014-02-20 lin zuojian <manjian2006@gmail.com>
9929 Joel Brobecker <brobecker@adacore.com>
9930 Doug Evans <xdje42@gmail.com>
9933 * dwarf2read.c (struct die_info): New member in_process.
9934 (reset_die_in_process): New function.
9935 (process_die): Set it at the start, reset when returning.
9936 (inherit_abstract_dies): Only call process_die if origin_child_die
9937 not already being processed.
9939 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9941 * windows-nat.c (handle_unload_dll): Add function documentation.
9942 (do_initial_windows_stuff): Add comment explaining why we wait
9943 until after inferior initialization has finished before
9944 processing all DLLs.
9946 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9948 * windows-nat.c (get_module_name): Delete.
9949 (windows_get_exec_module_filename): New function, mostly
9950 inspired from get_module_name.
9951 (windows_pid_to_exec_file): Replace call to get_module_name
9952 by call to windows_get_exec_module_filename.
9954 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9956 * windows-nat.c (handle_load_dll): Rewrite this function's
9957 introductory comment. Remove code using get_module_name
9958 to get the DLL's name.
9960 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9962 * windows-nat.c (get_windows_debug_event): Ignore
9963 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9964 if windows_initialization_done == 0.
9965 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9966 Adjust implementation to always load all DLLs.
9967 (do_initial_windows_stuff): Replace call to
9968 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9970 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9972 * windows-nat.c (_initialize_windows_nat): Deprecate the
9973 "dll-symbols" command. Turn the "add-shared-symbol-files"
9974 and "assf" aliases into commands, and deprecate them as well.
9975 * NEWS: Add entry explaining that "dll-symbols" and its two
9976 aliases are now deprecated.
9978 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9980 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9981 new-line in debug string. Remove trailing spaces.
9983 2014-02-19 Stan Shebs <stan@codesourcery.com>
9985 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9987 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9989 * NEWS: Add entry for the new feature
9990 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9993 2014-02-19 Stan Shebs <stan@codesourcery.com>
9995 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9997 2014-02-19 Pedro Alves <palves@redhat.com>
9999 * common/ptid.h (struct ptid): Mention that process_stratum
10000 targets should prefer ptid.lwp.
10002 2014-02-19 Pedro Alves <palves@redhat.com>
10004 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10005 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10006 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10007 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10008 store remote thread ids rather than ptid.tid.
10009 (_initialize_remote): Adjust.
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target.c (target_get_unwinder): Rewrite.
10014 (target_get_tailcall_unwinder): Rewrite.
10015 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10016 (record_btrace_to_get_tailcall_unwinder): New function.
10017 (init_record_btrace_ops): Update.
10018 * target.h (struct target_ops) <to_get_unwinder,
10019 to_get_tailcall_unwinder>: Now function pointers. Use
10020 TARGET_DEFAULT_RETURN.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10026 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10030 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10032 * target-delegates.c: Rebuild.
10033 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10034 TARGET_DEFAULT_FUNC.
10035 * target.c (default_target_decr_pc_after_break): Rename from
10036 forward_target_decr_pc_after_break. Simplify.
10037 (target_decr_pc_after_break): Rely on delegation.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target.c (update_current_target): Do not INHERIT to_doc or
10042 to_magic. Do not de_fault to_open or to_close.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * gcore.h (objfile_find_memory_regions): Declare.
10047 * gcore.c (objfile_find_memory_regions): No longer static. Add
10049 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10050 * exec.c: Include gcore.h.
10051 (exec_set_find_memory_regions): Remove.
10052 (exec_find_memory_regions): Remove.
10053 (exec_do_find_memory_regions): Remove.
10054 (init_exec_ops): Update.
10055 * defs.h (exec_set_find_memory_regions): Remove.
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10059 * target-delegates.c: Rebuild.
10060 * target.h (struct target_ops) <to_extra_thread_info,
10061 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10062 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10063 not 0, in TARGET_DEFAULT_RETURN.
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target.c (complete_target_initialization): Remove casts. Use
10068 return_zero_has_execution.
10069 (return_zero): Add "ignore" argument.
10070 (return_zero_has_execution): New function.
10071 (init_dummy_target): Remove casts. Use
10072 return_zero_has_execution.
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10076 * target.c (update_current_target): Update comments. Do not
10077 INHERIT to_stratum.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10083 * corelow.c (core_read_description): Delegate when needed.
10084 * remote.c (remote_read_description): Delegate when needed.
10085 * target-delegates.c: Rebuild.
10086 * target.c (target_read_description): Rewrite.
10087 * target.h (struct target_ops) <to_read_description>: Update
10088 comment. Use TARGET_DEFAULT_RETURN.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * target-delegates.c: Rebuild.
10093 * target.c (update_current_target): Don't inherit or default
10095 (find_default_run_target): Check against delegate_can_run.
10096 * target.h (struct target_ops) <to_can_run>: Use
10097 TARGET_DEFAULT_RETURN.
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10101 * target-delegates.c: Rebuild.
10102 * target.c (target_disconnect): Unconditionally delegate.
10103 * target.h (struct target_ops) <to_disconnect>: Use
10104 TARGET_DEFAULT_NORETURN.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * record.c (record_stop): Unconditionally delegate.
10109 * target-delegates.c: Rebuild.
10110 * target.c (target_stop_recording): Unconditionally delegate.
10111 * target.h (struct target_ops) <to_stop_recording>: Use
10112 TARGET_DEFAULT_IGNORE.
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target-delegates.c: Rebuild.
10117 * target.c (target_enable_btrace): Unconditionally delegate.
10118 * target.h (struct target_ops) <to_enable_btrace>: Use
10119 TARGET_DEFAULT_NORETURN.
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10123 * target-delegates.c: Rebuild.
10124 * target.c (target_read_btrace): Unconditionally delegate.
10125 * target.h (struct target_ops) <to_read_btrace>: Use
10126 TARGET_DEFAULT_NORETURN.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target-delegates.c: Rebuild.
10131 * target.c (target_teardown_btrace): Unconditionally delegate.
10132 * target.h (struct target_ops) <to_teardown_btrace>: Use
10133 TARGET_DEFAULT_NORETURN.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (target_disable_btrace): Unconditionally delegate.
10139 * target.h (struct target_ops) <to_disable_btrace>: Use
10140 TARGET_DEFAULT_NORETURN.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (default_search_memory): New function.
10146 (simple_search_memory): Update comment.
10147 (target_search_memory): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_search_memory>: Use
10149 TARGET_DEFAULT_FUNC.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * auxv.c (default_auxv_parse): No longer static.
10154 (target_auxv_parse): Unconditionally delegate.
10155 * auxv.h (default_auxv_parse): Declare.
10156 * target-delegates.c: Rebuild.
10157 * target.c: Include auxv.h.
10158 * target.h (struct target_ops) <to_auxv_parse>: Use
10159 TARGET_DEFAULT_FUNC.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target-delegates.c: Rebuild.
10164 * target.c (target_memory_map): Unconditionally delegate.
10165 * target.h (struct target_ops) <to_memory_map>: Use
10166 TARGET_DEFAULT_RETURN.
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target-delegates.c: Rebuild.
10171 * target.c (target_thread_alive): Unconditionally delegate.
10172 * target.h (struct target_ops) <to_thread_alive>: Use
10173 TARGET_DEFAULT_RETURN.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_save_record): Unconditionally delegate.
10179 * target.h (struct target_ops) <to_save_record>: Use
10180 TARGET_DEFAULT_NORETURN.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_delete_record): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_delete_record>: Use
10187 TARGET_DEFAULT_NORETURN.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_record_is_replaying): Unconditionally
10194 * target.h (struct target_ops) <to_record_is_replaying>: Use
10195 TARGET_DEFAULT_RETURN.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * target-delegates.c: Rebuild.
10200 * target.c (target_goto_record_begin): Unconditionally delegate.
10201 * target.h (struct target_ops) <to_goto_record_begin>: Use
10202 TARGET_DEFAULT_NORETURN.
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10206 * target-delegates.c: Rebuild.
10207 * target.c (target_goto_record_end): Unconditionally delegate.
10208 * target.h (struct target_ops) <to_goto_record_end>: 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): Unconditionally delegate.
10215 * target.h (struct target_ops) <to_goto_record>: Use
10216 TARGET_DEFAULT_NORETURN.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target-delegates.c: Rebuild.
10221 * target.c (target_insn_history): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_insn_history>: 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_from): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_insn_history_from>: 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_range): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_insn_history_range>: Use
10237 TARGET_DEFAULT_NORETURN.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_call_history): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_call_history>: 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_from): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_call_history_from>: 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_range): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_call_history_range>: Use
10258 TARGET_DEFAULT_NORETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_verify_memory): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_verify_memory>: Use
10265 TARGET_DEFAULT_NORETURN.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target-delegates.c: Rebuild.
10270 * target.c (target_core_of_thread): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_core_of_thread>: Use
10272 TARGET_DEFAULT_RETURN.
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target-delegates.c: Rebuild.
10277 * target.c (target_flash_done): Unconditionally delegate.
10278 * target.h (struct target_ops) <to_flash_done>: Use
10279 TARGET_DEFAULT_NORETURN.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_flash_erase): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_flash_erase>: Use
10286 TARGET_DEFAULT_NORETURN.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_get_section_table): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_get_section_table>: Use
10293 TARGET_DEFAULT_RETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_pid_to_str): Unconditionally delegate.
10299 (init_dummy_target): Don't initialize to_pid_to_str.
10300 (default_pid_to_str): Rename from dummy_pid_to_str.
10301 * target.h (struct target_ops) <to_pid_to_str>: Use
10302 TARGET_DEFAULT_FUNC.
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target-delegates.c: Rebuild.
10307 * target.c (target_find_new_threads): Unconditionally delegate.
10308 * target.h (struct target_ops) <to_find_new_threads>: Use
10309 TARGET_DEFAULT_RETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (target_program_signals): Unconditionally delegate.
10315 * target.h (struct target_ops) <to_program_signals>: Use
10316 TARGET_DEFAULT_IGNORE.
10318 2014-02-19 Tom Tromey <tromey@redhat.com>
10320 * target-delegates.c: Rebuild.
10321 * target.c (target_pass_signals): Unconditionally delegate.
10322 * target.h (struct target_ops) <to_pass_signals>: Use
10323 TARGET_DEFAULT_IGNORE.
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10327 * target-delegates.c: Rebuild.
10328 * target.c (default_mourn_inferior): New function.
10329 (target_mourn_inferior): Unconditionally delegate.
10330 * target.h (struct target_ops) <to_mourn_inferior>: Use
10331 TARGET_DEFAULT_FUNC.
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10335 * target-delegates.c: Rebuild.
10336 * target.c (default_follow_fork): New function.
10337 (target_follow_fork): Unconditionally delegate.
10338 * target.h (struct target_ops) <to_follow_fork>: Use
10339 TARGET_DEFAULT_FUNC.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_kill): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_kill>: Use
10346 TARGET_DEFAULT_NORETURN.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (target_masked_watch_num_registers): Unconditionally
10353 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10354 Use TARGET_DEFAULT_RETURN.
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target-delegates.c: Rebuild.
10359 * target.c (target_remove_mask_watchpoint): Unconditionally
10361 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10362 TARGET_DEFAULT_RETURN.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (target_insert_mask_watchpoint): Unconditionally
10369 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10370 TARGET_DEFAULT_RETURN.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target-delegates.c: Rebuild.
10375 * target.c (target_ranged_break_num_registers): Unconditionally
10377 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10378 Use TARGET_DEFAULT_RETURN.
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target-delegates.c: Rebuild.
10383 * target.c (target_fetch_registers): Unconditionally delegate.
10384 * target.h (struct target_ops) <to_fetch_registers>: Use
10385 TARGET_DEFAULT_NORETURN.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target-delegates.c: Rebuild.
10390 * target.c (update_current_target): Don't inherit or default
10392 * target.h (struct target_ops) <to_stop>: Use
10393 TARGET_DEFAULT_IGNORE.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: Rebuild.
10398 * target.c (update_current_target): Don't inherit or default
10399 to_can_run_breakpoint_commands.
10400 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10401 Use TARGET_DEFAULT_RETURN.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target-delegates.c: Rebuild.
10406 * target.c (update_current_target): Don't inherit or default
10407 to_supports_evaluation_of_breakpoint_conditions.
10408 * target.h (struct target_ops)
10409 <to_supports_evaluation_of_breakpoint_conditions>: Use
10410 TARGET_DEFAULT_RETURN.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target-delegates.c: Rebuild.
10415 * target.c (update_current_target): Don't inherit or default
10416 to_augmented_libraries_svr4_read.
10417 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10418 Use TARGET_DEFAULT_RETURN.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target-delegates.c: Rebuild.
10423 * target.c (update_current_target): Don't inherit or default
10425 * target.h (struct target_ops) <to_can_use_agent>: Use
10426 TARGET_DEFAULT_RETURN.
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10430 * target-delegates.c: Rebuild.
10431 * target.c (update_current_target): Don't inherit or default
10433 * target.h (struct target_ops) <to_use_agent>: Use
10434 TARGET_DEFAULT_NORETURN.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10440 to_traceframe_info.
10441 (return_null): Remove.
10442 * target.h (struct target_ops) <to_traceframe_info>: Use
10443 TARGET_DEFAULT_RETURN.
10445 2014-02-19 Tom Tromey <tromey@redhat.com>
10447 * target-delegates.c: Rebuild.
10448 * target.c (update_current_target): Don't inherit or default
10449 to_static_tracepoint_markers_by_strid.
10450 * target.h (struct target_ops)
10451 <to_static_tracepoint_markers_by_strid>: Use
10452 TARGET_DEFAULT_NORETURN.
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10456 * target-delegates.c: Rebuild.
10457 * target.c (update_current_target): Don't inherit or default
10458 to_static_tracepoint_marker_at.
10459 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10460 Use TARGET_DEFAULT_RETURN.
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10464 * target-delegates.c: Rebuild.
10465 * target.c (update_current_target): Don't inherit or default
10466 to_set_permissions.
10467 * target.h (struct target_ops) <to_set_permissions>: Use
10468 TARGET_DEFAULT_IGNORE.
10470 2014-02-19 Tom Tromey <tromey@redhat.com>
10472 * target-delegates.c: Rebuild.
10473 * target.c (update_current_target): Don't inherit or default
10474 to_get_tib_address.
10475 * target.h (struct target_ops) <to_get_tib_address>: Use
10476 TARGET_DEFAULT_NORETURN.
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10480 * target-delegates.c: Rebuild.
10481 * target.c (update_current_target): Don't inherit or default
10482 to_set_trace_notes.
10483 * target.h (struct target_ops) <to_set_trace_notes>: Use
10484 TARGET_DEFAULT_RETURN.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target-delegates.c: Rebuild.
10489 * target.c (update_current_target): Don't initialize
10490 to_set_trace_buffer_size.
10491 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10492 TARGET_DEFAULT_IGNORE.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10498 to_set_circular_trace_buffer.
10499 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10500 TARGET_DEFAULT_IGNORE.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10506 to_set_disconnected_tracing.
10507 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10508 TARGET_DEFAULT_IGNORE.
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10512 * target-delegates.c: Rebuild.
10513 * target.c (update_current_target): Don't inherit or default
10514 to_get_min_fast_tracepoint_insn_len.
10515 (return_minus_one): Remove.
10516 * target.h (struct target_ops)
10517 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_get_raw_trace_data.
10524 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10525 TARGET_DEFAULT_NORETURN.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_upload_trace_state_variables.
10532 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10533 Use TARGET_DEFAULT_RETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't inherit or default
10539 to_upload_tracepoints.
10540 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10541 TARGET_DEFAULT_RETURN.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_save_trace_data.
10548 * target.h (struct target_ops) <to_save_trace_data>: Use
10549 TARGET_DEFAULT_NORETURN.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_get_trace_state_variable_value.
10556 * target.h (struct target_ops)
10557 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10564 * target.h (struct target_ops): 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) <to_trace_stop>: Use
10572 TARGET_DEFAULT_NORETURN.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_get_tracepoint_status.
10579 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10580 TARGET_DEFAULT_NORETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_get_trace_status.
10587 * target.h (struct target_ops) <to_get_trace_status>: Use
10588 TARGET_DEFAULT_RETURN.
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't inherit or default
10595 * target.h (struct target_ops) <to_trace_start>: Use
10596 TARGET_DEFAULT_NORETURN.
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10600 * target-delegates.c: Rebuild.
10601 * target.c (update_current_target): Don't inherit or default
10602 to_trace_set_readonly_regions.
10603 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10604 Use TARGET_DEFAULT_NORETURN.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target-delegates.c: Rebuild.
10609 * target.c (update_current_target): Don't inherit or default
10610 to_disable_tracepoint.
10611 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10612 TARGET_DEFAULT_NORETURN.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target-delegates.c: Rebuild.
10617 * target.c (update_current_target): Don't inherit or default
10618 to_enable_tracepoint.
10619 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10620 TARGET_DEFAULT_NORETURN.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10626 to_download_trace_state_variable.
10627 * target.h (struct target_ops) <to_download_trace_state_variable>:
10628 Use TARGET_DEFAULT_NORETURN.
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_can_download_tracepoint.
10635 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10636 TARGET_DEFAULT_RETURN.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_download_tracepoint.
10643 * target.h (struct target_ops) <to_download_tracepoint>: Use
10644 TARGET_DEFAULT_NORETURN.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10651 * target.h (struct target_ops) <to_trace_init>: Use
10652 TARGET_DEFAULT_RETURN.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10658 to_supports_string_tracing.
10659 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10660 TARGET_DEFAULT_RETURN.
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10664 * target-delegates.c: Rebuild.
10665 * target.c (update_current_target): Don't inherit or default
10666 to_supports_enable_disable_tracepoint.
10667 * target.h (struct target_ops)
10668 <to_supports_enable_disable_tracepoint>: Use
10669 TARGET_DEFAULT_RETURN.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target-delegates.c: Rebuild.
10674 * target.c (update_current_target): Don't inherit or default
10675 to_supports_multi_process.
10676 * target.h (struct target_ops) <to_supports_multi_process>: Use
10677 TARGET_DEFAULT_RETURN.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10683 to_get_ada_task_ptid.
10684 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10685 TARGET_DEFAULT_FUNC.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target-delegates.c: Rebuild.
10690 * target.c (update_current_target): Don't inherit or default
10691 to_thread_architecture.
10692 * target.h (struct target_ops) <to_thread_architecture>: Use
10693 TARGET_DEFAULT_FUNC.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.c (update_current_target): Don't inherit or default
10699 to_execution_direction.
10700 * target.h (struct target_ops) <to_execution_direction>: Use
10701 TARGET_DEFAULT_FUNC.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target-delegates.c: Rebuild.
10706 * target.c (update_current_target): Don't inherit or default
10707 to_can_execute_reverse.
10708 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10709 TARGET_DEFAULT_RETURN.
10710 (target_can_execute_reverse): Unconditionally delegate.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10717 (dummy_goto_bookmark): Remove.
10718 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10719 * target.h (struct target_ops) <to_goto_bookmark>: Use
10720 TARGET_DEFAULT_NORETURN.
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10724 * target-delegates.c: Rebuild.
10725 * target.c (update_current_target): Don't inherit or default
10727 (dummy_get_bookmark): Remove.
10728 (init_dummy_target): Don't inherit or default to_get_bookmark.
10729 * target.h (struct target_ops) <to_get_bookmark>: Use
10730 TARGET_DEFAULT_NORETURN
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target-delegates.c: Rebuild.
10735 * target.c (update_current_target): Don't inherit or default
10736 to_make_corefile_notes.
10737 (init_dummy_target): Don't initialize to_make_corefile_notes.
10738 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10739 TARGET_DEFAULT_FUNC.
10741 2014-02-19 Tom Tromey <tromey@redhat.com>
10743 * target-delegates.c: Rebuild.
10744 * target.c (update_current_target): Don't inherit or default
10745 to_find_memory_regions.
10746 (init_dummy_target): Don't initialize to_find_memory_regions.
10747 * target.h (struct target_ops) <to_find_memory_regions>: Use
10748 TARGET_DEFAULT_FUNC.
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10755 * target.h (struct target_ops) <to_log_command>: Use
10756 TARGET_DEFAULT_IGNORE.
10757 (target_log_command): Unconditionally delegate.
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10761 * target-delegates.c: Rebuild.
10762 * target.c (update_current_target): Don't inherit or default
10763 to_pid_to_exec_file.
10764 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10765 TARGET_DEFAULT_RETURN.
10767 2014-02-19 Tom Tromey <tromey@redhat.com>
10769 * target-delegates.c: Rebuild.
10770 * target.c (update_current_target): Don't inherit or default
10772 (target_thread_name): Unconditionally delegate.
10773 * target.h (struct target_ops) <to_thread_name>: Use
10774 TARGET_DEFAULT_RETURN.
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10778 * target-delegates.c: Rebuild.
10779 * target.c (update_current_target): Don't inherit or default
10780 to_extra_thread_info.
10781 * target.h (struct target_ops) <to_extra_thread_info>: Use
10782 TARGET_DEFAULT_RETURN.
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10786 * target-delegates.c: Rebuild.
10787 * target.c (update_current_target): Don't inherit or default
10789 * target.h (struct target_ops) <to_has_exited>: Use
10790 TARGET_DEFAULT_RETURN..
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target-delegates.c: Rebuild.
10795 * target.c (update_current_target): Don't inherit or default
10796 to_set_syscall_catchpoint.
10797 (return_one): Remove.
10798 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10799 TARGET_DEFAULT_RETURN.
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10803 * target-delegates.c: Rebuild.
10804 * target.c (update_current_target): Don't inherit or default
10805 to_insert_exec_catchpoint.
10806 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10807 TARGET_DEFAULT_RETURN.
10809 2014-01-08 Tom Tromey <tromey@redhat.com>
10811 * target-delegates.c: Rebuild.
10812 * target.c (update_current_target): Don't inherit or default
10813 to_insert_exec_catchpoint.
10814 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10815 TARGET_DEFAULT_RETURN.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (update_current_target): Don't inherit or default
10821 to_remove_vfork_catchpoint.
10822 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10823 TARGET_DEFAULT_RETURN.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target-delegates.c: Rebuild.
10828 * target.c (update_current_target): Don't inherit or default
10829 to_insert_vfork_catchpoint.
10830 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10831 TARGET_DEFAULT_RETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10837 to_remove_fork_catchpoint.
10838 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10839 TARGET_DEFAULT_RETURN.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10845 to_insert_fork_catchpoint.
10846 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10847 TARGET_DEFAULT_RETURN.
10849 2014-02-19 Tom Tromey <tromey@redhat.com>
10851 * target-delegates.c: Rebuild.
10852 * target.c (update_current_target): Don't inherit or default
10853 to_post_startup_inferior.
10854 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10855 TARGET_DEFAULT_IGNORE.
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target-delegates.c: Rebuild.
10860 * target.c (update_current_target): Don't inherit or default
10862 * target.h (struct target_ops) <to_load>: Use
10863 TARGET_DEFAULT_NORETURN.
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target-delegates.c: Rebuild.
10868 * target.c (update_current_target): Don't inherit or default
10870 * target.h (struct target_ops) <to_terminal_info>: Use
10871 TARGET_DEFAULT_FUNC.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target-delegates.c: Rebuild.
10876 * target.c (update_current_target): Don't inherit or default
10877 to_terminal_save_ours.
10878 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10879 TARGET_DEFAULT_IGNORE.
10881 2014-02-19 Tom Tromey <tromey@redhat.com>
10883 * target-delegates.c: Rebuild.
10884 * target.c (update_current_target): Don't inherit or default
10886 * target.h (struct target_ops) <to_terminal_ours>: Use
10887 TARGET_DEFAULT_IGNORE.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * target-delegates.c: Rebuild.
10892 * target.c (update_current_target): Don't inherit or default
10893 to_terminal_ours_for_output.
10894 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10895 TARGET_DEFAULT_IGNORE.
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10899 * target-delegates.c: Rebuild.
10900 * target.c (update_current_target): Don't inherit or default
10901 to_terminal_inferior.
10902 * target.h (struct target_ops) <to_terminal_inferior>: Use
10903 TARGET_DEFAULT_IGNORE.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (update_current_target): Don't inherit or default
10910 * target.h (struct target_ops) <to_terminal_init>: Use
10911 TARGET_DEFAULT_IGNORE.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target-delegates.c: Rebuild.
10916 * target.c (update_current_target): Don't inherit or default
10917 to_can_accel_watchpoint_condition.
10918 * target.h (struct target_ops)
10919 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target-delegates.c: Rebuild.
10924 * target.c (update_current_target): Don't inherit or default
10925 to_region_ok_for_hw_watchpoint.
10926 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10927 Use TARGET_DEFAULT_FUNC.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * target-delegates.c: Rebuild.
10932 * target.c (update_current_target): Don't inherit or default
10933 to_watchpoint_addr_within_range.
10934 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10935 Use TARGET_DEFAULT_FUNC.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (update_current_target): Don't inherit or default
10941 to_remove_watchpoint.
10942 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10943 TARGET_DEFAULT_NORETURN.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target-delegates.c: Rebuild.
10948 * target.c (update_current_target): Don't inherit or default
10949 to_insert_watchpoint.
10950 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10951 TARGET_DEFAULT_RETURN.
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target-delegates.c: Rebuild.
10956 * target.c (update_current_target): Don't inherit or default
10957 to_remove_hw_breakpoint.
10958 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10959 TARGET_DEFAULT_RETURN.
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10963 * target-delegates.c: Rebuild.
10964 * target.c (update_current_target): Don't inherit or default
10965 to_insert_hw_breakpoint.
10966 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10967 TARGET_DEFAULT_RETURN.
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target-delegates.c: Rebuild.
10972 * target.c (update_current_target): Don't inherit or default
10973 to_can_use_hw_breakpoint.
10974 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10975 TARGET_DEFAULT_RETURN.
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * target-delegates.c: Rebuild.
10980 * target.c (update_current_target): Don't inherit or default
10982 * target.h (struct target_ops) <to_files_info>: Use
10983 TARGET_DEFAULT_IGNORE.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target-delegates.c: Rebuild.
10988 * target.c (update_current_target): Don't inherit or default
10990 * target.h (struct target_ops) <to_store>: Use
10991 TARGET_DEFAULT_NORETURN.
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10995 * target-delegates.c: Rebuild.
10996 * target.c (update_current_target): Don't inherit or default
10998 * target.h (struct target_ops) <to_post_attach>: Use
10999 TARGET_DEFAULT_IGNORE.
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11003 * target-delegates.c: Rebuild.
11004 * target.c (update_current_target): Don't inherit or default
11006 (default_rcmd): New function.
11007 (do_monitor_command): Unconditionally delegate.
11008 * target.h (struct target_ops) <to_rmcd>: Use
11009 TARGET_DEFAULT_FUNC.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (init_dummy_target): Don't initialize to_attach.
11015 (target_attach): Unconditionally delegate.
11016 * target.h (struct target_ops) <to_attach>: Use
11017 TARGET_DEFAULT_FUNC.
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11021 * target-delegates.c: Rebuild.
11022 * target.c (target_detach): Unconditionally delegate.
11023 (init_dummy_target): Don't initialize to_detach.
11024 * target.h (struct target_ops) <to_detach>: Use
11025 TARGET_DEFAULT_IGNORE.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11031 (target_augmented_libraries_svr4_read): Add argument.
11032 * target.c (update_current_target): Update.
11033 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target.h (struct target_ops) <to_call_history_range>: Add
11040 * target.c (target_call_history_range): Add argument.
11041 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11043 (record_btrace_call_history_from): Update.
11045 2014-02-19 Tom Tromey <tromey@redhat.com>
11047 * target.h (struct target_ops) <to_call_history_from>: Add
11049 * target.c (target_call_history_from): Add argument.
11050 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11055 * target.h (struct target_ops) <to_call_history>: Add argument.
11056 * target.c (target_call_history): Add argument.
11057 * record-btrace.c (record_btrace_call_history): Add 'self'
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target.h (struct target_ops) <to_insn_history_range>: Add
11064 * target.c (target_insn_history_range): Add argument.
11065 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11067 (record_btrace_insn_history_from): Update.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target.h (struct target_ops) <to_insn_history_from>: Add
11073 * target.c (target_insn_history_from): Add argument.
11074 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target.h (struct target_ops) <to_insn_history>: Add argument.
11080 * target.c (target_insn_history): Add argument.
11081 * record-btrace.c (record_btrace_insn_history): Add 'self'
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target.h (struct target_ops) <to_goto_record>: Add argument.
11087 * target.c (target_goto_record): Add argument.
11088 * record-full.c (record_full_goto): Add 'self' argument.
11089 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11094 * target.c (target_goto_record_end): Add argument.
11095 * record-full.c (record_full_goto_end): Add 'self' argument.
11096 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target.h (struct target_ops) <to_goto_record_begin>: Add
11102 * target.c (target_goto_record_begin): Add argument.
11103 * record-full.c (record_full_goto_begin): Add 'self' argument.
11104 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * target.h (struct target_ops) <to_record_is_replaying>: Add
11111 * target.c (target_record_is_replaying): Add argument.
11112 * record-full.c (record_full_is_replaying): Add 'self' argument.
11113 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11115 (record_btrace_xfer_partial, record_btrace_store_registers)
11116 (record_btrace_prepare_to_store, record_btrace_resume)
11117 (record_btrace_wait, record_btrace_decr_pc_after_break)
11118 (record_btrace_find_new_threads, record_btrace_thread_alive):
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * target.h (struct target_ops) <to_delete_record>: Add argument.
11124 * target.c (target_delete_record): Add argument.
11125 * record-full.c (record_full_delete): Add 'self' argument.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_save_record>: Add argument.
11130 * target.c (target_save_record): Add argument.
11131 * record-full.c (record_full_save): Add 'self' argument.
11132 (record_full_save): Add 'self' argument.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_info_record>: Add argument.
11137 * target.c (target_info_record): Add argument.
11138 * record.c (info_record_command): Add argument.
11139 * record-full.c (record_full_info): Add 'self' argument.
11140 * record-btrace.c (record_btrace_info): Add 'self' argument.
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11144 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11145 * target.c (target_stop_recording): Add argument.
11146 * record.c (record_stop): Add argument.
11147 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11153 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11154 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11156 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11157 (_initialize_amd64_linux_nat): Use it.
11158 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11159 (_initialize_i386_linux_nat): Use it.
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11163 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11164 * target.c (target_teardown_btrace): Add argument.
11165 * remote.c (remote_teardown_btrace): Add 'self' argument.
11166 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11168 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11174 * target.c (target_disable_btrace): Add argument.
11175 * remote.c (remote_disable_btrace): Add 'self' argument.
11176 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11178 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11184 * target.c (target_enable_btrace): Add argument.
11185 * remote.c (remote_enable_btrace): Add 'self' argument.
11186 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11188 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11191 2014-02-19 Tom Tromey <tromey@redhat.com>
11193 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11194 (target_can_use_agent): Add argument.
11195 * target.c (update_current_target): Update.
11196 * remote.c (remote_can_use_agent): Add 'self' argument.
11197 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11201 * target.h (struct target_ops) <to_use_agent>: Add argument.
11202 (target_use_agent): Add argument.
11203 * target.c (update_current_target): Update.
11204 * remote.c (remote_use_agent): Add 'self' argument.
11205 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11207 2014-02-19 Tom Tromey <tromey@redhat.com>
11209 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11210 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11211 (target_traceframe_info): Add argument.
11212 * target.c (update_current_target): Update.
11213 * remote.c (remote_traceframe_info): Add 'self' argument.
11214 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (target_static_tracepoint_markers_by_strid): Add
11220 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11222 * target.c (update_current_target): Update.
11223 * remote.c (struct target_ops)
11224 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11225 * linux-nat.c (struct target_ops)
11226 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11228 2014-02-19 Tom Tromey <tromey@redhat.com>
11230 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11232 (target_static_tracepoint_marker_at): Add argument.
11233 * target.c (update_current_target): Update.
11234 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11240 (target_set_permissions): Add argument.
11241 * target.c (update_current_target): Update.
11242 * remote.c (remote_set_permissions): Add 'self' argument.
11243 (remote_start_remote): Update.
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11248 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11249 (target_get_tib_address): Add argument.
11250 * target.c (update_current_target): Update.
11251 * remote.c (remote_get_tib_address): Add 'self' argument.
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11256 (target_set_trace_notes): Add argument.
11257 * target.c (update_current_target): Update.
11258 * remote.c (remote_set_trace_notes): Add 'self' argument.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11264 (target_set_trace_buffer_size): Add argument.
11265 * target.c (update_current_target): Update.
11266 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11272 (target_set_circular_trace_buffer): Add argument.
11273 * target.c (update_current_target): Update.
11274 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11281 (target_set_disconnected_tracing): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target.h (struct target_ops)
11288 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11289 (target_get_min_fast_tracepoint_insn_len): Add argument.
11290 * target.c (update_current_target): Update.
11291 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11298 (target_get_raw_trace_data): Add argument.
11299 * target.c (update_current_target): Update.
11300 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11306 (target_upload_trace_state_variables): Add argument.
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_upload_trace_state_variables): Add 'self'
11310 (remote_start_remote): Update.
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11316 (target_upload_tracepoints): Add argument.
11317 * target.c (update_current_target): Update.
11318 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11319 (remote_start_remote): Update.
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11323 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11324 (target_save_trace_data): Add argument.
11325 * target.c (update_current_target): Update.
11326 * remote.c (remote_save_trace_data): Add 'self' argument.
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11332 * target.h (struct target_ops)
11333 <to_get_trace_state_variable_value>: Add argument.
11334 (target_get_trace_state_variable_value): Add argument.
11335 * target.c (update_current_target): Update.
11336 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11338 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11342 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11343 * target.h (struct target_ops) <to_trace_find>: Add argument.
11344 (target_trace_find): Add argument.
11345 * target.c (update_current_target): Update.
11346 * remote.c (remote_trace_find): Add 'self' argument.
11347 * ctf.c (ctf_trace_find): Add 'self' argument.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11352 (target_trace_stop): Add argument.
11353 * target.c (update_current_target): Update.
11354 * remote.c (remote_trace_stop): Add 'self' argument.
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11358 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11359 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11361 (target_get_tracepoint_status): Add argument.
11362 * target.c (update_current_target): Update.
11363 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11368 * target.h (struct target_ops) <to_get_trace_status>: Add
11370 (target_get_trace_status): Add argument.
11371 * target.c (update_current_target): Update.
11372 * remote.c (remote_get_trace_status): Add 'self' argument.
11373 (remote_start_remote, remote_can_download_tracepoint): Update.
11374 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * target.h (struct target_ops) <to_trace_start>: Add argument.
11379 (target_trace_start): Add argument.
11380 * target.c (update_current_target): Update.
11381 * remote.c (remote_trace_start): Add 'self' argument.
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11387 (target_trace_set_readonly_regions): Add argument.
11388 * target.c (update_current_target): Update.
11389 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11396 (target_disable_tracepoint): Add argument.
11397 * target.c (update_current_target): Update.
11398 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11404 (target_enable_tracepoint): Add argument.
11405 * target.c (update_current_target): Update.
11406 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11408 2014-02-19 Tom Tromey <tromey@redhat.com>
11410 * target.h (struct target_ops) <to_download_trace_state_variable>:
11412 (target_download_trace_state_variable): Add argument.
11413 * target.c (update_current_target): Update.
11414 * remote.c (remote_download_trace_state_variable): Add 'self'
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11419 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11421 (target_can_download_tracepoint): Add argument.
11422 * target.c (update_current_target): Update.
11423 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target.h (struct target_ops) <to_download_tracepoint>: Add
11429 (target_download_tracepoint): Add argument.
11430 * target.c (update_current_target): Update.
11431 * remote.c (remote_download_tracepoint): Add 'self' argument.
11433 2014-02-19 Tom Tromey <tromey@redhat.com>
11435 * target.h (struct target_ops) <to_trace_init>: Add argument.
11436 (target_trace_init): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_trace_init): Add 'self' argument.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11443 * target.c (target_fileio_readlink): Add argument.
11444 * remote.c (remote_hostio_readlink): Add 'self' argument.
11445 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11450 * target.c (target_fileio_unlink): Add argument.
11451 * remote.c (remote_hostio_unlink): Add 'self' argument.
11452 (remote_file_delete): Update.
11453 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11458 * target.c (target_fileio_close): Add argument.
11459 * remote.c (remote_hostio_close): Add 'self' argument.
11460 (remote_hostio_close_cleanup): Update.
11461 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11463 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11467 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11468 * target.c (target_fileio_pread): Add argument.
11469 * remote.c (remote_hostio_pread): Add 'self' argument.
11470 (remote_bfd_iovec_pread, remote_file_get): Update.
11471 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11475 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11476 * target.c (target_fileio_pwrite): Add argument.
11477 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11478 (remote_file_put): Update.
11479 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11483 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11484 * target.c (target_fileio_open): Add argument.
11485 * remote.c (remote_hostio_open): Add 'self' argument.
11486 (remote_bfd_iovec_open): Add 'self' argument.
11487 (remote_file_put): Add 'self' argument.
11488 (remote_file_get): Add 'self' argument.
11489 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11495 (target_can_run_breakpoint_commands): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11499 (remote_insert_breakpoint): Add 'self' argument.
11500 (remote_insert_hw_breakpoint): Add 'self' argument.
11501 (remote_can_run_breakpoint_commands): Add 'self' argument.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target.h (struct target_ops)
11506 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11507 (target_supports_evaluation_of_breakpoint_conditions): Add
11509 * target.c (update_current_target): Update.
11510 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11512 (remote_insert_breakpoint): Add 'self' argument.
11513 (remote_insert_hw_breakpoint): Add 'self' argument.
11514 (remote_supports_cond_breakpoints): Add 'self' argument.
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11520 (target_supports_string_tracing): Add argument.
11521 * target.c (update_current_target): Update.
11522 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target.h (struct target_ops)
11527 <to_supports_disable_randomization>: Add argument.
11528 * target.c (find_default_supports_disable_randomization): Add
11530 (target_supports_disable_randomization): Add argument.
11531 (find_default_supports_disable_randomization): Add 'self'
11533 * remote.c (extended_remote_supports_disable_randomization): Add
11535 (remote_supports_disable_randomization): Add 'self' argument.
11536 (extended_remote_create_inferior): Update.
11537 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11542 * target.h (struct target_ops)
11543 <to_supports_enable_disable_tracepoint>: Add argument.
11544 (target_supports_enable_disable_tracepoint): Add argument.
11545 * target.c (update_current_target): Update.
11546 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11549 2014-02-19 Tom Tromey <tromey@redhat.com>
11551 * target.h (struct target_ops) <to_supports_multi_process>: Add
11553 (target_supports_multi_process): Add argument.
11554 * target.c (update_current_target): Update.
11555 * remote.c (remote_supports_multi_process): Add 'self' argument.
11556 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11558 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * target.h (struct target_ops) <to_execution_direction>: Add
11565 (target_execution_direction): Add argument.
11566 * target.c (default_execution_direction): Add 'self' argument.
11567 * record-full.c (record_full_execution_direction): Add 'self'
11570 2014-02-19 Tom Tromey <tromey@redhat.com>
11572 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11574 (target_can_execute_reverse): Add argument.
11575 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11576 * record-full.c (record_full_can_execute_reverse): Add 'self'
11578 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11581 2014-02-19 Tom Tromey <tromey@redhat.com>
11583 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11584 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11586 (target_get_ada_task_ptid): Add argument.
11587 * target.c (update_current_target): Update.
11588 (default_get_ada_task_ptid): Add 'self' argument.
11589 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11590 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11591 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11593 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11595 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11597 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11599 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11600 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11606 (target_goto_bookmark): Add argument.
11607 * target.c (dummy_goto_bookmark): Add 'self' argument.
11608 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11613 (target_get_bookmark): Add argument.
11614 * target.c (dummy_get_bookmark): Add 'self' argument.
11615 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11619 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11621 (target_make_corefile_notes): Add argument.
11622 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11623 * procfs.c (procfs_make_note_section): Add 'self' argument.
11624 (procfs_make_note_section): Add 'self' argument.
11625 (procfs_make_note_section): Add 'self' argument.
11626 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11628 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11629 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11630 * exec.c (exec_make_note_section): Add 'self' argument.
11631 (exec_make_note_section): Add 'self' argument.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target.h (struct target_ops) <to_find_memory_regions>: Add
11637 (target_find_memory_regions): Add argument.
11638 * target.c (dummy_find_memory_regions): Add 'self' argument.
11639 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11640 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11641 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11642 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11643 * exec. (exec_do_find_memory_regions): New global.
11644 (exec_set_find_memory_regions): Rewrite.
11645 (exec_find_memory_regions): New function.
11646 (init_exec_ops): Use exec_find_memory_regions.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * target.h (struct target_ops) <to_supports_non_stop>: Add
11652 * target.c (find_default_supports_non_stop): Add argument.
11653 (target_supports_non_stop): Add argument.
11654 (find_default_supports_non_stop): Add 'self' argument.
11655 * remote.c (remote_supports_non_stop): Add 'self' argument.
11656 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11660 * target.h (struct target_ops) <to_log_command>: Add argument.
11661 (target_log_command): Add argument.
11662 * serial.h (serial_log_command): Add 'self' argument.
11663 * serial.c (serial_log_command): Add 'self' argument.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11668 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11670 (target_pid_to_exec_file): Add argument.
11671 * target.c (debug_to_pid_to_exec_file): Add argument.
11672 (update_current_target): Update.
11673 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11674 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11675 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11676 (linux_handle_extended_wait): Update.
11677 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11678 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11679 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11680 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_rcmd>: Add argument.
11685 (target_rcmd): Add argument.
11686 * target.c (debug_to_rcmd): Add argument.
11687 (update_current_target, do_monitor_command): Update.
11688 * remote.c (remote_rcmd): Add 'self' argument.
11689 * monitor.c (monitor_rcmd): Add 'self' argument.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * windows-nat.c (windows_stop): Add 'self' argument.
11694 * target.h (struct target_ops) <to_stop>: Add argument.
11695 * target.c (target_stop): Add argument.
11696 (debug_to_stop): Add argument.
11697 (update_current_target): Update.
11698 * remote.c (remote_stop): Add 'self' argument.
11699 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11700 (gdbsim_cntrl_c): Update.
11701 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11702 * procfs.c (procfs_stop): Add 'self' argument.
11703 * nto-procfs.c (procfs_stop): Add 'self' argument.
11704 * monitor.c (monitor_stop): Add 'self' argument.
11705 (monitor_open): Update.
11706 * linux-nat.c (linux_nat_stop): Add argument.
11707 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11708 * gnu-nat.c (gnu_stop): Add 'self' argument.
11709 * darwin-nat.c (darwin_stop): Add 'self' argument.
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11713 * target.h (struct target_ops) <to_thread_name>: Add argument.
11714 * target.c (target_thread_name): Add argument.
11715 (update_current_target): Update.
11716 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target.h (struct target_ops) <to_extra_thread_info>: Add
11722 (target_extra_thread_info): Add argument.
11723 * target.c (update_current_target): Update.
11724 * remote.c (remote_threads_extra_info): Add 'self' argument.
11725 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11727 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11728 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11729 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11731 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11733 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11735 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11738 2014-02-19 Tom Tromey <tromey@redhat.com>
11740 * target.h (struct target_ops) <to_program_signals>: Add argument.
11741 * target.c (target_program_signals): Add argument.
11742 * remote.c (remote_program_signals): Add 'self' argument.
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11747 * target.c (target_pass_signals): Add argument.
11748 * remote.c (remote_pass_signals): Add 'self' argument.
11749 (remote_start_remote): Update.
11750 * procfs.c (procfs_pass_signals): Add 'self' argument.
11751 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11752 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11753 (linux_nat_create_inferior, linux_nat_attach): Update.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * windows-nat.c (windows_can_run): Add 'self' argument.
11758 * target.h (struct target_ops) <to_can_run>: Add argument.
11759 (target_can_run): Add argument.
11760 * target.c (debug_to_can_run): Add argument.
11761 (update_current_target): Update.
11762 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11763 * inf-child.c (inf_child_can_run): Add 'self' argument.
11764 * go32-nat.c (go32_can_run): Add 'self' argument.
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11768 * target.h (struct target_ops) <to_has_exited>: Add argument.
11769 (target_has_exited): Add argument.
11770 * target.c (debug_to_has_exited): Add argument.
11771 (update_current_target): Update.
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11775 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11777 (target_set_syscall_catchpoint): Add argument.
11778 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11780 * target.c (update_current_target): Update.
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11786 (target_remove_exec_catchpoint): Add argument.
11787 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11788 (update_current_target): Update.
11789 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11796 (target_insert_exec_catchpoint): Add argument.
11797 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11798 (update_current_target): Update.
11799 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11806 (target_remove_vfork_catchpoint): Add argument.
11807 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11808 (update_current_target): Update.
11809 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11816 (target_insert_vfork_catchpoint): Add argument.
11817 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11818 (update_current_target): Update.
11819 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11826 (target_remove_fork_catchpoint): Add argument.
11827 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11828 (update_current_target): Update.
11829 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11834 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11836 (target_insert_fork_catchpoint): Add argument.
11837 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11838 (update_current_target): Update.
11839 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11846 (target_post_startup_inferior): Add argument.
11847 * target.c (debug_to_post_startup_inferior): Add argument.
11848 (update_current_target): Update.
11849 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11851 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11853 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11855 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11857 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11859 (super_post_startup_inferior): Likewise.
11860 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11862 (super_post_startup_inferior): Likewise.
11863 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11864 Add 'self' argument.
11865 (super_post_startup_inferior): Likewise.
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * target.h (struct target_ops) <to_load>: Add argument.
11870 * target.c (target_load): Add argument.
11871 (debug_to_load): Add argument.
11872 (update_current_target): Update.
11873 * remote.c (remote_load): Add 'self' argument.
11874 * remote-sim.c (gdbsim_load): Add 'self' argument.
11875 * remote-mips.c (mips_load): Add 'self' argument.
11876 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11877 * monitor.c (monitor_load): Add 'self' argument.
11878 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11882 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11883 (target_terminal_info): Add argument.
11884 * target.c (debug_to_terminal_info): Add argument.
11885 (default_terminal_info): Likewise.
11886 * inflow.c (child_terminal_info): Add 'self' argument.
11887 * inferior.h (child_terminal_info): Add 'self' argument.
11888 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11894 (target_terminal_save_ours): Add argument.
11895 * target.c (debug_to_terminal_save_ours): Add argument.
11896 (update_current_target): Update.
11897 * inflow.c (terminal_save_ours): Add 'self' argument.
11898 * inferior.h (terminal_save_ours): Add 'self' argument.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11903 (target_terminal_ours): Add argument.
11904 * target.c (debug_to_terminal_ours): Add argument.
11905 (update_current_target): Update.
11906 * remote.c (remote_terminal_ours): Add 'self' argument.
11907 (remote_close): Update.
11908 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11909 * inflow.c (terminal_ours): Add 'self' argument.
11910 * inferior.h (terminal_ours): Add 'self' argument.
11911 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11913 2014-02-19 Pedro Alves <palves@redhat.com>
11914 Tom Tromey <tromey@redhat.com>
11916 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11918 (target_terminal_ours_for_output): Add argument.
11919 * target.c (debug_to_terminal_ours_for_output): Add argument.
11920 (update_current_target): Update.
11921 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11922 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11923 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11925 2014-02-19 Tom Tromey <tromey@redhat.com>
11927 * target.h (struct target_ops) <to_terminal_inferior>: Add
11929 * target.c (target_terminal_inferior): Add argument.
11930 (update_current_target): Update.
11931 * remote.c (remote_terminal_inferior): Add 'self' argument.
11932 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11933 * inflow.c (terminal_inferior): Add 'self' argument.
11934 * inferior.h (terminal_inferior): Add 'self' argument.
11935 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11936 (go32_terminal_inferior): Add 'self' argument.
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11940 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11941 (target_terminal_init): Add argument.
11942 * target.c (debug_to_terminal_init): Add argument.
11943 (update_current_target): Update.
11944 * inflow.c (terminal_init_inferior): Add 'self' argument.
11945 * inferior.h (terminal_init_inferior): Add 'self' argument.
11946 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11947 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target.h (struct target_ops)
11952 <to_can_accel_watchpoint_condition>: Add argument.
11953 (target_can_accel_watchpoint_condition): Add argument.
11954 * target.c (debug_to_can_accel_watchpoint_condition): Add
11956 (update_current_target): Update.
11957 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11964 (target_region_ok_for_hw_watchpoint): Add argument.
11965 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11966 (default_region_ok_for_hw_watchpoint): Add argument.
11967 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11968 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11970 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11972 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11974 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11976 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11978 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11980 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11981 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11983 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11984 Add 'self' argument.
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11990 (target_insert_watchpoint): Add argument.
11991 * target.c (debug_to_insert_watchpoint): Add argument.
11992 (update_current_target): Update.
11993 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11994 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11995 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11996 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11997 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11998 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12000 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12001 (procfs_insert_hw_watchpoint): Add 'self' argument.
12002 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12004 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12006 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12008 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12009 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12011 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12018 (target_remove_watchpoint): Add argument.
12019 * target.c (debug_to_remove_watchpoint): Add argument.
12020 (update_current_target): Update.
12021 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12022 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12023 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12024 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12025 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12026 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12028 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12029 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12031 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12033 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12035 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12036 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12038 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12043 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12045 (target_remove_hw_breakpoint): Add argument.
12046 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12047 (update_current_target): Update.
12048 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12049 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12051 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12052 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12054 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12059 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12061 (target_insert_hw_breakpoint): Add argument.
12062 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12063 (update_current_target): Update.
12064 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12065 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12067 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12068 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12069 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12071 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12076 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12078 (target_can_use_hardware_watchpoint): Add argument.
12079 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12080 (update_current_target): Update.
12081 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12083 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12085 * remote.c (remote_check_watch_resources): Add 'self' argument.
12086 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12087 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12089 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12090 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12092 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12094 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12096 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12098 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12100 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12102 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12103 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12105 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12108 2014-02-19 Tom Tromey <tromey@redhat.com>
12110 * target.h (struct target_ops) <to_post_attach>: Add argument.
12111 (target_post_attach): Add argument.
12112 * target.c (debug_to_post_attach): Add argument.
12113 (update_current_target): Update.
12114 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12115 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12116 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12117 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12118 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12122 * windows-nat.c (windows_close): Add 'self' argument.
12123 * tracepoint.c (tfile_close): Add 'self' argument.
12124 * target.h (struct target_ops) <to_close>: Add argument.
12125 * target.c (target_close): Add argument.
12126 (update_current_target): Update.
12127 * remote.c (remote_close): Add 'self' argument.
12128 * remote-sim.c (gdbsim_close): Add 'self' argument.
12129 * remote-mips.c (mips_close): Add 'self' argument.
12130 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12131 * record-full.c (record_full_close): Add 'self' argument.
12132 * record-btrace.c (record_btrace_close): Add 'self' argument.
12133 * monitor.h (monitor_close): Add 'self' argument.
12134 * monitor.c (monitor_close): Add 'self' argument.
12135 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12136 * linux-nat.c (linux_nat_close): Add argument.
12137 * go32-nat.c (go32_close): Add 'self' argument.
12138 * exec.c (exec_close_1): Add 'self' argument.
12139 * ctf.c (ctf_close): Add 'self' argument.
12140 * corelow.c (core_close): Add 'self' argument.
12141 (core_close_cleanup): Update.
12142 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12143 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * remote.c (remote_load): New function.
12148 (init_remote_ops): Use it.
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12152 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12154 * common/linux-btrace.h (linux_supports_btrace): Update.
12155 * remote.c (remote_supports_btrace): Add "self" argument.
12156 * target-delegates.c: Rebuild.
12157 * target.c (target_supports_btrace): Remove.
12158 * target.h (struct target_ops) <to_supports_btrace>: Add
12159 target_ops argument.
12160 (target_supports_btrace): New define.
12162 2014-02-19 Tom Tromey <tromey@redhat.com>
12164 * record-full.c (record_full_beneath_to_resume_ops)
12165 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12166 (record_full_beneath_to_wait)
12167 (record_full_beneath_to_store_registers_ops)
12168 (record_full_beneath_to_store_registers)
12169 (record_full_beneath_to_xfer_partial_ops)
12170 (record_full_beneath_to_xfer_partial)
12171 (record_full_beneath_to_insert_breakpoint_ops)
12172 (record_full_beneath_to_insert_breakpoint)
12173 (record_full_beneath_to_remove_breakpoint_ops)
12174 (record_full_beneath_to_remove_breakpoint)
12175 (record_full_beneath_to_stopped_by_watchpoint)
12176 (record_full_beneath_to_stopped_data_address)
12177 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12178 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12179 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12180 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12181 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12182 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12183 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12184 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12185 (record_full_resume, record_full_wait_1)
12186 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12187 (record_full_store_registers, record_full_xfer_partial)
12188 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12189 (record_full_async, record_full_core_xfer_partial): Use target
12191 * target-delegates.c: Rebuild.
12192 * target.c (current_xfer_partial): Remove.
12193 (update_current_target): Do not INHERIT or de_fault
12194 to_insert_breakpoint, to_remove_breakpoint,
12195 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12196 to_is_async_p, to_async. Do not set to_xfer_partial field.
12197 (default_xfer_partial): Simplify.
12198 (current_xfer_partial): Remove.
12199 (target_wait, target_resume): Simplify.
12200 (find_default_can_async_p, find_default_is_async_p): Update.
12201 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12202 to_xfer_partial, to_stopped_by_watchpoint,
12203 to_stopped_data_address.
12204 (target_store_registers): Simplify.
12205 (forward_target_remove_breakpoint)
12206 (forward_target_insert_breakpoint): Remove.
12207 (target_remove_breakpoint, target_insert_breakpoint)
12208 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12209 * target.h (struct target_ops) <to_resume, to_wait,
12210 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12211 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12212 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12214 (forward_target_remove_breakpoint)
12215 (forward_target_insert_breakpoint): Remove.
12216 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12218 (record_btrace_insert_breakpoint): Delegate directly.
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12223 * target-delegates.c: New file.
12224 * target.c: Include target-delegates.c.
12225 (init_dummy_target): Call install_dummy_methods.
12226 (complete_target_initialization): Call install_delegators.
12227 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12228 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12229 * make-target-delegates: New file.
12231 2014-02-19 Tom Tromey <tromey@redhat.com>
12233 * record.c (find_record_target): Use find_target_at.
12234 * target.c (find_target_at): New function.
12235 * target.h (find_target_at): Declare.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12240 Add 'ops' argument.
12241 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12243 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12244 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12246 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12248 * linux-nat.c (save_sigtrap): Update.
12249 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12250 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12251 (linux_nat_close): Update.
12252 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12254 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12256 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12257 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12258 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12259 (tmp_to_async): Add 'ops' argument.
12260 (record_full_stopped_by_watchpoint, record_full_async)
12261 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12263 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12264 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12265 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12266 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12267 (remote_is_async_p, remote_async): Add 'ops' argument.
12268 (remote_stopped_data_address): Update.
12269 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12270 * target.c (update_current_target)
12271 (find_default_can_async_p, find_default_is_async_p): Update.
12272 (init_dummy_target): Update.
12273 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12274 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12275 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12276 (target_can_async_p, target_is_async_p, target_async)
12277 (target_stopped_by_watchpoint): Update.
12279 2014-02-19 Yao Qi <yao@codesourcery.com>
12282 * gdbarch.sh: Remove startup_gdbarch.
12283 * gdbarch.c: Regenerated.
12284 * gdbarch.h: Likewise.
12286 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12288 * rl78-tdep.c (rl78_g10_register_name): New function.
12289 (rl78_return_value): Add g10 support.
12290 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12293 2014-02-17 Doug Evans <xdje42@gmail.com>
12295 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12296 (SUBDIR_GUILE_SRCS): Ditto.
12297 (scm-gsmob.o): Ditto.
12299 2014-02-17 Yao Qi <yao@codesourcery.com>
12301 * gnu-nat.c (ILL_RPC): Declare defined function.
12303 2014-02-17 Yao Qi <yao@codesourcery.com>
12305 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12306 mach_msg_type_number_t.
12307 (gnu_write_inferior): Likewise.
12309 2014-02-17 Yao Qi <yao@codesourcery.com>
12311 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12313 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12314 (inf_validate_procs, inf_signal): Likewise.
12315 (S_exception_raise_request): Likewise.
12316 (do_mach_notify_dead_name): Likewise.
12317 (steal_exc_port): Likewise.
12318 (gnu_read_inferior): Change 'copy_count''s type to
12319 mach_msg_type_number_t.
12320 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12323 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12325 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12326 flag. Adjust all users; in particular...
12327 (gnu_wait): ..., don't decrement its value in here...
12328 (gnu_create_inferior): ..., and instead set the flag in here,
12329 around the startup_inferior call, and call that one with
12330 START_INFERIOR_TRAPS_EXPECTED.
12332 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12333 (ILL_RPC): ... new macro.
12334 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12335 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12336 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12337 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12338 functions with ILL_RPC macro.
12339 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12340 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12341 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12342 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12343 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12344 (S_proc_getlogin_reply, S_proc_getsid_reply)
12345 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12346 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12347 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12348 (S_proc_getnports_reply, S_proc_is_important_reply)
12349 (S_proc_get_code_reply): New stub functions, generated with
12352 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12353 collected the type check structures.
12355 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12357 2014-02-14 Doug Evans <dje@google.com>
12359 * target.c (target_write_partial): Fix result type.
12361 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12363 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12364 the proper offsets to access fpregset_t.
12366 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12368 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12369 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12370 * h8300-tdep.c (setmachinelist): Remove global.
12371 * hppa-tdep.c (hppa_sigtramp): Remove global.
12372 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12373 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12374 * ravenscar-thread.c (update_target_observer): Remove global.
12375 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12377 2014-02-12 Tom Tromey <tromey@redhat.com>
12379 * common/rsp-low.c: Update comments.
12380 * common/rsp-low.h: Update comments.
12382 2014-02-12 Tom Tromey <tromey@redhat.com>
12384 * common/rsp-low.c (convert_ascii_to_int): Remove.
12385 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12387 2014-02-12 Tom Tromey <tromey@redhat.com>
12389 * common/rsp-low.h (unhexify): Don't declare.
12390 * common/rsp-low.c (unhexify): Remove.
12392 2014-02-12 Tom Tromey <tromey@redhat.com>
12394 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12395 * common/rsp-low.c (convert_int_to_ascii): Remove.
12397 2014-02-12 Tom Tromey <tromey@redhat.com>
12399 * common/rsp-low.h (hexify): Don't declare.
12400 * common/rsp-low.c (hexify): Remove.
12402 2014-02-12 Tom Tromey <tromey@redhat.com>
12404 * common/rsp-low.c (hexify): Never take strlen of argument.
12406 2014-02-12 Tom Tromey <tromey@redhat.com>
12408 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12409 * remote.c (extended_remote_run, remote_rcmd)
12410 (remote_download_trace_state_variable, remote_save_trace_data)
12411 (remote_set_trace_notes): Update.
12412 * tracepoint.c (encode_source_string, tfile_write_status)
12413 (tfile_write_uploaded_tsv): Update.
12415 2014-02-12 Tom Tromey <tromey@redhat.com>
12417 * tracepoint.c: Include rsp-low.h.
12418 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12419 * remote.c: Include rsp-low.h.
12420 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12421 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12422 (remote_unescape_input): Move to common/rsp-low.c.
12423 * common/rsp-low.h: New file.
12424 * common/rsp-low.c: New file.
12425 * Makefile.in (SFILES): Add common/rsp-low.c.
12426 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12427 (COMMON_OBS): Add rsp-low.o.
12428 (rsp-low.o): New target.
12430 2014-02-12 Tom Tromey <tromey@redhat.com>
12432 * utils.h: Include print-utils.h.
12433 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12434 (int_string, core_addr_to_string, core_addr_to_string_nz)
12435 (hex_string, hex_string_custom): Don't declare.
12436 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12437 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12438 (hex_string_custom, int_string, core_addr_to_string)
12439 (core_addr_to_string_nz, host_address_to_string): Move to
12440 common/print-utils.c.
12441 * common/print-utils.h: New file.
12442 * common/print-utils.c: New file
12443 * Makefile.in (SFILES): Add common/print-utils.c.
12444 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12445 (COMMON_OBS): Add print-utils.o.
12446 (print-utils.o): New target.
12448 2014-02-12 Tom Tromey <tromey@redhat.com>
12450 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12452 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12454 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12456 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12458 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12459 if a PT_IO ptrace request returns sucessfully but indicates that 0
12460 bytes were transferred.
12462 2014-02-12 Pedro Alves <palves@redhat.com>
12463 Kevin Buettner <kevinb@redhat.com>
12465 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12466 TYPE_INSTANCE_FLAG_CODE_SPACE.
12468 2014-02-12 Pedro Alves <palves@redhat.com>
12470 * h8300-tdep.c (pseudo_from_raw_register)
12471 (raw_from_pseudo_register): New functions.
12472 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12475 2014-02-12 Pedro Alves <palves@redhat.com>
12477 * h8300-tdep.c (h8300_register_sim_regno): New function.
12478 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12479 gdbarch_register_sim_regno hook.
12481 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12483 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12485 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12487 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12489 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12491 * obsd-tdep.h (obsd_init_abi): New prototype.
12492 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12493 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12494 (obsd_init_abi): New functions.
12495 * i386obsd-tdep.c: Include "obsd-tdep.h".
12496 (i386obsd_init_abi): Call obsd_init_abi.
12497 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12498 (amd64obsd_init_abi): Call obsd_init_abi.
12499 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12500 obsd-tdep.c to gdb_target_obs.
12502 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12504 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12505 double float arguments to 16-byte in the argument slots.
12507 2014-02-11 Doug Evans <xdje42@gmail.com>
12509 * configure.ac: Don't crash if pkg-config is not found and guile
12510 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12512 * configure: Regenerate.
12514 2014-02-11 Yao Qi <yao@codesourcery.com>
12516 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12517 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12518 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12519 * gnu-nat.c (gnu_xfer_memory): Likewise.
12520 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12521 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12522 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12523 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12525 2014-02-11 Yao Qi <yao@codesourcery.com>
12527 * target.h (enum target_xfer_error): Rename to ...
12528 (enum target_xfer_status): ... it. New. All users updated.
12529 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12531 (TARGET_XFER_STATUS_ERROR_P): New macro.
12532 (target_xfer_error_to_string): Remove declaration.
12533 (target_xfer_status_to_string): Declare.
12534 (target_xfer_partial_ftype): Adjust it.
12535 (struct target_ops) <to_xfer_partial>: Return
12536 target_xfer_status. Add argument xfered_len. Update
12538 * target.c (target_xfer_error_to_string): Rename to ...
12539 (target_xfer_status_to_string): ... it. New. All callers
12541 (target_read_live_memory): Likewise. Call target_xfer_partial
12542 instead of target_read.
12543 (memory_xfer_live_readonly_partial): Return
12544 target_xfer_status. Add argument xfered_len.
12545 (raw_memory_xfer_partial): Likewise.
12546 (memory_xfer_partial_1): Likewise.
12547 (memory_xfer_partial): Likewise.
12548 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12549 properly. Update debug message.
12550 (default_xfer_partial, current_xfer_partial): Likewise.
12551 (target_write_partial): Likewise.
12552 (target_read_partial): Likewise. All callers updated.
12553 (read_whatever_is_readable): Likewise.
12554 (target_write_with_progress): Likewise.
12555 (target_read_alloc_1): Likewise.
12557 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12558 * auxv.c (procfs_xfer_auxv): Likewise.
12559 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12560 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12561 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12562 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12563 * corefile.c (read_memory): Adjust.
12564 * corelow.c (core_xfer_partial): Likewise.
12565 * ctf.c (ctf_xfer_partial): Likewise.
12566 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12568 (darwin_xfer_partial): Likewise.
12569 * exec.c (section_table_xfer_memory_partial): Likewise. All
12571 (exec_xfer_partial): Likewise.
12572 * exec.h (section_table_xfer_memory_partial): Update
12574 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12576 (gnu_xfer_partial): Likewise.
12577 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12578 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12579 (ia64_hpux_xfer_solib_got): Likewise.
12580 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12581 type of 'partial_len' to ULONGEST.
12582 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12583 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12584 (linux_nat_xfer_partial): Likewise.
12585 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12586 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12587 * monitor.c (monitor_xfer_memory): Likewise.
12588 (monitor_xfer_partial): Likewise.
12589 * procfs.c (procfs_xfer_partial): Likewise.
12590 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12591 * record-full.c (record_full_xfer_partial): Likewise.
12592 (record_full_core_xfer_partial): Likewise.
12593 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12594 (gdbsim_xfer_partial): Likewise.
12595 * remote.c (remote_write_bytes_aux): Likewise. All callers
12597 (remote_write_bytes, remote_read_bytes): Likewise. All
12599 (remote_flash_erase): Likewise. All callers updated.
12600 (remote_write_qxfer): Likewise. All callers updated.
12601 (remote_read_qxfer): Likewise. All callers updated.
12602 (remote_xfer_partial): Likewise.
12603 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12604 (rs6000_xfer_shared_libraries): Likewise.
12605 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12606 (sol_thread_xfer_partial): Likewise.
12607 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12608 (sparc_xfer_partial): Likewise.
12609 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12611 (spu_xfer_partial): Likewise.
12612 * spu-multiarch.c (spu_xfer_partial): Likewise.
12613 * tracepoint.c (tfile_xfer_partial): Likewise.
12614 * windows-nat.c (windows_xfer_memory): Likewise.
12615 (windows_xfer_shared_libraries): Likewise.
12616 (windows_xfer_partial): Likewise.
12617 * valprint.c: Replace 'target_xfer_error' with
12618 'target_xfer_status' in comments.
12620 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12622 Checked in by Joel Brobecker <brobecker@adacore.com>.
12623 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12625 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12627 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12628 function parameters.
12630 2014-02-10 Will Newton <will.newton@linaro.org>
12632 * elfread.c (elf_rel_plt_read): Look for a .got section if
12633 looking up .got.plt fails.
12634 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12635 on address passed to elf_gnu_ifunc_record_cache.
12636 (elf_gnu_ifunc_resolve_addr): Likewise.
12637 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12639 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12641 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12642 (X_RETTURN): New macro.
12643 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12645 * sparc64-tdep.c (sparc64_init_abi): Hook
12646 sparc_in_function_epilogue_p.
12648 2014-02-10 Gary Benson <gbenson@redhat.com>
12650 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12651 Rename name_matcher to symbol_matcher.
12653 2014-02-10 Gary Benson <gbenson@redhat.com>
12655 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12656 Use expand_symtabs_file_matcher_ftype and
12657 expand_symtabs_symbol_matcher_ftype.
12659 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12661 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12662 (struct ada_symbol_cache): New.
12663 (ada_free_symbol_cache): Forward declare.
12664 (struct ada_pspace_data): New.
12665 (ada_pspace_data_handle): New static global.
12666 (get_ada_pspace_data, ada_pspace_data_cleanup)
12667 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12668 (cache_space, cache): Delete, now folded inside struct
12670 (ada_get_symbol_cache): New function.
12671 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12673 (_initialize_ada_language): Remove initialization of cache_space.
12674 Move call to observer_attach_inferior_exit up, grouping it
12675 with the other observer registrations inside this function.
12676 Rename command to be more general. Add call to
12677 register_program_space_data_with_cleanup.
12679 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12681 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12682 ada_new_objfile_observer.
12683 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12684 (_initialize_tasks): Update uses of ada_new_objfile_observer
12685 and ada_tasks_normal_stop_observer.
12687 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12689 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12690 returned by the 'Length attribute to integer.
12692 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12694 * ada-lang.c (_initialize_ada_language): Initialize
12695 cache_space obstack.
12697 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12699 * ada-lang.c (HASH_SIZE): New macro.
12700 (struct cache_entry): New type.
12701 (cache_space, cache): New static globals.
12702 (ada_clear_symbol_cache, find_entry): New functions.
12703 (lookup_cached_symbol, cache_symbol): Implement.
12704 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12705 (_initialize_ada_language): Attach ada_new_objfile_observer
12706 and ada_free_objfile_observer.
12708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12710 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12711 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12712 struct block * parameter.
12713 (ada_lookup_symbol_list_worker): Constify local variable "block".
12714 Remove cast which is no longer necessary.
12716 2014-02-10 Doug Evans <xdje42@gmail.com>
12718 Add Guile as an extension language.
12719 * NEWS: Mention Guile scripting.
12720 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12721 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12722 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12723 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12724 (CLIBS): Add GUILE_LIBS.
12725 (install-guile): New rule.
12726 (guile.o): New rule.
12727 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12728 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12729 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12730 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12731 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12732 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12733 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12734 * configure.ac: New option --with-guile.
12735 * configure: Regenerate.
12736 * config.in: Regenerate.
12737 * auto-load.c: Remove #include "python/python.h". Add #include
12738 "gdb/section-scripts.h".
12739 (source_section_scripts): Handle Guile scripts.
12740 (_initialize_auto_load): Add name of Guile objfile script to
12741 scripts-directory help text.
12742 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12743 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12744 (struct breakpoint): New member scm_bp_object.
12745 * defs.h (enum command_control_type): New value guile_control.
12746 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12748 (show_user): Update comment.
12749 (_initialize_cli_cmds): Update help text for "show user". Update help
12750 text for max-user-call-depth.
12751 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12753 (multi_line_command_p): Add guile_control.
12754 (print_command_lines): Handle guile_control.
12755 (execute_control_command, recurse_read_control_structure): Ditto.
12756 (process_next_line): Recognize "guile" commands.
12757 * disasm.c (gdb_disassemble_info): Make non-static.
12758 * disasm.h: #include "dis-asm.h".
12759 (struct gdbarch): Add forward decl.
12760 (gdb_disassemble_info): Declare.
12761 * extension.c: #include "guile/guile.h".
12762 (extension_languages): Add guile.
12763 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12764 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12765 * gdbtypes.c (get_unsigned_type_max): New function.
12766 (get_signed_type_minmax): New function.
12767 * gdbtypes.h (get_unsigned_type_max): Declare.
12768 (get_signed_type_minmax): Declare.
12769 * guile/README: New file.
12770 * guile/guile-internal.h: New file.
12771 * guile/guile.c: New file.
12772 * guile/guile.h: New file.
12773 * guile/scm-arch.c: New file.
12774 * guile/scm-auto-load.c: New file.
12775 * guile/scm-block.c: New file.
12776 * guile/scm-breakpoint.c: New file.
12777 * guile/scm-disasm.c: New file.
12778 * guile/scm-exception.c: New file.
12779 * guile/scm-frame.c: New file.
12780 * guile/scm-gsmob.c: New file.
12781 * guile/scm-iterator.c: New file.
12782 * guile/scm-lazy-string.c: New file.
12783 * guile/scm-math.c: New file.
12784 * guile/scm-objfile.c: New file.
12785 * guile/scm-ports.c: New file.
12786 * guile/scm-pretty-print.c: New file.
12787 * guile/scm-safe-call.c: New file.
12788 * guile/scm-string.c: New file.
12789 * guile/scm-symbol.c: New file.
12790 * guile/scm-symtab.c: New file.
12791 * guile/scm-type.c: New file.
12792 * guile/scm-utils.c: New file.
12793 * guile/scm-value.c: New file.
12794 * guile/lib/gdb.scm: New file.
12795 * guile/lib/gdb/boot.scm: New file.
12796 * guile/lib/gdb/experimental.scm: New file.
12797 * guile/lib/gdb/init.scm: New file.
12798 * guile/lib/gdb/iterator.scm: New file.
12799 * guile/lib/gdb/printing.scm: New file.
12800 * guile/lib/gdb/types.scm: New file.
12801 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12802 (VPATH): Add $(GUILE_SRCDIR).
12803 (GUILE_DIR): New variable.
12804 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12805 (all): Add stamp-guile dependency.
12806 (stamp-guile): New rule.
12807 (clean-guile, install-guile, uninstall-guile): New rules.
12808 (install-only): Add install-guile dependency.
12809 (uninstall): Add uninstall-guile dependency.
12810 (clean): Add clean-guile dependency.
12812 2014-02-09 Doug Evans <xdje42@gmail.com>
12814 Revert this patch (which I approved, mea culpa).
12816 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12818 * Makefile.in (all-lib): Remove.
12819 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12821 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12823 Fix Python stack corruption.
12824 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12827 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12829 * Makefile.in (all-lib): Remove.
12830 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12832 2014-02-07 Doug Evans <dje@google.com>
12834 * extension-priv.h (extension_language_script_ops): Add comment.
12835 (extension_language_ops): Add comment.
12836 (active_ext_lang_state): Fix typo in comment.
12838 2014-02-07 Pedro Alves <palves@redhat.com>
12840 PR breakpoints/16292
12841 * infrun.c (handle_signal_stop) <signal arrives while stepping
12842 over a breakpoint>: Switch back to the stepping thread.
12844 2014-02-07 Yao Qi <yao@codesourcery.com>
12846 * target.c (target_xfer_partial): Return zero if LEN is zero.
12848 2014-02-07 Yao Qi <yao@codesourcery.com>
12850 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12851 (ld_so_xfer_auxv): Likewise.
12852 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12853 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12854 * corelow.c (core_xfer_partial): Likewise.
12855 * ctf.c (ctf_xfer_partial): Likewise.
12856 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12857 (darwin_xfer_partial): Likewise.
12858 * exec.c (exec_xfer_partial): Likewise.
12859 * gnu-nat.c (gnu_xfer_partial): Likewise.
12860 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12861 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12862 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12863 * linux-nat.c (linux_xfer_siginfo): Likewise.
12864 (linux_proc_xfer_spu): Likewise.
12865 * procfs.c (procfs_xfer_partial): Likewise.
12866 * record-full.c (record_full_xfer_partial): Likewise.
12867 (record_full_core_xfer_partial): Likewise.
12868 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12869 * remote.c (remote_write_qxfer): Likewise.
12870 (remote_write_qxfer, remote_read_qxfer): Likewise.
12871 (remote_xfer_partial): Likewise.
12872 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12873 (rs6000_xfer_shared_libraries): Likewise.
12874 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12875 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12876 (spu_xfer_partial): Likewise.
12877 * target.c (memory_xfer_partial_1): Likewise.
12878 * tracepoint.c (tfile_xfer_partial): Likewise.
12879 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12880 (windows_xfer_partial): Likewise.
12882 2014-02-07 Yao Qi <yao@codesourcery.com>
12884 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12886 (core_xfer_shared_libraries_aix): Likewise.
12887 * gdbarch.c, gdbarch.h: Regenerated.
12888 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12889 ULONGEST. Change 'len_avail' type to ULONGEST.
12890 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12891 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12893 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12895 2014-02-07 Yao Qi <yao@codesourcery.com>
12897 * corefile.c (memory_error): Get 'exception' from ERR and pass
12898 'exception' to throw_error.
12900 2014-02-06 Doug Evans <xdje42@gmail.com>
12902 * configure.ac (libpython checking): Remove all but python.o from
12903 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12904 * configure: Regenerate.
12906 * Makefile.in (SFILES): Add extension.c.
12907 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12908 (COMMON_OBS): Add extension.o.
12909 * extension.h: New file.
12910 * extension-priv.h: New file.
12911 * extension.c: New file.
12913 * python/python-internal.h: #include "extension.h".
12914 (gdbpy_auto_load_enabled): Declare.
12915 (gdbpy_apply_val_pretty_printer): Declare.
12916 (gdbpy_apply_frame_filter): Declare.
12917 (gdbpy_preserve_values): Declare.
12918 (gdbpy_breakpoint_cond_says_stop): Declare.
12919 (gdbpy_breakpoint_has_cond): Declare.
12920 (void source_python_script_for_objfile): Delete.
12921 * python/python.c: #include "extension-priv.h".
12922 Delete inclusion of "observer.h".
12923 (extension_language_python): Moved here and renamed from
12924 script_language_python in py-auto-load.c.
12925 Redefined to be of type extension_language_defn.
12926 (python_extension_script_ops): New global.
12927 (python_extension_ops): New global.
12928 (struct python_env): New member previous_active.
12929 (restore_python_env): Call restore_active_ext_lang.
12930 (ensure_python_env): Call set_active_ext_lang.
12931 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12933 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12935 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12937 (gdbpy_eval_from_control_command): Renamed from
12938 eval_python_from_control_command, made static. New arg extlang.
12939 (gdbpy_source_script) Renamed from source_python_script, made static.
12941 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12942 result to int. New arg extlang.
12943 (gdbpy_source_objfile_script): Renamed from
12944 source_python_script_for_objfile, made static. New arg extlang.
12945 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12946 static. New args extlang, extlang_printers. Change result type to
12948 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12949 static. New arg extlang. Rename arg printers to extlang_printers
12950 and change type to ext_lang_type_printers *.
12951 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12952 static. Replace argument arg with extlang, extlang_printers.
12953 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12954 (!HAVE_PYTHON, source_python_script): Delete.
12955 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12956 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12957 (!HAVE_PYTHON, start_type_printers): Delete.
12958 (!HAVE_PYTHON, apply_type_printers): Delete.
12959 (!HAVE_PYTHON, free_type_printers): Delete.
12960 (_initialize_python): Delete call to observer_attach_before_prompt.
12961 (finalize_python): Set/restore active extension language.
12962 (gdbpy_finish_initialization) Renamed from
12963 finish_python_initialization, made static. New arg extlang.
12964 (gdbpy_initialized): New function.
12965 * python/python.h: #include "extension.h". Delete #include
12966 "value.h", "mi/mi-cmds.h".
12967 (extension_language_python): Declare.
12968 (GDBPY_AUTO_FILE_NAME): Delete.
12969 (enum py_bt_status): Moved to extension.h and renamed to
12970 ext_lang_bt_status.
12971 (enum frame_filter_flags): Moved to extension.h.
12972 (enum py_frame_args): Moved to extension.h and renamed to
12973 ext_lang_frame_args.
12974 (finish_python_initialization): Delete.
12975 (eval_python_from_control_command): Delete.
12976 (source_python_script): Delete.
12977 (apply_val_pretty_printer): Delete.
12978 (apply_frame_filter): Delete.
12979 (preserve_python_values): Delete.
12980 (gdbpy_script_language_defn): Delete.
12981 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12982 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12984 * auto-load.c: #include "extension.h".
12985 (GDB_AUTO_FILE_NAME): Delete.
12986 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12987 (script_language_gdb): Delete, moved to extension.c and renamed to
12988 extension_language_gdb.
12989 (source_gdb_script_for_objfile): Delete.
12990 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12991 (loaded_script): Change type of language member to
12992 struct extension_language_defn *.
12993 (init_loaded_scripts_info): Initialize
12994 unsupported_script_warning_printed.
12995 (maybe_add_script): Make static. Change type of language arg to
12996 struct extension_language_defn *.
12997 (clear_section_scripts): Reset unsupported_script_warning_printed.
12998 (auto_load_objfile_script_1): Rewrite to use extension language API.
12999 (auto_load_objfile_script): Make public. Remove support-compiled-in
13000 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13001 (source_section_scripts): Rewrite to use extension language API.
13002 (load_auto_scripts_for_objfile): Rewrite to use
13003 auto_load_scripts_for_objfile.
13004 (collect_matching_scripts_data): Change type of language member to
13005 struct extension_language_defn *.
13006 (auto_load_info_scripts): Change type of language arg to
13007 struct extension_language_defn *.
13008 (unsupported_script_warning_print): New function.
13009 (script_not_found_warning_print): Make static.
13010 (_initialize_auto_load): Rewrite construction of scripts-directory
13012 * auto-load.h (struct objfile): Add forward decl.
13013 (struct script_language): Delete.
13014 (struct auto_load_pspace_info): Add forward decl.
13015 (struct extension_language_defn): Add forward decl.
13016 (maybe_add_script): Delete.
13017 (auto_load_objfile_script): Declare.
13018 (script_not_found_warning_print): Delete.
13019 (auto_load_info_scripts): Update prototype.
13020 (auto_load_gdb_scripts_enabled): Declare.
13021 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13022 auto_load_python_scripts_enabled and made public.
13023 (script_language_python): Delete, moved to python.c.
13024 (gdbpy_script_language_defn): Delete.
13025 (info_auto_load_python_scripts): Update to use
13026 extension_language_python.
13028 * breakpoint.c (condition_command): Replace call to
13029 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13030 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13031 with call to breakpoint_ext_lang_cond_says_stop.
13032 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13033 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13034 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13035 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13037 (local_setattro): Print name of extension language with existing
13040 * valprint.c (val_print, value_print): Update to call
13041 apply_ext_lang_val_pretty_printer.
13042 * cp-valprint.c (cp_print_value): Update call to
13043 apply_ext_lang_val_pretty_printer.
13044 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13045 (gdbpy_apply_val_pretty_printer): Renamed from
13046 apply_val_pretty_printer. New arg extlang.
13047 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13049 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13050 extension language API.
13051 * cli/cli-script.c (execute_control_command): Update to call
13052 eval_ext_lang_from_control_command.
13054 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13055 enum ext_lang_bt_status values. Update call to
13056 apply_ext_lang_frame_filter.
13057 (mi_cmd_stack_list_locals): Ditto.
13058 (mi_cmd_stack_list_args): Ditto.
13059 (mi_cmd_stack_list_variables): Ditto.
13060 * mi/mi-main.c: Delete #include "python/python-internal.h".
13061 Add #include "extension.h".
13062 (mi_cmd_list_features): Replace reference to python internal variable
13063 gdb_python_initialized with call to ext_lang_initialized_p.
13065 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13066 Update to use enum ext_lang_frame_args. Update to call
13067 apply_ext_lang_frame_filter.
13068 * python/py-framefilter.c (extract_sym): Update to use enum
13069 ext_lang_bt_status.
13070 (extract_value, py_print_type, py_print_value): Ditto.
13071 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13072 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13073 (py_print_frame): Ditto.
13074 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13075 New arg extlang. Update to use enum ext_lang_bt_status.
13077 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13078 finish_python_initialization. Replace with call to
13079 finish_ext_lang_initialization.
13081 * typeprint.c (do_free_global_table): Update to call
13082 free_ext_lang_type_printers.
13083 (create_global_typedef_table): Update to call
13084 start_ext_lang_type_printers.
13085 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13086 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13087 (type_print_options): Change type of global_printers from "void *"
13088 to "struct ext_lang_type_printers *".
13090 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13091 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13092 (gdbpy_preserve_values): Renamed from preserve_python_values.
13094 (!HAVE_PYTHON, preserve_python_values): Delete.
13096 * utils.c (quit_flag): Delete, moved to extension.c.
13097 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13100 * eval.c: Delete #include "python/python.h".
13101 * main.c: Delete #include "python/python.h".
13103 * defs.h: Update comment.
13105 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13109 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13111 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13114 2014-02-05 Yao Qi <yao@codesourcery.com>
13116 * remote.c (remote_pass_signals): Remove local 'buf' and use
13118 (remote_program_signals): Likewise.
13120 2014-02-05 Yao Qi <yao@codesourcery.com>
13122 * ctf.c: Include "inferior.h" and "gdbthread.h".
13123 (CTF_PID): A new macro.
13124 (ctf_open): Call inferior_appeared and add_thread_silent.
13125 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13126 (ctf_thread_alive): New function.
13127 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13129 2014-02-05 Yao Qi <yao@codesourcery.com>
13133 2013-05-24 Yao Qi <yao@codesourcery.com>
13135 * tracepoint.c (TFILE_PID): Remove.
13136 (tfile_open): Don't add thread and inferior.
13137 (tfile_close): Don't set 'inferior_ptid'. Don't call
13138 exit_inferior_silent.
13139 (tfile_thread_alive): Remove.
13140 (init_tfile_ops): Don't set field 'to_thread_alive' of
13143 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13145 * remote.c (remote_start_remote): Call remote_check_symbols even
13146 if only symbol-file (not file) has been given.
13148 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13150 * gdbarch.sh (skip_entrypoint): New callback.
13151 * gdbarch.c, gdbarch.h: Regenerate.
13152 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13153 * infrun.c (fill_in_stop_func): Likewise.
13154 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13155 (ppc_elfv2_elf_make_msymbol_special): New function.
13156 (ppc_elfv2_skip_entrypoint): Likewise.
13157 (ppc_linux_init_abi): Install them for ELFv2.
13159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13161 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13162 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13163 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13164 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13165 structures returned in GPRs.
13167 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13169 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13170 offset to the stack parameter list for the ELFv2 ABI.
13172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13174 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13175 set_gdbarch_convert_from_func_ptr_addr and
13176 set_gdbarch_elf_make_msymbol_special for ELFv1.
13177 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13178 function descriptors on ELFv1.
13179 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13180 set up r12 at function entry.
13182 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13184 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13185 (struct gdbarch_tdep): New member elf_abi.
13187 * rs6000-tdep.c: Include "elf/ppc64.h".
13188 (rs6000_gdbarch_init): Detect ELF ABI version.
13190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13192 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13193 within a register pair holding a DFP 128-bit value on little-endian.
13194 (ppc64_sysv_abi_return_value_base): Likewise.
13195 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13196 (dfp_pseudo_register_write): Likewise.
13198 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13200 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13201 offset on little-endian when passing _Decimal32.
13202 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13204 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13206 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13207 of the overlapped FP register within the VSX register on little-
13209 (efpr_pseudo_register_write): Likewise.
13211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13213 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13214 offset on little-endian when passing small structures.
13216 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13218 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13219 (struct ppc64_sysv_argpos): New data structure.
13220 (ppc64_sysv_abi_push_float): Remove.
13221 (ppc64_sysv_abi_push_val): New function.
13222 (ppc64_sysv_abi_push_integer): Likewise.
13223 (ppc64_sysv_abi_push_freg): Likewise.
13224 (ppc64_sysv_abi_push_vreg): Likewise.
13225 (ppc64_sysv_abi_push_param): Likewise.
13226 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13227 (ppc64_sysv_abi_return_value_base): New function.
13228 (ppc64_sysv_abi_return_value): Refactor to use it.
13230 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13232 * NEWS: Document new target powerpc64le-*-linux*.
13234 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13236 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13237 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13239 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13240 register set used in ELF core dumps. Add floating-point register set.
13242 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13244 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13245 dwarf2_to_gdb[] table using symbolic constants. Adjust
13246 penultimate entry from number representing the PC register
13247 to symbolic constant representing the MDR register. Add
13248 constant for the PC register to the end of the table.
13250 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13252 * bsd-kvm.c: Include <sys/param.h>
13254 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13256 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13258 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13260 * ada-lang.h (clear_ada_sym_cache): Delete.
13262 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13264 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13266 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13268 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13269 the sigreturn register save area only if the syscall is
13272 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13274 * valops.c (value_slice): Minor reformatting.
13276 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13278 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13280 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13282 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13283 New static globals.
13284 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13285 (ada_ignore_descriptive_types_p): New static global.
13286 (find_parallel_type_by_descriptive_type): Return immediately
13287 if ada_ignore_descriptive_types_p is set.
13288 (_initialize_ada_language): Register new commands "maintenance
13289 set ada", "maintenance show ada", "maintenance set ada
13290 ignore-descriptive-types" and "maintenance show ada
13291 ignore-descriptive-types".
13292 * NEWS: Add entry for new "maint ada set/show
13293 ignore-descriptive-types" commands.
13295 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13297 * record-btrace.c (record_btrace_close): Call btrace_teardown
13300 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13302 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13305 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13307 * ada-typeprint (type_is_full_subrange_of_target_type):
13309 (print_range): Add parameter bounds_prefered_p. If not set,
13310 try printing range types using the name of their base type.
13311 (print_range_type): Add parameter bounds_prefered_p.
13312 Use it in call to print_range.
13313 (print_array_type, ada_print_type): Update calls to print_range
13314 and print_range_type.
13316 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13318 * ada-typeprint.c (print_array_type, print_choices, print_range)
13319 (print_range_bound, print_dynamic_range_bound, print_range_type):
13320 Remove declaration.
13322 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13324 * ada-typeprint.c (print_range): Add missing empty line
13325 after local declaration.
13327 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13329 * ada-valprint.c (print_optional_low_bound): Get index_type's
13330 target type for as long as it is a TYPE_CODE_RANGE.
13332 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13334 * procfs.c (procfs_make_note_section): Remove assertion and
13335 associated comment.
13337 2014-01-24 Yao Qi <yao@codesourcery.com>
13339 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13340 * corelow.c (get_core_siginfo): Likewise.
13342 2014-01-24 Yao Qi <yao@codesourcery.com>
13344 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13345 ULONGEST. Don't check 'len' is negative.
13346 (remote_write_bytes): Change type of 'len' to ULONGEST.
13348 2014-01-23 Tom Tromey <tromey@redhat.com>
13351 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13352 Handle exception from frame.block.
13353 (FrameVars.fetch_frame_locals): Likewise.
13355 2014-01-23 Tom Tromey <tromey@redhat.com>
13358 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13359 on a NULL pointer. Move "goto error" to correct place.
13361 2014-01-23 Tom Tromey <tromey@redhat.com>
13364 * python/py-framefilter.c (apply_frame_filter): Call
13365 ensure_python_env after computing gdbarch.
13367 2014-01-23 Yao Qi <yao@codesourcery.com>
13369 * target.c (raw_memory_xfer_partial): Change argument type
13370 from void * to gdb_byte *.
13371 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13373 2014-01-22 Doug Evans <dje@google.com>
13375 New gdbserver option --debug-format=timestamp.
13376 * NEWS: Mention it.
13378 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13380 * syscalls/s390x-linux.xml: New file.
13381 * syscalls/s390-linux.xml: New file.
13382 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13383 (XML_SYSCALL_FILENAME_S390X): Likewise.
13384 (op_svc): New enum value for SVC opcode.
13385 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13386 (s390_linux_get_syscall_number): New function.
13387 (s390_gdbarch_init): Register '*get_syscall_number' and the
13388 syscall xml file name.
13389 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13390 "s390-linux.xml" and "s390x-linux.xml".
13391 * NEWS: Announce new feature.
13393 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13395 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13397 2014-01-22 Pedro Alves <palves@redhat.com>
13399 * xtensa-config.c: Include defs.h.
13401 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13403 * common/common-utils.h: Add "ARI:" comment beside __func__
13406 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13408 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13409 documentation a bit.
13411 2014-01-21 Roland McGrath <mcgrathr@google.com>
13413 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13414 * configure: Regenerate.
13415 * aclocal.m4: Regenerate.
13416 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13417 New substituted variables.
13418 (install-strip): New target.
13419 (INSTALL_SCRIPT): New substituted variable.
13420 (FLAGS_TO_PASS): Add it.
13421 (install-only): Use $(INSTALL_SCRIPT) rather than
13422 $(INSTALL_PROGRAM) for gcore.
13424 2014-01-20 Tom Tromey <tromey@redhat.com>
13426 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13429 2014-01-20 Tom Tromey <tromey@redhat.com>
13431 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13432 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13433 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13434 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13435 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13436 (struct cmd_list_element) <flags>: Remove.
13437 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13438 doc_allocated>: New fields.
13439 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13441 * maint.c (maintenance_do_deprecate): Update.
13442 * top.c (execute_command): Update.
13444 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13446 * xtensa-linux-nat.c: Include asm/ptrace.h.
13448 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13450 * Makefile.in (SFILES): Add d-support.c.
13451 (COMMON_OBS): Add d-support.o.
13452 * d-lang.h (d_parse_symbol): Add comment, now defined in
13454 * d-lang.c (parse_call_convention)
13455 (parse_attributes, parse_function_types)
13456 (parse_function_args, parse_type, parse_identifier)
13457 (call_convention_p, d_parse_symbol): Move functions to ...
13458 * d-support.c: ... New file.
13460 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13462 * d-lang.h (d_parse_symbol): Add declaration.
13463 * d-lang.c (extract_identifiers)
13464 (extract_type_info): Remove functions.
13465 (parse_call_convention, parse_attributes)
13466 (parse_function_types, parse_function_args)
13467 (parse_type, parse_identifier, call_convention_p)
13468 (d_parse_symbol): New functions.
13469 (d_demangle): Use d_parse_symbol to demangle D symbols.
13471 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13473 * d-lang.h (struct builtin_d_type): New data type.
13474 (builtin_d_type): Add declaration.
13475 * d-lang.c (d_language_arch_info, build_d_types)
13476 (builtin_d_type): New functions.
13477 (enum d_primitive_types): New data type.
13478 (d_language_defn): Change c_language_arch_info to
13479 d_language_arch_info.
13480 (d_type_data): New static variable.
13481 (_initialize_d_language): Initialize d_type_data.
13483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13485 * d-lang.h (d_main_name): Add declaration.
13486 * d-lang.c (d_main_name): New function.
13487 * symtab.c (find_main_name): Add call to d_main_name.
13489 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13491 * d-lang.c (d_language_defn): Change macro_expansion_c to
13492 macro_expansion_no.
13494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13496 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13498 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13500 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13501 gdb_exception" declaration.
13502 * remote.c (getpkt_or_notif_sane): Likewise.
13504 2014-01-17 Doug Evans <dje@google.com>
13506 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13507 function, contents of dirnames_to_char_ptr_vec_append moved here.
13508 (delim_string_to_char_ptr_vec): New function.
13509 (dirnames_to_char_ptr_vec_append): Rewrite.
13510 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13512 2014-01-17 Doug Evans <dje@google.com>
13514 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13516 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13517 #include "common-utils.h".
13518 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13519 * common/vec.h (VEC_ASSERT_PASS): Update.
13520 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13521 (MACH_CHECK_ERROR): Update.
13523 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13525 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13527 * gdbarch.h: Regenerate.
13529 2014-01-16 Tom Tromey <tromey@redhat.com>
13531 * value.c (struct value) <regnum>: Move earlier.
13533 2014-01-16 Tom Tromey <tromey@redhat.com>
13535 * remote.c (extended_remote_create_inferior): Rename from
13536 extended_remote_create_inferior_1. Add "ops" argument. Remove
13537 old implementation.
13539 2014-01-16 Pedro Alves <palves@redhat.com>
13541 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13542 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13545 2014-01-16 Doug Evans <dje@google.com>
13547 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13551 * btrace.h (btrace_thread_flag): New.
13552 (struct btrace_thread_info) <flags>: New.
13553 * record-btrace.c (record_btrace_resume_thread)
13554 (record_btrace_find_thread_to_move, btrace_step_no_history)
13555 (btrace_step_stopped, record_btrace_start_replaying)
13556 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13557 (record_btrace_find_resume_thread): New.
13558 (record_btrace_resume, record_btrace_wait): Extend.
13559 (record_btrace_can_execute_reverse): New.
13560 (record_btrace_open): Fail in non-stop mode.
13561 (record_btrace_set_replay): Split into this, ...
13562 (record_btrace_stop_replaying): ... this, ...
13563 (record_btrace_clear_histories): ... and this.
13564 (init_record_btrace_ops): Init to_can_execute_reverse.
13565 * NEWS: Announce it.
13567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13569 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13570 (forward_target_decr_pc_after_break)
13571 (target_decr_pc_after_break): New.
13572 * target.c (forward_target_decr_pc_after_break)
13573 (target_decr_pc_after_break): New.
13574 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13575 instead of gdbarch_decr_pc_after_break.
13576 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13577 instead of gdbarch_decr_pc_after_break.
13578 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13579 instead of gdbarch_decr_pc_after_break.
13580 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13581 instead of gdbarch_decr_pc_after_break.
13582 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13583 instead of gdbarch_decr_pc_after_break.
13584 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13585 instead of gdbarch_decr_pc_after_break.
13587 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13589 * btrace.c: Include regcache.h.
13590 (btrace_add_pc): New.
13591 (btrace_enable): Call btrace_add_pc.
13592 (btrace_is_empty): New.
13593 * btrace.h (btrace_is_empty): New.
13594 * record-btrace.c (require_btrace, record_btrace_info): Call
13597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13599 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13600 Support delta reads.
13601 (linux_disable_btrace): Change return type.
13602 * common/linux-btrace.h (linux_read_btrace): Change parameters
13603 and return type to allow error reporting. Update users.
13604 (linux_disable_btrace): Change return type. Update users.
13605 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13607 (btrace_error): New.
13608 (btrace_block) <begin>: Comment on BEGIN == 0.
13609 * btrace.c (btrace_compute_ftrace): Start from the end of
13611 (btrace_stitch_trace, btrace_clear_history): New.
13612 (btrace_fetch): Read delta trace, return if replaying.
13613 (btrace_clear): Move clear history code to btrace_clear_history.
13614 (parse_xml_btrace): Throw an error if parsing failed.
13615 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13616 and return type to allow error reporting.
13617 (target_read_btrace): Change parameters and return type to allow
13619 * target.c (target_read_btrace): Update.
13620 * remote.c (remote_read_btrace): Support delta reads. Pass
13622 * NEWS: Announce it.
13624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13626 * record.h (record_btrace_frame_unwind)
13627 (record_btrace_tailcall_frame_unwind): New declarations.
13628 * dwarf2-frame: Include record.h
13629 (dwarf2_frame_cfa): Throw an error for btrace frames.
13630 * record-btrace.c: Include hashtab.h.
13631 (btrace_get_bfun_name): New.
13632 (btrace_call_history): Call btrace_get_bfun_name.
13633 (struct btrace_frame_cache): New.
13635 (bfcache_hash, bfcache_eq, bfcache_new): New.
13636 (btrace_get_frame_function): New.
13637 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13638 (record_btrace_frame_this_id): Compute own id.
13639 (record_btrace_frame_prev_register): Provide PC, throw_error
13640 for all other registers.
13641 (record_btrace_frame_sniffer): Detect btrace frames.
13642 (record_btrace_tailcall_frame_sniffer): New.
13643 (record_btrace_frame_dealloc_cache): New.
13644 (record_btrace_frame_unwind): Add new functions.
13645 (record_btrace_tailcall_frame_unwind): New.
13646 (_initialize_record_btrace): Allocate cache.
13647 * btrace.c (btrace_clear): Call reinit_frame_cache.
13648 * NEWS: Announce it.
13650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13652 * record-btrace.c (record_btrace_set_replay)
13653 (record_btrace_goto_begin, record_btrace_goto_end)
13654 (record_btrace_goto): New.
13655 (init_record_btrace_ops): Initialize them.
13656 * NEWS: Announce it.
13658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13660 * record-btrace.c (record_btrace_find_new_threads)
13661 (record_btrace_thread_alive): New.
13662 (init_record_btrace_ops): Initialize to_find_new_threads and
13665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13667 * record-btrace.c (record_btrace_resume): New.
13668 (record_btrace_wait): New.
13669 (init_record_btrace_ops): Initialize to_wait and to_resume.
13671 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13673 * record-btrace.c (record_btrace_xfer_partial)
13674 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13675 (record_btrace_allow_memory_access): New.
13676 (init_record_btrace_ops): Initialize new methods.
13677 * target.c (raw_memory_xfer_partial): Bail out if target reports
13678 that this memory is not available.
13680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13682 * target.h (target_ops) <to_insert_breakpoint>
13683 <to_remove_breakpoint>: Add target_ops parameter.
13684 (forward_target_insert_breakpoint): New.
13685 (forward_target_remove_breakpoint): New.
13686 (memory_remove_breakpoint, memory_insert_breakpoint):
13687 Add target_ops parameter.
13688 * target.c (target_insert_breakpoint): Split into this and ...
13689 (forward_target_insert_breakpoint): ... this.
13690 (target_remove_breakpoint): Split into this and ...
13691 (forward_target_remove_breakpoint): ... this.
13692 (debug_to_insert_breakpoint): Add target_ops parameter.
13693 Call forward_target_insert_breakpoint.
13694 (debug_to_remove_breakpoint): Add target_ops parameter.
13695 Call forward_target_remove_breakpoint.
13696 (update_current_target): Do not inherit or default to_insert_breakpoint
13697 and to_remove_breakpoint.
13698 * corelow.c (ignore): Add target_ops parameter.
13699 * exec.c (ignore): Add target_ops parameter.
13700 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13701 Add target_ops parameter.
13702 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13703 Add target_ops parameter.
13704 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13705 Add target_ops parameter.
13706 * record-full.c (record_full_beneath_to_insert_breakpoint)
13707 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13708 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13709 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13710 (record_full_core_remove_breakpoint): Add target_ops parameter.
13712 (record_full_beneath_to_insert_breakpoint_ops)
13713 (record_full_beneath_to_remove_breakpoint_ops)
13714 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13715 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13716 tmp_to_remove_breakpoint_ops,
13717 record_full_beneath_to_insert_breakpoint_ops, and
13718 record_full_beneath_to_remove_breakpoint_ops.
13719 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13720 (m32r_remove_breakpoint): Add target_ops parameter.
13721 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13722 Add target_ops parameter.
13723 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13724 Add target_ops parameter.
13726 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13727 Markus Metzger <markus.t.metzger@intel.com>
13729 * record-btrace.c: Include frame-unwind.h.
13730 (record_btrace_frame_unwind_stop_reason)
13731 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13732 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13734 (init_record_btrace_ops): Install it.
13736 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13738 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13741 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13743 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13746 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13748 * frame-unwind.c: Include target.h.
13749 (frame_unwind_try_unwinder): New function with code from ...
13750 (frame_unwind_find_by_frame): ... here. New variable
13751 unwinder_from_target, call also target_get_unwinder)
13752 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13753 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13754 * target.h (struct target_ops): New fields to_get_unwinder and
13755 to_get_tailcall_unwinder.
13756 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13760 * record-btrace.c (record_btrace_fetch_registers)
13761 (record_btrace_store_registers)
13762 (record_btrace_to_prepare_to_store): New.
13763 (init_record_btrace_ops): Add the above.
13765 2014-01-16 Tom Tromey <tromey@redhat.com>
13767 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13768 * target.h (struct target_ops) <to_prepare_to_store>: Add
13770 (target_prepare_to_store): Add argument.
13771 * target.c (debug_to_prepare_to_store): Add argument.
13772 (update_current_target): Update.
13773 * remote.c (remote_prepare_to_store): Add 'self' argument.
13774 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13775 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13776 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13777 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13779 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13780 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13781 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13782 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13783 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13787 * btrace.h (replay) <replay>: New.
13788 (btrace_is_replaying): New.
13789 * btrace.c (btrace_clear): Free replay iterator.
13790 (btrace_is_replaying): New.
13791 * record-btrace.c (record_btrace_is_replaying): New.
13792 (record_btrace_info): Print insn number if replaying.
13793 (record_btrace_insn_history): Start at replay position.
13794 (record_btrace_call_history): Start at replay position.
13795 (init_record_btrace_ops): Init to_record_is_replaying.
13797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13799 * record-btrace.c (record_btrace_insn_history_range): Include
13801 (record_btrace_insn_history_from): Adjust range.
13802 (record_btrace_call_history_range): Include
13804 (record_btrace_call_history_from): Adjust range.
13805 * NEWS: Announce changes.
13807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13809 * record.h (enum record_print_flag)
13810 <record_print_indent_calls>: New.
13811 * record.c (get_call_history_modifiers): Recognize /c modifier.
13812 (_initialize_record): Document /c modifier.
13813 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13814 Reorder fields. Optionally indent the function name. Update
13816 * NEWS: Announce changes.
13818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13820 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13822 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13824 * btrace.c (ftrace_new_function): Start counting at one.
13825 * record-btrace.c (record_btrace_info): Adjust number of calls
13827 * NEWS: Announce it.
13829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13831 * record-btrace.c (btrace_call_history_insn_range): Print
13832 insn range as [begin, end].
13834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13836 * btrace.h (struct btrace_func_link): New.
13837 (enum btrace_function_flag): New.
13838 (struct btrace_inst): Rename to ...
13839 (struct btrace_insn): ...this. Update all users.
13840 (struct btrace_func) <ibegin, iend>: Remove.
13841 (struct btrace_func_link): New.
13842 (struct btrace_func): Rename to ...
13843 (struct btrace_function): ...this. Update all users.
13844 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13845 (number, level, flags>: New.
13846 (struct btrace_insn_iterator): Rename to ...
13847 (struct btrace_insn_history): ...this.
13849 (struct btrace_insn_iterator, btrace_call_iterator): New.
13850 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13851 (struct btrace_target_info) <begin, end, level>
13852 <insn_history, call_history>: New.
13853 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13854 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13855 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13856 (btrace_call_number, btrace_call_begin, btrace_call_end)
13857 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13858 (btrace_find_function_by_number, btrace_set_insn_history)
13859 (btrace_set_call_history): New.
13860 * btrace.c (btrace_init_insn_iterator)
13861 (btrace_init_func_iterator, compute_itrace): Remove.
13862 (ftrace_print_function_name, ftrace_print_filename)
13863 (ftrace_skip_file): Change
13864 parameter to const.
13865 (ftrace_init_func): Remove.
13866 (ftrace_debug): Use new btrace_function fields.
13867 (ftrace_function_switched): Also consider gaining and
13868 losing symbol information).
13869 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13870 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13871 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13873 (ftrace_new_function): Move. Remove debug print.
13874 (ftrace_update_lines, ftrace_update_insns): New.
13875 (ftrace_update_function): Check for call, ret, and jump.
13876 (compute_ftrace): Renamed to ...
13877 (btrace_compute_ftrace): ...this. Rewritten to compute call
13879 (btrace_fetch, btrace_clear): Updated.
13880 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13881 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13882 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13883 (btrace_call_number, btrace_call_begin, btrace_call_end)
13884 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13885 (btrace_find_function_by_number, btrace_set_insn_history)
13886 (btrace_set_call_history): New.
13887 * record-btrace.c (require_btrace): Use new btrace thread
13889 (record_btrace_info, btrace_insn_history)
13890 (record_btrace_insn_history, record_btrace_insn_history_range):
13891 Use new btrace thread info fields and new iterator.
13892 (btrace_func_history_src_line): Rename to ...
13893 (btrace_call_history_src_line): ...this. Use new btrace
13894 thread info fields.
13895 (btrace_func_history): Rename to ...
13896 (btrace_call_history): ...this. Use new btrace thread info
13897 fields and new iterator.
13898 (record_btrace_call_history, record_btrace_call_history_range):
13899 Use new btrace thread info fields and new iterator.
13901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13903 * frame.h (frame_id_build_unavailable_stack_special): New.
13904 * frame.c (frame_id_build_unavailable_stack_special): New.
13906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13908 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13909 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13910 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13912 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13913 (i386_insn_is_jump, i386_jmp_p): New.
13914 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13915 insn_is_jump to gdbarch.
13916 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13917 * gdbarch.h: Regenerated.
13918 * gdbarch.c: Regenerated.
13919 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13920 (default_insn_is_jump): New.
13921 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13922 (default_insn_is_jump): New.
13924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13926 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13928 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13929 (btrace_read_type) <btrace_read_new>: Change to ...
13930 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13934 * common/linux-btrace.c (linux_read_btrace): Free trace from
13935 previous iteration.
13937 2014-01-15 Doug Evans <dje@google.com>
13939 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13942 2014-01-15 Tom Tromey <tromey@redhat.com>
13944 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13945 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13946 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13947 (set_objfile_main_name): New function.
13948 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13949 language_of_main>: New fields.
13950 (set_objfile_main_name): Declare.
13951 * symtab.c (find_main_name): Loop over objfiles to find the main
13953 (set_main_name): Now static.
13954 (get_main_info): Add comment.
13955 * symtab.h (set_main_name): Don't declare.
13957 2014-01-15 Tom Tromey <tromey@redhat.com>
13959 * symtab.c (main_progspace_key): New global.
13960 (struct main_info): New.
13961 (name_of_main, language_of_main): Remove.
13962 (get_main_info, main_info_cleanup): New function.
13963 (set_main_name, main_name, main_language): Use get_main_info.
13964 (_initialize_symtab): Initialize main_progspace_key.
13966 2014-01-15 Tom Tromey <tromey@redhat.com>
13968 * dbxread.c (process_one_symbol): Update.
13969 * dwarf2read.c (read_partial_die): Update.
13970 * symfile.c (set_initial_language): Call main_language.
13971 * symtab.c (language_of_main): Now static.
13972 (set_main_name): Add 'lang' parameter.
13973 (find_main_name): Update.
13974 (main_language): New function.
13975 (symtab_observer_executable_changed): Update.
13976 * symtab.h (set_main_name): Update.
13977 (language_of_main): Remove.
13978 (main_language): Declare.
13980 2014-01-15 Tom Tromey <tromey@redhat.com>
13982 * symfile.c (init_entry_point_info): Use new "initialized" field.
13984 * objfiles.h (struct entry_point) <initialized>: New field.
13985 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13986 (struct objfile) <ei>: ...here. Remove.
13987 * objfiles.c (entry_point_address_query): Update.
13989 2014-01-15 Tom Tromey <tromey@redhat.com>
13991 * objfiles.c (entry_point_address_query): Relocate entry point
13993 (objfile_relocate1): Do not relocate entry point address.
13994 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13995 <the_bfd_section_index>: New field.
13996 * symfile.c (init_entry_point_info): Find the entry point's
13999 2014-01-15 Tom Tromey <tromey@redhat.com>
14001 * solib-frv.c (enable_break): Use entry_point_address_query.
14003 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14005 * NEWS: Add note on improved process record-replay on
14006 arm*-linux* targets.
14008 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14010 * arm-tdep.c (enum arm_record_result): New enum.
14011 (arm_record_unsupported_insn): New function.
14012 (arm_record_coproc_data_proc): Removed.
14013 (thumb2_record_ld_st_multiple): New function.
14014 (thumb2_record_ld_st_dual_ex_tbb): New function.
14015 (thumb2_record_data_proc_sreg_mimm): New function.
14016 (thumb2_record_ps_dest_generic): New function.
14017 (thumb2_record_branch_misc_cntrl): New function.
14018 (thumb2_record_str_single_data): New function.
14019 (thumb2_record_ld_mem_hints): New function.
14020 (thumb2_record_ld_word): New function.
14021 (thumb2_record_lmul_lmla_div): New function.
14022 (thumb2_record_decode_insn_handler): New function.
14023 (decode_insn): Add thumb32 instruction handlers.
14025 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14027 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14028 (struct arm_linux_record_tdep): Declare.
14029 (arm_canonicalize_syscall): New function.
14030 (arm_all_but_pc_registers_record): New function.
14031 (arm_linux_syscall_record): New function.
14032 (arm_linux_init_abi): Add syscall recording constructs.
14033 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14034 decoding. (arm_record_coproc_data_proc): Update arm syscall
14036 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14037 <arm_syscall_record>: New field.
14038 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14041 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14043 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14044 register for push instruction recording.
14046 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14048 * arm-tdep.c (thumb_record_misc): Update to correct logical
14049 error while recording ldm, ldmia and pop instructions.
14051 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14053 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14055 2014-01-15 Pedro Alves <palves@redhat.com>
14057 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14058 (go32_resume, go32_fetch_registers, store_register)
14059 (go32_store_registers, go32_prepare_to_store)
14060 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14061 (go32_create_inferior, go32_can_run, go32_terminal_init)
14062 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14065 2014-01-15 Tom Tromey <tromey@redhat.com>
14067 * target.h (async_callback_ftype): New typedef.
14068 (struct target_ops) <to_async>: Use it.
14070 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14072 * python/py-value.c (get_field_type): Remove unnecessary curly
14073 braces for single-statement if block.
14075 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14077 * python/py-type.c (convert_field): Add missing empty line
14078 after declarations.
14080 2014-01-14 Doug Evans <dje@google.com>
14082 * symfile.h (expand_symtabs_matching): Renamed from
14083 expand_partial_symbol_names. Update prototype.
14084 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14085 * symfile.c (expand_symtabs_matching): Renamed from
14086 expand_partial_symbol_names. New args file_matcher, kind.
14087 Rename arg fun to symbol_matcher.
14088 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14089 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14090 ada_expand_partial_symbol_name.
14091 (ada_make_symbol_completion_list): Update to call
14092 expand_symtabs_matching.
14093 (ada_add_global_exceptions): Call expand_symtabs_matching.
14094 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14095 call map_symbol_filenames.
14096 * symtab.c (sources_info): Update to call map_symbol_filenames.
14097 (search_symbols): Call expand_symtabs_matching.
14098 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14099 (default_make_symbol_completion_list_break_on): Update to call
14100 expand_symtabs_matching.
14101 (make_source_files_completion_list): Update to call
14102 map_symbol_filenames.
14104 2014-01-14 Doug Evans <dje@google.com>
14106 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14107 (expand_symtabs_symbol_matcher_ftype): New typedef.
14108 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14109 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14110 * symfile.c (expand_partial_symbol_names): Update to use
14111 expand_symtabs_symbol_matcher_ftype.
14112 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14113 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14114 Arg name_matcher renamed to symbol_matcher.
14115 * psymtab.c (recursively_search_psymtabs): Update to use
14116 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14118 (expand_symtabs_matching_via_partial): Update to use
14119 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14120 Arg name_matcher renamed to symbol_matcher.
14122 2014-01-14 Doug Evans <dje@google.com>
14124 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14125 (map_partial_symbol_filenames): Ditto.
14126 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14127 (map_partial_symbol_filenames): Ditto.
14128 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14129 (map_partial_symbol_filenames): Ditto.
14130 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14131 (map_partial_symbol_filenames): Ditto.
14132 * symtab.c: Delete #include "psymtab.h".
14134 2014-01-14 Pedro Alves <palves@redhat.com>
14135 Tom Tromey <tromey@redhat.com>
14137 * infrun.c (use_displaced_stepping): Use find_record_target
14138 instead of RECORD_IS_USED.
14139 (adjust_pc_after_break): Use record_full_is_used instead of
14141 * record-btrace.c (record_btrace_open): Call record_preopen
14142 instead of checking RECORD_IS_USED.
14143 * record-full.c (record_full_shortname)
14144 (record_full_core_shortname): New globals.
14145 (record_full_is_used): New function.
14146 (find_full_open): Call record_preopen instead of checking
14148 (init_record_full_ops): Set the target's shortname to
14149 record_full_shortname.
14150 (init_record_full_core_ops): Set the target's shortname to
14151 record_full_core_shortname.
14152 * record-full.h (record_full_is_used): Declare.
14153 * record.c (find_record_target): Make extern.
14154 (record_preopen): New function.
14155 * record.h (RECORD_IS_USED): Delete macro.
14156 (find_record_target, record_preopen): Declare functions.
14158 2014-01-14 Yao Qi <yao@codesourcery.com>
14160 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14161 'len''s type to ULONGEST.
14162 (core_xfer_shared_libraries_aix): Likewise.
14163 * gdbarch.c, gdbarch.h: Regenerated.
14164 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14165 Change type of 'len' to ULONGEST.
14166 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14167 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14169 2014-01-14 Yao Qi <yao@codesourcery.com>
14171 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14172 type of 'len' to ULONGEST.
14173 (linux_xfer_osdata_processgroups): Likewise.
14174 (linux_xfer_osdata_threads): Likewise.
14175 (linux_xfer_osdata_fds): Likewise.
14176 (linux_xfer_osdata_isockets): Likewise.
14177 (linux_xfer_osdata_shm): Likewise.
14178 (linux_xfer_osdata_sem): Likewise.
14179 (linux_xfer_osdata_msg): Likewise.
14180 (linux_common_xfer_osdata): Likewise.
14181 (struct osdata_type) <getter>: Likewise.
14182 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14185 2014-01-14 Yao Qi <yao@codesourcery.com>
14187 * target.h (target_xfer_partial_ftype): Update.
14188 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14190 * aix-thread.c (aix_thread_xfer_partial): Change type of
14191 argument 'len' to ULONGEST.
14192 * auxv.c (procfs_xfer_auxv): Likewise.
14193 (ld_so_xfer_auxv): Likewise.
14194 (memory_xfer_auxv): Likewise.
14195 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14196 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14197 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14198 * corelow.c (core_xfer_partial): Likewise.
14199 * ctf.c (ctf_xfer_partial): Likewise.
14200 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14202 (darwin_read_dyld_info): Likewise.
14203 (darwin_xfer_partial): Likewise.
14204 * exec.c (section_table_xfer_memory_partial): Likewise.
14205 (exec_xfer_partial): Likewise.
14206 * exec.h (section_table_xfer_memory_partial): Update
14208 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14209 instead of plongest.
14210 (gnu_xfer_partial): Likewise.
14211 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14212 (ia64_hpux_xfer_solib_got): Likewise.
14213 (ia64_hpux_xfer_partial): Likewise.
14214 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14215 * inf-ptrace.c (inf_ptrace_xfer_partial):
14216 * inf-ttrace.c (inf_ttrace_xfer_partial):
14217 * linux-nat.c (linux_xfer_siginfo): Likewise.
14218 (linux_nat_xfer_partial): Likewise.
14219 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14220 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14221 * monitor.c (monitor_xfer_memory): Likewise.
14222 (monitor_xfer_partial): Likewise.
14223 * procfs.c (procfs_xfer_partial): Likewise.
14224 * record-full.c (record_full_xfer_partial): Likewise.
14225 (record_full_core_xfer_partial): Likewise.
14226 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14227 instead of plongest.
14228 (gdbsim_xfer_partial): Likewise.
14229 * remote.c (remote_xfer_partial): Likewise.
14230 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14231 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14233 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14234 (rs6000_xfer_shared_libraries): Likewise.
14235 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14236 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14237 (sparc_xfer_partial): Likewise.
14238 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14239 (spu_xfer_partial): Likewise.
14240 * spu-multiarch.c (spu_xfer_partial): Likewise.
14241 * target.c (target_read_live_memory): Likewise.
14242 (memory_xfer_live_readonly_partial): Likewise.
14243 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14244 (target_xfer_partial, default_xfer_partial): Likewise.
14245 (current_xfer_partial): Likewise.
14246 * tracepoint.c (tfile_xfer_partial): Likewise.
14247 * windows-nat.c (windows_xfer_memory): Likewise. Call
14248 pulongest instead of plongest.
14249 (windows_xfer_partial): Likewise.
14250 (windows_xfer_shared_libraries): Likewise.
14252 2014-01-14 Yao Qi <yao@codesourcery.com>
14254 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14255 target_xfer_partial_ftype.
14257 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14261 * valops.c (value_struct_elt_bitpos): New function
14262 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14263 object to 'None' if the field name is an empty string ("").
14264 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14265 attribute to look for a field when 'name' is 'None'.
14266 (get_field_type): New function
14268 2014-01-13 Doug Evans <dje@google.com>
14271 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14272 (try_open_dwop_file): Ditto.
14273 * gdb_bfd.c: #include "vec.h".
14274 (bfdp): New typedef.
14275 (struct gdb_bfd_data): New member included_bfds.
14276 (gdb_bfd_unref): Unref all included bfds.
14277 (gdb_bfd_record_inclusion): New function.
14278 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14280 2014-01-13 Tom Tromey <tromey@redhat.com>
14282 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14284 2014-01-13 Tom Tromey <tromey@redhat.com>
14286 * defs.h (use_windows): Remove.
14287 * gdb.c (main): Update.
14288 * main.c (captured_main, gdb_main): Update.
14289 * main.h (struct captured_main_args) <use_windows>: Remove.
14290 * top.c (use_windows): Remove.
14292 2014-01-13 Tom Tromey <tromey@redhat.com>
14294 * defs.h (deprecated_flush_hook): Remove.
14296 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14299 * linux-thread-db.c (try_thread_db_load): Add parameter
14300 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14301 (try_thread_db_load_from_pdir_1): Move it there from here.
14302 (try_thread_db_load_from_sdir): Update caller.
14303 (try_thread_db_load_from_dir): Move it there from here.
14305 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14307 * regformats/regdat.sh: Always rewrite the register file.
14309 2014-01-13 Pedro Alves <palves@redhat.com>
14311 * Makefile.in (CHECK_HEADERS): New variable.
14312 (check-headers:): New rule.
14314 2014-01-13 Tom Tromey <tromey@redhat.com>
14316 * cli/cli-setshow.c (do_set_command): Update.
14317 * defs.h (deprecated_set_hook): Remove.
14318 * top.c (deprecated_set_hook): Remove.
14320 2014-01-13 Pedro Alves <palves@redhat.com>
14322 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14323 the tracepoint if the PC is a pseudo-register.
14325 2014-01-13 Tom Tromey <tromey@redhat.com>
14327 * defs.h (XCALLOC): Remove.
14328 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14329 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14330 * dwarf2loc.c (allocate_piece_closure): Likewise.
14331 * elfread.c (elf_symfile_segments): Likewise.
14332 (elf_symfile_segments): Likewise.
14333 * gdbtypes.c (copy_type_recursive): Likewise.
14334 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14335 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14336 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14338 * mt-tdep.c (mt_gdbarch_init): Likewise.
14339 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14341 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14342 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14343 * registry.c (registry_alloc_data): Likewise.
14344 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14345 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14346 * serial.c (serial_fdopen_ops): Likewise.
14347 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14349 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14350 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14353 2014-01-13 Tom Tromey <tromey@redhat.com>
14355 * defs.h (XMALLOC): Remove.
14356 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14357 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14358 * cli-out.c (struct ui_out *): Likewise.
14359 * cli/cli-dump.c (add_dump_command): Likewise.
14360 (add_dump_command): Likewise.
14361 * complaints.c (get_complaints): Likewise.
14362 (find_complaint): Likewise.
14363 * dwarf2-frame.c (execute_cfa_program): Likewise.
14364 * dwarf2read.c (abbrev_table_read_table): Likewise.
14365 * gdbarch.sh: Likewise.
14366 * gdbarch.c: Rebuild.
14367 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14368 * interps.c (interp_new): Likewise.
14369 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14370 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14371 * mi/mi-console.c (mi_console_file_new): Likewise.
14372 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14373 * mi/mi-out.c (mi_out_new): Likewise.
14374 * mi/mi-parse.c (mi_parse): Likewise.
14375 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14376 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14377 * observer.c (xalloc_observer_list_node): Likewise.
14378 * regcache.c (regcache_xmalloc_1): Likewise.
14379 * reggroups.c (reggroup_new): Likewise.
14380 (_initialize_reggroup): Likewise.
14381 * registry.c (register_data_with_cleanup): Likewise.
14382 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14383 * ser-base.c (serial_ttystate): Likewise.
14384 * ser-mingw.c (make_pipe_state): Likewise.
14385 * ser-pipe.c (pipe_open): Likewise.
14386 * serial.c (serial_open): Likewise.
14387 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14388 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14389 (tui_alloc_win_info): Likewise.
14390 (tui_add_content_elements): Likewise.
14391 * tui/tui-file.c (tui_file_new): Likewise.
14392 * tui/tui-out.c (tui_out_new): Likewise.
14393 * ui-file.c (mem_file_new): Likewise.
14394 * ui-out.c (push_level): Likewise.
14395 (make_cleanup_ui_out_end): Likewise.
14396 (append_header_to_list): Likewise.
14397 (ui_out_new): Likewise.
14398 * user-regs.c (user_reg_add_builtin): Likewise.
14400 2014-01-13 Tom Tromey <tromey@redhat.com>
14402 * defs.h (XZALLOC): Remove.
14403 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14404 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14405 (get_ada_tasks_inferior_data): Likewise.
14406 * auto-load.c (get_auto_load_pspace_data): Likewise.
14407 * auxv.c (get_auxv_inferior_data): Likewise.
14408 * bfd-target.c (target_bfd_reopen): Likewise.
14409 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14410 (deprecated_insert_raw_breakpoint): Likewise.
14411 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14412 * corelow.c (core_open): Likewise.
14413 * darwin-nat.c (darwin_check_new_threads): Likewise.
14414 (darwin_attach_pid): Likewise.
14415 * dummy-frame.c (dummy_frame_push): Likewise.
14416 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14417 * dwarf2loc.c (allocate_piece_closure): Likewise.
14418 * elfread.c (elf_symfile_segments): Likewise.
14419 * eval.c (ptrmath_type_p): Likewise.
14420 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14421 * gdbtypes.c (alloc_type_arch): Likewise.
14422 (alloc_type_instance): Likewise.
14423 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14424 * inf-child.c (inf_child_can_use_agent): Likewise.
14425 * inflow.c (get_inflow_inferior_data): Likewise.
14426 * infrun.c (save_infcall_suspend_state): Likewise.
14427 * jit.c (jit_reader_load): Likewise.
14428 (get_jit_objfile_data): Likewise.
14429 (get_jit_program_space_data): Likewise.
14430 (jit_object_open_impl): Likewise.
14431 (jit_symtab_open_impl): Likewise.
14432 (jit_block_open_impl): Likewise.
14433 (jit_frame_sniffer): Likewise.
14434 * linux-fork.c (add_fork): Likewise.
14435 * maint.c (make_command_stats_cleanup): Likewise.
14436 * objfiles.c (get_objfile_pspace_data): Likewise.
14437 * opencl-lang.c (struct lval_closure): Likewise.
14438 * osdata.c (osdata_start_osdata): Likewise.
14439 * progspace.c (new_address_space): Likewise.
14440 (add_program_space): Likewise.
14441 * remote-sim.c (get_sim_inferior_data): Likewise.
14442 * sh-tdep.c (sh_gdbarch_init): Likewise.
14443 * skip.c (Ignore): Likewise.
14444 (skip_delete_command): Likewise.
14445 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14446 (library_list_start_library): Likewise.
14447 (solib_aix_current_sos): Likewise.
14448 * solib-darwin.c (get_darwin_info): Likewise.
14449 (darwin_current_sos): Likewise.
14450 * solib-dsbt.c (get_dsbt_info): Likewise.
14451 * solib-ia64-hpux.c (new_so_list): Likewise.
14452 (ia64_hpux_get_solib_linkage_addr): Likewise.
14453 * solib-spu.c (append_ocl_sos): Likewise.
14454 (spu_current_sos): Likewise.
14455 * solib-svr4.c (get_svr4_info): Likewise.
14456 (svr4_keep_data_in_core): Likewise.
14457 (library_list_start_library): Likewise.
14458 (svr4_default_sos): Likewise.
14459 (svr4_read_so_list): Likewise.
14460 * solib-target.c (library_list_start_library): Likewise.
14461 (solib_target_current_sos): Likewise.
14462 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14463 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14464 * symfile.c (default_symfile_segments): Likewise.
14465 * target-descriptions.c (tdesc_data_init): Likewise.
14466 (tdesc_create_reg): Likewise.
14467 (struct tdesc_type *): Likewise.
14468 (tdesc_create_vector): Likewise.
14469 (tdesc_set_struct_size): Likewise.
14470 (struct tdesc_type *): Likewise.
14471 (tdesc_free_feature): Likewise.
14472 (tdesc_create_feature): Likewise.
14473 * windows-nat.c (windows_add_thread): Likewise.
14474 (windows_make_so): Likewise.
14475 * xml-support.c (gdb_xml_body_text): Likewise.
14476 (gdb_xml_create_parser_and_cleanup): Likewise.
14477 (xml_process_xincludes): Likewise.
14478 * xml-syscall.c (allocate_syscalls_info): Likewise.
14479 (syscall_create_syscall_desc): Likewise.
14481 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14483 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14484 function, with code from i386_stap_parse_special_token.
14485 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14486 (i386_stap_parse_special_token): Move code to the two functions
14487 above; simplify it.
14489 2014-01-09 Pedro Alves <palves@redhat.com>
14490 Hui Zhu <hui@codesourcery.com>
14493 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14494 bp_err_string. Don't mark the location shlib_disabled if the
14495 error thrown wasn't a generic or memory error. Catch errors
14496 thrown while inserting breakpoints in overlayed code. Output
14497 error message of software breakpoints.
14498 * remote.c (remote_insert_breakpoint): If this breakpoint has
14499 target-side commands but this stub doesn't support Z0 packets,
14500 throw NOT_SUPPORTED_ERROR error.
14501 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14502 * target.h (target_insert_breakpoint): Extend comment.
14503 (target_insert_hw_breakpoint): Add comment.
14505 2014-01-08 Pedro Alves <palves@redhat.com>
14507 * remote.c (remote_add_thread): Add threads silently if starting
14509 (remote_notice_new_inferior): If in all-stop, and starting up,
14510 don't call notice_new_inferior.
14511 (get_current_thread): New function, factored out from ...
14512 (add_current_inferior_and_thread): ... this. Adjust.
14513 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14514 found any thread, then select the remote's current thread as GDB's
14515 current thread too.
14517 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14519 * NEWS: Create a new section for the next release branch.
14520 Rename the section of the current branch, now that it has
14523 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14525 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14526 * version.in: Bump version to 7.7.50.DATE-cvs.
14528 2014-01-08 Yao Qi <yao@codesourcery.com>
14530 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14531 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14532 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14534 2014-01-08 Yao Qi <yao@codesourcery.com>
14536 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14537 return value of bfd_get_filename to symbol_file_add_from_bfd.
14539 2014-01-08 Pierre Muller <muller@sourceware.org>
14542 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14543 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14544 to prim_record_mininal_symbol_and_info.
14545 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14546 in call to prim_record_minimal_symbol_and_info.
14547 (read_pe_exported_syms): Set index field of section_data.
14549 2014-01-07 Andrew Pinski <apinski@cavium.com>
14551 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14552 * features/aarch64.c: Regenerate.
14554 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14556 * target.c (return_null): Define.
14557 (update_current_target): Use it instead of return_zero for
14558 functions that return a pointer.
14560 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14562 * source.c (add_path): Fix check for duplicated paths in the previously
14565 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14567 * ada-lang.c: Remove duplicated include statements.
14568 * alphabsd-nat.c: Ditto.
14569 * amd64-darwin-tdep.c: Ditto.
14570 * amd64fbsd-nat.c: Ditto.
14571 * auto-load.c: Ditto.
14573 * breakpoint.c: Ditto.
14574 * dbxread.c: Ditto.
14575 * fork-child.c: Ditto.
14576 * gdb_usleep.c: Ditto.
14577 * i386-darwin-tdep.c: Ditto.
14578 * i386fbsd-nat.c: Ditto.
14580 * inferior.c: Ditto.
14581 * jv-lang.c: Ditto.
14582 * linux-nat.c: Ditto.
14583 * linux-tdep.c: Ditto.
14584 * m68kbsd-nat.c: Ditto.
14585 * m68klinux-nat.c: Ditto.
14586 * microblaze-tdep.c: Ditto.
14587 * mips-linux-tdep.c: Ditto.
14588 * mn10300-tdep.c: Ditto.
14589 * nto-tdep.c: Ditto.
14590 * opencl-lang.c: Ditto.
14592 * printcmd.c: Ditto.
14593 * regcache.c: Ditto.
14594 * remote-m32r-sdi.c: Ditto.
14596 * symfile.c: Ditto.
14598 * tilegx-linux-nat.c: Ditto.
14599 * tilegx-tdep.c: Ditto.
14600 * tracepoint.c: Ditto.
14602 * vaxbsd-nat.c: Ditto.
14603 * windows-nat.c: Ditto.
14604 * xtensa-tdep.c: Ditto.
14606 2014-01-07 Yao Qi <yao@codesourcery.com>
14608 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14610 2014-01-07 Yao Qi <yao@codesourcery.com>
14611 Joel Brobecker <brobecker@adacore.com>
14613 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14614 (pdc_write_regs): Likewise.
14615 (fetch_regs_kernel_thread): Likewise.
14616 (store_regs_kernel_thread): Likewise.
14618 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14620 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14621 tagged type objects to their actual type.
14623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14625 * ada-valprint.c (print_field_values): Add "language" parameter.
14626 Update calls to print_field_values and print_variant_part.
14627 Pass new parameter "language" in call to val_print instead
14628 of "current_language". Replace call to ada_val_print by call
14630 (print_variant_part): Add "language" parameter.
14631 (ada_val_print_struct_union): Update call to print_field_values.
14633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14635 * ada-valprint.c (ui_memcpy): Delete.
14636 (ada_print_floating): Update documentation. Add empty line
14637 between between function documentation and implementation.
14638 Delete variable "buffer". Use ui_file_xstrdup in place of
14639 ui_file_put. Minor adjustments following this change.
14641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14643 * ada-valprint.c (ada_val_print_string): New function,
14644 extracted from ada_val_print_array.
14645 (ada_val_print_array): Replace extracted code by call
14646 to ada_val_print_string followed by a return. Move
14647 "else" branch to the function's top block.
14649 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14651 * ada-valprint.c (ada_val_print_array): Move implementation
14652 down. Rename parameter "offset" and "val" into "offset_aligned"
14653 and "original_value" respectively. Add parameter "offset".
14655 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14657 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14658 re-organizing the code. Change the "???" message printed
14659 when target type is a TYPE_CODE_UNDEF into
14660 "<ref to undefined type>".
14662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14664 * ada-valprint.c (print_record): Delete, implementation inlined...
14665 (ada_val_print_struct_union): ... here. Remove call to
14666 ada_check_typedef in inlined implementation.
14668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14670 * ada-valprint.c (ada_val_print_gnat_array): New function,
14671 extracted from ada_val_print_1;
14672 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14673 (ada_val_print_flt, ada_val_print_struct_union)
14674 (ada_val_print_ref): Likewise.
14675 (ada_val_print_1): Delete variables i and elttype.
14676 Replace extracted-out code by call to corresponding
14679 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14681 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14683 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14685 * ada-valprint.c (ada_val_print_1): Replace calls to
14686 ada_val_print_1 by calls to val_print.
14688 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14690 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14691 Update calls to self accordingly. Replace calls to c_val_print
14692 by calls to val_print.
14694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14696 * ada-valprint.c (print_record): Delete declaration.
14697 (adjust_type_signedness, ada_val_print_1): Likewise.
14698 (ada_val_print): Move function implementation down.
14699 (print_variant_part, print_field_values, print_record):
14700 Move function implementation up.
14702 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14704 * python/py-type.c (typy_get_name): New function.
14705 (type_object_getset): Add entry for attribute "name".
14706 * NEWS: Add entry mentioning this new attribute.
14708 2014-01-07 Yao Qi <yao@codesourcery.com>
14710 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14713 2014-01-07 Yao Qi <yao@codesourcery.com>
14715 * gnu-nat.c (info_port_rights): Add qualifier const to
14718 2014-01-07 Yao Qi <yao@codesourcery.com>
14720 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14722 2014-01-07 Yao Qi <yao@codesourcery.com>
14724 * gnu-nat.c (make_inf) Update declaration.
14725 (make_inf): Make it static.
14726 (inf_set_traced): Likewise.
14727 (inf_port_to_thread, inf_task_died_status): Likewise.
14729 2014-01-07 Yao Qi <yao@codesourcery.com>
14731 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14733 2014-01-07 Yao Qi <yao@codesourcery.com>
14735 * gnu-nat.c (_initialize_gnu_nat): Declare.
14737 2014-01-07 Yao Qi <yao@codesourcery.com>
14739 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14741 (struct gdbarch_info) <byte_order>: Change type to
14743 <byte_order_for_code>: Likewise.
14744 * gdbarch.c, gdbarch.h: Regenerated.
14746 2014-01-06 Sasha Smundak <asmundak@google.com>
14748 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14750 2014-01-06 Tom Tromey <tromey@redhat.com>
14752 * doublest.c (convert_doublest_to_floatformat): Use const, not
14754 * somread.c (som_symtab_read): Likewise.
14756 2014-01-07 Hui Zhu <hui@codesourcery.com>
14758 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14759 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14760 (gdb_bfd_fopen): Ditto.
14761 (gdb_bfd_openr): Ditto.
14762 (gdb_bfd_openw): Ditto.
14763 (gdb_bfd_openr_iovec): Ditto.
14764 (gdb_bfd_fdopenr): Ditto.
14765 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14766 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14768 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14770 * symfile-mem.c (symbol_file_add_from_memory): Removed
14771 gdb_bfd_stash_filename.
14773 2014-01-03 Doug Evans <dje@google.com>
14775 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14778 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14780 Update year range in copyright notice of all files.
14782 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14784 * top.c (print_gdb_version): Set copyright year to 2014.
14786 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14788 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14790 For older changes see ChangeLog-2013.
14796 version-control: never