1 2014-11-18 Doug Evans <xdje42@gmail.com>
3 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
6 2014-11-18 Doug Evans <xdje42@gmail.com>
8 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
9 symtab.dirname updated to use it.
11 2014-11-18 Doug Evans <xdje42@gmail.com>
13 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
14 symtab.objfile updated to use it.
16 2014-11-18 Doug Evans <xdje42@gmail.com>
18 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
20 2014-11-18 Doug Evans <xdje42@gmail.com>
22 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
24 * findvar.c (default_read_var_value): Ditto.
25 * jv-lang.c (add_class_symtab_symbol): Ditto.
26 * parse.c (operator_check_standard): Ditto.
27 * printcmd.c (address_info): Ditto.
28 * symtab.c (fixup_symbol_section): Ditto.
29 (skip_prologue_sal): Ditto.
30 * tracepoint.c (scope_info): Ditto.
31 * valops.c (find_function_in_inferior): Ditto.
32 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
33 * python/py-symbol.c (set_symbol): Ditto.
35 2014-11-18 Doug Evans <xdje42@gmail.com>
37 * buildsym.c (main_subfile): New static global.
38 (free_subfiles_list): New function.
39 (start_symtab): Set main_subfile.
40 (restart_symtab): Replace init of subfiles, current_subfile with
41 call to free_subfiles_list.
42 (watch_main_source_file_lossage): Use main_subfile.
43 (reset_symtab_globals): Replace init of current_subfile with call
44 to free_subfiles_list.
45 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
46 functions, split out from ...
47 (end_symtab_from_static_block): ... here. Rewrite to call them.
49 2014-11-18 Doug Evans <xdje42@gmail.com>
51 The result of symtab expansion is always a primary symtab.
52 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
53 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
54 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
55 (psymtab_to_symtab): Add comment and assert.
56 (map_matching_symbols_psymtab): Remove unnecessary test for
59 2014-11-15 Doug Evans <xdje42@gmail.com>
62 * symtab.c (find_pc_line_symtab): New function.
63 * symtab.h (find_pc_line_symtab): Declare.
64 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
66 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
67 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
68 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
69 * tui/tui-win.c (make_visible_with_new_height): Ditto.
70 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
71 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
73 2014-11-15 Doug Evans <xdje42@gmail.com>
75 * symtab.c (expand_symtab_containing_pc): Renamed from
76 find_pc_sect_symtab_via_partial. All callers updated.
78 2014-11-15 Yao Qi <yao@codesourcery.com>
80 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
82 2014-11-14 Joel Brobecker <brobecker@adacore.com>
84 * common/common-defs.h: Move <stdarg.h> #include ahead of
87 2014-11-14 Pedro Alves <palves@redhat.com>
89 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
90 [!PHONY_ICONV] (gdb_iconv): New function.
91 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
93 2014-11-13 Doug Evans <dje@google.com>
96 * dwarf2read.c (find_slot_in_mapped_hash): Handle
97 "(anonymous namespace)".
99 2014-11-13 Doug Evans <dje@google.com>
101 * dwarf2read.c (update_enumeration_type_from_children): Avoid
104 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
106 * NEWS (maint set target-async): Fix typo.
108 2014-11-12 Pedro Alves <palves@redhat.com>
110 * infrun.c (enum infwait_states, infwait_state): Delete.
112 2014-11-12 Pedro Alves <palves@redhat.com>
114 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
115 Rewrite stepping over a permanent breakpoint.
116 (thread_still_needs_step_over, proceed): Don't set
117 stepping_over_breakpoint for permanent breakpoints.
118 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
119 single-step breakpoints out of the target on hardware step
121 (process_event_stop_test): If stepping a permanent breakpoint
122 doesn't hit the step-resume breakpoint, delete the step-resume
124 (switch_back_to_stepped_thread): Also check if the stepped thread
125 has advanced already on hardware step targets.
126 (currently_stepping): Return true if the thread stepped a
129 2014-11-12 Pedro Alves <palves@redhat.com>
131 Mark locations as permanent, not the whole breakpoint.
132 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
133 (mark_breakpoints_out): Don't mark permanent breakpoints as
135 (breakpoint_init_inferior): Use mark_breakpoints_out.
136 (breakpoint_here_p): Adjust.
137 (bpstat_stop_status, describe_other_breakpoints): Remove handling
138 of permanent breakpoints.
139 (make_breakpoint_permanent): Mark each location as permanent,
140 instead of marking the breakpoint.
141 (add_location_to_breakpoint): If the location is permanent, mark
142 it as such, and as inserted.
143 (init_breakpoint_sal): Don't make the breakpoint permanent here.
144 (bp_location_compare, update_global_location_list): Adjust.
145 (update_breakpoint_locations): Don't make the breakpoint permanent
147 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
149 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
150 (struct bp_location) <permanent>: New field.
151 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
152 reference to bp_permanent.
154 2014-11-12 Pedro Alves <palves@redhat.com>
156 * arch-utils.c (default_skip_permanent_breakpoint): New function.
157 * arch-utils.h (default_skip_permanent_breakpoint): New
159 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
160 Install default_skip_permanent_breakpoint as default method.
161 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
162 (i386_gdbarch_init): Don't install it.
163 * infrun.c (resume): Assume there's always a
164 gdbarch_skip_permanent_breakpoint implementation.
165 * gdbarch.h, gdbarch.c: Regenerate.
167 2014-11-11 Daniel Colascione <dancol@dancol.org>
169 Warn about cross-PID-namespace debugging.
170 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
171 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
172 * linux-thread-db.c (check_pid_namespace_match): New function.
173 (thread_db_inferior_created): Call it.
175 2014-11-10 Doug Evans <xdje42@gmail.com>
177 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
178 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
180 2014-11-10 Doug Evans <xdje42@gmail.com>
182 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
184 2014-11-10 Doug Evans <xdje42@gmail.com>
187 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
188 (lookup_static_symbol): Move definition to new location and rewrite.
189 (lookup_symbol_in_objfile): New function.
190 (lookup_symbol_global_iterator_cb): Call it.
192 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
194 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
196 2014-11-07 Pedro Alves <palves@redhat.com>
198 * infrun.c (process_event_stop_test) <subroutine check>: Don't
199 check if we did a "nexti" inside a prologue.
200 * symtab.c (in_prologue): Delete function.
201 * symtab.h (in_prologue): Delete declaration.
203 2014-11-06 Doug Evans <xdje42@gmail.com>
205 * symtab.h (lookup_global_symbol): Improve function comment.
207 2014-11-06 Doug Evans <xdje42@gmail.com>
209 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
211 * symtab.h (lookup_global_symbol): Update decl.
212 (lookup_static_symbol): Move decl to better location.
214 2014-11-06 Doug Evans <xdje42@gmail.com>
216 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
218 2014-11-06 Doug Evans <xdje42@gmail.com>
220 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
222 (lookup_symbol_in_all_objfiles): Renamed from
223 lookup_symbol_aux_symtabs. All callers updated.
224 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
226 (lookup_symbol_in_objfile_symtabs): Renamed from
227 lookup_symbol_aux_objfile. All callers updated.
229 2014-11-06 Doug Evans <xdje42@gmail.com>
231 * symtab.c (lookup_symbol_in_block): Renamed from
232 lookup_symbol_aux_block. All callers updated.
234 2014-11-06 Doug Evans <xdje42@gmail.com>
236 * symtab.c (lookup_static_symbol): Renamed from
237 lookup_static_symbol_aux. All callers updated.
238 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
241 2014-11-06 Doug Evans <xdje42@gmail.com>
243 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
244 * block.c (block_lookup_symbol): Use it.
245 * cp-support.c (make_symbol_overload_list_block): Use it.
246 * symtab.c (iterate_over_symbols): Use it.
248 2014-11-06 Doug Evans <xdje42@gmail.com>
250 * symtab.c (lookup_block_symbol): Moved to ...
251 * block.c (block_lookup_symbol): ... here and renamed.
253 * block.h (block_lookup_symbol): Declare.
254 * symtab.h (lookup_block_symbol): Delete.
256 2014-11-06 Doug Evans <xdje42@gmail.com>
258 * ada-lang.c (ada_make_symbol_completion_list): Use
259 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
260 * symtab.c (lookup_objfile_from_block): Ditto.
262 2014-11-06 Doug Evans <xdje42@gmail.com>
264 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
267 2014-11-06 Doug Evans <xdje42@gmail.com>
269 * objfiles.c (get_objfile_arch): Constify.
270 * objfiles.h (get_objfile_arch): Update prototype.
271 * solib.c (solib_global_lookup): Fetch arch from objfile,
274 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
276 * nios2-tdep.c (wild_insn): Delete.
277 (profiler_insn, irqentry_insn): Delete.
278 (nios2_match_sequence): Delete.
279 (nios2_analyze_prologue): Update comments. Remove matching
280 of obsolete profiler_insn and irqentry_insn sequences.
282 2014-11-05 Alan Modra <amodra@gmail.com>
284 * charset.c (convert_between_encodings): Shrink obstack using
286 * minsyms.c (install_minimal_symbols): Likewise.
287 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
288 to char* before doing pointer arithmetic.
290 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
292 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
294 2014-11-04 Pedro Alves <palves@redhat.com>
296 * breakpoint.c (breakpoint_thread_match): Delete function.
297 * breakpoint.h (breakpoint_thread_match): Delete declaration.
299 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
302 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
303 the method args also under EVAL_SKIP when evaluating method
304 calls under EVAL_SKIP.
306 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
308 * dwarf2loc.c (read_pieced_value): Do big endian
309 processing only if gdb_regnum is not -1.
310 (write_pieced_value): Ditto.
312 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
314 * arm-linux-tdep.c (arm_linux_init_abi): Use
315 info.byte_order_for_code to choose endianity of breakpoint
316 instructions snippets.
318 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
320 * arm-tdep.c (extract_arm_insn): Use
321 gdbarch_byte_order_for_code to read arm instruction.
323 2014-11-02 Doug Evans <xdje42@gmail.com>
325 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
327 2014-11-02 Doug Evans <xdje42@gmail.com>
329 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
330 main_subfile before returning.
332 2014-10-31 Doug Evans <xdje42@gmail.com>
334 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
335 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
337 2014-10-31 Doug Evans <xdje42@gmail.com>
339 * valops.c (value_cast_pointers): Fix whitespace.
340 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
343 2014-10-30 Doug Evans <dje@google.com>
345 * NEWS: Mention ability add attributes to gdb.Objfile and
346 gdb.Progspace objects.
347 * python/py-objfile.c (objfile_object): New member dict.
348 (objfpy_dealloc): Py_XDECREF dict.
349 (objfpy_initialize): Initialize dict.
350 (objfile_getset): Add __dict__.
351 (objfile_object_type): Set tp_dictoffset member.
352 * python/py-progspace.c (progspace_object): New member dict.
353 (pspy_dealloc): Py_XDECREF dict.
354 (pspy_initialize): Initialize dict.
355 (pspace_getset): Add __dict__.
356 (pspace_object_type): Set tp_dictoffset member.
358 2014-10-30 Yao Qi <yao@codesourcery.com>
360 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
361 replace '\\' with '\\\\'.
363 2014-10-29 Joel Brobecker <brobecker@adacore.com>
367 2014-10-29 Pedro Alves <palves@redhat.com>
370 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
371 instead of assuming a thread with a stepping range is always
374 2014-10-29 Pedro Alves <palves@redhat.com>
377 * event-top.c (change_line_handler): Call
378 gdb_rl_callback_handler_remove instead of
379 rl_callback_handler_remove.
380 (callback_handler_installed): New global.
381 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
382 (gdb_rl_callback_handler_reinstall): New functions.
383 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
384 gdb_rl_callback_handler_install instead of
385 rl_callback_handler_remove and rl_callback_handler_install.
386 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
387 instead of rl_callback_handler_remove.
388 * event-top.h (gdb_rl_callback_handler_remove)
389 (gdb_rl_callback_handler_install)
390 (gdb_rl_callback_handler_reinstall): New declarations.
391 * infrun.c (reinstall_readline_callback_handler_cleanup): New
393 (fetch_inferior_event): Install it.
394 * top.c (gdb_readline_wrapper_line) Call
395 gdb_rl_callback_handler_remove instead of
396 rl_callback_handler_remove.
397 (gdb_readline_wrapper_cleanup): Don't call
398 rl_callback_handler_install.
400 2014-10-29 Pedro Alves <palves@redhat.com>
402 * event-top.c (command_line_handler): Clear the first byte of
403 linebuffer, when it is first allocated.
405 2014-10-29 Pedro Alves <palves@redhat.com>
407 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
410 2014-10-29 Pedro Alves <palves@redhat.com>
414 * tui/tui-interp.c (tui_is_toplevel): Delete global.
415 (tui_allowed_p): Delete function.
416 * tui/tui.c: Include "interps.h".
417 (tui_enable): Don't use tui_allowed_p. Error out here with
418 detailed error messages if the TUI is the top level interpreter,
419 or if output is not a terminal. Use newterm instead of initscr,
420 and error out if initializing the terminal fails. Also error out if
421 the terminal doesn't support cursor addressing.
422 * tui/tui.h (tui_allowed_p): Delete declaration.
424 2014-10-29 Joel Brobecker <brobecker@adacore.com>
426 * arm-tdep.c (arm_skip_stack_protector): Return early if
427 address loaded by first "ldr" instruction does not have
428 a corresponding minimal symbol. Update comment.
430 2014-10-29 Yao Qi <yao@codesourcery.com>
432 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
433 loaded address correctly of ldr instruction.
435 2014-10-28 Pedro Alves <palves@redhat.com>
438 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
440 * infrun.c (resume) <stepping breakpoint instruction>: Set the
441 thread's stepped_breakpoint field. Skip if reverse debugging.
443 (init_thread_stepping_state, handle_signal_stop): Clear the
444 thread's stepped_breakpoint field.
446 2014-10-27 Pedro Alves <palves@redhat.com>
448 * remote.c (remote_thread_alive): New, factored out from ...
449 (remote_thread_alive): ... this.
450 (remote_update_thread_list): Bail out before deleting threads if
451 the target returned an empty list, and, the current thread has a
454 2014-10-27 Pedro Alves <palves@redhat.com>
456 * infrun.c (handle_signal_stop): Also skip handlers when a random
457 signal arrives while handling a "stepi" or a "nexti". Set the
458 thread's 'step_after_step_resume_breakpoint' flag.
460 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
462 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
463 (arm_record_ld_st_imm_offset): Reimplement to cover all
464 load/store cases for ARM opcode 010.
465 (arm_record_ld_st_multiple): Reimplement to cover all
466 load/store cases for ARM opcode 100.
468 2014-10-26 Doug Evans <xdje42@gmail.com>
470 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
472 2014-10-26 Doug Evans <xdje42@gmail.com>
474 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
475 parameter "kind" to "block_index".
476 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
478 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
480 2014-10-26 Doug Evans <xdje42@gmail.com>
482 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
484 2014-10-26 Doug Evans <xdje42@gmail.com>
486 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
489 2014-10-26 Doug Evans <xdje42@gmail.com>
491 * parser-defs.h (block_found): Move decl from here ...
492 * symtab.h (block_found): ... to here.
494 2014-10-26 Doug Evans <xdje42@gmail.com>
496 * symtab.h (struct field_of_this_result): Fix typo in comment.
497 (lookup_symbol_in_language): Move function comment here.
498 (lookup_symbol): Improve function comment.
499 (basic_lookup_symbol_nonlocal): Ditto.
500 (lookup_symbol_static, lookup_symbol_global): Ditto.
501 (lookup_symbol_aux_block): Ditto.
502 (lookup_language_this): Add function comment.
503 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
505 (lookup_block_symbol): Improve function comment.
506 (lookup_struct): Fix capitalization in function comment.
507 (lookup_transparent_type): Add function comment.
508 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
509 Improve function comment.
510 (lookup_objfile_from_block): Add function comment.
511 * symtab.c (lookup_symbol_in_language): Update function comment.
512 (lookup_symbol, lookup_language_this): Ditto.
513 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
514 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
515 (basic_lookup_symbol_nonlocal): Ditto.
516 (lookup_symbol_static, lookup_symbol_global): Ditto.
517 (lookup_transparent_type, lookup_block_symbol): Ditto.
519 2014-10-25 Doug Evans <xdje42@gmail.com>
521 * symtab.c (types_info): Delete forward decl.
522 (functions_info, variables_info, sources_info): Ditto.
523 (_initialize_symtab): Rewrite forward decl to use
524 initialize_file_ftype.
526 2014-10-25 Doug Evans <xdje42@gmail.com>
528 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
530 2014-10-25 Doug Evans <xdje42@gmail.com>
532 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
533 of local var child_die.
535 2014-10-24 Don Breazeal <donb@codesourcery.com>
537 * infrun.c (follow_fork_inferior): Update fork message printing
538 to use target_terminal_ours_for_output instead of
539 target_terminal_ours, to use _() for all format strings, to print
540 "vfork" instead of "fork" for vforks, and to add a detach message.
541 (handle_vfork_child_exec_or_exit): Update message printing to use
542 target_terminal_ours_for_output instead of target_terminal_ours, to
543 use _() for all format strings, and to fix some formatting.
545 2014-10-24 Pedro Alves <palves@redhat.com>
547 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
548 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
549 * config/vax/vax.mh: Delete.
550 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
551 obsolete configurations section.
552 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
553 * vax-nat.c: Delete file.
555 2014-10-24 Pedro Alves <palves@redhat.com>
557 * NEWS (Removed targets): Add OS/arch column.
559 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
561 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
562 on the arg type of a constructor only if it is of reference type.
564 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
566 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
567 accessors and constants from nios2 opcodes update.
568 (nios2_get_next_pc): Likewise.
570 2014-10-19 Doug Evans <xdje42@gmail.com>
572 * gdbthread.h (set_running): Fix comment.
573 (set_executing, finish_thread_state): Fix comment.
575 2014-10-18 Doug Evans <xdje42@gmail.com>
577 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
579 2014-10-17 Doug Evans <dje@google.com>
581 * NEWS: Mention new event gdb.clear_objfiles.
582 * python/py-event.h (emit_clear_objfiles_event): Clear
583 * python/py-events.h (events_object): New member clear_objfiles.
584 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
586 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
587 emit clear_objfiles event.
588 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
590 (emit_clear_objfiles_event): New function.
591 (clear_objfiles): New event.
592 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
594 * python/python.c (_initialize_python): Call
595 gdbpy_initialize_clear_objfiles_event.
597 2014-10-17 Doug Evans <dje@google.com>
599 * NEWS: Mention new gdb.Objfile.progspace attribute.
600 * python/py-objfile.c (objfpy_get_progspace): New function.
601 (objfile_getset): New entry for "progspace".
603 2014-10-17 Pedro Alves <palves@redhat.com>
606 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
607 returns a copy of the input.
608 (run_command_1, continue_command, step_1, jump_command)
609 (signal_command, until_command, advance_command, finish_command)
610 (attach_command): Adjust and install a cleanup to free the
613 2014-10-17 Pedro Alves <palves@redhat.com>
616 * infcmd.c (continue_1): If continuing all threads in the
617 foreground, make sure the inferior's terminal settings are put in
620 2014-10-17 Pedro Alves <palves@redhat.com>
623 * annotate.c (annotate_breakpoints_invalid): Use
624 target_terminal_our_for_output instead of target_terminal_ours.
625 Give back the terminal to the target.
626 (annotate_frames_invalid): Likewise.
628 2014-10-17 Pedro Alves <palves@redhat.com>
630 * target.c (enum terminal_state): New enum.
631 (terminal_state): New global.
632 (target_terminal_init): New function.
633 (target_terminal_inferior): Skip if inferior already owns the
635 (target_terminal_ours, target_terminal_ours_for_output): New
637 * target.h (target_terminal_init): Convert to function prototype.
638 (target_terminal_ours_for_output): Convert to function prototype
640 (target_terminal_ours): Convert to function prototype and tweak
642 * windows-nat.c (do_initial_windows_stuff): Call
643 target_terminal_init instead of child_terminal_init_with_pgrp.
645 2014-10-17 Pedro Alves <palves@redhat.com>
647 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
648 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
649 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
651 * NEWS: Mention that support for alpha*-*-osf* has been removed.
652 * ada-lang.h [__alpha__ && __osf__]
653 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
654 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
655 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
657 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
659 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
660 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
661 * configure: Regenerate.
662 * configure.ac: Remove references to osf.
663 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
664 section. Remove all other references to osf.
665 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
666 Remove all other references to osf.
667 * dec-thread.c: Delete file.
668 * defs.h (GDB_OSABI_OSF1): Delete.
669 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
671 * osabi.c (gdb_osabi_names): Delete "OSF/1".
672 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
674 (unconditionally_kill_inferior)
675 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
676 * solib-osf.c: Delete file.
678 2014-10-17 Pedro Alves <palves@redhat.com>
680 * remote.c (clear_threads_listing_context): Move higher up, out of
681 the HAVE_LIBEXPAT guard.
683 2014-10-16 Tristan Gingold <gingold@adacore.com>
685 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
686 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
689 2014-10-15 Pedro Alves <palves@redhat.com>
691 * dec-thread.c (dec_thread_count_gdb_threads)
692 (dec_thread_add_gdb_thread): Delete.
693 (dec_thread_update_thread_list): Delete.
694 (dec_thread_find_new_threads): Rename to ...
695 (dec_thread_update_thread_list): ... this. Delete GDB-size
696 threads that are no longer found in dec_thread_list.
697 (resync_thread_list): Delete.
698 (dec_thread_wait): Call dec_thread_update_thread_list instead of
701 2014-10-15 Pedro Alves <palves@redhat.com>
703 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
704 * remote.c (remote_update_thread_list): Skip calling prune_threads
705 if any thread listing method is supported, and instead walk over
706 the set of remote threads listed, deleting those that are not
707 found in GDB's thread list.
709 2014-10-15 Pedro Alves <palves@redhat.com>
711 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
712 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
713 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
714 (bsd_uthread_target): Adjust.
715 * corelow.c (core_open): Adjust.
716 * dec-thread.c (dec_thread_find_new_threads): Update comment.
717 (dec_thread_update_thread_list): New function.
718 (init_dec_thread_ops): Adjust.
719 * gdbthread.h (prune_threads): New declaration.
720 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
721 (thread_db_update_thread_list): ... this. Call prune_threads.
722 (init_thread_db_ops): Adjust.
723 * nto-procfs.c (procfs_find_new_threads): Rename to ...
724 (procfs_update_thread_list): ... this. Call prune_threads.
725 (procfs_attach, procfs_create_inferior, init_procfs_targets):
727 * obsd-nat.c (obsd_find_new_threads): Rename to ...
728 (obsd_update_thread_list): ... this. Call prune_threads.
729 (obsd_add_target): Adjust.
730 * procfs.c (procfs_target): Adjust.
731 (procfs_notice_thread): Update comment.
732 (procfs_find_new_threads): Rename to ...
733 (procfs_update_thread_list): ... this. Call prune_threads.
734 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
736 (ravenscar_wait): Adjust.
737 (ravenscar_find_new_threads): Rename to ...
738 (ravenscar_update_thread_list): ... this. Call prune_threads.
739 (init_ravenscar_thread_ops): Adjust.
740 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
741 (record_btrace_update_thread_list): ... this. Adjust comment.
742 (init_record_btrace_ops): Adjust.
743 * remote.c (remote_threads_info): Rename to ...
744 (remote_update_thread_list): ... this. Call prune_threads.
745 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
747 * sol-thread.c (check_for_thread_db): Adjust.
748 (sol_find_new_threads_callback): Rename to ...
749 (sol_update_thread_list_callback): ... this.
750 (sol_find_new_threads): Rename to ...
751 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
752 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
753 * target-delegates.c: Regenerate.
754 * target.c (target_find_new_threads): Rename to ...
755 (target_update_thread_list): ... this.
756 * target.h (struct target_ops): Rename to_find_new_threads field
757 to to_update_thread_list.
758 (target_find_new_threads): Rename to ...
759 (target_update_thread_list): ... this.
760 * thread.c (prune_threads): Make extern.
761 (update_thread_list): Adjust.
763 2014-10-15 Pedro Alves <palves@redhat.com>
765 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
766 Add describing comment. Return -1 if the qL packet is not
768 (struct thread_item, thread_item_t): Move higher up in
769 the file. Add comments.
770 (struct threads_parsing_context): Move higher up in
771 the file, add comments, and remote to ...
772 (struct threads_listing_context): ... this.
773 (remote_newthread_step): Don't add the thread to GDB's thread
774 database here. Instead push it to the thread_listing_context
776 (remote_find_new_threads): Rename to ...
777 (remote_get_threads_with_ql): ... this. Add target_ops and
778 targets_listing_context parameters. Pass down context.
779 (start_thread): Adjust.
780 (clear_threads_parsing_context): Rename to ...
781 (clear_threads_listing_context): ... this.
782 (remote_get_threads_with_qxfer): New, with parts salvaged from old
784 (remote_get_threads_with_qthreadinfo): Ditto.
785 (remote_threads_info): Reimplement.
787 2014-10-15 Pedro Alves <palves@redhat.com>
789 * infrun.c (resume): Don't force displaced-stepping for all
790 single-steps on software single-stepping archs.
792 2014-10-15 Pedro Alves <palves@redhat.com>
794 * breakpoint.c (single_step_breakpoints): Delete global.
795 (insert_single_step_breakpoint): Adjust to store the breakpoint
796 pointer in the current thread.
797 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
798 (cancel_single_step_breakpoints): Delete functions.
799 (breakpoint_has_location_inserted_here): Make extern.
800 (single_step_breakpoint_inserted_here_p): Adjust to walk the
802 * breakpoint.h (breakpoint_has_location_inserted_here): New
804 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
805 (cancel_single_step_breakpoints): Remove declarations.
806 * gdbthread.h (struct thread_control_state)
807 <single_step_breakpoints>: New field.
808 (delete_single_step_breakpoints)
809 (thread_has_single_step_breakpoints_set)
810 (thread_has_single_step_breakpoint_here): New declarations.
811 * infrun.c (follow_exec): Also clear the single-step breakpoints.
812 (singlestep_breakpoints_inserted_p, singlestep_ptid)
813 (singlestep_pc): Delete globals.
814 (infrun_thread_ptid_changed): Remove references to removed
816 (resume_cleanups): Delete the current thread's single-step
818 (maybe_software_singlestep): Remove references to removed globals.
819 (resume): Adjust to use thread_has_single_step_breakpoints_set and
820 delete_single_step_breakpoints.
821 (init_wait_for_inferior): Remove references to removed globals.
822 (delete_thread_infrun_breakpoints): Delete the thread's
823 single-step breakpoints too.
824 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
825 single-step breakpoints here.
826 (delete_stopped_threads_single_step_breakpoints): New function.
827 (adjust_pc_after_break): Adjust to use
828 thread_has_single_step_breakpoints_set.
829 (handle_inferior_event): Remove references to removed globals.
830 Use delete_stopped_threads_single_step_breakpoints.
831 (handle_signal_stop): Adjust to per-thread single-step
832 breakpoints. Swap test order to do cheaper tests first.
833 (switch_back_to_stepped_thread): Extend debug output. Remove
834 references to removed globals.
835 * record-full.c (record_full_wait_1): Adjust to per-thread
836 single-step breakpoints.
837 * thread.c (delete_single_step_breakpoints)
838 (thread_has_single_step_breakpoints_set)
839 (thread_has_single_step_breakpoint_here): New functions.
840 (clear_thread_inferior_resources): Also delete the thread's
841 single-step breakpoints.
843 2014-10-15 Pedro Alves <palves@redhat.com>
845 * thread.c (delete_thread_breakpoint): New function.
846 (delete_step_resume_breakpoint)
847 (delete_exception_resume_breakpoint): Use it.
848 (delete_at_next_stop): New function.
849 (clear_thread_inferior_resources): Use delete_at_next_stop.
851 2014-10-15 Pedro Alves <palves@redhat.com>
853 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
854 (breakpoint_inserted_here_p): ... here. Remove special case for
855 software single-step breakpoints.
856 (find_non_raw_software_breakpoint_inserted_here): Inline ...
857 (software_breakpoint_inserted_here_p): ... here. Remove special
858 case for software single-step breakpoints.
859 (bp_target_info_copy_insertion_state)
860 (deprecated_insert_raw_breakpoint)
861 (deprecated_remove_raw_breakpoint): Delete functions.
862 * breakpoint.h (deprecated_insert_raw_breakpoint)
863 (deprecated_remove_raw_breakpoint): Remove declarations.
865 2014-10-15 Pedro Alves <palves@redhat.com>
868 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
869 Delete array globals.
870 (single_step_breakpoints): New global.
871 (breakpoint_xfer_memory): Remove special handling for single-step
873 (update_breakpoints_after_exec): Delete bp_single_step
875 (detach_breakpoints): Remove special handling for single-step
877 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
878 (bpstat_stop_status): Add comment.
879 (bpstat_what, bptype_string, print_one_breakpoint_location)
880 (adjust_breakpoint_address, init_bp_location): Handle
882 (new_single_step_breakpoint): New function.
883 (set_momentary_breakpoint, bkpt_remove_location): Remove special
884 handling for single-step breakpoints.
885 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
886 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
888 (detach_single_step_breakpoints, find_single_step_breakpoint):
890 (breakpoint_has_location_inserted_here): New function.
891 (single_step_breakpoint_inserted_here_p): Rewrite.
892 * breakpoint.h: Remove FIXME.
893 (enum bptype) <bp_single_step>: New enum value.
894 (insert_single_step_breakpoint): Update comment.
895 * infrun.c (resume_cleanups)
896 (delete_step_thread_step_resume_breakpoint): Remove single-step
898 (fetch_inferior_event): Install a cleanup that removes infrun
900 (switch_back_to_stepped_thread) <expect thread advanced also>:
901 Clear step-over info.
903 2014-10-15 Pedro Alves <palves@redhat.com>
905 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
906 (delete_thread_infrun_breakpoints): New function, with parts
907 salvaged from delete_step_resume_breakpoint_callback.
908 (delete_step_thread_step_resume_breakpoint): Delete.
909 (for_each_just_stopped_thread_callback_func): New typedef.
910 (for_each_just_stopped_thread): New function.
911 (delete_just_stopped_threads_infrun_breakpoints): New function.
912 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
913 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
915 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
917 2014-10-15 Pedro Alves <palves@redhat.com>
919 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
920 trying to step past a non-steppable watchpoint.
921 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
923 * infrun.c (struct step_over_info): Add new field
924 'nonsteppable_watchpoint_p' and adjust comments.
925 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
927 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
928 (stepping_past_nonsteppable_watchpoint): New function.
929 (step_over_info_valid_p): Also return true if stepping past a
930 nonsteppable watchpoint.
931 (proceed): Adjust call to set_step_over_info. Remove reference to
933 (init_wait_for_inferior): Remove reference to init_infwait_state.
934 (waiton_ptid): Delete global.
935 (struct execution_control_state)
936 <stepped_after_stopped_by_watchpoint>: Delete field.
937 (wait_for_inferior, fetch_inferior_event): Always pass
938 minus_one_ptid to target_wait.
939 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
941 (init_infwait_state): Delete function.
942 (handle_inferior_event): Remove infwait_state handling.
943 (handle_signal_stop) <watchpoints handling>: Adjust after
944 stepped_after_stopped_by_watchpoint removal. Don't remove
945 breakpoints here nor set infwait_state. Set the thread's
946 stepping_over_watchpoint flag, and call keep_going instead.
947 (keep_going): Handle stepping_over_watchpoint. Adjust
948 set_step_over_info calls.
949 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
952 2014-10-15 Pedro Alves <palves@redhat.com>
954 * infrun.c (step_over_info_valid_p): New function.
955 (resume): Use step_over_info_valid_p instead of checking the
956 threads's trap_expected flag.
958 2014-10-15 Doug Evans <dje@google.com>
959 Walfred Tedeschi <walfred.tedeschi@intel.com>
962 * python/lib/gdb/__init__.py (packages): Add "printer".
963 * python/lib/gdb/command/bound_registers.py: Moved to ...
964 * python/lib/gdb/printer/bound_registers.py: ... here.
965 Add printer to global set of builtin printers. Rename printer from
966 "bound" to "mpx_bound128".
967 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
968 registered as global "builtin" printer.
969 (add_builtin_pretty_printer): New function.
970 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
971 gdb/printer/__init__.py.
973 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
975 * Makefile.in (SFILES): Remove d-support.c.
976 (COMMON_OBS): Remove d-support.o.
977 * d-lang.h (d_parse_symbol): Remove declaration.
978 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
979 * d-support.c: Remove file.
981 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
983 * gdb/infrun.c (process_event_stop_test): Apply
984 gdbarch_addr_bits_remove to longjmp resume address.
986 2014-10-15 Pedro Alves <palves@redhat.com>
988 * regformats/microblaze.dat: Delete file.
990 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
992 * features/Makefile (microblaze-expedite): Replace pc with rpc.
993 * regformats/microblaze-with-stack-protect.dat: Regenerate.
995 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
997 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1000 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1004 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1005 with qualified args.
1007 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1009 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1010 of the case where the second operand is a pointer.
1011 <BINOP_SUB>: Likewise.
1013 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1015 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1016 only if it is not NULL.
1017 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1018 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1019 (struct probe_ops) <clear_semaphore>: Likewise.
1020 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1022 (stop_tracing): Likewise, for clear_semaphore.
1024 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1026 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1027 using language_c, instead of current_language.
1029 2014-10-13 Doug Evans <dje@google.com>
1031 * python/py-objfile.c (objfpy_initialize): New function.
1032 (objfpy_new, objfile_to_objfile_object): Call it.
1033 * python/py-progspace.c (pspy_initialize): New function.
1034 (pspy_new, pspace_to_pspace_object): Call it.
1036 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1037 Jan Kratochvil <jan.kratochvil@redhat.com>
1039 Fix "save breakpoints" for "catch" command.
1040 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1043 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1045 Fix "save breakpoints" for "disable $bpnum" command.
1046 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1048 2014-10-10 Pedro Alves <palves@redhat.com>
1050 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1051 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1052 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1053 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1055 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1056 * configure.ac: Remove references to IRIX.
1057 * configure.host: Add *-*-irix* to the obsolete hosts section.
1058 Remove all other references to irix.
1059 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1062 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1064 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1065 isn't valid, release the tdesc arch data and return NULL.
1067 2014-10-10 Pedro Alves <palves@redhat.com>
1069 * linux-tdep.c: Include observer.h.
1070 (linux_inferior_data): New global.
1071 (struct linux_info): New structure.
1072 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1073 (get_linux_inferior_data): New functions.
1074 (linux_vsyscall_range): Rename to ...
1075 (linux_vsyscall_range_raw): ... this.
1076 (linux_vsyscall_range): New function; handles caching.
1077 (_initialize_linux_tdep): Register linux_inferior_data. Install
1078 inferior_exit and inferior_appeared observers.
1080 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1081 Pedro Alves <palves@redhat.com>
1084 * solib-svr4.c (svr4_read_so_list): Rename to ...
1085 (svr4_current_sos_1): ... this and change the function comment.
1086 (svr4_current_sos): New function.
1088 2014-10-10 Pedro Alves <palves@redhat.com>
1090 * arch-utils.c (default_vsyscall_range): New function.
1091 * arch-utils.h (default_vsyscall_range): New declaration.
1092 * gdbarch.sh (vsyscall_range): New hook.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1094 * linux-tdep.c (linux_vsyscall_range): New function.
1095 (linux_init_abi): Install linux_vsyscall_range as
1096 vsyscall_range gdbarch hook.
1097 * memrange.c (address_in_mem_range): New function.
1098 * memrange.h (address_in_mem_range): New declaration.
1099 * symfile-mem.c (find_vdso_size): Delete function.
1100 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1102 2014-10-10 Pedro Alves <palves@redhat.com>
1104 * infrun.c (normal_stop): Fix typo in comment.
1106 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1109 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1110 typo when using logical AND to determine instruction type.
1112 2014-10-09 Yao Qi <yao@codesourcery.com>
1114 * infrun.c (handle_signal_stop): Remove local variable
1117 2014-10-08 Stan Shebs <stan@codesourcery.com>
1119 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1121 2014-10-08 Gary Benson <gbenson@redhat.com>
1123 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1125 2014-10-08 Gary Benson <gbenson@redhat.com>
1127 * common/common-defs.h: Include common-exceptions.h.
1128 * exceptions.h: Do not include common-exceptions.h.
1130 2014-10-08 Gary Benson <gbenson@redhat.com>
1132 * common/common-defs.h: Include cleanups.h.
1133 * common/common-exceptions.c: Do not include cleanups.h.
1134 * utils.h: Likewise.
1136 2014-10-08 Gary Benson <gbenson@redhat.com>
1138 * ada-lang.c: Do not include exceptions.h.
1139 * ada-valprint.c: Likewise.
1140 * amd64-tdep.c: Likewise.
1141 * auto-load.c: Likewise.
1142 * block.c: Likewise.
1143 * break-catch-throw.c: Likewise.
1144 * breakpoint.c: Likewise.
1145 * btrace.c: Likewise.
1146 * c-lang.c: Likewise.
1147 * cli/cli-cmds.c: Likewise.
1148 * cli/cli-interp.c: Likewise.
1149 * cli/cli-script.c: Likewise.
1150 * completer.c: Likewise.
1151 * corefile.c: Likewise.
1152 * corelow.c: Likewise.
1153 * cp-abi.c: Likewise.
1154 * cp-support.c: Likewise.
1155 * cp-valprint.c: Likewise.
1156 * darwin-nat.c: Likewise.
1157 * dwarf2-frame-tailcall.c: Likewise.
1158 * dwarf2-frame.c: Likewise.
1159 * dwarf2loc.c: Likewise.
1160 * dwarf2read.c: Likewise.
1162 * event-loop.c: Likewise.
1163 * event-top.c: Likewise.
1164 * f-valprint.c: Likewise.
1165 * frame-unwind.c: Likewise.
1166 * frame.c: Likewise.
1167 * gdbtypes.c: Likewise.
1168 * gnu-v2-abi.c: Likewise.
1169 * gnu-v3-abi.c: Likewise.
1170 * guile/scm-auto-load.c: Likewise.
1171 * guile/scm-breakpoint.c: Likewise.
1172 * guile/scm-cmd.c: Likewise.
1173 * guile/scm-frame.c: Likewise.
1174 * guile/scm-lazy-string.c: Likewise.
1175 * guile/scm-param.c: Likewise.
1176 * guile/scm-symbol.c: Likewise.
1177 * guile/scm-type.c: Likewise.
1178 * hppa-hpux-tdep.c: Likewise.
1179 * i386-tdep.c: Likewise.
1180 * inf-loop.c: Likewise.
1181 * infcall.c: Likewise.
1182 * infcmd.c: Likewise.
1183 * infrun.c: Likewise.
1184 * interps.c: Likewise.
1185 * interps.h: Likewise.
1187 * linespec.c: Likewise.
1188 * linux-nat.c: Likewise.
1189 * linux-thread-db.c: Likewise.
1190 * m32r-rom.c: Likewise.
1192 * memory-map.c: Likewise.
1193 * mi/mi-cmd-break.c: Likewise.
1194 * mi/mi-cmd-stack.c: Likewise.
1195 * mi/mi-interp.c: Likewise.
1196 * mi/mi-main.c: Likewise.
1197 * monitor.c: Likewise.
1198 * nto-procfs.c: Likewise.
1199 * objc-lang.c: Likewise.
1200 * p-valprint.c: Likewise.
1201 * parse.c: Likewise.
1202 * ppc-linux-tdep.c: Likewise.
1203 * printcmd.c: Likewise.
1204 * probe.c: Likewise.
1205 * python/py-auto-load.c: Likewise.
1206 * python/py-breakpoint.c: Likewise.
1207 * python/py-cmd.c: Likewise.
1208 * python/py-finishbreakpoint.c: Likewise.
1209 * python/py-frame.c: Likewise.
1210 * python/py-framefilter.c: Likewise.
1211 * python/py-function.c: Likewise.
1212 * python/py-gdb-readline.c: Likewise.
1213 * python/py-inferior.c: Likewise.
1214 * python/py-infthread.c: Likewise.
1215 * python/py-lazy-string.c: Likewise.
1216 * python/py-linetable.c: Likewise.
1217 * python/py-param.c: Likewise.
1218 * python/py-prettyprint.c: Likewise.
1219 * python/py-symbol.c: Likewise.
1220 * python/py-type.c: Likewise.
1221 * python/py-value.c: Likewise.
1222 * python/python-internal.h: Likewise.
1223 * python/python.c: Likewise.
1224 * record-btrace.c: Likewise.
1225 * record-full.c: Likewise.
1226 * regcache.c: Likewise.
1227 * remote-fileio.c: Likewise.
1228 * remote-mips.c: Likewise.
1229 * remote.c: Likewise.
1230 * rs6000-aix-tdep.c: Likewise.
1231 * rs6000-nat.c: Likewise.
1233 * solib-darwin.c: Likewise.
1234 * solib-dsbt.c: Likewise.
1235 * solib-frv.c: Likewise.
1236 * solib-ia64-hpux.c: Likewise.
1237 * solib-spu.c: Likewise.
1238 * solib-svr4.c: Likewise.
1239 * solib.c: Likewise.
1240 * spu-tdep.c: Likewise.
1241 * stack.c: Likewise.
1242 * stap-probe.c: Likewise.
1243 * symfile-mem.c: Likewise.
1244 * symmisc.c: Likewise.
1245 * target.c: Likewise.
1246 * thread.c: Likewise.
1248 * tracepoint.c: Likewise.
1249 * tui/tui-interp.c: Likewise.
1250 * typeprint.c: Likewise.
1251 * utils.c: Likewise.
1252 * valarith.c: Likewise.
1253 * valops.c: Likewise.
1254 * valprint.c: Likewise.
1255 * value.c: Likewise.
1256 * varobj.c: Likewise.
1257 * windows-nat.c: Likewise.
1258 * xml-support.c: Likewise.
1260 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1262 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1264 (extended_mips16_next_pc): Update accordingly.
1266 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1268 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1270 (micromips_instruction_is_compact_branch): Likewise.
1271 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1272 or a compact jump, reaching a jump delay slot, or seeing a
1273 second non-prologue instruction.
1274 (micromips_scan_prologue): Also terminate scanning upon seeing a
1275 compact branch or jump, or reaching a branch or jump delay slot.
1276 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1277 or jump delay slot, or seeing a second non-prologue instruction.
1278 (mips32_instruction_has_delay_slot): Retain instruction
1279 examination code only, update arguments accordingly and move
1280 instruction fetch pieces to...
1281 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1282 (micromips_instruction_has_delay_slot): Likewise and to...
1283 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1284 (mips16_instruction_has_delay_slot): Likewise and to...
1285 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1286 (mips_single_step_through_delay): Update accordingly.
1287 (mips_adjust_breakpoint_address): Likewise.
1289 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1291 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1292 !mustbe32 also return 1 for 32-bit instructions.
1293 (mips16_instruction_has_delay_slot): Likewise. Add an
1294 explanatory comment.
1296 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1298 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1301 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1303 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1305 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1306 for the breakpoint's address. Don't preinitialize `placed_size'.
1307 (insert_bp_location): Set `reqstd_address' rather than
1309 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1310 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1312 (bkpt_remove_location): Likewise.
1313 (deprecated_insert_raw_breakpoint): Likewise.
1314 (deprecated_remove_raw_breakpoint): Likewise.
1315 (find_single_step_breakpoint): Likewise.
1316 * mem-break.c (default_memory_insert_breakpoint): Use
1317 `reqstd_address' for the breakpoint's address. Don't set
1318 `placed_address' or `placed_size' if breakpoint contents couldn't
1319 have been determined.
1320 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1321 the breakpoint's address.
1322 (remote_insert_hw_breakpoint): Likewise. Don't set
1323 `placed_address' or `placed_size' if breakpoint couldn't have been
1325 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1326 `reqstd_address' for the breakpoint's address.
1327 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1328 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1329 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1330 * microblaze-linux-tdep.c
1331 (microblaze_linux_memory_remove_breakpoint): Likewise.
1332 * monitor.c (monitor_insert_breakpoint): Likewise.
1333 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1334 (procfs_insert_hw_breakpoint): Likewise.
1335 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1336 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1337 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1338 * remote-mips.c (mips_insert_breakpoint): Likewise.
1339 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1341 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1343 * valops.c (value_assign): Check for bit field assignments
1344 before calling architecture-specific register value
1345 conversion functions.
1347 2014-10-03 Pierre Muller <muller@sourceware.org>
1349 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1351 2014-10-02 Pedro Alves <palves@redhat.com>
1353 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1354 threads_are_executing.
1355 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1357 * gdbthread.h (threads_are_executing): Declare.
1358 (handle_signal_stop) <random signals>: Don't print about the
1359 signal here if stopping.
1360 (end_stepping_range): Don't notify observers here.
1361 (normal_stop): Update the thread list. If stopped by a random
1362 signal or a stepping range ended, notify observers.
1363 * thread.c (threads_executing): New global.
1364 (init_thread_list): Clear 'threads_executing'.
1365 (set_executing): Set or clear 'threads_executing'.
1366 (threads_are_executing): New function.
1367 (update_threads_executing): New function.
1368 (update_thread_list): Use it.
1370 2014-10-02 Pedro Alves <palves@redhat.com>
1372 PR breakpoints/17431
1373 * breakpoint.c (update_breakpoints_after_exec): Don't create
1374 overlay, longjmp, std terminate nor exception breakpoints here.
1376 2014-10-02 Pedro Alves <palves@redhat.com>
1378 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1380 * inferior.c (find_inferior_for_program_space): Give preference to
1381 the current inferior.
1382 * inferior.h (find_inferior_for_program_space): Update comment.
1383 * progspace.c (switch_to_program_space_and_thread): Prefer the
1384 current inferior if it's bound to the program space requested. If
1385 the inferior found doesn't have a PID yet, don't bother looking up
1387 * progspace.h (switch_to_program_space_and_thread): Adjust
1389 * thread.c (any_thread_of_process, any_live_thread_of_process):
1390 Give preference to the current thread.
1392 2014-10-01 Pedro Alves <palves@redhat.com>
1394 * breakpoint.c (insert_bp_location): Error out if inserting a
1395 software breakpoint at a read-only address.
1396 * target.c (memory_xfer_check_region): New function, factored out
1398 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1400 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1401 against the memory region attributes.
1403 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1405 * NEWS: Announce new exit-code field in -list-thread-groups
1407 * inferior.c (exit_inferior_1): Don't clear exit code.
1408 (inferior_appeared): Clear exit code.
1409 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1412 2014-10-01 Pedro Alves <palves@redhat.com>
1414 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1415 GENERATED" along with emacs/vi read-only markers.
1416 * regformats/aarch64.dat: Regenerate.
1417 * regformats/arm-with-iwmmxt.dat: Regenerate.
1418 * regformats/arm-with-neon.dat: Regenerate.
1419 * regformats/arm-with-vfpv2.dat: Regenerate.
1420 * regformats/arm-with-vfpv3.dat: Regenerate.
1421 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1422 * regformats/i386/amd64-avx.dat: Regenerate.
1423 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1424 * regformats/i386/amd64-avx512.dat: Regenerate.
1425 * regformats/i386/amd64-linux.dat: Regenerate.
1426 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1427 * regformats/i386/amd64-mpx.dat: Regenerate.
1428 * regformats/i386/amd64.dat: Regenerate.
1429 * regformats/i386/i386-avx-linux.dat: Regenerate.
1430 * regformats/i386/i386-avx.dat: Regenerate.
1431 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1432 * regformats/i386/i386-avx512.dat: Regenerate.
1433 * regformats/i386/i386-linux.dat: Regenerate.
1434 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1435 * regformats/i386/i386-mmx.dat: Regenerate.
1436 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1437 * regformats/i386/i386-mpx.dat: Regenerate.
1438 * regformats/i386/i386.dat: Regenerate.
1439 * regformats/i386/x32-avx-linux.dat: Regenerate.
1440 * regformats/i386/x32-avx.dat: Regenerate.
1441 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1442 * regformats/i386/x32-avx512.dat: Regenerate.
1443 * regformats/i386/x32-linux.dat: Regenerate.
1444 * regformats/i386/x32.dat: Regenerate.
1445 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1446 * regformats/mips-dsp-linux.dat: Regenerate.
1447 * regformats/mips-linux.dat: Regenerate.
1448 * regformats/mips64-dsp-linux.dat: Regenerate.
1449 * regformats/mips64-linux.dat: Regenerate.
1450 * regformats/nios2-linux.dat: Regenerate.
1451 * regformats/rs6000/powerpc-32.dat: Regenerate.
1452 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1453 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1454 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1455 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1456 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1457 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1458 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1459 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1460 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1461 * regformats/s390-linux32.dat: Regenerate.
1462 * regformats/s390-linux32v1.dat: Regenerate.
1463 * regformats/s390-linux32v2.dat: Regenerate.
1464 * regformats/s390-linux64.dat: Regenerate.
1465 * regformats/s390-linux64v1.dat: Regenerate.
1466 * regformats/s390-linux64v2.dat: Regenerate.
1467 * regformats/s390-te-linux64.dat: Regenerate.
1468 * regformats/s390x-linux64.dat: Regenerate.
1469 * regformats/s390x-linux64v1.dat: Regenerate.
1470 * regformats/s390x-linux64v2.dat: Regenerate.
1471 * regformats/s390x-te-linux64.dat: Regenerate.
1472 * regformats/tic6x-c62x-linux.dat: Regenerate.
1473 * regformats/tic6x-c62x.dat: Regenerate.
1474 * regformats/tic6x-c64x-linux.dat: Regenerate.
1475 * regformats/tic6x-c64x.dat: Regenerate.
1476 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1477 * regformats/tic6x-c64xp.dat: Regenerate.
1479 2014-10-01 Pedro Alves <palves@redhat.com>
1481 * features/Makefile: Update comments.
1482 (XMLTOC): List all xml files we build C files from.
1483 (clean-cfiles): New rule.
1485 2014-10-01 Pedro Alves <palves@redhat.com>
1487 * features/i386/amd64-avx512-linux.c: Regenerate.
1488 * features/i386/amd64-avx512.c: Regenerate.
1489 * features/i386/x32-avx512-linux.c: Regenerate.
1490 * features/i386/x32-avx512.c: Regenerate.
1492 2014-10-01 Pedro Alves <palves@redhat.com>
1494 * features/Makefile (WHICH): Remove arm-with-m,
1495 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1497 2014-10-01 Pedro Alves <palves@redhat.com>
1499 * features/Makefile (clean): New rule.
1501 2014-10-01 Pedro Alves <palves@redhat.com>
1503 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1504 (zmm14h): Add missing end quotes.
1506 2014-10-01 Pedro Alves <palves@redhat.com>
1508 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1509 * features/aarch64.c: Regenerate.
1511 2014-09-30 Don Breazeal <donb@codesourcery.com>
1513 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1514 code so as to work with follow_fork_inferior.
1515 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1516 (inf_ttrace_create_inferior): Remove reference to
1517 inf_ttrace_vfork_ppid.
1518 (inf_ttrace_attach): Ditto.
1519 (inf_ttrace_detach): Ditto.
1520 (inf_ttrace_kill): Use current_inferior instead of
1521 inf_ttrace_vfork_ppid.
1522 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1523 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1524 inferior away from the parent.
1525 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1527 (follow_fork_inferior): New function.
1528 (follow_inferior_reset_breakpoints): Make function static.
1529 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1530 * linux-nat.c (linux_child_follow_fork): Move target-independent
1531 code to infrun.c:follow_fork_inferior.
1533 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1535 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1536 * gdbarch.c: Regenerate.
1537 * gdbarch.h: Likewise.
1538 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1539 gdbarch method 'regset_from_core_section'.
1540 (get_core_register_section): Remove handling for the case that
1541 regset == NULL and regset_from_core_section is defined.
1542 (get_core_registers): Drop check for deleted method.
1543 * procfs.c (procfs_do_thread_registers): Adjust comment.
1545 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1547 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1548 (linux_nat_make_corefile_notes): Remove.
1549 (linux_target_install_ops): Do not set target method
1550 'make_corefile_notes'.
1551 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1553 (linux_corefile_thread_callback): Instead of args->collect, call
1554 linux_collect_thread_registers.
1555 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1556 NULL unless there is a regset iterator.
1557 (linux_make_corefile_notes_1): Remove.
1558 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1559 by linux_make_corefile_notes.
1560 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1562 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1564 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1565 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1567 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1571 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1572 (xtensa_iterate_over_regset_sections): New.
1573 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1577 * vax-tdep.c (vax_regset_from_core_section): Remove.
1578 (vax_iterate_over_regset_sections): New.
1579 (vax_gdbarch_init): Adjust gdbarch initialization.
1581 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1584 (tilegx_regset_from_core_section): Remove.
1585 (tilegx_iterate_over_regset_sections): New.
1586 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1588 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1590 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1591 (sparc_iterate_over_regset_sections): New.
1592 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1593 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1595 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1596 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1597 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1598 target method 'make_corefile_notes'.
1600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1602 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1603 'sizeof_gregset' and 'sizeof_fpregset'.
1604 * sh-tdep.c (sh_regset_from_core_section): Remove.
1605 (sh_iterate_over_regset_sections): New.
1606 (sh_gdbarch_init): Adjust gdbarch initialization.
1607 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1609 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1612 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1615 (score7_linux_iterate_over_regset_sections): New.
1616 (score_gdbarch_init): Adjust gdbarch initialization.
1618 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1620 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1622 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1623 method 'make_corefile_notes'.
1624 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1625 (ppcfbsd_regset_from_core_section): Remove.
1626 (ppcfbsd_iterate_over_regset_sections): New.
1627 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1629 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1630 (ppcnbsd_iterate_over_regset_sections): New.
1631 (ppcnbsd_init_abi): Adjust.
1632 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1633 (ppcobsd_iterate_over_regset_sections): New.
1634 (ppcobsd_init_abi): Adjust.
1635 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1636 (rs6000_aix_iterate_over_regset_sections): New.
1637 (rs6000_aix_init_osabi): Adjust.
1639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1642 (nios2_regset_from_core_section): Remove.
1643 (nios2_iterate_over_regset_sections): New.
1644 (nios2_linux_init_abi): Adjust gdbarch initialization.
1646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1648 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1649 (am33_iterate_over_regset_sections): New.
1650 (am33_linux_init_osabi): Adjust gdbarch initialization.
1652 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1654 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1655 (mips_linux_iterate_over_regset_sections): New.
1656 (mips_linux_init_abi): Adjust gdbarch initialization.
1657 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1658 (mips64obsd_iterate_over_regset_sections): New.
1659 (mips64obsd_init_abi): Adjust.
1660 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1661 (mipsnbsd_iterate_over_regset_sections): New.
1662 (mipsnbsd_init_abi): Adjust.
1664 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1666 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1667 (m88k_iterate_over_regset_sections): New.
1668 (m88k_gdbarch_init): Adjust gdbarch initialization.
1670 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1672 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1673 (ia64_linux_iterate_over_regset_sections): New.
1674 (ia64_linux_init_abi): Adjust gdbarch initialization.
1676 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1678 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1679 (m68kbsd_iterate_over_regset_sections): New.
1680 (m68kbsd_init_abi): Adjust gdbarch initialization.
1681 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1682 (m68k_linux_iterate_over_regset_sections): New.
1683 (m68k_linux_init_abi): Adjust gdbarch initialization.
1685 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1687 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1688 (m32r_linux_regset_from_core_section): Remove.
1689 (m32r_linux_iterate_over_regset_sections): New.
1690 (m32r_linux_init_abi): Adjust gdbarch initialization.
1692 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1694 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1695 (amd64obsd_iterate_over_regset_sections): New.
1696 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1697 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1699 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1700 regset_from_core_section initialization.
1701 * i386-tdep.c (i386_regset_from_core_section): Remove.
1702 (i386_iterate_over_regset_sections): New.
1703 (i386_gdbarch_init): Adjust gdbarch initialization.
1704 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1705 (i386_iterate_over_regset_sections): New prototype.
1706 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1708 (i386obsd_aout_iterate_over_regset_sections): New.
1709 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1710 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1712 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1713 (amd64fbsd_init_abi): Call fbsd_init_abi.
1714 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1715 (i386fbsd4_init_abi): Call fbsd_init_abi.
1716 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1717 target method 'make_corefile_notes'.
1718 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1720 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1722 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1723 (hppa_hpux_iterate_over_regset_sections): New.
1724 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1725 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1726 (hppa_linux_iterate_over_regset_sections): New.
1727 (hppa_linux_init_abi): Adjust.
1728 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1729 (hppanbsd_iterate_over_regset_sections): New.
1730 (hppanbsd_init_abi): Adjust.
1731 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1732 (hppaobsd_iterate_over_regset_sections): New.
1733 (hppaobsd_init_abi): Adjust.
1735 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1737 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1738 (frv_linux_iterate_over_regset_sections): New.
1739 (frv_linux_init_abi): Adjust gdbarch initialization.
1741 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1743 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1744 (armbsd_iterate_over_regset_sections): New prototype.
1745 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1746 (armbsd_iterate_over_regset_sections): New.
1747 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1752 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1753 (alpha_linux_iterate_over_regset_sections): New.
1754 (alpha_linux_init_abi): Adjust gdbarch initialization.
1755 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1757 (alphanbsd_iterate_over_regset_sections): New prototype.
1759 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1761 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1763 (aarch64_linux_iterate_over_regset_sections): New.
1764 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1766 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1768 * fbsd-tdep.c: New file.
1769 * fbsd-tdep.h: New file.
1770 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1771 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1772 (ALLDEPFILES): Add fbsd-tdep.c.
1774 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1776 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1778 * gdbarch.h: Regenerate.
1779 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1781 (get_core_register_section): Add parameter 'regset' and use it, if
1782 set. Add parameter 'min_size' and verify the bfd section size
1784 (get_core_registers_cb): Add parameter 'regset' and pass it to
1785 get_core_register section. For the "standard" register sections
1786 ".reg" and ".reg2", set an appropriate default for human_name.
1787 (get_core_registers): Don't abort when the gdbarch has an iterator
1788 but no regset_from_core_section. Add NULL/0 for parameters
1789 'regset'/'min_size' in calls to get_core_register_section.
1790 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1791 'regset' and use it instead of calling the
1792 regset_from_core_section gdbarch method.
1793 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1794 * i386-tdep.c (i386_supply_xstateregset)
1795 (i386_collect_xstateregset, i386_xstateregset): Moved to
1797 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1799 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1800 core file support only if the regset iterator hasn't been set.
1801 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1802 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1803 Moved from i386-tdep.c and renamed to *_linux*.
1804 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1805 each callback invocation. Allow any .reg-xstate size when reading
1807 * amd64-tdep.c (amd64_supply_xstateregset)
1808 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1810 (amd64_regset_from_core_section): Remove.
1811 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1812 install an amd64-specific regset_from_core_section gdbarch method.
1813 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1814 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1815 Moved from amd64-tdep.c and renamed to *_linux*.
1816 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1817 to each callback invocation. Allow any .reg-xstate size when
1818 reading from a core file.
1819 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1820 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1821 each callback invocation.
1822 (arm_linux_init_abi): No longer set the regset_from_core_section
1824 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1825 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1826 each callback invocation.
1827 (ppc_linux_init_abi): No longer set the regset_from_core_section
1829 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1830 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1831 (s390_regset_from_core_section): Remove.
1832 (s390_iterate_over_regset_sections): Add regset parameter to each
1833 callback invocation.
1834 (s390_gdbarch_init): No longer set the regset_from_core_section
1835 gdbarch method. Drop initialization of deleted tdep fields.
1837 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1839 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1840 (amd64_linux_iterate_over_regset_sections): New.
1841 (amd64_linux_init_abi_common): Don't install the regset section
1842 list, but the new iterator in gdbarch.
1843 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1844 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1845 (arm_linux_iterate_over_regset_sections): ...here. New function.
1846 (arm_linux_init_abi): Set iterator instead of section list.
1847 * corelow.c (get_core_registers_cb): New function, logic moved
1849 (get_core_registers): ...loop body here. Use new iterator method
1850 instead of walking through the regset section list.
1851 * gdbarch.sh: Remove 'core_regset_sections'. New method
1852 'iterate_over_regset_sections'. New typedef
1853 'iterate_over_regset_sections_cb'.
1854 * gdbarch.c: Regenerate.
1855 * gdbarch.h: Likewise.
1856 * i386-linux-tdep.c (i386_linux_regset_sections)
1857 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1859 (i386_linux_iterate_over_regset_sections): New.
1860 (i386_linux_init_abi): Don't choose a regset section list, but
1861 install new iterator in gdbarch.
1862 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1863 (linux_collect_regset_section_cb): New function, logic moved
1865 (linux_collect_thread_registers): ...loop body here. Use iterator
1866 method instead of walking through list.
1867 (linux_make_corefile_notes_1): Check for presence of iterator
1868 method instead of regset section list.
1869 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1870 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1871 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1872 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1873 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1874 (ppc_linux_init_abi): Don't choose from above regset section
1875 lists, but install new iterator in gdbarch.
1876 * regset.h (struct core_regset_section): Remove.
1877 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1878 have_linux_v1, have_linux_v2, and have_tdb.
1879 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1880 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1881 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1882 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1883 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1884 (s390_iterate_over_regset_sections): ...here. New function. Use
1886 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1887 regset section lists, but install new iterator.
1889 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1893 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1895 * progspace.c (print_program_space): Don't prune program spaces
1896 before printing them.
1898 2014-09-25 Pedro Alves <palves@redhat.com>
1900 * infrun.c (user_visible_resume_ptid): Don't check
1901 singlestep_breakpoints_inserted_p.
1903 2014-09-25 Pedro Alves <palves@redhat.com>
1905 * breakpoint.c (should_be_inserted): Add debug output.
1907 2014-09-25 Pedro Alves <palves@redhat.com>
1909 * infrun.c (stepping_past_instruction_at)
1910 (clear_exit_convenience_vars): Point at infrun.h instead of
1912 (handle_signal_stop): Fix typo.
1914 2014-09-24 Yao Qi <yao@codesourcery.com>
1916 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1919 2014-09-22 Gary Benson <gbenson@redhat.com>
1921 * target.c (target_stop): Updated comment.
1923 2014-09-22 Gary Benson <gbenson@redhat.com>
1925 * target/target.h (target_stop_ptid): Renamed as...
1926 (target_stop_and_wait): New function. Updated comment.
1928 (target_continue_ptid): Renamed as...
1929 (target_continue_no_signal): New function. Updated comment.
1932 2014-09-22 Pedro Alves <palves@redhat.com>
1934 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1936 * breakpoint.c (enum ugll_insert_mode): New enum.
1937 (always_inserted_mode): Now a plain boolean.
1938 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1939 (breakpoints_always_inserted_mode): Delete.
1940 (breakpoints_should_be_inserted_now): New function.
1941 (insert_breakpoints): Pass UGLL_INSERT to
1942 update_global_location_list instead of calling
1943 insert_breakpoint_locations manually.
1944 (create_solib_event_breakpoint_1): New, factored out from ...
1945 (create_solib_event_breakpoint): ... this.
1946 (create_and_insert_solib_event_breakpoint): Use
1947 create_solib_event_breakpoint_1 instead of calling
1948 insert_breakpoint_locations manually.
1949 (update_global_location_list): Change parameter type from boolean
1950 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1951 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1952 (update_global_location_list_nothrow): Change parameter type from
1953 boolean to enum ugll_insert_mode.
1954 (_initialize_breakpoint): "breakpoint always-inserted" option is
1955 now a boolean command. Update help text.
1956 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1957 (breakpoints_should_be_inserted_now): New declaration.
1958 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1959 Remove breakpoints_always_inserted_mode check.
1960 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1961 * remote.c (remote_start_remote): Likewise.
1963 2014-09-22 Pedro Alves <palves@redhat.com>
1965 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1966 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1967 Instead, pass UGLL_INSERT to update_global_location_list.
1968 (update_global_location_list): Change parameter type from boolean
1969 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1970 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1971 (create_solib_event_breakpoint_1): New, factored out from ...
1972 (create_solib_event_breakpoint): ... this.
1973 (create_and_insert_solib_event_breakpoint): Use
1974 create_solib_event_breakpoint_1 instead of calling
1975 insert_breakpoint_locations manually.
1976 (update_global_location_list): Handle UGLL_INSERT.
1978 2014-09-22 Pedro Alves <palves@redhat.com>
1980 * breakpoint.c (enum ugll_insert_mode): New enum.
1981 (update_global_location_list)
1982 (update_global_location_list_nothrow): Change parameter type from
1983 boolean to enum ugll_insert_mode. All callers adjusted.
1985 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1987 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1988 SystemTap support in GDB.
1990 2014-09-19 Don Breazeal <donb@codesourcery.com>
1992 * linux-nat.c (linux_handle_extended_wait): Call
1993 linux_ptrace_get_extended_event.
1994 (wait_lwp): Call linux_is_extended_waitstatus.
1995 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1996 and linux_is_extended_waitstatus.
1997 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1998 linux_ptrace_get_extended_event.
1999 (linux_ptrace_get_extended_event): New function.
2000 (linux_is_extended_waitstatus): New function.
2001 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2002 (linux_is_extended_waitstatus): New declarations.
2004 2014-09-19 Yao Qi <yao@codesourcery.com>
2006 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2007 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2008 comments. Callers update.
2009 (dwarf_decode_lines): Likewise.
2010 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2011 comments. Skip the line table if 'lowpc' is greater than
2012 'address'. Don't check
2013 dwarf2_per_objfile->has_section_at_zero.
2015 2014-09-18 Doug Evans <dje@google.com>
2017 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2018 * python/py-symtab.c (stpy_get_producer): New function.
2019 (symtab_object_getset): Add "producer" attribute.
2021 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
2024 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2025 (do_captured_read_memory_integer): Remove.
2026 (safe_read_memory_integer): Use target_read_memory directly instead
2027 of catching errors in do_captured_read_memory_integer.
2029 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2031 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2034 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2036 * objc-lang.c (find_implementation_from_class): Remove dead code.
2038 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2041 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2042 "fprintf_unfiltered (gdb_stdlog...)".
2044 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2046 PR breakpoints/12526
2047 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2049 * breakpoint.c (watch_command_1): Use these fields to retain
2050 bitfield information.
2051 (extract_bitfield_from_watchpoint_value): New function.
2052 (watchpoint_check): Use it.
2053 (update_watchpoint): Use it. Optimize the address and length of a
2054 HW watchpoint pointing to a bitfield.
2055 * value.h (unpack_value_bitfield): New prototype.
2056 * value.c (unpack_value_bitfield): Make extern.
2058 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2060 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2062 * gnu-nat.c (inf_threads): New function.
2063 * gnu-nat.h (inf_threads_ftype): New typedef.
2064 (inf_threads): New declaration.
2065 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2066 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2067 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2068 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2069 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2070 (i386_gnu_dr_get_control): New functions.
2071 (reg_addr): New structure.
2072 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2073 i386 debugging register hooks.
2074 * NEWS: Mention this.
2076 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2078 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2079 vector data transfer instructions.
2080 (arm_record_coproc_data_proc): Updated.
2082 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2084 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2085 arm_record_exreg_ld_st_insn.
2086 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2089 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2091 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2092 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2093 processing instructions.
2095 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2097 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2098 for advance SIMD struct ld/st insn.
2099 (thumb2_record_decode_insn_handler): Replace stub handler with
2100 thumb2_record_asimd_struct_ld_st.
2102 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2104 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2105 for asimd, vfp and coprocessor insns.
2106 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2107 and coprocessor insns.
2108 (thumb2_record_coproc_insn): New function.
2109 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2111 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2114 2014-09-13 Doug Evans <xdje42@gmail.com>
2116 * NEWS: Mention new "queue-signal" command.
2117 * infcmd.c (queue_signal_command): New function.
2118 (_initialize_infcmd): Add new queue-signal command.
2120 2014-09-13 Doug Evans <xdje42@gmail.com>
2122 * linux-nat.c (wait_lwp): Add debugging printf.
2123 (linux_nat_wait_1): Ditto.
2125 2014-09-12 Pedro Alves <palves@redhat.com>
2127 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2128 (create_and_insert_solib_event_breakpoint): New functions.
2129 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2130 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2131 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2132 (remove_dbx_link_breakpoint): Delete function.
2133 (insert_dbx_link_bpt_in_file): Use
2134 create_and_insert_solib_event_breakpoint instead of
2135 deprecated_insert_raw_breakpoint.
2136 (procfs_wait): Don't check whether we hit __dbx_link here.
2137 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2139 * solib-irix.c (base_breakpoint): Delete global.
2140 (disable_break): Delete function.
2141 (enable_break): Use create_solib_event_breakpoint
2142 instead of deprecated_insert_raw_breakpoint.
2143 (irix_solib_handle_event): New function.
2144 (irix_solib_create_inferior_hook): Don't run the target or disable
2145 the mapping-complete breakpoint here.
2146 (_initialize_irix_solib): Install irix_solib_handle_event as
2147 so_ops->handle_event hook.
2149 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2150 Ulrich Weigand <uweigand@de.ibm.com>
2153 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2154 instead of read_memory_unsigned_integer.
2156 2014-09-12 Gary Benson <gbenson@redhat.com>
2158 * nat/linux-waitpid.c: Include common-defs.h.
2159 [GDBSERVER]: Add FIXME comment.
2160 [!GDBSERVER]: Don't include defs.h or signal.h.
2161 (linux_debug) [!GDBSERVER]: Remove empty block.
2163 2014-09-12 Gary Benson <gbenson@redhat.com>
2165 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2166 Don't include defs.h or server.h.
2168 2014-09-12 Gary Benson <gbenson@redhat.com>
2170 * nat/linux-btrace.c: Include common-defs.h.
2171 Don't include defs.h, server.h or gdbthread.h.
2172 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2174 2014-09-12 Gary Benson <gbenson@redhat.com>
2176 * common/agent.c: Include common-defs.h.
2177 Don't include defs.h or server.h.
2178 * common/buffer.c: Likewise.
2179 * common/common-debug.c: Likewise.
2180 * common/common-utils.c: Likewise.
2181 * common/errors.c: Likewise.
2182 * common/filestuff.c: Likewise.
2183 * common/format.c: Likewise.
2184 * common/gdb_vecs.c: Likewise.
2185 * common/print-utils.c: Likewise.
2186 * common/ptid.c: Likewise.
2187 * common/rsp-low.c: Likewise.
2188 * common/signals.c: Likewise.
2189 * common/vec.c: Likewise.
2190 * common/xml-utils.c: Likewise.
2191 * nat/linux-osdata.c: Likewise.
2192 * nat/linux-procfs.c: Likewise.
2193 * nat/linux-ptrace.c: Likewise.
2194 * nat/mips-linux-watch.c: Likewise.
2195 * target/waitstatus.c: Likewise.
2197 2014-09-12 Tom Tromey <tromey@redhat.com>
2198 Gary Benson <gbenson@redhat.com>
2200 * common/common-regcache.h: New file.
2201 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2202 * regcache.h: Include common-regcache.h.
2203 (regcache_read_pc): Don't declare.
2204 * regcache.c (get_thread_regcache_for_ptid): New function.
2205 * nat/linux-btrace.c: Don't include regcache.h.
2206 Include common-regcache.h.
2207 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2209 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2211 * regcache.h (struct regset): Declare.
2213 2014-09-11 Pedro Alves <palves@redhat.com>
2216 * main.c: Include "infrun.h".
2217 (catch_command_errors, catch_command_errors_const): Wait for the
2218 foreground command to complete.
2219 * top.c (maybe_wait_sync_command_done): New function, factored out
2221 (maybe_wait_sync_command_done): ... here.
2222 * top.h (maybe_wait_sync_command_done): New declaration.
2224 2014-09-11 Tom Tromey <tromey@redhat.com>
2225 Gary Benson <gbenson@redhat.com>
2227 * common/symbol.h: New file.
2228 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2229 * minsyms.c (find_minimal_symbol_address): New function.
2230 * common/agent.c: Include common/symbol.h.
2231 [!GDBSERVER]: Don't include objfiles.h.
2232 (agent_look_up_symbols): Use find_minimal_symbol_address.
2234 2014-09-11 Gary Benson <gbenson@redhat.com>
2236 * target/target.h (target_stop_ptid, target_continue_ptid):
2238 * target.c (target_stop_ptid, target_continue_ptid): New
2240 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2241 (agent_run_command): Always use target_stop_ptid and
2242 target_continue_ptid.
2244 2014-09-11 Tom Tromey <tromey@redhat.com>
2245 Gary Benson <gbenson@redhat.com>
2247 * target/target.h: New file.
2248 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2249 * target.h: Include target/target.h.
2250 (target_read_memory, target_write_memory): Don't declare.
2251 * target.c (target_read_uint32): New function.
2252 * common/agent.c: Include target/target.h.
2253 [!GDBSERVER]: Don't include target.h.
2254 (helper_thread_id): Type changed to uint32_t.
2255 (agent_get_helper_thread_id): Use target_read_uint32.
2256 (agent_run_command): Always use target_read_memory and
2257 target_write_memory.
2258 (agent_capability): Type changed to uint32_t.
2259 (agent_capability_check): Use target_read_uint32.
2261 2014-09-11 Gary Benson <gbenson@redhat.com>
2263 * common/common-debug.h (show_debug_regs): Declare.
2264 * common/common-debug.c (show_debug_regs): Define.
2265 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2266 all uses with show_debug_regs. Replace all uses that considered
2267 debug_hw_points as a multi-value integer with straight boolean
2269 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2270 with show_debug_regs.
2271 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2272 all uses with show_debug_regs.
2273 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2274 uses with show_debug_regs.
2276 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2278 * findvar.c (address_from_register): Handle targets requiring
2279 a special conversion routine even for plain pointer types.
2281 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2283 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2284 (store_register): Do not call exec_one_dummy_insn.
2286 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2288 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2289 dereference it first. Use value_enclosing_type instead of
2291 (ada_array_length): Likewise.
2293 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2295 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2296 Adjust function implementation and documentation accordingly.
2297 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2298 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2299 Update call to ada_value_ptr_subscript.
2301 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2303 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2304 instead of VAL's type.
2306 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2308 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2310 2014-09-09 Doug Evans <xdje42@gmail.com>
2313 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2314 last parameter to pkg-config, not first.
2315 * configure.ac: Pass --with-guile provided pkg-config path to
2316 GDB_GUILE_PROGRAM_NAMES.
2317 * configure: Regenerate.
2319 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2321 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2324 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2326 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2327 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2328 the list of sections determining GDB_OSABI_IRIX.
2330 2014-09-09 James Hogan <james.hogan@imgtec.com>
2332 * MAINTAINERS (Write After Approval): Add "James Hogan".
2334 2014-09-09 James Hogan <james.hogan@imgtec.com>
2336 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2338 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2340 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2342 2014-09-08 Doug Evans <xdje42@gmail.com>
2345 * guile.c: #include <signal.h>.
2346 (_initialize_guile): Block SIGCHLD while initializing Guile.
2348 Replaces the following, which is reverted.
2350 2014-07-26 Doug Evans <xdje42@gmail.com>
2353 * configure.ac: Add check for header gc/gc.h.
2354 Add check for function setenv.
2355 * configure: Regenerate.
2356 * config.in: Regenerate.
2357 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2359 2014-09-08 Doug Evans <xdje42@gmail.com>
2361 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2362 with named constant. Fix style of pointer comparison.
2363 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2365 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2368 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2369 decide whether we display the command on "show user".
2370 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2371 printing command name.
2372 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2373 * cli/cli-decode.c (cli_user_command_p): Create helper function
2374 to verify whether cmd_list_element is a user-defined command.
2376 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2380 Fix goto out of TRY_CATCH.
2382 2014-09-06 Doug Evans <xdje42@gmail.com>
2383 Tom Tromey <tromey@redhat.com>
2386 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2387 $_any_caller_matches.
2388 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2389 * python/lib/gdb/function/caller_is.py: New file.
2391 2014-09-06 Doug Evans <xdje42@gmail.com>
2393 * infcmd.c (program_info): Fix typo.
2395 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2398 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2399 'number'. New variable 'has_digit'. Rewrite code to deal with
2400 subexpressions on SDT probes.
2402 2014-09-04 Pedro Alves <palves@redhat.com>
2404 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2405 the input is only one character long.
2407 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2410 * f-valprint.c (f_val_print): Specify the correct print option to
2411 use when printing integer values.
2413 2014-09-04 Gary Benson <gbenson@redhat.com>
2415 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2416 Remove code to cope with LWPs wrapped as PIDs.
2417 Add assertions to ensure no wrapped LWPs are passed.
2419 2014-09-04 Pedro Alves <palves@redhat.com>
2421 * value.c (value_ranges_copy_adjusted): New function, factored out
2423 (value_contents_copy_raw): ... here.
2424 (unpack_value_bits_as_long_1): Rename back to ...
2425 (unpack_bits_as_long): ... this. Remove 'original_value' and
2426 'result' parameters. Change return type to LONGEST.
2427 (unpack_value_bits_as_long): Delete.
2428 (unpack_value_field_as_long_1): Delete.
2429 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2430 (unpack_value_bitfield): New function.
2431 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2432 (value_fetch_lazy): Use unpack_value_bitfield.
2433 * value.h (unpack_value_bits_as_long): Delete declaration.
2435 2014-09-03 Sasha Smundak <asmundak@google.com>
2437 * python/py-frame.c (frapy_read_register): New function.
2439 2014-09-03 James Hogan <james.hogan@imgtec.com>
2441 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2442 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2444 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2447 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2449 (add_cmd): Set "completer_handle_brkchars" to NULL.
2450 * cli/cli-decode.h (struct cmd_list_element)
2451 <completer_handle_brkchars>: New field.
2452 * command.h (completer_ftype_void): New typedef.
2453 (set_cmd_completer_handle_brkchars): New prototype.
2454 * completer.c (set_gdb_completion_word_break_characters): New
2456 (complete_line_internal): Call "completer_handle_brkchars"
2457 callback from command.
2458 * completer.h: Include "command.h".
2459 (set_gdb_completion_word_break_characters): New prototype.
2460 * python/py-cmd.c (cmdpy_completer_helper): New function.
2461 (cmdpy_completer_handle_brkchars): New function.
2462 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2463 (cmdpy_init): Set completer_handle_brkchars to
2464 cmdpy_completer_handle_brkchars.
2466 2014-09-03 Gary Benson <gbenson@redhat.com>
2468 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2469 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2470 Loop conditions changed to equivalent form.
2471 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2472 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2473 ALL_DEBUG_ADDRESS_REGISTERS.
2475 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2477 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2480 2014-09-02 Doug Evans <dje@google.com>
2482 * typeprint.c (find_global_typedef): Fix comment.
2484 2014-09-02 Gary Benson <gbenson@redhat.com>
2486 * i386-nat.h: Renamed as...
2487 * x86-nat.h: New file. All type, function and variable name
2488 prefixes changed from "i386_" to "x86_". All references updated.
2489 * i386-nat.c: Renamed as...
2490 * x86-nat.c: New file. All type, function and variable name
2491 prefixes changed from "i386_" to "x86_". All references updated.
2492 * common/i386-xstate.h: Renamed as...
2493 * common/x86-xstate.h: New file. All type, function and variable
2494 name prefixes changed from "i386_" to "x86_". All references
2496 * nat/i386-cpuid.h: Renamed as...
2497 * nat/x86-cpuid.h: New file. All type, function and variable name
2498 prefixes changed from "i386_" to "x86_". All references updated.
2499 * nat/i386-gcc-cpuid.h: Renamed as...
2500 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2501 name prefixes changed from "i386_" to "x86_". All references
2503 * nat/i386-dregs.h: Renamed as...
2504 * nat/x86-dregs.h: New file. All type, function and variable name
2505 prefixes changed from "i386_" to "x86_". All references updated.
2506 * nat/i386-dregs.c: Renamed as...
2507 * nat/x86-dregs.c: New file. All type, function and variable name
2508 prefixes changed from "i386_" to "x86_". All references updated.
2510 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2512 * varobj.c (_initialize_varobj): Move to the end of file.
2514 2014-08-29 Gary Benson <gbenson@redhat.com>
2516 * common/common-exceptions.h: New file.
2517 * common/common-exceptions.c: Likewise.
2518 * Makefile.in (SFILES): Add common/common-exceptions.c.
2519 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2520 (COMMON_OBS): Add common-exceptions.o.
2521 (common-exceptions.o): New rule.
2522 * exceptions.h (common-exceptions.h): Include.
2523 (gdb_setjmp.h): Do not include.
2524 (return_reason): Moved to common-exceptions.h.
2525 (enum return_reason): Likewise.
2526 (RETURN_MASK): Likewise.
2527 (typedef return_mask): Likewise.
2528 (enum errors): Likewise.
2529 (struct gdb_exception): Likewise.
2530 (exceptions_state_mc_init): Likewise.
2531 (exceptions_state_mc_action_iter): Likewise.
2532 (exceptions_state_mc_action_iter_1): Likewise.
2533 (TRY_CATCH): Likewise.
2534 (throw_exception): Likewise.
2535 (throw_verror): Likewise.
2536 (throw_vquit): Likewise.
2537 (throw_error): Likewise.
2538 (throw_quit): Likewise.
2539 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2540 (enum catcher_action): Likewise.
2541 (struct catcher): Likewise.
2542 (current_catcher): Likewise.
2543 (catcher_list_size): Likewise.
2544 (exceptions_state_mc_init): Likewise.
2545 (catcher_pop): Likewise.
2546 (exceptions_state_mc): Likewise.
2547 (exceptions_state_mc_action_iter): Likewise.
2548 (exceptions_state_mc_action_iter_1): Likewise.
2549 (throw_exception): Likewise.
2550 (exception_messages): Likewise.
2551 (exception_messages_size): Likewise.
2552 (throw_it): Likewise.
2553 (throw_verror): Likewise.
2554 (throw_vquit): Likewise.
2555 (throw_error): Likewise.
2556 (throw_quit): Likewise.
2557 (prepare_to_throw_exception): New function.
2559 2014-08-29 Gary Benson <gbenson@redhat.com>
2561 * common/gdb_setjmp.h: New file.
2562 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2563 * configure.ac: Move sigsetjmp check...
2564 * common/common.m4: ...here.
2565 * configure: Regenerate.
2566 * cp-support.c (SIGJMP_BUF): Delete.
2567 (SIGSETJMP): Likewise.
2568 (SIGLONGJMP): Likewise.
2569 * exceptions.h (gdb_setjmp.h): Include.
2570 (setjmp.h): Do not include.
2571 (EXCEPTIONS_SIGJMP_BUF): Delete.
2572 (EXCEPTIONS_SIGSETJMP): Likewise.
2573 (EXCEPTIONS_SIGLONGJMP): Likewise.
2574 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2576 * exceptions.c: Likewise.
2578 2014-08-29 Gary Benson <gbenson@redhat.com>
2580 * cleanups.h: Moved to...
2581 * common/cleanups.h: New file.
2582 * cleanups.c: Moved to...
2583 * common/cleanups.c: New file. Include common-defs.h and
2584 cleanups.h. Do not include defs.h.
2585 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2586 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2587 (cleanups.o): New rule.
2589 2014-08-29 Gary Benson <gbenson@redhat.com>
2591 * common/errors.h (internal_warning): New declaration.
2592 (internal_vwarning): Likewise.
2593 * common/errors.c (internal_warning): New function.
2594 * utils.h (internal_warning): Don't declare.
2595 (internal_vwarning): Likewise.
2596 * utils.c (internal_warning): Removed.
2598 2014-08-29 Gary Benson <gbenson@redhat.com>
2600 * main.c (captured_main): Use warning during startup.
2601 Prefix startup warning messages with command name.
2603 2014-08-29 Gary Benson <gbenson@redhat.com>
2605 * main.c (captured_main): Handle usage errors with error.
2607 2014-08-29 Gary Benson <gbenson@redhat.com>
2609 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2610 exit pair with a call to error. Wrap the message with _().
2612 2014-08-29 Gary Benson <gbenson@redhat.com>
2614 * main.c (captured_main): Replace a fprintf/exit
2615 pair with a call to error. Wrap the message with _().
2617 2014-08-29 Gary Benson <gbenson@redhat.com>
2619 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2620 pairs with calls to error. Wrap the message with _().
2622 2014-08-29 Gary Benson <gbenson@redhat.com>
2624 * utils.c (vwarning): Protect calls to target_terminal_ours
2627 2014-08-29 Gary Benson <gbenson@redhat.com>
2629 * exceptions.c (print_flush): Protect calls to
2630 target_terminal_ours and wrap_here.
2632 2014-08-29 Gary Benson <gbenson@redhat.com>
2634 * utils.h (filtered_printing_initialized): New declaration.
2635 * utils.c (abort_with_message): New function.
2636 (internal_vproblem): Use abort_with_message for first level
2637 recursive internal problems, and if gdb_stderr is not set up.
2638 Protect calls to target_terminal_ours, begin_line and query.
2640 2014-08-28 Doug Evans <dje@google.com>
2642 * symtab.c (in_prologue): Move definition to better spot.
2643 (skip_prologue_using_sal): Ditto.
2645 2014-08-28 Doug Evans <dje@google.com>
2647 * symtab.c (find_function_start_sal): Move definition to better spot.
2649 2014-08-28 Yao Qi <yao@codesourcery.com>
2651 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2652 found_stack_adjust in forward scan. Remove condition check
2653 on found_stack_adjust which is always true. Indent the code.
2655 2014-08-28 Yao Qi <yao@codesourcery.com>
2657 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2658 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2659 (dwarf_decode_lines): Remove argument
2660 want_line_info. Remove condition check on want_line_info.
2663 2014-08-27 Doug Evans <dje@google.com>
2665 * dwarf2read.c (dwarf_record_line): Fix typo.
2667 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2669 * target.h (struct target_ops::to_terminal_save_ours): Remove
2671 (target_terminal_save_ours): Remove macro.
2672 * target-delegates.c: Regenerate.
2673 * inf-child.c (inf_child_target): Don't set the nonexistent
2674 field to_terminal_save_ours.
2675 * inferior.h (child_terminal_save_ours): Remove declaration.
2676 * terminal.h (gdb_save_tty_state): New declaration.
2677 * inflow.c (child_terminal_save_ours): Rename to ...
2678 (gdb_save_tty_state): ... this.
2679 * tui/tui.c: Include terminal.h.
2680 (tui_enable): Use gdb_save_tty_state instead of
2681 target_terminal_save_ours.
2682 (tui_disable): Likewise.
2684 2014-08-25 Doug Evans <dje@google.com>
2686 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2687 Pass NULL instead of 0 for context pointer.
2689 2014-08-25 Yao Qi <yao@codesourcery.com>
2691 * dwarf2read.c: Fix grammatical error.
2693 2014-08-24 Yao Qi <yao@codesourcery.com>
2695 * dwarf2read.c (scan_partial_symbols): Update comments.
2696 Rename argument 'need_pc' with 'set_addrmap'.
2697 (add_partial_namespace): Rename argument 'need_pc' with
2699 (add_partial_module): Likewise.
2700 (add_partial_subprogram): Likewise. Update comments.
2701 (dwarf2_name): Fix typo.
2703 2014-08-22 Doug Evans <dje@google.com>
2706 * dwarf2read.c (dwarf_record_line_p): New function.
2707 (dwarf_decode_lines_1): Ignore subsequent line number entries
2708 for the same line if any entry had a non-zero discriminator.
2710 2014-08-22 Doug Evans <dje@google.com>
2712 * buildsym.h (record_line_ftype): New typedef.
2713 (record_line): Use it.
2714 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2715 (dwarf_decode_lines_1): Call them.
2717 2014-08-22 Yao Qi <yao@codesourcery.com>
2719 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2720 (ctf_end): Remove code.
2722 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2724 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2725 (linux_make_corefile_notes): call update_thread_list, protected against
2728 2014-08-21 Pedro Alves <palves@redhat.com>
2730 * infcmd.c (attach_command): Remove comment.
2732 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2734 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2735 unsigned LONGEST to ULONGEST.
2737 2014-08-20 Pedro Alves <palves@redhat.com>
2739 * Makefile.in (check-read1): New rule.
2741 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2743 * value.c (value_from_contents_and_address): Strip resolved_type's
2744 typedef layers before checking its TYPE_DATA_LOCATION.
2746 2014-08-20 Pedro Alves <palves@redhat.com>
2748 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2750 2014-08-20 Yao Qi <yao@codesourcery.com>
2752 * amd64-tdep.c (amd64_classify): Add a blank line after the
2753 example. Move "*/" to a new line.
2754 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2755 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2756 * dwarf2read.c (psymtab_include_file_name): Likewise.
2758 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2759 Pedro Alves <palves@redhat.com>
2763 * ada-lang.c (coerce_unspec_val_to_type): Use
2764 value_contents_copy_raw.
2765 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2766 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2767 * cp-valprint.c (cp_print_value_fields): Let the common printing
2768 code handle optimized out values.
2769 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2770 * d-valprint.c (dynamic_array_type): Use
2771 value_bits_any_optimized_out.
2772 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2773 check_any_valid fields.
2774 (check_pieced_value_bits): Delete and inline ...
2775 (check_pieced_synthetic_pointer): ... here.
2776 (check_pieced_value_validity): Delete.
2777 (check_pieced_value_invalid): Delete.
2778 (pieced_value_funcs): Remove check_validity and check_any_valid
2780 (read_pieced_value): Use mark_value_bits_optimized_out.
2781 (write_pieced_value): Switch to use
2782 mark_value_bytes_optimized_out.
2783 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2784 of assuming the whole value is optimized out.
2785 * findvar.c (read_frame_register_value): Remove special handling
2786 of optimized out registers.
2787 (value_from_register): Use mark_value_bytes_optimized_out.
2788 * frame-unwind.c (frame_unwind_got_optimized): Use
2789 mark_value_bytes_optimized_out.
2790 * jv-valprint.c (java_value_print): Adjust.
2791 (java_print_value_fields): Let the common printing code handle
2792 optimized out values.
2793 * mips-tdep.c (mips_print_register): Remove special handling of
2794 optimized out registers.
2795 * opencl-lang.c (lval_func_check_validity): Delete.
2796 (lval_func_check_any_valid): Delete.
2797 (opencl_value_funcs): Remove check_validity and check_any_valid
2799 * p-valprint.c (pascal_object_print_value_fields): Let the common
2800 printing code handle optimized out values.
2801 * stack.c (read_frame_arg): Remove special handling of optimized
2802 out values. Fetch both VAL and ENTRYVAL before comparing
2803 contents. Adjust to value_available_contents_eq rename.
2804 * valprint.c (valprint_check_validity)
2805 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2806 (val_print_array_elements): Adjust.
2807 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2808 (value_bits_any_optimized_out): New function.
2809 (value_entirely_covered_by_range_vector): New function, factored
2810 out from value_entirely_unavailable.
2811 (value_entirely_unavailable): Reimplement.
2812 (value_entirely_optimized_out): New function.
2813 (insert_into_bit_range_vector): New function, factored out from
2814 mark_value_bits_unavailable.
2815 (mark_value_bits_unavailable): Reimplement.
2816 (struct ranges_and_idx): New struct.
2817 (find_first_range_overlap_and_match): New function, factored out
2818 from value_available_contents_bits_eq.
2819 (value_available_contents_bits_eq): Rename to ...
2820 (value_contents_bits_eq): ... this. Check both unavailable
2821 contents and optimized out contents.
2822 (value_available_contents_eq): Rename to ...
2823 (value_contents_eq): ... this.
2824 (allocate_value_lazy): Remove reference to the old optimized_out
2826 (allocate_optimized_out_value): Use
2827 mark_value_bytes_optimized_out.
2828 (require_not_optimized_out): Adjust to check whether the
2829 optimized_out vec is empty.
2830 (ranges_copy_adjusted): New function, factored out from
2831 value_contents_copy_raw.
2832 (value_contents_copy_raw): Also copy the optimized out ranges.
2833 Assert the destination ranges aren't optimized out.
2834 (value_contents_copy): Update comment, remove call to
2835 require_not_optimized_out.
2836 (value_contents_equal): Adjust to check whether the optimized_out
2838 (set_value_optimized_out, value_optimized_out_const): Delete.
2839 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2841 (value_entirely_optimized_out, value_bits_valid): Delete.
2842 (value_copy): Take a VEC copy of the 'optimized_out' field.
2843 (value_primitive_field): Remove special handling of optimized out.
2844 (value_fetch_lazy): Assert that lazy values have no unavailable
2845 regions. Use value_bits_any_optimized_out. Remove some special
2846 handling for optimized out values.
2847 * value.h: Add intro comment about <optimized out> and
2849 (struct lval_funcs): Remove check_validity and check_any_valid
2851 (set_value_optimized_out, value_optimized_out_const): Remove.
2852 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2854 (value_bits_any_optimized_out): New declaration.
2855 (value_bits_valid): Delete declaration.
2856 (value_available_contents_eq): Rename to ...
2857 (value_contents_eq): ... this, and extend comments.
2859 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2861 Fix -fsanitize=address on unreadable inferior strings.
2862 * valprint.c (val_print_string): Fix access before BUFFER.
2864 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2866 * target.c (target_struct_size): Remove.
2867 (target_struct_allocsize): Remove.
2868 (DEFAULT_ALLOCSIZE): Remove.
2869 (target_ops_p): New typedef.
2870 (DEF_VEC_P (target_ops_p)): New vector type.
2871 (target_structs): Change type to VEC (target_ops_p).
2872 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2873 (find_default_run_target): Rewrite for loop following changes to
2876 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2878 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2879 Adjust code accordingly. Adjust function description comment.
2881 2014-08-19 Yao Qi <yao@codesourcery.com>
2883 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2886 2014-08-19 Alan Modra <amodra@gmail.com>
2888 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2889 * config.in: Regenerate.
2890 * configure: Regenerate.
2892 2014-08-19 Tom Tromey <tromey@redhat.com>
2893 Gary Benson <gbenson@redhat.com>
2895 * common/common-debug.h: New file.
2896 * common/common-debug.c: Likewise.
2897 * debug.c: Likewise.
2898 * Makefile.in (SFILES): Add common/common-debug.c.
2899 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2900 (COMMON_OBS): Add common-debug.o and debug.o.
2901 (common-debug.o): New rule.
2902 * common/common-defs.h: Include common-debug.h.
2903 * common/agent.c (debug_agent_printf): New function.
2904 (DEBUG_AGENT): Redefine.
2905 * nat/i386-dregs.c (debug_printf): Undefine.
2907 2014-08-19 Gary Benson <gbenson@redhat.com>
2909 * common/common-defs.h: Include print-utils.h.
2910 * utils.h: Do not include print-utils.h.
2912 2014-08-19 Tom Tromey <tromey@redhat.com>
2913 Gary Benson <gbenson@redhat.com>
2915 * common/common-types.h: New file.
2916 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2917 * common/common-defs.h: Include common-types.h.
2918 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2921 2014-08-19 Tom Tromey <tromey@redhat.com>
2922 Gary Benson <gbenson@redhat.com>
2924 * common/errors.h: New file.
2925 * common/errors.c: Likewise.
2926 * Makefile.in (SFILES): Add common/errors.c.
2927 (HFILES_NO_SRCDIR): Add common/errors.h.
2928 (COMMON_OBS): Add errors.o.
2929 (errors.o): New rule.
2930 * common/common-defs.h: Include errors.h.
2931 * utils.h (perror_with_name, error, verror, warning, vwarning):
2933 * common/common-utils.h: (malloc_failure, internal_error):
2936 2014-08-19 Gary Benson <gbenson@redhat.com>
2938 * utils.c (internal_vproblem): Always print the message.
2940 2014-08-18 Doug Evans <dje@google.com>
2942 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2944 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2946 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2947 Return 0 if TYPE is dynamic.
2948 (print_range): Add handling of dynamic ranges.
2950 2014-08-18 Keven Boell <keven.boell@intel.com>
2951 Joel Brobecker <brobecker@adacore.com>
2953 * gdbtypes.h (struct main_type): Add field "data_location".
2954 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2955 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2956 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2957 a dynamic data location.
2958 (resolve_dynamic_type): Add DW_AT_data_location handling.
2959 (copy_recursive, copy_type): Copy the data_location information
2961 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2962 * value.c (value_from_contents_and_address): Add
2963 DW_AT_data_location handling.
2965 2014-08-18 Keven Boell <keven.boell@intel.com>
2966 Joel Brobecker <brobecker@adacore.com>
2968 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2969 field "get_object_address".
2970 * dwarf2expr.c (execute_stack_op): Add handling for
2971 DW_OP_push_object_address.
2972 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2973 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2974 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2975 (dwarf_expr_get_obj_addr): New function.
2976 (dwarf_expr_ctx_funcs): Add get_object_address field.
2977 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2978 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2979 (dwarf2_evaluate_property): Add parameter "address". Use it.
2980 (needs_get_obj_addr): New function.
2981 (needs_frame_ctx_funcs): Add get_object_address field.
2982 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2983 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2984 (resolve_dynamic_array): Likewise.
2986 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2988 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2989 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2990 fixed value for records and unions for which some GNAT encodings
2993 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2995 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2996 rewrite to avoid "else if" and "else" constructs. Should be
2997 a no-op in practice.
2999 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3001 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3004 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3007 * eval.c: Update all calls to find_overload_match.
3008 * valarith.c: Likewise.
3009 (value_user_defined_cpp_op, value_user_defined_op): New
3010 argument NOSIDE. Update all callers.
3011 * valops.c (find_overload_match): New argument NOSIDE.
3012 * value.h (find_overload_match): Update signature.
3014 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3016 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3017 'items' methods instead of 'iteritems' method on dictionaries.
3019 2014-08-15 Doug Evans <dje@google.com>
3021 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3024 2014-08-15 Doug Evans <dje@google.com>
3026 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3028 2014-08-15 Doug Evans <dje@google.com>
3030 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3032 2014-08-15 Doug Evans <dje@google.com>
3034 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3037 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3039 * dcache.h: Include target.h, to avoid compile time warnings.
3041 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3043 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3044 frame_info" partial declaration.
3045 * gdbarch.h: Regenerate.
3047 2014-08-15 Yao Qi <yao@codesourcery.com>
3049 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3050 Add parameter 'decode_for_pst_p'. Callers update.
3052 2014-08-13 Yao Qi <yao@codesourcery.com>
3055 * configure.ac: Use local variable 'pos'.
3056 * configure: Regenerated.
3058 2014-08-11 Doug Evans <dje@google.com>
3060 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3061 message, it is redundant with "Reading symbols from ..." message.
3063 2014-08-10 Doug Evans <xdje42@gmail.com>
3065 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3067 2014-08-09 Yao Qi <yao@codesourcery.com>
3070 * remote.c (remote_xfer_partial): Remove dead code.
3072 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3074 * ia64-linux-tdep.c: Include "regset.h".
3075 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3076 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3077 (ia64_linux_supply_fpregset): New function.
3078 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3079 (ia64_linux_regset_from_core_section): New function.
3080 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3085 * m68klinux-tdep.c: Include "regset.h".
3086 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3087 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3088 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3089 (m68k_linux_regset_from_core_section): New function.
3090 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3096 function. Move logic to...
3097 (tilegx_linux_regmap): ... this new register map.
3098 (tilegx_linux_regset): Refer to register map, replace supply
3099 method by regcache_supply_regset, and add collect method.
3100 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3101 TILEGX_FIRST_EASY_REGNUM.
3103 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3105 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3106 that calls regcache_supply_regset and handles the EPC register
3107 separately. Move main logic to...
3108 (score7_linux_gregmap): ... this new register map.
3109 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3110 (score7_linux_gregset): Refer to register map. Add collect method.
3111 (score7_linux_regset_from_core_section): Replace
3112 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3113 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3114 (struct regset): Delete unused forward declaraction.
3115 (struct pt_regs): Delete structure definition.
3116 (elf_gregset_t): Delete typedef.
3118 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3120 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3121 (nios2_core_regset): Add collect method.
3123 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3125 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3126 platform-independent and don't write to read-only input buffer.
3127 (m32r_linux_collect_gregset): New function.
3128 (m32r_linux_gregset): Add collect method.
3130 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3132 * hppa-linux-tdep.c (greg_map): Rename to...
3133 (hppa_linux_gregmap): ... this. Also convert to
3134 regcache_map_entry format.
3135 (hppa_linux_supply_regset): Delete function.
3136 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3137 (hppa_linux_fpregmap): ... this new register map.
3138 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3139 register map, replace supply method by regcache_supply_regset, and
3140 add collect method regcache_collect_regset.
3142 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3144 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3145 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3146 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3147 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3148 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3149 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3150 (frv_linux_supply_gregset): Replace main logic by call to
3151 regcache_supply_regset, but keep clearing gr32-gr63.
3152 (frv_linux_supply_fpregset): Delete function.
3153 (frv_linux_gregset): Refer to appropriate register map and add
3154 regcache_collect_regset as the collect method.
3155 (frv_linux_fpregset): Likewise. Also exchange the supply method
3156 by regcache_supply_regset.
3158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3160 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3161 by call to alpha_supply_int_regs.
3162 (alpha_linux_collect_gregset): New function.
3163 (alpha_linux_supply_fpregset): Replace logic by call to
3164 alpha_supply_fp_regs.
3165 (alpha_linux_collect_fpregset): New function.
3166 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3168 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3171 by call to regcache_collect_regset.
3172 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3173 instead of aarch64_linux_supply_gregset/_fpregset.
3174 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3175 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3176 header file instead.
3177 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3178 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3179 functions. Move logic to ...
3180 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3182 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3183 refer to new register maps, replace *_regset_from_core by
3184 regcache_supply_regset, and also use regcache_collect_regset.
3185 * aarch64-linux-tdep.h: Include "regset.h".
3186 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3188 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3189 macros, moved from C source file.
3190 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3191 variable declarations.
3193 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3195 * s390-linux-nat.c: Include "regset.h".
3196 (regmap_gregset): Delete macro.
3197 (s390_64_regmap_gregset): New register map for
3198 regcache_supply/_collect_regset.
3199 (s390_64_gregset): New regset.
3200 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3201 (regmap_fpregset): Delete macro.
3202 (s390_native_supply, s390_native_collect): Delete functions.
3203 (supply_gregset, fill_gregset): Replace s390-specific regmap
3204 handling by a call to regcache_supply/_collect_regset.
3205 (supply_fpregset, fill_fpregset): Call regcache_supply/
3206 _collect_regset instead of s390_native_supply/_collect.
3207 (fetch_regset, store_regset): Likewise. Also change the last
3208 parameter to a regset instead of a regmap.
3209 (s390_linux_fetch_inferior_registers)
3210 (390_linux_store_inferior_registers): Adjust last parameter in
3211 calls to fetch_regset and store_regset.
3212 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3213 (s390_gregmap): ... this. Also make static const and convert to
3214 regcache_map_entry format.
3215 (s390x_regmap_gregset): Delete.
3216 (s390_regmap_fpregset): Rename to...
3217 (s390_fpregmap): ... this. Make static const and convert to
3218 regcache_map_entry format.
3219 (s390_regmap_upper, s390_regmap_last_break)
3220 (s390x_regmap_last_break, s390_regmap_system_call)
3221 (s390_regmap_tdb): Likewise.
3222 (s390_supply_regset, s390_collect_regset): Remove functions.
3223 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3225 (s390_gregset, s390_fpregset, s390_upper_regset)
3226 (s390_last_break_regset, s390x_last_break_regset)
3227 (s390_system_call_regset, s390_tdb_regset): Make global and
3228 replace s390_supply/_collect_regset by regcache_supply/
3230 (s390x_gregset): Delete.
3231 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3232 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3233 (s390_regmap_fpregset, s390_regmap_last_break)
3234 (s390x_regmap_last_break, s390_regmap_system_call)
3235 (s390_regmap_tdb): Delete global variable declarations.
3236 (s390_gregset, s390_fpregset, s390_last_break_regset)
3237 (s390x_last_break_regset, s390_system_call_regset)
3238 (s390_tdb_regset): New global variable declarations.
3240 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242 * regcache.c: Include "regset.h".
3243 (regcache_transfer_regset): New local function.
3244 (regcache_supply_regset, regcache_collect_regset): New functions.
3245 * regcache.h (struct regcache_map_entry): New structure.
3246 (REGCACHE_MAP_SKIP): New enum value.
3247 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3249 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3251 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3252 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3253 (ppc_linux_collect_gregset ): Likewise.
3254 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3255 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3256 (ppc_collect_vrregset): Likewise.
3257 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3260 2014-08-07 Yao Qi <yao@codesourcery.com>
3262 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3263 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3264 * remote.c (remote_read_bytes): Likewise.
3266 2014-08-07 Yao Qi <yao@codesourcery.com>
3268 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3270 2014-08-07 Yao Qi <yao@codesourcery.com>
3273 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3274 TARGET_XFER_OK instead of 0.
3276 2014-08-07 Gary Benson <gbenson@redhat.com>
3278 * common/common-defs.h: Include errno.h.
3279 * defs.h: Do not include errno.h.
3280 * ada-typeprint.c: Likewise.
3281 * c-typeprint.c: Likewise.
3282 * core-regset.c: Likewise.
3283 * corefile.c: Likewise.
3284 * corelow.c: Likewise.
3285 * event-loop.c: Likewise.
3286 * f-typeprint.c: Likewise.
3287 * gnu-nat.c: Likewise.
3288 * go32-nat.c: Likewise.
3289 * i386gnu-nat.c: Likewise.
3290 * m2-typeprint.c: Likewise.
3291 * nat/linux-btrace.c: Likewise.
3292 * p-typeprint.c: Likewise.
3293 * procfs.c: Likewise.
3294 * remote-sim.c: Likewise.
3295 * rs6000-nat.c: Likewise.
3296 * target.c: Likewise.
3297 * typeprint.c: Likewise.
3298 * ui-file.c: Likewise.
3299 * valops.c: Likewise.
3300 * valprint.c: Likewise.
3302 2014-08-07 Gary Benson <gbenson@redhat.com>
3304 * common/common-defs.h: Include string.h.
3305 * aarch64-tdep.c: Do not include string.h.
3306 * ada-exp.y: Likewise.
3307 * ada-lang.c: Likewise.
3308 * ada-lex.l: Likewise.
3309 * ada-typeprint.c: Likewise.
3310 * ada-valprint.c: Likewise.
3311 * aix-thread.c: Likewise.
3312 * alpha-linux-tdep.c: Likewise.
3313 * alpha-mdebug-tdep.c: Likewise.
3314 * alpha-nat.c: Likewise.
3315 * alpha-osf1-tdep.c: Likewise.
3316 * alpha-tdep.c: Likewise.
3317 * alphanbsd-tdep.c: Likewise.
3318 * amd64-dicos-tdep.c: Likewise.
3319 * amd64-linux-tdep.c: Likewise.
3320 * amd64-nat.c: Likewise.
3321 * amd64-sol2-tdep.c: Likewise.
3322 * amd64fbsd-tdep.c: Likewise.
3323 * amd64obsd-tdep.c: Likewise.
3324 * arch-utils.c: Likewise.
3325 * arm-linux-nat.c: Likewise.
3326 * arm-linux-tdep.c: Likewise.
3327 * arm-tdep.c: Likewise.
3328 * arm-wince-tdep.c: Likewise.
3329 * armbsd-tdep.c: Likewise.
3330 * armnbsd-nat.c: Likewise.
3331 * armnbsd-tdep.c: Likewise.
3332 * armobsd-tdep.c: Likewise.
3333 * avr-tdep.c: Likewise.
3334 * ax-gdb.c: Likewise.
3335 * ax-general.c: Likewise.
3336 * bcache.c: Likewise.
3337 * bfin-tdep.c: Likewise.
3338 * breakpoint.c: Likewise.
3339 * build-id.c: Likewise.
3340 * buildsym.c: Likewise.
3341 * c-exp.y: Likewise.
3342 * c-lang.c: Likewise.
3343 * c-typeprint.c: Likewise.
3344 * c-valprint.c: Likewise.
3345 * charset.c: Likewise.
3346 * cli-out.c: Likewise.
3347 * cli/cli-cmds.c: Likewise.
3348 * cli/cli-decode.c: Likewise.
3349 * cli/cli-dump.c: Likewise.
3350 * cli/cli-interp.c: Likewise.
3351 * cli/cli-logging.c: Likewise.
3352 * cli/cli-script.c: Likewise.
3353 * cli/cli-setshow.c: Likewise.
3354 * cli/cli-utils.c: Likewise.
3355 * coffread.c: Likewise.
3356 * common/agent.c: Likewise.
3357 * common/buffer.c: Likewise.
3358 * common/buffer.h: Likewise.
3359 * common/common-utils.c: Likewise.
3360 * common/filestuff.c: Likewise.
3361 * common/filestuff.c: Likewise.
3362 * common/format.c: Likewise.
3363 * common/print-utils.c: Likewise.
3364 * common/rsp-low.c: Likewise.
3365 * common/signals.c: Likewise.
3366 * common/vec.h: Likewise.
3367 * common/xml-utils.c: Likewise.
3368 * core-regset.c: Likewise.
3369 * corefile.c: Likewise.
3370 * corelow.c: Likewise.
3371 * cp-abi.c: Likewise.
3372 * cp-name-parser.y: Likewise.
3373 * cp-support.c: Likewise.
3374 * cp-valprint.c: Likewise.
3375 * cris-tdep.c: Likewise.
3376 * d-exp.y: Likewise.
3377 * darwin-nat.c: Likewise.
3378 * dbxread.c: Likewise.
3379 * dcache.c: Likewise.
3380 * demangle.c: Likewise.
3381 * dicos-tdep.c: Likewise.
3382 * disasm.c: Likewise.
3383 * doublest.c: Likewise.
3384 * dsrec.c: Likewise.
3385 * dummy-frame.c: Likewise.
3386 * dwarf2-frame.c: Likewise.
3387 * dwarf2loc.c: Likewise.
3388 * dwarf2read.c: Likewise.
3389 * elfread.c: Likewise.
3390 * environ.c: Likewise.
3392 * event-loop.c: Likewise.
3393 * exceptions.c: Likewise.
3395 * expprint.c: Likewise.
3396 * f-exp.y: Likewise.
3397 * f-lang.c: Likewise.
3398 * f-typeprint.c: Likewise.
3399 * f-valprint.c: Likewise.
3400 * fbsd-nat.c: Likewise.
3401 * findcmd.c: Likewise.
3402 * findvar.c: Likewise.
3403 * fork-child.c: Likewise.
3404 * frame.c: Likewise.
3405 * frv-linux-tdep.c: Likewise.
3406 * frv-tdep.c: Likewise.
3408 * gdb_bfd.c: Likewise.
3409 * gdbarch.c: Likewise.
3410 * gdbarch.sh: Likewise.
3411 * gdbtypes.c: Likewise.
3412 * gnu-nat.c: Likewise.
3413 * gnu-v2-abi.c: Likewise.
3414 * gnu-v3-abi.c: Likewise.
3415 * go-exp.y: Likewise.
3416 * go-lang.c: Likewise.
3417 * go32-nat.c: Likewise.
3418 * guile/guile.c: Likewise.
3419 * guile/scm-auto-load.c: Likewise.
3420 * hppa-hpux-tdep.c: Likewise.
3421 * hppa-linux-nat.c: Likewise.
3422 * hppanbsd-tdep.c: Likewise.
3423 * hppaobsd-tdep.c: Likewise.
3424 * i386-cygwin-tdep.c: Likewise.
3425 * i386-dicos-tdep.c: Likewise.
3426 * i386-linux-tdep.c: Likewise.
3427 * i386-nto-tdep.c: Likewise.
3428 * i386-sol2-tdep.c: Likewise.
3429 * i386-tdep.c: Likewise.
3430 * i386bsd-tdep.c: Likewise.
3431 * i386gnu-nat.c: Likewise.
3432 * i386nbsd-tdep.c: Likewise.
3433 * i386obsd-tdep.c: Likewise.
3434 * i387-tdep.c: Likewise.
3435 * ia64-libunwind-tdep.c: Likewise.
3436 * ia64-linux-nat.c: Likewise.
3437 * inf-child.c: Likewise.
3438 * inf-ptrace.c: Likewise.
3439 * inf-ttrace.c: Likewise.
3440 * infcall.c: Likewise.
3441 * infcmd.c: Likewise.
3442 * inflow.c: Likewise.
3443 * infrun.c: Likewise.
3444 * interps.c: Likewise.
3445 * iq2000-tdep.c: Likewise.
3446 * irix5-nat.c: Likewise.
3447 * jv-exp.y: Likewise.
3448 * jv-lang.c: Likewise.
3449 * jv-typeprint.c: Likewise.
3450 * jv-valprint.c: Likewise.
3451 * language.c: Likewise.
3452 * linux-fork.c: Likewise.
3453 * linux-nat.c: Likewise.
3454 * lm32-tdep.c: Likewise.
3455 * m2-exp.y: Likewise.
3456 * m2-typeprint.c: Likewise.
3457 * m32c-tdep.c: Likewise.
3458 * m32r-linux-nat.c: Likewise.
3459 * m32r-linux-tdep.c: Likewise.
3460 * m32r-rom.c: Likewise.
3461 * m32r-tdep.c: Likewise.
3462 * m68hc11-tdep.c: Likewise.
3463 * m68k-tdep.c: Likewise.
3464 * m68kbsd-tdep.c: Likewise.
3465 * m68klinux-nat.c: Likewise.
3466 * m68klinux-tdep.c: Likewise.
3467 * m88k-tdep.c: Likewise.
3468 * machoread.c: Likewise.
3469 * macrocmd.c: Likewise.
3471 * mdebugread.c: Likewise.
3472 * mem-break.c: Likewise.
3473 * memattr.c: Likewise.
3474 * memory-map.c: Likewise.
3475 * mep-tdep.c: Likewise.
3476 * mi/mi-cmd-break.c: Likewise.
3477 * mi/mi-cmd-disas.c: Likewise.
3478 * mi/mi-cmd-env.c: Likewise.
3479 * mi/mi-cmd-stack.c: Likewise.
3480 * mi/mi-cmd-var.c: Likewise.
3481 * mi/mi-cmds.c: Likewise.
3482 * mi/mi-console.c: Likewise.
3483 * mi/mi-getopt.c: Likewise.
3484 * mi/mi-interp.c: Likewise.
3485 * mi/mi-main.c: Likewise.
3486 * mi/mi-parse.c: Likewise.
3487 * microblaze-rom.c: Likewise.
3488 * microblaze-tdep.c: Likewise.
3489 * mingw-hdep.c: Likewise.
3490 * minidebug.c: Likewise.
3491 * minsyms.c: Likewise.
3492 * mips-irix-tdep.c: Likewise.
3493 * mips-linux-tdep.c: Likewise.
3494 * mips-tdep.c: Likewise.
3495 * mips64obsd-tdep.c: Likewise.
3496 * mipsnbsd-tdep.c: Likewise.
3497 * mipsread.c: Likewise.
3498 * mn10300-linux-tdep.c: Likewise.
3499 * mn10300-tdep.c: Likewise.
3500 * monitor.c: Likewise.
3501 * moxie-tdep.c: Likewise.
3502 * mt-tdep.c: Likewise.
3503 * nat/linux-btrace.c: Likewise.
3504 * nat/linux-osdata.c: Likewise.
3505 * nat/linux-procfs.c: Likewise.
3506 * nat/linux-ptrace.c: Likewise.
3507 * nat/linux-waitpid.c: Likewise.
3508 * nbsd-tdep.c: Likewise.
3509 * nios2-linux-tdep.c: Likewise.
3510 * nto-procfs.c: Likewise.
3511 * nto-tdep.c: Likewise.
3512 * objc-lang.c: Likewise.
3513 * objfiles.c: Likewise.
3514 * opencl-lang.c: Likewise.
3515 * osabi.c: Likewise.
3516 * osdata.c: Likewise.
3517 * p-exp.y: Likewise.
3518 * p-lang.c: Likewise.
3519 * p-typeprint.c: Likewise.
3520 * parse.c: Likewise.
3521 * posix-hdep.c: Likewise.
3522 * ppc-linux-nat.c: Likewise.
3523 * ppc-sysv-tdep.c: Likewise.
3524 * ppcfbsd-tdep.c: Likewise.
3525 * ppcnbsd-tdep.c: Likewise.
3526 * ppcobsd-tdep.c: Likewise.
3527 * printcmd.c: Likewise.
3528 * procfs.c: Likewise.
3529 * prologue-value.c: Likewise.
3530 * python/py-auto-load.c: Likewise.
3531 * python/py-gdb-readline.c: Likewise.
3532 * ravenscar-thread.c: Likewise.
3533 * regcache.c: Likewise.
3534 * registry.c: Likewise.
3535 * remote-fileio.c: Likewise.
3536 * remote-m32r-sdi.c: Likewise.
3537 * remote-mips.c: Likewise.
3538 * remote-notif.c: Likewise.
3539 * remote-sim.c: Likewise.
3540 * remote.c: Likewise.
3541 * reverse.c: Likewise.
3542 * rs6000-aix-tdep.c: Likewise.
3543 * ser-base.c: Likewise.
3544 * ser-go32.c: Likewise.
3545 * ser-mingw.c: Likewise.
3546 * ser-pipe.c: Likewise.
3547 * ser-tcp.c: Likewise.
3548 * ser-unix.c: Likewise.
3549 * serial.c: Likewise.
3550 * sh-tdep.c: Likewise.
3551 * sh64-tdep.c: Likewise.
3552 * shnbsd-tdep.c: Likewise.
3554 * sol-thread.c: Likewise.
3555 * solib-dsbt.c: Likewise.
3556 * solib-frv.c: Likewise.
3557 * solib-osf.c: Likewise.
3558 * solib-som.c: Likewise.
3559 * solib-spu.c: Likewise.
3560 * solib-target.c: Likewise.
3561 * solib.c: Likewise.
3562 * somread.c: Likewise.
3563 * source.c: Likewise.
3564 * sparc-nat.c: Likewise.
3565 * sparc-sol2-tdep.c: Likewise.
3566 * sparc-tdep.c: Likewise.
3567 * sparc64-tdep.c: Likewise.
3568 * sparc64fbsd-tdep.c: Likewise.
3569 * sparc64nbsd-tdep.c: Likewise.
3570 * sparcnbsd-tdep.c: Likewise.
3571 * spu-linux-nat.c: Likewise.
3572 * spu-multiarch.c: Likewise.
3573 * spu-tdep.c: Likewise.
3574 * stabsread.c: Likewise.
3575 * stack.c: Likewise.
3576 * std-regs.c: Likewise.
3577 * symfile.c: Likewise.
3578 * symmisc.c: Likewise.
3579 * symtab.c: Likewise.
3580 * target.c: Likewise.
3581 * thread.c: Likewise.
3582 * tilegx-linux-nat.c: Likewise.
3583 * tilegx-tdep.c: Likewise.
3585 * tracepoint.c: Likewise.
3586 * tui/tui-command.c: Likewise.
3587 * tui/tui-data.c: Likewise.
3588 * tui/tui-disasm.c: Likewise.
3589 * tui/tui-file.c: Likewise.
3590 * tui/tui-layout.c: Likewise.
3591 * tui/tui-out.c: Likewise.
3592 * tui/tui-regs.c: Likewise.
3593 * tui/tui-source.c: Likewise.
3594 * tui/tui-stack.c: Likewise.
3595 * tui/tui-win.c: Likewise.
3596 * tui/tui-windata.c: Likewise.
3597 * tui/tui-winsource.c: Likewise.
3598 * typeprint.c: Likewise.
3599 * ui-file.c: Likewise.
3600 * ui-out.c: Likewise.
3601 * user-regs.c: Likewise.
3602 * utils.c: Likewise.
3603 * v850-tdep.c: Likewise.
3604 * valarith.c: Likewise.
3605 * valops.c: Likewise.
3606 * valprint.c: Likewise.
3607 * value.c: Likewise.
3608 * varobj.c: Likewise.
3609 * vax-tdep.c: Likewise.
3610 * vaxnbsd-tdep.c: Likewise.
3611 * vaxobsd-tdep.c: Likewise.
3612 * windows-nat.c: Likewise.
3613 * xcoffread.c: Likewise.
3614 * xml-support.c: Likewise.
3615 * xstormy16-tdep.c: Likewise.
3616 * xtensa-linux-nat.c: Likewise.
3618 2014-08-07 Gary Benson <gbenson@redhat.com>
3620 * common/common-defs.h: Include gdb_assert.h.
3621 * aarch64-tdep.c: Do not include gdb_assert.h.
3622 * addrmap.c: Likewise.
3623 * aix-thread.c: Likewise.
3624 * alpha-linux-tdep.c: Likewise.
3625 * alpha-mdebug-tdep.c: Likewise.
3626 * alphanbsd-tdep.c: Likewise.
3627 * amd64-nat.c: Likewise.
3628 * amd64-tdep.c: Likewise.
3629 * amd64bsd-nat.c: Likewise.
3630 * amd64fbsd-nat.c: Likewise.
3631 * amd64fbsd-tdep.c: Likewise.
3632 * amd64nbsd-nat.c: Likewise.
3633 * amd64nbsd-tdep.c: Likewise.
3634 * amd64obsd-nat.c: Likewise.
3635 * amd64obsd-tdep.c: Likewise.
3636 * arch-utils.c: Likewise.
3637 * arm-tdep.c: Likewise.
3638 * armbsd-tdep.c: Likewise.
3640 * bcache.c: Likewise.
3641 * bfin-tdep.c: Likewise.
3642 * blockframe.c: Likewise.
3643 * breakpoint.c: Likewise.
3644 * bsd-kvm.c: Likewise.
3645 * bsd-uthread.c: Likewise.
3646 * buildsym.c: Likewise.
3647 * c-exp.y: Likewise.
3648 * c-lang.c: Likewise.
3649 * charset.c: Likewise.
3650 * cleanups.c: Likewise.
3651 * cli-out.c: Likewise.
3652 * cli/cli-decode.c: Likewise.
3653 * cli/cli-dump.c: Likewise.
3654 * cli/cli-logging.c: Likewise.
3655 * cli/cli-script.c: Likewise.
3656 * cli/cli-utils.c: Likewise.
3657 * coffread.c: Likewise.
3658 * common/common-utils.c: Likewise.
3659 * common/queue.h: Likewise.
3660 * common/signals.c: Likewise.
3661 * common/vec.h: Likewise.
3662 * complaints.c: Likewise.
3663 * completer.c: Likewise.
3664 * corelow.c: Likewise.
3665 * cp-abi.c: Likewise.
3666 * cp-name-parser.y: Likewise.
3667 * cp-namespace.c: Likewise.
3668 * cp-support.c: Likewise.
3669 * cris-tdep.c: Likewise.
3670 * dbxread.c: Likewise.
3671 * dictionary.c: Likewise.
3672 * doublest.c: Likewise.
3673 * dsrec.c: Likewise.
3674 * dummy-frame.c: Likewise.
3675 * dwarf2-frame-tailcall.c: Likewise.
3676 * dwarf2-frame.c: Likewise.
3677 * dwarf2expr.c: Likewise.
3678 * dwarf2loc.c: Likewise.
3679 * dwarf2read.c: Likewise.
3681 * event-loop.c: Likewise.
3682 * exceptions.c: Likewise.
3683 * expprint.c: Likewise.
3684 * f-valprint.c: Likewise.
3685 * fbsd-nat.c: Likewise.
3686 * findvar.c: Likewise.
3687 * frame-unwind.c: Likewise.
3688 * frame.c: Likewise.
3689 * frv-tdep.c: Likewise.
3690 * gcore.c: Likewise.
3691 * gdb-dlfcn.c: Likewise.
3692 * gdb_bfd.c: Likewise.
3693 * gdbarch.c: Likewise.
3694 * gdbarch.sh: Likewise.
3695 * gdbtypes.c: Likewise.
3696 * gnu-nat.c: Likewise.
3697 * gnu-v3-abi.c: Likewise.
3698 * go-lang.c: Likewise.
3699 * guile/scm-exception.c: Likewise.
3700 * guile/scm-gsmob.c: Likewise.
3701 * guile/scm-lazy-string.c: Likewise.
3702 * guile/scm-math.c: Likewise.
3703 * guile/scm-pretty-print.c: Likewise.
3704 * guile/scm-safe-call.c: Likewise.
3705 * guile/scm-utils.c: Likewise.
3706 * guile/scm-value.c: Likewise.
3707 * h8300-tdep.c: Likewise.
3708 * hppa-hpux-nat.c: Likewise.
3709 * hppa-tdep.c: Likewise.
3710 * hppanbsd-tdep.c: Likewise.
3711 * hppaobsd-tdep.c: Likewise.
3712 * i386-darwin-nat.c: Likewise.
3713 * i386-darwin-tdep.c: Likewise.
3714 * i386-nto-tdep.c: Likewise.
3715 * i386-tdep.c: Likewise.
3716 * i386bsd-nat.c: Likewise.
3717 * i386fbsd-tdep.c: Likewise.
3718 * i386gnu-nat.c: Likewise.
3719 * i386nbsd-tdep.c: Likewise.
3720 * i386obsd-tdep.c: Likewise.
3721 * i387-tdep.c: Likewise.
3722 * ia64-libunwind-tdep.c: Likewise.
3723 * ia64-tdep.c: Likewise.
3724 * inf-ptrace.c: Likewise.
3725 * inf-ttrace.c: Likewise.
3726 * infcall.c: Likewise.
3727 * infcmd.c: Likewise.
3728 * infrun.c: Likewise.
3729 * inline-frame.c: Likewise.
3730 * interps.c: Likewise.
3731 * jv-lang.c: Likewise.
3732 * jv-typeprint.c: Likewise.
3733 * linux-fork.c: Likewise.
3734 * linux-nat.c: Likewise.
3735 * linux-thread-db.c: Likewise.
3736 * m32c-tdep.c: Likewise.
3737 * m32r-linux-nat.c: Likewise.
3738 * m32r-tdep.c: Likewise.
3739 * m68k-tdep.c: Likewise.
3740 * m68kbsd-nat.c: Likewise.
3741 * m68kbsd-tdep.c: Likewise.
3742 * m88k-tdep.c: Likewise.
3743 * machoread.c: Likewise.
3744 * macroexp.c: Likewise.
3745 * macrotab.c: Likewise.
3746 * maint.c: Likewise.
3747 * mdebugread.c: Likewise.
3748 * memory-map.c: Likewise.
3749 * mep-tdep.c: Likewise.
3750 * mi/mi-common.c: Likewise.
3751 * microblaze-tdep.c: Likewise.
3752 * mingw-hdep.c: Likewise.
3753 * mips-linux-nat.c: Likewise.
3754 * mips-linux-tdep.c: Likewise.
3755 * mips-tdep.c: Likewise.
3756 * mips64obsd-tdep.c: Likewise.
3757 * mipsnbsd-tdep.c: Likewise.
3758 * mn10300-linux-tdep.c: Likewise.
3759 * mn10300-tdep.c: Likewise.
3760 * moxie-tdep.c: Likewise.
3761 * mt-tdep.c: Likewise.
3762 * nat/linux-btrace.c: Likewise.
3763 * nat/linux-osdata.c: Likewise.
3764 * nat/linux-ptrace.c: Likewise.
3765 * nat/mips-linux-watch.c: Likewise.
3766 * nios2-linux-tdep.c: Likewise.
3767 * nios2-tdep.c: Likewise.
3768 * objc-lang.c: Likewise.
3769 * objfiles.c: Likewise.
3770 * obsd-nat.c: Likewise.
3771 * opencl-lang.c: Likewise.
3772 * osabi.c: Likewise.
3773 * parse.c: Likewise.
3774 * ppc-linux-nat.c: Likewise.
3775 * ppc-sysv-tdep.c: Likewise.
3776 * ppcfbsd-nat.c: Likewise.
3777 * ppcfbsd-tdep.c: Likewise.
3778 * ppcnbsd-nat.c: Likewise.
3779 * ppcnbsd-tdep.c: Likewise.
3780 * ppcobsd-nat.c: Likewise.
3781 * ppcobsd-tdep.c: Likewise.
3782 * printcmd.c: Likewise.
3783 * procfs.c: Likewise.
3784 * prologue-value.c: Likewise.
3785 * psymtab.c: Likewise.
3786 * python/py-lazy-string.c: Likewise.
3787 * python/py-value.c: Likewise.
3788 * regcache.c: Likewise.
3789 * reggroups.c: Likewise.
3790 * registry.c: Likewise.
3791 * remote-sim.c: Likewise.
3792 * remote.c: Likewise.
3793 * rs6000-aix-tdep.c: Likewise.
3794 * rs6000-tdep.c: Likewise.
3795 * s390-linux-tdep.c: Likewise.
3796 * score-tdep.c: Likewise.
3797 * ser-base.c: Likewise.
3798 * ser-mingw.c: Likewise.
3799 * sh-tdep.c: Likewise.
3800 * sh64-tdep.c: Likewise.
3801 * solib-darwin.c: Likewise.
3802 * solib-spu.c: Likewise.
3803 * solib-svr4.c: Likewise.
3804 * source.c: Likewise.
3805 * sparc-nat.c: Likewise.
3806 * sparc-sol2-tdep.c: Likewise.
3807 * sparc-tdep.c: Likewise.
3808 * sparc64-sol2-tdep.c: Likewise.
3809 * sparc64-tdep.c: Likewise.
3810 * sparc64fbsd-tdep.c: Likewise.
3811 * sparc64nbsd-tdep.c: Likewise.
3812 * sparc64obsd-tdep.c: Likewise.
3813 * sparcnbsd-tdep.c: Likewise.
3814 * sparcobsd-tdep.c: Likewise.
3815 * spu-multiarch.c: Likewise.
3816 * spu-tdep.c: Likewise.
3817 * stabsread.c: Likewise.
3818 * stack.c: Likewise.
3819 * symfile.c: Likewise.
3820 * symtab.c: Likewise.
3821 * target-descriptions.c: Likewise.
3822 * target-memory.c: Likewise.
3823 * target.c: Likewise.
3824 * tic6x-linux-tdep.c: Likewise.
3825 * tic6x-tdep.c: Likewise.
3826 * tilegx-linux-nat.c: Likewise.
3827 * tilegx-tdep.c: Likewise.
3829 * tramp-frame.c: Likewise.
3830 * tui/tui-out.c: Likewise.
3831 * tui/tui-winsource.c: Likewise.
3832 * ui-out.c: Likewise.
3833 * user-regs.c: Likewise.
3834 * utils.c: Likewise.
3835 * v850-tdep.c: Likewise.
3836 * valops.c: Likewise.
3837 * value.c: Likewise.
3838 * varobj.c: Likewise.
3839 * vax-nat.c: Likewise.
3840 * xml-syscall.c: Likewise.
3841 * xml-tdesc.c: Likewise.
3842 * xstormy16-tdep.c: Likewise.
3843 * xtensa-linux-nat.c: Likewise.
3844 * xtensa-tdep.c: Likewise.
3846 2014-08-07 Gary Benson <gbenson@redhat.com>
3848 * common/common-defs.h: Include common-utils.h.
3849 * defs.h: Do not include common-utils.h.
3850 * common/gdb_assert.h: Likewise.
3851 * darwin-nat.h: Likewise.
3852 * nat/linux-btrace.c: Likewise.
3853 * target/waitstatus.h: Likewise.
3855 2014-08-07 Gary Benson <gbenson@redhat.com>
3857 * common/common-defs.h: Include ptid.h.
3858 * defs.h: Do not include ptid.h.
3859 * inferior.h: Likewise.
3860 * infrun.h: Likewise.
3861 * nat/linux-btrace.h: Likewise.
3862 * nat/linux-osdata.h: Likewise.
3863 * target/waitstatus.h: Likewise.
3865 2014-08-07 Gary Benson <gbenson@redhat.com>
3867 * common/common-defs.h: Include gdb_locale.h.
3868 * defs.h: Do not include gdb_locale.h.
3870 2014-08-07 Gary Benson <gbenson@redhat.com>
3872 * common/common-defs.h: Include gdb/signals.h.
3873 * defs.h: Do not include gdb/signals.h.
3875 2014-08-07 Gary Benson <gbenson@redhat.com>
3877 * common/common-defs.h: Include pathmax.h.
3878 * defs.h: Do not include pathmax.h.
3880 2014-08-07 Gary Benson <gbenson@redhat.com>
3882 * common/common-defs.h: Include libiberty.h.
3883 * defs.h: Do not include libiberty.h.
3884 * common/queue.h: Likewise.
3885 * cp-name-parser.y: Likewise.
3886 * mi/mi-cmd-catch.c: Likewise.
3887 * python/python.c: Likewise.
3889 2014-08-07 Gary Benson <gbenson@redhat.com>
3891 * common/common-defs.h: Include ansidecl.h.
3892 * defs.h: Do not include ansidecl.h.
3893 * common/buffer.h: Likewise.
3894 * common/common-utils.h: Likewise.
3896 2014-08-07 Gary Benson <gbenson@redhat.com>
3898 * common/common-defs.h: Include stddef.h.
3899 * defs.h: Do not include stddef.h.
3900 * common/common-utils.h: Likewise.
3901 * amd64fbsd-nat.c: Likewise.
3902 * bcache.c: Likewise.
3903 * charset.c: Likewise.
3904 * common/buffer.h: Likewise.
3905 * common/vec.h: Likewise.
3906 * i386bsd-nat.c: Likewise.
3907 * nat/linux-btrace.h: Likewise.
3908 * ppcfbsd-nat.c: Likewise.
3909 * ppcnbsd-tdep.h: Likewise.
3910 * ppcobsd-nat.c: Likewise.
3911 * ppcobsd-tdep.h: Likewise.
3912 * python/py-gdb-readline.c: Likewise.
3914 2014-08-07 Gary Benson <gbenson@redhat.com>
3916 * common/common-defs.h: Include stdarg.h.
3917 * defs.h: Do not include stdarg.h.
3918 * ada-lang.c: Likewise.
3919 * common/common-utils.h: Likewise.
3920 * guile/scm-string.c: Likewise.
3921 * guile/scm-utils.c: Likewise.
3922 * m32c-tdep.c: Likewise.
3924 2014-08-07 Gary Benson <gbenson@redhat.com>
3926 * common/common-defs.h: Include stdlib.h.
3927 * defs.h: Do not include stdlib.h.
3928 * addrmap.c: Likewise.
3929 * bcache.c: Likewise.
3930 * common/buffer.c: Likewise.
3931 * common/common-utils.c: Likewise.
3932 * cp-name-parser.y: Likewise.
3933 * go32-nat.c: Likewise.
3934 * mn10300-linux-tdep.c: Likewise.
3935 * nat/linux-osdata.c: Likewise.
3936 * tui/tui.c: Likewise.
3937 * windows-nat.c: Likewise.
3939 2014-08-07 Gary Benson <gbenson@redhat.com>
3941 * common/common-defs.h: Include stdio.h.
3942 * defs.h: Do not include stdio.h.
3943 * ada-lang.c: Likewise.
3944 * common/buffer.c: Likewise.
3945 * common/common-utils.c: Likewise.
3946 * cp-name-parser.y: Likewise.
3947 * gnu-nat.c: Likewise.
3948 * go32-nat.c: Likewise.
3949 * i386gnu-nat.c: Likewise.
3950 * proc-api.c: Likewise.
3951 * proc-events.c: Likewise.
3952 * proc-flags.c: Likewise.
3953 * proc-why.c: Likewise.
3954 * python/python-internal.h: Likewise.
3955 * target-memory.c: Likewise.
3956 * tui/tui-io.c: Likewise.
3957 * tui/tui.c: Likewise.
3959 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3961 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3962 (scan_dyntag_auxv): Same.
3964 2014-08-06 Yao Qi <yao@codesourcery.com>
3966 * amd64-linux-nat.c: Remove duplicated include
3968 * i386-linux-nat.c: Likewise.
3970 2014-08-06 Yao Qi <yao@codesourcery.com>
3972 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3973 operand" with "Special opcode" in comments.
3975 2014-08-05 Gary Benson <gbenson@redhat.com>
3977 * interps.c (initialize_interps): Remove prototype.
3978 (interpreter_initialized): Remove static global.
3979 (interp_add): Do not call initialize_interps.
3980 (initialize_interps): Remove function.
3982 2014-08-05 Gary Benson <gbenson@redhat.com>
3984 * utils.c (vwarning): Remove spurious va_end.
3986 2014-08-05 Alan Modra <amodra@gmail.com>
3988 * charset.c (convert_between_encodings): Cast result of obstack_base.
3989 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3990 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3991 (read_unwind_info): Use size_t for some locals.
3992 * jit.c (finalize_symtab): Likewise.
3993 * utils.c (hashtab_obstack_allocate): Likewise.
3994 * symmisc.c (print_objfile_statistics): Update format strings.
3996 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3999 (Changes in GDB 7.8): ... here.
4001 2014-08-04 Tom Tromey <tromey@redhat.com>
4003 * target.c (set_targetdebug): New function.
4004 (initialize_targets): Pass set_targetdebug when creating "set
4007 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4009 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4010 if detecting a variable-sized field that is not the last field.
4011 Fix struct type length computation.
4013 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4015 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4018 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4020 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4021 Remove "+ 8" offset in computation of CHAIN_VMA.
4023 2014-07-31 Doug Evans <dje@google.com>
4025 * inflow.c (child_terminal_inferior): Add comment.
4026 (child_terminal_ours_for_output): Add comment.
4027 (child_terminal_ours): Add comment.
4028 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4029 (linux_nat_terminal_ours): Add comment.
4031 2014-07-31 Gary Benson <gbenson@redhat.com>
4033 * common/btrace-common.h: Do not include defs.h or server.h.
4034 * nat/mips-linux-watch.h: Likewise.
4035 * gdb-dlfcn.h: Do not include defs.h.
4036 * tracefile.h: Likewise.
4038 2014-07-30 Roland McGrath <mcgrathr@google.com>
4040 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4042 2014-07-30 Tom Tromey <tromey@redhat.com>
4044 * bsd-kvm.c (bsd_kvm_open): Constify.
4045 * corelow.c (core_open): Constify.
4046 * ctf.c (ctf_open): Constify.
4047 * dbug-rom.c (dbug_open): Constify.
4048 * exec.c (exec_open): Constify.
4049 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4050 * microblaze-rom.c (picobug_open): Constify.
4051 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4053 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4054 * record-btrace.c (record_btrace_open): Constify.
4055 * record-full.c (record_full_core_open_1, record_full_open_1)
4056 (record_full_open): Constify.
4057 * remote-m32r-sdi.c (m32r_open): Constify.
4058 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4059 (rockhopper_open, lsi_open): Constify.
4060 * remote-sim.c (gdbsim_open): Constify.
4061 * remote.c (remote_open, extended_remote_open, remote_open_1):
4063 * target.h (struct target_ops) <to_open>: Make "arg" const.
4064 * tracefile-tfile.c (tfile_open): Constify.
4066 2014-07-30 Tom Tromey <tromey@redhat.com>
4068 * breakpoint.c (map_breakpoint_numbers): Update.
4069 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4070 (get_number_const): New function.
4071 (get_number): Rewrite using get_number_const.
4072 (init_number_or_range): Make "string" const.
4073 (number_is_in_list): Make "list" const.
4074 * cli/cli-utils.h (get_number_const): Declare.
4075 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4076 (init_number_or_range, number_is_in_list): Update.
4077 * printcmd.c (map_display_numbers): Update.
4078 * value.c (value_from_history_ref): Constify.
4079 * value.h (value_from_history_ref): Update.
4081 2014-07-30 Tom Tromey <tromey@redhat.com>
4083 * corefile.c (hook_type, call_extra_exec_file_hooks)
4084 (specify_exec_file_hook): Constify.
4085 * exec.c (exec_file_attach): Make "filename" const.
4086 * gdbcore.h (deprecated_exec_file_display_hook)
4087 (specify_exec_file_hook, exec_file_attach): Constify.
4088 * main.c (captured_main): Use catch_command_errors_const.
4090 2014-07-30 Tom Tromey <tromey@redhat.com>
4092 * target.c (open_target): New function.
4093 (add_target_with_completer, add_deprecated_target_alias): Use
4094 set_cmd_sfunc, set_cmd_context.
4095 (debug_to_open): Remove.
4096 (setup_target_debug): Update.
4098 2014-07-30 Yao Qi <yao@codesourcery.com>
4100 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4102 * parse.c (exp_iterate): Update comments.
4104 2014-07-30 Gary Benson <gbenson@redhat.com>
4106 * common/common-defs.h: New file.
4107 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4108 * defs.h: Include common-defs.h.
4109 Do not include config.h or build-gnulib/config.h.
4111 2014-07-30 Gary Benson <gbenson@redhat.com>
4113 * common/common-utils.h: Do not include config.h.
4114 * nat/linux-btrace.h: Likewise.
4116 2014-07-30 Gary Benson <gbenson@redhat.com>
4118 * btrace.c: Include defs.h.
4119 * common/ptid.c: Include defs.h or server.h as appropriate.
4120 * nat/mips-linux-watch.c: Likewise.
4122 2014-07-29 Tom Tromey <tromey@redhat.com>
4124 * target.c (target_is_pushed): Simplify.
4126 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4130 2014-07-29 Yao Qi <yao@codesourcery.com>
4133 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4135 2014-07-28 Doug Evans <xdje42@gmail.com>
4138 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4139 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4142 2014-07-28 Will Newton <will.newton@linaro.org>
4144 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4145 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4146 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4147 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4148 (THUMB2_EABI_SYSCALL): Likewise.
4149 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4151 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4152 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4154 2014-07-27 Doug Evans <xdje42@gmail.com>
4156 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4158 2014-07-27 Doug Evans <xdje42@gmail.com>
4160 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4162 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4163 Doug Evans <xdje42@gmail.com>
4166 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4167 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4168 * configure.ac: Try to use guild to compile an scm file, if it fails
4169 then disable guile support.
4170 * configure: Regenerate.
4171 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4173 (GUILE_COMPILED_FILES): New variable.
4174 (GUILE_FILES) Update.
4175 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4176 (stamp-guile): Compile scm files.
4177 * guile/guile.c (boot_guile_support): New function.
4178 (standard_throw_args_p): New function.
4179 (print_standard_throw_error, print_throw_error): New functions.
4180 (handle_boot_error): New function.
4181 (initialize_scheme_side): Rewrite to call boot_guile_support.
4182 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4183 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4185 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4186 Doug Evans <xdje42@gmail.com>
4189 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4190 * guile/lib/gdb/support.scm: New file.
4191 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4192 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4194 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4196 (%assert-type): Ditto, and renamed to assert-type.
4197 (%exception-print-style): Delete.
4199 2014-07-26 Doug Evans <xdje42@gmail.com>
4202 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4203 * configure: Regenerate.
4204 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4206 (PYTHON_FILES): New variable.
4207 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4208 (GUILE_FILES): New variable.
4209 (stamp-python, install-python, uninstall-python): Handle empty
4211 (stamp-guile, install-guile, uninstall-guile): Ditto.
4213 2014-07-26 Doug Evans <xdje42@gmail.com>
4216 * guile/lib/gdb.scm (pretty-printers): Export.
4217 (set-pretty-printers!): Export.
4218 * guile/lib/gdb/printing.scm (gdb module): Update.
4219 (prepend-pretty-printer!, append-pretty-printer!): Update.
4220 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4221 (pretty_printer_list_var): Delete.
4222 (pretty_printer_list): New static global.
4223 (gdbscm_pretty_printers): New function.
4224 (gdbscm_set_pretty_printers_x): New function.
4225 (ppscm_find_pretty_printer_from_gdb): Update.
4226 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4227 (gdbscm_initialize_pretty_printers): Update.
4229 2014-07-26 Doug Evans <xdje42@gmail.com>
4232 * configure.ac: Add check for header gc/gc.h.
4233 Add check for function setenv.
4234 * configure: Regenerate.
4235 * config.in: Regenerate.
4236 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4238 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4240 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4241 variation in gdbarch matching.
4243 2014-07-25 Tom Tromey <tromey@redhat.com>
4245 * exec.c (using_exec_ops): Remove.
4246 (exec_close_1): Update. Remove extraneous block, reindent.
4247 (add_target_sections): Use target_is_pushed.
4249 2014-07-25 Pedro Alves <palves@redhat.com>
4251 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4252 * monitor.c (monitor_create_inferior): Likewise.
4253 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4254 * remote-sim.c (gdbsim_create_inferior): Likewise.
4255 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4256 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4257 * windows-nat.c (do_initial_windows_stuff): Likewise.
4259 2014-07-25 Pedro Alves <palves@redhat.com>
4261 * NEWS: Mention signal passing and "signal" command changes.
4262 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4264 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4266 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4267 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4268 (jump_command): Adjust clear_proceed_status call.
4269 (signal_command): Warn if other thread that are resumed have
4270 signals that will be delivered. Adjust clear_proceed_status call.
4271 (until_next_command, finish_command)
4272 (proceed_after_attach_callback, attach_command_post_wait)
4273 (attach_command): Adjust clear_proceed_status call.
4274 * infrun.c (proceed_after_vfork_done): Likewise.
4275 (proceed_after_attach_callback): Adjust comment.
4276 (clear_proceed_status_thread): Clear stop_signal if not in pass
4278 (clear_proceed_status_callback): Delete.
4279 (clear_proceed_status): New 'step' parameter. Only clear the
4280 proceed status of threads the command being prepared is about to
4282 (proceed): If passed in an explicit signal, override stop_signal
4283 with it. Don't pass the last stop signal to the thread we're
4285 (init_wait_for_inferior): Adjust clear_proceed_status call.
4286 (switch_back_to_stepped_thread): Clear the signal if it should not
4288 * infrun.h (clear_proceed_status): New 'step' parameter.
4289 (user_visible_resume_ptid): Add comment.
4290 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4291 signal is in pass state.
4292 * remote.c (append_pending_thread_resumptions): Likewise.
4293 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4295 2014-07-25 Tom Tromey <tromey@redhat.com>
4297 * target.h (target_stopped_data_address)
4298 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4301 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4303 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4305 (avr_pointer_to_address): Likewise.
4307 2014-07-24 Tom Tromey <tromey@redhat.com>
4309 * monitor.c (compile_pattern): Update.
4310 * target.h (struct target_ops) <to_shortname, to_longname,
4313 2014-07-24 Tom Tromey <tromey@redhat.com>
4315 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4316 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4317 (add_info_alias, add_com): Make "doc" const.
4318 (print_doc_line): Make "str" const.
4319 (delete_cmd): Update.
4320 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4321 (print_doc_line): Update.
4322 * cli/cli-script.c (document_command): Update.
4323 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4324 (add_com, add_info, add_info_alias): Update.
4325 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4326 * python/py-cmd.c (cmdpy_destroyer): Update.
4328 2014-07-24 Tom Tromey <tromey@redhat.com>
4330 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4331 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4332 (help_cmd_list): Constify.
4333 (lookup_cmd): Update.
4334 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4336 (help_cmd_list, apropos_cmd): Update.
4337 * cli/cli-script.c (show_user): Update.
4338 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4339 * cli/cli-setshow.h (cmd_show_list): Update.
4340 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4341 (cmd_show_list): Update.
4342 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4343 * python/py-cmd.c (cmdpy_destroyer): Update.
4345 2014-07-24 Tom Tromey <tromey@redhat.com>
4347 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4348 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4350 * command.h (deprecate_cmd): Update.
4351 * maint.c (maintenance_do_deprecate): Add casts.
4353 2014-07-24 Tom Tromey <tromey@redhat.com>
4355 * cli/cli-decode.c (help_cmd): Make parameter "const".
4356 * cli/cli-decode.h (help_cmd): Update.
4358 2014-07-24 Tom Tromey <tromey@redhat.com>
4360 * stack.c (up_silently_base, down_silently_base): Make argument
4363 2014-07-24 Tom Tromey <tromey@redhat.com>
4365 * solib.c (solib_add): Make "pattern" const.
4366 * solib.h (solib_add): Update.
4368 2014-07-24 Tom Tromey <tromey@redhat.com>
4370 * remote.c (remote_serial_open, print_packet, putpkt)
4371 (putpkt_binary): Constify.
4372 * remote.h (putpkt): Update.
4374 2014-07-24 Tom Tromey <tromey@redhat.com>
4376 * monitor.c (monitor_open): Make "args" const.
4377 * monitor.h (monitor_open): Update.
4379 2014-07-24 Tom Tromey <tromey@redhat.com>
4381 * maint.c (match_bfd_flags): Make "string" const.
4382 (print_bfd_section_info): Remove casts.
4383 (print_objfile_section_info): Make "string" const.
4385 2014-07-24 Tom Tromey <tromey@redhat.com>
4387 * inf-child.c (inf_child_open_target): Make "arg" const.
4388 * inf-child.h (inf_child_open_target): Update.
4390 2014-07-24 Tom Tromey <tromey@redhat.com>
4392 * environ.c (unset_in_environ): Make "var" const.
4393 * environ.h (unset_in_environ): Update.
4395 2014-07-24 Tom Tromey <tromey@redhat.com>
4397 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4399 (scan_filename_with_cleanup): Likewise.
4400 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4401 Make arguments const.
4402 (restore_command): Update.
4404 2014-07-24 Pedro Alves <palves@redhat.com>
4406 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4408 2014-07-24 Tom Tromey <tromey@redhat.com>
4409 Gary Benson <gbenson@redhat.com>
4411 * nat/linux-ptrace.c (additional_flags): New global.
4412 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4413 additional_flags; don't check GDBSERVER.
4414 (linux_ptrace_set_additional_flags): New function.
4415 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4417 * linux-nat.c (_initialize_linux_nat): Call
4418 linux_ptrace_set_additional_flags.
4420 2014-07-24 Tom Tromey <tromey@redhat.com>
4422 * make-target-delegates (munge_type, write_debugmethod): New
4424 (debug_names): New global.
4425 ($TARGET_DEBUG_PRINTER): New global.
4426 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4428 Write debug methods. Generate init_debug_target.
4429 * target-debug.h: New file.
4430 * target-delegates.c: Rebuild.
4431 * target.c: Include target-debug.h.
4432 (debug_target): Hoist definition.
4433 (target_kill, target_get_section_table, target_memory_map)
4434 (target_flash_erase, target_flash_done, target_detach)
4435 (target_disconnect, target_wait, target_resume)
4436 (target_pass_signals, target_program_signals, target_follow_fork)
4437 (target_mourn_inferior, target_search_memory)
4438 (target_thread_address_space, target_close)
4439 (target_find_new_threads, target_core_of_thread)
4440 (target_verify_memory, target_insert_mask_watchpoint)
4441 (target_remove_mask_watchpoint): Remove targetdebug code.
4442 (debug_to_post_attach, debug_to_prepare_to_store)
4443 (debug_to_files_info, debug_to_insert_breakpoint)
4444 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4445 (debug_to_region_ok_for_hw_watchpoint)
4446 (debug_to_can_accel_watchpoint_condition)
4447 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4448 (debug_to_watchpoint_addr_within_range)
4449 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4450 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4451 (debug_to_terminal_init, debug_to_terminal_inferior)
4452 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4453 (debug_to_terminal_save_ours, debug_to_terminal_info)
4454 (debug_to_load, debug_to_post_startup_inferior)
4455 (debug_to_insert_fork_catchpoint)
4456 (debug_to_remove_fork_catchpoint)
4457 (debug_to_insert_vfork_catchpoint)
4458 (debug_to_remove_vfork_catchpoint)
4459 (debug_to_insert_exec_catchpoint)
4460 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4461 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4462 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4463 (setup_target_debug): Call init_debug_target.
4464 * target.h (TARGET_DEBUG_PRINTER): New macro.
4465 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4466 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4468 2014-07-24 Gary Benson <gbenson@redhat.com>
4470 * exceptions.h (throw_vfatal): Renamed to...
4471 (throw_vquit): New declaration.
4472 (throw_quit): Likewise.
4473 * exceptions.c (throw_vfatal): Renamed to...
4474 (throw_vquit): New function.
4475 (throw_quit): Likewise.
4476 (throw_error): Call throw_verror rather than throw_it.
4477 * utils.h (vfatal): Removed.
4479 * utils.c (vfatal): Removed.
4481 (internal_verror): Replaced call to fatal with call to throw_quit.
4482 (quit): Replaced calls to fatal with calls to throw_quit.
4484 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4486 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4489 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4491 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4492 less than zero in conditional expression.
4494 2014-07-23 Tom Tromey <tromey@redhat.com>
4496 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4497 ($INTRO_PART): Don't match whitespace.
4498 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4500 ($METHOD): Add $METHOD_TRAILER.
4502 (scan_target_h): New sub.
4503 Change main loop not to collect state.
4504 * target-delegates.c: Rebuild.
4506 2014-07-23 Gary Benson <gbenson@redhat.com>
4508 * cp-support.c (gdb_demangle): Fix build on systems without
4511 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4513 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4514 for reference entry value target data value.
4516 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4518 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4519 value_available_contents_eq.
4521 2014-07-22 Pedro Alves <palves@redhat.com>
4523 * value.c (allocate_optimized_out_value): Don't mark value as
4526 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4528 * MAINTAINERS (Write After Approval): Update my email address.
4530 2014-07-20 Doug Evans <dje@google.com>
4533 * remote.c (putpkt_binary): Add text to error message.
4535 2014-07-20 Yao Qi <yao@codesourcery.com>
4537 * eval.c: Remove "Chill" from comments.
4538 * gdbtypes.h: Likewise.
4539 * symtab.h: Likewise.
4541 2014-07-20 Yao Qi <yao@codesourcery.com>
4543 * std-operator.def: Update comments to TERNOP_SLICE.
4545 2014-07-20 Yao Qi <yao@codesourcery.com>
4547 * std-operator.def: Remove BINOP_RANGE.
4548 * breakpoint.c (watchpoint_exp_is_const): Update.
4549 * expprint.c (dump_subexp_body_standard): Likewise.
4550 * eval.c (init_array_element): Remove dead code.
4551 (evaluate_subexp_standard): Likewise.
4553 2014-07-20 Yao Qi <yao@codesourcery.com>
4555 * std-operator.def: Remove BINOP_IN.
4556 * breakpoint.c (watchpoint_exp_is_const): Update.
4557 * eval.c (evaluate_subexp_standard): Likewise.
4558 * expprint.c (dump_subexp_body_standard): Likewise.
4560 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4562 * microblaze-tdep.c (microblaze_register_names): Add
4563 the rshr and rslr register names.
4564 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4565 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4566 Use of tdesc_numbered_register. Use of
4567 microblaze_register_g_packet_guesses. Use of
4568 tdesc_use_registers. Use of set_gdbarch_register_type.
4569 (microblaze_register_g_packet_guesses): New.
4570 * microblaze-tdep.h (microblaze_reg_num): Add
4571 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4572 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4573 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4574 * features/microblaze-core.xml: New file.
4575 * features/microblaze-stack-protect.xml: New file.
4576 * features/microblaze-with-stack-protect.c: New file.
4577 * features/microblaze-with-stack-protect.xml: New file.
4578 * features/microblaze.xml: New file.
4579 * features/microblaze.c: New file.
4580 * features/Makefile (microblaze-with-stack-protect): Add
4581 microblaze-with-stack-protect microblaze and microblaze-expedite.
4582 * regformats/microblaze-with-stack-protect.dat: New file.
4583 * regformats/microblaze.dat: New file.
4584 * doc/gdb.texinfo (MicroBlaze Features): Added.
4586 2014-07-18 Tom Tromey <tromey@redhat.com>
4588 * exec.c (exec_ops): Now static.
4589 * exec.h (exec_ops): Don't declare.
4591 2014-07-18 Tom Tromey <tromey@redhat.com>
4593 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4594 to find_target_beneath.
4595 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4596 find_target_beneath.
4597 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4599 2014-07-18 Tom Tromey <tromey@redhat.com>
4602 * utils.c (quit): Use target_supports_terminal_ours.
4603 * target.h (target_supports_terminal_ours): Declare.
4604 * target.c (target_supports_delete_record): Don't check
4605 to_delete_record against NULL.
4606 (target_supports_terminal_ours): New function.
4608 2014-07-18 Tom Tromey <tromey@redhat.com>
4611 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4612 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4613 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4614 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4615 * windows-nat.c (windows_xfer_partial): Always delegate.
4616 * record-btrace.c (record_btrace_xfer_partial): Simplify
4618 (record_btrace_fetch_registers, record_btrace_store_registers)
4619 (record_btrace_prepare_to_store, record_btrace_resume)
4620 (record_btrace_wait, record_btrace_find_new_threads)
4621 (record_btrace_thread_alive): Likewise.
4622 * procfs.c (procfs_xfer_partial): Always delegate.
4623 * corelow.c (core_xfer_partial): Always delegate.
4624 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4626 2014-07-18 Tom Tromey <tromey@redhat.com>
4628 * exec.c (exec_make_note_section): Move earlier.
4630 2014-07-17 Doug Evans <dje@google.com>
4633 * maint.c (count_symtabs_and_blocks): Handle NULL
4634 current_program_space.
4635 (report_command_stats): Check global enabled flag in addition to
4636 recorded enabled flag.
4637 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4639 2014-07-16 Pedro Alves <palves@redhat.com>
4641 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4643 2014-07-16 Tom Tromey <tromey@redhat.com>
4645 * target.h (struct target_ops) <to_delete_record>: Reformat
4648 2014-07-16 Tom Tromey <tromey@redhat.com>
4650 * target-delegates.c: Rebuild.
4652 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4654 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4655 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4656 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4657 (avr_pointer_to_address): Likewise.
4658 (avr_address_class_type_flags): New function.
4659 (avr_address_class_type_flags_to_name): Likewise.
4660 (avr_address_class_name_to_type_flags): Likewise.
4661 (avr_gdbarch_init): Set address_class_type_flags,
4662 address_class_type_flags_to_name and
4663 address_class_name_to_type_flags.
4665 2014-07-15 Pedro Alves <palves@redhat.com>
4667 * linux-nat.c (kill_callback): Save errno and work with saved
4670 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4672 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4674 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4676 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4677 breakpoint support correctly.
4679 2014-07-14 Pedro Alves <palves@redhat.com>
4681 * utils.c (prompt_for_continue): Call target_terminal_ours.
4683 2014-07-14 Pedro Alves <palves@redhat.com>
4685 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4686 catch_errors. Don't re-enable stdin or notify observers where,
4688 (fetch_inferior_event_wrapper): Delete.
4690 2014-07-14 Pedro Alves <palves@redhat.com>
4693 * top.c: Include "inf-loop.h".
4694 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4696 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4698 (gdb_readline_wrapper): Store whether the target is async, and
4701 2014-07-14 Pedro Alves <palves@redhat.com>
4704 * top.c (gdb_readline_wrapper_line): Tweak comment.
4705 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4706 the input handler callback.
4708 2014-07-14 Pedro Alves <palves@redhat.com>
4711 * main.c: Include event-top.h.
4712 (handle_command_errors): New function.
4713 (catch_command_errors, catch_command_errors_const): Use it.
4715 2014-07-14 Pedro Alves <palves@redhat.com>
4717 * exceptions.c (catch_command_errors, catch_command_errors_const):
4719 * exceptions.h (catch_command_errors_ftype)
4720 (catch_command_errors_const_ftype): Moved to main.c.
4721 (catch_command_errors, catch_command_errors_const): Delete
4723 * main.c (catch_command_errors_ftype)
4724 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4725 (catch_command_errors, catch_command_errors_const)): Moved here
4726 from exceptions.c and make static.
4728 2014-07-14 Pedro Alves <palves@redhat.com>
4730 * exceptions.c (print_any_exception): Delete.
4731 (catch_exceptions_with_msg): Use exception_print instead of
4732 print_any_exception.
4733 (catch_errors): Use exception_fprintf instead of
4734 print_any_exception.
4735 (catch_command_errors, catch_command_errors_const): Use
4736 exception_print instead of print_any_exception.
4738 2014-07-14 Pedro Alves <palves@redhat.com>
4740 * infcall.c (run_inferior_call): Set 'sync_execution' while
4741 running the inferior call.
4743 2014-07-14 Pedro Alves <palves@redhat.com>
4745 * value.c (value_contents_equal): Delete function.
4746 * value.h (value_contents_equal): Delete declaration.
4748 2014-07-14 Tom Tromey <tromey@redhat.com>
4751 * gdbtypes.c (is_dynamic_type_internal): New function, from
4753 (is_dynamic_type): Rewrite.
4754 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4755 (resolve_dynamic_struct): Likewise.
4756 (resolve_dynamic_type_internal): New function, from
4757 resolve_dynamic_type.
4758 (resolve_dynamic_type): Rewrite.
4760 2014-07-14 Tom Tromey <tromey@redhat.com>
4762 * target.c (target_require_runnable): Also check record_stratum.
4765 2014-07-11 Yao Qi <yao@codesourcery.com>
4767 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4768 thumb_instruction_restores_sp return true.
4770 2014-07-11 Yao Qi <yao@codesourcery.com>
4772 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4773 (thumb_in_function_epilogue_p): Call
4774 thumb_instruction_restores_sp.
4776 2014-07-11 Yao Qi <yao@codesourcery.com>
4778 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4780 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4782 2014-07-11 Gary Benson <gbenson@redhat.com>
4784 * amd64-linux-nat.c (gdbcore.h): Remove include.
4785 (regset.h): Likewise.
4786 (nat/linux-btrace.h): Likewise.
4787 (btrace.h): Likewise.
4788 (gdb_assert.h): Likewise.
4789 (string.h): Likewise.
4790 (sys/uio.h): Likewise.
4791 (sys/debugreg.h): Likewise.
4792 (sys/syscall.h): Likewise.
4793 (sys/procfs.h): Likewise.
4794 (sys/user.h): Likewise.
4795 (asm/ptrace.h): Likewise.
4796 (i386-nat.h): Likewise.
4797 * i386-linux-nat.c (i386-nat.h): Likewise.
4798 (regset.h): Likewise.
4799 (target.h): Likewise.
4800 (linux-nat.h): Likewise.
4801 (nat/linux-btrace.h): Likewise.
4802 (btrace.h): Likewise.
4803 (gdb_assert.h): Likewise.
4804 (string.h): Likewise.
4805 (sys/uio.h): Likewise.
4806 (sys/user.h): Likewise.
4807 (sys/procfs.h): Likewise.
4808 (sys/reg.h): Likewise.
4809 (sys/debugreg.h): Likewise.
4810 (ORIG_EAX): Remove definition.
4812 2014-07-11 Gary Benson <gbenson@redhat.com>
4814 * i386-linux-nat.h: New file.
4815 * x86-linux-nat.h: Likewise.
4816 * x86-linux-nat.c: Likewise.
4817 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4818 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4819 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4820 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4821 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4822 (PTRACE_SETREGSET): Likewise.
4823 (arch_lwp_info): Now in x86-linux-nat.c.
4824 (have_ptrace_getregset): Now in x86-linux-nat.h.
4825 (x86_linux_dr_get): Now in x86-linux-nat.c.
4826 (x86_linux_dr_set): Likewise.
4827 (x86_linux_dr_get_addr): Likewise.
4828 (x86_linux_dr_get_control): Likewise.
4829 (x86_linux_dr_get_status): Likewise.
4830 (update_debug_registers_callback): Likewise.
4831 (x86_linux_dr_set_control): Likewise.
4832 (x86_linux_dr_set_addr): Likewise.
4833 (x86_linux_prepare_to_resume): Likewise.
4834 (x86_linux_new_thread): Likewise.
4835 (x86_linux_new_fork): Likewise.
4836 (x86_linux_get_thread_area): Likewise.
4837 (super_post_startup_inferior): Likewise.
4838 (x86_linux_child_post_startup_inferior): Likewise.
4839 (AMD64_LINUX_USER64_CS): Likewise.
4840 (AMD64_LINUX_X32_DS): Likewise.
4841 (x86_linux_read_description): Likewise.
4842 (x86_linux_enable_btrace): Likewise.
4843 (x86_linux_disable_btrace): Likewise.
4844 (x86_linux_teardown_btrace): Likewise.
4845 (x86_linux_read_btrace): Likewise.
4846 (x86_linux_create_target): Likewise.
4847 (x86_linux_add_target): Likewise.
4848 * i386-linux-nat.c (x86-linux-nat.h): New include.
4849 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4850 (PTRACE_SETREGSET): Likewise.
4851 (arch_lwp_info): Now in x86-linux-nat.c.
4852 (have_ptrace_getregset): Now in x86-linux-nat.h.
4853 (x86_linux_dr_get): Now in x86-linux-nat.c.
4854 (x86_linux_dr_set): Likewise.
4855 (x86_linux_dr_get_addr): Likewise.
4856 (x86_linux_dr_get_control): Likewise.
4857 (x86_linux_dr_get_status): Likewise.
4858 (update_debug_registers_callback): Likewise.
4859 (x86_linux_dr_set_control): Likewise.
4860 (x86_linux_dr_set_addr): Likewise.
4861 (x86_linux_prepare_to_resume): Likewise.
4862 (x86_linux_new_thread): Likewise.
4863 (x86_linux_new_fork): Likewise.
4864 (x86_linux_get_thread_area): Likewise.
4865 (super_post_startup_inferior): Likewise.
4866 (x86_linux_child_post_startup_inferior): Likewise.
4867 (AMD64_LINUX_USER64_CS): Likewise.
4868 (AMD64_LINUX_X32_DS): Likewise.
4869 (x86_linux_read_description): Likewise.
4870 (x86_linux_enable_btrace): Likewise.
4871 (x86_linux_disable_btrace): Likewise.
4872 (x86_linux_teardown_btrace): Likewise.
4873 (x86_linux_read_btrace): Likewise.
4874 (x86_linux_create_target): Likewise.
4875 (x86_linux_add_target): Likewise.
4877 2014-07-11 Gary Benson <gbenson@redhat.com>
4879 * amd64-linux-nat.c: Comment and whitespace changes.
4880 * i386-linux-nat.c: Comment and whitespace changes.
4882 2014-07-11 Gary Benson <gbenson@redhat.com>
4884 * amd64-linux-nat.c (x86_linux_create_target): New function.
4885 (x86_linux_add_target): Likewise.
4886 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4887 * i386-linux-nat.c (x86_linux_create_target): New function.
4888 (x86_linux_add_target): Likewise.
4889 (_initialize_i386_linux_nat): Delegate to the above new functions.
4891 2014-07-11 Gary Benson <gbenson@redhat.com>
4893 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4894 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4895 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4896 (ps_get_thread_area): Delegate to the above.
4898 2014-07-11 Gary Benson <gbenson@redhat.com>
4900 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4901 x86_linux_read_description. All uses updated. amd64-specific
4902 code conditionalized. Conditionalized i386-specific code added.
4903 Redundant cast removed.
4904 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4905 x86_linux_read_description. All uses updated. i386-specific
4906 code conditionalized. Conditionalized amd64-specific code added.
4907 One sizeof replaced with the actual type it is describing.
4909 2014-07-11 Gary Benson <gbenson@redhat.com>
4911 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4912 x86_linux_dr_get. All uses updated.
4913 (amd64_linux_dr_set): Renamed to
4914 x86_linux_dr_set. All uses updated.
4915 (amd64_linux_dr_get_addr): Renamed to
4916 x86_linux_dr_get_addr. All uses updated.
4917 (amd64_linux_dr_get_control): Renamed to
4918 x86_linux_dr_get_control. All uses updated.
4919 (amd64_linux_dr_get_status): Renamed to
4920 x86_linux_dr_get_status. All uses updated.
4921 (amd64_linux_dr_set_control): Renamed to
4922 x86_linux_dr_set_control. All uses updated.
4923 (amd64_linux_dr_set_addr): Renamed to
4924 x86_linux_dr_set_addr. All uses updated.
4925 (amd64_linux_prepare_to_resume): Renamed to
4926 x86_linux_prepare_to_resume. All uses updated.
4927 (amd64_linux_new_thread): Renamed to
4928 x86_linux_new_thread. All uses updated.
4929 (amd64_linux_new_fork): Renamed to
4930 x86_linux_new_fork. All uses updated.
4931 (amd64_linux_child_post_startup_inferior): Renamed to
4932 x86_linux_child_post_startup_inferior. All uses updated.
4933 (amd64_linux_enable_btrace): Renamed to
4934 x86_linux_enable_btrace. All uses updated.
4935 (amd64_linux_disable_btrace): Renamed to
4936 x86_linux_disable_btrace. All uses updated.
4937 (amd64_linux_teardown_btrace): Renamed to
4938 x86_linux_teardown_btrace. All uses updated.
4939 (amd64_linux_read_btrace): Renamed to
4940 x86_linux_read_btrace. All uses updated.
4941 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4942 x86_linux_dr_get. All uses updated.
4943 (i386_linux_dr_set): Renamed to
4944 x86_linux_dr_set. All uses updated.
4945 (i386_linux_dr_get_addr): Renamed to
4946 x86_linux_dr_get_addr. All uses updated.
4947 (i386_linux_dr_get_control): Renamed to
4948 x86_linux_dr_get_control. All uses updated.
4949 (i386_linux_dr_get_status): Renamed to
4950 x86_linux_dr_get_status. All uses updated.
4951 (i386_linux_dr_set_control): Renamed to
4952 x86_linux_dr_set_control. All uses updated.
4953 (i386_linux_dr_set_addr): Renamed to
4954 x86_linux_dr_set_addr. All uses updated.
4955 (i386_linux_prepare_to_resume): Renamed to
4956 x86_linux_prepare_to_resume. All uses updated.
4957 (i386_linux_new_thread): Renamed to
4958 x86_linux_new_thread. All uses updated.
4959 (i386_linux_new_fork): Renamed to
4960 x86_linux_new_fork. All uses updated.
4961 (i386_linux_child_post_startup_inferior): Renamed to
4962 x86_linux_child_post_startup_inferior. All uses updated.
4963 (i386_linux_enable_btrace): Renamed to
4964 x86_linux_enable_btrace. All uses updated.
4965 (i386_linux_disable_btrace): Renamed to
4966 x86_linux_disable_btrace. All uses updated.
4967 (i386_linux_teardown_btrace): Renamed to
4968 x86_linux_teardown_btrace. All uses updated.
4969 (i386_linux_read_btrace): Renamed to
4970 x86_linux_read_btrace. All uses updated.
4972 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4974 * remote.c (extended_remote_post_attach): New function.
4975 (init_extended_remote_ops): Install it as to_post_attach method.
4977 2014-07-09 Pedro Alves <palves@redhat.com>
4979 * infcmd.c (attach_command_post_wait): Don't call
4980 target_terminal_inferior here.
4981 (attach_command): Call it here instead.
4983 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4985 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4987 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4988 from varobj.c, with additional checks.
4989 (c_varobj_ops): Fill in is_path_expr_parent field.
4990 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4991 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4993 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4995 (varobj_default_is_path_expr_parent): New function.
4996 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4997 (varobj_default_is_path_expr_parent): Declare new function.
4999 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5001 * infcmd.c (finish_backward): Turn internal error into normal error.
5003 2014-07-07 Pedro Alves <palves@redhat.com>
5006 * remote.c (async_handle_remote_sigint)
5007 (async_handle_remote_sigint_twice): Call
5008 gdb_call_async_signal_handler instead of
5009 mark_async_signal_handler.
5011 2014-07-07 Tom Tromey <tromey@redhat.com>
5013 * target-delegates.c: Rebuild.
5014 * target.c (target_info_record): Remove.
5015 * record.c (info_record_command): Unconditionally call
5017 * target.h (struct target_ops) <to_info_record>: Use
5018 TARGET_DEFAULT_IGNORE.
5019 (target_info_record): Remove.
5021 2014-07-07 Tom Tromey <tromey@redhat.com>
5023 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5024 TARGET_DEFAULT_NORETURN.
5025 * target.c (generic_tls_error): New function.
5026 (target_translate_tls_address): Don't search target stack.
5027 * target-delegates.c: Rebuild.
5028 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5030 * linux-thread-db.c (thread_db_get_thread_local_address):
5031 Unconditionally call beneath target.
5033 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5035 * cli/cli-logging.c (pop_output_files): Assign targerr to
5038 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5040 * MAINTAINERS (Write After Approval): Update my email address.
5042 2014-07-02 Gary Benson <gbenson@redhat.com>
5044 * proc-service.c (ps_xfer_memory): Update comment.
5045 (ps_pstop): Remove unused function.
5046 (ps_pcontinue): Likewise.
5047 (ps_lstop): Likewise.
5048 (ps_lcontinue): Likewise.
5049 (ps_lgetxregsize): Likewise.
5050 (ps_lgetxregs): Likewise.
5051 (ps_lsetxregs): Likewise.
5052 (ps_plog): Likewise.
5053 (ps_ptread): Likewise.
5054 (ps_ptwrite): Likewise.
5056 2014-07-01 Mark Wielaard <mjw@redhat.com>
5058 * dwarf2read.c (add_array_cv_type): New function.
5059 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5060 (read_tag_volatile_type): Likewise.
5062 2014-07-01 Tom Tromey <tromey@redhat.com>
5064 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5065 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5066 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5067 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5068 * command.h (cmd_cfunc_ftype): Move earlier.
5069 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5070 (add_com, add_info): Use cmd_cfunc_ftype.
5072 2014-06-30 Tom Tromey <tromey@redhat.com>
5074 * symtab.c (operator_chars): Make parameters and return type
5076 (file_matches): Make "files" const.
5077 (struct search_symbols_data) <files>: Now const.
5078 (search_symbols): Make "regexp" and "files" parameters const.
5080 (symtab_symbol_info): Remove cast.
5081 (rbreak_command): Update.
5082 * symtab.h (search_symbols): Update.
5084 2014-06-27 Yao Qi <yao@codesourcery.com>
5086 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5087 Change parameter type to 'struct thread_info *'. Caller
5089 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5091 * dummy-frame.c (struct dummy_frame_id): New.
5092 (dummy_frame_id_eq): New function.
5093 (struct dummy_frame) <id>: Change its type to 'struct
5095 (dummy_frame_push): Add parameter ptid and save it in
5097 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5099 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5101 (lookup_dummy_frame): Change parameter type to 'struct
5102 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5103 instead of frame_id_eq.
5104 (dummy_frame_pop): Add parameter ptid. Callers updated.
5105 Update comments. Compose dummy_frame_id and pass it to
5107 (dummy_frame_discard): Add parameter ptid.
5108 (dummy_frame_sniffer): Compose dummy_frame_id and call
5109 dummy_frame_id_eq instead of frame_id_eq.
5110 (fprint_dummy_frames): Print ptid.
5111 * dummy-frame.h: Remove comments.
5112 (dummy_frame_push): Add ptid in declaration.
5113 (dummy_frame_pop, dummy_frame_discard): Likewise.
5115 2014-06-26 Tom Tromey <tromey@redhat.com>
5117 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5118 * command.h (error_no_arg): Update.
5120 2014-06-26 Tom Tromey <tromey@redhat.com>
5122 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5123 (do_show_command): Make "arg" const.
5124 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5126 2014-06-26 Tom Tromey <tromey@redhat.com>
5128 * record-full.c (record_full_get_bookmark): Make "args" const.
5129 (record_full_goto_bookmark): Make "raw_bookmark" const.
5130 * record.c (record_goto): New function.
5131 (cmd_record_goto): Use it. Now static.
5132 * record.h (record_goto): Declare.
5133 (cmd_record_goto): Remove declaration.
5134 * target-delegates.c: Rebuild.
5135 * target.h (struct target_ops) <to_get_bookmark,
5136 to_goto_bookmark>: Make parameter const.
5138 2014-06-26 Tom Tromey <tromey@redhat.com>
5140 * defs.h (generic_load): Update.
5141 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5142 * monitor.c (monitor_load): Make "args" const.
5143 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5144 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5146 (mips_load): Make "file" const.
5147 * remote-sim.c (gdbsim_load): Make "args" const.
5148 * remote.c (remote_load): Make "name" const.
5149 * symfile.c (generic_load): Make "args" const.
5150 * target-delegates.c: Rebuild.
5151 * target.c (target_load): Make "arg" const.
5152 (debug_to_load): Make "args" const.
5153 * target.h (struct target_ops) <to_load>: Make parameter const.
5154 (target_load): Update.
5156 2014-06-26 Tom Tromey <tromey@redhat.com>
5159 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5160 (dwarf2_physname, read_partial_die)
5161 (guess_partial_die_structure_name, fixup_partial_die)
5162 (guess_full_die_structure_name, anonymous_struct_prefix)
5163 (dwarf2_name): Use per-BFD obstack.
5165 2014-06-26 Yao Qi <yao@codesourcery.com>
5167 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5168 dummyframe and this_id into inner block below.
5170 2014-06-26 Yao Qi <yao@codesourcery.com>
5172 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5173 with "signal_pass[0]" in the initialization of signal_pass.
5175 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5177 * record-btrace.c (record_btrace_generating_corefile)
5178 (record_btrace_prepare_to_generate_core)
5179 (record_btrace_done_generating_core): New.
5180 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5181 (record_btrace_store_registers, record_btrace_prepare_to_store):
5182 Forward request when generating a core file.
5183 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5184 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5185 to_done_generating_core.
5187 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5189 * target.h (target_ops) <to_prepare_to_generate_core>
5190 <to_done_generating_core>: New.
5191 (target_prepare_to_generate_core, target_done_generating_core): New.
5192 * target.c (target_prepare_to_generate_core)
5193 (target_done_generating_core): New.
5194 * target-delegates.c: Regenerate.
5195 * gcore.c: (write_gcore_file): Rename to ...
5196 (write_gcore_file_1): ...this.
5197 (write_gcore_file): Call target_prepare_to_generate_core
5198 and target_done_generating_core.
5200 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5202 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5203 * gcore.c (write_gcore_file): Free memory returned from
5204 make_corefile_notes.
5205 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5206 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5208 2014-06-24 Yao Qi <yao@codesourcery.com>
5210 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5211 (arm_linux_init_abi): Set skip_trampoline_code with
5212 gdbarch_skip_trampoline_code instead of
5213 find_solib_trampoline_target.
5215 2014-06-24 Yao Qi <yao@codesourcery.com>
5217 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5218 arm_skip_bx_reg returns non-zero.
5220 2014-06-24 Yao Qi <yao@codesourcery.com>
5222 * arm-tdep.c (arm_skip_bx_reg): New function.
5223 (arm_skip_stub): Call arm_skip_bx_reg.
5225 2014-06-23 Don Breazeal <donb@codesourcery.com>
5227 * MAINTAINERS: Add myself as write-after-approval maintainer.
5229 2014-06-23 Pedro Alves <palves@redhat.com>
5231 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5232 DR_CONTROL before setting DR0..DR3.
5233 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5234 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5235 bits of DR_CONTROL related to the debug register slot being
5236 disabled. If all slots are vacant, clear local slowdown as well,
5237 and assert DR_CONTROL is 0.
5239 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5241 * python/lib/gdb/command/xmethods.py
5242 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5243 current progspace only if the string "progspace" matches LOCUS_RE.
5245 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5247 Fix --with-system-readline with readline-6.3 patch 5.
5248 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5249 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5252 2014-06-20 Tom Tromey <tromey@redhat.com>
5254 * dwarf2read.c (dw2_get_real_path): Use correct type in
5256 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5258 2014-06-20 Gary Benson <gbenson@redhat.com>
5260 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5261 * common/glibc_thread_db.h: Likewise.
5262 * common/i386-cpuid.h: Likewise.
5263 * common/i386-gcc-cpuid.h: Likewise.
5264 * common/linux-btrace.h: Likewise.
5265 * common/linux-osdata.h: Likewise.
5266 * common/linux-procfs.h: Likewise.
5267 * common/linux-ptrace.h: Likewise.
5268 * common/mips-linux-watch.h: Likewise.
5269 * common/linux-btrace.c: Moved to nat.
5270 * common/linux-osdata.c: Likewise.
5271 * common/linux-procfs.c: Likewise.
5272 * common/linux-ptrace.c: Likewise.
5273 * common/mips-linux-watch.c: Likewise.
5274 * nat/gdb_thread_db.h: Moved from common.
5275 * nat/glibc_thread_db.h: Likewise.
5276 * nat/i386-cpuid.h: Likewise.
5277 * nat/i386-gcc-cpuid.h: Likewise.
5278 * nat/linux-btrace.c: Likewise.
5279 * nat/linux-btrace.h: Likewise.
5280 * nat/linux-osdata.c: Likewise.
5281 * nat/linux-osdata.h: Likewise.
5282 * nat/linux-procfs.c: Likewise.
5283 * nat/linux-procfs.h: Likewise.
5284 * nat/linux-ptrace.c: Likewise.
5285 * nat/linux-ptrace.h: Likewise.
5286 * nat/mips-linux-watch.c: Likewise.
5287 * nat/mips-linux-watch.h: Likewise.
5288 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5289 (object file files): Reordered.
5290 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5291 of glibc_thread_db.h.
5293 2014-06-20 Gary Benson <gbenson@redhat.com>
5295 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5296 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5297 (i386_dr_low): Likewise.
5298 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5299 (i386_dr_low_set_addr): Likewise.
5300 (i386_dr_low_get_addr): Likewise.
5301 (i386_dr_low_can_set_control): Likewise.
5302 (i386_dr_low_set_control): Likewise.
5303 (i386_dr_low_get_control): Likewise.
5304 (i386_dr_low_get_status): Likewise.
5305 (i386_get_debug_register_length): Likewise.
5306 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5307 (i386_dr_low): Likewise.
5308 * nat/i386-dregs.c (i386-low.h): Remove include.
5309 (i386-nat.h): Likewise.
5310 (nat/i386-dregs.h): New include.
5311 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5312 (i386_dr_low_set_addr): Likewise.
5313 (i386_dr_low_get_addr): Likewise.
5314 (i386_dr_low_can_set_control): Likewise.
5315 (i386_dr_low_set_control): Likewise.
5316 (i386_dr_low_get_control): Likewise.
5317 (i386_dr_low_get_status): Likewise.
5318 (i386_get_debug_register_length): Likewise.
5319 (debug_hw_points): Likewise.
5321 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5323 * Makefile.in (SFILES): Add d-exp.y.
5324 (YYFILES): Add d-exp.c.
5325 (YYOBJ): Add d-exp.o.
5326 (local-maintainer-clean): Delete d-exp.c.
5327 * d-exp.y: New file.
5328 * d-lang.h (d_parse): New declaration.
5329 (d_error): New declaration.
5330 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5331 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5332 PREC_ORDER operators.
5333 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5335 2014-06-19 Yao Qi <yao@codesourcery.com>
5337 * gdbthread.h (any_running): Remove the declaration.
5338 * thread.c (any_running): Remove.
5340 2014-06-19 Yao Qi <yao@codesourcery.com>
5342 * gdbthread.h (struct thread_info) <state>: Change its type to
5343 'enum thread_state'. Update comments.
5345 2014-06-19 Pedro Alves <palves@redhat.com>
5347 * gdbthread.h (ALL_THREADS): Delete.
5348 (ALL_NON_EXITED_THREADS): New macro.
5349 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5350 instead of ALL_THREADS.
5351 * infrun.c (find_thread_needs_step_over)
5352 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5353 instead of ALL_THREADS.
5354 * record-btrace.c (record_btrace_open)
5355 (record_btrace_stop_recording, record_btrace_close)
5356 (record_btrace_is_replaying, record_btrace_resume)
5357 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5358 * remote.c (append_pending_thread_resumptions): Likewise.
5359 * thread.c (thread_apply_all_command): Likewise.
5361 2014-06-19 Gary Benson <gbenson@redhat.com>
5363 * i386-nat.c (i386_stopped_by_watchpoint):
5364 Use i386_dr_stopped_by_watchpoint.
5365 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5366 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5368 2014-06-19 Gary Benson <gbenson@redhat.com>
5370 * nat/i386-dregs.c: New file.
5371 * Makefile.in (i386-dregs.o): New rule.
5372 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5373 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5374 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5375 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5376 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5377 * config/i386/go32.mh (NATDEPFILES): Likewise.
5378 * config/i386/linux.mh (NATDEPFILES): Likewise.
5379 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5380 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5381 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5382 * i386-nat.h (debug_hw_points): New declaration.
5383 * i386-nat.c (breakpoint.h): Remove include.
5384 (command.h): Likewise.
5385 (target.h): Likewise.
5386 (gdb_assert.h): Likewise.
5387 (debug_hw_points): Made nonstatic.
5388 (debug_printf): Now in i386-dregs.c.
5389 (TARGET_HAS_DR_LEN_8): Likewise.
5390 (DR_CONTROL_SHIFT): Likewise.
5391 (DR_CONTROL_SIZE): Likewise.
5392 (DR_RW_EXECUTE): Likewise.
5393 (DR_RW_WRITE): Likewise.
5394 (DR_RW_READ): Likewise.
5395 (DR_RW_IORW): Likewise.
5396 (DR_LEN_1): Likewise.
5397 (DR_LEN_2): Likewise.
5398 (DR_LEN_4): Likewise.
5399 (DR_LEN_8): Likewise.
5400 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5401 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5402 (DR_ENABLE_SIZE): Likewise.
5403 (DR_LOCAL_SLOWDOWN): Likewise.
5404 (DR_GLOBAL_SLOWDOWN): Likewise.
5405 (DR_CONTROL_RESERVED): Likewise.
5406 (I386_DR_CONTROL_MASK): Likewise.
5407 (I386_DR_VACANT): Likewise.
5408 (I386_DR_LOCAL_ENABLE): Likewise.
5409 (I386_DR_GLOBAL_ENABLE): Likewise.
5410 (I386_DR_DISABLE): Likewise.
5411 (I386_DR_SET_RW_LEN): Likewise.
5412 (I386_DR_GET_RW_LEN): Likewise.
5413 (I386_DR_WATCH_HIT): Likewise.
5414 (i386_wp_op_t): Likewise.
5415 (i386_show_dr): Likewise.
5416 (i386_length_and_rw_bits): Likewise.
5417 (i386_insert_aligned_watchpoint): Likewise.
5418 (i386_remove_aligned_watchpoint): Likewise.
5419 (i386_handle_nonaligned_watchpoint): Likewise.
5420 (i386_update_inferior_debug_regs): Likewise.
5421 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5422 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5423 (i386_region_ok_for_watchpoint):
5424 Use i386_dr_region_ok_for_watchpoint.
5425 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5427 2014-06-19 Gary Benson <gbenson@redhat.com>
5429 * i386-nat.c (i386_insert_hw_breakpoint): Use
5430 i386_insert_watchpoint.
5431 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5433 2014-06-19 Gary Benson <gbenson@redhat.com>
5435 * i386-nat.c (i386_dr_show): Renamed to
5436 i386_show_dr and made static. All uses updated.
5437 (i386_dr_length_and_rw_bits): Renamed to
5438 i386_length_and_rw_bits and made static.
5440 (i386_dr_insert_aligned_watchpoint): Renamed to
5441 i386_insert_aligned_watchpoint and made static.
5443 (i386_dr_remove_aligned_watchpoint): Renamed to
5444 i386_remove_aligned_watchpoint and made static.
5446 (i386_dr_update_inferior_debug_regs): Renamed to
5447 i386_update_inferior_debug_regs and made static.
5449 * nat/i386-dregs.h (i386_dr_show): Removed.
5450 (i386_dr_length_and_rw_bits): Likewise.
5451 (i386_dr_insert_aligned_watchpoint): Likewise.
5452 (i386_dr_remove_aligned_watchpoint): Likewise.
5453 (i386_dr_update_inferior_debug_regs): Likewise.
5455 2014-06-19 Gary Benson <gbenson@redhat.com>
5457 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5458 * configure: Regenerate.
5459 * config.in: Likewise.
5460 * main.c (signal.h): New include.
5461 (setup_alternate_signal_stack): New function.
5462 (captured_main): Call the above.
5463 * cp-support.c (signal.h): New include.
5464 (catch_demangler_crashes): New flag.
5465 (SIGJMP_BUF): New define.
5466 (SIGSETJMP): Likewise.
5467 (SIGLONGJMP): Likewise.
5468 (gdb_demangle_jmp_buf): New static global.
5469 (gdb_demangle_attempt_core_dump): Likewise.
5470 (gdb_demangle_signal_handler): New function.
5471 (gdb_demangle): If catch_demangler_crashes is set, install the
5472 above signal handler before calling bfd_demangle, and restore
5473 the original signal handler afterwards. Display the offending
5474 symbol and call demangler_warning the first time a segmentation
5476 (_initialize_cp_support): New maint set/show command.
5478 2014-06-19 Gary Benson <gbenson@redhat.com>
5480 * utils.h (resource_limit_kind): New enum.
5481 (can_dump_core): New declaration.
5482 (warn_cant_dump_core): Likewise.
5483 (dump_core): Likewise.
5484 * utils.c (dump_core): Made nonstatic. Added new
5485 parameter "limit_kind".
5486 (can_dump_core): Made nonstatic. Moved printing code to...
5487 (warn_cant_dump_core): New function.
5488 (can_dump_core_warn): Likewise.
5489 (internal_vproblem): Replace calls to can_dump_core with
5490 calls to can_dump_core_warn. Supply new argument to each.
5492 2014-06-19 Gary Benson <gbenson@redhat.com>
5494 * utils.h (demangler_vwarning): New declaration.
5495 (demangler_warning): Likewise.
5496 * utils.c (struct internal_problem)
5497 <user_settable_should_quit>: New field.
5498 <user_settable_should_dump_core>: Likewise
5499 (internal_error_problem): Add values for above new fields.
5500 (internal_warning_problem): Likewise.
5501 (demangler_warning_problem): New static global.
5502 (demangler_vwarning): New function.
5503 (demangler_warning): Likewise.
5504 (add_internal_problem_command): Selectively add commands.
5505 (_initialize_utils): New internal problem command.
5506 * maint.c (maintenance_demangler_warning): New function.
5507 (_initialize_maint_cmds): New command.
5509 2014-06-18 Tom Tromey <tromey@redhat.com>
5511 * f-valprint.c (info_common_command_for_block): Update.
5512 * symtab.h (struct general_symbol_info) <common_block>: Now
5515 2014-06-18 Tom Tromey <tromey@redhat.com>
5517 * symtab.h (struct symtab) <blockvector>: Now const.
5518 * ada-lang.c (ada_add_global_exceptions): Update.
5519 * buildsym.c (augment_type_symtab): Update.
5520 * dwarf2read.c (dw2_lookup_symbol): Update.
5521 * jit.c (finalize_symtab): Update.
5522 * jv-lang.c (add_class_symtab_symbol): Update.
5523 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5525 * objfiles.c (objfile_relocate1): Update.
5526 * psymtab.c (lookup_symbol_aux_psymtabs)
5527 (maintenance_check_psymtabs): Update.
5528 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5530 * spu-tdep.c (spu_catch_start): Update.
5531 * symmisc.c (dump_symtab_1): Update.
5532 * symtab.c (lookup_global_symbol_from_objfile)
5533 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5534 (basic_lookup_transparent_type_quick)
5535 (basic_lookup_transparent_type, find_pc_sect_symtab)
5536 (find_pc_sect_line, search_symbols): Update.
5537 * block.c (find_block_in_blockvector): Make "bl" const.
5538 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5540 (blockvector_contains_pc): Make "bv" const.
5541 (block_for_pc_sect): Update.
5542 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5543 (blockvector_contains_pc): Update.
5544 * breakpoint.c (resolve_sal_pc): Update.
5545 * inline-frame.c (block_starting_point_at): Update.
5547 2014-06-18 Tom Tromey <tromey@redhat.com>
5549 * completer.c (complete_line): Make "line_buffer" const.
5550 * completer.h (complete_line): Update.
5552 2014-06-18 Tom Tromey <tromey@redhat.com>
5554 * symtab.c (add_macro_name): Remove unneeded cast.
5556 2014-06-18 Tom Tromey <tromey@redhat.com>
5558 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5559 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5561 2014-06-18 Tom Tromey <tromey@redhat.com>
5563 * probe.c (info_probes_for_ops): Make "arg" const.
5564 * probe.h (info_probes_for_ops): Update.
5566 2014-06-18 Tom Tromey <tromey@redhat.com>
5568 * varobj.c (varobj_create): Update.
5569 * valops.c (value_of_this): Update.
5570 * tracepoint.c (add_local_symbols, scope_info): Update.
5571 * symtab.h (struct general_symbol_info) <block>: Now const.
5572 * symtab.c (skip_prologue_sal)
5573 (default_make_symbol_completion_list_break_on)
5574 (skip_prologue_using_sal): Update.
5575 * stack.h (iterate_over_block_locals)
5576 (iterate_over_block_local_vars): Update.
5577 * stack.c (print_frame_args): Update.
5578 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5580 (get_selected_block): Make return type const.
5581 * python/py-frame.c (frapy_block): Update.
5582 * python/py-block.c (gdbpy_block_for_pc): Update.
5583 * p-exp.y (%union) <bval>: Now const.
5584 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5585 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5586 * m2-exp.y (%union) <bval>: Now const.
5587 * linespec.c (get_current_search_block): Make return type const.
5588 (create_sals_line_offset, find_label_symbols): Update.
5589 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5591 (block_starting_point_at): Make "block" const.
5592 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5593 (check_exception_resume): Update.
5594 * guile/scm-frame.c (gdbscm_frame_block): Update.
5595 * guile/scm-block.c (gdbscm_lookup_block): Update.
5596 * frame.h (get_frame_block): Update.
5597 (get_selected_block): Make return type const.
5598 * frame.c (frame_id_inner): Update.
5599 * f-valprint.c (info_common_command_for_block)
5600 (info_common_command): Update.
5601 * dwarf2loc.c (dwarf2_find_location_expression)
5602 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5603 (locexpr_describe_location_piece): Update.
5604 * c-exp.y (%union) <bval>: Now const.
5605 * breakpoint.c (resolve_sal_pc): Update.
5606 * blockframe.c (get_frame_block):Make return type const.
5607 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5608 (block_innermost_frame): Update.
5609 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5610 (block_for_pc, block_for_pc_sect): Update.
5611 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5613 (block_for_pc_sect, block_for_pc): Make return type const.
5614 * ax-gdb.c (gen_expr): Update.
5615 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5616 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5617 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5618 (ada_read_var_value): Update.
5619 * ada-exp.y (struct name_info) <block>: Now const.
5621 (block_lookup): Constify.
5623 2014-06-18 Gary Benson <gbenson@redhat.com>
5625 * nat/i386-dregs.h: New file.
5626 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5627 * i386-nat.h (i386-dregs.h): New include.
5628 (DR_FIRSTADDR): Now in i386-dregs.h.
5629 (DR_LASTADDR): Likewise.
5630 (DR_NADDR): Likewise.
5631 (DR_STATUS): Likewise.
5632 (DR_CONTROL): Likewise.
5633 (i386_debug_reg_state): Likewise.
5634 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5636 2014-06-18 Don Breazeal <donb@codesourcery.com>
5638 * breakpoint.c (set_longjmp_breakpoint): Call
5639 momentary_breakpoint_from_master with additional argument.
5640 (set_longjmp_breakpoint_for_call_dummy): Call
5641 momentary_breakpoint_from_master with additional argument.
5642 (set_std_terminate_breakpoint): Call
5643 momentary_breakpoint_from_master with additional argument.
5644 (momentary_breakpoint_from_master): Add argument to function
5645 definition and use it to initialize structure member flag.
5646 (clone_momentary_breakpoint): Call
5647 momentary_breakpoint_from_master with additional argument.
5648 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5649 member flags set in momentary_breakpoint_from_master.
5651 2014-06-18 Gary Benson <gbenson@redhat.com>
5653 * i386-nat.c (i386_show_dr): Renamed to
5654 i386_dr_show and made nonstatic. All uses updated.
5655 (i386_length_and_rw_bits): Renamed to
5656 i386_dr_length_and_rw_bits and made nonstatic.
5658 (i386_insert_aligned_watchpoint): Renamed to
5659 i386_dr_insert_aligned_watchpoint and made nonstatic.
5661 (i386_remove_aligned_watchpoint): Renamed to
5662 i386_dr_remove_aligned_watchpoint and made nonstatic.
5664 (i386_update_inferior_debug_regs): Renamed to
5665 i386_dr_update_inferior_debug_regs and made nonstatic.
5668 2014-06-18 Gary Benson <gbenson@redhat.com>
5670 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5671 (i386_dr_low_can_set_control): Likewise.
5672 (i386_dr_low_set_addr): Likewise.
5673 (i386_dr_low_set_control): Likewise.
5674 (i386_dr_low_get_addr): Likewise.
5675 (i386_dr_low_get_status): Likewise.
5676 (i386_dr_low_get_control): Likewise.
5677 (i386_insert_aligned_watchpoint): Use new macros.
5678 (i386_update_inferior_debug_regs): Likewise.
5679 (i386_stopped_data_address): Likewise.
5681 2014-06-18 Gary Benson <gbenson@redhat.com>
5683 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5684 New parameter. All uses updated.
5686 2014-06-18 Gary Benson <gbenson@redhat.com>
5688 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5691 2014-06-18 Gary Benson <gbenson@redhat.com>
5693 * i386-nat.c (debug_printf): New macro.
5694 (i386_get_debug_register_length): Likewise.
5695 (TARGET_HAS_DR_LEN_8): Use above macro.
5696 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5697 and printf_unfiltered. Use phex to format values.
5699 2014-06-18 Gary Benson <gbenson@redhat.com>
5701 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5704 2014-06-18 Gary Benson <gbenson@redhat.com>
5706 * i386-nat.c: Comment changes.
5708 2014-06-18 Gary Benson <gbenson@redhat.com>
5710 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5712 2014-06-18 Gary Benson <gbenson@redhat.com>
5714 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5715 (i386_insert_aligned_watchpoint): Likewise.
5716 (i386_remove_aligned_watchpoint): Likewise.
5717 (i386_handle_nonaligned_watchpoint): Likewise.
5719 2014-06-18 Gary Benson <gbenson@redhat.com>
5721 * i386-nat.c: Whitespace changes.
5723 2014-06-17 Samuel Bronson <naesten@gmail.com>
5725 * MAINTAINERS: Update Roland McGrath's email address.
5726 Thanks to Sergio Durigan Junior for pointing out that he left
5727 Red Hat a while ago, and giving me a current address.
5729 2014-06-17 Tom Tromey <tromey@redhat.com>
5731 * utils.h (savestring): Remove declaration.
5733 2014-06-17 Tom Tromey <tromey@redhat.com>
5735 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5737 2014-06-16 Keith Seitz <keiths@redhat.com>
5740 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5741 to update the varobj if inferior_ptid is null_ptid.
5743 2014-06-16 Tom Tromey <tromey@redhat.com>
5745 * target.h (struct target_ops) <to_info_proc>: Make parameter
5747 (target_info_proc): Update.
5748 * target.c (target_info_proc): Make "args" const.
5749 * procfs.c (procfs_info_proc): Update.
5750 * linux-tdep.c (linux_info_proc): Update.
5751 (linux_core_info_proc_mappings): Make "args" const.
5752 (linux_core_info_proc): Update.
5753 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5754 * gdbarch.c: Rebuild.
5755 * gdbarch.h: Rebuild.
5756 * corelow.c (core_info_proc): Update.
5758 2014-06-16 Tom Tromey <tromey@redhat.com>
5760 * target.h (struct target_ops) <to_disconnect>: Make parameter
5762 (target_disconnect): Update.
5763 * target.c (target_disconnect): Make "args" const.
5764 * target-delegates.c: Rebuild.
5765 * remote.c (remote_disconnect): Update.
5766 * record.h (record_disconnect): Update.
5767 * record.c (record_disconnect): Update.
5768 * inf-child.c (inf_child_disconnect): Update.
5770 2014-06-16 Tom Tromey <tromey@redhat.com>
5772 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5773 * target.c (debug_to_rcmd, default_rcmd): Update.
5774 * target-delegates.c: Rebuild.
5775 * remote.c (remote_rcmd): Update.
5776 * monitor.c (monitor_rcmd): Update.
5778 2014-06-16 Pedro Alves <palves@redhat.com>
5780 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5781 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5782 have OBJF_SHARED set.
5783 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5784 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5785 instead of OBJF_USERLOADED.
5786 * objfiles.h (OBJF_SHARED): Update comment.
5787 (userloaded_objfile_contains_address_p): Rename to ...
5788 (shared_objfile_contains_address_p): ... this, and update
5790 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5792 (remove_symbol_file_command): Skip objfiles that don't have
5795 2014-06-16 Tom Tromey <tromey@redhat.com>
5797 * minsyms.h (prim_record_minimal_symbol)
5798 (prim_record_minimal_symbol_and_info): Update comments.
5800 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5802 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5803 or --without-guile, according to how GDB was built.
5805 2014-06-13 Tom Tromey <tromey@redhat.com>
5807 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5809 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5811 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5813 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5814 help_list.Pass all_commands, not -1, to help_list.
5815 * cli/cli-dump.c (dump_command, append_command)
5816 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5817 (binary_dump_command, binary_append_command): Pass all_commands,
5818 not -1, to help_list.
5819 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5821 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5823 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5825 * top.c (set_history): Pass all_commands, not -1, to help_list.
5826 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5827 all_commands, not -1, to help_list.
5828 * symfile.c (overlay_command): Pass all_commands, not -1, to
5830 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5832 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5834 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5836 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5837 not -1, to help_list.
5838 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5839 not -1, to help_list.
5840 * maint.c (maintenance_command, maintenance_info_command)
5841 (maintenance_print_command, maintenance_set_cmd): Pass
5842 all_commands, not -1, to help_list.
5843 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5845 * language.c (set_check): Pass all_commands, not -1, to help_list.
5846 * infcmd.c (unset_command): Pass all_commands, not -1, to
5848 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5850 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5852 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5854 * breakpoint.c (save_command): Pass all_commands, not -1, to
5856 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5857 all_commands, not -1, to help_list.
5859 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5861 * regcache.c (struct register_to_invalidate): New structure.
5862 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5864 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5866 2014-06-12 Yao Qi <yao@codesourcery.com>
5868 * varobj.c (varobj_get_num_children): Call
5869 varobj_is_dynamic_p.
5870 (varobj_list_children): Likewise.
5871 (varobj_update): Likewise. Update comments.
5873 2014-06-12 Yao Qi <yao@codesourcery.com>
5875 * varobj.c (varobj_pretty_printed_p): Rename to ...
5876 (varobj_is_dynamic_p): ... this. New function.
5877 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5878 (varobj_is_dynamic_p): Declare.
5879 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5880 (mi_print_value_p, varobj_update_one): Likewise.
5882 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5883 Yao Qi <yao@codesourcery.com>
5885 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5886 (varobj_get_iterator): Wrap up code for pretty-printer by
5887 "#if HAVE_PYTHON" and "#endif".
5888 (update_dynamic_varobj_children): Likewise.
5890 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5891 Yao Qi <yao@codesourcery.com>
5893 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5894 gdb_python_initialized is false. Move some code from varobj.c.
5895 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5896 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5897 (struct varobj_item): Moved to varobj-iter.h".
5898 (varobj_clear_saved_item): New function.
5899 (update_dynamic_varobj_children): Move python-related code to
5901 (free_variable): Call varobj_clear_saved_item and
5904 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5905 Yao Qi <yao@codesourcery.com>
5907 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5908 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5909 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5910 (py-varobj.o): New rule.
5911 * python/py-varobj.c: New file.
5912 * python/python-internal.h (py_varobj_get_iterator): Declare.
5913 * varobj-iter.h: New file.
5914 * varobj.c: Include "varobj-iter.h"
5915 (struct varobj) <child_iter>: Change its type from "PyObject *"
5916 to "struct varobj_iter *".
5917 <saved_item>: Likewise.
5918 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5919 [HAVE_PYTHON] (varobj_get_iterator): New function.
5920 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5921 python-specific code to python/py-varobj.c.
5922 (install_visualizer): Call varobj_iter_delete instead of
5924 * varobj.h (varobj_ensure_python_env): Declare.
5926 2014-06-12 Yao Qi <yao@codesourcery.com>
5928 * varobj.c (struct varobj_item): New structure.
5929 (create_child_with_value): Update declaration.
5930 (varobj_add_child): Replace arguments 'name' and 'value' with
5931 'item'. All callers updated.
5932 (install_dynamic_child): Likewise.
5933 (update_dynamic_varobj_children): Likewise.
5934 (varobj_add_child): Likewise.
5935 (create_child_with_value): Likewise.
5937 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5939 * NEWS: Create a new section for the next release branch.
5940 Rename the section of the current branch, now that it has
5943 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5945 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5946 * version.in: Bump version to 7.8.50.DATE-cvs.
5948 2014-06-11 Pedro Alves <palves@redhat.com>
5951 * ser-mingw.c (net_windows_socket_check_pending): New function.
5952 (net_windows_select_thread): Ignore spurious wakeups. Use
5953 net_windows_socket_check_pending.
5954 (net_windows_wait_handle): Check for pending events with
5955 ioctlsocket, through net_windows_socket_check_pending, instead of
5956 checking the socket's event.
5958 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5960 * python/python-internal.h (gdb_PyObject_GetAttrString)
5961 (gdb_PyObject_HasAttrString): New inline function definitions.
5962 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5963 char * of the second argument to PyObject_GetAttrString.
5965 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5967 * serial.c (serial_write): Fix index of character to be printed
5968 in call to serial_logchar when serial debug traces are enabled.
5970 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5972 * gdbtypes (resolve_dynamic_range): Add function description.
5974 2014-06-09 Pedro Alves <palves@redhat.com>
5976 * linux-nat.c (linux_child_follow_fork): Initialize status with
5977 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5978 inner block. Only pass the signal to PTRACE_DETACH if in pass
5981 2014-06-09 Gary Benson <gbenson@redhat.com>
5983 * common/signals.c (gdb_signal_from_host): Reorder to separate
5984 the always-available ANSI-standard signals from the signals that
5986 (do_gdb_signal_to_host): Likewise.
5987 * proc-events.c (signal_table): Likewise.
5989 2014-06-08 Hui Zhu <hui@codesourcery.com>
5991 * common/linux-ptrace.c (linux_disable_event_reporting): New
5993 * common/linux-ptrace.h (linux_disable_event_reporting): New
5995 * linux-nat.c (linux_child_follow_fork): Do a single step before
5998 2014-06-07 Keith Seitz <keiths@redhat.com>
6002 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6003 from symbol_matches_domain in symtab.c. All local callers
6004 of symbol_matches_domain updated.
6005 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6006 search STRUCT_DOMAIN.
6007 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6008 independently. standard_lookup will do that automatically.
6009 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6010 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6011 (cp_lookup_symbol_in_namespace): Likewise.
6012 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6013 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6014 may return a STRUCT_DOMAIN match.
6015 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6016 * cp-support.c: Include language.h.
6017 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6019 * psymtab.c (match_partial_symbol): Compare the requested
6020 domain with the symbol's domain directly.
6021 (lookup_partial_symbol): Likewise.
6022 * symtab.c (lookup_symbol_in_language): Explain when/why
6023 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6024 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6025 appropriate languages.
6026 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6027 and moved to ada-lang.c
6028 (lookup_block_symbol): Explain that this function only returns
6029 symbol matching the requested DOMAIN.
6030 Compare the requested domain with the symbol's domain directly.
6031 (iterate_over_symbols): Compare the requested domain with the
6032 symbol's domain directly.
6033 * symtab.h (symbol_matches_domain): Remove.
6035 2014-06-06 Doug Evans <xdje42@gmail.com>
6037 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6038 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6039 (gdbscm_guile_version_is_at_least): Declare.
6040 (gdbscm_scm_string_to_int): Declare.
6041 * guile/guile.c (gdbscm_guile_major_version): New global.
6042 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6043 (guile_datadir): New static global.
6044 (gdbscm_guile_data_directory): New function.
6045 (initialize_scheme_side): Update.
6046 (misc_guile_functions): Add guile-data-directory.
6047 (initialize_gdb_module): Fetch guile version number.
6048 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6049 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6050 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6051 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6053 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6054 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6055 * guile/scm-value.c (gdbscm_value_to_string): Only call
6056 scm_port_conversion_strategy if Guile version >= 2.0.6.
6058 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6060 * main.c (print_gdb_help): Add -q and --silent.
6062 2014-06-06 Gary Benson <gbenson@redhat.com>
6064 * common/signals.c: Remove preprocessor conditionals for
6065 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6066 SIGSEGV and SIGTERM.
6067 * proc-events.c: Likewise.
6069 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6071 * symfile.c (symfile_free_objfile): Remove restriction to
6073 * symfile-mem.c (symbol_file_add_from_memory): Call
6074 add_target_sections_of_objfile.
6076 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6078 * guile/scm-value.c (gdbscm_history_append_x): Use
6079 'vlscm_get_value_smob_arg_unsafe' instead of
6080 'vlscm_scm_to_value'.
6082 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6085 * utils.c (printchar): Don't escape at all if quoter is NUL.
6086 Update function documentation to clarify effect of parameter
6088 * remote.c (escape_buffer): Pass '\\' as the quoter to
6089 fputstrn_unfiltered.
6090 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6091 generate the output.
6092 (mi_solib_unloaded): Same.
6094 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6096 * development.sh: Delete.
6097 * Makefile.in (config.status): Adjust dependency on development.sh.
6098 * configure.ac: Adjust development.sh source call.
6099 * configure: Regenerate.
6101 2014-06-04 Doug Evans <xdje42@gmail.com>
6103 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6104 is_scheme_bkpt, spec.
6105 (bpscm_make_breakpoint_smob): Initialize new members.
6106 (gdbscm_create_breakpoint_x): Split into two ...
6107 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6108 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6109 (scheme_function breakpoint_functions): Update.
6110 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6111 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6112 register-breakpoint!.
6114 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6117 * mem-break.c (z_type_supported): Return zero if
6118 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6120 2014-06-04 Tom Tromey <tromey@redhat.com>
6122 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6123 value_from_contents_and_address_unresolved.
6124 (ada_template_to_fixed_record_type_1): Likewise.
6125 (ada_which_variant_applies): Likewise.
6126 * value.h (value_from_contents_and_address_unresolved): Declare.
6127 * value.c (value_from_contents_and_address_unresolved): New
6129 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6130 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6131 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6133 2014-06-04 Tom Tromey <tromey@redhat.com>
6135 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6137 2014-06-04 Tom Tromey <tromey@redhat.com>
6139 * procfs.c (procfs_attach): Make "args" const.
6140 * windows-nat.c (windows_attach): Make "args" const.
6141 * nto-procfs.c (procfs_attach): Make "args" const.
6142 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6143 * go32-nat.c (go32_attach): Make "args" const.
6144 * gnu-nat.c (gnu_attach): Make "args" const.
6145 * darwin-nat.c (darwin_attach): Make "args" const.
6146 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6147 * linux-nat.c (linux_nat_attach): Make "args" const.
6148 * remote.c (extended_remote_attach_1, extended_remote_attach):
6150 * target.h (struct target_ops) <to_attach>: Make "args" const.
6151 (find_default_attach): Likewise.
6152 * utils.c (parse_pid_to_attach): Make "args" const.
6153 * utils.h (parse_pid_to_attach): Update.
6155 2014-06-04 Tom Tromey <tromey@redhat.com>
6157 * target-delegates.c: Rebuild.
6158 * target.c (default_thread_address_space): New function.
6159 (target_thread_address_space): Simplify.
6160 * target.h (struct target_ops) <to_thread_address_space>: Add
6161 TARGET_DEFAULT_FUNC.
6163 2014-06-04 Doug Evans <xdje42@gmail.com>
6165 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6167 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6169 * record-btrace.c: Include event-loop.h and inf-loop.h.
6170 (record_btrace_resume_exec_dir)
6171 (record_btrace_async_inferior_event_handler)
6172 (record_btrace_handle_async_inferior_event): New.
6173 (record_btrace_open): Create async event handler.
6174 (record_btrace_close): Delete async event handler.
6175 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6176 Mark async event handler.
6177 (record_btrace_execution_direction): New.
6178 (init_record_btrace_ops): Initialize to_execution_direction.
6180 2014-06-03 Doug Evans <xdje42@gmail.com>
6182 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6183 (gdbscm_make_parameter): Ditto.
6185 2014-06-03 Doug Evans <dje@google.com>
6187 * exec.c (exec_close_1): Call clear_section_table instead of
6188 resize_section_table.
6189 (clear_section_table): New function.
6190 (resize_section_table): Make static. Rename arg num_added to
6192 * exec.h (clear_section_table): Declare.
6193 (resize_section_table): Delete.
6194 * progspace.c (release_program_space): Call clear_section_table
6195 instead of resize_section_table.
6197 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6199 * NEWS (Python Scripting): Add entry about the new xmethods
6202 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6204 * python/py-xmethods.c: New file.
6205 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6206 (objfpy_dealloc): XDECREF on the new xmethods field.
6207 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6209 (objfpy_get_xmethods): New function.
6210 (objfile_getset): New entry 'xmethods'.
6211 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6212 (pspy_dealloc): XDECREF on the new xmethods field.
6213 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6215 (pspy_get_xmethods): New function.
6216 (pspace_getset): New entry 'xmethods'.
6217 * python/python-internal.h: Add declarations for new functions.
6218 * python/python.c (_initialize_python): Invoke
6219 gdbpy_initialize_xmethods.
6220 * python/lib/gdb/__init__.py (xmethods): New
6222 * python/lib/gdb/xmethod.py: New file.
6223 * python/lib/gdb/command/xmethods.py: New file.
6225 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6227 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6228 best match method returned by find_overload_match is an xmethod.
6229 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6230 the best matching operator returned by find_overload_match is an
6232 * valops.c: #include "extension.h".
6233 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6234 Return void. The list of matching source methods is returned in
6235 "fn_list" and a vector of matching debug method workers is
6236 returned in "xm_worker_vec". Update all callers.
6237 (value_find_oload_method_list): Likewise.
6238 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6239 non-NULL, then the index of the best matching method in this
6240 vector is returned. Update all callers.
6241 (find_overload_match): Include xmethods while performing overload
6244 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6246 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6247 * extension-priv.h (struct extension_language_ops): Add the
6249 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6250 get_matching_xmethod_workers, get_xmethod_argtypes,
6251 invoke_xmethod, free_xmethod_worker,
6252 free_xmethod_worker_vec): New functions.
6253 * extension.h: #include "common/vec.h".
6254 New function declarations.
6255 (struct xmethod_worker): New struct.
6256 (VEC (xmethod_worker_ptr)): New vector type.
6257 (xmethod_worker_ptr): New typedef.
6258 (xmethod_worker_vec): Likewise.
6259 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6261 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6262 (struct builtin_type): New field "xmethod".
6263 * valarith.c (value_ptradd): Assert that the value argument is not
6265 * valops.c (value_must_coerce_to_target): Return 0 for
6266 lval_xcallable values.
6267 * value.c (struct value): New field XM_WORKER in the field
6269 (value_address, value_raw_address): Return 0 for lval_xcallable
6271 (set_value_address): Assert that the value is not an
6273 (value_free): Free the associated xmethod worker when freeing
6274 lval_xcallable values.
6275 (set_value_component_location): Assert that the WHOLE value is not
6277 (value_of_xmethod, call_xmethod): New functions.
6278 * value.h: Declare "struct xmethod_worker".
6279 Declare new functions value_of_xmethod, call_xmethod.
6281 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6282 Pedro Alves <palves@redhat.com>
6284 PR breakpoints/17000
6285 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6286 New function, extracted from software_breakpoint_inserted_here_p.
6287 (software_breakpoint_inserted_here_p): Replace factored out code
6288 by call to find_non_raw_software_breakpoint_inserted_here.
6289 (bp_target_info_copy_insertion_state): New function.
6290 (bkpt_insert_location): Handle the case of a single-step
6291 breakpoint already inserted at the same address.
6292 (bkpt_remove_location): Handle the case of a single-step
6293 breakpoint still inserted at the same address.
6294 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6295 breakpoint already inserted at the same address.
6296 (deprecated_remove_raw_breakpoint): Handle the case of a
6297 non-raw breakpoint still inserted at the same address.
6298 (find_single_step_breakpoint): New function, extracted from
6299 single_step_breakpoint_inserted_here_p.
6300 (find_single_step_breakpoint): New function,
6301 factored out from single_step_breakpoint_inserted_here_p.
6302 (single_step_breakpoint_inserted_here_p): Reimplement.
6304 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6306 Pushed by Joel Brobecker <brobecker@adacore.com>
6307 * source.c (show_substitute_path_command): Fix display of matching
6310 2014-06-03 Gary Benson <gbenson@redhat.com>
6312 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6314 2014-06-02 Doug Evans <xdje42@gmail.com>
6316 Add parameter support for Guile.
6317 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6318 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6319 (scm-param.o): New rule.
6320 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6321 (gdbscm_misc_error): Declare.
6322 (gdbscm_canonicalize_command_name): Declare.
6323 (gdbscm_scm_to_host_string): Declare.
6324 (gdbscm_scm_from_host_string): Declare.
6325 (gdbscm_initialize_parameters): Declare.
6326 * guile/guile.c (initialize_gdb_module): Call
6327 gdbscm_initialize_parameters.
6328 * guile/lib/gdb.scm: Export parameter symbols.
6329 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6330 cmdscm_canonicalize_name and made public. All callers updated.
6331 * guile/scm-exception.c (gdbscm_misc_error): New function.
6332 * guile/scm-param.c: New file.
6333 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6334 (gdbscm_scm_to_host_string): New function.
6335 (gdbscm_scm_from_host_string): New function.
6336 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6338 2014-06-02 Doug Evans <xdje42@gmail.com>
6340 Add command support for Guile.
6341 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6342 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6343 (scm-cmd.o): New rule.
6344 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6345 (gdbscm_user_error_p): Declare.
6346 (gdbscm_parse_command_name): Declare.
6347 (gdbscm_valid_command_class_p): Declare.
6348 (gdbscm_initialize_commands): Declare.
6349 * guile/guile.c (initialize_gdb_module): Call
6350 gdbscm_initialize_commands.
6351 * guile/lib/gdb.scm: Export command symbols.
6352 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6353 (throw-user-error): New function.
6354 * guile/scm-cmd.c: New file.
6355 * guile/scm-exception.c (user_error_symbol): New static global.
6356 (gdbscm_user_error_p): New function.
6357 (gdbscm_initialize_exceptions): Set user_error_symbol.
6358 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6360 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6362 * top.c (command_loop): Handle comments here...
6363 (command_line_input): ... not here.
6365 2014-06-02 Doug Evans <xdje42@gmail.com>
6367 Add progspace support for Guile.
6368 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6369 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6370 (scm-progspace.o): New rule.
6371 * guile/guile-internal.h (pspace_smob): New typedef.
6372 (psscm_pspace_smob_pretty_printers): Declare.
6373 (psscm_pspace_smob_from_pspace): Declare.
6374 (psscm_scm_from_pspace): Declare.
6375 * guile/guile.c (initialize_gdb_module): Call
6376 gdbscm_initialize_pspaces.
6377 * guile/lib/gdb.scm: Export progspace symbols.
6378 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6380 (append-pretty-printer!): Ditto.
6381 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6383 * guile/scm-progspace.c: New file.
6385 2014-06-03 Alan Modra <amodra@gmail.com>
6387 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6388 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6390 2014-06-02 Doug Evans <dje@google.com>
6392 Add support for skeletonless type units.
6393 * dwarf2read.c (struct dwarf2_per_objfile): New member
6394 n_allocated_type_units.
6395 (struct dwarf2_per_objfile) <tu_stats>: New member
6396 nr_all_type_units_reallocs.
6397 (create_signatured_type_table_from_index): Initialize
6398 n_allocated_type_units
6399 (create_all_type_units): Ditto.
6400 (add_type_unit): Move up in file. New arg slot.
6401 All callers updated. Increase space for all_type_units more
6403 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6404 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6405 (lookup_dwp_signatured_type): Ditto.
6406 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6407 All callers updated.
6408 (build_type_psymtabs_1): Leave type_unit_groups as
6409 NULL if no TUs present.
6410 (print_tu_stats): New function.
6411 (process_skeletonless_type_unit): New function.
6412 (process_dwo_file_for_skeletonless_type_units): New
6414 (process_skeletonless_type_units): New function.
6415 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6416 Call print tu_stats if debugging enabled.
6418 2014-06-02 Pedro Alves <palves@redhat.com>
6420 * breakpoint.c (build_target_command_list): Don't build a command
6421 list if we have any duplicate location that isn't a dprintf.
6423 2014-06-02 Pedro Alves <palves@redhat.com>
6425 * breakpoint.c (dprintf_breakpoint_hit): New function.
6426 (initialize_breakpoint_ops): Install it as dprintf's
6427 breakpoint_hit method.
6429 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6431 * source.c (substitute_path_rule_matches): Simplify using
6432 filename_ncmp instead of FILENAME_CMP.
6434 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6436 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6438 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6440 * configure.ac: When Guile is available, check for the
6441 availability of 'scm_new_smob'.
6442 * configure, config.h.in: Regenerate.
6443 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6446 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6448 * frame.c (struct frame_info): Add stop_string field.
6449 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6450 (get_prev_frame_always): Old content moved into
6451 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6452 TRY_CATCH, handle MEMORY_ERROR exceptions.
6453 (frame_stop_reason_string): New function definition.
6454 * frame.h (unwind_stop_reason_to_string): Extend comment to
6455 mention frame_stop_reason_string.
6456 (frame_stop_reason_string): New function declaration.
6457 * stack.c (frame_info): Switch to frame_stop_reason_string.
6458 (backtrace_command_1): Switch to frame_stop_reason_string.
6459 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6460 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6461 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6463 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6465 * frame.c (frame_stop_reason_string): Rename to ...
6466 (unwind_stop_reason_to_string): this.
6467 * frame.h (frame_stop_reason_string): Rename to ...
6468 (unwind_stop_reason_to_string): this.
6469 * stack.c (frame_info): Update call to frame_stop_reason_string.
6470 (backtrace_command_1): Likewise.
6471 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6472 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6474 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6476 * frame.c (remove_prev_frame): New function.
6477 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6480 2014-05-29 Pedro Alves <palves@redhat.com>
6482 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6483 and make it const. When a single-step decays to a continue,
6484 clear 'step', not 'hw_step'. Pass whether the caller wanted
6485 to step to user_visible_resume_ptid, not what we ask the
6488 2014-05-29 Pedro Alves <palves@redhat.com>
6490 * infrun.c (process_event_stop_test, handle_step_into_function)
6491 (handle_step_into_function_backward): Adjust.
6492 Don't set the even thread's stop_step and call stop_waiting before
6493 calling end_stepping_range. Instead do that ...
6494 (end_stepping_range): ... here. Take an ecs pointer parameter.
6496 2014-05-29 Pedro Alves <palves@redhat.com>
6498 * infrun.c (stop_stepping): Rename to ...
6499 (stop_waiting): ... this.
6500 (proceed): Update comment.
6501 (process_event_stop_test, handle_inferior_event)
6502 (handle_signal_stop, handle_step_into_function)
6503 (handle_step_into_function_backward): Update.
6505 2014-05-29 Pedro Alves <palves@redhat.com>
6507 * infcall.c (run_inferior_call): Don't check whether the current
6508 thread is running after the proceed call.
6510 2014-05-29 Pedro Alves <palves@redhat.com>
6511 Tom Tromey <tromey@redhat.com>
6513 * NEWS: Mention "maint set target-async", "set mi-async", and that
6514 background execution commands are now always available.
6515 * target.h (target_async_permitted): Update comment.
6516 * target.c (target_async_permitted, target_async_permitted_1):
6518 (set_target_async_command): Rename to ...
6519 (maint_set_target_async_command): ... this.
6520 (show_target_async_command): Rename to ...
6521 (maint_show_target_async_command): ... this.
6522 (_initialize_target): Adjust.
6523 * infcmd.c (prepare_execution_command): Make extern.
6524 * inferior.h (prepare_execution_command): Declare.
6525 * infrun.c (set_observer_mode): Leave target async alone.
6526 * mi/mi-interp.c (mi_interpreter_init): Install
6527 mi_on_sync_execution_done as sync_execution_done observer.
6528 (mi_on_sync_execution_done): New function.
6529 (mi_execute_command_input_handler): Don't print the prompt if we
6530 just started a synchronous command with an async target.
6531 (mi_on_resume): Check sync_execution before printing prompt.
6532 * mi/mi-main.h (mi_async_p): Declare.
6533 * mi/mi-main.c: Include gdbcmd.h.
6534 (mi_async_p): New function.
6535 (mi_async, mi_async_1): New globals.
6536 (set_mi_async_command, show_mi_async_command, mi_async): New
6538 (exec_continue): Call prepare_execution_command.
6539 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6540 (mi_execute_async_cli_command): Use mi_async_p.
6541 (_initialize_mi_main): Install "set mi-async". Make
6542 "target-async" a deprecated alias.
6544 2014-05-29 Pedro Alves <palves@redhat.com>
6546 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6547 (_initialize_cli_interp): Adjust.
6548 * event-loop.c: Include "observer.h".
6549 (start_event_loop): Notify 'command_error' observers instead of
6550 calling display_gdb_prompt. Remove FIXME comment.
6551 * event-top.c (display_gdb_prompt): Remove call into the
6553 * inf-loop.c: Include "observer.h".
6554 (inferior_event_handler): Notify 'command_error' observers instead
6555 of calling display_gdb_prompt.
6556 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6557 observers instead of calling display_gdb_prompt.
6558 * interps.c (interp_set): Don't call display_gdb_prompt.
6559 (current_interp_display_prompt_p): Delete.
6560 * interps.h (interp_prompt_p): Delete declaration.
6561 (interp_prompt_p_ftype): Delete.
6562 (struct interp_procs) <prompt_proc_p>: Delete field.
6563 (current_interp_display_prompt_p): Delete declaration.
6564 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6565 (_initialize_mi_interp): Adjust.
6566 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6567 'command_error' observers.
6568 (tui_on_sync_execution_done, tui_on_command_error): New
6570 (tui_display_prompt_p): Delete.
6571 (_initialize_tui_interp): Adjust.
6573 2014-05-29 Pedro Alves <palves@redhat.com>
6576 * cli/cli-interp.c: Include infrun.h and observer.h.
6577 (cli_uiout, cli_interp): New globals.
6578 (cli_on_signal_received, cli_on_end_stepping_range)
6579 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6581 (cli_interpreter_init): Install them as 'end_stepping_range',
6582 'signal_received' 'signal_exited', 'exited' and 'no_history'
6584 (_initialize_cli_interp): Remove cli_interp local.
6585 * infrun.c (handle_inferior_event): Call the several stop reason
6586 observers instead of printing the stop reason directly.
6587 (end_stepping_range): New function.
6588 (print_end_stepping_range_reason, print_signal_exited_reason)
6589 (print_exited_reason, print_signal_received_reason)
6590 (print_no_history_reason): Make static, and add an uiout
6591 parameter. Print to that instead of to CURRENT_UIOUT.
6592 * infrun.h (print_end_stepping_range_reason)
6593 (print_signal_exited_reason, print_exited_reason)
6594 (print_signal_received_reason print_no_history_reason): New
6596 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6598 <cli_uiout>: New field.
6599 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6600 uiout for CLI output. Install 'signal_received',
6601 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6603 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6604 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6605 (mi_on_no_history): New functions.
6606 (ui_out_free_cleanup): Delete function.
6607 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6608 instead use the one already stored in the MI interpreter data.
6609 (mi_ui_out): Adjust.
6610 * tui/tui-interp.c: Include infrun.h and observer.h.
6611 (tui_interp): New global.
6612 (tui_on_signal_received, tui_on_end_stepping_range)
6613 (tui_on_signal_exited, tui_on_exited)
6614 (tui_on_no_history): New functions.
6615 (tui_init): Install them as 'end_stepping_range',
6616 'signal_received' 'signal_exited', 'exited' and 'no_history'
6618 (_initialize_tui_interp): Delete tui_interp local.
6620 2014-05-29 Pedro Alves <palves@redhat.com>
6623 * linux-nat.c (linux_nat_resume_callback): Rename the second
6624 parameter to 'except'. Skip LP if it points to EXCEPT.
6625 (linux_nat_resume): Don't mark the event lwp as not stopped
6626 before resuming sibling lwps. Instead ask
6627 linux_nat_resume_callback to skip the event lwp. Mark it as not
6628 stopped after actually resuming it.
6629 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6631 (wait_lwp): Mark the lwp as stopped here.
6632 (stop_wait_callback): Mark the lwp as not stopped right after
6633 resuming it. Don't mark lwps as stopped here.
6634 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6635 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6637 2014-05-29 Pedro Alves <palves@redhat.com>
6640 * infrun.c (resume): Determine how much to resume depending on
6641 whether the caller wanted a step, not whether we can hardware step
6642 the target. Mark all threads that we intend to run as running,
6643 unless we're calling an inferior function.
6644 (normal_stop): If the thread is running an infcall, don't finish
6646 * target.c (target_resume): Don't mark threads as running here.
6648 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6650 * serial.c (_initialize_serial): Remove support for
6651 the "set remotebaud" and "show remotebaud" commands.
6652 * NEWS: Add entry documenting the removal of that command.
6654 2014-05-28 Yao Qi <yao@codesourcery.com>
6656 * charset.c: Fix typo in comments.
6658 2014-05-27 Gary Benson <gbenson@redhat.com>
6660 * utils.c (internal_vproblem): Prompt for a bug report.
6662 2014-05-26 Andy Wingo <wingo@igalia.com>
6664 * guile/scm-arch.c (arscm_mark_arch_smob):
6665 * guile/scm-block.c (bkscm_mark_block_smob)
6666 (bkscm_mark_block_syms_progress_smob):
6667 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6668 * guile/scm-exception.c (exscm_mark_exception_smob):
6669 * guile/scm-frame.c (frscm_mark_frame_smob):
6670 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6671 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6672 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6673 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6674 (ppscm_mark_pretty_printer_worker_smob):
6675 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6676 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6677 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6678 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6680 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6683 2014-05-26 Andy Wingo <wingo@igalia.com>
6684 Doug Evans <xdje42@gmail.com>
6686 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6687 empty_base_class. All uses updated.
6688 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6689 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6691 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6692 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6693 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6694 (gdbscm_gsmob_has_property_p, add_property_name)
6695 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6696 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6697 (gdb-object-has-property?, gdb-object-properties): Remove.
6698 (gdb-object-kind): Renamed from gsmob-kind.
6700 2014-05-26 Andy Wingo <wingo@igalia.com>
6702 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6703 * configure: Regenerate.
6705 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6707 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6709 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6711 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6712 (replay_memory_access_read_only, replay_memory_access_read_write)
6713 (replay_memory_access_types, replay_memory_access)
6714 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6715 (cmd_set_record_btrace, cmd_show_record_btrace)
6716 (cmd_show_replay_memory_access): New.
6717 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6718 (record_btrace_remove_breakpoint): Replace
6719 record_btrace_allow_memory_access with replay_memory_access.
6720 (_initialize_record_btrace): Add commands.
6721 * NEWS: Announce it.
6723 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6725 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6727 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6729 * MAINTAINERS (Write After Approval): Move self back from
6732 2014-05-22 Pedro Alves <palves@redhat.com>
6734 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6735 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6736 (disable_randomization, enum exec_direction_kind)
6737 (execution_direction, stop_registers, start_remote)
6738 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6739 (wait_for_inferior, normal_stop, get_last_target_status)
6740 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6741 (insert_step_resume_breakpoint_at_sal)
6742 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6743 (set_step_info, print_stop_event, signal_stop_state)
6744 (signal_print_state, signal_pass_state, signal_stop_update)
6745 (signal_print_update, signal_pass_update)
6746 (update_signals_program_target, clear_exit_convenience_vars)
6747 (displaced_step_dump_bytes, update_observer_mode)
6748 (signal_catch_update, gdb_signal_from_command): Move
6750 * infrun.h: ... to this new file.
6751 * amd64-tdep.c: Include infrun.h.
6752 * annotate.c: Include infrun.h.
6753 * arch-utils.c: Include infrun.h.
6754 * arm-linux-tdep.c: Include infrun.h.
6755 * arm-tdep.c: Include infrun.h.
6756 * break-catch-sig.c: Include infrun.h.
6757 * breakpoint.c: Include infrun.h.
6758 * common/agent.c: Include infrun.h instead of inferior.h.
6759 * corelow.c: Include infrun.h.
6760 * event-top.c: Include infrun.h.
6761 * go32-nat.c: Include infrun.h.
6762 * i386-tdep.c: Include infrun.h.
6763 * inf-loop.c: Include infrun.h.
6764 * infcall.c: Include infrun.h.
6765 * infcmd.c: Include infrun.h.
6766 * infrun.c: Include infrun.h.
6767 * linux-fork.c: Include infrun.h.
6768 * linux-nat.c: Include infrun.h.
6769 * linux-thread-db.c: Include infrun.h.
6770 * monitor.c: Include infrun.h.
6771 * nto-tdep.c: Include infrun.h.
6772 * procfs.c: Include infrun.h.
6773 * record-btrace.c: Include infrun.h.
6774 * record-full.c: Include infrun.h.
6775 * remote-m32r-sdi.c: Include infrun.h.
6776 * remote-mips.c: Include infrun.h.
6777 * remote-notif.c: Include infrun.h.
6778 * remote-sim.c: Include infrun.h.
6779 * remote.c: Include infrun.h.
6780 * reverse.c: Include infrun.h.
6781 * rs6000-tdep.c: Include infrun.h.
6782 * s390-linux-tdep.c: Include infrun.h.
6783 * solib-irix.c: Include infrun.h.
6784 * solib-osf.c: Include infrun.h.
6785 * solib-svr4.c: Include infrun.h.
6786 * target.c: Include infrun.h.
6787 * top.c: Include infrun.h.
6788 * windows-nat.c: Include infrun.h.
6789 * mi/mi-interp.c: Include infrun.h.
6790 * mi/mi-main.c: Include infrun.h.
6791 * python/py-threadevent.c: Include infrun.h.
6793 2014-05-22 Pedro Alves <palves@redhat.com>
6795 * infrun.c (handle_inferior_event): Store the exit code for
6796 --return-child-result here, instead of ...
6797 (print_exited_reason): ... here.
6799 2014-05-21 Pedro Alves <palves@redhat.com>
6802 * gdbthread.h (struct thread_control_state): New field
6804 * infrun.c (follow_fork): Copy the new thread control field to the
6806 (clear_proceed_status_thread): Clear the new thread control field.
6807 (proceed): Set the new thread control field.
6808 * interps.h (command_interp): Declare.
6809 * interps.c (command_interpreter): New global.
6810 (command_interp): New function.
6811 (interp_exec): Set `command_interpreter' while here.
6812 * cli-out.c (cli_uiout_dtor): New function.
6813 (cli_ui_out_impl): Install it.
6814 * mi/mi-interp.c: Include cli-out.h.
6815 (mi_cmd_interpreter_exec): Add comment.
6816 (restore_current_uiout_cleanup): New function.
6817 (ui_out_free_cleanup): New function.
6818 (mi_on_normal_stop): If finishing an execution command started by
6819 a CLI command, or any kind of breakpoint-like event triggered,
6820 print the stop event to the output (CLI) stream.
6821 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6823 2014-05-21 Pedro Alves <palves@redhat.com>
6825 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6826 current source line having changed.
6827 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6828 * infrun.c (normal_stop): Adjust call to
6829 set_current_sal_from_frame.
6830 * source.c (clear_lines_listed_range): New function.
6831 (set_current_source_symtab_and_line, identify_source_line): Clear
6832 the lines listed range.
6833 (line_info): Handle the first "info line" after the current source
6834 line having changed.
6835 * stack.c (print_stack_frame): Remove center handling.
6836 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6839 2014-05-21 Pedro Alves <palves@redhat.com>
6841 * inf-child.c (inf_child_mourn_inferior): New function.
6842 * inf-child.h (inf_child_mourn_inferior): New declaration.
6843 * darwin-nat.c (darwin_mourn_inferior): Use
6844 inf_child_mourn_inferior.
6845 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6846 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6847 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6848 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6849 * windows-nat.c (windows_mourn_inferior): Likewise.
6851 2014-05-21 Doug Evans <xdje42@gmail.com>
6853 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6855 2014-05-21 Doug Evans <xdje42@gmail.com>
6857 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6858 (gdbscm_out_of_range_error): Ditto.
6859 (gdbscm_memory_error): Ditto.
6860 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6861 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6862 (gdbscm_out_of_range_error): Update.
6863 (gdbscm_memory_error): Update.
6864 (gdbscm_scm_to_target_string_unsafe): Delete.
6866 2014-05-21 Pedro Alves <palves@redhat.com>
6868 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6870 (inf_child_open_target): New function.
6871 (inf_child_open): Use inf_child_open_target to push the target
6872 instead of erroring out.
6873 (inf_child_disconnect, inf_child_close)
6874 (inf_child_maybe_unpush_target): New functions.
6875 (inf_child_target): Install inf_child_disconnect and
6876 inf_child_close. Store a pointer to the returned object.
6877 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6879 * target.c (auto_connect_native_target): New global.
6880 (show_default_run_target): New function.
6881 (find_default_run_target): Return NULL if automatically connecting
6882 to the native target is disabled.
6883 (_initialize_target): Install set/show auto-connect-native-target.
6884 * NEWS: Mention "set auto-connect-native-target", and "target
6886 * linux-nat.c (super_close): New global.
6887 (linux_nat_close): Call super_close.
6888 (linux_nat_add_target): Store a pointer to the base class's
6890 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6891 inf_child_maybe_unpush.
6892 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6894 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6895 the inferior. Use inf_child_maybe_unpush_target.
6896 (inf_ttrace_attach): Don't push the target if it is already
6898 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6899 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6900 after mourning the inferior. Use inf_child_maybe_unpush_target.
6901 (darwin_attach_pid): Don't push the target if it is already
6903 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6904 mourning the inferior. Use inf_child_maybe_unpush_target.
6905 (gnu_detach): Use inf_child_maybe_unpush_target.
6906 * go32-nat.c (go32_create_inferior): Don't push the target if it
6908 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6909 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6910 (procfs_open): Rename to ...
6911 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6912 comments. Can target_preopen before changing node. Call
6913 inf_child_open_target to push the target explicitly.
6914 (procfs_attach): Don't push the target if it is already pushed.
6915 (procfs_detach): Use inf_child_maybe_unpush_target.
6916 (procfs_create_inferior): Don't push the target if it is already
6918 (nto_native_ops): New global.
6919 (procfs_open): Reimplement.
6920 (procfs_native_open): New function.
6921 (init_procfs_targets): Install procfs_native_open as to_open of
6922 "target native". Store a pointer to the "native" target in
6924 * procfs.c (procfs_attach): Don't push the target if it is already
6926 (procfs_detach): Use inf_child_maybe_unpush_target.
6927 (procfs_mourn_inferior): Only unpush the target after mourning the
6928 inferior. Use inf_child_maybe_unpush_target.
6929 (procfs_init_inferior): Don't push the target if it is already
6931 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6932 if it is already pushed.
6934 2014-05-21 Pedro Alves <palves@redhat.com>
6936 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6937 and "procfs" targets are now called "native" instead.
6939 2014-05-21 Pedro Alves <palves@redhat.com>
6941 * go32-nat.c (go32_open): Delete.
6942 (go32_target): Don't override the to_open method.
6944 2014-05-21 Pedro Alves <palves@redhat.com>
6946 * nto-procfs.c (procfs_can_run): New function.
6947 (nto_procfs_ops): New global.
6948 (init_procfs_targets): New, based on procfs_target. Install
6949 "target native" in addition to "target procfs".
6950 (_initialize_procfs): Call init_procfs_targets instead of adding
6953 2014-05-21 Pedro Alves <palves@redhat.com>
6955 * windows-nat.c (windows_target): Don't override to_shortname,
6956 to_longname or to_doc.
6958 2014-05-21 Pedro Alves <palves@redhat.com>
6960 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6963 2014-05-21 Pedro Alves <palves@redhat.com>
6965 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6966 to_shortname, to_longname or to_doc.
6968 2014-05-21 Pedro Alves <palves@redhat.com>
6970 * go32-nat.c (go32_target): Don't override to_shortname,
6971 to_longname or to_doc.
6973 2014-05-21 Pedro Alves <palves@redhat.com>
6975 * inf-child.c (inf_child_open): Remove mention of "child".
6976 (inf_child_target): Rename target to "native" instead of "child".
6978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6980 * Makefile.in (SFILES): Delete "regset.c".
6981 (COMMON_OBS): Delete "regset.o".
6983 * regset.h (regset_alloc): Delete prototype.
6985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6987 * sparc-linux-tdep.c (sparc32_linux_gregset)
6988 (sparc32_linux_fpregset): New static regset structures.
6989 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6990 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6992 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6993 (sparc64_linux_fpregset): New static regset structures.
6994 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6995 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6996 New static regset structures.
6997 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6998 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6999 New static regset structures.
7000 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7001 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7002 New static regset structures.
7003 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7004 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7005 New static regset structures.
7006 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7008 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7010 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7011 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7012 register maps ("regmaps") from "*regset" to "*regmap". Do this
7013 for all regmap types and variables.
7014 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7015 (sparc32_linux_supply_core_gregset)
7016 (sparc32_linux_collect_core_gregset)
7017 (sparc32_linux_supply_core_fpregset)
7018 (sparc32_linux_collect_core_fpregset): Likewise.
7019 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7020 (sparc_gregmap, sparc_fpregmap): ... these.
7021 (sparc_supply_gregset, sparc_collect_gregset)
7022 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7023 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7024 (_initialize_sparc_nat): Rename regmaps.
7025 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7026 (sparc_gregmap, sparc_fpregmap): ... these.
7027 (sparc_supply_gregset, sparc_collect_gregset)
7028 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7029 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7031 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7032 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7034 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7036 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7037 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7038 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7040 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7041 (sparc32_bsd_fpregset): Rename to...
7042 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7043 (sparc32_bsd_fpregmap): ... these.
7044 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7045 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7046 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7047 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7048 (struct sparc_gregmap, struct sparc_fpregmap)
7049 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7050 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7051 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7052 (sparc32_supply_regset, sparc32_collect_gregset)
7053 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7055 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7056 (sparc64_linux_ptrace_gregmap): ... this.
7057 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7058 (_initialize_sparc64_linux_nat): Rename regmaps.
7059 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7060 (sparc64_linux_core_gregmap): ... this.
7061 (sparc64_linux_supply_core_gregset)
7062 (sparc64_linux_collect_core_gregset)
7063 (sparc64_linux_supply_core_fpregset)
7064 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7065 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7066 (sparc64_sol2_fpregset): Rename to...
7067 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7068 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7069 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7071 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7072 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7073 (sparc64_bsd_fpregset): Rename to...
7074 (struct sparc_gregmap, sparc64_sol2_gregmap)
7075 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7076 (sparc64_bsd_fpregmap): ... these.
7077 (sparc64_supply_gregset, sparc64_collect_gregset)
7078 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7080 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7081 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7082 (sparc64fbsd_gregmap): ... this.
7083 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7084 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7086 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7087 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7088 (sparc64nbsd_collect_fpregset): Likewise.
7089 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7090 (sparc64nbsd_gregmap): ... this.
7091 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7093 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7094 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7095 (sparc64obsd_gregmap): ... this.
7096 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7098 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7099 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7100 (sparc32nbsd_gregmap): ... this.
7101 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7104 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7106 * score-tdep.c (score7_linux_gregset): New static regset
7108 (score7_linux_regset_from_core_section): Remove dynamic regset
7110 (score_gdbarch_init): Drop allocation of tdep structure.
7111 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7113 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7115 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7117 (am33_regset_from_core_section): Remove dynamic regset
7120 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7122 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7123 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7125 (mips_linux_regset_from_core_section): Remove dynamic regset
7127 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7128 'gregset64', 'fpregset', and 'fpregset64'.
7129 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7130 deleted tdep fields.
7132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7134 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7136 (amd64_regset_from_core_section): Remove dynamic regset
7138 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7140 (amd64obsd_regset_from_core_section): Remove dynamic regset
7142 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7144 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7145 x86-common regset supply function.
7146 * i386-tdep.c (i386_collect_gregset): Make static.
7147 (i386_gregset): New global regset structure.
7148 (i386_fpregset, i386_xstateregset): New static regset structures.
7149 (i386_regset_from_core_section): Remove dynamic regset
7151 (i386_gdbarch_init): Remove initialization of tdep fields
7152 'gregset', 'fpregset', and 'xstateregset'.
7153 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7154 'fpregset', and 'xstateregset'.
7155 (i386_collect_gregset): Remove prototype.
7156 (i386_gregset): New declaration.
7157 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7159 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7162 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7164 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7165 (arm_linux_vfpregset): New static regset structures.
7166 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7168 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7169 and 'vfpregset' fields.
7171 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7173 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7174 (aarch64_linux_fpregset): New static regset structures.
7175 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7176 of regset structures.
7177 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7180 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7182 * regset.h (struct regset): Remove gdbarch field.
7183 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7184 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7185 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7187 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7188 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7189 (ppc32_linux_vsxregset): Likewise.
7190 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7191 via the regcache instead of the regset.
7192 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7193 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7194 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7195 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7198 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7200 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7201 Constify structures.
7202 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7203 (alphanbsd_aout_gregset): Likewise.
7204 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7205 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7207 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7208 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7210 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7211 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7212 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7213 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7214 * m88k-tdep.c (m88k_gregset): Likewise.
7215 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7216 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7217 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7218 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7219 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7220 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7221 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7222 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7223 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7225 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7226 * sh-tdep.h (sh_corefile_gregset): Likewise.
7227 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7228 * vax-tdep.c (vax_gregset): Likewise.
7230 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7232 Fix TLS access for -static -pthread.
7233 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7234 (try_thread_db_load_1): Initialize it.
7235 (thread_db_get_thread_local_address): Call it if LM is zero.
7236 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7237 * target.h (struct target_ops) (to_get_thread_local_address): Add
7238 load_module_addr comment.
7240 2014-05-21 Pedro Alves <palves@redhat.com>
7242 * dcache.c (dcache_read_memory_partial): If reading the cache line
7243 fails, fallback to reading just the memory the caller wanted.
7245 2014-05-20 Doug Evans <dje@google.com>
7247 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7248 instead of get_current_arch.
7250 2014-05-20 Pedro Alves <palves@redhat.com>
7252 * NEWS: Mention that compare-sections now works with all targets.
7254 * remote.c (PACKET_qCRC): New enum value.
7255 (remote_verify_memory): Don't send qCRC if the target has no
7256 execution. Use packet_support/packet_ok. If the target doesn't
7257 support the qCRC packet, fallback to a deep memory copy.
7258 (compare_sections_command): Say "target image" instead of "remote
7260 (_initialize_remote): Add PACKET_qCRC to the list of config
7261 packets that have no associated command. Extend comment.
7262 * target.c (simple_verify_memory, default_verify_memory): New
7264 * target.h (struct target_ops) <to_verify_memory>: Default to
7265 default_verify_memory.
7266 (simple_verify_memory): New declaration.
7267 * target-delegates.c: Regenerate.
7269 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7271 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7273 2014-05-20 Hui Zhu <hui@codesourcery.com>
7274 Yao Qi <yao@codesourcery.com>
7277 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7278 and change address of sp and pc.
7280 2014-05-19 Tom Tromey <tromey@redhat.com>
7282 * gdbtypes.c (rank_function): Use XNEWVEC.
7283 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7285 2014-05-19 Doug Evans <dje@google.com>
7287 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7288 build_type_unit_groups and moved closer to only caller. Remove
7289 arguments. All references updated. Remove outdated .gdb_index
7291 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7292 build_type_psymtabs_1.
7294 2014-05-19 Doug Evans <dje@google.com>
7296 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7297 n_type_unit_groups, all_type_unit_groups. All uses removed.
7298 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7299 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7300 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7301 (add_type_unit_group_to_table): Delete.
7303 2014-05-19 Doug Evans <dje@google.com>
7305 * eval.c (evaluate_subexp_standard): Add some comments.
7307 2014-05-17 Doug Evans <xdje42@gmail.com>
7309 * progspace.c (remove_program_space): Delete, unused.
7310 * progspace.h (remove_program_space): Ditto.
7312 2014-05-17 Doug Evans <xdje42@gmail.com>
7314 * inferior.c (prune_inferiors): Fix comment.
7315 (remove_inferior_command): Call prune_program_spaces.
7317 2014-05-16 Doug Evans <dje@google.com>
7319 New command line option -D.
7321 * main.c (set_gdb_data_directory): New function.
7322 (captured_main): Recognize -D. Flag error for --data-directory "".
7323 Call set_gdb_data_directory.
7324 (print_gdb_help): Print --data-directory, -D.
7325 * main.h (set_gdb_data_directory): Declare.
7326 * top.c (staged_gdb_datadir): New static global.
7327 (set_gdb_datadir): Call set_gdb_data_directory
7328 (show_gdb_datadir): New function.
7329 (init_main): Update init of data-directory parameter.
7331 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7333 Import the "dirfd" gnulib module.
7334 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7335 * gnulib/aclocal.m4: Update.
7336 * gnulib/config.in: Update.
7337 * gnulib/configure: Update.
7338 * gnulib/import/Makefile.am: Update.
7339 * gnulib/import/Makefile.in: Update.
7340 * gnulib/import/dirfd.c: New.
7341 * gnulib/import/m4/dirfd.m4: New.
7342 * gnulib/import/m4/gnulib-cache.m4: Update.
7343 * gnulib/import/m4/gnulib-comp.m4: Update.
7345 2014-05-16 Pierre Muller <muller@sourceware.org>
7346 Yao Qi <yao@codesourcery.com>
7348 * valprint.c (print_wchar): Move the code on checking whether
7349 W is a printable wide char to the default branch of switch
7350 statement below. Call wchar_printable instead of gdb_iswprint.
7352 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7354 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7355 ldr.w and ldrd instructions.
7357 2014-05-15 Doug Evans <dje@google.com>
7359 * dwarf2read.c (read_structure_type): Delete outdated comments.
7361 2014-05-14 Tom Tromey <tromey@redhat.com>
7363 * macrocmd.c (print_macro_definition): Reindent.
7365 2014-05-13 Doug Evans <xdje42@gmail.com>
7367 * python/py-cmd.c (cmdpy_completer): Add comment.
7368 (completers): Make const.
7370 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7372 * infrun.c (resume): Remove should_resume (unused). Move up
7373 declaration of resume_ptid.
7375 2014-05-13 Tom Tromey <tromey@redhat.com>
7377 * language.h (unop_type_check): Remove.
7378 (binop_type_check): Don't declare.
7380 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7382 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7383 call to regcache_raw_collect.
7385 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7387 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7388 mi_console->quote as the quoting character.
7390 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7392 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7394 2014-04-29 Tom Tromey <tromey@redhat.com>
7396 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7397 "show debug varobj".
7399 2014-05-07 Kyle McMartin <kyle@redhat.com>
7401 Pushed by Joel Brobecker <brobecker@adacore.com>.
7402 * aarch64-tdep.c (aarch64_software_single_step): New function.
7403 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7404 with aarch64_software_single_step.
7406 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7410 2014-05-05 Keith Seitz <keiths@redhat.com>
7412 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7413 variable or history value is successfully parsed.
7415 2014-05-05 Yao Qi <yao@codesourcery.com>
7416 Pedro Alves <palves@redhat.com>
7418 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7419 address of blocks that intersects the requested range. Trim
7420 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7422 * ctf.c (ctf_xfer_partial): Likewise.
7424 2014-05-05 Yao Qi <yao@codesourcery.com>
7426 * printcmd.c (display_command): Remove the check to
7427 target_has_execution.
7429 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7431 * ppcobsd-nat.c: Include "obsd-nat.h".
7432 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7434 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7436 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7438 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7439 and 16-bit signed and unsigned arguments. Update comment.
7440 (stap_parse_probe_arguments): Extend code to handle such
7441 arguments. Use warning instead of complaint to notify about
7442 unrecognized bitness.
7444 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7446 PR breakpoints/16889
7447 * stap-probe.c (stap_parse_probe_arguments): Simplify
7448 check for non-prefixed probes (i.e., probes whose
7449 arguments do not start with "N@"). Always set the
7450 argument type to a sane value.
7452 2014-05-01 David Taylor <dtaylor@emc.com>
7454 * remote.c (compare_sections_command): Add -r option to compare
7455 all loadable read-only sections.
7457 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7459 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7460 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7462 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7463 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7464 Remove unused CORE_ADDR argument. Update all callers.
7466 2014-04-29 Pedro Alves <palves@redhat.com>
7468 * remote.c (struct packet_config) <detect>: Extend comment.
7469 (add_packet_config_cmd): Don't set the config's detect or support
7471 (init_all_packet_configs): Also initialize the config's 'detect'
7473 (reset_all_packet_configs_support): New function.
7474 (remote_open_1): Call reset_all_packet_configs_support instead of
7475 init_all_packet_configs.
7476 (_initialize_remote): Initialize all packet configs. Assert that
7477 all packets have an associated command, except a few known
7480 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7482 * dwarf2read.c (read_subrange_type): Handle dynamic
7483 DW_AT_lower_bound attributes.
7485 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7487 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7488 dynamic bounds before computing its upper bound.
7489 (ada_discrete_type_low_bound): Same as above with the lower bound.
7491 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7493 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7494 range types. Adjust the array handling implementation to
7495 take advantage of this change.
7496 (resolve_dynamic_range): New function, mostly extracted from
7497 resolve_dynamic_bounds.
7498 (resolve_dynamic_array): New function, mostly extracted from
7499 resolve_dynamic_bounds.
7500 (resolve_dynamic_bounds): Delete.
7501 (resolve_dynamic_type): Reimplement. Add handling of
7502 TYPE_CODE_RANGE types.
7504 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7506 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7507 handling of parallel ___XA types.
7509 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7511 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7512 unnecessary second call to static_unwrap_type.
7514 2014-04-27 Hui Zhu <hui@codesourcery.com>
7516 * stack.c (print_frame_info): Call do_gdb_disassembly with
7517 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7519 2014-04-26 Doug Evans <xdje42@gmail.com>
7521 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7523 2014-04-25 Pedro Alves <palves@redhat.com>
7526 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7527 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7528 and newline from built string.
7529 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7530 (linux_ptrace_attach_fail_reason): ... this.
7531 * linux-nat.c (linux_nat_attach): Adjust to use
7532 linux_ptrace_attach_fail_reason.
7534 2014-04-25 Pedro Alves <palves@redhat.com>
7536 * remote.c (struct remote_state): Remove multi_process_aware,
7537 non_stop_aware, cond_tracepoints, cond_breakpoints,
7538 breakpoint_commands, fast_tracepoints, static_tracepoints,
7539 install_in_trace, disconnected_tracing,
7540 enable_disable_tracepoints, string_tracing, and
7541 augmented_libraries_svr4_read fields.
7542 (remote_multi_process_p): Move further below in the file.
7543 (struct packet_config): Add comments.
7544 (update_packet_config): Delete function.
7545 (show_packet_config_cmd): Use packet_config_support.
7546 (add_packet_config_cmd): Use NULL as set callback.
7547 (packet_ok): "set remote foo-packet"-style commands no longer
7548 change config->supported -- adjust.
7549 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7550 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7551 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7552 (PACKET_QNonStop, PACKET_multiprocess_feature)
7553 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7554 (PACKET_DisconnectedTracing_feature)
7555 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7556 (set_remote_protocol_packet_cmd): Delete function.
7557 (packet_config_support, packet_support): New functions.
7558 (set_remote_protocol_Z_packet_cmd): Don't call
7559 update_packet_config.
7560 (remote_query_attached, remote_pass_signals)
7561 (remote_program_signals, remote_threads_info)
7562 (remote_threads_extra_info, remote_start_remote): Use
7564 (remote_start_remote): Use packet_config_support and
7566 (init_all_packet_configs): Set all packets to unknown support,
7567 instead of calling update_packet_config.
7568 (remote_check_symbols): Use packet_support.
7569 (remote_supported_packet): Unconditionally set the packet config's
7571 (remote_multi_process_feature, remote_non_stop_feature)
7572 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7573 (remote_breakpoint_commands_feature)
7574 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7575 (remote_install_in_trace_feature)
7576 (remote_disconnected_tracing_feature)
7577 (remote_enable_disable_tracepoint_feature)
7578 (remote_string_tracing_feature)
7579 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7580 (remote_protocol_features): Adjust to use remote_supported_packet
7581 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7582 "ConditionalTracepoints", "ConditionalBreakpoints",
7583 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7584 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7585 "EnableDisableTracepoints", and "tracenz".
7586 (remote_query_supported): Use packet_support.
7587 (remote_open_1): Adjust.
7588 (extended_remote_attach_1): Use packet_support. Switch on the
7589 result of packet_ok instead of checking whether the packet ended
7591 (remote_vcont_resume): Use packet_support.
7592 (remote_resume, remote_stop_ns, fetch_register_using_p)
7593 (remote_prepare_to_store, store_register_using_P)
7594 (check_binary_download, remote_write_bytes): Use packet_support.
7595 (remote_vkill): Use packet_support. Switch on the result of
7596 packet_ok instead of checking whether the packet ended up
7598 (extended_remote_supports_disable_randomization): Use
7600 (extended_remote_run): Switch on the result of packet_ok instead
7601 of checking whether the packet ended up disabled.
7602 (remote_insert_breakpoint, remote_remove_breakpoint)
7603 (remote_insert_watchpoint, remote_remove_watchpoint)
7604 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7606 (remote_search_memory): Use packet_config_support.
7607 (remote_get_thread_local_address, remote_get_tib_address)
7608 (remote_hostio_send_command, remote_can_execute_reverse): Use
7610 (remote_supports_cond_tracepoints)
7611 (remote_supports_cond_breakpoints)
7612 (remote_supports_fast_tracepoints)
7613 (remote_supports_static_tracepoints)
7614 (remote_supports_install_in_trace)
7615 (remote_supports_enable_disable_tracepoint)
7616 (remote_supports_string_tracing)
7617 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7618 the packet config says the feature is enabled or disabled.
7619 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7620 (remote_get_trace_status): Use packet_support.
7621 (remote_set_disconnected_tracing): Adjust to check whether the
7622 feature is enabled with packet_support.
7623 (remote_set_trace_buffer_size, remote_use_agent)
7624 (remote_can_use_agent, remote_supports_btrace): Use
7626 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7627 Use packet_config_support.
7628 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7629 the packet config says the feature is enabled or disabled.
7630 (set_range_stepping): Use packet_support.
7632 2014-04-25 Tom Tromey <tromey@redhat.com>
7634 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7637 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7639 * NEWS: Mention support for C99 variable length arrays.
7641 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7643 * ada-lang.c (standard_exc): Expand introductory comment.
7645 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7646 Walfred Tedeschi <walfred.tedeschi@intel.com>
7648 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7650 (amd64_linux_read_description): Add code to handle AVX512 xstate
7651 mask and return respective tdesc.
7652 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7653 and features/i386/x32-avx512-linux.c.
7654 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7655 (amd64_linux_core_read_description): Add code to handle AVX512
7656 xstate mask and return respective tdesc.
7657 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7658 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7660 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7661 (tdesc_amd64_avx512_linux): New prototype.
7662 (tdesc_x32_avx512_linux): Likewise.
7663 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7664 features/i386/x32-avx512.c.
7665 (amd64_ymm_avx512_names): New register names for pseudo
7667 (amd64_ymmh_avx512_names): New register names for raw registers
7669 (amd64_k_names): New register names for K registers.
7670 (amd64_zmmh_names): New register names for ZMM raw registers.
7671 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7672 (amd64_xmm_avx512_names): New register names for XMM16-31
7674 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7676 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7677 if feature is present.
7678 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7679 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7680 (AMD64_NUM_REGS): Adjust to new number of registers.
7681 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7682 registers supplied via XSTATE by AVX512 registers.
7683 (i386_linux_read_description): Add case for AVX512.
7684 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7685 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7686 (i386_linux_core_read_description): Add case for AVX512.
7687 (i386_linux_init_abi): Install supported register note section
7689 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7691 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7692 registers to be number of zmm7h + 1.
7693 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7694 * i386-tdep.c: Include features/i386/i386-avx512.c.
7695 (i386_zmm_names): Add ZMM pseudo register names array.
7696 (i386_zmmh_names): Add ZMM raw register names array.
7697 (i386_k_names): Add K raw register names array.
7698 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7699 registers. AVX512 has 16 more ZMM registers than there are YMM
7701 (i386_zmmh_regnum_p): Add function to look up register number of
7703 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7704 (i386_k_regnum_p): Likewise for K raw registers.
7705 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7706 registers added by AVX512.
7707 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7708 registers added by AVX512.
7709 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7711 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7712 (i386_pseudo_register_name): Add ZMM pseudo registers.
7713 (i386_zmm_type): Construct and return vector registers type for ZMM
7715 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7716 ZMM0-31 pseudo registers and K registers.
7717 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7718 and YMM16-31 registers from register cache.
7719 (i386_pseudo_register_write): Add code to write K, ZMM and
7721 (i386_register_reggroup_p): Add code to include/exclude AVX512
7722 registers in/from respective register groups.
7723 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7724 registers if feature is present in xcr0.
7725 (i386_gdbarch_init): Add code to initialize AVX512 feature
7726 variables in tdep structure, wire in pseudo registers and call
7727 initialize_tdesc_i386_avx512.
7728 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7730 (i386_regnum): Add AVX512 registers.
7731 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7732 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7733 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7734 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7736 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7737 (i386_ymm_avx512_regnum_p): Likewise.
7738 (i386_k_regnum_p): Likewise.
7739 (i386_zmm_regnum_p): Likewise.
7740 (i386_zmmh_regnum_p): Likewise.
7741 * i387-tdep.c : Update year in copyright notice.
7742 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7744 (XSAVE_YMM_AVX512_ADDR): New macro.
7745 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7747 (XSAVE_XMM_AVX512_ADDR): New macro.
7748 (xsave_avx512_k_offset): New table for K register offsets in
7750 (XSAVE_AVX512_K_ADDR): New macro.
7751 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7753 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7754 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7756 (i387_collect_xsave): Add code to collect AVX512 registers from
7758 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7759 of XMM16-31 registers.
7760 (I387_NUM_K_REGS): New define for number of K registers.
7761 (I387_K0_REGNUM): New define for K0 register number.
7762 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7763 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7764 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7766 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7767 (I387_XMM16_REGNUM): New define for XMM16 register number.
7768 (I387_YMM0_REGNUM): New define for YMM0 register number.
7769 (I387_KEND_REGNUM): New define for last K register number.
7770 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7771 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7773 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7775 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7777 * features/Makefile: Add AVX512 related files.
7778 * features/i386/32bit-avx512.xml: New file.
7779 * features/i386/64bit-avx512.xml: Likewise.
7780 * features/i386/amd64-avx512-linux.c: Likewise.
7781 * features/i386/amd64-avx512-linux.xml: Likewise.
7782 * features/i386/amd64-avx512.c: Likewise.
7783 * features/i386/amd64-avx512.xml: Likewise.
7784 * features/i386/i386-avx512-linux.c: Likewise.
7785 * features/i386/i386-avx512-linux.xml: Likewise.
7786 * features/i386/i386-avx512.c: Likewise.
7787 * features/i386/i386-avx512.xml: Likewise.
7788 * features/i386/x32-avx512-linux.c: Likewise.
7789 * features/i386/x32-avx512-linux.xml: Likewise.
7790 * features/i386/x32-avx512.c: Likewise.
7791 * features/i386/x32-avx512.xml: Likewise.
7792 * regformats/i386/amd64-avx512-linux.dat: New file.
7793 * regformats/i386/amd64-avx512.dat: Likewise.
7794 * regformats/i386/i386-avx512-linux.dat: Likewise.
7795 * regformats/i386/i386-avx512.dat: Likewise.
7796 * regformats/i386/x32-avx512-linux.dat: Likewise.
7797 * regformats/i386/x32-avx512.dat: Likewise.
7798 * NEWS: Add note about new support for AVX512.
7801 2014-04-23 Pedro Alves <palves@redhat.com>
7803 * breakpoint.c (insert_bp_location): Tolerate errors if the
7804 breakpoint is set in a user-loaded objfile.
7805 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7806 location is marked shlib_disabled. If the breakpoint is set in a
7807 user-loaded objfile is a GDB-side memory breakpoint, validate it
7808 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7809 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7811 * mem-break.c (memory_validate_breakpoint): New function.
7812 * objfiles.c (userloaded_objfile_contains_address_p): New
7814 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7815 * target.h (memory_validate_breakpoint): New declaration.
7817 2014-04-23 Pedro Alves <palves@redhat.com>
7819 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7820 the breakpoint is set in a shared library, only suppress
7821 errors for software breakpoints, not hardware breakpoints.
7823 2014-04-22 Pedro Alves <palves@redhat.com>
7825 * infrun.c (schedlock_applies): New function, factored out from
7826 find_thread_needs_step_over.
7827 (find_thread_needs_step_over): Use it.
7828 (switch_back_to_stepped_thread): Always clear trap_expected if the
7829 step over is finished. Return early if scheduler locking applies.
7830 Look for the stepping thread and a potential step-over thread with
7832 (currently_stepping_or_nexting_callback): Delete.
7834 2014-04-22 Nick Clifton <nickc@redhat.com>
7836 * NEWS: Mention that ARM sim now supports tracing.
7838 2014-04-22 Yao Qi <yao@codesourcery.com>
7840 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7842 * tracefile.c (tracefile_fetch_registers): ... it. New
7844 * tracefile.h (tracefile_fetch_registers): Declare.
7845 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7846 tracefile_fetch_registers.
7848 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7851 * windows-nat.c (thread_rec): Don't display a warning when
7852 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7853 fails for any reason, set th->suspended to -1, so that we don't
7854 try to resume such a thread. Also, don't return NULL in these
7855 cases, to avoid completely ruin the session due to "PC register is
7856 not available" error.
7857 (do_windows_fetch_inferior_registers): Check errors in
7858 GetThreadContext call.
7859 (windows_continue): Accept an additional argument KILLED; if not
7860 zero, ignore errors in the SetThreadContext call, since the
7861 inferior was killed and is shutting down.
7862 (windows_resume, get_windows_debug_event)
7863 (windows_create_inferior, windows_mourn_inferior)
7864 (windows_kill_inferior): All callers of windows_continue changed
7865 to adjust to its new calling sequence.
7867 2014-04-19 Yao Qi <yao@codesourcery.com>
7869 * ctf.c (ctf_open): Call post_create_inferior.
7871 2014-04-19 Yao Qi <yao@codesourcery.com>
7873 * ctf.c (handle_id): New static variable.
7874 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7875 value. Get the declaration of event "register" and get length
7876 of field "contents".
7878 2014-04-19 Yao Qi <yao@codesourcery.com>
7880 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7882 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7884 * valops.c (oload_method_static): Remove unnecessary argument
7885 METHOD. Update all callers.
7887 2014-04-18 Pedro alves <palves@redhat.com>
7888 Tom Tromey <tromey@redhat.com>
7891 * frame.c (get_prev_frame_1): Rename to ...
7892 (get_prev_frame_always): ... this, and make extern. Adjust.
7893 (skip_artificial_frames): Use get_prev_frame_always.
7894 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7895 (get_frame_unwind_stop_reason): Adjust to rename.
7896 * frame.h (get_prev_frame_always): Declare.
7897 * inline-frame.c: Include frame.h.
7898 (inline_frame_this_id): Use get_prev_frame_always.
7900 2014-04-18 Tristan Gingold <gingold@adacore.com>
7902 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7903 code by using bfd_mach_o_get_base_address.
7905 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7907 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7908 (spu_ax_pseudo_register_collect): New function.
7909 (spu_ax_pseudo_register_push_stack): Likewise.
7910 (spu_dwarf_reg_to_regnum): Likewise.
7911 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7913 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7915 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7916 Replace FRAME argument with FRAME_ID.
7917 * gdbarch.c, gdbarch.h: Regenerate.
7918 * findvar.c (default_value_from_register): Add GDBARCH argument;
7919 replace FRAME by FRAME_ID. No longer call get_frame_id.
7920 (value_from_register): Update call to gdbarch_value_from_register.
7921 * value.h (default_value_from_register): Update prototype.
7922 * s390-linux-tdep.c (s390_value_from_register): Update interface
7923 and call to default_value_from_register.
7924 * spu-tdep.c (spu_value_from_register): Likewise.
7926 * findvar.c (address_from_register): Remove TYPE argument.
7927 Do not call value_from_register; use gdbarch_value_from_register
7928 with null_frame_id instead.
7929 * value.h (address_from_register): Update prototype.
7930 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7931 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7932 address_from_register interface change.
7934 2014-04-17 Yao Qi <yao@codesourcery.com>
7936 * gdbtypes.h: Update comments to link to types and macros'
7939 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7941 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7943 2014-04-16 Keith Seitz <keiths@redhat.com>
7946 * dwarf2read.c (skip_one_die): Check that all relative-offset
7947 sibling DIEs fall within range of the current reader's buffer.
7948 (read_partial_die): Likewise.
7950 2014-04-16 Keith Seitz <keiths@redhat.com>
7953 * cp-namespace.c (lookup_symbol_file): If the type name of
7954 `this' is NULL, return immediately.
7956 2014-04-14 Keith Seitz <keiths@redhat.com>
7959 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7960 from symbol_matches_domain in symtab.c. All local callers
7961 of symbol_matches_domain updated.
7962 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7963 search STRUCT_DOMAIN.
7964 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7965 independently. standard_lookup will do that automatically.
7966 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7967 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7968 (cp_lookup_symbol_in_namespace): Likewise.
7969 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7970 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7971 may return a STRUCT_DOMAIN match.
7972 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7973 * cp-support.c: Include language.h.
7974 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7976 * psymtab.c (match_partial_symbol): Compare the requested
7977 domain with the symbol's domain directly.
7978 (lookup_partial_symbol): Likewise.
7979 * symtab.c (lookup_symbol_in_language): Explain when/why
7980 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7981 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7982 appropriate languages.
7983 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7984 and moved to ada-lang.c
7985 (lookup_block_symbol): Explain that this function only returns
7986 symbol matching the requested DOMAIN.
7987 Compare the requested domain with the symbol's domain directly.
7988 (iterate_over_symbols): Compare the requested domain with the
7989 symbol's domain directly.
7990 * symtab.h (symbol_matches_domain): Remove.
7992 2014-04-14 Tom Tromey <tromey@redhat.com>
7995 * c-exp.y (type_aggregate_p): New function.
7996 (qualified_name, classify_inner_name): Use it.
7997 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7998 and TYPE_TARGET_TYPE of an enum type.
7999 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8001 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8002 handle TYPE_DECLARED_CLASS.
8003 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8005 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8006 * valops.c (enum_constant_from_type): New function.
8007 (value_aggregate_elt): Use it.
8008 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8011 2014-04-14 Tom Tromey <tromey@redhat.com>
8013 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8014 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8016 * value.h (value_aggregate_elt): Update.
8018 2014-04-14 Tom Tromey <tromey@redhat.com>
8020 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8022 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8024 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8025 (evaluate_subexp_standard): Pass noside argument.
8026 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8027 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8028 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8029 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8030 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8032 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8034 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8035 points to a constant blob.
8037 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8039 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8040 property and store it as the high bound and flag the range accordingly.
8041 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8042 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8043 * gdbtypes.h (enum range_flags): New enum.
8044 (struct range_bounds): Add flags member.
8046 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8048 * c-typeprint.c (c_type_print_varspec_suffix): Added
8049 check for not yet resolved high bound. If unresolved, print
8050 "variable length" string to the console instead of random
8053 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8055 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8057 (ada_template_to_fixed_record_type_1): Likewise.
8058 (ada_to_fixed_type_1): Likewise.
8059 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8060 (cp_print_value): Likewise.
8061 * d-valprint.c (dynamic_array_type): Likewise.
8062 * findvar.c (address_of_variable): Likewise.
8063 * jv-valprint.c (java_value_print): Likewise.
8064 * valops.c (value_ind): Likewise.
8065 * value.c (coerce_ref): Likewise.
8067 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8069 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8070 value and retrieve the dynamic type size.
8072 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8074 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8075 passed to sizeof is dynamic evaluate the argument to compute the length.
8077 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8078 Joel Brobecker <brobecker@adacore.com>
8080 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8081 (dwarf2_evaluate_property): New function.
8082 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8083 * dwarf2read.c (attr_to_dynamic_prop): New function.
8084 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8086 * gdbtypes.c: Include dwarf2loc.h.
8087 (is_dynamic_type): New function.
8088 (resolve_dynamic_type): New function.
8089 (resolve_dynamic_bounds): New function.
8090 (get_type_length): New function.
8091 (check_typedef): Use get_type_length to compute type length.
8092 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8093 (TYPE_LOW_BOUND_KIND): New macro.
8094 (is_dynamic_type): New function prototype.
8095 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8096 to resolve dynamic properties of the type. Update comment.
8097 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8099 2014-04-14 Richard Henderson <rth@redhat.com>
8101 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8103 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8104 Doug Evans <xdje42@gmail.com>
8106 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8107 dereference TYPE_CODE_REF values.
8109 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8111 Revert the following changes due to regressions:
8113 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8114 (dwarf2_evaluate_property): New function.
8115 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8116 * dwarf2read.c (attr_to_dynamic_prop): New function.
8117 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8119 * gdbtypes.c: Include dwarf2loc.h.
8120 (is_dynamic_type): New function.
8121 (resolve_dynamic_type): New function.
8122 (resolve_dynamic_bounds): New function.
8123 (get_type_length): New function.
8124 (check_typedef): Use get_type_length to compute type length.
8125 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8126 (TYPE_LOW_BOUND_KIND): New macro.
8127 (is_dynamic_type): New function prototype.
8128 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8129 to resolve dynamic properties of the type. Update comment.
8130 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8132 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8133 passed to sizeof is dynamic evaluate the argument to compute the length.
8135 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8136 value and retrieve the dynamic type size.
8138 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8139 (ada_template_to_fixed_record_type_1): Likewise.
8140 (ada_to_fixed_type_1): Likewise.
8141 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8142 (cp_print_value): Likewise.
8143 * d-valprint.c (dynamic_array_type): Likewise.
8144 * eval.c (evaluate_subexp_with_coercion): Likewise.
8145 * findvar.c (address_of_variable): Likewise.
8146 * jv-valprint.c (java_value_print): Likewise.
8147 * valops.c (value_ind): Likewise.
8148 * value.c (coerce_ref): Likewise.
8150 * c-typeprint.c (c_type_print_varspec_suffix): Added
8151 check for not yet resolved high bound. If unresolved, print
8152 "variable length" string to the console instead of random
8155 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8156 property and store it as the high bound and flag the range accordingly.
8157 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8158 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8159 * gdbtypes.h (enum range_flags): New enum.
8160 (struct range_bounds): Add flags member.
8162 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8163 points to a constant blob.
8165 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8166 (evaluate_subexp_standard): Pass noside argument.
8167 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8168 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8169 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8170 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8171 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8173 2014-04-11 Keith Seitz <keiths@redhat.com>
8176 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8177 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8180 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8182 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8183 (evaluate_subexp_standard): Pass noside argument.
8184 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8185 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8186 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8187 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8188 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8190 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8192 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8193 points to a constant blob.
8195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8197 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8198 property and store it as the high bound and flag the range accordingly.
8199 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8200 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8201 * gdbtypes.h (enum range_flags): New enum.
8202 (struct range_bounds): Add flags member.
8204 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8206 * c-typeprint.c (c_type_print_varspec_suffix): Added
8207 check for not yet resolved high bound. If unresolved, print
8208 "variable length" string to the console instead of random
8211 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8213 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8214 (ada_template_to_fixed_record_type_1): Likewise.
8215 (ada_to_fixed_type_1): Likewise.
8216 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8217 (cp_print_value): Likewise.
8218 * d-valprint.c (dynamic_array_type): Likewise.
8219 * eval.c (evaluate_subexp_with_coercion): Likewise.
8220 * findvar.c (address_of_variable): Likewise.
8221 * jv-valprint.c (java_value_print): Likewise.
8222 * valops.c (value_ind): Likewise.
8223 * value.c (coerce_ref): Likewise.
8225 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8227 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8228 value and retrieve the dynamic type size.
8230 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8232 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8233 passed to sizeof is dynamic evaluate the argument to compute the length.
8235 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8237 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8238 (dwarf2_evaluate_property): New function.
8239 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8240 * dwarf2read.c (attr_to_dynamic_prop): New function.
8241 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8243 * gdbtypes.c: Include dwarf2loc.h.
8244 (is_dynamic_type): New function.
8245 (resolve_dynamic_type): New function.
8246 (resolve_dynamic_bounds): New function.
8247 (get_type_length): New function.
8248 (check_typedef): Use get_type_length to compute type length.
8249 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8250 (TYPE_LOW_BOUND_KIND): New macro.
8251 (is_dynamic_type): New function prototype.
8252 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8253 to resolve dynamic properties of the type. Update comment.
8254 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8256 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8258 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8259 declaring high/low bounds and change uses accordingly. Call
8260 create_range_type instead of create_static_range_type.
8261 * gdbtypes.c (create_range_type): New function.
8262 (create_range_type): Convert bounds into struct bound_prop and pass
8263 them to create_range_type.
8264 * gdbtypes.h (struct bound_prop): New struct.
8265 (create_range_type): New function prototype.
8266 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8267 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8268 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8270 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8272 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8274 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8275 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8276 * ada-lang.c: All uses of create_range_type updated.
8277 * coffread.c: All uses of create_range_type updated.
8278 * dwarf2read.c: All uses of create_range_type updated.
8279 * f-exp.y: All uses of create_range_type updated.
8280 * m2-valprint.c: All uses of create_range_type updated.
8281 * mdebugread.c: All uses of create_range_type updated.
8282 * stabsread.c: All uses of create_range_type updated.
8283 * valops.c: All uses of create_range_type updated.
8284 * valprint.c: All uses of create_range_type updated.
8286 2014-04-10 Pedro Alves <palves@redhat.com>
8288 * breakpoint.c (single_step_breakpoints)
8289 (single_step_gdbarch): Move up in the file.
8290 (one_breakpoint_xfer_memory): New function, factored out from ...
8291 (breakpoint_xfer_memory): ... here. Also process single-step
8294 2014-04-09 Tristan Gingold <gingold@adacore.com>
8296 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8298 (darwin_decode_exception_message): Free port only after use.
8300 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8302 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8303 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8304 when setting the size of call_length.
8306 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8308 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8309 dereference TYPE_CODE_REF values.
8311 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8313 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8314 end of warning message.
8316 2014-04-03 Doug Evans <dje@google.com>
8318 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8319 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8321 2014-04-02 Alan Modra <amodra@gmail.com>
8323 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8324 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8325 (struct symbol_file_add_from_memory_args): Add size field.
8326 (find_vdso_size): New function.
8327 (add_vsyscall_page): Attempt to find vdso size.
8329 2014-04-01 Doug Evans <dje@google.com>
8331 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8333 2014-04-01 Tristan Gingold <gingold@adacore.com>
8335 * darwin-nat.c (darwin_encode_reply): Add prototype.
8336 (darwin_decode_exception_message): Reply to unknown inferiors.
8337 (darwin_decode_message): Handle message by id. Ignore message
8338 to unknown inferior.
8339 (darwin_wait): Discard unknown messages, add debug trace.
8341 2014-03-31 Doug Evans <dje@google.com>
8343 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8346 2014-03-31 Doug Evans <dje@google.com>
8348 New option "set print symbol-loading".
8350 * solib.c (solib_read_symbols): Only print symbol loading messages
8352 (solib_add): If symbol loading is in "brief" mode, notify user
8353 symbols are being loaded.
8354 (reload_shared_libraries_1): Ditto.
8355 * symfile.c (print_symbol_loading_off): New static global.
8356 (print_symbol_loading_brief): New static global.
8357 (print_symbol_loading_full): New static global.
8358 (print_symbol_loading_enums): New static global.
8359 (print_symbol_loading): New static global.
8360 (print_symbol_loading_p): New function.
8361 (symbol_file_add_with_addrs): Only print symbol loading messages
8363 (_initialize_symfile): Register "print symbol-loading" set/show
8365 * symfile.h (print_symbol_loading_p): Declare.
8367 2014-03-30 Doug Evans <xdje42@gmail.com>
8369 * infrun.c (set_last_target_status): New function.
8370 (handle_inferior_event): Call it.
8372 2014-03-30 Doug Evans <xdje42@gmail.com>
8374 * inferior.h (enum stop_kind): Improve comment.
8376 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8378 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8379 a reference, strip the reference layer before calling
8380 the lang_ops value_has_mutated callback.
8382 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8384 Remove some globals from our parser.
8385 * language.c (unk_lang_parser): Add "struct parser_state"
8387 * language.h (struct language_defn) <la_parser>: Likewise.
8388 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8389 (initialize_expout): Add "struct parser_state" argument.
8390 Rewrite function to use the parser state.
8391 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8392 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8393 write_exp_elt_longcst, write_exp_elt_dblcst,
8394 write_exp_elt_decfloatcst, write_exp_elt_type,
8395 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8396 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8397 write_dollar_variable): Likewise.
8398 (parse_exp_in_context_1): Use parser state.
8399 (insert_type_address_space): Add "struct parser_state" argument.
8401 (increase_expout_size): New function.
8402 * parser-defs.h: Forward declare "struct language_defn" and
8403 "struct parser_state".
8404 (expout, expout_size, expout_ptr): Remove extern declarations.
8405 (parse_gdbarch, parse_language): Rewrite macro declarations to
8406 accept the parser state.
8407 (struct parser_state): New struct.
8408 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8409 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8410 write_exp_elt_decfloatcst, write_exp_elt_type,
8411 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8412 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8413 write_exp_msymbol, write_dollar_variable,
8414 mark_struct_expression, insert_type_address_space): Add "struct
8415 parser_state" argument.
8416 (increase_expout_size): New function.
8417 * utils.c (do_clear_parser_state): New function.
8418 (make_cleanup_clear_parser_state): Likewise.
8419 * utils.h (make_cleanup_clear_parser_state): New function
8421 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8422 Update calls to write_exp* in order to pass the parser state.
8423 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8424 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8425 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8426 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8427 * stap-probe.c (stap_parse_register_operand): Likewise.
8428 (stap_parse_single_operand): Likewise.
8429 (stap_parse_argument_1): Likewise.
8430 (stap_parse_argument): Use parser state.
8431 * stap-probe.h: Include "parser-defs.h".
8432 (struct stap_parse_info) <pstate>: New field.
8433 * c-exp.y (parse_type): Rewrite to use parser state.
8434 (yyparse): Redefine to c_parse_internal.
8435 (pstate): New global variable.
8436 (parse_number): Add "struct parser_state" argument.
8437 (write_destructor_name): Likewise.
8438 (type_exp): Update calls to write_exp* and similars in order to
8440 (exp1, exp, variable, qualified_name, space_identifier,
8441 typename, typebase): Likewise.
8442 (write_destructor_name, parse_number, lex_one_token,
8443 classify_name, classify_inner_name, c_parse): Add "struct
8444 parser_state" argument. Update function to use parser state.
8445 * c-lang.h: Forward declare "struct parser_state".
8446 (c_parse): Add "struct parser_state" argument.
8447 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8448 (yyparse): Redefine macro to ada_parse_internal.
8449 (pstate): New variable.
8450 (write_int, write_object_renaming, write_var_or_type,
8451 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8452 type_int, type_long, type_long_long, type_float, type_double,
8453 type_long_double, type_char, type_boolean, type_system_address):
8454 Add "struct parser_state" argument.
8455 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8456 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8457 var_or_type, aggregate, aggregate_component_list,
8458 positional_list, others, component_group,
8459 component_associations): Update calls to write_exp* and similar
8460 functions in order to use parser state.
8461 (ada_parse, write_var_from_sym, write_int,
8462 write_exp_op_with_string, write_object_renaming,
8463 find_primitive_type, write_selectors, write_ambiguous_var,
8464 write_var_or_type, write_name_assoc, type_int, type_long,
8465 type_long_long, type_float, type_double, type_long_double,
8466 type_char, type_boolean, type_system_address): Add "struct
8467 parser_state" argument. Adjust function to use parser state.
8468 * ada-lang.c (parse): Likewise.
8469 * ada-lang.h: Forward declare "struct parser_state".
8470 (ada_parse): Add "struct parser_state" argument.
8471 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8472 calls to both functions.
8473 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8475 (yyparse): Redefine macro to f_parse_internal.
8476 (pstate): New variable.
8477 (parse_number): Add "struct parser_state" argument.
8478 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8479 and similars in order to use parser state.
8480 (parse_number): Adjust code to use parser state.
8482 (f_parse): New function.
8483 * f-lang.h: Forward declare "struct parser_state".
8484 (f_parse): Add "struct parser_state" argument.
8485 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8487 (yyparse): Redefine macro for java_parse_internal.
8488 (pstate): New variable.
8489 (push_expression_name, push_expression_name, insert_exp): Add
8490 "struct parser_state" argument.
8491 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8492 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8493 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8494 PostIncrementExpression, PostDecrementExpression,
8495 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8496 UnaryExpressionNotPlusMinus, CastExpression,
8497 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8498 RelationalExpression, EqualityExpression, AndExpression,
8499 ExclusiveOrExpression, InclusiveOrExpression,
8500 ConditionalAndExpression, ConditionalOrExpression,
8501 ConditionalExpression, Assignment, LeftHandSide): Update
8502 calls to write_exp* and similars in order to use parser state.
8503 (parse_number): Ajust code to use parser state.
8505 (java_parse): New function.
8506 (push_variable): Add "struct parser_state" argument. Adjust
8507 code to user parser state.
8508 (push_fieldnames, push_qualified_expression_name,
8509 push_expression_name, insert_exp): Likewise.
8510 * jv-lang.h: Forward declare "struct parser_state".
8511 (java_parse): Add "struct parser_state" argument.
8512 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8514 (yyparse): Redefine macro to m2_parse_internal.
8515 (pstate): New variable.
8516 (type_exp, exp, fblock, variable, type): Update calls to
8517 write_exp* and similars to use parser state.
8519 (m2_parse): New function.
8520 * m2-lang.h: Forward declare "struct parser_state".
8521 (m2_parse): Add "struct parser_state" argument.
8522 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8523 * objc-lang.h: Forward declare "struct parser_state".
8524 (end_msglist): Add "struct parser_state" argument.
8525 * p-exp.y (parse_type): Rewrite macro to use parser state.
8526 (yyparse): Redefine macro to pascal_parse_internal.
8527 (pstate): New variable.
8528 (parse_number): Add "struct parser_state" argument.
8529 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8530 write_exp* and similars in order to use parser state.
8531 (parse_number, yylex): Adjust code to use parser state.
8532 (pascal_parse): New function.
8533 * p-lang.h: Forward declare "struct parser_state".
8534 (pascal_parse): Add "struct parser_state" argument.
8535 * go-exp.y (parse_type): Rewrite macro to use parser state.
8536 (yyparse): Redefine macro to go_parse_internal.
8537 (pstate): New variable.
8538 (parse_number): Add "struct parser_state" argument.
8539 (type_exp, exp1, exp, variable, type): Update calls to
8540 write_exp* and similars in order to use parser state.
8541 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8542 to use parser state.
8543 (go_parse): Likewise.
8544 * go-lang.h: Forward declare "struct parser_state".
8545 (go_parse): Add "struct parser_state" argument.
8547 2014-03-27 Doug Evans <dje@google.com>
8549 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8551 2014-03-27 Doug Evans <dje@google.com>
8553 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8554 Remove argument abbrev_section. All callers updated.
8556 2014-03-27 Doug Evans <dje@google.com>
8558 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8559 addr_base, ranges_base.
8561 2014-03-26 Keith Seitz <keiths@redhat.com>
8563 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8564 types, not VAR_DOMAIN.
8566 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8568 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8570 * features/nios2-linux.c: Regenerated.
8571 * features/nios2.c: Regenerated.
8573 2014-03-25 Pedro Alves <palves@redhat.com>
8575 * cli/cli-script.c (script_from_file): Force the interpreter to
8578 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8580 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8581 small stack allocation.
8583 2014-03-24 Tristan Gingold <gingold@adacore.com>
8585 * darwin-nat.c (exc_server): Remove unused prototype.
8586 (darwin_dump_message): Correctly display data on x86_64.
8587 (darwin_encode_reply): Fix style.
8588 Add comments and fix indentation.
8590 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8592 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8594 2014-03-22 Doug Evans <xdje42@gmail.com>
8596 * infcmd.c: Whitespace fixes.
8597 (interrupt_command): Merge two function comments into one.
8599 2014-03-22 Doug Evans <xdje42@gmail.com>
8601 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8604 2014-03-22 Yao Qi <yao@codesourcery.com>
8606 * remote.c (target_read_live_memory): Remove.
8607 (memory_xfer_live_readonly_partial): Rename it to
8608 remote_xfer_live_readonly_partial. Remove argument 'object'.
8609 All callers updated. Call remote_read_bytes_1
8610 instead of target_read_live_memory.
8611 * tracepoint.c (set_traceframe_number): Remove.
8612 (make_cleanup_restore_traceframe_number): Likewise .
8613 * tracepoint.h (set_traceframe_number): Remove declaration.
8614 (make_cleanup_restore_traceframe_number): Likewise.
8616 2014-03-22 Yao Qi <yao@codesourcery.com>
8618 * remote.c (remote_read_bytes): Move code on reading from the
8620 (remote_read_bytes_1): ... here. New function.
8622 2014-03-22 Yao Qi <yao@codesourcery.com>
8624 * ctf.c (ctf_xfer_partial): Check the return value of
8625 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8626 return TARGET_XFER_UNAVAILABLE.
8627 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8628 * target.c (target_read_live_memory): Move it to remote.c.
8629 (memory_xfer_live_readonly_partial): Likewise.
8630 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8631 * remote.c (target_read_live_memory): Moved from target.c.
8632 (memory_xfer_live_readonly_partial): Likewise.
8633 (remote_read_bytes): Factored out from
8634 memory_xfer_partial_1.
8636 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8638 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8641 2014-03-21 Pedro Alves <palves@redhat.com>
8643 * infrun.c (normal_stop): Extend comment.
8645 2014-03-21 Hui Zhu <hui@codesourcery.com>
8646 Pedro Alves <palves@redhat.com>
8648 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8650 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8651 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8652 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8654 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8656 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8657 `z' formatted output modifier.
8659 2014-03-20 Tom Tromey <tromey@redhat.com>
8660 Sergio Durigan Junior <sergiodj@redhat.com>
8662 * probe.c (parse_probes): Turn assert into an ordinary error.
8663 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8664 exceptions when parsing probes. Rearrange the code for clarity.
8666 2014-03-20 Tom Tromey <tromey@redhat.com>
8669 * top.c (execute_command): Only dispatch events if the command
8672 2014-03-20 Tom Tromey <tromey@redhat.com>
8675 * infcall.c: Include event-top.h.
8676 (run_inferior_call): Call async_disable_stdin if needed.
8678 2014-03-20 Pedro Alves <palves@redhat.com>
8680 * infrun.c (prepare_to_proceed): Delete.
8681 (thread_still_needs_step_over): New function.
8682 (find_thread_needs_step_over): New function.
8683 (proceed): If the current thread needs a step-over, set its
8684 steping_over_breakpoint flag. Adjust to use
8685 find_thread_needs_step_over instead of prepare_to_proceed.
8686 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8687 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8689 (switch_back_to_stepped_thread): Step over breakpoints of all
8690 threads not the stepping thread, before switching back to the
8693 2014-03-20 Pedro Alves <palves@redhat.com>
8695 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8697 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8698 * infrun.c (saved_singlestep_ptid)
8699 (stepping_past_singlestep_breakpoint): Delete.
8700 (resume): Remove stepping_past_singlestep_breakpoint handling.
8701 (proceed): Store the prev_pc of the stepping thread too.
8702 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8704 (enum infwait_states): Delete infwait_thread_hop_state.
8705 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8707 (handle_inferior_event): Adjust.
8708 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8709 handling and the thread-hop code. Before removing single-step
8710 breakpoints, check whether the thread hit a single-step breakpoint
8711 of another thread. If it did, the trap is not a random signal.
8712 (switch_back_to_stepped_thread): If the event thread hit a
8713 single-step breakpoint, unblock it before switching to the
8714 stepping thread. Handle the case of the stepped thread having
8716 (keep_going): Handle the case of the current thread moving past a
8717 single-step breakpoint.
8719 2014-03-20 Pedro Alves <palves@redhat.com>
8722 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8723 are being stepped over.
8724 (breakpoint_address_match): Make extern.
8725 * breakpoint.h (breakpoint_address_match): New declaration.
8726 * inferior.h (stepping_past_instruction_at): New declaration.
8727 * infrun.c (struct step_over_info): New type.
8728 (step_over_info): New global.
8729 (set_step_over_info, clear_step_over_info)
8730 (stepping_past_instruction_at): New functions.
8731 (handle_inferior_event): Clear the step-over info when
8732 trap_expected is cleared.
8733 (resume): Remove now stale comment.
8734 (clear_proceed_status): Clear step-over info.
8735 (proceed): Adjust step-over handling to set or clear the step-over
8736 info instead of removing all breakpoints.
8737 (handle_signal_stop): When setting up a thread-hop, don't remove
8739 (stop_stepping): Clear step-over info.
8740 (keep_going): Adjust step-over handling to set or clear step-over
8741 info and then always inserting breakpoints, instead of removing
8742 all breakpoints when stepping over one.
8744 2014-03-20 Pedro Alves <palves@redhat.com>
8746 * infrun.c (previous_inferior_ptid): Adjust comment.
8747 (deferred_step_ptid): Delete.
8748 (infrun_thread_ptid_changed, prepare_to_proceed)
8749 (init_wait_for_inferior): Adjust.
8750 (handle_signal_stop): Delete deferred_step_ptid handling.
8752 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8755 * defs.h (sync_quit_force_run): New declaration.
8756 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8757 * event-top.c (async_sigterm_handler): New declaration.
8758 (async_sigterm_token): New variable.
8759 (async_init_signals): Create also async_sigterm_token.
8760 (async_sigterm_handler): New function.
8761 (sync_quit_force_run): New variable.
8762 (handle_sigterm): Replace quit_force call by other calls.
8763 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8765 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8767 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8768 offset into SPE pseudo registers.
8770 2014-03-18 Pedro Alves <palves@redhat.com>
8773 * inferior.h (print_stop_event): Declare.
8774 * infrun.c (print_stop_event): New, factored out from ...
8775 (normal_stop): ... this.
8776 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8777 of bpstat_print/print_stack_frame.
8779 2014-03-17 Tom Tromey <tromey@redhat.com>
8781 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8783 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8785 * ada-lang.c (decode_constrained_packed_array): Perform a
8786 minimal coercion for reference with coerce_ref instead of
8789 2014-03-17 Tristan Gingold <gingold@adacore.com>
8791 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8792 (darwin_solib_create_inferior_hook): Emit a warning if version
8795 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8797 * python/py-value.c (get_field_flag): Cast flag_name argument to
8798 PyObject_GetAttrString to support Python 2.4.
8800 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8802 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8803 (Global Maintainers): Remove Jan Kratochvil.
8805 2014-03-14 Pedro Alves <palves@redhat.com>
8807 * inferior.h (terminal_ours_for_output): Rename to ...
8808 (child_terminal_ours_for_output): ... this.
8809 (terminal_save_ours): Rename to ...
8810 (child_terminal_save_ours): ... this.
8811 (terminal_ours): Rename to ...
8812 (child_terminal_ours): ... this.
8813 (terminal_inferior): Rename to ...
8814 (child_terminal_inferior): ... this.
8815 (terminal_init_inferior): Rename to ...
8816 (child_terminal_init_inferior): ... this.
8817 (terminal_init_inferior_with_pgrp): Rename to ...
8818 (child_terminal_init_inferior_with_pgrp): ... this.
8819 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8820 (child_terminal_init_with_pgrp): ... this.
8821 (terminal_save_ours): Rename to ...
8822 (child_terminal_save_ours): ... this.
8823 (terminal_init_inferior): Rename to ...
8824 (child_terminal_init): ... this. Adjust.
8825 (terminal_inferior): Rename to ...
8826 (child_terminal_inferior): ... this.
8827 (terminal_ours_for_output): Rename to ...
8828 (child_terminal_ours_for_output): ... this. Adjust.
8829 (terminal_ours): Rename to ...
8830 (child_terminal_ours): ... this.
8831 (terminal_ours_1): Rename to ...
8832 (child_terminal_ours_1): ... this. Adjust.
8833 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8834 * windows-nat.c (do_initial_windows_stuff): Adjust.
8835 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8836 (gnu_terminal_init): ... this. Adjust.
8837 (gnu_target): Adjust.
8838 * inf-child.c (inf_child_target): Adjust.
8840 2014-03-13 Doug Evans <xdje42@gmail.com>
8843 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8846 2014-03-13 Doug Evans <xdje42@gmail.com>
8848 * value.c (record_latest_value): Call release_value_or_incref
8849 instead of release_value.
8851 2014-03-13 Pedro Alves <palves@redhat.com>
8853 * procfs.c (procfs_target): Don't override to_shortname,
8854 to_longname or to_doc.
8856 2014-03-13 Pedro Alves <palves@redhat.com>
8858 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8859 Unix in user visible strings.
8861 2014-03-12 Stan Shebs <stan@codesourcery.com>
8863 * gdbtypes.h: Annotate comments for Doxygen, add a page
8864 block comment with some general info.
8866 2014-03-12 Pedro Alves <palves@redhat.com>
8868 * infcmd.c (prepare_execution_command): New function, factored out
8869 from several execution commands.
8870 (run_command_1, continue_command, step_1, jump_command)
8871 (signal_command, until_command, advance_command, finish_command)
8872 (attach_command): Use prepare_execution_command.
8874 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8876 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8879 (struct arm_linux_thread_points): Removed.
8880 (struct arm_linux_process_info): New.
8881 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8882 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8883 (arm_linux_find_breakpoints_by_tid): Removed.
8884 (struct arch_lwp_info): New.
8885 (arm_linux_find_process_pid): New functions.
8886 (arm_linux_add_process): New functions.
8887 (arm_linux_process_info_get): New functions.
8888 (arm_linux_forget_process): New function.
8889 (arm_linux_get_debug_reg_state): New function.
8890 (struct update_registers_data): New.
8891 (update_registers_callback): New function.
8892 (arm_linux_insert_hw_breakpoint1): Updated.
8893 (arm_linux_remove_hw_breakpoint1): Updated.
8894 (arm_linux_insert_hw_breakpoint): Updated.
8895 (arm_linux_remove_hw_breakpoint): Updated.
8896 (arm_linux_insert_watchpoint): Updated.
8897 (arm_linux_remove_watchpoint): Updated.
8898 (arm_linux_new_thread): Updated.
8899 (arm_linux_prepare_to_resume): New function.
8900 (arm_linux_new_fork): New function.
8901 (_initialize_arm_linux_nat): Updated.
8903 2014-03-12 Pedro Alves <palves@redhat.com>
8905 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8907 2014-03-12 Tom Tromey <tromey@redhat.com>
8909 * inf-child.c (return_zero): New function.
8910 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8911 * aix-thread.c (aix_thread_inferior_created): New function.
8912 (aix_thread_attach): Remove.
8913 (init_aix_thread_ops): Don't set to_attach.
8914 (_initialize_aix_thread): Register inferior_created observer.
8915 * corelow.c (init_core_ops): Don't set to_attach or
8917 * exec.c (init_exec_ops): Don't set to_attach or
8919 * infcmd.c (run_command_1): Use find_run_target. Make direct
8921 (attach_command): Use find_attach_target. Make direct target
8923 * record-btrace.c (init_record_btrace_ops): Don't set
8925 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8927 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8928 set to_create_inferior.
8929 * target.c (complete_target_initialization): Add assertion.
8930 (target_create_inferior): Remove.
8931 (find_default_attach, find_default_create_inferior): Remove.
8932 (find_attach_target, find_run_target): New functions.
8933 (find_default_is_async_p, find_default_can_async_p)
8934 (target_supports_non_stop, target_attach): Remove.
8935 (init_dummy_target): Don't set to_create_inferior or
8936 to_supports_non_stop.
8937 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8938 TARGET_DEFAULT_FUNC.
8939 <to_create_inferior>: Add comment.
8940 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8941 TARGET_DEFAULT_RETURN.
8942 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8943 (find_attach_target, find_run_target): Declare.
8944 (target_create_inferior): Remove.
8945 (target_has_execution_1): Update comment.
8946 (target_supports_non_stop): Remove.
8947 * target-delegates.c: Rebuild.
8949 2014-03-12 Pedro Alves <palves@redhat.com>
8951 * inf-child.h: Update comment to not mention Unix.
8953 2014-03-12 Pedro Alves <palves@redhat.com>
8955 * inf-child.c: Update top comment to not mention Unix. Add
8956 generic comment describing how this target is meant to be used.
8957 (inf_child_post_attach, inf_child_post_startup_inferior)
8958 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8961 2014-03-12 Pedro Alves <palves@redhat.com>
8963 * nto-procfs.c: Include inf-child.h.
8964 (procfs_ops): Delete global.
8965 (procfs_can_run): Delete method.
8966 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8967 target pointer instead of referencing procfs_ops.
8968 (procfs_prepare_to_store): Delete.
8969 (init_procfs_ops): Delete function.
8970 (procfs_target): New function, based on init_procfs_ops, but
8971 inherit inf_child_target.
8972 (_initialize_procfs): Use procfs_target.
8974 2014-03-12 Pedro Alves <palves@redhat.com>
8976 * windows-nat.c: Include inf-child.h.
8977 (windows_ops): Delete global.
8978 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8980 (init_windows_ops): Delete function.
8981 (windows_target): New function, based on init_windows_ops, but
8982 inherit inf_child_target.
8983 (_initialize_windows_nat): Use windows_target. Install x86
8984 specific target methods here.
8986 2014-03-10 Doug Evans <xdje42@gmail.com>
8988 * guile/guile.c (call_initialize_gdb_module): New function.
8989 (initialize_guile): Replace call to scm_init_guile with call to
8992 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8994 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8995 in call to TYPE_CODE macro.
8997 2014-03-10 Jerome Guitton <guitton@adacore.com>
8999 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9000 Resolve tagged types to full view.
9002 2014-03-10 Hui Zhu <hui@codesourcery.com>
9004 * target.h (target_insert_breakpoint): Remove "hardware" from its
9007 2014-03-07 Doug Evans <dje@google.com>
9009 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9011 2014-03-07 Doug Evans <dje@google.com>
9013 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9014 Remove unused local comp_dir_attr. Assert exactly one of
9015 stub_comp_unit_die, stub_comp_dir is non-NULL.
9017 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9019 * target.h (complete_target_initialization, add_target):
9022 2014-03-07 Pedro Alves <palves@redhat.com>
9024 * go32-nat.c: Include inf-child.h.
9025 (go32_ops): Delete global.
9026 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9028 (go32_create_inferior): Push the passed in target pointer instead
9029 of referencing go32_ops.
9030 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9031 (go32_target): New function, based on init_go32_ops, but inherit
9033 (_initialize_go32_nat): Use go32_target. Move parts of
9036 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9038 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9039 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9040 SYMBOL_VALUE_ADDRESS.
9041 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9043 2014-03-06 Yao Qi <yao@codesourcery.com>
9045 * breakpoint.c (get_tracepoint_by_number): Remove argument
9046 optional_p. All callers updated. Adjust comments. Update
9048 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9050 2014-03-06 Yao Qi <yao@codesourcery.com>
9052 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9053 early if get_number returns zero. Use 'p' instead of 'args'.
9055 2014-03-06 Yao Qi <yao@codesourcery.com>
9057 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9060 2014-03-06 Yao Qi <yao@codesourcery.com>
9062 PR breakpoints/16508
9063 * tracepoint.c (check_trace_running): New function.
9064 (trace_find_command): Move code to check_trace_running and
9065 call check_trace_running.
9066 (trace_find_pc_command): Likewise.
9067 (trace_find_tracepoint_command): Likewise.
9068 (trace_find_line_command): Likewise.
9069 (trace_find_range_command): Likewise.
9070 * tracepoint.h (check_trace_running): Likewise.
9071 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9073 2014-03-06 Yao Qi <yao@codesourcery.com>
9075 * target.h (struct target_ops) <to_traceframe_info>: Use
9076 TARGET_DEFAULT_NORETURN (tcomplain ()).
9077 * target-delegates.c: Regenerated.
9079 2014-03-05 Pedro Alves <palves@redhat.com>
9082 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9083 void. Update comment.
9084 (dcache_xfer_memory): Delete.
9085 (dcache_read_memory_partial): New, based on the read bits of
9087 (dcache_update): Add status parameter. Use ULONGEST for len, and
9088 adjust. Discard cache lines if the reason for the update was
9090 * dcache.h (dcache_xfer_memory): Delete declaration.
9091 (dcache_read_memory_partial): New declaration.
9092 (dcache_update): Update prototype.
9093 * target.c (raw_memory_xfer_partial): Update the dcache here.
9094 (memory_xfer_partial_1): Don't handle dcache writes here.
9096 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9098 * remote-sim.c (gdbsim_load): Add const to prog.
9100 2014-03-03 Tom Tromey <tromey@redhat.com>
9102 * elfread.c (probe_key): Change to bfd_data.
9103 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9104 now per-BFD, not per-objfile.
9105 * stap-probe.c (stap_probe_destroy): Update comment.
9106 (handle_stap_probe): Allocate on the per-BFD obstack.
9108 2014-03-03 Tom Tromey <tromey@redhat.com>
9110 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9111 * breakpoint.c (create_longjmp_master_breakpoint): Use
9113 (add_location_to_breakpoint, bkpt_probe_insert_location)
9114 (bkpt_probe_remove_location): Update.
9115 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9116 * elfread.c (elf_symfile_relocate_probe): Remove.
9117 (elf_probe_fns): Update.
9118 (insert_exception_resume_breakpoint): Change type of "probe"
9119 parameter to bound_probe.
9120 (check_exception_resume): Update.
9121 * objfiles.c (objfile_relocate1): Don't relocate probes.
9122 * probe.c (bound_probe_s): New typedef.
9123 (parse_probes): Use get_probe_address. Set sal's objfile.
9124 (find_probe_by_pc): Return a bound_probe.
9125 (collect_probes): Return a VEC(bound_probe_s).
9126 (compare_probes): Update.
9127 (gen_ui_out_table_header_info): Change type of "probes"
9129 (info_probes_for_ops): Update.
9130 (get_probe_address): New function.
9131 (probe_safe_evaluate_at_pc): Update.
9132 * probe.h (struct probe_ops) <get_probe_address>: New field.
9133 <set_semaphore, clear_semaphore>: Add objfile parameter.
9134 (struct probe) <objfile>: Remove field.
9136 <address>: Update comment.
9137 (struct bound_probe): New.
9138 (find_probe_by_pc): Return a bound_probe.
9139 (get_probe_address): Declare.
9140 * solib-svr4.c (struct probe_and_action) <address>: New field.
9141 (hash_probe_and_action, equal_probe_and_action): Update.
9142 (register_solib_event_probe): Add address parameter.
9143 (solib_event_probe_at): Update.
9144 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9146 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9147 (stap_get_probe_address): New function.
9148 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9149 (compile_probe_arg): Update.
9150 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9152 (handle_stap_probe): Don't relocate the probe.
9153 (stap_relocate): Remove.
9154 (stap_gen_info_probes_table_values): Update.
9155 (stap_probe_ops): Remove stap_relocate.
9156 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9157 (debug_sym_probe_fns): Update.
9158 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9159 * symtab.c (init_sal): Use memset.
9160 * symtab.h (struct symtab_and_line) <objfile>: New field.
9161 * tracepoint.c (start_tracing, stop_tracing): Update.
9163 2014-03-03 Tom Tromey <tromey@redhat.com>
9165 * probe.h (parse_probes, find_probe_by_pc)
9166 (find_probes_in_objfile): Fix comments.
9168 2014-03-02 Doug Evans <xdje42@gmail.com>
9170 * infrun.c (handle_signal_stop): Replace test for
9171 TARGET_WAITKIND_STOPPED with an assert.
9173 2014-03-02 Doug Evans <xdje42@gmail.com>
9175 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9177 2014-03-02 Doug Evans <xdje42@gmail.com>
9179 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9181 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9183 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9185 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9187 * i386obsd-nat.c: Include "obsd-nat.h".
9188 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9190 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9192 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9194 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9196 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9198 * mips64obsd-nat.c: Include "obsd-nath".
9199 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9201 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9203 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9205 * amd64obsd-nat.c: Include "obsd-nat,h.
9206 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9208 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9210 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9212 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9213 (find_overload_match): Update call to find_oload_champ.
9214 (find_oload_champ_namespace_loop): Likewise
9216 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9218 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9220 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9221 * config/sparc/obsd64.mh: New file.
9222 * sparc64obsd-nat.c: New file.
9224 * obsd-nat.h: New file.
9225 * obsd-nat.c: New file.
9226 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9227 (ALLDEPFILES): Add obsd-nat.c.
9229 2014-02-28 Tom Tromey <tromey@redhat.com>
9231 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9232 * cli-out.h (cli_ui_out_impl): Now const.
9233 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9234 * ui-out.c (struct ui_out) <impl>: Now const.
9235 (default_ui_out_impl): Now const.
9236 (ui_out_new): Make 'impl' parameter const.
9237 * ui-out.h (ui_out_new): Update.
9239 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9241 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9243 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9245 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9247 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9249 Additional PR 8882 fix.
9250 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9252 2014-02-27 Pedro Alves <palves@redhat.com>
9254 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9257 2014-02-27 Pedro Alves <palves@redhat.com>
9260 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9261 * nat/linux-waitpid.c: Include string.h.
9262 (status_to_str): Moved here and made extern.
9263 * nat/linux-waitpid.h (status_to_str): New declaration.
9265 2014-02-27 Hui Zhu <hui@codesourcery.com>
9268 * infrun.c (ptid_match): Move ...
9269 * common/ptid.c (ptid_match): ... here.
9270 * inferior.h (ptid_match): Move ...
9271 * common/ptid.h (ptid_match): ... here.
9273 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9275 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9276 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9279 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9281 * obsd-tdep.c (obsd_auxv_parse): New function.
9282 (obsd_init_abi): Set auxv_parse.
9284 * gdbarch.sh (auxv_parse): New.
9285 * gdbarch.h: Regenerated.
9286 * gdbarch.c: Regenerated.
9287 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9289 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9291 * guile/scm-value.c (gdbscm_history_append_x): New function.
9292 (value_functions): Add it.
9294 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9296 * dwarf2read.c (attr_value_as_address): New function.
9297 (dwarf2_find_base_address, read_call_site_scope): Use
9298 attr_value_as_address in place of DW_ADDR.
9299 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9300 the low and high addresses. Slight rework of the handling
9301 of the high pc being a constant form, and limit it to
9302 DWARF verson 4 or higher.
9303 (dwarf2_record_block_ranges): Likewise.
9304 (read_partial_die): Likewise.
9305 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9307 2014-02-26 Tom Tromey <tromey@redhat.com>
9309 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9311 2014-02-26 Tom Tromey <tromey@redhat.com>
9313 * elfread.c (elf_read_minimal_symbols): Return early if
9314 minimal symbols have already been read. Add "ei" parameter.
9315 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9316 * minsyms.c (prim_record_minimal_symbol_full): Update.
9317 * objfiles.h (struct objstats) <n_minsyms>: Move...
9318 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9319 * symmisc.c (print_objfile_statistics): Update.
9321 2014-02-26 Tom Tromey <tromey@redhat.com>
9323 * elfread.c (elf_read_minimal_symbols): New function, from
9325 (elf_symfile_read): Call it.
9327 2014-02-26 Tom Tromey <tromey@redhat.com>
9329 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9330 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9331 (lookup_minimal_symbol_solib_trampoline)
9332 (lookup_minimal_symbol_by_pc_section_1)
9333 (lookup_minimal_symbol_and_objfile): Update.
9334 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9335 Don't allocate a minimal symbol if minsyms have already been read.
9336 (build_minimal_symbol_hash_tables): Update.
9337 (install_minimal_symbols): Do nothing if minsyms already read.
9338 Use the per-BFD obstack.
9339 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9340 * objfiles.c (allocate_objfile): Call
9341 terminate_minimal_symbol_table later.
9342 (have_minimal_symbols): Update.
9343 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9344 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9345 Move from struct objfile.
9346 <minsyms_read>: New field.
9347 (struct objfile) <msymbols, minimal_symbol_count,
9348 msymbol_hash, msymbol_demangled_hash>: Move.
9349 (ALL_OBJFILE_MSYMBOLS): Update.
9350 * symfile.c (read_symbols): Set minsyms_read.
9351 (reread_symbols): Update.
9352 * symmisc.c (dump_objfile, dump_msymbols): Update.
9354 2014-02-26 Tom Tromey <tromey@redhat.com>
9356 * minsyms.c (msymbols_sort): Remove.
9357 * minsyms.h (msymbols_sort): Remove.
9358 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9359 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9360 * elfread.c (elf_symtab_read): Don't add section offsets.
9361 * xcoffread.c (record_minimal_symbol): Don't add section offset
9362 to minimal symbol address.
9363 * somread.c (text_offset, data_offset): Remove.
9364 (som_symtab_read): Don't add section offsets to minimal symbol
9366 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9367 Don't add section offsets to minimal symbols.
9368 * coffread.c (coff_symtab_read): Don't add section offsets
9369 to minimal symbol addresses.
9370 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9371 to minimal symbol addresses.
9372 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9373 section offset to minimal symbol addresses.
9374 * mdebugread.c (parse_partial_symbols): Don't add section
9375 offset to minimal symbol addresses.
9376 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9377 offset to minimal symbol addresses.
9379 2014-02-26 Tom Tromey <tromey@redhat.com>
9381 * ada-lang.c (ada_main_name): Update.
9382 (ada_add_standard_exceptions): Update.
9383 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9384 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9385 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9386 * auxv.c (ld_so_xfer_auxv): Update.
9387 * avr-tdep.c (avr_scan_prologue): Update.
9388 * ax-gdb.c (gen_var_ref): Update.
9389 * blockframe.c (get_pc_function_start)
9390 (find_pc_partial_function_gnu_ifunc): Update.
9391 * breakpoint.c (create_overlay_event_breakpoint)
9392 (create_longjmp_master_breakpoint)
9393 (create_std_terminate_master_breakpoint)
9394 (create_exception_master_breakpoint): Update.
9395 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9396 * c-valprint.c (c_val_print): Update.
9397 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9398 * common/agent.c (agent_look_up_symbols): Update.
9399 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9400 * dwarf2loc.c (call_site_to_target_addr): Update.
9401 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9402 * elfread.c (elf_gnu_ifunc_record_cache)
9403 (elf_gnu_ifunc_resolve_by_got): Update.
9404 * findvar.c (default_read_var_value): Update.
9405 * frame.c (inside_main_func): Update.
9406 * frv-tdep.c (frv_frame_this_id): Update.
9407 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9408 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9410 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9411 (hppa_hpux_find_dummy_bpaddr): Update.
9412 * hppa-tdep.c (hppa_symbol_address): Update.
9413 * infcmd.c (until_next_command): Update.
9414 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9416 * linespec.c (minsym_found, add_minsym): Update.
9417 * linux-nat.c (get_signo): Update.
9418 * linux-thread-db.c (inferior_has_bug): Update.
9419 * m32c-tdep.c (m32c_return_value)
9420 (m32c_m16c_address_to_pointer): Update.
9421 * m32r-tdep.c (m32r_frame_this_id): Update.
9422 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9423 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9424 * maint.c (maintenance_translate_address): Update.
9425 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9426 (frob_address): New function.
9427 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9428 frob_address. Rename parameter to "pc_in".
9429 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9431 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9433 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9434 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9435 * objc-lang.c (find_objc_msgsend): Update.
9436 * objfiles.c (objfile_relocate1): Update.
9437 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9438 * p-valprint.c (pascal_val_print): Update.
9439 * parse.c (write_exp_msymbol): Update.
9440 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9441 (ppc_elfv2_skip_entrypoint): Update.
9442 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9443 * printcmd.c (build_address_symbolic, msym_info)
9444 (address_info): Update.
9445 * proc-service.c (ps_pglobal_lookup): Update.
9446 * psymtab.c (find_pc_sect_psymtab_closer)
9447 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9448 Change msymbol parameter to bound_minimal_symbol.
9449 * ravenscar-thread.c (get_running_thread_id): Update.
9450 * remote.c (remote_check_symbols): Update.
9451 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9453 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9454 * solib-dsbt.c (lm_base): Update.
9455 * solib-frv.c (lm_base, main_got): Update.
9456 * solib-irix.c (locate_base): Update.
9457 * solib-som.c (som_solib_create_inferior_hook)
9458 (link_map_start): Update.
9459 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9460 * solib-svr4.c (elf_locate_base, enable_break): Update.
9461 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9462 (flush_ea_cache): Update.
9463 * stabsread.c (define_symbol, scan_file_globals): Update.
9464 * stack.c (find_frame_funname): Update.
9465 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9466 (debug_qf_find_pc_sect_symtab): Update.
9467 * symfile.c (simple_read_overlay_table)
9468 (simple_overlay_update): Update.
9469 * symfile.h (struct quick_symbol_functions)
9470 <find_pc_sect_symtab>: Change type of msymbol to
9471 bound_minimal_symbol.
9472 * symmisc.c (dump_msymbols): Update.
9473 * symtab.c (find_pc_sect_symtab_via_partial)
9474 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9475 (search_symbols, print_msymbol_info): Update.
9476 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9477 (MSYMBOL_VALUE_ADDRESS): Redefine.
9478 (BMSYMBOL_VALUE_ADDRESS): New macro.
9479 * tracepoint.c (scope_info): Update.
9480 * tui/tui-disasm.c (tui_find_disassembly_address)
9481 (tui_get_begin_asm_address): Update.
9482 * valops.c (find_function_in_inferior): Update.
9483 * value.c (value_static_field, value_fn_field): Update.
9485 2014-02-26 Tom Tromey <tromey@redhat.com>
9487 * ada-lang.c (ada_update_initial_language): Update.
9488 (ada_main_name, ada_has_this_exception_support): Update.
9489 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9490 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9491 * arm-tdep.c (arm_skip_stub): Update.
9492 * auxv.c (ld_so_xfer_auxv): Update.
9493 * avr-tdep.c (avr_scan_prologue): Update.
9494 * ax-gdb.c (gen_var_ref): Update.
9495 * breakpoint.c (struct breakpoint_objfile_data)
9496 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9497 type to bound_minimal_symbol.
9498 (create_overlay_event_breakpoint)
9499 (create_longjmp_master_breakpoint)
9500 (create_std_terminate_master_breakpoint)
9501 (create_exception_master_breakpoint): Update.
9502 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9503 * c-exp.y (classify_name): Update.
9504 * coffread.c (coff_symfile_read): Update.
9505 * common/agent.c (agent_look_up_symbols): Update.
9506 * d-lang.c (d_main_name): Update.
9507 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9508 * dec-thread.c (enable_dec_thread): Update.
9509 * dwarf2loc.c (call_site_to_target_addr): Update.
9510 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9511 * eval.c (evaluate_subexp_standard): Update.
9512 * findvar.c (struct minsym_lookup_data) <result>: Change type
9513 to bound_minimal_symbol.
9515 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9516 * frame.c (inside_main_func): Update.
9517 * frv-tdep.c (frv_frame_this_id): Update.
9518 * gcore.c (call_target_sbrk): Update.
9519 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9520 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9522 * go-lang.c (go_main_name): Update.
9523 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9524 (hppa_hpux_find_import_stub_for_addr): Update.
9525 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9526 Update. Change return type.
9527 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9529 * jit.c (jit_breakpoint_re_set_internal): Update.
9530 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9532 * linux-nat.c (get_signo): Update.
9533 * linux-thread-db.c (inferior_has_bug): Update
9534 * m32c-tdep.c (m32c_return_value)
9535 (m32c_m16c_address_to_pointer): Update.
9536 * m32r-tdep.c (m32r_frame_this_id): Update.
9537 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9538 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9539 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9540 lookup_minimal_symbol. Change return type.
9541 (lookup_minimal_symbol): Remove.
9542 (lookup_bound_minimal_symbol): Update.
9543 (lookup_minimal_symbol_text): Change return type.
9544 (lookup_minimal_symbol_solib_trampoline): Change return type.
9545 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9546 (lookup_minimal_symbol_solib_trampoline): Change return type.
9547 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9548 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9549 (value_nsstring, find_imps): Update.
9550 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9551 * p-lang.c (pascal_main_name): Update.
9552 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9553 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9554 * proc-service.c (ps_pglobal_lookup): Update.
9555 * ravenscar-thread.c (get_running_thread_msymbol): Change
9557 (has_ravenscar_runtime, get_running_thread_id): Update.
9558 * remote.c (remote_check_symbols): Update.
9559 * sol-thread.c (ps_pglobal_lookup): Update.
9560 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9561 * solib-dsbt.c (lm_base): Update.
9562 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9564 * solib-irix.c (locate_base): Update.
9565 * solib-som.c (som_solib_create_inferior_hook)
9566 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9568 * solib-spu.c (spu_enable_break): Update.
9569 * solib-svr4.c (elf_locate_base, enable_break): Update.
9570 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9571 (flush_ea_cache): Update.
9572 * stabsread.c (define_symbol): Update.
9573 * symfile.c (simple_read_overlay_table): Update.
9574 * symtab.c (find_pc_sect_line): Update.
9575 * tracepoint.c (scope_info): Update.
9576 * tui-disasm.c (tui_get_begin_asm_address): Update.
9577 * value.c (value_static_field): Update.
9579 2014-02-26 Tom Tromey <tromey@redhat.com>
9581 * minsyms.c (prim_record_minimal_symbol_full): Use
9582 SET_MSYMBOL_VALUE_ADDRESS.
9583 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9584 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9585 SET_MSYMBOL_VALUE_ADDRESS.
9586 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9587 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9589 2014-02-26 Tom Tromey <tromey@redhat.com>
9591 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9592 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9593 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9594 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9595 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9596 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9597 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9598 * ada-lang.c (ada_main_name): Update.
9599 (ada_lookup_simple_minsym): Update.
9600 (ada_make_symbol_completion_list): Update.
9601 (ada_add_standard_exceptions): Update.
9602 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9603 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9604 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9605 * arm-tdep.c (skip_prologue_function): Update.
9606 (arm_skip_stack_protector, arm_skip_stub): Update.
9607 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9608 (arm_wince_skip_main_prologue): Update.
9609 * auxv.c (ld_so_xfer_auxv): Update.
9610 * avr-tdep.c (avr_scan_prologue): Update.
9611 * ax-gdb.c (gen_var_ref): Update.
9612 * block.c (call_site_for_pc): Update.
9613 * blockframe.c (get_pc_function_start): Update.
9614 (find_pc_partial_function_gnu_ifunc): Update.
9615 * breakpoint.c (create_overlay_event_breakpoint): Update.
9616 (create_longjmp_master_breakpoint): Update.
9617 (create_std_terminate_master_breakpoint): Update.
9618 (create_exception_master_breakpoint): Update.
9619 (resolve_sal_pc): Update.
9620 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9621 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9623 * c-valprint.c (c_val_print): Update.
9624 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9625 * coffread.c (coff_symfile_read): Update.
9626 * common/agent.c (agent_look_up_symbols): Update.
9627 * dbxread.c (find_stab_function_addr): Update.
9628 (end_psymtab): Update.
9629 * dwarf2loc.c (call_site_to_target_addr): Update.
9630 (func_verify_no_selftailcall): Update.
9631 (tailcall_dump): Update.
9632 (call_site_find_chain_1): Update.
9633 (dwarf_expr_reg_to_entry_parameter): Update.
9634 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9635 (elf_gnu_ifunc_resolve_by_got): Update.
9636 * f-valprint.c (info_common_command): Update.
9637 * findvar.c (read_var_value): Update.
9638 * frame.c (get_prev_frame_1): Update.
9639 (inside_main_func): Update.
9640 * frv-tdep.c (frv_skip_main_prologue): Update.
9641 (frv_frame_this_id): Update.
9642 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9643 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9644 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9645 (gnuv3_skip_trampoline): Update.
9646 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9647 (hppa64_hpux_in_solib_call_trampoline): Update.
9648 (hppa_hpux_skip_trampoline_code): Update.
9649 (hppa64_hpux_search_dummy_call_sequence): Update.
9650 (hppa_hpux_find_import_stub_for_addr): Update.
9651 (hppa_hpux_find_dummy_bpaddr): Update.
9652 * hppa-tdep.c (hppa_symbol_address)
9653 (hppa_lookup_stub_minimal_symbol): Update.
9654 * i386-tdep.c (i386_skip_main_prologue): Update.
9655 (i386_pe_skip_trampoline_code): Update.
9656 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9657 * infcall.c (get_function_name): Update.
9658 * infcmd.c (until_next_command): Update.
9659 * jit.c (jit_breakpoint_re_set_internal): Update.
9660 (jit_inferior_init): Update.
9661 * linespec.c (minsym_found): Update.
9662 (add_minsym): Update.
9663 * linux-fork.c (info_checkpoints_command): Update.
9664 * linux-nat.c (get_signo): Update.
9665 * linux-thread-db.c (inferior_has_bug): Update.
9666 * m32c-tdep.c (m32c_return_value): Update.
9667 (m32c_m16c_address_to_pointer): Update.
9668 (m32c_m16c_pointer_to_address): Update.
9669 * m32r-tdep.c (m32r_frame_this_id): Update.
9670 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9671 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9672 * maint.c (maintenance_translate_address): Update.
9673 * minsyms.c (add_minsym_to_hash_table): Update.
9674 (add_minsym_to_demangled_hash_table): Update.
9675 (msymbol_objfile): Update.
9676 (lookup_minimal_symbol): Update.
9677 (iterate_over_minimal_symbols): Update.
9678 (lookup_minimal_symbol_text): Update.
9679 (lookup_minimal_symbol_by_pc_name): Update.
9680 (lookup_minimal_symbol_solib_trampoline): Update.
9681 (lookup_minimal_symbol_by_pc_section_1): Update.
9682 (lookup_minimal_symbol_and_objfile): Update.
9683 (prim_record_minimal_symbol_full): Update.
9684 (compare_minimal_symbols): Update.
9685 (compact_minimal_symbols): Update.
9686 (build_minimal_symbol_hash_tables): Update.
9687 (install_minimal_symbols): Update.
9688 (terminate_minimal_symbol_table): Update.
9689 (find_solib_trampoline_target): Update.
9690 (minimal_symbol_upper_bound): Update.
9691 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9692 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9693 (mips_skip_pic_trampoline_code): Update.
9694 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9695 * objc-lang.c (selectors_info): Update.
9696 (classes_info): Update.
9697 (find_methods): Update.
9698 (find_imps): Update.
9699 (find_objc_msgsend): Update.
9700 * objfiles.c (objfile_relocate1): Update.
9701 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9702 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9703 * p-valprint.c (pascal_val_print): Update.
9704 * parse.c (write_exp_msymbol): Update.
9705 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9706 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9707 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9708 * printcmd.c (build_address_symbolic): Update.
9710 (address_info): Update.
9711 * proc-service.c (ps_pglobal_lookup): Update.
9712 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9713 (find_pc_sect_psymtab): Update.
9714 * python/py-framefilter.c (py_print_frame): Update.
9715 * ravenscar-thread.c (get_running_thread_id): Update.
9716 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9718 * remote.c (remote_check_symbols): Update.
9719 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9720 (rs6000_skip_trampoline_code): Update.
9721 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9722 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9723 * solib-dsbt.c (lm_base): Update.
9724 * solib-frv.c (lm_base): Update.
9726 * solib-irix.c (locate_base): Update.
9727 * solib-som.c (som_solib_create_inferior_hook): Update.
9728 (som_solib_desire_dynamic_linker_symbols): Update.
9729 (link_map_start): Update.
9730 * solib-spu.c (spu_enable_break): Update.
9731 (ocl_enable_break): Update.
9732 * solib-svr4.c (elf_locate_base): Update.
9733 (enable_break): Update.
9734 * spu-tdep.c (spu_get_overlay_table): Update.
9735 (spu_catch_start): Update.
9736 (flush_ea_cache): Update.
9737 * stabsread.c (define_symbol): Update.
9738 (scan_file_globals): Update.
9739 * stack.c (find_frame_funname): Update.
9740 (frame_info): Update.
9741 * symfile.c (simple_read_overlay_table): Update.
9742 (simple_overlay_update): Update.
9743 * symmisc.c (dump_msymbols): Update.
9744 * symtab.c (fixup_section): Update.
9745 (find_pc_sect_line): Update.
9746 (skip_prologue_sal): Update.
9747 (search_symbols): Update.
9748 (print_msymbol_info): Update.
9749 (rbreak_command): Update.
9750 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9751 (completion_list_objc_symbol): Update.
9752 (default_make_symbol_completion_list_break_on): Update.
9753 * tracepoint.c (scope_info): Update.
9754 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9755 (tui_get_begin_asm_address): Update.
9756 * valops.c (find_function_in_inferior): Update.
9757 * value.c (value_static_field): Update.
9758 (value_fn_field): Update.
9760 2014-02-26 Tom Tromey <tromey@redhat.com>
9762 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9763 bound minimal symbols. Move code that knows about minsym
9765 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9767 * minsyms.h (minimal_symbol_upper_bound): Declare.
9768 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9769 minimal_symbol_upper_bound.
9771 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9773 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9774 Use the type's name if its basic type does not have a tag.
9776 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9778 * dwarf2read.c (read_subrange_type): Add comment.
9780 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9782 * dwarf2read.c (update_enumeration_type_from_children): New
9783 function, mostly extracted from process_structure_scope.
9784 (read_enumeration_type): Call update_enumeration_type_from_children.
9785 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9786 and flag_flag_enum fields.
9788 2014-02-26 Pedro Alves <palves@redhat.com>
9790 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9791 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9792 to_xfer_partial method.
9794 2014-02-26 Pedro Alves <palves@redhat.com>
9796 * target.c (complete_target_initialization): Don't install
9797 default_xfer_partial as to_xfer_partial hook.
9799 (update_current_target): Don't INHERIT nor de_fault
9800 deprecated_xfer_memory. Delete de_fault macro.
9801 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9802 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9803 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9806 2014-02-26 Pedro Alves <palves@redhat.com>
9808 * go32-nat.c (my_write_child): New function.
9809 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9810 (go32_xfer_partial): New function.
9811 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9812 Instead install a to_xfer_partial hook.
9814 2014-02-26 Pedro Alves <palves@redhat.com>
9816 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9817 to_xfer_partial helper. Rewrite.
9818 (procfs_xfer_partial): New function.
9819 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9820 Install a to_xfer_partial hook.
9822 2014-02-26 Pedro Alves <palves@redhat.com>
9824 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9825 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9826 (m32r_xfer_partial): New function.
9827 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9828 Install a to_xfer_partial hook.
9830 2014-02-26 Pedro Alves <palves@redhat.com>
9832 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9834 (mips_xfer_partial): New function.
9835 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9836 hook. Install a to_xfer_partial hook.
9838 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9840 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9841 * gdbtypes.c (create_array_type_with_stride): New function,
9842 renaming create_array_type, but with an added parameter
9843 called "bit_stride".
9844 (create_array_type): Re-implement using
9845 create_array_type_with_stride.
9846 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9847 and DW_AT_bit_stride attributes.
9849 2014-02-26 Pedro Alves <palves@redhat.com>
9851 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9852 task-specific breakpoints.
9854 2014-02-25 Pedro Alves <palves@redhat.com>
9856 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9857 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9859 2014-02-25 Stan Shebs <stan@codesourcery.com>
9861 * defs.h: Annotate comments for Doxygen.
9863 2014-02-25 Tom Tromey <tromey@redhat.com>
9865 * target.h (target_ignore): Don't declare.
9866 * target.c (target_ignore): Remove.
9868 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9871 * auto-load.c (auto_load_objfile_script_1): Change filename to
9874 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9876 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9877 documentation. Adjust prototype to match the target_ops
9878 to_xfer_partial method. Adjust implementation accordingly.
9880 2014-02-25 Hui Zhu <hui@codesourcery.com>
9882 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9885 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9887 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9888 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9889 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9890 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9891 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9892 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9893 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9894 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9896 (rl78_register_type): Use a data pointer type for SP and
9897 new pseudo registers mentioned above. Use a 16 bit integer
9898 type for all other register pairs.
9899 (rl78_register_name, rl78_g10_register_name): Update for
9900 new pseudo registers.
9901 (rl78_pseudo_register_read): Likewise.
9902 (rl78_pseudo_register_write): Likewise.
9903 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9904 to the newly added pseudo registers.
9906 2014-02-24 Doug Evans <dje@google.com>
9908 * value.c (record_latest_value): Fix comment.
9909 * printcmd.c (print_command_1): Remove code to handle -1 return from
9910 record_latest_value.
9912 2014-02-24 Pedro Alves <palves@redhat.com>
9914 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9915 deprecated_xfer_memory hook.
9916 (procfs_xfer_partial): Call procfs_xfer_memory instead
9917 of the deprecated_xfer_memory target hook.
9918 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9921 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9923 * windows-nat.c (windows_xfer_shared_libraries): Return
9924 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9925 requested object is TARGET_OBJECT_LIBRARIES.
9927 2014-02-24 Yao Qi <yao@codesourcery.com>
9929 * target.h (enum target_xfer_status)
9930 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9931 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9933 * corefile.c (memory_error_message): User updated.
9934 * exec.c (section_table_read_available_memory): Likewise.
9935 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9936 * target.c (target_xfer_status_to_string): Likewise.
9937 (raw_memory_xfer_partial): Likewise.
9938 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9939 * valops.c (read_value_memory): Likewise.
9940 * exec.h: Update comments.
9942 2014-02-24 Yao Qi <yao@codesourcery.com>
9944 * target.c (target_xfer_status_to_string): Rename argument err
9946 * target.h (target_xfer_status_to_string): Update declaration.
9947 Replace target_xfer_error_to_string with
9948 target_xfer_status_to_string in comment.
9950 2014-02-24 Yao Qi <yao@codesourcery.com>
9952 * mips-linux-nat.c (super_close): Update its type.
9953 (mips_linux_close): Pass 'self' to super_close.
9955 2014-02-24 Yao Qi <yao@codesourcery.com>
9957 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9958 * corefile.c (read_memory): Adjusted.
9959 * target.c (target_write_with_progress): Adjusted.
9961 2014-02-23 Yao Qi <yao@codesourcery.com>
9965 2013-10-25 Yao Qi <yao@codesourcery.com>
9967 * remote.c (remote_traceframe_info): Return early if
9968 traceframe is not selected.
9970 2013-07-19 Yao Qi <yao@codesourcery.com>
9972 * target.c (update_current_target): Change the default action
9973 of 'to_traceframe_info' from tcomplain to return_zero.
9974 * target.h (struct target_ops) <to_traceframe_info>: Add more
9977 2014-02-23 Yao Qi <yao@codesourcery.com>
9979 * valops.c (read_value_memory): Rewrite it. Call
9980 target_xfer_partial in a loop.
9981 * exec.h (section_table_available_memory): Remove declaration.
9982 Move comments to ...
9983 * exec.c (section_table_available_memory): ... here. Make it
9986 2014-02-23 Yao Qi <yao@codesourcery.com>
9988 * exec.c (section_table_read_available_memory): New function.
9989 * exec.h (section_table_read_available_memory): Declare.
9990 * ctf.c (ctf_xfer_partial): Call
9991 section_table_read_available_memory.
9992 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9994 2014-02-23 Yao Qi <yao@codesourcery.com>
9996 * ctf.c (ctf_xfer_partial): Move code to ...
9997 * exec.c (exec_read_partial_read_only): ... it. New function.
9998 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9999 * tracefile.c: Include "exec.h".
10000 * exec.h (exec_read_partial_read_only): Declare.
10002 2014-02-23 Yao Qi <yao@codesourcery.com>
10004 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10005 (tfile_has_memory): Remove.
10006 (init_tfile_ops): Don't set fields to_has_all_memory and
10007 to_has_memory of tfile_ops.
10008 * tracefile.c (tracefile_has_all_memory): New function.
10009 (tracefile_has_memory): New function.
10010 (init_tracefile_ops): Initialize fields to_has_all_memory and
10011 to_has_memory of 'ops'.
10013 2014-02-23 Yao Qi <yao@codesourcery.com>
10015 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10016 (ctf_thread_alive, ctf_get_trace_status): Remove.
10017 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10018 init_tracefile_ops.
10019 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10020 (tfile_has_stack, tfile_has_registers): Remove.
10021 (tfile_thread_alive): Remove.
10022 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10023 init_tracefile_ops.
10024 * tracefile.c (tracefile_has_stack): New function.
10025 (tracefile_has_registers): New function.
10026 (tracefile_thread_alive): New function.
10027 (tracefile_get_trace_status): New function.
10028 (init_tracefile_ops): New function.
10029 * tracefile.h (init_tracefile_ops): Declare.
10031 2014-02-23 Yao Qi <yao@codesourcery.com>
10033 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10034 (O_LARGEFILE): Likewise.
10035 (tfile_ops): Likewise.
10036 (TRACE_HEADER_SIZE): Likewise.
10037 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10038 (cur_data_size): Likewise.
10039 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10040 (tfile_close, tfile_files_info): Likewise.
10041 (tfile_get_trace_status): Likewise.
10042 (tfile_get_tracepoint_status): Likewise.
10043 (tfile_get_traceframe_address): Likewise.
10044 (tfile_trace_find, match_blocktype): Likewise.
10045 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10046 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10047 (tfile_get_trace_state_variable_value): Likewise.
10048 (tfile_has_all_memory, tfile_has_memory): Likewise.
10049 (tfile_has_stack, tfile_has_registers): Likewise.
10050 (tfile_thread_alive, build_traceframe_info): Likewise.
10051 (tfile_traceframe_info, init_tfile_ops): Likewise.
10052 (_initialize_tracepoint): Don't call init_tfile_ops
10053 and add_target_with_completer.
10054 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10055 exec.h, completer.h and filenames.h.
10056 (_initialize_tracefile_tfile): New function.
10058 2014-02-23 Yao Qi <yao@codesourcery.com>
10060 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10062 (HFILES_NO_SRCDIR): Add tracefile.h.
10063 * ctf.c: Include "tracefile.h".
10064 * tracefile.h: New file.
10065 * tracefile.c: New file
10066 * tracefile-tfile.c: New file.
10067 * tracepoint.c: Include "tracefile.h".
10068 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10069 (stop_reason_names): Add const.
10070 (trace_file_writer_xfree): Move it to tracefile.c.
10071 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10072 (trace_save_ctf): Likewise.
10073 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10074 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10075 (tfile_write_header, tfile_write_regblock_type): Likewise.
10076 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10077 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10078 (tfile_write_raw_data, tfile_end): Likewise.
10079 (tfile_trace_file_writer_new): Likewise.
10080 (free_uploaded_tp): Make it extern.
10081 (free_uploaded_tsv): Make it extern.
10082 (_initialize_tracepoint): Move code to register command 'tsave'
10084 * tracepoint.h (stop_reason_names): Declare.
10085 (struct trace_frame_write_ops): Move it to tracefile.h.
10086 (struct trace_file_write_ops): Likewise.
10087 (struct trace_file_writer): Likewise.
10088 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10090 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10093 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10095 (get_cores_used_by_process): New parameter num_cores, use it.
10096 (linux_xfer_osdata_processes): Pass num_cores to it.
10097 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10100 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10102 * target.c (memory_xfer_partial): Fix length arg in call to
10103 breakpoint_xfer_memory.
10105 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10108 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10109 number comes after the + or - signs. Adjust length of register
10110 name to be extracted.
10112 2014-02-20 Tom Tromey <tromey@redhat.com>
10114 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10115 (ada_varobj_ops): Mark "extern".
10117 2014-02-20 Tom Tromey <tromey@redhat.com>
10119 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10121 2014-02-20 Doug Evans <xdje42@gmail.com>
10123 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10124 All callers updated.
10125 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10126 All callers updated.
10127 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10128 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10130 2014-02-20 lin zuojian <manjian2006@gmail.com>
10131 Joel Brobecker <brobecker@adacore.com>
10132 Doug Evans <xdje42@gmail.com>
10135 * dwarf2read.c (struct die_info): New member in_process.
10136 (reset_die_in_process): New function.
10137 (process_die): Set it at the start, reset when returning.
10138 (inherit_abstract_dies): Only call process_die if origin_child_die
10139 not already being processed.
10141 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10143 * windows-nat.c (handle_unload_dll): Add function documentation.
10144 (do_initial_windows_stuff): Add comment explaining why we wait
10145 until after inferior initialization has finished before
10146 processing all DLLs.
10148 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10150 * windows-nat.c (get_module_name): Delete.
10151 (windows_get_exec_module_filename): New function, mostly
10152 inspired from get_module_name.
10153 (windows_pid_to_exec_file): Replace call to get_module_name
10154 by call to windows_get_exec_module_filename.
10156 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10158 * windows-nat.c (handle_load_dll): Rewrite this function's
10159 introductory comment. Remove code using get_module_name
10160 to get the DLL's name.
10162 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10164 * windows-nat.c (get_windows_debug_event): Ignore
10165 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10166 if windows_initialization_done == 0.
10167 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10168 Adjust implementation to always load all DLLs.
10169 (do_initial_windows_stuff): Replace call to
10170 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10172 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10174 * windows-nat.c (_initialize_windows_nat): Deprecate the
10175 "dll-symbols" command. Turn the "add-shared-symbol-files"
10176 and "assf" aliases into commands, and deprecate them as well.
10177 * NEWS: Add entry explaining that "dll-symbols" and its two
10178 aliases are now deprecated.
10180 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10182 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10183 new-line in debug string. Remove trailing spaces.
10185 2014-02-19 Stan Shebs <stan@codesourcery.com>
10187 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10189 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10191 * NEWS: Add entry for the new feature
10192 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10195 2014-02-19 Stan Shebs <stan@codesourcery.com>
10197 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10199 2014-02-19 Pedro Alves <palves@redhat.com>
10201 * common/ptid.h (struct ptid): Mention that process_stratum
10202 targets should prefer ptid.lwp.
10204 2014-02-19 Pedro Alves <palves@redhat.com>
10206 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10207 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10208 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10209 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10210 store remote thread ids rather than ptid.tid.
10211 (_initialize_remote): Adjust.
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target.c (target_get_unwinder): Rewrite.
10216 (target_get_tailcall_unwinder): Rewrite.
10217 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10218 (record_btrace_to_get_tailcall_unwinder): New function.
10219 (init_record_btrace_ops): Update.
10220 * target.h (struct target_ops) <to_get_unwinder,
10221 to_get_tailcall_unwinder>: Now function pointers. Use
10222 TARGET_DEFAULT_RETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10228 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10234 * target-delegates.c: Rebuild.
10235 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10236 TARGET_DEFAULT_FUNC.
10237 * target.c (default_target_decr_pc_after_break): Rename from
10238 forward_target_decr_pc_after_break. Simplify.
10239 (target_decr_pc_after_break): Rely on delegation.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target.c (update_current_target): Do not INHERIT to_doc or
10244 to_magic. Do not de_fault to_open or to_close.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * gcore.h (objfile_find_memory_regions): Declare.
10249 * gcore.c (objfile_find_memory_regions): No longer static. Add
10251 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10252 * exec.c: Include gcore.h.
10253 (exec_set_find_memory_regions): Remove.
10254 (exec_find_memory_regions): Remove.
10255 (exec_do_find_memory_regions): Remove.
10256 (init_exec_ops): Update.
10257 * defs.h (exec_set_find_memory_regions): Remove.
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10261 * target-delegates.c: Rebuild.
10262 * target.h (struct target_ops) <to_extra_thread_info,
10263 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10264 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10265 not 0, in TARGET_DEFAULT_RETURN.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target.c (complete_target_initialization): Remove casts. Use
10270 return_zero_has_execution.
10271 (return_zero): Add "ignore" argument.
10272 (return_zero_has_execution): New function.
10273 (init_dummy_target): Remove casts. Use
10274 return_zero_has_execution.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target.c (update_current_target): Update comments. Do not
10279 INHERIT to_stratum.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10285 * corelow.c (core_read_description): Delegate when needed.
10286 * remote.c (remote_read_description): Delegate when needed.
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_read_description): Rewrite.
10289 * target.h (struct target_ops) <to_read_description>: Update
10290 comment. Use TARGET_DEFAULT_RETURN.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10297 (find_default_run_target): Check against delegate_can_run.
10298 * target.h (struct target_ops) <to_can_run>: Use
10299 TARGET_DEFAULT_RETURN.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target-delegates.c: Rebuild.
10304 * target.c (target_disconnect): Unconditionally delegate.
10305 * target.h (struct target_ops) <to_disconnect>: Use
10306 TARGET_DEFAULT_NORETURN.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * record.c (record_stop): Unconditionally delegate.
10311 * target-delegates.c: Rebuild.
10312 * target.c (target_stop_recording): Unconditionally delegate.
10313 * target.h (struct target_ops) <to_stop_recording>: Use
10314 TARGET_DEFAULT_IGNORE.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (target_enable_btrace): Unconditionally delegate.
10320 * target.h (struct target_ops) <to_enable_btrace>: Use
10321 TARGET_DEFAULT_NORETURN.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target-delegates.c: Rebuild.
10326 * target.c (target_read_btrace): Unconditionally delegate.
10327 * target.h (struct target_ops) <to_read_btrace>: Use
10328 TARGET_DEFAULT_NORETURN.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target-delegates.c: Rebuild.
10333 * target.c (target_teardown_btrace): Unconditionally delegate.
10334 * target.h (struct target_ops) <to_teardown_btrace>: Use
10335 TARGET_DEFAULT_NORETURN.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target-delegates.c: Rebuild.
10340 * target.c (target_disable_btrace): Unconditionally delegate.
10341 * target.h (struct target_ops) <to_disable_btrace>: Use
10342 TARGET_DEFAULT_NORETURN.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (default_search_memory): New function.
10348 (simple_search_memory): Update comment.
10349 (target_search_memory): Unconditionally delegate.
10350 * target.h (struct target_ops) <to_search_memory>: Use
10351 TARGET_DEFAULT_FUNC.
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * auxv.c (default_auxv_parse): No longer static.
10356 (target_auxv_parse): Unconditionally delegate.
10357 * auxv.h (default_auxv_parse): Declare.
10358 * target-delegates.c: Rebuild.
10359 * target.c: Include auxv.h.
10360 * target.h (struct target_ops) <to_auxv_parse>: Use
10361 TARGET_DEFAULT_FUNC.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target-delegates.c: Rebuild.
10366 * target.c (target_memory_map): Unconditionally delegate.
10367 * target.h (struct target_ops) <to_memory_map>: Use
10368 TARGET_DEFAULT_RETURN.
10370 2014-02-19 Tom Tromey <tromey@redhat.com>
10372 * target-delegates.c: Rebuild.
10373 * target.c (target_thread_alive): Unconditionally delegate.
10374 * target.h (struct target_ops) <to_thread_alive>: Use
10375 TARGET_DEFAULT_RETURN.
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10379 * target-delegates.c: Rebuild.
10380 * target.c (target_save_record): Unconditionally delegate.
10381 * target.h (struct target_ops) <to_save_record>: Use
10382 TARGET_DEFAULT_NORETURN.
10384 2014-02-19 Tom Tromey <tromey@redhat.com>
10386 * target-delegates.c: Rebuild.
10387 * target.c (target_delete_record): Unconditionally delegate.
10388 * target.h (struct target_ops) <to_delete_record>: Use
10389 TARGET_DEFAULT_NORETURN.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (target_record_is_replaying): Unconditionally
10396 * target.h (struct target_ops) <to_record_is_replaying>: Use
10397 TARGET_DEFAULT_RETURN.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (target_goto_record_begin): Unconditionally delegate.
10403 * target.h (struct target_ops) <to_goto_record_begin>: Use
10404 TARGET_DEFAULT_NORETURN.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (target_goto_record_end): Unconditionally delegate.
10410 * target.h (struct target_ops) <to_goto_record_end>: Use
10411 TARGET_DEFAULT_NORETURN.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_goto_record): Unconditionally delegate.
10417 * target.h (struct target_ops) <to_goto_record>: Use
10418 TARGET_DEFAULT_NORETURN.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target-delegates.c: Rebuild.
10423 * target.c (target_insn_history): Unconditionally delegate.
10424 * target.h (struct target_ops) <to_insn_history>: Use
10425 TARGET_DEFAULT_NORETURN.
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10429 * target-delegates.c: Rebuild.
10430 * target.c (target_insn_history_from): Unconditionally delegate.
10431 * target.h (struct target_ops) <to_insn_history_from>: Use
10432 TARGET_DEFAULT_NORETURN.
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10436 * target-delegates.c: Rebuild.
10437 * target.c (target_insn_history_range): Unconditionally delegate.
10438 * target.h (struct target_ops) <to_insn_history_range>: Use
10439 TARGET_DEFAULT_NORETURN.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target-delegates.c: Rebuild.
10444 * target.c (target_call_history): Unconditionally delegate.
10445 * target.h (struct target_ops) <to_call_history>: Use
10446 TARGET_DEFAULT_NORETURN.
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10450 * target-delegates.c: Rebuild.
10451 * target.c (target_call_history_from): Unconditionally delegate.
10452 * target.h (struct target_ops) <to_call_history_from>: Use
10453 TARGET_DEFAULT_NORETURN.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (target_call_history_range): Unconditionally delegate.
10459 * target.h (struct target_ops) <to_call_history_range>: Use
10460 TARGET_DEFAULT_NORETURN.
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10464 * target-delegates.c: Rebuild.
10465 * target.c (target_verify_memory): Unconditionally delegate.
10466 * target.h (struct target_ops) <to_verify_memory>: Use
10467 TARGET_DEFAULT_NORETURN.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (target_core_of_thread): Unconditionally delegate.
10473 * target.h (struct target_ops) <to_core_of_thread>: Use
10474 TARGET_DEFAULT_RETURN.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target-delegates.c: Rebuild.
10479 * target.c (target_flash_done): Unconditionally delegate.
10480 * target.h (struct target_ops) <to_flash_done>: Use
10481 TARGET_DEFAULT_NORETURN.
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * target-delegates.c: Rebuild.
10486 * target.c (target_flash_erase): Unconditionally delegate.
10487 * target.h (struct target_ops) <to_flash_erase>: Use
10488 TARGET_DEFAULT_NORETURN.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (target_get_section_table): Unconditionally delegate.
10494 * target.h (struct target_ops) <to_get_section_table>: Use
10495 TARGET_DEFAULT_RETURN.
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10499 * target-delegates.c: Rebuild.
10500 * target.c (target_pid_to_str): Unconditionally delegate.
10501 (init_dummy_target): Don't initialize to_pid_to_str.
10502 (default_pid_to_str): Rename from dummy_pid_to_str.
10503 * target.h (struct target_ops) <to_pid_to_str>: Use
10504 TARGET_DEFAULT_FUNC.
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10508 * target-delegates.c: Rebuild.
10509 * target.c (target_find_new_threads): Unconditionally delegate.
10510 * target.h (struct target_ops) <to_find_new_threads>: Use
10511 TARGET_DEFAULT_RETURN.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target-delegates.c: Rebuild.
10516 * target.c (target_program_signals): Unconditionally delegate.
10517 * target.h (struct target_ops) <to_program_signals>: Use
10518 TARGET_DEFAULT_IGNORE.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10522 * target-delegates.c: Rebuild.
10523 * target.c (target_pass_signals): Unconditionally delegate.
10524 * target.h (struct target_ops) <to_pass_signals>: Use
10525 TARGET_DEFAULT_IGNORE.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (default_mourn_inferior): New function.
10531 (target_mourn_inferior): Unconditionally delegate.
10532 * target.h (struct target_ops) <to_mourn_inferior>: Use
10533 TARGET_DEFAULT_FUNC.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (default_follow_fork): New function.
10539 (target_follow_fork): Unconditionally delegate.
10540 * target.h (struct target_ops) <to_follow_fork>: Use
10541 TARGET_DEFAULT_FUNC.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (target_kill): Unconditionally delegate.
10547 * target.h (struct target_ops) <to_kill>: Use
10548 TARGET_DEFAULT_NORETURN.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target-delegates.c: Rebuild.
10553 * target.c (target_masked_watch_num_registers): Unconditionally
10555 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10556 Use TARGET_DEFAULT_RETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (target_remove_mask_watchpoint): Unconditionally
10563 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10564 TARGET_DEFAULT_RETURN.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (target_insert_mask_watchpoint): Unconditionally
10571 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10572 TARGET_DEFAULT_RETURN.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (target_ranged_break_num_registers): Unconditionally
10579 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10580 Use TARGET_DEFAULT_RETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (target_fetch_registers): Unconditionally delegate.
10586 * target.h (struct target_ops) <to_fetch_registers>: Use
10587 TARGET_DEFAULT_NORETURN.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10594 * target.h (struct target_ops) <to_stop>: Use
10595 TARGET_DEFAULT_IGNORE.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10601 to_can_run_breakpoint_commands.
10602 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10603 Use TARGET_DEFAULT_RETURN.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_supports_evaluation_of_breakpoint_conditions.
10610 * target.h (struct target_ops)
10611 <to_supports_evaluation_of_breakpoint_conditions>: Use
10612 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
10619 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10620 Use TARGET_DEFAULT_RETURN.
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
10627 * target.h (struct target_ops) <to_can_use_agent>: Use
10628 TARGET_DEFAULT_RETURN.
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
10635 * target.h (struct target_ops) <to_use_agent>: Use
10636 TARGET_DEFAULT_NORETURN.
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_traceframe_info.
10643 (return_null): Remove.
10644 * target.h (struct target_ops) <to_traceframe_info>: Use
10645 TARGET_DEFAULT_RETURN.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_static_tracepoint_markers_by_strid.
10652 * target.h (struct target_ops)
10653 <to_static_tracepoint_markers_by_strid>: Use
10654 TARGET_DEFAULT_NORETURN.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_static_tracepoint_marker_at.
10661 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10662 Use TARGET_DEFAULT_RETURN.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10668 to_set_permissions.
10669 * target.h (struct target_ops) <to_set_permissions>: Use
10670 TARGET_DEFAULT_IGNORE.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_get_tib_address.
10677 * target.h (struct target_ops) <to_get_tib_address>: Use
10678 TARGET_DEFAULT_NORETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_set_trace_notes.
10685 * target.h (struct target_ops) <to_set_trace_notes>: Use
10686 TARGET_DEFAULT_RETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't initialize
10692 to_set_trace_buffer_size.
10693 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10694 TARGET_DEFAULT_IGNORE.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_set_circular_trace_buffer.
10701 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10702 TARGET_DEFAULT_IGNORE.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_set_disconnected_tracing.
10709 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10710 TARGET_DEFAULT_IGNORE.
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
10716 to_get_min_fast_tracepoint_insn_len.
10717 (return_minus_one): Remove.
10718 * target.h (struct target_ops)
10719 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_get_raw_trace_data.
10726 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10727 TARGET_DEFAULT_NORETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_upload_trace_state_variables.
10734 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10735 Use TARGET_DEFAULT_RETURN.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target-delegates.c: Rebuild.
10740 * target.c (update_current_target): Don't inherit or default
10741 to_upload_tracepoints.
10742 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10743 TARGET_DEFAULT_RETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_save_trace_data.
10750 * target.h (struct target_ops) <to_save_trace_data>: Use
10751 TARGET_DEFAULT_NORETURN.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10757 to_get_trace_state_variable_value.
10758 * target.h (struct target_ops)
10759 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10766 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * target-delegates.c: Rebuild.
10771 * target.c (update_current_target): Don't inherit or default
10773 * target.h (struct target_ops) <to_trace_stop>: Use
10774 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
10781 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10782 TARGET_DEFAULT_NORETURN.
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
10788 to_get_trace_status.
10789 * target.h (struct target_ops) <to_get_trace_status>: 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
10797 * target.h (struct target_ops) <to_trace_start>: Use
10798 TARGET_DEFAULT_NORETURN.
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10802 * target-delegates.c: Rebuild.
10803 * target.c (update_current_target): Don't inherit or default
10804 to_trace_set_readonly_regions.
10805 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10806 Use TARGET_DEFAULT_NORETURN.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_disable_tracepoint.
10813 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10814 TARGET_DEFAULT_NORETURN.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_enable_tracepoint.
10821 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10822 TARGET_DEFAULT_NORETURN.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10828 to_download_trace_state_variable.
10829 * target.h (struct target_ops) <to_download_trace_state_variable>:
10830 Use TARGET_DEFAULT_NORETURN.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_can_download_tracepoint.
10837 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10838 TARGET_DEFAULT_RETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (update_current_target): Don't inherit or default
10844 to_download_tracepoint.
10845 * target.h (struct target_ops) <to_download_tracepoint>: Use
10846 TARGET_DEFAULT_NORETURN.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target-delegates.c: Rebuild.
10851 * target.c (update_current_target): Don't inherit or default
10853 * target.h (struct target_ops) <to_trace_init>: Use
10854 TARGET_DEFAULT_RETURN.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target-delegates.c: Rebuild.
10859 * target.c (update_current_target): Don't inherit or default
10860 to_supports_string_tracing.
10861 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10862 TARGET_DEFAULT_RETURN.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target-delegates.c: Rebuild.
10867 * target.c (update_current_target): Don't inherit or default
10868 to_supports_enable_disable_tracepoint.
10869 * target.h (struct target_ops)
10870 <to_supports_enable_disable_tracepoint>: Use
10871 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
10878 * target.h (struct target_ops) <to_supports_multi_process>: Use
10879 TARGET_DEFAULT_RETURN.
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
10885 to_get_ada_task_ptid.
10886 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10887 TARGET_DEFAULT_FUNC.
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_thread_architecture.
10894 * target.h (struct target_ops) <to_thread_architecture>: Use
10895 TARGET_DEFAULT_FUNC.
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_execution_direction.
10902 * target.h (struct target_ops) <to_execution_direction>: Use
10903 TARGET_DEFAULT_FUNC.
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
10909 to_can_execute_reverse.
10910 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10911 TARGET_DEFAULT_RETURN.
10912 (target_can_execute_reverse): Unconditionally delegate.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10919 (dummy_goto_bookmark): Remove.
10920 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10921 * target.h (struct target_ops) <to_goto_bookmark>: Use
10922 TARGET_DEFAULT_NORETURN.
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10929 (dummy_get_bookmark): Remove.
10930 (init_dummy_target): Don't inherit or default to_get_bookmark.
10931 * target.h (struct target_ops) <to_get_bookmark>: Use
10932 TARGET_DEFAULT_NORETURN
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_make_corefile_notes.
10939 (init_dummy_target): Don't initialize to_make_corefile_notes.
10940 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10941 TARGET_DEFAULT_FUNC.
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target-delegates.c: Rebuild.
10946 * target.c (update_current_target): Don't inherit or default
10947 to_find_memory_regions.
10948 (init_dummy_target): Don't initialize to_find_memory_regions.
10949 * target.h (struct target_ops) <to_find_memory_regions>: Use
10950 TARGET_DEFAULT_FUNC.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10957 * target.h (struct target_ops) <to_log_command>: Use
10958 TARGET_DEFAULT_IGNORE.
10959 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
10966 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
10974 (target_thread_name): Unconditionally delegate.
10975 * target.h (struct target_ops) <to_thread_name>: Use
10976 TARGET_DEFAULT_RETURN.
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10982 to_extra_thread_info.
10983 * target.h (struct target_ops) <to_extra_thread_info>: Use
10984 TARGET_DEFAULT_RETURN.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10991 * target.h (struct target_ops) <to_has_exited>: Use
10992 TARGET_DEFAULT_RETURN..
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target-delegates.c: Rebuild.
10997 * target.c (update_current_target): Don't inherit or default
10998 to_set_syscall_catchpoint.
10999 (return_one): Remove.
11000 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11001 TARGET_DEFAULT_RETURN.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target-delegates.c: Rebuild.
11006 * target.c (update_current_target): Don't inherit or default
11007 to_insert_exec_catchpoint.
11008 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11009 TARGET_DEFAULT_RETURN.
11011 2014-01-08 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (update_current_target): Don't inherit or default
11015 to_insert_exec_catchpoint.
11016 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11017 TARGET_DEFAULT_RETURN.
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11021 * target-delegates.c: Rebuild.
11022 * target.c (update_current_target): Don't inherit or default
11023 to_remove_vfork_catchpoint.
11024 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11025 TARGET_DEFAULT_RETURN.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_insert_vfork_catchpoint.
11032 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11033 TARGET_DEFAULT_RETURN.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target-delegates.c: Rebuild.
11038 * target.c (update_current_target): Don't inherit or default
11039 to_remove_fork_catchpoint.
11040 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11041 TARGET_DEFAULT_RETURN.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11047 to_insert_fork_catchpoint.
11048 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11049 TARGET_DEFAULT_RETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11055 to_post_startup_inferior.
11056 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11057 TARGET_DEFAULT_IGNORE.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target-delegates.c: Rebuild.
11062 * target.c (update_current_target): Don't inherit or default
11064 * target.h (struct target_ops) <to_load>: Use
11065 TARGET_DEFAULT_NORETURN.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target-delegates.c: Rebuild.
11070 * target.c (update_current_target): Don't inherit or default
11072 * target.h (struct target_ops) <to_terminal_info>: Use
11073 TARGET_DEFAULT_FUNC.
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * target-delegates.c: Rebuild.
11078 * target.c (update_current_target): Don't inherit or default
11079 to_terminal_save_ours.
11080 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11081 TARGET_DEFAULT_IGNORE.
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target-delegates.c: Rebuild.
11086 * target.c (update_current_target): Don't inherit or default
11088 * target.h (struct target_ops) <to_terminal_ours>: Use
11089 TARGET_DEFAULT_IGNORE.
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11093 * target-delegates.c: Rebuild.
11094 * target.c (update_current_target): Don't inherit or default
11095 to_terminal_ours_for_output.
11096 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11097 TARGET_DEFAULT_IGNORE.
11099 2014-02-19 Tom Tromey <tromey@redhat.com>
11101 * target-delegates.c: Rebuild.
11102 * target.c (update_current_target): Don't inherit or default
11103 to_terminal_inferior.
11104 * target.h (struct target_ops) <to_terminal_inferior>: Use
11105 TARGET_DEFAULT_IGNORE.
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * target-delegates.c: Rebuild.
11110 * target.c (update_current_target): Don't inherit or default
11112 * target.h (struct target_ops) <to_terminal_init>: Use
11113 TARGET_DEFAULT_IGNORE.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target-delegates.c: Rebuild.
11118 * target.c (update_current_target): Don't inherit or default
11119 to_can_accel_watchpoint_condition.
11120 * target.h (struct target_ops)
11121 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_region_ok_for_hw_watchpoint.
11128 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11129 Use TARGET_DEFAULT_FUNC.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_watchpoint_addr_within_range.
11136 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11137 Use TARGET_DEFAULT_FUNC.
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't inherit or default
11143 to_remove_watchpoint.
11144 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11145 TARGET_DEFAULT_NORETURN.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target-delegates.c: Rebuild.
11150 * target.c (update_current_target): Don't inherit or default
11151 to_insert_watchpoint.
11152 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11153 TARGET_DEFAULT_RETURN.
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target-delegates.c: Rebuild.
11158 * target.c (update_current_target): Don't inherit or default
11159 to_remove_hw_breakpoint.
11160 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11161 TARGET_DEFAULT_RETURN.
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11165 * target-delegates.c: Rebuild.
11166 * target.c (update_current_target): Don't inherit or default
11167 to_insert_hw_breakpoint.
11168 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11169 TARGET_DEFAULT_RETURN.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target-delegates.c: Rebuild.
11174 * target.c (update_current_target): Don't inherit or default
11175 to_can_use_hw_breakpoint.
11176 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11177 TARGET_DEFAULT_RETURN.
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11181 * target-delegates.c: Rebuild.
11182 * target.c (update_current_target): Don't inherit or default
11184 * target.h (struct target_ops) <to_files_info>: Use
11185 TARGET_DEFAULT_IGNORE.
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11189 * target-delegates.c: Rebuild.
11190 * target.c (update_current_target): Don't inherit or default
11192 * target.h (struct target_ops) <to_store>: Use
11193 TARGET_DEFAULT_NORETURN.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target-delegates.c: Rebuild.
11198 * target.c (update_current_target): Don't inherit or default
11200 * target.h (struct target_ops) <to_post_attach>: Use
11201 TARGET_DEFAULT_IGNORE.
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * target-delegates.c: Rebuild.
11206 * target.c (update_current_target): Don't inherit or default
11208 (default_rcmd): New function.
11209 (do_monitor_command): Unconditionally delegate.
11210 * target.h (struct target_ops) <to_rmcd>: Use
11211 TARGET_DEFAULT_FUNC.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target-delegates.c: Rebuild.
11216 * target.c (init_dummy_target): Don't initialize to_attach.
11217 (target_attach): Unconditionally delegate.
11218 * target.h (struct target_ops) <to_attach>: Use
11219 TARGET_DEFAULT_FUNC.
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11223 * target-delegates.c: Rebuild.
11224 * target.c (target_detach): Unconditionally delegate.
11225 (init_dummy_target): Don't initialize to_detach.
11226 * target.h (struct target_ops) <to_detach>: Use
11227 TARGET_DEFAULT_IGNORE.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11233 (target_augmented_libraries_svr4_read): Add argument.
11234 * target.c (update_current_target): Update.
11235 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_call_history_range>: Add
11242 * target.c (target_call_history_range): Add argument.
11243 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11245 (record_btrace_call_history_from): Update.
11247 2014-02-19 Tom Tromey <tromey@redhat.com>
11249 * target.h (struct target_ops) <to_call_history_from>: Add
11251 * target.c (target_call_history_from): Add argument.
11252 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11257 * target.h (struct target_ops) <to_call_history>: Add argument.
11258 * target.c (target_call_history): Add argument.
11259 * record-btrace.c (record_btrace_call_history): Add 'self'
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target.h (struct target_ops) <to_insn_history_range>: Add
11266 * target.c (target_insn_history_range): Add argument.
11267 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11269 (record_btrace_insn_history_from): Update.
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_insn_history_from>: Add
11275 * target.c (target_insn_history_from): Add argument.
11276 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target.h (struct target_ops) <to_insn_history>: Add argument.
11282 * target.c (target_insn_history): Add argument.
11283 * record-btrace.c (record_btrace_insn_history): Add 'self'
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target.h (struct target_ops) <to_goto_record>: Add argument.
11289 * target.c (target_goto_record): Add argument.
11290 * record-full.c (record_full_goto): Add 'self' argument.
11291 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11293 2014-02-19 Tom Tromey <tromey@redhat.com>
11295 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11296 * target.c (target_goto_record_end): Add argument.
11297 * record-full.c (record_full_goto_end): Add 'self' argument.
11298 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target.h (struct target_ops) <to_goto_record_begin>: Add
11304 * target.c (target_goto_record_begin): Add argument.
11305 * record-full.c (record_full_goto_begin): Add 'self' argument.
11306 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target.h (struct target_ops) <to_record_is_replaying>: Add
11313 * target.c (target_record_is_replaying): Add argument.
11314 * record-full.c (record_full_is_replaying): Add 'self' argument.
11315 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11317 (record_btrace_xfer_partial, record_btrace_store_registers)
11318 (record_btrace_prepare_to_store, record_btrace_resume)
11319 (record_btrace_wait, record_btrace_decr_pc_after_break)
11320 (record_btrace_find_new_threads, record_btrace_thread_alive):
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11325 * target.h (struct target_ops) <to_delete_record>: Add argument.
11326 * target.c (target_delete_record): Add argument.
11327 * record-full.c (record_full_delete): Add 'self' argument.
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11331 * target.h (struct target_ops) <to_save_record>: Add argument.
11332 * target.c (target_save_record): Add argument.
11333 * record-full.c (record_full_save): Add 'self' argument.
11334 (record_full_save): Add 'self' argument.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target.h (struct target_ops) <to_info_record>: Add argument.
11339 * target.c (target_info_record): Add argument.
11340 * record.c (info_record_command): Add argument.
11341 * record-full.c (record_full_info): Add 'self' argument.
11342 * record-btrace.c (record_btrace_info): Add 'self' argument.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11347 * target.c (target_stop_recording): Add argument.
11348 * record.c (record_stop): Add argument.
11349 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11354 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11355 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11356 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11358 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11359 (_initialize_amd64_linux_nat): Use it.
11360 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11361 (_initialize_i386_linux_nat): Use it.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11366 * target.c (target_teardown_btrace): Add argument.
11367 * remote.c (remote_teardown_btrace): Add 'self' argument.
11368 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11370 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11375 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11376 * target.c (target_disable_btrace): Add argument.
11377 * remote.c (remote_disable_btrace): Add 'self' argument.
11378 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11380 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11383 2014-02-19 Tom Tromey <tromey@redhat.com>
11385 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11386 * target.c (target_enable_btrace): Add argument.
11387 * remote.c (remote_enable_btrace): Add 'self' argument.
11388 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11390 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11396 (target_can_use_agent): Add argument.
11397 * target.c (update_current_target): Update.
11398 * remote.c (remote_can_use_agent): Add 'self' argument.
11399 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11403 * target.h (struct target_ops) <to_use_agent>: Add argument.
11404 (target_use_agent): Add argument.
11405 * target.c (update_current_target): Update.
11406 * remote.c (remote_use_agent): Add 'self' argument.
11407 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11409 2014-02-19 Tom Tromey <tromey@redhat.com>
11411 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11412 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11413 (target_traceframe_info): Add argument.
11414 * target.c (update_current_target): Update.
11415 * remote.c (remote_traceframe_info): Add 'self' argument.
11416 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11420 * target.h (target_static_tracepoint_markers_by_strid): Add
11422 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11424 * target.c (update_current_target): Update.
11425 * remote.c (struct target_ops)
11426 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11427 * linux-nat.c (struct target_ops)
11428 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11432 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11434 (target_static_tracepoint_marker_at): Add argument.
11435 * target.c (update_current_target): Update.
11436 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11442 (target_set_permissions): Add argument.
11443 * target.c (update_current_target): Update.
11444 * remote.c (remote_set_permissions): Add 'self' argument.
11445 (remote_start_remote): Update.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11450 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11451 (target_get_tib_address): Add argument.
11452 * target.c (update_current_target): Update.
11453 * remote.c (remote_get_tib_address): Add 'self' argument.
11455 2014-02-19 Tom Tromey <tromey@redhat.com>
11457 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11458 (target_set_trace_notes): Add argument.
11459 * target.c (update_current_target): Update.
11460 * remote.c (remote_set_trace_notes): Add 'self' argument.
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11464 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11466 (target_set_trace_buffer_size): Add argument.
11467 * target.c (update_current_target): Update.
11468 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11474 (target_set_circular_trace_buffer): Add argument.
11475 * target.c (update_current_target): Update.
11476 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11481 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11483 (target_set_disconnected_tracing): Add argument.
11484 * target.c (update_current_target): Update.
11485 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.h (struct target_ops)
11490 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11491 (target_get_min_fast_tracepoint_insn_len): Add argument.
11492 * target.c (update_current_target): Update.
11493 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11500 (target_get_raw_trace_data): Add argument.
11501 * target.c (update_current_target): Update.
11502 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11508 (target_upload_trace_state_variables): Add argument.
11509 * target.c (update_current_target): Update.
11510 * remote.c (remote_upload_trace_state_variables): Add 'self'
11512 (remote_start_remote): Update.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11518 (target_upload_tracepoints): Add argument.
11519 * target.c (update_current_target): Update.
11520 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11521 (remote_start_remote): Update.
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11525 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11526 (target_save_trace_data): Add argument.
11527 * target.c (update_current_target): Update.
11528 * remote.c (remote_save_trace_data): Add 'self' argument.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11534 * target.h (struct target_ops)
11535 <to_get_trace_state_variable_value>: Add argument.
11536 (target_get_trace_state_variable_value): Add argument.
11537 * target.c (update_current_target): Update.
11538 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11540 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11544 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11545 * target.h (struct target_ops) <to_trace_find>: Add argument.
11546 (target_trace_find): Add argument.
11547 * target.c (update_current_target): Update.
11548 * remote.c (remote_trace_find): Add 'self' argument.
11549 * ctf.c (ctf_trace_find): Add 'self' argument.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11554 (target_trace_stop): Add argument.
11555 * target.c (update_current_target): Update.
11556 * remote.c (remote_trace_stop): Add 'self' argument.
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11560 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11561 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11563 (target_get_tracepoint_status): Add argument.
11564 * target.c (update_current_target): Update.
11565 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11567 2014-02-19 Tom Tromey <tromey@redhat.com>
11569 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11570 * target.h (struct target_ops) <to_get_trace_status>: Add
11572 (target_get_trace_status): Add argument.
11573 * target.c (update_current_target): Update.
11574 * remote.c (remote_get_trace_status): Add 'self' argument.
11575 (remote_start_remote, remote_can_download_tracepoint): Update.
11576 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11580 * target.h (struct target_ops) <to_trace_start>: Add argument.
11581 (target_trace_start): Add argument.
11582 * target.c (update_current_target): Update.
11583 * remote.c (remote_trace_start): Add 'self' argument.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11589 (target_trace_set_readonly_regions): Add argument.
11590 * target.c (update_current_target): Update.
11591 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11598 (target_disable_tracepoint): Add argument.
11599 * target.c (update_current_target): Update.
11600 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11606 (target_enable_tracepoint): Add argument.
11607 * target.c (update_current_target): Update.
11608 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_download_trace_state_variable>:
11614 (target_download_trace_state_variable): Add argument.
11615 * target.c (update_current_target): Update.
11616 * remote.c (remote_download_trace_state_variable): Add 'self'
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11623 (target_can_download_tracepoint): Add argument.
11624 * target.c (update_current_target): Update.
11625 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11629 * target.h (struct target_ops) <to_download_tracepoint>: Add
11631 (target_download_tracepoint): Add argument.
11632 * target.c (update_current_target): Update.
11633 * remote.c (remote_download_tracepoint): Add 'self' argument.
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target.h (struct target_ops) <to_trace_init>: Add argument.
11638 (target_trace_init): Add argument.
11639 * target.c (update_current_target): Update.
11640 * remote.c (remote_trace_init): Add 'self' argument.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11645 * target.c (target_fileio_readlink): Add argument.
11646 * remote.c (remote_hostio_readlink): Add 'self' argument.
11647 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11652 * target.c (target_fileio_unlink): Add argument.
11653 * remote.c (remote_hostio_unlink): Add 'self' argument.
11654 (remote_file_delete): Update.
11655 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11657 2014-02-19 Tom Tromey <tromey@redhat.com>
11659 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11660 * target.c (target_fileio_close): Add argument.
11661 * remote.c (remote_hostio_close): Add 'self' argument.
11662 (remote_hostio_close_cleanup): Update.
11663 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11665 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11667 2014-02-19 Tom Tromey <tromey@redhat.com>
11669 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11670 * target.c (target_fileio_pread): Add argument.
11671 * remote.c (remote_hostio_pread): Add 'self' argument.
11672 (remote_bfd_iovec_pread, remote_file_get): Update.
11673 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11678 * target.c (target_fileio_pwrite): Add argument.
11679 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11680 (remote_file_put): Update.
11681 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11683 2014-02-19 Tom Tromey <tromey@redhat.com>
11685 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11686 * target.c (target_fileio_open): Add argument.
11687 * remote.c (remote_hostio_open): Add 'self' argument.
11688 (remote_bfd_iovec_open): Add 'self' argument.
11689 (remote_file_put): Add 'self' argument.
11690 (remote_file_get): Add 'self' argument.
11691 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11697 (target_can_run_breakpoint_commands): Add argument.
11698 * target.c (update_current_target): Update.
11699 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11701 (remote_insert_breakpoint): Add 'self' argument.
11702 (remote_insert_hw_breakpoint): Add 'self' argument.
11703 (remote_can_run_breakpoint_commands): Add 'self' argument.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target.h (struct target_ops)
11708 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11709 (target_supports_evaluation_of_breakpoint_conditions): Add
11711 * target.c (update_current_target): Update.
11712 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11714 (remote_insert_breakpoint): Add 'self' argument.
11715 (remote_insert_hw_breakpoint): Add 'self' argument.
11716 (remote_supports_cond_breakpoints): Add 'self' argument.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11722 (target_supports_string_tracing): Add argument.
11723 * target.c (update_current_target): Update.
11724 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * target.h (struct target_ops)
11729 <to_supports_disable_randomization>: Add argument.
11730 * target.c (find_default_supports_disable_randomization): Add
11732 (target_supports_disable_randomization): Add argument.
11733 (find_default_supports_disable_randomization): Add 'self'
11735 * remote.c (extended_remote_supports_disable_randomization): Add
11737 (remote_supports_disable_randomization): Add 'self' argument.
11738 (extended_remote_create_inferior): Update.
11739 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11744 * target.h (struct target_ops)
11745 <to_supports_enable_disable_tracepoint>: Add argument.
11746 (target_supports_enable_disable_tracepoint): Add argument.
11747 * target.c (update_current_target): Update.
11748 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target.h (struct target_ops) <to_supports_multi_process>: Add
11755 (target_supports_multi_process): Add argument.
11756 * target.c (update_current_target): Update.
11757 * remote.c (remote_supports_multi_process): Add 'self' argument.
11758 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11760 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11765 * target.h (struct target_ops) <to_execution_direction>: Add
11767 (target_execution_direction): Add argument.
11768 * target.c (default_execution_direction): Add 'self' argument.
11769 * record-full.c (record_full_execution_direction): Add 'self'
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11776 (target_can_execute_reverse): Add argument.
11777 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11778 * record-full.c (record_full_can_execute_reverse): Add 'self'
11780 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11785 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11786 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11788 (target_get_ada_task_ptid): Add argument.
11789 * target.c (update_current_target): Update.
11790 (default_get_ada_task_ptid): Add 'self' argument.
11791 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11792 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11793 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11795 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11797 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11799 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11801 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11802 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11808 (target_goto_bookmark): Add argument.
11809 * target.c (dummy_goto_bookmark): Add 'self' argument.
11810 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11815 (target_get_bookmark): Add argument.
11816 * target.c (dummy_get_bookmark): Add 'self' argument.
11817 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11821 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11823 (target_make_corefile_notes): Add argument.
11824 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11825 * procfs.c (procfs_make_note_section): Add 'self' argument.
11826 (procfs_make_note_section): Add 'self' argument.
11827 (procfs_make_note_section): Add 'self' argument.
11828 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11830 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11831 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11832 * exec.c (exec_make_note_section): Add 'self' argument.
11833 (exec_make_note_section): Add 'self' argument.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target.h (struct target_ops) <to_find_memory_regions>: Add
11839 (target_find_memory_regions): Add argument.
11840 * target.c (dummy_find_memory_regions): Add 'self' argument.
11841 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11842 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11843 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11844 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11845 * exec. (exec_do_find_memory_regions): New global.
11846 (exec_set_find_memory_regions): Rewrite.
11847 (exec_find_memory_regions): New function.
11848 (init_exec_ops): Use exec_find_memory_regions.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target.h (struct target_ops) <to_supports_non_stop>: Add
11854 * target.c (find_default_supports_non_stop): Add argument.
11855 (target_supports_non_stop): Add argument.
11856 (find_default_supports_non_stop): Add 'self' argument.
11857 * remote.c (remote_supports_non_stop): Add 'self' argument.
11858 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11862 * target.h (struct target_ops) <to_log_command>: Add argument.
11863 (target_log_command): Add argument.
11864 * serial.h (serial_log_command): Add 'self' argument.
11865 * serial.c (serial_log_command): Add 'self' argument.
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11869 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11870 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11872 (target_pid_to_exec_file): Add argument.
11873 * target.c (debug_to_pid_to_exec_file): Add argument.
11874 (update_current_target): Update.
11875 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11876 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11877 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11878 (linux_handle_extended_wait): Update.
11879 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11880 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11881 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11882 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11884 2014-02-19 Tom Tromey <tromey@redhat.com>
11886 * target.h (struct target_ops) <to_rcmd>: Add argument.
11887 (target_rcmd): Add argument.
11888 * target.c (debug_to_rcmd): Add argument.
11889 (update_current_target, do_monitor_command): Update.
11890 * remote.c (remote_rcmd): Add 'self' argument.
11891 * monitor.c (monitor_rcmd): Add 'self' argument.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * windows-nat.c (windows_stop): Add 'self' argument.
11896 * target.h (struct target_ops) <to_stop>: Add argument.
11897 * target.c (target_stop): Add argument.
11898 (debug_to_stop): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_stop): Add 'self' argument.
11901 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11902 (gdbsim_cntrl_c): Update.
11903 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11904 * procfs.c (procfs_stop): Add 'self' argument.
11905 * nto-procfs.c (procfs_stop): Add 'self' argument.
11906 * monitor.c (monitor_stop): Add 'self' argument.
11907 (monitor_open): Update.
11908 * linux-nat.c (linux_nat_stop): Add argument.
11909 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11910 * gnu-nat.c (gnu_stop): Add 'self' argument.
11911 * darwin-nat.c (darwin_stop): Add 'self' argument.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target.h (struct target_ops) <to_thread_name>: Add argument.
11916 * target.c (target_thread_name): Add argument.
11917 (update_current_target): Update.
11918 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11922 * target.h (struct target_ops) <to_extra_thread_info>: Add
11924 (target_extra_thread_info): Add argument.
11925 * target.c (update_current_target): Update.
11926 * remote.c (remote_threads_extra_info): Add 'self' argument.
11927 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11929 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11930 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11931 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11933 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11935 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11937 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11942 * target.h (struct target_ops) <to_program_signals>: Add argument.
11943 * target.c (target_program_signals): Add argument.
11944 * remote.c (remote_program_signals): Add 'self' argument.
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11949 * target.c (target_pass_signals): Add argument.
11950 * remote.c (remote_pass_signals): Add 'self' argument.
11951 (remote_start_remote): Update.
11952 * procfs.c (procfs_pass_signals): Add 'self' argument.
11953 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11954 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11955 (linux_nat_create_inferior, linux_nat_attach): Update.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * windows-nat.c (windows_can_run): Add 'self' argument.
11960 * target.h (struct target_ops) <to_can_run>: Add argument.
11961 (target_can_run): Add argument.
11962 * target.c (debug_to_can_run): Add argument.
11963 (update_current_target): Update.
11964 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11965 * inf-child.c (inf_child_can_run): Add 'self' argument.
11966 * go32-nat.c (go32_can_run): Add 'self' argument.
11968 2014-02-19 Tom Tromey <tromey@redhat.com>
11970 * target.h (struct target_ops) <to_has_exited>: Add argument.
11971 (target_has_exited): Add argument.
11972 * target.c (debug_to_has_exited): Add argument.
11973 (update_current_target): Update.
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11979 (target_set_syscall_catchpoint): Add argument.
11980 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11982 * target.c (update_current_target): Update.
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11988 (target_remove_exec_catchpoint): Add argument.
11989 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11990 (update_current_target): Update.
11991 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11998 (target_insert_exec_catchpoint): Add argument.
11999 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12000 (update_current_target): Update.
12001 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12008 (target_remove_vfork_catchpoint): Add argument.
12009 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12010 (update_current_target): Update.
12011 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12014 2014-02-19 Tom Tromey <tromey@redhat.com>
12016 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12018 (target_insert_vfork_catchpoint): Add argument.
12019 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12020 (update_current_target): Update.
12021 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12024 2014-02-19 Tom Tromey <tromey@redhat.com>
12026 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12028 (target_remove_fork_catchpoint): Add argument.
12029 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12030 (update_current_target): Update.
12031 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12036 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12038 (target_insert_fork_catchpoint): Add argument.
12039 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12040 (update_current_target): Update.
12041 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12048 (target_post_startup_inferior): Add argument.
12049 * target.c (debug_to_post_startup_inferior): Add argument.
12050 (update_current_target): Update.
12051 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12053 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12055 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12057 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12059 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12061 (super_post_startup_inferior): Likewise.
12062 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12064 (super_post_startup_inferior): Likewise.
12065 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12066 Add 'self' argument.
12067 (super_post_startup_inferior): Likewise.
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12071 * target.h (struct target_ops) <to_load>: Add argument.
12072 * target.c (target_load): Add argument.
12073 (debug_to_load): Add argument.
12074 (update_current_target): Update.
12075 * remote.c (remote_load): Add 'self' argument.
12076 * remote-sim.c (gdbsim_load): Add 'self' argument.
12077 * remote-mips.c (mips_load): Add 'self' argument.
12078 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12079 * monitor.c (monitor_load): Add 'self' argument.
12080 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12085 (target_terminal_info): Add argument.
12086 * target.c (debug_to_terminal_info): Add argument.
12087 (default_terminal_info): Likewise.
12088 * inflow.c (child_terminal_info): Add 'self' argument.
12089 * inferior.h (child_terminal_info): Add 'self' argument.
12090 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12096 (target_terminal_save_ours): Add argument.
12097 * target.c (debug_to_terminal_save_ours): Add argument.
12098 (update_current_target): Update.
12099 * inflow.c (terminal_save_ours): Add 'self' argument.
12100 * inferior.h (terminal_save_ours): Add 'self' argument.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12105 (target_terminal_ours): Add argument.
12106 * target.c (debug_to_terminal_ours): Add argument.
12107 (update_current_target): Update.
12108 * remote.c (remote_terminal_ours): Add 'self' argument.
12109 (remote_close): Update.
12110 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12111 * inflow.c (terminal_ours): Add 'self' argument.
12112 * inferior.h (terminal_ours): Add 'self' argument.
12113 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12115 2014-02-19 Pedro Alves <palves@redhat.com>
12116 Tom Tromey <tromey@redhat.com>
12118 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12120 (target_terminal_ours_for_output): Add argument.
12121 * target.c (debug_to_terminal_ours_for_output): Add argument.
12122 (update_current_target): Update.
12123 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12124 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12125 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target.h (struct target_ops) <to_terminal_inferior>: Add
12131 * target.c (target_terminal_inferior): Add argument.
12132 (update_current_target): Update.
12133 * remote.c (remote_terminal_inferior): Add 'self' argument.
12134 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12135 * inflow.c (terminal_inferior): Add 'self' argument.
12136 * inferior.h (terminal_inferior): Add 'self' argument.
12137 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12138 (go32_terminal_inferior): Add 'self' argument.
12140 2014-02-19 Tom Tromey <tromey@redhat.com>
12142 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12143 (target_terminal_init): Add argument.
12144 * target.c (debug_to_terminal_init): Add argument.
12145 (update_current_target): Update.
12146 * inflow.c (terminal_init_inferior): Add 'self' argument.
12147 * inferior.h (terminal_init_inferior): Add 'self' argument.
12148 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12149 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12153 * target.h (struct target_ops)
12154 <to_can_accel_watchpoint_condition>: Add argument.
12155 (target_can_accel_watchpoint_condition): Add argument.
12156 * target.c (debug_to_can_accel_watchpoint_condition): Add
12158 (update_current_target): Update.
12159 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12162 2014-02-19 Tom Tromey <tromey@redhat.com>
12164 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12166 (target_region_ok_for_hw_watchpoint): Add argument.
12167 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12168 (default_region_ok_for_hw_watchpoint): Add argument.
12169 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12170 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12172 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12174 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12176 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12178 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12180 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12182 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12183 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12185 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12186 Add 'self' argument.
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12190 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12192 (target_insert_watchpoint): Add argument.
12193 * target.c (debug_to_insert_watchpoint): Add argument.
12194 (update_current_target): Update.
12195 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12196 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12197 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12198 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12199 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12200 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12202 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12203 (procfs_insert_hw_watchpoint): Add 'self' argument.
12204 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12206 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12208 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12210 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12211 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12213 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12216 2014-02-19 Tom Tromey <tromey@redhat.com>
12218 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12220 (target_remove_watchpoint): Add argument.
12221 * target.c (debug_to_remove_watchpoint): Add argument.
12222 (update_current_target): Update.
12223 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12224 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12225 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12226 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12227 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12228 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12230 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12231 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12233 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12235 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12237 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12238 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12240 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12247 (target_remove_hw_breakpoint): Add argument.
12248 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12249 (update_current_target): Update.
12250 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12251 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12253 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12254 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12256 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12263 (target_insert_hw_breakpoint): Add argument.
12264 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12265 (update_current_target): Update.
12266 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12267 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12269 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12270 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12271 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12273 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12280 (target_can_use_hardware_watchpoint): Add argument.
12281 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12282 (update_current_target): Update.
12283 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12285 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12287 * remote.c (remote_check_watch_resources): Add 'self' argument.
12288 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12289 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12291 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12292 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12294 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12296 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12298 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12300 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12302 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12304 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12305 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12307 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12310 2014-02-19 Tom Tromey <tromey@redhat.com>
12312 * target.h (struct target_ops) <to_post_attach>: Add argument.
12313 (target_post_attach): Add argument.
12314 * target.c (debug_to_post_attach): Add argument.
12315 (update_current_target): Update.
12316 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12317 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12318 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12319 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12320 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * windows-nat.c (windows_close): Add 'self' argument.
12325 * tracepoint.c (tfile_close): Add 'self' argument.
12326 * target.h (struct target_ops) <to_close>: Add argument.
12327 * target.c (target_close): Add argument.
12328 (update_current_target): Update.
12329 * remote.c (remote_close): Add 'self' argument.
12330 * remote-sim.c (gdbsim_close): Add 'self' argument.
12331 * remote-mips.c (mips_close): Add 'self' argument.
12332 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12333 * record-full.c (record_full_close): Add 'self' argument.
12334 * record-btrace.c (record_btrace_close): Add 'self' argument.
12335 * monitor.h (monitor_close): Add 'self' argument.
12336 * monitor.c (monitor_close): Add 'self' argument.
12337 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12338 * linux-nat.c (linux_nat_close): Add argument.
12339 * go32-nat.c (go32_close): Add 'self' argument.
12340 * exec.c (exec_close_1): Add 'self' argument.
12341 * ctf.c (ctf_close): Add 'self' argument.
12342 * corelow.c (core_close): Add 'self' argument.
12343 (core_close_cleanup): Update.
12344 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12345 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12349 * remote.c (remote_load): New function.
12350 (init_remote_ops): Use it.
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12354 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12356 * common/linux-btrace.h (linux_supports_btrace): Update.
12357 * remote.c (remote_supports_btrace): Add "self" argument.
12358 * target-delegates.c: Rebuild.
12359 * target.c (target_supports_btrace): Remove.
12360 * target.h (struct target_ops) <to_supports_btrace>: Add
12361 target_ops argument.
12362 (target_supports_btrace): New define.
12364 2014-02-19 Tom Tromey <tromey@redhat.com>
12366 * record-full.c (record_full_beneath_to_resume_ops)
12367 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12368 (record_full_beneath_to_wait)
12369 (record_full_beneath_to_store_registers_ops)
12370 (record_full_beneath_to_store_registers)
12371 (record_full_beneath_to_xfer_partial_ops)
12372 (record_full_beneath_to_xfer_partial)
12373 (record_full_beneath_to_insert_breakpoint_ops)
12374 (record_full_beneath_to_insert_breakpoint)
12375 (record_full_beneath_to_remove_breakpoint_ops)
12376 (record_full_beneath_to_remove_breakpoint)
12377 (record_full_beneath_to_stopped_by_watchpoint)
12378 (record_full_beneath_to_stopped_data_address)
12379 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12380 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12381 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12382 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12383 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12384 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12385 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12386 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12387 (record_full_resume, record_full_wait_1)
12388 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12389 (record_full_store_registers, record_full_xfer_partial)
12390 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12391 (record_full_async, record_full_core_xfer_partial): Use target
12393 * target-delegates.c: Rebuild.
12394 * target.c (current_xfer_partial): Remove.
12395 (update_current_target): Do not INHERIT or de_fault
12396 to_insert_breakpoint, to_remove_breakpoint,
12397 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12398 to_is_async_p, to_async. Do not set to_xfer_partial field.
12399 (default_xfer_partial): Simplify.
12400 (current_xfer_partial): Remove.
12401 (target_wait, target_resume): Simplify.
12402 (find_default_can_async_p, find_default_is_async_p): Update.
12403 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12404 to_xfer_partial, to_stopped_by_watchpoint,
12405 to_stopped_data_address.
12406 (target_store_registers): Simplify.
12407 (forward_target_remove_breakpoint)
12408 (forward_target_insert_breakpoint): Remove.
12409 (target_remove_breakpoint, target_insert_breakpoint)
12410 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12411 * target.h (struct target_ops) <to_resume, to_wait,
12412 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12413 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12414 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12416 (forward_target_remove_breakpoint)
12417 (forward_target_insert_breakpoint): Remove.
12418 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12420 (record_btrace_insert_breakpoint): Delegate directly.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: New file.
12426 * target.c: Include target-delegates.c.
12427 (init_dummy_target): Call install_dummy_methods.
12428 (complete_target_initialization): Call install_delegators.
12429 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12430 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12431 * make-target-delegates: New file.
12433 2014-02-19 Tom Tromey <tromey@redhat.com>
12435 * record.c (find_record_target): Use find_target_at.
12436 * target.c (find_target_at): New function.
12437 * target.h (find_target_at): Declare.
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12442 Add 'ops' argument.
12443 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12445 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12446 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12448 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12450 * linux-nat.c (save_sigtrap): Update.
12451 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12452 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12453 (linux_nat_close): Update.
12454 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12456 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12458 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12459 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12460 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12461 (tmp_to_async): Add 'ops' argument.
12462 (record_full_stopped_by_watchpoint, record_full_async)
12463 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12465 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12466 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12467 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12468 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12469 (remote_is_async_p, remote_async): Add 'ops' argument.
12470 (remote_stopped_data_address): Update.
12471 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12472 * target.c (update_current_target)
12473 (find_default_can_async_p, find_default_is_async_p): Update.
12474 (init_dummy_target): Update.
12475 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12476 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12477 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12478 (target_can_async_p, target_is_async_p, target_async)
12479 (target_stopped_by_watchpoint): Update.
12481 2014-02-19 Yao Qi <yao@codesourcery.com>
12484 * gdbarch.sh: Remove startup_gdbarch.
12485 * gdbarch.c: Regenerated.
12486 * gdbarch.h: Likewise.
12488 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12490 * rl78-tdep.c (rl78_g10_register_name): New function.
12491 (rl78_return_value): Add g10 support.
12492 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12495 2014-02-17 Doug Evans <xdje42@gmail.com>
12497 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12498 (SUBDIR_GUILE_SRCS): Ditto.
12499 (scm-gsmob.o): Ditto.
12501 2014-02-17 Yao Qi <yao@codesourcery.com>
12503 * gnu-nat.c (ILL_RPC): Declare defined function.
12505 2014-02-17 Yao Qi <yao@codesourcery.com>
12507 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12508 mach_msg_type_number_t.
12509 (gnu_write_inferior): Likewise.
12511 2014-02-17 Yao Qi <yao@codesourcery.com>
12513 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12515 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12516 (inf_validate_procs, inf_signal): Likewise.
12517 (S_exception_raise_request): Likewise.
12518 (do_mach_notify_dead_name): Likewise.
12519 (steal_exc_port): Likewise.
12520 (gnu_read_inferior): Change 'copy_count''s type to
12521 mach_msg_type_number_t.
12522 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12525 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12527 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12528 flag. Adjust all users; in particular...
12529 (gnu_wait): ..., don't decrement its value in here...
12530 (gnu_create_inferior): ..., and instead set the flag in here,
12531 around the startup_inferior call, and call that one with
12532 START_INFERIOR_TRAPS_EXPECTED.
12534 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12535 (ILL_RPC): ... new macro.
12536 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12537 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12538 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12539 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12540 functions with ILL_RPC macro.
12541 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12542 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12543 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12544 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12545 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12546 (S_proc_getlogin_reply, S_proc_getsid_reply)
12547 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12548 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12549 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12550 (S_proc_getnports_reply, S_proc_is_important_reply)
12551 (S_proc_get_code_reply): New stub functions, generated with
12554 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12555 collected the type check structures.
12557 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12559 2014-02-14 Doug Evans <dje@google.com>
12561 * target.c (target_write_partial): Fix result type.
12563 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12565 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12566 the proper offsets to access fpregset_t.
12568 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12570 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12571 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12572 * h8300-tdep.c (setmachinelist): Remove global.
12573 * hppa-tdep.c (hppa_sigtramp): Remove global.
12574 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12575 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12576 * ravenscar-thread.c (update_target_observer): Remove global.
12577 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12579 2014-02-12 Tom Tromey <tromey@redhat.com>
12581 * common/rsp-low.c: Update comments.
12582 * common/rsp-low.h: Update comments.
12584 2014-02-12 Tom Tromey <tromey@redhat.com>
12586 * common/rsp-low.c (convert_ascii_to_int): Remove.
12587 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12589 2014-02-12 Tom Tromey <tromey@redhat.com>
12591 * common/rsp-low.h (unhexify): Don't declare.
12592 * common/rsp-low.c (unhexify): Remove.
12594 2014-02-12 Tom Tromey <tromey@redhat.com>
12596 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12597 * common/rsp-low.c (convert_int_to_ascii): Remove.
12599 2014-02-12 Tom Tromey <tromey@redhat.com>
12601 * common/rsp-low.h (hexify): Don't declare.
12602 * common/rsp-low.c (hexify): Remove.
12604 2014-02-12 Tom Tromey <tromey@redhat.com>
12606 * common/rsp-low.c (hexify): Never take strlen of argument.
12608 2014-02-12 Tom Tromey <tromey@redhat.com>
12610 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12611 * remote.c (extended_remote_run, remote_rcmd)
12612 (remote_download_trace_state_variable, remote_save_trace_data)
12613 (remote_set_trace_notes): Update.
12614 * tracepoint.c (encode_source_string, tfile_write_status)
12615 (tfile_write_uploaded_tsv): Update.
12617 2014-02-12 Tom Tromey <tromey@redhat.com>
12619 * tracepoint.c: Include rsp-low.h.
12620 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12621 * remote.c: Include rsp-low.h.
12622 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12623 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12624 (remote_unescape_input): Move to common/rsp-low.c.
12625 * common/rsp-low.h: New file.
12626 * common/rsp-low.c: New file.
12627 * Makefile.in (SFILES): Add common/rsp-low.c.
12628 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12629 (COMMON_OBS): Add rsp-low.o.
12630 (rsp-low.o): New target.
12632 2014-02-12 Tom Tromey <tromey@redhat.com>
12634 * utils.h: Include print-utils.h.
12635 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12636 (int_string, core_addr_to_string, core_addr_to_string_nz)
12637 (hex_string, hex_string_custom): Don't declare.
12638 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12639 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12640 (hex_string_custom, int_string, core_addr_to_string)
12641 (core_addr_to_string_nz, host_address_to_string): Move to
12642 common/print-utils.c.
12643 * common/print-utils.h: New file.
12644 * common/print-utils.c: New file
12645 * Makefile.in (SFILES): Add common/print-utils.c.
12646 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12647 (COMMON_OBS): Add print-utils.o.
12648 (print-utils.o): New target.
12650 2014-02-12 Tom Tromey <tromey@redhat.com>
12652 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12654 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12656 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12658 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12660 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12661 if a PT_IO ptrace request returns sucessfully but indicates that 0
12662 bytes were transferred.
12664 2014-02-12 Pedro Alves <palves@redhat.com>
12665 Kevin Buettner <kevinb@redhat.com>
12667 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12668 TYPE_INSTANCE_FLAG_CODE_SPACE.
12670 2014-02-12 Pedro Alves <palves@redhat.com>
12672 * h8300-tdep.c (pseudo_from_raw_register)
12673 (raw_from_pseudo_register): New functions.
12674 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12677 2014-02-12 Pedro Alves <palves@redhat.com>
12679 * h8300-tdep.c (h8300_register_sim_regno): New function.
12680 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12681 gdbarch_register_sim_regno hook.
12683 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12685 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12687 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12689 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12691 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12693 * obsd-tdep.h (obsd_init_abi): New prototype.
12694 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12695 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12696 (obsd_init_abi): New functions.
12697 * i386obsd-tdep.c: Include "obsd-tdep.h".
12698 (i386obsd_init_abi): Call obsd_init_abi.
12699 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12700 (amd64obsd_init_abi): Call obsd_init_abi.
12701 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12702 obsd-tdep.c to gdb_target_obs.
12704 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12706 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12707 double float arguments to 16-byte in the argument slots.
12709 2014-02-11 Doug Evans <xdje42@gmail.com>
12711 * configure.ac: Don't crash if pkg-config is not found and guile
12712 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12714 * configure: Regenerate.
12716 2014-02-11 Yao Qi <yao@codesourcery.com>
12718 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12719 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12720 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12721 * gnu-nat.c (gnu_xfer_memory): Likewise.
12722 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12723 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12724 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12725 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12727 2014-02-11 Yao Qi <yao@codesourcery.com>
12729 * target.h (enum target_xfer_error): Rename to ...
12730 (enum target_xfer_status): ... it. New. All users updated.
12731 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12733 (TARGET_XFER_STATUS_ERROR_P): New macro.
12734 (target_xfer_error_to_string): Remove declaration.
12735 (target_xfer_status_to_string): Declare.
12736 (target_xfer_partial_ftype): Adjust it.
12737 (struct target_ops) <to_xfer_partial>: Return
12738 target_xfer_status. Add argument xfered_len. Update
12740 * target.c (target_xfer_error_to_string): Rename to ...
12741 (target_xfer_status_to_string): ... it. New. All callers
12743 (target_read_live_memory): Likewise. Call target_xfer_partial
12744 instead of target_read.
12745 (memory_xfer_live_readonly_partial): Return
12746 target_xfer_status. Add argument xfered_len.
12747 (raw_memory_xfer_partial): Likewise.
12748 (memory_xfer_partial_1): Likewise.
12749 (memory_xfer_partial): Likewise.
12750 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12751 properly. Update debug message.
12752 (default_xfer_partial, current_xfer_partial): Likewise.
12753 (target_write_partial): Likewise.
12754 (target_read_partial): Likewise. All callers updated.
12755 (read_whatever_is_readable): Likewise.
12756 (target_write_with_progress): Likewise.
12757 (target_read_alloc_1): Likewise.
12759 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12760 * auxv.c (procfs_xfer_auxv): Likewise.
12761 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12762 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12763 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12764 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12765 * corefile.c (read_memory): Adjust.
12766 * corelow.c (core_xfer_partial): Likewise.
12767 * ctf.c (ctf_xfer_partial): Likewise.
12768 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12770 (darwin_xfer_partial): Likewise.
12771 * exec.c (section_table_xfer_memory_partial): Likewise. All
12773 (exec_xfer_partial): Likewise.
12774 * exec.h (section_table_xfer_memory_partial): Update
12776 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12778 (gnu_xfer_partial): Likewise.
12779 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12780 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12781 (ia64_hpux_xfer_solib_got): Likewise.
12782 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12783 type of 'partial_len' to ULONGEST.
12784 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12785 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12786 (linux_nat_xfer_partial): Likewise.
12787 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12788 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12789 * monitor.c (monitor_xfer_memory): Likewise.
12790 (monitor_xfer_partial): Likewise.
12791 * procfs.c (procfs_xfer_partial): Likewise.
12792 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12793 * record-full.c (record_full_xfer_partial): Likewise.
12794 (record_full_core_xfer_partial): Likewise.
12795 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12796 (gdbsim_xfer_partial): Likewise.
12797 * remote.c (remote_write_bytes_aux): Likewise. All callers
12799 (remote_write_bytes, remote_read_bytes): Likewise. All
12801 (remote_flash_erase): Likewise. All callers updated.
12802 (remote_write_qxfer): Likewise. All callers updated.
12803 (remote_read_qxfer): Likewise. All callers updated.
12804 (remote_xfer_partial): Likewise.
12805 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12806 (rs6000_xfer_shared_libraries): Likewise.
12807 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12808 (sol_thread_xfer_partial): Likewise.
12809 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12810 (sparc_xfer_partial): Likewise.
12811 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12813 (spu_xfer_partial): Likewise.
12814 * spu-multiarch.c (spu_xfer_partial): Likewise.
12815 * tracepoint.c (tfile_xfer_partial): Likewise.
12816 * windows-nat.c (windows_xfer_memory): Likewise.
12817 (windows_xfer_shared_libraries): Likewise.
12818 (windows_xfer_partial): Likewise.
12819 * valprint.c: Replace 'target_xfer_error' with
12820 'target_xfer_status' in comments.
12822 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12824 Checked in by Joel Brobecker <brobecker@adacore.com>.
12825 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12827 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12829 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12830 function parameters.
12832 2014-02-10 Will Newton <will.newton@linaro.org>
12834 * elfread.c (elf_rel_plt_read): Look for a .got section if
12835 looking up .got.plt fails.
12836 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12837 on address passed to elf_gnu_ifunc_record_cache.
12838 (elf_gnu_ifunc_resolve_addr): Likewise.
12839 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12841 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12843 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12844 (X_RETTURN): New macro.
12845 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12847 * sparc64-tdep.c (sparc64_init_abi): Hook
12848 sparc_in_function_epilogue_p.
12850 2014-02-10 Gary Benson <gbenson@redhat.com>
12852 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12853 Rename name_matcher to symbol_matcher.
12855 2014-02-10 Gary Benson <gbenson@redhat.com>
12857 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12858 Use expand_symtabs_file_matcher_ftype and
12859 expand_symtabs_symbol_matcher_ftype.
12861 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12863 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12864 (struct ada_symbol_cache): New.
12865 (ada_free_symbol_cache): Forward declare.
12866 (struct ada_pspace_data): New.
12867 (ada_pspace_data_handle): New static global.
12868 (get_ada_pspace_data, ada_pspace_data_cleanup)
12869 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12870 (cache_space, cache): Delete, now folded inside struct
12872 (ada_get_symbol_cache): New function.
12873 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12875 (_initialize_ada_language): Remove initialization of cache_space.
12876 Move call to observer_attach_inferior_exit up, grouping it
12877 with the other observer registrations inside this function.
12878 Rename command to be more general. Add call to
12879 register_program_space_data_with_cleanup.
12881 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12883 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12884 ada_new_objfile_observer.
12885 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12886 (_initialize_tasks): Update uses of ada_new_objfile_observer
12887 and ada_tasks_normal_stop_observer.
12889 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12891 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12892 returned by the 'Length attribute to integer.
12894 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12896 * ada-lang.c (_initialize_ada_language): Initialize
12897 cache_space obstack.
12899 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12901 * ada-lang.c (HASH_SIZE): New macro.
12902 (struct cache_entry): New type.
12903 (cache_space, cache): New static globals.
12904 (ada_clear_symbol_cache, find_entry): New functions.
12905 (lookup_cached_symbol, cache_symbol): Implement.
12906 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12907 (_initialize_ada_language): Attach ada_new_objfile_observer
12908 and ada_free_objfile_observer.
12910 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12912 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12913 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12914 struct block * parameter.
12915 (ada_lookup_symbol_list_worker): Constify local variable "block".
12916 Remove cast which is no longer necessary.
12918 2014-02-10 Doug Evans <xdje42@gmail.com>
12920 Add Guile as an extension language.
12921 * NEWS: Mention Guile scripting.
12922 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12923 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12924 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12925 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12926 (CLIBS): Add GUILE_LIBS.
12927 (install-guile): New rule.
12928 (guile.o): New rule.
12929 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12930 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12931 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12932 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12933 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12934 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12935 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12936 * configure.ac: New option --with-guile.
12937 * configure: Regenerate.
12938 * config.in: Regenerate.
12939 * auto-load.c: Remove #include "python/python.h". Add #include
12940 "gdb/section-scripts.h".
12941 (source_section_scripts): Handle Guile scripts.
12942 (_initialize_auto_load): Add name of Guile objfile script to
12943 scripts-directory help text.
12944 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12945 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12946 (struct breakpoint): New member scm_bp_object.
12947 * defs.h (enum command_control_type): New value guile_control.
12948 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12950 (show_user): Update comment.
12951 (_initialize_cli_cmds): Update help text for "show user". Update help
12952 text for max-user-call-depth.
12953 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12955 (multi_line_command_p): Add guile_control.
12956 (print_command_lines): Handle guile_control.
12957 (execute_control_command, recurse_read_control_structure): Ditto.
12958 (process_next_line): Recognize "guile" commands.
12959 * disasm.c (gdb_disassemble_info): Make non-static.
12960 * disasm.h: #include "dis-asm.h".
12961 (struct gdbarch): Add forward decl.
12962 (gdb_disassemble_info): Declare.
12963 * extension.c: #include "guile/guile.h".
12964 (extension_languages): Add guile.
12965 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12966 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12967 * gdbtypes.c (get_unsigned_type_max): New function.
12968 (get_signed_type_minmax): New function.
12969 * gdbtypes.h (get_unsigned_type_max): Declare.
12970 (get_signed_type_minmax): Declare.
12971 * guile/README: New file.
12972 * guile/guile-internal.h: New file.
12973 * guile/guile.c: New file.
12974 * guile/guile.h: New file.
12975 * guile/scm-arch.c: New file.
12976 * guile/scm-auto-load.c: New file.
12977 * guile/scm-block.c: New file.
12978 * guile/scm-breakpoint.c: New file.
12979 * guile/scm-disasm.c: New file.
12980 * guile/scm-exception.c: New file.
12981 * guile/scm-frame.c: New file.
12982 * guile/scm-gsmob.c: New file.
12983 * guile/scm-iterator.c: New file.
12984 * guile/scm-lazy-string.c: New file.
12985 * guile/scm-math.c: New file.
12986 * guile/scm-objfile.c: New file.
12987 * guile/scm-ports.c: New file.
12988 * guile/scm-pretty-print.c: New file.
12989 * guile/scm-safe-call.c: New file.
12990 * guile/scm-string.c: New file.
12991 * guile/scm-symbol.c: New file.
12992 * guile/scm-symtab.c: New file.
12993 * guile/scm-type.c: New file.
12994 * guile/scm-utils.c: New file.
12995 * guile/scm-value.c: New file.
12996 * guile/lib/gdb.scm: New file.
12997 * guile/lib/gdb/boot.scm: New file.
12998 * guile/lib/gdb/experimental.scm: New file.
12999 * guile/lib/gdb/init.scm: New file.
13000 * guile/lib/gdb/iterator.scm: New file.
13001 * guile/lib/gdb/printing.scm: New file.
13002 * guile/lib/gdb/types.scm: New file.
13003 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13004 (VPATH): Add $(GUILE_SRCDIR).
13005 (GUILE_DIR): New variable.
13006 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13007 (all): Add stamp-guile dependency.
13008 (stamp-guile): New rule.
13009 (clean-guile, install-guile, uninstall-guile): New rules.
13010 (install-only): Add install-guile dependency.
13011 (uninstall): Add uninstall-guile dependency.
13012 (clean): Add clean-guile dependency.
13014 2014-02-09 Doug Evans <xdje42@gmail.com>
13016 Revert this patch (which I approved, mea culpa).
13018 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13020 * Makefile.in (all-lib): Remove.
13021 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13023 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13025 Fix Python stack corruption.
13026 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13029 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13031 * Makefile.in (all-lib): Remove.
13032 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13034 2014-02-07 Doug Evans <dje@google.com>
13036 * extension-priv.h (extension_language_script_ops): Add comment.
13037 (extension_language_ops): Add comment.
13038 (active_ext_lang_state): Fix typo in comment.
13040 2014-02-07 Pedro Alves <palves@redhat.com>
13042 PR breakpoints/16292
13043 * infrun.c (handle_signal_stop) <signal arrives while stepping
13044 over a breakpoint>: Switch back to the stepping thread.
13046 2014-02-07 Yao Qi <yao@codesourcery.com>
13048 * target.c (target_xfer_partial): Return zero if LEN is zero.
13050 2014-02-07 Yao Qi <yao@codesourcery.com>
13052 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13053 (ld_so_xfer_auxv): Likewise.
13054 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13055 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13056 * corelow.c (core_xfer_partial): Likewise.
13057 * ctf.c (ctf_xfer_partial): Likewise.
13058 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13059 (darwin_xfer_partial): Likewise.
13060 * exec.c (exec_xfer_partial): Likewise.
13061 * gnu-nat.c (gnu_xfer_partial): Likewise.
13062 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13063 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13064 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13065 * linux-nat.c (linux_xfer_siginfo): Likewise.
13066 (linux_proc_xfer_spu): Likewise.
13067 * procfs.c (procfs_xfer_partial): Likewise.
13068 * record-full.c (record_full_xfer_partial): Likewise.
13069 (record_full_core_xfer_partial): Likewise.
13070 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13071 * remote.c (remote_write_qxfer): Likewise.
13072 (remote_write_qxfer, remote_read_qxfer): Likewise.
13073 (remote_xfer_partial): Likewise.
13074 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13075 (rs6000_xfer_shared_libraries): Likewise.
13076 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13077 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13078 (spu_xfer_partial): Likewise.
13079 * target.c (memory_xfer_partial_1): Likewise.
13080 * tracepoint.c (tfile_xfer_partial): Likewise.
13081 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13082 (windows_xfer_partial): Likewise.
13084 2014-02-07 Yao Qi <yao@codesourcery.com>
13086 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13088 (core_xfer_shared_libraries_aix): Likewise.
13089 * gdbarch.c, gdbarch.h: Regenerated.
13090 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13091 ULONGEST. Change 'len_avail' type to ULONGEST.
13092 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13093 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13095 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13097 2014-02-07 Yao Qi <yao@codesourcery.com>
13099 * corefile.c (memory_error): Get 'exception' from ERR and pass
13100 'exception' to throw_error.
13102 2014-02-06 Doug Evans <xdje42@gmail.com>
13104 * configure.ac (libpython checking): Remove all but python.o from
13105 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13106 * configure: Regenerate.
13108 * Makefile.in (SFILES): Add extension.c.
13109 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13110 (COMMON_OBS): Add extension.o.
13111 * extension.h: New file.
13112 * extension-priv.h: New file.
13113 * extension.c: New file.
13115 * python/python-internal.h: #include "extension.h".
13116 (gdbpy_auto_load_enabled): Declare.
13117 (gdbpy_apply_val_pretty_printer): Declare.
13118 (gdbpy_apply_frame_filter): Declare.
13119 (gdbpy_preserve_values): Declare.
13120 (gdbpy_breakpoint_cond_says_stop): Declare.
13121 (gdbpy_breakpoint_has_cond): Declare.
13122 (void source_python_script_for_objfile): Delete.
13123 * python/python.c: #include "extension-priv.h".
13124 Delete inclusion of "observer.h".
13125 (extension_language_python): Moved here and renamed from
13126 script_language_python in py-auto-load.c.
13127 Redefined to be of type extension_language_defn.
13128 (python_extension_script_ops): New global.
13129 (python_extension_ops): New global.
13130 (struct python_env): New member previous_active.
13131 (restore_python_env): Call restore_active_ext_lang.
13132 (ensure_python_env): Call set_active_ext_lang.
13133 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13135 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13137 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13139 (gdbpy_eval_from_control_command): Renamed from
13140 eval_python_from_control_command, made static. New arg extlang.
13141 (gdbpy_source_script) Renamed from source_python_script, made static.
13143 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13144 result to int. New arg extlang.
13145 (gdbpy_source_objfile_script): Renamed from
13146 source_python_script_for_objfile, made static. New arg extlang.
13147 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13148 static. New args extlang, extlang_printers. Change result type to
13150 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13151 static. New arg extlang. Rename arg printers to extlang_printers
13152 and change type to ext_lang_type_printers *.
13153 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13154 static. Replace argument arg with extlang, extlang_printers.
13155 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13156 (!HAVE_PYTHON, source_python_script): Delete.
13157 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13158 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13159 (!HAVE_PYTHON, start_type_printers): Delete.
13160 (!HAVE_PYTHON, apply_type_printers): Delete.
13161 (!HAVE_PYTHON, free_type_printers): Delete.
13162 (_initialize_python): Delete call to observer_attach_before_prompt.
13163 (finalize_python): Set/restore active extension language.
13164 (gdbpy_finish_initialization) Renamed from
13165 finish_python_initialization, made static. New arg extlang.
13166 (gdbpy_initialized): New function.
13167 * python/python.h: #include "extension.h". Delete #include
13168 "value.h", "mi/mi-cmds.h".
13169 (extension_language_python): Declare.
13170 (GDBPY_AUTO_FILE_NAME): Delete.
13171 (enum py_bt_status): Moved to extension.h and renamed to
13172 ext_lang_bt_status.
13173 (enum frame_filter_flags): Moved to extension.h.
13174 (enum py_frame_args): Moved to extension.h and renamed to
13175 ext_lang_frame_args.
13176 (finish_python_initialization): Delete.
13177 (eval_python_from_control_command): Delete.
13178 (source_python_script): Delete.
13179 (apply_val_pretty_printer): Delete.
13180 (apply_frame_filter): Delete.
13181 (preserve_python_values): Delete.
13182 (gdbpy_script_language_defn): Delete.
13183 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13184 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13186 * auto-load.c: #include "extension.h".
13187 (GDB_AUTO_FILE_NAME): Delete.
13188 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13189 (script_language_gdb): Delete, moved to extension.c and renamed to
13190 extension_language_gdb.
13191 (source_gdb_script_for_objfile): Delete.
13192 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13193 (loaded_script): Change type of language member to
13194 struct extension_language_defn *.
13195 (init_loaded_scripts_info): Initialize
13196 unsupported_script_warning_printed.
13197 (maybe_add_script): Make static. Change type of language arg to
13198 struct extension_language_defn *.
13199 (clear_section_scripts): Reset unsupported_script_warning_printed.
13200 (auto_load_objfile_script_1): Rewrite to use extension language API.
13201 (auto_load_objfile_script): Make public. Remove support-compiled-in
13202 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13203 (source_section_scripts): Rewrite to use extension language API.
13204 (load_auto_scripts_for_objfile): Rewrite to use
13205 auto_load_scripts_for_objfile.
13206 (collect_matching_scripts_data): Change type of language member to
13207 struct extension_language_defn *.
13208 (auto_load_info_scripts): Change type of language arg to
13209 struct extension_language_defn *.
13210 (unsupported_script_warning_print): New function.
13211 (script_not_found_warning_print): Make static.
13212 (_initialize_auto_load): Rewrite construction of scripts-directory
13214 * auto-load.h (struct objfile): Add forward decl.
13215 (struct script_language): Delete.
13216 (struct auto_load_pspace_info): Add forward decl.
13217 (struct extension_language_defn): Add forward decl.
13218 (maybe_add_script): Delete.
13219 (auto_load_objfile_script): Declare.
13220 (script_not_found_warning_print): Delete.
13221 (auto_load_info_scripts): Update prototype.
13222 (auto_load_gdb_scripts_enabled): Declare.
13223 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13224 auto_load_python_scripts_enabled and made public.
13225 (script_language_python): Delete, moved to python.c.
13226 (gdbpy_script_language_defn): Delete.
13227 (info_auto_load_python_scripts): Update to use
13228 extension_language_python.
13230 * breakpoint.c (condition_command): Replace call to
13231 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13232 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13233 with call to breakpoint_ext_lang_cond_says_stop.
13234 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13235 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13236 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13237 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13239 (local_setattro): Print name of extension language with existing
13242 * valprint.c (val_print, value_print): Update to call
13243 apply_ext_lang_val_pretty_printer.
13244 * cp-valprint.c (cp_print_value): Update call to
13245 apply_ext_lang_val_pretty_printer.
13246 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13247 (gdbpy_apply_val_pretty_printer): Renamed from
13248 apply_val_pretty_printer. New arg extlang.
13249 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13251 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13252 extension language API.
13253 * cli/cli-script.c (execute_control_command): Update to call
13254 eval_ext_lang_from_control_command.
13256 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13257 enum ext_lang_bt_status values. Update call to
13258 apply_ext_lang_frame_filter.
13259 (mi_cmd_stack_list_locals): Ditto.
13260 (mi_cmd_stack_list_args): Ditto.
13261 (mi_cmd_stack_list_variables): Ditto.
13262 * mi/mi-main.c: Delete #include "python/python-internal.h".
13263 Add #include "extension.h".
13264 (mi_cmd_list_features): Replace reference to python internal variable
13265 gdb_python_initialized with call to ext_lang_initialized_p.
13267 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13268 Update to use enum ext_lang_frame_args. Update to call
13269 apply_ext_lang_frame_filter.
13270 * python/py-framefilter.c (extract_sym): Update to use enum
13271 ext_lang_bt_status.
13272 (extract_value, py_print_type, py_print_value): Ditto.
13273 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13274 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13275 (py_print_frame): Ditto.
13276 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13277 New arg extlang. Update to use enum ext_lang_bt_status.
13279 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13280 finish_python_initialization. Replace with call to
13281 finish_ext_lang_initialization.
13283 * typeprint.c (do_free_global_table): Update to call
13284 free_ext_lang_type_printers.
13285 (create_global_typedef_table): Update to call
13286 start_ext_lang_type_printers.
13287 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13288 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13289 (type_print_options): Change type of global_printers from "void *"
13290 to "struct ext_lang_type_printers *".
13292 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13293 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13294 (gdbpy_preserve_values): Renamed from preserve_python_values.
13296 (!HAVE_PYTHON, preserve_python_values): Delete.
13298 * utils.c (quit_flag): Delete, moved to extension.c.
13299 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13302 * eval.c: Delete #include "python/python.h".
13303 * main.c: Delete #include "python/python.h".
13305 * defs.h: Update comment.
13307 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13311 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13313 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13316 2014-02-05 Yao Qi <yao@codesourcery.com>
13318 * remote.c (remote_pass_signals): Remove local 'buf' and use
13320 (remote_program_signals): Likewise.
13322 2014-02-05 Yao Qi <yao@codesourcery.com>
13324 * ctf.c: Include "inferior.h" and "gdbthread.h".
13325 (CTF_PID): A new macro.
13326 (ctf_open): Call inferior_appeared and add_thread_silent.
13327 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13328 (ctf_thread_alive): New function.
13329 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13331 2014-02-05 Yao Qi <yao@codesourcery.com>
13335 2013-05-24 Yao Qi <yao@codesourcery.com>
13337 * tracepoint.c (TFILE_PID): Remove.
13338 (tfile_open): Don't add thread and inferior.
13339 (tfile_close): Don't set 'inferior_ptid'. Don't call
13340 exit_inferior_silent.
13341 (tfile_thread_alive): Remove.
13342 (init_tfile_ops): Don't set field 'to_thread_alive' of
13345 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13347 * remote.c (remote_start_remote): Call remote_check_symbols even
13348 if only symbol-file (not file) has been given.
13350 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13352 * gdbarch.sh (skip_entrypoint): New callback.
13353 * gdbarch.c, gdbarch.h: Regenerate.
13354 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13355 * infrun.c (fill_in_stop_func): Likewise.
13356 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13357 (ppc_elfv2_elf_make_msymbol_special): New function.
13358 (ppc_elfv2_skip_entrypoint): Likewise.
13359 (ppc_linux_init_abi): Install them for ELFv2.
13361 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13363 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13364 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13365 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13366 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13367 structures returned in GPRs.
13369 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13371 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13372 offset to the stack parameter list for the ELFv2 ABI.
13374 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13376 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13377 set_gdbarch_convert_from_func_ptr_addr and
13378 set_gdbarch_elf_make_msymbol_special for ELFv1.
13379 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13380 function descriptors on ELFv1.
13381 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13382 set up r12 at function entry.
13384 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13386 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13387 (struct gdbarch_tdep): New member elf_abi.
13389 * rs6000-tdep.c: Include "elf/ppc64.h".
13390 (rs6000_gdbarch_init): Detect ELF ABI version.
13392 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13394 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13395 within a register pair holding a DFP 128-bit value on little-endian.
13396 (ppc64_sysv_abi_return_value_base): Likewise.
13397 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13398 (dfp_pseudo_register_write): Likewise.
13400 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13402 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13403 offset on little-endian when passing _Decimal32.
13404 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13406 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13408 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13409 of the overlapped FP register within the VSX register on little-
13411 (efpr_pseudo_register_write): Likewise.
13413 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13415 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13416 offset on little-endian when passing small structures.
13418 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13420 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13421 (struct ppc64_sysv_argpos): New data structure.
13422 (ppc64_sysv_abi_push_float): Remove.
13423 (ppc64_sysv_abi_push_val): New function.
13424 (ppc64_sysv_abi_push_integer): Likewise.
13425 (ppc64_sysv_abi_push_freg): Likewise.
13426 (ppc64_sysv_abi_push_vreg): Likewise.
13427 (ppc64_sysv_abi_push_param): Likewise.
13428 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13429 (ppc64_sysv_abi_return_value_base): New function.
13430 (ppc64_sysv_abi_return_value): Refactor to use it.
13432 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13434 * NEWS: Document new target powerpc64le-*-linux*.
13436 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13438 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13439 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13441 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13442 register set used in ELF core dumps. Add floating-point register set.
13444 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13446 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13447 dwarf2_to_gdb[] table using symbolic constants. Adjust
13448 penultimate entry from number representing the PC register
13449 to symbolic constant representing the MDR register. Add
13450 constant for the PC register to the end of the table.
13452 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13454 * bsd-kvm.c: Include <sys/param.h>
13456 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13458 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13460 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13462 * ada-lang.h (clear_ada_sym_cache): Delete.
13464 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13466 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13468 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13470 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13471 the sigreturn register save area only if the syscall is
13474 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13476 * valops.c (value_slice): Minor reformatting.
13478 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13480 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13482 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13484 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13485 New static globals.
13486 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13487 (ada_ignore_descriptive_types_p): New static global.
13488 (find_parallel_type_by_descriptive_type): Return immediately
13489 if ada_ignore_descriptive_types_p is set.
13490 (_initialize_ada_language): Register new commands "maintenance
13491 set ada", "maintenance show ada", "maintenance set ada
13492 ignore-descriptive-types" and "maintenance show ada
13493 ignore-descriptive-types".
13494 * NEWS: Add entry for new "maint ada set/show
13495 ignore-descriptive-types" commands.
13497 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13499 * record-btrace.c (record_btrace_close): Call btrace_teardown
13502 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13504 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13507 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13509 * ada-typeprint (type_is_full_subrange_of_target_type):
13511 (print_range): Add parameter bounds_prefered_p. If not set,
13512 try printing range types using the name of their base type.
13513 (print_range_type): Add parameter bounds_prefered_p.
13514 Use it in call to print_range.
13515 (print_array_type, ada_print_type): Update calls to print_range
13516 and print_range_type.
13518 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13520 * ada-typeprint.c (print_array_type, print_choices, print_range)
13521 (print_range_bound, print_dynamic_range_bound, print_range_type):
13522 Remove declaration.
13524 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13526 * ada-typeprint.c (print_range): Add missing empty line
13527 after local declaration.
13529 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13531 * ada-valprint.c (print_optional_low_bound): Get index_type's
13532 target type for as long as it is a TYPE_CODE_RANGE.
13534 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13536 * procfs.c (procfs_make_note_section): Remove assertion and
13537 associated comment.
13539 2014-01-24 Yao Qi <yao@codesourcery.com>
13541 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13542 * corelow.c (get_core_siginfo): Likewise.
13544 2014-01-24 Yao Qi <yao@codesourcery.com>
13546 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13547 ULONGEST. Don't check 'len' is negative.
13548 (remote_write_bytes): Change type of 'len' to ULONGEST.
13550 2014-01-23 Tom Tromey <tromey@redhat.com>
13553 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13554 Handle exception from frame.block.
13555 (FrameVars.fetch_frame_locals): Likewise.
13557 2014-01-23 Tom Tromey <tromey@redhat.com>
13560 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13561 on a NULL pointer. Move "goto error" to correct place.
13563 2014-01-23 Tom Tromey <tromey@redhat.com>
13566 * python/py-framefilter.c (apply_frame_filter): Call
13567 ensure_python_env after computing gdbarch.
13569 2014-01-23 Yao Qi <yao@codesourcery.com>
13571 * target.c (raw_memory_xfer_partial): Change argument type
13572 from void * to gdb_byte *.
13573 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13575 2014-01-22 Doug Evans <dje@google.com>
13577 New gdbserver option --debug-format=timestamp.
13578 * NEWS: Mention it.
13580 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13582 * syscalls/s390x-linux.xml: New file.
13583 * syscalls/s390-linux.xml: New file.
13584 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13585 (XML_SYSCALL_FILENAME_S390X): Likewise.
13586 (op_svc): New enum value for SVC opcode.
13587 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13588 (s390_linux_get_syscall_number): New function.
13589 (s390_gdbarch_init): Register '*get_syscall_number' and the
13590 syscall xml file name.
13591 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13592 "s390-linux.xml" and "s390x-linux.xml".
13593 * NEWS: Announce new feature.
13595 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13597 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13599 2014-01-22 Pedro Alves <palves@redhat.com>
13601 * xtensa-config.c: Include defs.h.
13603 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13605 * common/common-utils.h: Add "ARI:" comment beside __func__
13608 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13610 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13611 documentation a bit.
13613 2014-01-21 Roland McGrath <mcgrathr@google.com>
13615 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13616 * configure: Regenerate.
13617 * aclocal.m4: Regenerate.
13618 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13619 New substituted variables.
13620 (install-strip): New target.
13621 (INSTALL_SCRIPT): New substituted variable.
13622 (FLAGS_TO_PASS): Add it.
13623 (install-only): Use $(INSTALL_SCRIPT) rather than
13624 $(INSTALL_PROGRAM) for gcore.
13626 2014-01-20 Tom Tromey <tromey@redhat.com>
13628 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13631 2014-01-20 Tom Tromey <tromey@redhat.com>
13633 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13634 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13635 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13636 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13637 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13638 (struct cmd_list_element) <flags>: Remove.
13639 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13640 doc_allocated>: New fields.
13641 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13643 * maint.c (maintenance_do_deprecate): Update.
13644 * top.c (execute_command): Update.
13646 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13648 * xtensa-linux-nat.c: Include asm/ptrace.h.
13650 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13652 * Makefile.in (SFILES): Add d-support.c.
13653 (COMMON_OBS): Add d-support.o.
13654 * d-lang.h (d_parse_symbol): Add comment, now defined in
13656 * d-lang.c (parse_call_convention)
13657 (parse_attributes, parse_function_types)
13658 (parse_function_args, parse_type, parse_identifier)
13659 (call_convention_p, d_parse_symbol): Move functions to ...
13660 * d-support.c: ... New file.
13662 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13664 * d-lang.h (d_parse_symbol): Add declaration.
13665 * d-lang.c (extract_identifiers)
13666 (extract_type_info): Remove functions.
13667 (parse_call_convention, parse_attributes)
13668 (parse_function_types, parse_function_args)
13669 (parse_type, parse_identifier, call_convention_p)
13670 (d_parse_symbol): New functions.
13671 (d_demangle): Use d_parse_symbol to demangle D symbols.
13673 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13675 * d-lang.h (struct builtin_d_type): New data type.
13676 (builtin_d_type): Add declaration.
13677 * d-lang.c (d_language_arch_info, build_d_types)
13678 (builtin_d_type): New functions.
13679 (enum d_primitive_types): New data type.
13680 (d_language_defn): Change c_language_arch_info to
13681 d_language_arch_info.
13682 (d_type_data): New static variable.
13683 (_initialize_d_language): Initialize d_type_data.
13685 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13687 * d-lang.h (d_main_name): Add declaration.
13688 * d-lang.c (d_main_name): New function.
13689 * symtab.c (find_main_name): Add call to d_main_name.
13691 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13693 * d-lang.c (d_language_defn): Change macro_expansion_c to
13694 macro_expansion_no.
13696 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13698 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13700 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13702 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13703 gdb_exception" declaration.
13704 * remote.c (getpkt_or_notif_sane): Likewise.
13706 2014-01-17 Doug Evans <dje@google.com>
13708 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13709 function, contents of dirnames_to_char_ptr_vec_append moved here.
13710 (delim_string_to_char_ptr_vec): New function.
13711 (dirnames_to_char_ptr_vec_append): Rewrite.
13712 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13714 2014-01-17 Doug Evans <dje@google.com>
13716 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13718 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13719 #include "common-utils.h".
13720 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13721 * common/vec.h (VEC_ASSERT_PASS): Update.
13722 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13723 (MACH_CHECK_ERROR): Update.
13725 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13727 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13729 * gdbarch.h: Regenerate.
13731 2014-01-16 Tom Tromey <tromey@redhat.com>
13733 * value.c (struct value) <regnum>: Move earlier.
13735 2014-01-16 Tom Tromey <tromey@redhat.com>
13737 * remote.c (extended_remote_create_inferior): Rename from
13738 extended_remote_create_inferior_1. Add "ops" argument. Remove
13739 old implementation.
13741 2014-01-16 Pedro Alves <palves@redhat.com>
13743 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13744 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13747 2014-01-16 Doug Evans <dje@google.com>
13749 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13753 * btrace.h (btrace_thread_flag): New.
13754 (struct btrace_thread_info) <flags>: New.
13755 * record-btrace.c (record_btrace_resume_thread)
13756 (record_btrace_find_thread_to_move, btrace_step_no_history)
13757 (btrace_step_stopped, record_btrace_start_replaying)
13758 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13759 (record_btrace_find_resume_thread): New.
13760 (record_btrace_resume, record_btrace_wait): Extend.
13761 (record_btrace_can_execute_reverse): New.
13762 (record_btrace_open): Fail in non-stop mode.
13763 (record_btrace_set_replay): Split into this, ...
13764 (record_btrace_stop_replaying): ... this, ...
13765 (record_btrace_clear_histories): ... and this.
13766 (init_record_btrace_ops): Init to_can_execute_reverse.
13767 * NEWS: Announce it.
13769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13772 (forward_target_decr_pc_after_break)
13773 (target_decr_pc_after_break): New.
13774 * target.c (forward_target_decr_pc_after_break)
13775 (target_decr_pc_after_break): New.
13776 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13777 instead of gdbarch_decr_pc_after_break.
13778 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13779 instead of gdbarch_decr_pc_after_break.
13780 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13781 instead of gdbarch_decr_pc_after_break.
13782 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13783 instead of gdbarch_decr_pc_after_break.
13784 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13785 instead of gdbarch_decr_pc_after_break.
13786 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13787 instead of gdbarch_decr_pc_after_break.
13789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13791 * btrace.c: Include regcache.h.
13792 (btrace_add_pc): New.
13793 (btrace_enable): Call btrace_add_pc.
13794 (btrace_is_empty): New.
13795 * btrace.h (btrace_is_empty): New.
13796 * record-btrace.c (require_btrace, record_btrace_info): Call
13799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13801 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13802 Support delta reads.
13803 (linux_disable_btrace): Change return type.
13804 * common/linux-btrace.h (linux_read_btrace): Change parameters
13805 and return type to allow error reporting. Update users.
13806 (linux_disable_btrace): Change return type. Update users.
13807 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13809 (btrace_error): New.
13810 (btrace_block) <begin>: Comment on BEGIN == 0.
13811 * btrace.c (btrace_compute_ftrace): Start from the end of
13813 (btrace_stitch_trace, btrace_clear_history): New.
13814 (btrace_fetch): Read delta trace, return if replaying.
13815 (btrace_clear): Move clear history code to btrace_clear_history.
13816 (parse_xml_btrace): Throw an error if parsing failed.
13817 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13818 and return type to allow error reporting.
13819 (target_read_btrace): Change parameters and return type to allow
13821 * target.c (target_read_btrace): Update.
13822 * remote.c (remote_read_btrace): Support delta reads. Pass
13824 * NEWS: Announce it.
13826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13828 * record.h (record_btrace_frame_unwind)
13829 (record_btrace_tailcall_frame_unwind): New declarations.
13830 * dwarf2-frame: Include record.h
13831 (dwarf2_frame_cfa): Throw an error for btrace frames.
13832 * record-btrace.c: Include hashtab.h.
13833 (btrace_get_bfun_name): New.
13834 (btrace_call_history): Call btrace_get_bfun_name.
13835 (struct btrace_frame_cache): New.
13837 (bfcache_hash, bfcache_eq, bfcache_new): New.
13838 (btrace_get_frame_function): New.
13839 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13840 (record_btrace_frame_this_id): Compute own id.
13841 (record_btrace_frame_prev_register): Provide PC, throw_error
13842 for all other registers.
13843 (record_btrace_frame_sniffer): Detect btrace frames.
13844 (record_btrace_tailcall_frame_sniffer): New.
13845 (record_btrace_frame_dealloc_cache): New.
13846 (record_btrace_frame_unwind): Add new functions.
13847 (record_btrace_tailcall_frame_unwind): New.
13848 (_initialize_record_btrace): Allocate cache.
13849 * btrace.c (btrace_clear): Call reinit_frame_cache.
13850 * NEWS: Announce it.
13852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13854 * record-btrace.c (record_btrace_set_replay)
13855 (record_btrace_goto_begin, record_btrace_goto_end)
13856 (record_btrace_goto): New.
13857 (init_record_btrace_ops): Initialize them.
13858 * NEWS: Announce it.
13860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13862 * record-btrace.c (record_btrace_find_new_threads)
13863 (record_btrace_thread_alive): New.
13864 (init_record_btrace_ops): Initialize to_find_new_threads and
13867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13869 * record-btrace.c (record_btrace_resume): New.
13870 (record_btrace_wait): New.
13871 (init_record_btrace_ops): Initialize to_wait and to_resume.
13873 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13875 * record-btrace.c (record_btrace_xfer_partial)
13876 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13877 (record_btrace_allow_memory_access): New.
13878 (init_record_btrace_ops): Initialize new methods.
13879 * target.c (raw_memory_xfer_partial): Bail out if target reports
13880 that this memory is not available.
13882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13884 * target.h (target_ops) <to_insert_breakpoint>
13885 <to_remove_breakpoint>: Add target_ops parameter.
13886 (forward_target_insert_breakpoint): New.
13887 (forward_target_remove_breakpoint): New.
13888 (memory_remove_breakpoint, memory_insert_breakpoint):
13889 Add target_ops parameter.
13890 * target.c (target_insert_breakpoint): Split into this and ...
13891 (forward_target_insert_breakpoint): ... this.
13892 (target_remove_breakpoint): Split into this and ...
13893 (forward_target_remove_breakpoint): ... this.
13894 (debug_to_insert_breakpoint): Add target_ops parameter.
13895 Call forward_target_insert_breakpoint.
13896 (debug_to_remove_breakpoint): Add target_ops parameter.
13897 Call forward_target_remove_breakpoint.
13898 (update_current_target): Do not inherit or default to_insert_breakpoint
13899 and to_remove_breakpoint.
13900 * corelow.c (ignore): Add target_ops parameter.
13901 * exec.c (ignore): Add target_ops parameter.
13902 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13903 Add target_ops parameter.
13904 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13905 Add target_ops parameter.
13906 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13907 Add target_ops parameter.
13908 * record-full.c (record_full_beneath_to_insert_breakpoint)
13909 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13910 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13911 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13912 (record_full_core_remove_breakpoint): Add target_ops parameter.
13914 (record_full_beneath_to_insert_breakpoint_ops)
13915 (record_full_beneath_to_remove_breakpoint_ops)
13916 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13917 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13918 tmp_to_remove_breakpoint_ops,
13919 record_full_beneath_to_insert_breakpoint_ops, and
13920 record_full_beneath_to_remove_breakpoint_ops.
13921 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13922 (m32r_remove_breakpoint): Add target_ops parameter.
13923 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13924 Add target_ops parameter.
13925 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13926 Add target_ops parameter.
13928 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13929 Markus Metzger <markus.t.metzger@intel.com>
13931 * record-btrace.c: Include frame-unwind.h.
13932 (record_btrace_frame_unwind_stop_reason)
13933 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13934 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13936 (init_record_btrace_ops): Install it.
13938 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13940 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13943 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13945 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13948 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13950 * frame-unwind.c: Include target.h.
13951 (frame_unwind_try_unwinder): New function with code from ...
13952 (frame_unwind_find_by_frame): ... here. New variable
13953 unwinder_from_target, call also target_get_unwinder)
13954 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13955 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13956 * target.h (struct target_ops): New fields to_get_unwinder and
13957 to_get_tailcall_unwinder.
13958 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13960 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13962 * record-btrace.c (record_btrace_fetch_registers)
13963 (record_btrace_store_registers)
13964 (record_btrace_to_prepare_to_store): New.
13965 (init_record_btrace_ops): Add the above.
13967 2014-01-16 Tom Tromey <tromey@redhat.com>
13969 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13970 * target.h (struct target_ops) <to_prepare_to_store>: Add
13972 (target_prepare_to_store): Add argument.
13973 * target.c (debug_to_prepare_to_store): Add argument.
13974 (update_current_target): Update.
13975 * remote.c (remote_prepare_to_store): Add 'self' argument.
13976 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13977 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13978 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13979 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13981 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13982 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13983 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13984 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13985 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13989 * btrace.h (replay) <replay>: New.
13990 (btrace_is_replaying): New.
13991 * btrace.c (btrace_clear): Free replay iterator.
13992 (btrace_is_replaying): New.
13993 * record-btrace.c (record_btrace_is_replaying): New.
13994 (record_btrace_info): Print insn number if replaying.
13995 (record_btrace_insn_history): Start at replay position.
13996 (record_btrace_call_history): Start at replay position.
13997 (init_record_btrace_ops): Init to_record_is_replaying.
13999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14001 * record-btrace.c (record_btrace_insn_history_range): Include
14003 (record_btrace_insn_history_from): Adjust range.
14004 (record_btrace_call_history_range): Include
14006 (record_btrace_call_history_from): Adjust range.
14007 * NEWS: Announce changes.
14009 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14011 * record.h (enum record_print_flag)
14012 <record_print_indent_calls>: New.
14013 * record.c (get_call_history_modifiers): Recognize /c modifier.
14014 (_initialize_record): Document /c modifier.
14015 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14016 Reorder fields. Optionally indent the function name. Update
14018 * NEWS: Announce changes.
14020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14022 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14026 * btrace.c (ftrace_new_function): Start counting at one.
14027 * record-btrace.c (record_btrace_info): Adjust number of calls
14029 * NEWS: Announce it.
14031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14033 * record-btrace.c (btrace_call_history_insn_range): Print
14034 insn range as [begin, end].
14036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14038 * btrace.h (struct btrace_func_link): New.
14039 (enum btrace_function_flag): New.
14040 (struct btrace_inst): Rename to ...
14041 (struct btrace_insn): ...this. Update all users.
14042 (struct btrace_func) <ibegin, iend>: Remove.
14043 (struct btrace_func_link): New.
14044 (struct btrace_func): Rename to ...
14045 (struct btrace_function): ...this. Update all users.
14046 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14047 (number, level, flags>: New.
14048 (struct btrace_insn_iterator): Rename to ...
14049 (struct btrace_insn_history): ...this.
14051 (struct btrace_insn_iterator, btrace_call_iterator): New.
14052 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14053 (struct btrace_target_info) <begin, end, level>
14054 <insn_history, call_history>: New.
14055 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14056 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14057 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14058 (btrace_call_number, btrace_call_begin, btrace_call_end)
14059 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14060 (btrace_find_function_by_number, btrace_set_insn_history)
14061 (btrace_set_call_history): New.
14062 * btrace.c (btrace_init_insn_iterator)
14063 (btrace_init_func_iterator, compute_itrace): Remove.
14064 (ftrace_print_function_name, ftrace_print_filename)
14065 (ftrace_skip_file): Change
14066 parameter to const.
14067 (ftrace_init_func): Remove.
14068 (ftrace_debug): Use new btrace_function fields.
14069 (ftrace_function_switched): Also consider gaining and
14070 losing symbol information).
14071 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14072 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14073 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14075 (ftrace_new_function): Move. Remove debug print.
14076 (ftrace_update_lines, ftrace_update_insns): New.
14077 (ftrace_update_function): Check for call, ret, and jump.
14078 (compute_ftrace): Renamed to ...
14079 (btrace_compute_ftrace): ...this. Rewritten to compute call
14081 (btrace_fetch, btrace_clear): Updated.
14082 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14083 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14084 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14085 (btrace_call_number, btrace_call_begin, btrace_call_end)
14086 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14087 (btrace_find_function_by_number, btrace_set_insn_history)
14088 (btrace_set_call_history): New.
14089 * record-btrace.c (require_btrace): Use new btrace thread
14091 (record_btrace_info, btrace_insn_history)
14092 (record_btrace_insn_history, record_btrace_insn_history_range):
14093 Use new btrace thread info fields and new iterator.
14094 (btrace_func_history_src_line): Rename to ...
14095 (btrace_call_history_src_line): ...this. Use new btrace
14096 thread info fields.
14097 (btrace_func_history): Rename to ...
14098 (btrace_call_history): ...this. Use new btrace thread info
14099 fields and new iterator.
14100 (record_btrace_call_history, record_btrace_call_history_range):
14101 Use new btrace thread info fields and new iterator.
14103 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14105 * frame.h (frame_id_build_unavailable_stack_special): New.
14106 * frame.c (frame_id_build_unavailable_stack_special): New.
14108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14110 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14111 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14112 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14114 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14115 (i386_insn_is_jump, i386_jmp_p): New.
14116 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14117 insn_is_jump to gdbarch.
14118 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14119 * gdbarch.h: Regenerated.
14120 * gdbarch.c: Regenerated.
14121 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14122 (default_insn_is_jump): New.
14123 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14124 (default_insn_is_jump): New.
14126 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14128 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14130 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14131 (btrace_read_type) <btrace_read_new>: Change to ...
14132 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14136 * common/linux-btrace.c (linux_read_btrace): Free trace from
14137 previous iteration.
14139 2014-01-15 Doug Evans <dje@google.com>
14141 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14144 2014-01-15 Tom Tromey <tromey@redhat.com>
14146 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14147 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14148 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14149 (set_objfile_main_name): New function.
14150 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14151 language_of_main>: New fields.
14152 (set_objfile_main_name): Declare.
14153 * symtab.c (find_main_name): Loop over objfiles to find the main
14155 (set_main_name): Now static.
14156 (get_main_info): Add comment.
14157 * symtab.h (set_main_name): Don't declare.
14159 2014-01-15 Tom Tromey <tromey@redhat.com>
14161 * symtab.c (main_progspace_key): New global.
14162 (struct main_info): New.
14163 (name_of_main, language_of_main): Remove.
14164 (get_main_info, main_info_cleanup): New function.
14165 (set_main_name, main_name, main_language): Use get_main_info.
14166 (_initialize_symtab): Initialize main_progspace_key.
14168 2014-01-15 Tom Tromey <tromey@redhat.com>
14170 * dbxread.c (process_one_symbol): Update.
14171 * dwarf2read.c (read_partial_die): Update.
14172 * symfile.c (set_initial_language): Call main_language.
14173 * symtab.c (language_of_main): Now static.
14174 (set_main_name): Add 'lang' parameter.
14175 (find_main_name): Update.
14176 (main_language): New function.
14177 (symtab_observer_executable_changed): Update.
14178 * symtab.h (set_main_name): Update.
14179 (language_of_main): Remove.
14180 (main_language): Declare.
14182 2014-01-15 Tom Tromey <tromey@redhat.com>
14184 * symfile.c (init_entry_point_info): Use new "initialized" field.
14186 * objfiles.h (struct entry_point) <initialized>: New field.
14187 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14188 (struct objfile) <ei>: ...here. Remove.
14189 * objfiles.c (entry_point_address_query): Update.
14191 2014-01-15 Tom Tromey <tromey@redhat.com>
14193 * objfiles.c (entry_point_address_query): Relocate entry point
14195 (objfile_relocate1): Do not relocate entry point address.
14196 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14197 <the_bfd_section_index>: New field.
14198 * symfile.c (init_entry_point_info): Find the entry point's
14201 2014-01-15 Tom Tromey <tromey@redhat.com>
14203 * solib-frv.c (enable_break): Use entry_point_address_query.
14205 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14207 * NEWS: Add note on improved process record-replay on
14208 arm*-linux* targets.
14210 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14212 * arm-tdep.c (enum arm_record_result): New enum.
14213 (arm_record_unsupported_insn): New function.
14214 (arm_record_coproc_data_proc): Removed.
14215 (thumb2_record_ld_st_multiple): New function.
14216 (thumb2_record_ld_st_dual_ex_tbb): New function.
14217 (thumb2_record_data_proc_sreg_mimm): New function.
14218 (thumb2_record_ps_dest_generic): New function.
14219 (thumb2_record_branch_misc_cntrl): New function.
14220 (thumb2_record_str_single_data): New function.
14221 (thumb2_record_ld_mem_hints): New function.
14222 (thumb2_record_ld_word): New function.
14223 (thumb2_record_lmul_lmla_div): New function.
14224 (thumb2_record_decode_insn_handler): New function.
14225 (decode_insn): Add thumb32 instruction handlers.
14227 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14229 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14230 (struct arm_linux_record_tdep): Declare.
14231 (arm_canonicalize_syscall): New function.
14232 (arm_all_but_pc_registers_record): New function.
14233 (arm_linux_syscall_record): New function.
14234 (arm_linux_init_abi): Add syscall recording constructs.
14235 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14236 decoding. (arm_record_coproc_data_proc): Update arm syscall
14238 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14239 <arm_syscall_record>: New field.
14240 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14243 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14245 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14246 register for push instruction recording.
14248 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14250 * arm-tdep.c (thumb_record_misc): Update to correct logical
14251 error while recording ldm, ldmia and pop instructions.
14253 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14255 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14257 2014-01-15 Pedro Alves <palves@redhat.com>
14259 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14260 (go32_resume, go32_fetch_registers, store_register)
14261 (go32_store_registers, go32_prepare_to_store)
14262 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14263 (go32_create_inferior, go32_can_run, go32_terminal_init)
14264 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14267 2014-01-15 Tom Tromey <tromey@redhat.com>
14269 * target.h (async_callback_ftype): New typedef.
14270 (struct target_ops) <to_async>: Use it.
14272 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14274 * python/py-value.c (get_field_type): Remove unnecessary curly
14275 braces for single-statement if block.
14277 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14279 * python/py-type.c (convert_field): Add missing empty line
14280 after declarations.
14282 2014-01-14 Doug Evans <dje@google.com>
14284 * symfile.h (expand_symtabs_matching): Renamed from
14285 expand_partial_symbol_names. Update prototype.
14286 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14287 * symfile.c (expand_symtabs_matching): Renamed from
14288 expand_partial_symbol_names. New args file_matcher, kind.
14289 Rename arg fun to symbol_matcher.
14290 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14291 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14292 ada_expand_partial_symbol_name.
14293 (ada_make_symbol_completion_list): Update to call
14294 expand_symtabs_matching.
14295 (ada_add_global_exceptions): Call expand_symtabs_matching.
14296 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14297 call map_symbol_filenames.
14298 * symtab.c (sources_info): Update to call map_symbol_filenames.
14299 (search_symbols): Call expand_symtabs_matching.
14300 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14301 (default_make_symbol_completion_list_break_on): Update to call
14302 expand_symtabs_matching.
14303 (make_source_files_completion_list): Update to call
14304 map_symbol_filenames.
14306 2014-01-14 Doug Evans <dje@google.com>
14308 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14309 (expand_symtabs_symbol_matcher_ftype): New typedef.
14310 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14311 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14312 * symfile.c (expand_partial_symbol_names): Update to use
14313 expand_symtabs_symbol_matcher_ftype.
14314 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14315 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14316 Arg name_matcher renamed to symbol_matcher.
14317 * psymtab.c (recursively_search_psymtabs): Update to use
14318 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14320 (expand_symtabs_matching_via_partial): Update to use
14321 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14322 Arg name_matcher renamed to symbol_matcher.
14324 2014-01-14 Doug Evans <dje@google.com>
14326 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14327 (map_partial_symbol_filenames): Ditto.
14328 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14329 (map_partial_symbol_filenames): Ditto.
14330 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14331 (map_partial_symbol_filenames): Ditto.
14332 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14333 (map_partial_symbol_filenames): Ditto.
14334 * symtab.c: Delete #include "psymtab.h".
14336 2014-01-14 Pedro Alves <palves@redhat.com>
14337 Tom Tromey <tromey@redhat.com>
14339 * infrun.c (use_displaced_stepping): Use find_record_target
14340 instead of RECORD_IS_USED.
14341 (adjust_pc_after_break): Use record_full_is_used instead of
14343 * record-btrace.c (record_btrace_open): Call record_preopen
14344 instead of checking RECORD_IS_USED.
14345 * record-full.c (record_full_shortname)
14346 (record_full_core_shortname): New globals.
14347 (record_full_is_used): New function.
14348 (find_full_open): Call record_preopen instead of checking
14350 (init_record_full_ops): Set the target's shortname to
14351 record_full_shortname.
14352 (init_record_full_core_ops): Set the target's shortname to
14353 record_full_core_shortname.
14354 * record-full.h (record_full_is_used): Declare.
14355 * record.c (find_record_target): Make extern.
14356 (record_preopen): New function.
14357 * record.h (RECORD_IS_USED): Delete macro.
14358 (find_record_target, record_preopen): Declare functions.
14360 2014-01-14 Yao Qi <yao@codesourcery.com>
14362 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14363 'len''s type to ULONGEST.
14364 (core_xfer_shared_libraries_aix): Likewise.
14365 * gdbarch.c, gdbarch.h: Regenerated.
14366 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14367 Change type of 'len' to ULONGEST.
14368 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14369 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14371 2014-01-14 Yao Qi <yao@codesourcery.com>
14373 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14374 type of 'len' to ULONGEST.
14375 (linux_xfer_osdata_processgroups): Likewise.
14376 (linux_xfer_osdata_threads): Likewise.
14377 (linux_xfer_osdata_fds): Likewise.
14378 (linux_xfer_osdata_isockets): Likewise.
14379 (linux_xfer_osdata_shm): Likewise.
14380 (linux_xfer_osdata_sem): Likewise.
14381 (linux_xfer_osdata_msg): Likewise.
14382 (linux_common_xfer_osdata): Likewise.
14383 (struct osdata_type) <getter>: Likewise.
14384 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14387 2014-01-14 Yao Qi <yao@codesourcery.com>
14389 * target.h (target_xfer_partial_ftype): Update.
14390 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14392 * aix-thread.c (aix_thread_xfer_partial): Change type of
14393 argument 'len' to ULONGEST.
14394 * auxv.c (procfs_xfer_auxv): Likewise.
14395 (ld_so_xfer_auxv): Likewise.
14396 (memory_xfer_auxv): Likewise.
14397 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14398 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14399 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14400 * corelow.c (core_xfer_partial): Likewise.
14401 * ctf.c (ctf_xfer_partial): Likewise.
14402 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14404 (darwin_read_dyld_info): Likewise.
14405 (darwin_xfer_partial): Likewise.
14406 * exec.c (section_table_xfer_memory_partial): Likewise.
14407 (exec_xfer_partial): Likewise.
14408 * exec.h (section_table_xfer_memory_partial): Update
14410 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14411 instead of plongest.
14412 (gnu_xfer_partial): Likewise.
14413 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14414 (ia64_hpux_xfer_solib_got): Likewise.
14415 (ia64_hpux_xfer_partial): Likewise.
14416 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14417 * inf-ptrace.c (inf_ptrace_xfer_partial):
14418 * inf-ttrace.c (inf_ttrace_xfer_partial):
14419 * linux-nat.c (linux_xfer_siginfo): Likewise.
14420 (linux_nat_xfer_partial): Likewise.
14421 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14422 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14423 * monitor.c (monitor_xfer_memory): Likewise.
14424 (monitor_xfer_partial): Likewise.
14425 * procfs.c (procfs_xfer_partial): Likewise.
14426 * record-full.c (record_full_xfer_partial): Likewise.
14427 (record_full_core_xfer_partial): Likewise.
14428 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14429 instead of plongest.
14430 (gdbsim_xfer_partial): Likewise.
14431 * remote.c (remote_xfer_partial): Likewise.
14432 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14433 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14435 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14436 (rs6000_xfer_shared_libraries): Likewise.
14437 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14438 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14439 (sparc_xfer_partial): Likewise.
14440 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14441 (spu_xfer_partial): Likewise.
14442 * spu-multiarch.c (spu_xfer_partial): Likewise.
14443 * target.c (target_read_live_memory): Likewise.
14444 (memory_xfer_live_readonly_partial): Likewise.
14445 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14446 (target_xfer_partial, default_xfer_partial): Likewise.
14447 (current_xfer_partial): Likewise.
14448 * tracepoint.c (tfile_xfer_partial): Likewise.
14449 * windows-nat.c (windows_xfer_memory): Likewise. Call
14450 pulongest instead of plongest.
14451 (windows_xfer_partial): Likewise.
14452 (windows_xfer_shared_libraries): Likewise.
14454 2014-01-14 Yao Qi <yao@codesourcery.com>
14456 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14457 target_xfer_partial_ftype.
14459 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14463 * valops.c (value_struct_elt_bitpos): New function
14464 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14465 object to 'None' if the field name is an empty string ("").
14466 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14467 attribute to look for a field when 'name' is 'None'.
14468 (get_field_type): New function
14470 2014-01-13 Doug Evans <dje@google.com>
14473 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14474 (try_open_dwop_file): Ditto.
14475 * gdb_bfd.c: #include "vec.h".
14476 (bfdp): New typedef.
14477 (struct gdb_bfd_data): New member included_bfds.
14478 (gdb_bfd_unref): Unref all included bfds.
14479 (gdb_bfd_record_inclusion): New function.
14480 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14482 2014-01-13 Tom Tromey <tromey@redhat.com>
14484 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14486 2014-01-13 Tom Tromey <tromey@redhat.com>
14488 * defs.h (use_windows): Remove.
14489 * gdb.c (main): Update.
14490 * main.c (captured_main, gdb_main): Update.
14491 * main.h (struct captured_main_args) <use_windows>: Remove.
14492 * top.c (use_windows): Remove.
14494 2014-01-13 Tom Tromey <tromey@redhat.com>
14496 * defs.h (deprecated_flush_hook): Remove.
14498 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14501 * linux-thread-db.c (try_thread_db_load): Add parameter
14502 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14503 (try_thread_db_load_from_pdir_1): Move it there from here.
14504 (try_thread_db_load_from_sdir): Update caller.
14505 (try_thread_db_load_from_dir): Move it there from here.
14507 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14509 * regformats/regdat.sh: Always rewrite the register file.
14511 2014-01-13 Pedro Alves <palves@redhat.com>
14513 * Makefile.in (CHECK_HEADERS): New variable.
14514 (check-headers:): New rule.
14516 2014-01-13 Tom Tromey <tromey@redhat.com>
14518 * cli/cli-setshow.c (do_set_command): Update.
14519 * defs.h (deprecated_set_hook): Remove.
14520 * top.c (deprecated_set_hook): Remove.
14522 2014-01-13 Pedro Alves <palves@redhat.com>
14524 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14525 the tracepoint if the PC is a pseudo-register.
14527 2014-01-13 Tom Tromey <tromey@redhat.com>
14529 * defs.h (XCALLOC): Remove.
14530 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14531 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14532 * dwarf2loc.c (allocate_piece_closure): Likewise.
14533 * elfread.c (elf_symfile_segments): Likewise.
14534 (elf_symfile_segments): Likewise.
14535 * gdbtypes.c (copy_type_recursive): Likewise.
14536 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14537 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14538 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14540 * mt-tdep.c (mt_gdbarch_init): Likewise.
14541 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14543 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14544 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14545 * registry.c (registry_alloc_data): Likewise.
14546 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14547 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14548 * serial.c (serial_fdopen_ops): Likewise.
14549 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14551 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14552 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14555 2014-01-13 Tom Tromey <tromey@redhat.com>
14557 * defs.h (XMALLOC): Remove.
14558 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14559 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14560 * cli-out.c (struct ui_out *): Likewise.
14561 * cli/cli-dump.c (add_dump_command): Likewise.
14562 (add_dump_command): Likewise.
14563 * complaints.c (get_complaints): Likewise.
14564 (find_complaint): Likewise.
14565 * dwarf2-frame.c (execute_cfa_program): Likewise.
14566 * dwarf2read.c (abbrev_table_read_table): Likewise.
14567 * gdbarch.sh: Likewise.
14568 * gdbarch.c: Rebuild.
14569 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14570 * interps.c (interp_new): Likewise.
14571 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14572 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14573 * mi/mi-console.c (mi_console_file_new): Likewise.
14574 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14575 * mi/mi-out.c (mi_out_new): Likewise.
14576 * mi/mi-parse.c (mi_parse): Likewise.
14577 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14578 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14579 * observer.c (xalloc_observer_list_node): Likewise.
14580 * regcache.c (regcache_xmalloc_1): Likewise.
14581 * reggroups.c (reggroup_new): Likewise.
14582 (_initialize_reggroup): Likewise.
14583 * registry.c (register_data_with_cleanup): Likewise.
14584 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14585 * ser-base.c (serial_ttystate): Likewise.
14586 * ser-mingw.c (make_pipe_state): Likewise.
14587 * ser-pipe.c (pipe_open): Likewise.
14588 * serial.c (serial_open): Likewise.
14589 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14590 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14591 (tui_alloc_win_info): Likewise.
14592 (tui_add_content_elements): Likewise.
14593 * tui/tui-file.c (tui_file_new): Likewise.
14594 * tui/tui-out.c (tui_out_new): Likewise.
14595 * ui-file.c (mem_file_new): Likewise.
14596 * ui-out.c (push_level): Likewise.
14597 (make_cleanup_ui_out_end): Likewise.
14598 (append_header_to_list): Likewise.
14599 (ui_out_new): Likewise.
14600 * user-regs.c (user_reg_add_builtin): Likewise.
14602 2014-01-13 Tom Tromey <tromey@redhat.com>
14604 * defs.h (XZALLOC): Remove.
14605 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14606 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14607 (get_ada_tasks_inferior_data): Likewise.
14608 * auto-load.c (get_auto_load_pspace_data): Likewise.
14609 * auxv.c (get_auxv_inferior_data): Likewise.
14610 * bfd-target.c (target_bfd_reopen): Likewise.
14611 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14612 (deprecated_insert_raw_breakpoint): Likewise.
14613 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14614 * corelow.c (core_open): Likewise.
14615 * darwin-nat.c (darwin_check_new_threads): Likewise.
14616 (darwin_attach_pid): Likewise.
14617 * dummy-frame.c (dummy_frame_push): Likewise.
14618 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14619 * dwarf2loc.c (allocate_piece_closure): Likewise.
14620 * elfread.c (elf_symfile_segments): Likewise.
14621 * eval.c (ptrmath_type_p): Likewise.
14622 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14623 * gdbtypes.c (alloc_type_arch): Likewise.
14624 (alloc_type_instance): Likewise.
14625 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14626 * inf-child.c (inf_child_can_use_agent): Likewise.
14627 * inflow.c (get_inflow_inferior_data): Likewise.
14628 * infrun.c (save_infcall_suspend_state): Likewise.
14629 * jit.c (jit_reader_load): Likewise.
14630 (get_jit_objfile_data): Likewise.
14631 (get_jit_program_space_data): Likewise.
14632 (jit_object_open_impl): Likewise.
14633 (jit_symtab_open_impl): Likewise.
14634 (jit_block_open_impl): Likewise.
14635 (jit_frame_sniffer): Likewise.
14636 * linux-fork.c (add_fork): Likewise.
14637 * maint.c (make_command_stats_cleanup): Likewise.
14638 * objfiles.c (get_objfile_pspace_data): Likewise.
14639 * opencl-lang.c (struct lval_closure): Likewise.
14640 * osdata.c (osdata_start_osdata): Likewise.
14641 * progspace.c (new_address_space): Likewise.
14642 (add_program_space): Likewise.
14643 * remote-sim.c (get_sim_inferior_data): Likewise.
14644 * sh-tdep.c (sh_gdbarch_init): Likewise.
14645 * skip.c (Ignore): Likewise.
14646 (skip_delete_command): Likewise.
14647 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14648 (library_list_start_library): Likewise.
14649 (solib_aix_current_sos): Likewise.
14650 * solib-darwin.c (get_darwin_info): Likewise.
14651 (darwin_current_sos): Likewise.
14652 * solib-dsbt.c (get_dsbt_info): Likewise.
14653 * solib-ia64-hpux.c (new_so_list): Likewise.
14654 (ia64_hpux_get_solib_linkage_addr): Likewise.
14655 * solib-spu.c (append_ocl_sos): Likewise.
14656 (spu_current_sos): Likewise.
14657 * solib-svr4.c (get_svr4_info): Likewise.
14658 (svr4_keep_data_in_core): Likewise.
14659 (library_list_start_library): Likewise.
14660 (svr4_default_sos): Likewise.
14661 (svr4_read_so_list): Likewise.
14662 * solib-target.c (library_list_start_library): Likewise.
14663 (solib_target_current_sos): Likewise.
14664 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14665 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14666 * symfile.c (default_symfile_segments): Likewise.
14667 * target-descriptions.c (tdesc_data_init): Likewise.
14668 (tdesc_create_reg): Likewise.
14669 (struct tdesc_type *): Likewise.
14670 (tdesc_create_vector): Likewise.
14671 (tdesc_set_struct_size): Likewise.
14672 (struct tdesc_type *): Likewise.
14673 (tdesc_free_feature): Likewise.
14674 (tdesc_create_feature): Likewise.
14675 * windows-nat.c (windows_add_thread): Likewise.
14676 (windows_make_so): Likewise.
14677 * xml-support.c (gdb_xml_body_text): Likewise.
14678 (gdb_xml_create_parser_and_cleanup): Likewise.
14679 (xml_process_xincludes): Likewise.
14680 * xml-syscall.c (allocate_syscalls_info): Likewise.
14681 (syscall_create_syscall_desc): Likewise.
14683 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14685 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14686 function, with code from i386_stap_parse_special_token.
14687 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14688 (i386_stap_parse_special_token): Move code to the two functions
14689 above; simplify it.
14691 2014-01-09 Pedro Alves <palves@redhat.com>
14692 Hui Zhu <hui@codesourcery.com>
14695 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14696 bp_err_string. Don't mark the location shlib_disabled if the
14697 error thrown wasn't a generic or memory error. Catch errors
14698 thrown while inserting breakpoints in overlayed code. Output
14699 error message of software breakpoints.
14700 * remote.c (remote_insert_breakpoint): If this breakpoint has
14701 target-side commands but this stub doesn't support Z0 packets,
14702 throw NOT_SUPPORTED_ERROR error.
14703 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14704 * target.h (target_insert_breakpoint): Extend comment.
14705 (target_insert_hw_breakpoint): Add comment.
14707 2014-01-08 Pedro Alves <palves@redhat.com>
14709 * remote.c (remote_add_thread): Add threads silently if starting
14711 (remote_notice_new_inferior): If in all-stop, and starting up,
14712 don't call notice_new_inferior.
14713 (get_current_thread): New function, factored out from ...
14714 (add_current_inferior_and_thread): ... this. Adjust.
14715 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14716 found any thread, then select the remote's current thread as GDB's
14717 current thread too.
14719 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14721 * NEWS: Create a new section for the next release branch.
14722 Rename the section of the current branch, now that it has
14725 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14727 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14728 * version.in: Bump version to 7.7.50.DATE-cvs.
14730 2014-01-08 Yao Qi <yao@codesourcery.com>
14732 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14733 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14734 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14736 2014-01-08 Yao Qi <yao@codesourcery.com>
14738 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14739 return value of bfd_get_filename to symbol_file_add_from_bfd.
14741 2014-01-08 Pierre Muller <muller@sourceware.org>
14744 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14745 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14746 to prim_record_mininal_symbol_and_info.
14747 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14748 in call to prim_record_minimal_symbol_and_info.
14749 (read_pe_exported_syms): Set index field of section_data.
14751 2014-01-07 Andrew Pinski <apinski@cavium.com>
14753 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14754 * features/aarch64.c: Regenerate.
14756 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14758 * target.c (return_null): Define.
14759 (update_current_target): Use it instead of return_zero for
14760 functions that return a pointer.
14762 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14764 * source.c (add_path): Fix check for duplicated paths in the previously
14767 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14769 * ada-lang.c: Remove duplicated include statements.
14770 * alphabsd-nat.c: Ditto.
14771 * amd64-darwin-tdep.c: Ditto.
14772 * amd64fbsd-nat.c: Ditto.
14773 * auto-load.c: Ditto.
14775 * breakpoint.c: Ditto.
14776 * dbxread.c: Ditto.
14777 * fork-child.c: Ditto.
14778 * gdb_usleep.c: Ditto.
14779 * i386-darwin-tdep.c: Ditto.
14780 * i386fbsd-nat.c: Ditto.
14782 * inferior.c: Ditto.
14783 * jv-lang.c: Ditto.
14784 * linux-nat.c: Ditto.
14785 * linux-tdep.c: Ditto.
14786 * m68kbsd-nat.c: Ditto.
14787 * m68klinux-nat.c: Ditto.
14788 * microblaze-tdep.c: Ditto.
14789 * mips-linux-tdep.c: Ditto.
14790 * mn10300-tdep.c: Ditto.
14791 * nto-tdep.c: Ditto.
14792 * opencl-lang.c: Ditto.
14794 * printcmd.c: Ditto.
14795 * regcache.c: Ditto.
14796 * remote-m32r-sdi.c: Ditto.
14798 * symfile.c: Ditto.
14800 * tilegx-linux-nat.c: Ditto.
14801 * tilegx-tdep.c: Ditto.
14802 * tracepoint.c: Ditto.
14804 * vaxbsd-nat.c: Ditto.
14805 * windows-nat.c: Ditto.
14806 * xtensa-tdep.c: Ditto.
14808 2014-01-07 Yao Qi <yao@codesourcery.com>
14810 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14812 2014-01-07 Yao Qi <yao@codesourcery.com>
14813 Joel Brobecker <brobecker@adacore.com>
14815 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14816 (pdc_write_regs): Likewise.
14817 (fetch_regs_kernel_thread): Likewise.
14818 (store_regs_kernel_thread): Likewise.
14820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14822 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14823 tagged type objects to their actual type.
14825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14827 * ada-valprint.c (print_field_values): Add "language" parameter.
14828 Update calls to print_field_values and print_variant_part.
14829 Pass new parameter "language" in call to val_print instead
14830 of "current_language". Replace call to ada_val_print by call
14832 (print_variant_part): Add "language" parameter.
14833 (ada_val_print_struct_union): Update call to print_field_values.
14835 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14837 * ada-valprint.c (ui_memcpy): Delete.
14838 (ada_print_floating): Update documentation. Add empty line
14839 between between function documentation and implementation.
14840 Delete variable "buffer". Use ui_file_xstrdup in place of
14841 ui_file_put. Minor adjustments following this change.
14843 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14845 * ada-valprint.c (ada_val_print_string): New function,
14846 extracted from ada_val_print_array.
14847 (ada_val_print_array): Replace extracted code by call
14848 to ada_val_print_string followed by a return. Move
14849 "else" branch to the function's top block.
14851 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14853 * ada-valprint.c (ada_val_print_array): Move implementation
14854 down. Rename parameter "offset" and "val" into "offset_aligned"
14855 and "original_value" respectively. Add parameter "offset".
14857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14859 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14860 re-organizing the code. Change the "???" message printed
14861 when target type is a TYPE_CODE_UNDEF into
14862 "<ref to undefined type>".
14864 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14866 * ada-valprint.c (print_record): Delete, implementation inlined...
14867 (ada_val_print_struct_union): ... here. Remove call to
14868 ada_check_typedef in inlined implementation.
14870 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14872 * ada-valprint.c (ada_val_print_gnat_array): New function,
14873 extracted from ada_val_print_1;
14874 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14875 (ada_val_print_flt, ada_val_print_struct_union)
14876 (ada_val_print_ref): Likewise.
14877 (ada_val_print_1): Delete variables i and elttype.
14878 Replace extracted-out code by call to corresponding
14881 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14883 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14885 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14887 * ada-valprint.c (ada_val_print_1): Replace calls to
14888 ada_val_print_1 by calls to val_print.
14890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14892 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14893 Update calls to self accordingly. Replace calls to c_val_print
14894 by calls to val_print.
14896 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14898 * ada-valprint.c (print_record): Delete declaration.
14899 (adjust_type_signedness, ada_val_print_1): Likewise.
14900 (ada_val_print): Move function implementation down.
14901 (print_variant_part, print_field_values, print_record):
14902 Move function implementation up.
14904 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14906 * python/py-type.c (typy_get_name): New function.
14907 (type_object_getset): Add entry for attribute "name".
14908 * NEWS: Add entry mentioning this new attribute.
14910 2014-01-07 Yao Qi <yao@codesourcery.com>
14912 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14915 2014-01-07 Yao Qi <yao@codesourcery.com>
14917 * gnu-nat.c (info_port_rights): Add qualifier const to
14920 2014-01-07 Yao Qi <yao@codesourcery.com>
14922 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14924 2014-01-07 Yao Qi <yao@codesourcery.com>
14926 * gnu-nat.c (make_inf) Update declaration.
14927 (make_inf): Make it static.
14928 (inf_set_traced): Likewise.
14929 (inf_port_to_thread, inf_task_died_status): Likewise.
14931 2014-01-07 Yao Qi <yao@codesourcery.com>
14933 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14935 2014-01-07 Yao Qi <yao@codesourcery.com>
14937 * gnu-nat.c (_initialize_gnu_nat): Declare.
14939 2014-01-07 Yao Qi <yao@codesourcery.com>
14941 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14943 (struct gdbarch_info) <byte_order>: Change type to
14945 <byte_order_for_code>: Likewise.
14946 * gdbarch.c, gdbarch.h: Regenerated.
14948 2014-01-06 Sasha Smundak <asmundak@google.com>
14950 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14952 2014-01-06 Tom Tromey <tromey@redhat.com>
14954 * doublest.c (convert_doublest_to_floatformat): Use const, not
14956 * somread.c (som_symtab_read): Likewise.
14958 2014-01-07 Hui Zhu <hui@codesourcery.com>
14960 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14961 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14962 (gdb_bfd_fopen): Ditto.
14963 (gdb_bfd_openr): Ditto.
14964 (gdb_bfd_openw): Ditto.
14965 (gdb_bfd_openr_iovec): Ditto.
14966 (gdb_bfd_fdopenr): Ditto.
14967 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14968 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14970 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14972 * symfile-mem.c (symbol_file_add_from_memory): Removed
14973 gdb_bfd_stash_filename.
14975 2014-01-03 Doug Evans <dje@google.com>
14977 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14980 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14982 Update year range in copyright notice of all files.
14984 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14986 * top.c (print_gdb_version): Set copyright year to 2014.
14988 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14990 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14992 For older changes see ChangeLog-2013.
14998 version-control: never