1 2014-12-16 Doug Evans <xdje42@gmail.com>
3 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
4 find_type_baseclass_by_name. All callers updated.
6 2014-12-16 Doug Evans <xdje42@gmail.com>
8 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
9 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
10 (print_symbol_info): Delete arg symtab. All callers updated.
11 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
13 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
15 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
16 "Name" columns. Assure that the output is always indented.
18 2014-12-16 Joel Brobecker <brobecker@adacore.com>
20 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
22 (linux_enable_event_reporting): Add parameter "attached".
23 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
24 declaration. New function.
25 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
26 (linux_enable_event_reporting): Add new parameter "attached".
27 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
29 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
30 Use it. Update function description.
31 (linux_child_post_attach, linux_child_post_startup_inferior):
32 Update call to linux_enable_event_reporting.
34 2014-12-16 Yao Qi <yao@codesourcery.com>
36 * NEWS: Move some entries to "Changes since GDB 7.8" section.
38 2014-12-16 Yao Qi <yao@codesourcery.com>
40 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
43 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
45 * inferior.c (find_inferior_ptid): New function.
46 * inferior.h (find_inferior_ptid): New declaration.
47 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
48 * corelow.c (core_pid_to_str): Same.
49 * darwin-nat.c (darwin_resume): Same.
50 * infrun.c (fetch_inferior_event): Same.
51 (get_inferior_stop_soon): Same.
52 (handle_inferior_event): Same.
53 (handle_signal_stop): Same.
54 * linux-nat.c (resume_lwp): Same.
55 (stop_wait_callback): Same.
56 * mi/mi-interp.c (mi_new_thread): Same.
57 (mi_thread_exit): Same.
58 * proc-service.c (ps_pglobal_lookup): Same.
59 * record-btrace.c (record_btrace_step_thread): Same.
60 * remote-sim.c (gdbsim_close_inferior): Same.
61 (gdbsim_resume): Same.
63 * sol2-tdep.c (sol2_core_pid_to_str): Same.
64 * target.c (memory_xfer_partial_1): Same.
65 (default_thread_address_space): Same.
66 * thread.c (thread_change_ptid): Same.
67 (switch_to_thread): Same.
68 (do_restore_current_thread_cleanup): Same.
70 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
72 * defs.h (gdb_readline): Constify argument.
73 (gdb_readline_wrapper): Same.
74 (command_line_input): Same.
75 (deprecated_readline_hook): Same.
76 * top.c (deprecated_readline_hook): Same.
78 (gdb_readline_wrapper): Same.
79 (command_line_input): Constify argument. Pass prompt_arg to called
80 functions instead of local_prompt, overwriting prompt_arg if necessary.
81 * event-top.h (display_gdb_prompt): Constify argument.
82 * event-top.c (display_gdb_prompt): Same.
83 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
84 if building with Python 3.4 and up.
86 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
88 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
91 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
94 * memattr.c (mem_info_command): Remove "unsigned long" casts.
96 2014-12-13 Doug Evans <xdje42@gmail.com>
98 * utils.c (make_hex_string): Fix off-by-one error.
100 2014-12-13 Joel Brobecker <brobecker@adacore.com>
102 * ada-lang.h (ada_ensure_varsize_limit): Declare.
103 * ada-lang.c (check_size): Remove advance declaration.
104 (ada_ensure_varsize_limit): Renames check_size.
105 Replace calls to check_size by calls to ada_ensure_varsize_limit
107 * ada-valprint.c (ada_val_print_ref): Add call to
108 ada_ensure_varsize_limit. Add comment explaining why.
110 2014-12-13 Joel Brobecker <brobecker@adacore.com>
112 * utils.c (make_hex_string): Replace use of sprintf by use of
115 2014-12-13 Joel Brobecker <brobecker@adacore.com>
117 * compile/compile-object-load.c (link_callbacks_multiple_definition)
118 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
119 newline at end of warning message.
121 2014-12-13 Joel Brobecker <brobecker@adacore.com>
123 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
124 new "EXTRA-ARGS" parameter.
125 * configure.ac: If large-file support is disabled in GDB,
126 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
127 * configure: Regenerate.
129 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
132 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
133 TYPE if not TYPE_CODE_TYPEDEF.
135 2014-12-13 Joel Brobecker <brobecker@adacore.com>
138 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
139 the frame unwinder must either be the dwarf2_frame_unwind
140 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
141 stack_addr is valid before calling get_frame_base. Throw
142 an error if not valid.
144 2014-12-12 Doug Evans <xdje42@gmail.com>
146 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
149 2014-12-12 Doug Evans <xdje42@gmail.com>
151 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
152 All callers updated. Rename arg "namespace" to "symbol_name".
154 2014-12-12 Doug Evans <xdje42@gmail.com>
156 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
157 partial_map_symtabs_matching_filename. All uses updated.
158 (psym_find_pc_sect_compunit_symtab): Renamed from
159 find_pc_sect_compunit_symtab_from_partial. All uses updated.
160 Add function comment.
161 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
162 All uses updated. Add function comment.
163 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
164 Add function comment.
165 (psym_find_last_source_symtab): Renamed from
166 find_last_source_symtab_from_partial. All uses updated.
167 Add function comment.
168 (psym_forget_cached_source_info): Renamed from
169 forget_cached_source_info_partial. All uses updated.
170 Add function comment.
171 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
172 All uses updated. Add function comment.
173 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
174 updated. Add function comment.
175 (psym_expand_symtabs_for_function): Renamed from
176 read_symtabs_for_function. All uses updated. Update function comment.
177 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
178 All uses updated. Add function comment.
179 (psym_expand_symtabs_with_fullname): Renamed from
180 read_psymtabs_with_fullname. All uses updated. Add function comment.
181 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
182 All uses updated. Add function comment.
183 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
185 (psym_expand_symtabs_matching): Renamed from
186 expand_symtabs_matching_via_partial. All uses updated.
187 Add function comment.
188 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
189 Add function comment.
191 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
192 Jan Kratochvil <jan.kratochvil@redhat.com>
193 Tom Tromey <tromey@redhat.com>
196 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
198 * p-lang.c (pascal_language_defn): Update.
199 * opencl-lang.c (opencl_language_defn): Update.
200 * objc-lang.c (objc_language_defn): Update.
201 * m2-lang.c (m2_language_defn): Update.
202 * language.h (struct language_defn) <la_get_compile_instance,
203 la_compute_program>: New fields.
204 * language.c (unknown_language_defn, auto_language_defn)
205 (local_language_defn): Update.
206 * jv-lang.c (java_language_defn): Update.
207 * go-lang.c (go_language_defn): Update.
208 * f-lang.c (f_language_defn): Update.
209 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
210 * dwarf2loc.c (dwarf2_compile_property_to_c)
211 (locexpr_generate_c_location, loclist_generate_c_location): New
213 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
214 * defs.h (enum compile_i_scope_types): New.
215 (enum command_control_type) <compile_control>: New constant.
216 (struct command_line) <control_u>: New field.
217 * d-lang.c (d_language_defn): Update.
218 * compile/compile.c: New file.
219 * compile/compile-c-support.c: New file.
220 * compile/compile-c-symbols.c: New file.
221 * compile/compile-c-types.c: New file.
222 * compile/compile.h: New file.
223 * compile/compile-internal.h: New file.
224 * compile/compile-loc2c.c: New file.
225 * compile/compile-object-load.c: New file.
226 * compile/compile-object-load.h: New file.
227 * compile/compile-object-run.c: New file.
228 * compile/compile-object-run.h: New file.
229 * cli/cli-script.c (multi_line_command_p, print_command_lines)
230 (execute_control_command, process_next_line)
231 (recurse_read_control_structure): Handle compile_control.
232 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
233 * c-lang.c (c_language_defn, cplus_language_defn)
234 (asm_language_defn, minimal_language_defn): Update.
235 * ada-lang.c (ada_language_defn): Update.
236 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
238 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
239 (HFILES_NO_SRCDIR): Add compile.h.
240 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
241 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
242 (compile.o, compile-c-types.o, compile-c-symbols.o)
243 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
244 (compile-c-support.o): New targets.
246 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
248 * s390-linux-tdep.c (s390_gcc_target_options): New function.
249 (s390_gdbarch_init): Add it to gdbarch.
251 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
253 * linux-tdep.c: Include objfiles.h and infcall.h.
254 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
256 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
258 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
260 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
261 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
262 translate_register. Now public.
263 (dwarf2_compile_expr_to_ax): Update.
265 2014-12-12 Tom Tromey <tromey@redhat.com>
266 Jan Kratochvil <jan.kratochvil@redhat.com>
268 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
269 (dwarf_expr_frame_base): Update caller.
270 (dwarf_expr_frame_base_1): Rename to ...
271 (func_get_frame_base_dwarf_block): ... this and make it public.
272 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
274 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
276 2014-12-12 Tom Tromey <tromey@redhat.com>
278 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
280 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
281 dwarf2_compile_cfa_to_ax.
282 (dwarf2_compile_cfa_to_ax): Remove.
283 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
284 (dwarf2_compile_cfa_to_ax): Remove.
286 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
288 * infcall.h (call_function_by_hand_dummy): Declare.
289 * infcall.c (call_function_by_hand): Use
290 call_function_by_hand_dummy.
291 (call_function_by_hand_dummy): Rename from call_function_by_hand.
292 Add arguments. Register a destructor.
294 2014-12-12 Tom Tromey <tromey@redhat.com>
295 Jan Kratochvil <jan.kratochvil@redhat.com>
297 * osabi.h (osabi_triplet_regexp): Declare.
298 * osabi.c (struct osabi_names): New.
299 (gdb_osabi_names): Change type to struct osabi_names. Update
301 (gdbarch_osabi_name): Update.
302 (osabi_triplet_regexp): New function.
303 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
304 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
305 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
306 set_gdbarch_gnu_triplet_regexp.
307 * gdbarch.sh (gnu_triplet_regexp): New method.
308 * gdbarch.c, gdbarch.h: Rebuild.
309 * arch-utils.h (default_gnu_triplet_regexp): Declare.
310 * arch-utils.c (default_gnu_triplet_regexp): New function.
312 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
314 * arch-utils.c (default_infcall_mmap)
315 (default_gcc_target_options): New functions.
316 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
317 (GDB_MMAP_PROT_EXEC): Define.
318 (default_infcall_mmap, default_gcc_target_options): Declare.
319 * gdbarch.h: Rebuild.
320 * gdbarch.c: Rebuild.
321 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
323 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
325 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
327 (pop_dummy_frame): Call the destructor if it exists.
328 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
330 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
331 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
333 2014-12-12 Tom Tromey <tromey@redhat.com>
335 * gdbtypes.h (make_unqualified_type): Declare.
336 * gdbtypes.c (make_unqualified_type): New function.
338 2014-12-12 Tom Tromey <tromey@redhat.com>
340 * ui-file.h (ui_file_write_for_put): Declare.
341 * ui-file.c (ui_file_write_for_put): New function.
342 * mi/mi-out.c (do_write): Remove.
343 (mi_out_put): Use ui_file_write_for_put.
345 2014-12-12 Doug Evans <dje@google.com>
347 * NEWS: Mention gdb.lookup_objfile.
348 * python/python.c (GdbMethods): Add lookup_objfile.
349 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
350 * python/py-objfile.c: #include "symtab.h".
351 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
352 (objfpy_lookup_objfile_by_name): New function.
353 (objfpy_lookup_objfile_by_build_id): New function.
354 (gdbpy_lookup_objfile): New function.
356 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
358 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
359 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
360 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
362 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
365 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
367 * completer.c: Include "target.h", "reggroups.h", and
369 (reg_or_group_completer): New.
370 * completer.h (reg_or_group_completer): Declare.
371 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
372 the "info registers" and "info all-registers" commands and the
373 dbx-mode "lr" command.
375 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
377 * user-regs.c: Include "arch-utils.h", "command.h", and
379 (maintenance_print_user_registers): New.
380 (_initialize_user_regs): Register new "maint print user-registers"
382 * NEWS: Mention new GDB command "maint print user-registers".
384 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
385 Maciej W. Rozycki <macro@mips.com>
386 Pedro Alves <pedro@codesourcery.com>
388 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
389 remove `predefault' and `invalid_p' initializers.
390 (make_symbol_special): New architecture method.
391 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
392 (objfile, symbol): New declarations.
393 * arch-utils.h (default_elf_make_msymbol_special): Remove
395 (default_make_symbol_special): New prototype.
396 (default_adjust_dwarf2_addr): Likewise.
397 (default_adjust_dwarf2_line): Likewise.
398 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
399 * arch-utils.c (default_elf_make_msymbol_special): Remove
401 (default_make_symbol_special): New function.
402 (default_adjust_dwarf2_addr): Likewise.
403 (default_adjust_dwarf2_line): Likewise.
404 * dwarf2-frame.c (decode_frame_entry_1): Call
405 `gdbarch_adjust_dwarf2_addr'.
406 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
407 * dwarf2read.c (create_addrmap_from_index): Likewise.
408 (process_psymtab_comp_unit_reader): Likewise.
409 (add_partial_symbol): Likewise.
410 (add_partial_subprogram): Likewise.
411 (process_full_comp_unit): Likewise.
412 (read_file_scope): Likewise.
413 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
414 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
415 (read_call_site_scope): Likewise.
416 (dwarf2_ranges_read): Likewise.
417 (dwarf2_record_block_ranges): Likewise.
418 (read_attribute_value): Likewise.
419 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
420 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
421 * elfread.c (elf_symtab_read): Don't call
422 `gdbarch_elf_make_msymbol_special' if unset.
423 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
424 the ISA bit from the PC.
425 * mips-tdep.c (mips_unmake_compact_addr): New function.
426 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
427 address appropriately.
428 (mips_make_symbol_special): New function.
429 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
430 (mips_pc_is_mips16): Likewise.
431 (mips_pc_is_micromips): Likewise.
432 (mips_pc_isa): Likewise.
433 (mips_adjust_dwarf2_addr): New function.
434 (mips_adjust_dwarf2_line): Likewise.
435 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
436 (mips_addr_bits_remove): Likewise.
437 (mips_skip_trampoline_code): Likewise.
438 (mips_write_pc): Don't set the ISA bit.
439 (mips_eabi_push_dummy_call): Likewise.
440 (mips_o64_push_dummy_call): Likewise.
441 (mips_gdbarch_init): Install `mips_make_symbol_special',
442 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
444 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
445 target-specific symbol address adjustments.
446 * gdbarch.h: Regenerate.
447 * gdbarch.c: Regenerate.
449 2014-12-12 Yao Qi <yao@codesourcery.com>
452 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
453 'skip_pc'. Remove code skipping prologue instructions, use
454 arm_analyze_prologue instead.
455 (arm_analyze_prologue): Stop the scanning for unrecognized
456 instruction when skipping prologue.
458 2014-12-12 Yao Qi <yao@codesourcery.com>
460 * arm-tdep.c (arm_instruction_restores_sp): New function.
461 (arm_analyze_prologue): Call arm_instruction_restores_sp.
462 (arm_in_function_epilogue_p): Move code to
463 arm_instruction_restores_sp.
465 2014-12-11 Doug Evans <xdje42@gmail.com>
467 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
469 2014-12-11 Doug Evans <xdje42@gmail.com>
471 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
472 (symbol *lookup_symbol_via_quick_fns): Ditto.
473 (lookup_symbol_in_objfile): Add forward decl.
474 (lookup_global_symbol_from_objfile): Simplify, call
475 lookup_symbol_in_objfile.
477 2014-12-11 Doug Evans <xdje42@gmail.com>
479 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
481 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
484 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
485 it is marked as persistent.
487 2014-12-10 Doug Evans <xdje42@gmail.com>
489 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
490 closer to its subroutines.
492 2014-12-10 Doug Evans <xdje42@gmail.com>
494 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
496 2014-12-10 Doug Evans <xdje42@gmail.com>
498 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
499 * cp-support.c (cp_lookup_symbol_imports): Delete.
501 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
504 * target.c (cleanup_restore_target_terminal): New function.
505 (make_cleanup_restore_target_terminal): New function.
506 * target.h (make_cleanup_restore_target_terminal): New declaration.
507 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
509 2014-12-08 Doug Evans <dje@google.com>
511 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
513 2014-12-08 Doug Evans <dje@google.com>
515 * NEWS: Mention gdb.Objfile.owner.
516 * python/py-objfile.c (objfpy_get_owner): New function.
517 (objfile_getset): Add "owner".
519 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
521 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
522 (lookup_global_symbol_from_objfile): Call it.
524 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
526 Remove const from struct objfile *.
527 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
528 symtab.c, symtab.h: In these files.
530 2014-12-05 Andreas From <andreas.from@ericsson.com>
532 * MAINTAINERS (Write After Approval): Add "Andreas From"
534 2014-12-05 Doug Evans <xdje42@gmail.com>
538 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
540 2014-12-04 Doug Evans <dje@google.com>
542 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
543 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
544 (objfile_getset): Add "add_separate_debug_file".
546 2014-12-04 Doug Evans <dje@google.com>
548 * NEWS: Mention gdb.Objfile.build_id.
549 * build-id.c (build_id_bfd_get): Make non-static.
550 * build-id.h (build_id_bfd_get): Add declaration.
551 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
552 (OBJFPY_REQUIRE_VALID): New macro.
553 (objfpy_get_build_id): New function.
554 (objfile_getset): Add "build_id".
555 * utils.c (make_hex_string): New function.
556 * utils.h (make_hex_string): Add declaration.
558 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
560 * block.c (block_lookup_symbol_primary): New function.
561 * block.h (block_lookup_symbol_primary): New declaration.
562 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
563 Call block_lookup_symbol_primary.
565 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
567 * tramp-frame.h (tramp_frame): Add `validate' member.
568 * tramp-frame.c (tramp_frame_start): Validate trampoline before
570 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
571 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
572 (mips_linux_o32_sigframe): Initialize `validate' member.
573 (mips_linux_o32_rt_sigframe): Likewise.
574 (mips_linux_n32_rt_sigframe): Likewise.
575 (mips_linux_n64_rt_sigframe): Likewise.
576 (micromips_linux_o32_sigframe): New variable.
577 (micromips_linux_o32_rt_sigframe): Likewise.
578 (micromips_linux_n32_rt_sigframe): Likewise.
579 (micromips_linux_n64_rt_sigframe): Likewise.
580 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
581 (mips_linux_n32n64_sigframe_init): Likewise.
582 (mips_linux_sigframe_validate): New function.
583 (micromips_linux_sigframe_validate): Likewise.
584 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
586 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
588 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
589 * sparc-sol2-tdep.c: Include "regset.h".
590 (sparc32_sol2_supply_core_gregset): New function.
591 (sparc32_sol2_collect_core_gregset): Likewise.
592 (sparc32_sol2_supply_core_fpregset): Likewise.
593 (sparc32_sol2_collect_core_fpregset): Likewise.
594 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
595 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
596 tdep->fpregset/sizeof_fpregset.
597 * sparc64-sol2-tdep.c: Include "regset.h".
598 (sparc64_sol2_supply_core_gregset): New function.
599 (sparc64_sol2_collect_core_gregset): Likewise.
600 (sparc64_sol2_supply_core_fpregset): Likewise.
601 (sparc64_sol2_collect_core_fpregset): Likewise.
602 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
603 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
604 tdep->fpregset/sizeof_fpregset.
606 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
608 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
611 2014-12-02 Doug Evans <dje@google.com>
613 * symtab.c (symbol_init_cplus_specific): Delete.
614 (symbol_set_demangled_name): Remove special c++ support.
615 (symbol_get_demangled_name, symbol_set_language): Ditto.
616 * symtab.h (struct cplus_specific): Delete.
617 (struct general_symbol_info) <language_specific>: Remove
620 2014-12-02 Doug Evans <dje@google.com>
623 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
625 2014-12-02 Doug Evans <dje@google.com>
628 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
631 2014-12-02 Doug Evans <dje@google.com>
633 * dwarf2read.c (peek_die_abbrev): Improve error message text.
635 2014-12-02 Doug Evans <dje@google.com>
637 * valops.c (do_search_struct_field): Remove remnant of Chill support.
638 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
640 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
642 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
644 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
646 * NEWS: Mention new Python events.
647 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
648 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
649 (py-infevents.o): New rule.
650 * doc/observer.texi (inferior_call_pre, inferior_call_post)
651 (memory_changed, register_changed): New observers.
652 * infcall.c (call_function_by_hand): Notify observer before and
654 * python/py-event.h (inferior_call_kind): New enum.
655 (emit_inferior_call_event): New prototype.
656 (emit_register_changed_event): New prototype.
657 (emit_memory_changed_event): New prototype.
658 * python/py-events.h (events_object): New registries
659 inferior_call, memory_changed and register_changed.
660 * python/py-evts.c (gdbpy_initialize_py_events): Add the
661 inferior_call, memory_changed and register_changed registries.
662 * python/py-infevents.c: New.
663 * python/py-inferior.c (python_on_inferior_call_pre)
664 (python_on_inferior_call_post, python_on_register_change)
665 (python_on_memory_change): New functions.
666 (gdbpy_initialize_inferior): Attach python handler to new
668 * python/py-infthread.c(gdbpy_create_ptid_object): New.
669 (thpy_get_ptid) Use gdbpy_create_ptid_object.
670 * python/python-internal.h:
671 (gdbpy_create_ptid_object)
672 (gdbpy_initialize_inferior_call_pre_event)
673 (gdbpy_initialize_inferior_call_post_event)
674 (gdbpy_initialize_register_changed_event)
675 (gdbpy_initialize_memory_changed_event): New prototypes.
676 * python/python.c (_initialize_python): Initialize new events.
677 * valops.c (value_assign): Notify register_changed observer.
679 2014-12-02 Doug Evans <dje@google.com>
681 * python/py-infthread.c: Whitespace fixes.
683 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
685 * features/Makefile (s390-te-linux64-expedite): Replace
686 non-existant r14 and r15 by r14l and r15l, respectively.
687 * regformats/s390-te-linux64.dat: Regenerate.
689 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
691 * objfiles.c (allocate_objfile): Remove duplicate comment.
693 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
695 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
696 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
697 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
698 (supply_gregset, supply_fpregset): Remove.
699 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
700 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
703 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
705 Add add-auto-load-scripts-directory.
706 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
707 * auto-load.c (add_auto_load_dir): New function.
708 (_initialize_auto_load): Install it.
710 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
712 Pushed by Joel Brobecker <brobecker@adacore.com>.
713 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
715 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
717 * eval.c (evaluate_subexp): Check that the thread stack temporaries
718 are not already enabled before enabling them.
720 2014-11-29 Yao Qi <yao@codesourcery.com>
722 * arm-tdep.c (arm_analyze_prologue): Move local variables
723 'framereg' and 'framesize' to inner block. Move code to
726 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
728 * eval.c: Include gdbthread.h.
729 (evaluate_subexp): Enable thread stack temporaries before
730 evaluating a complete expression and clean them up after the
731 evaluation is complete.
732 * gdbthread.h: Include common/vec.h.
733 (value_ptr): New typedef.
734 (VEC (value_ptr)): New vector type.
735 (value_vec): New typedef.
736 (struct thread_info): Add new fields stack_temporaries_enabled
737 and stack_temporaries.
738 (enable_thread_stack_temporaries)
739 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
740 (get_last_thread_stack_temporary)
741 (value_in_thread_stack_temporaries): Declare.
742 * gdbtypes.c (class_or_union_p): New function.
743 * gdbtypes.h (class_or_union_p): Declare.
744 * infcall.c (call_function_by_hand): Store return values of class
745 type as temporaries on stack.
746 * thread.c (enable_thread_stack_temporaries): New function.
747 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
748 (get_last_thread_stack_temporary): Likewise.
749 (value_in_thread_stack_temporaries): Likewise.
750 * value.c (value_force_lval): New function.
751 * value.h (value_force_lval): Declare.
753 2014-11-28 Pierre Muller <muller@sourceware.org>
755 Pushed by Joel Brobecker <brobecker@adacore.com>.
756 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
759 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
761 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
762 * config/sparc/linux.mh (NATDEPFILES): Likewise.
763 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
764 * m68klinux-nat.c (fetch_core_registers): Remove.
765 (linux_elf_core_fns): Remove.
766 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
768 2014-11-28 Joel Brobecker <brobecker@adacore.com>
770 * utils.c (gdb_realpath): Rework comment about handling on
773 2014-11-28 Yao Qi <yao@codesourcery.com>
775 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
777 * gnulib/aclocal.m4: Re-generated.
778 * gnulib/config.in: Re-generated.
779 * gnulib/configure: Re-generated.
780 * gnulib/import/Makefile.am: Re-generated.
781 * gnulib/import/Makefile.in: Re-generated.
782 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
783 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
784 * import/basename-lgpl.c: New file.
785 * import/dirname-lgpl.c: New file.
786 * import/dirname.h: New file.
787 * import/m4/dirname.m4: New file.
788 * import/m4/malloc.m4: New file.
789 * import/m4/rename.m4: New file.
790 * import/m4/rmdir.m4: New file.
791 * import/m4/stdio_h.m4: New file.
792 * import/malloc.c: New file.
793 * import/rename.c: New file.
794 * import/rmdir.c: New file.
795 * import/same-inode.h: New file.
796 * import/stdio.c: New file.
797 * import/stdio.in.h: New file.
798 * import/stripslash.c: New file.
800 2014-11-28 Yao Qi <yao@codesourcery.com>
802 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
804 * config.in: Re-generated.
805 * configure: Re-generated.
806 * utils.c (gdb_realpath): Remove code calling realpath,
807 canonicalize_file_name and pathconf.
808 [!_WIN32]: Call canonicalize_file_name.
810 2014-11-28 Yao Qi <yao@codesourcery.com>
812 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
814 * aclocal.m4: Re-generated.
815 * config.in: Re-generated.
816 * configure: Re-generated.
817 * import/Makefile.am: Re-generated.
818 * import/Makefile.in: Re-generated.
819 * import/m4/gnulib-cache.m4: Re-generated.
820 * import/m4/gnulib-comp.m4: Re-generated.
821 * import/canonicalize-lgpl.c: New file.
822 * import/extra/snippet/_Noreturn.h: New file.
823 * import/m4/canonicalize.m4: New file.
824 * import/m4/double-slash-root.m4: New file.
825 * import/m4/eealloc.m4: New file.
826 * import/m4/malloca.m4: New file.
827 * import/m4/nocrash.m4: New file.
828 * import/m4/stdlib_h.m4: New file.
829 * import/malloca.c: New file.
830 * import/malloca.h: New file.
831 * import/malloca.valgrind: New file.
833 2014-11-28 Yao Qi <yao@codesourcery.com>
835 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
836 * config.in, configure: Regenerate.
837 * symfile.c (find_separate_debug_file_by_debuglink): Remove
838 code checking HAVE_LSTAT is defined.
840 2014-11-28 Yao Qi <yao@codesourcery.com>
842 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
844 * gnulib/aclocal.m4: Re-generated.
845 * gnulib/config.in: Re-generated.
846 * gnulib/configure: Re-generated.
847 * gnulib/import/Makefile.am: Re-generated.
848 * gnulib/import/Makefile.in: Re-generated.
849 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
850 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
851 * gnulib/import/lstat.c: New file.
852 * gnulib/import/m4/lstat.m4: New file.
854 2014-11-28 Yao Qi <yao@codesourcery.com>
856 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
857 * config.in, configure: Re-generate.
858 * inf-child.c (inf_child_fileio_readlink): Don't check
859 HAVE_READLINK is defined.
861 2014-11-28 Yao Qi <yao@codesourcery.com>
863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
864 * gnulib/aclocal.m4: Re-generated.
865 * gnulib/config.in: Likewise.
866 * gnulib/configure: Likewise.
867 * gnulib/import/Makefile.am: Likewise.
868 * gnulib/import/Makefile.in: Likewise.
869 * gnulib/import/m4/gnulib-cache.m4: Likewise.
870 * gnulib/import/m4/gnulib-comp.m4: Likewise.
871 * gnulib/import/dosname.h: New file
872 * gnulib/import/m4/largefile.m4: New file.
873 * gnulib/import/m4/readlink.m4: New file.
874 * gnulib/import/m4/stat.m4: New file.
875 * gnulib/import/readlink.c: New file.
876 * gnulib/import/stat.c: New file.
878 2014-11-26 Mark Wielaard <mjw@redhat.com>
880 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
881 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
883 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
885 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
886 that there can be only one stack adjustment in the prologue
887 with tests to detect specific disallowed stack adjustments.
889 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
891 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
894 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
896 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
897 the instruction as well as reading it from memory.
898 (nios2_match_add): New.
899 (nios2_match_sub): New.
900 (nios2_match_addi): New.
901 (nios2_match_orhi): New.
902 (nios2_match_stw): New.
903 (nios2_match_ldw): New.
904 (nios2_match_rdctl): New.
905 (enum branch_condition): New.
906 (nios2_match_branch): New.
907 (nios2_match_jmpi): New.
908 (nios2_match_calli): New.
909 (nios2_match_jmpr): New.
910 (nios2_match_callr): New.
911 (nios2_match_break): New.
912 (nios2_match_trap): New.
913 (nios2_in_epilogue_p): Rewrite to use new functions.
914 (nios2_analyze_prologue): Likewise.
915 (nios2_skip_prologue): Delete unused local limit_pc.
916 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
917 (nios2_get_next_pc): Rewrite to use new functions.
919 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
921 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
923 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
925 Pushed by Joel Brobecker <brobecker@adacore.com>
926 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
927 elements pi_len by the size of the elements before calling
929 (inf_validate_task_sc): Likewise, and properly deallocate the
932 2014-11-23 Doug Evans <xdje42@gmail.com>
934 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
935 number and name if present. All callers updated.
936 (dump_fn_fieldlists): Fix indentation of args.
938 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
940 * MAINTAINERS (Write After Approval): Add myself.
942 2014-11-23 Joel Brobecker <brobecker@adacore.com>
944 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
945 to a bp_call_dummy breakpoint type.
947 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
949 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
950 registering the signal handler.
952 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
954 * event-top.h (call_stdin_event_handler_again_p): Declare.
955 * event-top.c (call_stdin_event_handler_again_p): Define.
956 (stdin_event_handler): Use it.
957 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
958 handler again if there is pending input following a
961 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
963 Pushed by Joel Brobecker <brobecker@adacore.com>
964 * linux-fork.c (checkpoint_command): Print index of new
965 checkpoint in response message.
967 2014-11-23 Yao Qi <yao@codesourcery.com>
969 * valprint.c (read_string): Move local variables 'found_nul',
970 'chunksize' and 'limit' to inner scope. Update comments.
972 2014-11-22 Doug Evans <xdje42@gmail.com>
974 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
976 (search_symbols): Fix comments and whitespace.
978 2014-11-22 Doug Evans <xdje42@gmail.com>
980 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
982 2014-11-21 Doug Evans <dje@google.com>
984 * psymtab.c (psymtab_search_name): Fix whitespace.
986 2014-11-21 Yao Qi <yao@codesourcery.com>
988 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
990 * gnulib/import/Makefile.am: Re-generated.
991 * gnulib/import/Makefile.in: Likewise.
992 * gnulib/import/m4/gnulib-cache.m4: Likewise.
994 2014-11-21 Yao Qi <yao@codesourcery.com>
996 * gdb_wchar.h: Include wchar.h and wctype.h.
997 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
998 include wchar.h and wctype.h.
999 Don't check HAVE_WCHAR_H.
1001 2014-11-21 Yao Qi <yao@codesourcery.com>
1003 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1005 * gnulib/import/Makefile.am: Re-generated.
1006 * gnulib/import/Makefile.in: Likewise.
1007 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1009 2014-11-21 Yao Qi <yao@codesourcery.com>
1011 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1013 * gnulib/import/Makefile.am: Re-generated.
1014 * gnulib/import/Makefile.in: Likewise.
1015 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1017 2014-11-21 Yao Qi <yao@codesourcery.com>
1019 * common/common-defs.h: Include alloca.h
1020 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1021 * configure: Re-generated.
1022 * defs.h: Remove code handling alloca.
1023 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1026 2014-11-21 Yao Qi <yao@codesourcery.com>
1028 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1030 * gnulib/import/Makefile.am: Re-generated.
1031 * gnulib/import/Makefile.in: Likewise..
1032 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1034 2014-11-21 Yao Qi <yao@codesourcery.com>
1036 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1039 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1041 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1042 flag_unsigned if HIGH_BOUND is constant and negative.
1044 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1046 PR breakpoints/10737
1047 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1048 modifier from "struct gdbarch" when compiling without Expat (XML)
1050 (get_syscall_by_number): Likewise.
1051 (get_syscall_by_name): Likewise.
1052 (get_syscall_names): Likewise.
1054 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1056 PR breakpoints/10737
1057 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1058 set_xml_syscall_file_name to provide gdbarch.
1059 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1060 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1061 * breakpoint.c (print_it_catch_syscall): Adjust call to
1062 get_syscall_by_number to provide gdbarch.
1063 (print_one_catch_syscall): Likewise.
1064 (print_mention_catch_syscall): Likewise.
1065 (print_recreate_catch_syscall): Likewise.
1066 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1067 and get_syscall_by_name to provide gdbarch.
1068 (catch_syscall_completer): Adjust call to get_syscall_names to
1070 * gdbarch.c: Regenerate.
1071 * gdbarch.h: Likewise.
1072 * gdbarch.sh: Forward declare "struct syscalls_info".
1073 (xml_syscall_file): New variable.
1074 (syscalls_info): Likewise.
1075 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1076 set_xml_syscall_file_name to provide gdbarch.
1077 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1078 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1079 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1080 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1081 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1082 * xml-syscall.c: Include gdbarch.h.
1083 (set_xml_syscall_file_name): Accept gdbarch parameter.
1084 (get_syscall_by_number): Likewise.
1085 (get_syscall_by_name): Likewise.
1086 (get_syscall_names): Likewise.
1087 (my_gdb_datadir): Delete global variable.
1088 (struct syscalls_info) <my_gdb_datadir>: New variable.
1089 (struct syscalls_info) <sysinfo>: Rename variable to
1091 (sysinfo): Delete global variable.
1092 (have_initialized_sysinfo): Likewise.
1093 (xml_syscall_file): Likewise.
1094 (sysinfo_free_syscalls_desc): Rename to...
1095 (syscalls_info_free_syscalls_desc): ... this.
1096 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1097 code to the new layout of "struct syscalls_info".
1098 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1100 (syscall_create_syscall_desc): Likewise.
1101 (syscall_start_syscall): Likewise.
1102 (syscall_parse_xml): Likewise.
1103 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1104 (init_sysinfo): Rename to...
1105 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1106 Adjust function to deal with gdbarch.
1107 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1108 gdbarch as a parameter. Adjust code.
1109 (xml_get_syscall_name): Likewise.
1110 (xml_list_of_syscalls): Likewise.
1111 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1112 (get_syscall_by_number): Likewise.
1113 (get_syscall_by_name): Likewise.
1114 (get_syscall_names): Likewise.
1115 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1116 (get_syscall_by_number): Likewise.
1117 (get_syscall_by_name): Likewise.
1118 (get_syscall_names): Likewise.
1120 2014-11-20 Doug Evans <xdje42@gmail.com>
1122 Split struct symtab into two: struct symtab and compunit_symtab.
1123 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1124 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1125 to "struct compunit_symtab *". All callers updated.
1126 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1127 "struct symtab *" argument to "struct compunit_symtab *".
1128 All callers updated.
1129 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1130 result to "struct compunit_symtab *". All callers updated.
1131 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1132 Change result to "struct compunit_symtab *". All callers updated.
1133 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1134 hange type to "struct compunit_symtab *". All uses updated.
1135 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1136 Change type to "struct compunit_symtab *". All uses updated.
1137 * buildsym.c (struct buildsym_compunit): New struct.
1138 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1139 (buildsym_compunit): New static global.
1140 (finish_block_internal): Update to fetch objfile from
1142 (make_blockvector): Delete objfile argument.
1143 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1144 debugformat, producer.
1145 (start_buildsym_compunit): New function.
1146 (free_buildsym_compunit): Renamed from free_subfiles_list.
1147 All callers updated.
1148 (patch_subfile_names): Rewrite to use buildsym_compunit.
1149 (get_compunit_symtab): New function.
1150 (get_macro_table): Delete argument comp_dir. All callers updated.
1151 (start_symtab): Change result to "struct compunit_symtab *".
1152 All callers updated. Create the subfile of the main source file.
1153 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1154 (reset_symtab_globals): Update.
1155 (end_symtab_get_static_block): Update to use buildsym_compunit.
1156 (end_symtab_without_blockvector): Rewrite.
1157 (end_symtab_with_blockvector): Change result to
1158 "struct compunit_symtab *". All callers updated.
1159 Update to use buildsym_compunit. Don't set symtab->dirname,
1160 instead set it in the compunit.
1161 Explicitly make sure main symtab is first in its list.
1162 Set debugformat, producer, blockvector, block_line_section, and
1163 macrotable in the compunit.
1164 (end_symtab_from_static_block): Change result to
1165 "struct compunit_symtab *". All callers updated.
1166 (end_symtab, end_expandable_symtab): Ditto.
1167 (set_missing_symtab): Change symtab argument to
1168 "struct compunit_symtab *". All callers updated.
1169 (augment_type_symtab): Ditto.
1170 (record_debugformat): Update to use buildsym_compunit.
1171 (record_producer): Update to use buildsym_compunit.
1172 * buildsym.h (struct subfile) <dirname>: Delete.
1173 <producer, debugformat>: Delete.
1174 <buildsym_compunit>: New member.
1175 (get_compunit_symtab): Declare.
1176 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1177 from primary_symtab. Change type to "struct compunit_symtab *".
1179 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1180 All callers updated.
1181 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1182 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1183 symtab. Change type to "struct compunit_symtab *". All uses updated.
1184 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1185 All callers updated.
1186 (dw2_find_last_source_symtab): Ditto.
1187 (dw2_lookup_symbol): Ditto.
1188 (recursively_find_pc_sect_compunit_symtab): Renamed from
1189 recursively_find_pc_sect_symtab. Change result to
1190 "struct compunit_symtab *". All callers updated.
1191 (dw2_find_pc_sect_compunit_symtab): Renamed from
1192 dw2_find_pc_sect_symtab. Change result to
1193 "struct compunit_symtab *". All callers updated.
1194 (get_compunit_symtab): Renamed from get_symtab. Change result to
1195 "struct compunit_symtab *". All callers updated.
1196 (recursively_compute_inclusions): Change type of immediate_parent
1197 argument to "struct compunit_symtab *". All callers updated.
1198 (compute_compunit_symtab_includes): Renamed from
1199 compute_symtab_includes. All callers updated. Rewrite to compute
1200 includes of compunit_symtabs and not symtabs.
1201 (process_full_comp_unit): Update to work with struct compunit_symtab.
1202 (process_full_type_unit): Ditto.
1203 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1204 (dwarf_decode_lines): Remove special case handling of main subfile.
1205 (macro_start_file): Delete argument comp_dir. All callers updated.
1206 (dwarf_decode_macro_bytes): Ditto.
1207 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1208 use struct compunit_symtab.
1209 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1210 * jit.c (finalize_symtab): Build compunit_symtab.
1211 * jv-lang.c (get_java_class_symtab): Change result to
1212 "struct compunit_symtab *". All callers updated.
1213 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1214 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1215 comp_dir. Change type to "struct compunit_symtab *".
1217 (new_macro_table): Change comp_dir argument to cust,
1218 "struct compunit_symtab *". All callers updated.
1219 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1220 nr_primary_symtabs. All uses updated.
1221 (count_symtabs_and_blocks): Update to handle compunits.
1222 (report_command_stats): Update output, "primary symtabs" renamed to
1224 * mdebugread.c (new_symtab): Change result to
1225 "struct compunit_symtab *". All callers updated.
1226 (parse_procedure): Change type of search_symtab argument to
1227 "struct compunit_symtab *". All callers updated.
1228 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1230 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1231 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1232 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1234 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1236 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1237 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1238 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1239 symtab. Change type to "struct compunit_symtab *". All uses updated.
1240 * psymtab.c (psymtab_to_symtab): Change result type to
1241 "struct compunit_symtab *". All callers updated.
1242 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1243 find_pc_sect_symtab_from_partial. Change result type to
1244 "struct compunit_symtab *". All callers updated.
1245 (lookup_symbol_aux_psymtabs): Change result type to
1246 "struct compunit_symtab *". All callers updated.
1247 (find_last_source_symtab_from_partial): Ditto.
1248 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1249 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1250 and macro_table from compunit.
1251 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1252 type to "struct compunit_symtab *". All callers updated.
1253 (debug_qf_lookup_symbol): Ditto.
1254 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1255 debug_qf_find_pc_sect_symtab, change result type to
1256 "struct compunit_symtab *". All callers updated.
1257 * symfile.c (allocate_symtab): Delete objfile argument.
1259 (allocate_compunit_symtab): New function.
1260 (add_compunit_symtab_to_objfile): New function.
1261 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1262 Change result type to "struct compunit_symtab *". All uses updated.
1263 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1264 Change result type to "struct compunit_symtab *". All uses updated.
1265 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1267 (dump_symtab_1): Update test for primary source symtab.
1268 (maintenance_info_symtabs): Update to handle compunit symtabs.
1269 (maintenance_check_symtabs): Ditto.
1270 * symtab.c (set_primary_symtab): Delete.
1271 (compunit_primary_filetab): New function.
1272 (compunit_language): New function.
1273 (iterate_over_some_symtabs): Change type of arguments "first",
1274 "after_last" to "struct compunit_symtab *". All callers updated.
1275 Update to loop over symtabs in each compunit.
1276 (error_in_psymtab_expansion): Rename symtab argument to cust,
1277 and change type to "struct compunit_symtab *". All callers updated.
1278 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1279 Change result type to "struct compunit_symtab *". All callers updated.
1280 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1281 Change result type to "struct compunit_symtab *". All callers updated.
1282 (find_pc_sect_line): Only loop over symtabs within selected compunit
1283 instead of all symtabs in the objfile.
1284 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1285 <compunit_symtab> New member.
1286 <block_line_section>: Moved to compunit_symtab.
1287 <locations_valid>: Ditto.
1288 <epilogue_unwind_valid>: Ditto.
1289 <macro_table>: Ditto.
1291 <debugformat>: Ditto.
1294 <call_site_htab>: Ditto.
1298 (SYMTAB_COMPUNIT): New macro.
1299 (SYMTAB_BLOCKVECTOR): Update definition.
1300 (SYMTAB_OBJFILE): Update definition.
1301 (SYMTAB_DIRNAME): Update definition.
1302 (struct compunit_symtab): New type. Common members among all source
1303 symtabs within a compilation unit moved here. All uses updated.
1304 (COMPUNIT_OBJFILE): New macro.
1305 (COMPUNIT_FILETABS): New macro.
1306 (COMPUNIT_DEBUGFORMAT): New macro.
1307 (COMPUNIT_PRODUCER): New macro.
1308 (COMPUNIT_DIRNAME): New macro.
1309 (COMPUNIT_BLOCKVECTOR): New macro.
1310 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1311 (COMPUNIT_LOCATIONS_VALID): New macro.
1312 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1313 (COMPUNIT_CALL_SITE_HTAB): New macro.
1314 (COMPUNIT_MACRO_TABLE): New macro.
1315 (ALL_COMPUNIT_FILETABS): New macro.
1316 (compunit_symtab_ptr): New typedef.
1317 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1319 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1321 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1322 if the TYPE_CODE of range_type's base type does not match
1323 the TYPE_CODE of encoding_type's base type.
1325 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1327 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1330 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1332 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1333 (ada_is_redundant_index_type_desc): New function.
1334 (to_fixed_array_type): Ignore parallel XA type if redundant.
1336 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1338 * ada-lang.c (constrained_packed_array_type): Set the length
1339 of the return array as if both bounds where zero if that
1340 returned array's index type is dynamic.
1342 2014-11-19 Yao Qi <yao@codesourcery.com>
1344 * config/i386/go32.mh (CC): Remove.
1346 2014-11-18 Doug Evans <xdje42@gmail.com>
1348 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1351 2014-11-18 Doug Evans <xdje42@gmail.com>
1353 * buildsym.c (buildsym_objfile): New static global.
1354 (buildsym_comp_dir): New static global.
1355 (finish_block_internal): Delete arg objfile. All callers updated.
1356 (finish_block): Delete arg objfile. All callers updated.
1357 (start_subfile): Delete arg dirname. All callers updated.
1358 (patch_subfile_names): Update buildsym_comp_dir.
1359 (get_macro_table): Delete arg objfile. All callers updated.
1360 (start_symtab): New arg objfile. All callers updated.
1361 Rename arg dirname to comp_dir.
1362 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1363 (end_symtab_get_static_block): Delete arg objfile. All callers
1365 (end_symtab_without_blockvector): Ditto.
1366 (end_symtab_with_blockvector): Ditto.
1367 (end_symtab_from_static_block): Ditto.
1368 (end_symtab): Ditto.
1369 (end_expandable_symtab): Ditto.
1370 (augment_type_symtab): Ditto.
1371 * coffread.c (coff_start_symtab): New arg objfile. All callers
1374 2014-11-18 Doug Evans <xdje42@gmail.com>
1376 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1379 2014-11-18 Doug Evans <xdje42@gmail.com>
1381 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1382 symtab.dirname updated to use it.
1384 2014-11-18 Doug Evans <xdje42@gmail.com>
1386 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1387 symtab.objfile updated to use it.
1389 2014-11-18 Doug Evans <xdje42@gmail.com>
1391 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1393 2014-11-18 Doug Evans <xdje42@gmail.com>
1395 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1397 * findvar.c (default_read_var_value): Ditto.
1398 * jv-lang.c (add_class_symtab_symbol): Ditto.
1399 * parse.c (operator_check_standard): Ditto.
1400 * printcmd.c (address_info): Ditto.
1401 * symtab.c (fixup_symbol_section): Ditto.
1402 (skip_prologue_sal): Ditto.
1403 * tracepoint.c (scope_info): Ditto.
1404 * valops.c (find_function_in_inferior): Ditto.
1405 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1406 * python/py-symbol.c (set_symbol): Ditto.
1408 2014-11-18 Doug Evans <xdje42@gmail.com>
1410 * buildsym.c (main_subfile): New static global.
1411 (free_subfiles_list): New function.
1412 (start_symtab): Set main_subfile.
1413 (restart_symtab): Replace init of subfiles, current_subfile with
1414 call to free_subfiles_list.
1415 (watch_main_source_file_lossage): Use main_subfile.
1416 (reset_symtab_globals): Replace init of current_subfile with call
1417 to free_subfiles_list.
1418 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1419 functions, split out from ...
1420 (end_symtab_from_static_block): ... here. Rewrite to call them.
1422 2014-11-18 Doug Evans <xdje42@gmail.com>
1424 The result of symtab expansion is always a primary symtab.
1425 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1426 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1427 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1428 (psymtab_to_symtab): Add comment and assert.
1429 (map_matching_symbols_psymtab): Remove unnecessary test for
1432 2014-11-15 Doug Evans <xdje42@gmail.com>
1435 * symtab.c (find_pc_line_symtab): New function.
1436 * symtab.h (find_pc_line_symtab): Declare.
1437 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1439 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1440 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1441 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1442 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1443 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1444 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1446 2014-11-15 Doug Evans <xdje42@gmail.com>
1448 * symtab.c (expand_symtab_containing_pc): Renamed from
1449 find_pc_sect_symtab_via_partial. All callers updated.
1451 2014-11-15 Yao Qi <yao@codesourcery.com>
1453 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1455 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1457 * common/common-defs.h: Move <stdarg.h> #include ahead of
1460 2014-11-14 Pedro Alves <palves@redhat.com>
1462 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1463 [!PHONY_ICONV] (gdb_iconv): New function.
1464 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1466 2014-11-13 Doug Evans <dje@google.com>
1469 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1470 "(anonymous namespace)".
1472 2014-11-13 Doug Evans <dje@google.com>
1474 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1477 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1479 * NEWS (maint set target-async): Fix typo.
1481 2014-11-12 Pedro Alves <palves@redhat.com>
1483 * infrun.c (enum infwait_states, infwait_state): Delete.
1485 2014-11-12 Pedro Alves <palves@redhat.com>
1487 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1488 Rewrite stepping over a permanent breakpoint.
1489 (thread_still_needs_step_over, proceed): Don't set
1490 stepping_over_breakpoint for permanent breakpoints.
1491 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1492 single-step breakpoints out of the target on hardware step
1494 (process_event_stop_test): If stepping a permanent breakpoint
1495 doesn't hit the step-resume breakpoint, delete the step-resume
1497 (switch_back_to_stepped_thread): Also check if the stepped thread
1498 has advanced already on hardware step targets.
1499 (currently_stepping): Return true if the thread stepped a
1502 2014-11-12 Pedro Alves <palves@redhat.com>
1504 Mark locations as permanent, not the whole breakpoint.
1505 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1506 (mark_breakpoints_out): Don't mark permanent breakpoints as
1508 (breakpoint_init_inferior): Use mark_breakpoints_out.
1509 (breakpoint_here_p): Adjust.
1510 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1511 of permanent breakpoints.
1512 (make_breakpoint_permanent): Mark each location as permanent,
1513 instead of marking the breakpoint.
1514 (add_location_to_breakpoint): If the location is permanent, mark
1515 it as such, and as inserted.
1516 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1517 (bp_location_compare, update_global_location_list): Adjust.
1518 (update_breakpoint_locations): Don't make the breakpoint permanent
1520 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1522 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1523 (struct bp_location) <permanent>: New field.
1524 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1525 reference to bp_permanent.
1527 2014-11-12 Pedro Alves <palves@redhat.com>
1529 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1530 * arch-utils.h (default_skip_permanent_breakpoint): New
1532 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1533 Install default_skip_permanent_breakpoint as default method.
1534 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1535 (i386_gdbarch_init): Don't install it.
1536 * infrun.c (resume): Assume there's always a
1537 gdbarch_skip_permanent_breakpoint implementation.
1538 * gdbarch.h, gdbarch.c: Regenerate.
1540 2014-11-11 Daniel Colascione <dancol@dancol.org>
1542 Warn about cross-PID-namespace debugging.
1543 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1544 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1545 * linux-thread-db.c (check_pid_namespace_match): New function.
1546 (thread_db_inferior_created): Call it.
1548 2014-11-10 Doug Evans <xdje42@gmail.com>
1550 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1551 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1553 2014-11-10 Doug Evans <xdje42@gmail.com>
1555 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1557 2014-11-10 Doug Evans <xdje42@gmail.com>
1560 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1561 (lookup_static_symbol): Move definition to new location and rewrite.
1562 (lookup_symbol_in_objfile): New function.
1563 (lookup_symbol_global_iterator_cb): Call it.
1565 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1567 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1569 2014-11-07 Pedro Alves <palves@redhat.com>
1571 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1572 check if we did a "nexti" inside a prologue.
1573 * symtab.c (in_prologue): Delete function.
1574 * symtab.h (in_prologue): Delete declaration.
1576 2014-11-06 Doug Evans <xdje42@gmail.com>
1578 * symtab.h (lookup_global_symbol): Improve function comment.
1580 2014-11-06 Doug Evans <xdje42@gmail.com>
1582 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1583 All callers updated.
1584 * symtab.h (lookup_global_symbol): Update decl.
1585 (lookup_static_symbol): Move decl to better location.
1587 2014-11-06 Doug Evans <xdje42@gmail.com>
1589 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1591 2014-11-06 Doug Evans <xdje42@gmail.com>
1593 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1594 All callers updated.
1595 (lookup_symbol_in_all_objfiles): Renamed from
1596 lookup_symbol_aux_symtabs. All callers updated.
1597 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1598 All callers updated.
1599 (lookup_symbol_in_objfile_symtabs): Renamed from
1600 lookup_symbol_aux_objfile. All callers updated.
1602 2014-11-06 Doug Evans <xdje42@gmail.com>
1604 * symtab.c (lookup_symbol_in_block): Renamed from
1605 lookup_symbol_aux_block. All callers updated.
1607 2014-11-06 Doug Evans <xdje42@gmail.com>
1609 * symtab.c (lookup_static_symbol): Renamed from
1610 lookup_static_symbol_aux. All callers updated.
1611 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1612 All callers updated.
1614 2014-11-06 Doug Evans <xdje42@gmail.com>
1616 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1617 * block.c (block_lookup_symbol): Use it.
1618 * cp-support.c (make_symbol_overload_list_block): Use it.
1619 * symtab.c (iterate_over_symbols): Use it.
1621 2014-11-06 Doug Evans <xdje42@gmail.com>
1623 * symtab.c (lookup_block_symbol): Moved to ...
1624 * block.c (block_lookup_symbol): ... here and renamed.
1625 All callers updated.
1626 * block.h (block_lookup_symbol): Declare.
1627 * symtab.h (lookup_block_symbol): Delete.
1629 2014-11-06 Doug Evans <xdje42@gmail.com>
1631 * ada-lang.c (ada_make_symbol_completion_list): Use
1632 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1633 * symtab.c (lookup_objfile_from_block): Ditto.
1635 2014-11-06 Doug Evans <xdje42@gmail.com>
1637 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1640 2014-11-06 Doug Evans <xdje42@gmail.com>
1642 * objfiles.c (get_objfile_arch): Constify.
1643 * objfiles.h (get_objfile_arch): Update prototype.
1644 * solib.c (solib_global_lookup): Fetch arch from objfile,
1647 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1649 * nios2-tdep.c (wild_insn): Delete.
1650 (profiler_insn, irqentry_insn): Delete.
1651 (nios2_match_sequence): Delete.
1652 (nios2_analyze_prologue): Update comments. Remove matching
1653 of obsolete profiler_insn and irqentry_insn sequences.
1655 2014-11-05 Alan Modra <amodra@gmail.com>
1657 * charset.c (convert_between_encodings): Shrink obstack using
1659 * minsyms.c (install_minimal_symbols): Likewise.
1660 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1661 to char* before doing pointer arithmetic.
1663 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1665 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1667 2014-11-04 Pedro Alves <palves@redhat.com>
1669 * breakpoint.c (breakpoint_thread_match): Delete function.
1670 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1672 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1675 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1676 the method args also under EVAL_SKIP when evaluating method
1677 calls under EVAL_SKIP.
1679 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1681 * dwarf2loc.c (read_pieced_value): Do big endian
1682 processing only if gdb_regnum is not -1.
1683 (write_pieced_value): Ditto.
1685 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1687 * arm-linux-tdep.c (arm_linux_init_abi): Use
1688 info.byte_order_for_code to choose endianity of breakpoint
1689 instructions snippets.
1691 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1693 * arm-tdep.c (extract_arm_insn): Use
1694 gdbarch_byte_order_for_code to read arm instruction.
1696 2014-11-02 Doug Evans <xdje42@gmail.com>
1698 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1700 2014-11-02 Doug Evans <xdje42@gmail.com>
1702 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1703 main_subfile before returning.
1705 2014-10-31 Doug Evans <xdje42@gmail.com>
1707 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1708 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1710 2014-10-31 Doug Evans <xdje42@gmail.com>
1712 * valops.c (value_cast_pointers): Fix whitespace.
1713 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1716 2014-10-30 Doug Evans <dje@google.com>
1718 * NEWS: Mention ability add attributes to gdb.Objfile and
1719 gdb.Progspace objects.
1720 * python/py-objfile.c (objfile_object): New member dict.
1721 (objfpy_dealloc): Py_XDECREF dict.
1722 (objfpy_initialize): Initialize dict.
1723 (objfile_getset): Add __dict__.
1724 (objfile_object_type): Set tp_dictoffset member.
1725 * python/py-progspace.c (progspace_object): New member dict.
1726 (pspy_dealloc): Py_XDECREF dict.
1727 (pspy_initialize): Initialize dict.
1728 (pspace_getset): Add __dict__.
1729 (pspace_object_type): Set tp_dictoffset member.
1731 2014-10-30 Yao Qi <yao@codesourcery.com>
1733 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1734 replace '\\' with '\\\\'.
1736 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1740 2014-10-29 Pedro Alves <palves@redhat.com>
1743 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1744 instead of assuming a thread with a stepping range is always
1747 2014-10-29 Pedro Alves <palves@redhat.com>
1750 * event-top.c (change_line_handler): Call
1751 gdb_rl_callback_handler_remove instead of
1752 rl_callback_handler_remove.
1753 (callback_handler_installed): New global.
1754 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1755 (gdb_rl_callback_handler_reinstall): New functions.
1756 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1757 gdb_rl_callback_handler_install instead of
1758 rl_callback_handler_remove and rl_callback_handler_install.
1759 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1760 instead of rl_callback_handler_remove.
1761 * event-top.h (gdb_rl_callback_handler_remove)
1762 (gdb_rl_callback_handler_install)
1763 (gdb_rl_callback_handler_reinstall): New declarations.
1764 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1766 (fetch_inferior_event): Install it.
1767 * top.c (gdb_readline_wrapper_line) Call
1768 gdb_rl_callback_handler_remove instead of
1769 rl_callback_handler_remove.
1770 (gdb_readline_wrapper_cleanup): Don't call
1771 rl_callback_handler_install.
1773 2014-10-29 Pedro Alves <palves@redhat.com>
1775 * event-top.c (command_line_handler): Clear the first byte of
1776 linebuffer, when it is first allocated.
1778 2014-10-29 Pedro Alves <palves@redhat.com>
1780 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1783 2014-10-29 Pedro Alves <palves@redhat.com>
1787 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1788 (tui_allowed_p): Delete function.
1789 * tui/tui.c: Include "interps.h".
1790 (tui_enable): Don't use tui_allowed_p. Error out here with
1791 detailed error messages if the TUI is the top level interpreter,
1792 or if output is not a terminal. Use newterm instead of initscr,
1793 and error out if initializing the terminal fails. Also error out if
1794 the terminal doesn't support cursor addressing.
1795 * tui/tui.h (tui_allowed_p): Delete declaration.
1797 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1799 * arm-tdep.c (arm_skip_stack_protector): Return early if
1800 address loaded by first "ldr" instruction does not have
1801 a corresponding minimal symbol. Update comment.
1803 2014-10-29 Yao Qi <yao@codesourcery.com>
1805 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1806 loaded address correctly of ldr instruction.
1808 2014-10-28 Pedro Alves <palves@redhat.com>
1811 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1813 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1814 thread's stepped_breakpoint field. Skip if reverse debugging.
1816 (init_thread_stepping_state, handle_signal_stop): Clear the
1817 thread's stepped_breakpoint field.
1819 2014-10-27 Pedro Alves <palves@redhat.com>
1821 * remote.c (remote_thread_alive): New, factored out from ...
1822 (remote_thread_alive): ... this.
1823 (remote_update_thread_list): Bail out before deleting threads if
1824 the target returned an empty list, and, the current thread has a
1827 2014-10-27 Pedro Alves <palves@redhat.com>
1829 * infrun.c (handle_signal_stop): Also skip handlers when a random
1830 signal arrives while handling a "stepi" or a "nexti". Set the
1831 thread's 'step_after_step_resume_breakpoint' flag.
1833 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1835 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1836 (arm_record_ld_st_imm_offset): Reimplement to cover all
1837 load/store cases for ARM opcode 010.
1838 (arm_record_ld_st_multiple): Reimplement to cover all
1839 load/store cases for ARM opcode 100.
1841 2014-10-26 Doug Evans <xdje42@gmail.com>
1843 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1845 2014-10-26 Doug Evans <xdje42@gmail.com>
1847 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1848 parameter "kind" to "block_index".
1849 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1851 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1853 2014-10-26 Doug Evans <xdje42@gmail.com>
1855 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1857 2014-10-26 Doug Evans <xdje42@gmail.com>
1859 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1862 2014-10-26 Doug Evans <xdje42@gmail.com>
1864 * parser-defs.h (block_found): Move decl from here ...
1865 * symtab.h (block_found): ... to here.
1867 2014-10-26 Doug Evans <xdje42@gmail.com>
1869 * symtab.h (struct field_of_this_result): Fix typo in comment.
1870 (lookup_symbol_in_language): Move function comment here.
1871 (lookup_symbol): Improve function comment.
1872 (basic_lookup_symbol_nonlocal): Ditto.
1873 (lookup_symbol_static, lookup_symbol_global): Ditto.
1874 (lookup_symbol_aux_block): Ditto.
1875 (lookup_language_this): Add function comment.
1876 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1878 (lookup_block_symbol): Improve function comment.
1879 (lookup_struct): Fix capitalization in function comment.
1880 (lookup_transparent_type): Add function comment.
1881 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1882 Improve function comment.
1883 (lookup_objfile_from_block): Add function comment.
1884 * symtab.c (lookup_symbol_in_language): Update function comment.
1885 (lookup_symbol, lookup_language_this): Ditto.
1886 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1887 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1888 (basic_lookup_symbol_nonlocal): Ditto.
1889 (lookup_symbol_static, lookup_symbol_global): Ditto.
1890 (lookup_transparent_type, lookup_block_symbol): Ditto.
1892 2014-10-25 Doug Evans <xdje42@gmail.com>
1894 * symtab.c (types_info): Delete forward decl.
1895 (functions_info, variables_info, sources_info): Ditto.
1896 (_initialize_symtab): Rewrite forward decl to use
1897 initialize_file_ftype.
1899 2014-10-25 Doug Evans <xdje42@gmail.com>
1901 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1903 2014-10-25 Doug Evans <xdje42@gmail.com>
1905 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1906 of local var child_die.
1908 2014-10-24 Don Breazeal <donb@codesourcery.com>
1910 * infrun.c (follow_fork_inferior): Update fork message printing
1911 to use target_terminal_ours_for_output instead of
1912 target_terminal_ours, to use _() for all format strings, to print
1913 "vfork" instead of "fork" for vforks, and to add a detach message.
1914 (handle_vfork_child_exec_or_exit): Update message printing to use
1915 target_terminal_ours_for_output instead of target_terminal_ours, to
1916 use _() for all format strings, and to fix some formatting.
1918 2014-10-24 Pedro Alves <palves@redhat.com>
1920 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1921 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1922 * config/vax/vax.mh: Delete.
1923 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1924 obsolete configurations section.
1925 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1926 * vax-nat.c: Delete file.
1928 2014-10-24 Pedro Alves <palves@redhat.com>
1930 * NEWS (Removed targets): Add OS/arch column.
1932 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1934 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1935 on the arg type of a constructor only if it is of reference type.
1937 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1939 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1940 accessors and constants from nios2 opcodes update.
1941 (nios2_get_next_pc): Likewise.
1943 2014-10-19 Doug Evans <xdje42@gmail.com>
1945 * gdbthread.h (set_running): Fix comment.
1946 (set_executing, finish_thread_state): Fix comment.
1948 2014-10-18 Doug Evans <xdje42@gmail.com>
1950 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1952 2014-10-17 Doug Evans <dje@google.com>
1954 * NEWS: Mention new event gdb.clear_objfiles.
1955 * python/py-event.h (emit_clear_objfiles_event): Clear
1956 * python/py-events.h (events_object): New member clear_objfiles.
1957 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1959 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1960 emit clear_objfiles event.
1961 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1963 (emit_clear_objfiles_event): New function.
1964 (clear_objfiles): New event.
1965 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1967 * python/python.c (_initialize_python): Call
1968 gdbpy_initialize_clear_objfiles_event.
1970 2014-10-17 Doug Evans <dje@google.com>
1972 * NEWS: Mention new gdb.Objfile.progspace attribute.
1973 * python/py-objfile.c (objfpy_get_progspace): New function.
1974 (objfile_getset): New entry for "progspace".
1976 2014-10-17 Pedro Alves <palves@redhat.com>
1979 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1980 returns a copy of the input.
1981 (run_command_1, continue_command, step_1, jump_command)
1982 (signal_command, until_command, advance_command, finish_command)
1983 (attach_command): Adjust and install a cleanup to free the
1986 2014-10-17 Pedro Alves <palves@redhat.com>
1989 * infcmd.c (continue_1): If continuing all threads in the
1990 foreground, make sure the inferior's terminal settings are put in
1993 2014-10-17 Pedro Alves <palves@redhat.com>
1996 * annotate.c (annotate_breakpoints_invalid): Use
1997 target_terminal_our_for_output instead of target_terminal_ours.
1998 Give back the terminal to the target.
1999 (annotate_frames_invalid): Likewise.
2001 2014-10-17 Pedro Alves <palves@redhat.com>
2003 * target.c (enum terminal_state): New enum.
2004 (terminal_state): New global.
2005 (target_terminal_init): New function.
2006 (target_terminal_inferior): Skip if inferior already owns the
2008 (target_terminal_ours, target_terminal_ours_for_output): New
2010 * target.h (target_terminal_init): Convert to function prototype.
2011 (target_terminal_ours_for_output): Convert to function prototype
2013 (target_terminal_ours): Convert to function prototype and tweak
2015 * windows-nat.c (do_initial_windows_stuff): Call
2016 target_terminal_init instead of child_terminal_init_with_pgrp.
2018 2014-10-17 Pedro Alves <palves@redhat.com>
2020 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2021 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2022 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2024 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2025 * ada-lang.h [__alpha__ && __osf__]
2026 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2027 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2028 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2030 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2032 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2033 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2034 * configure: Regenerate.
2035 * configure.ac: Remove references to osf.
2036 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2037 section. Remove all other references to osf.
2038 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2039 Remove all other references to osf.
2040 * dec-thread.c: Delete file.
2041 * defs.h (GDB_OSABI_OSF1): Delete.
2042 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2044 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2045 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2047 (unconditionally_kill_inferior)
2048 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2049 * solib-osf.c: Delete file.
2051 2014-10-17 Pedro Alves <palves@redhat.com>
2053 * remote.c (clear_threads_listing_context): Move higher up, out of
2054 the HAVE_LIBEXPAT guard.
2056 2014-10-16 Tristan Gingold <gingold@adacore.com>
2058 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2059 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2062 2014-10-15 Pedro Alves <palves@redhat.com>
2064 * dec-thread.c (dec_thread_count_gdb_threads)
2065 (dec_thread_add_gdb_thread): Delete.
2066 (dec_thread_update_thread_list): Delete.
2067 (dec_thread_find_new_threads): Rename to ...
2068 (dec_thread_update_thread_list): ... this. Delete GDB-size
2069 threads that are no longer found in dec_thread_list.
2070 (resync_thread_list): Delete.
2071 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2074 2014-10-15 Pedro Alves <palves@redhat.com>
2076 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2077 * remote.c (remote_update_thread_list): Skip calling prune_threads
2078 if any thread listing method is supported, and instead walk over
2079 the set of remote threads listed, deleting those that are not
2080 found in GDB's thread list.
2082 2014-10-15 Pedro Alves <palves@redhat.com>
2084 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2085 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2086 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2087 (bsd_uthread_target): Adjust.
2088 * corelow.c (core_open): Adjust.
2089 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2090 (dec_thread_update_thread_list): New function.
2091 (init_dec_thread_ops): Adjust.
2092 * gdbthread.h (prune_threads): New declaration.
2093 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2094 (thread_db_update_thread_list): ... this. Call prune_threads.
2095 (init_thread_db_ops): Adjust.
2096 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2097 (procfs_update_thread_list): ... this. Call prune_threads.
2098 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2100 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2101 (obsd_update_thread_list): ... this. Call prune_threads.
2102 (obsd_add_target): Adjust.
2103 * procfs.c (procfs_target): Adjust.
2104 (procfs_notice_thread): Update comment.
2105 (procfs_find_new_threads): Rename to ...
2106 (procfs_update_thread_list): ... this. Call prune_threads.
2107 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2109 (ravenscar_wait): Adjust.
2110 (ravenscar_find_new_threads): Rename to ...
2111 (ravenscar_update_thread_list): ... this. Call prune_threads.
2112 (init_ravenscar_thread_ops): Adjust.
2113 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2114 (record_btrace_update_thread_list): ... this. Adjust comment.
2115 (init_record_btrace_ops): Adjust.
2116 * remote.c (remote_threads_info): Rename to ...
2117 (remote_update_thread_list): ... this. Call prune_threads.
2118 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2120 * sol-thread.c (check_for_thread_db): Adjust.
2121 (sol_find_new_threads_callback): Rename to ...
2122 (sol_update_thread_list_callback): ... this.
2123 (sol_find_new_threads): Rename to ...
2124 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2125 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2126 * target-delegates.c: Regenerate.
2127 * target.c (target_find_new_threads): Rename to ...
2128 (target_update_thread_list): ... this.
2129 * target.h (struct target_ops): Rename to_find_new_threads field
2130 to to_update_thread_list.
2131 (target_find_new_threads): Rename to ...
2132 (target_update_thread_list): ... this.
2133 * thread.c (prune_threads): Make extern.
2134 (update_thread_list): Adjust.
2136 2014-10-15 Pedro Alves <palves@redhat.com>
2138 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2139 Add describing comment. Return -1 if the qL packet is not
2141 (struct thread_item, thread_item_t): Move higher up in
2142 the file. Add comments.
2143 (struct threads_parsing_context): Move higher up in
2144 the file, add comments, and remote to ...
2145 (struct threads_listing_context): ... this.
2146 (remote_newthread_step): Don't add the thread to GDB's thread
2147 database here. Instead push it to the thread_listing_context
2149 (remote_find_new_threads): Rename to ...
2150 (remote_get_threads_with_ql): ... this. Add target_ops and
2151 targets_listing_context parameters. Pass down context.
2152 (start_thread): Adjust.
2153 (clear_threads_parsing_context): Rename to ...
2154 (clear_threads_listing_context): ... this.
2155 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2156 remote_threads_info.
2157 (remote_get_threads_with_qthreadinfo): Ditto.
2158 (remote_threads_info): Reimplement.
2160 2014-10-15 Pedro Alves <palves@redhat.com>
2162 * infrun.c (resume): Don't force displaced-stepping for all
2163 single-steps on software single-stepping archs.
2165 2014-10-15 Pedro Alves <palves@redhat.com>
2167 * breakpoint.c (single_step_breakpoints): Delete global.
2168 (insert_single_step_breakpoint): Adjust to store the breakpoint
2169 pointer in the current thread.
2170 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2171 (cancel_single_step_breakpoints): Delete functions.
2172 (breakpoint_has_location_inserted_here): Make extern.
2173 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2175 * breakpoint.h (breakpoint_has_location_inserted_here): New
2177 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2178 (cancel_single_step_breakpoints): Remove declarations.
2179 * gdbthread.h (struct thread_control_state)
2180 <single_step_breakpoints>: New field.
2181 (delete_single_step_breakpoints)
2182 (thread_has_single_step_breakpoints_set)
2183 (thread_has_single_step_breakpoint_here): New declarations.
2184 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2185 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2186 (singlestep_pc): Delete globals.
2187 (infrun_thread_ptid_changed): Remove references to removed
2189 (resume_cleanups): Delete the current thread's single-step
2191 (maybe_software_singlestep): Remove references to removed globals.
2192 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2193 delete_single_step_breakpoints.
2194 (init_wait_for_inferior): Remove references to removed globals.
2195 (delete_thread_infrun_breakpoints): Delete the thread's
2196 single-step breakpoints too.
2197 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2198 single-step breakpoints here.
2199 (delete_stopped_threads_single_step_breakpoints): New function.
2200 (adjust_pc_after_break): Adjust to use
2201 thread_has_single_step_breakpoints_set.
2202 (handle_inferior_event): Remove references to removed globals.
2203 Use delete_stopped_threads_single_step_breakpoints.
2204 (handle_signal_stop): Adjust to per-thread single-step
2205 breakpoints. Swap test order to do cheaper tests first.
2206 (switch_back_to_stepped_thread): Extend debug output. Remove
2207 references to removed globals.
2208 * record-full.c (record_full_wait_1): Adjust to per-thread
2209 single-step breakpoints.
2210 * thread.c (delete_single_step_breakpoints)
2211 (thread_has_single_step_breakpoints_set)
2212 (thread_has_single_step_breakpoint_here): New functions.
2213 (clear_thread_inferior_resources): Also delete the thread's
2214 single-step breakpoints.
2216 2014-10-15 Pedro Alves <palves@redhat.com>
2218 * thread.c (delete_thread_breakpoint): New function.
2219 (delete_step_resume_breakpoint)
2220 (delete_exception_resume_breakpoint): Use it.
2221 (delete_at_next_stop): New function.
2222 (clear_thread_inferior_resources): Use delete_at_next_stop.
2224 2014-10-15 Pedro Alves <palves@redhat.com>
2226 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2227 (breakpoint_inserted_here_p): ... here. Remove special case for
2228 software single-step breakpoints.
2229 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2230 (software_breakpoint_inserted_here_p): ... here. Remove special
2231 case for software single-step breakpoints.
2232 (bp_target_info_copy_insertion_state)
2233 (deprecated_insert_raw_breakpoint)
2234 (deprecated_remove_raw_breakpoint): Delete functions.
2235 * breakpoint.h (deprecated_insert_raw_breakpoint)
2236 (deprecated_remove_raw_breakpoint): Remove declarations.
2238 2014-10-15 Pedro Alves <palves@redhat.com>
2241 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2242 Delete array globals.
2243 (single_step_breakpoints): New global.
2244 (breakpoint_xfer_memory): Remove special handling for single-step
2246 (update_breakpoints_after_exec): Delete bp_single_step
2248 (detach_breakpoints): Remove special handling for single-step
2250 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2251 (bpstat_stop_status): Add comment.
2252 (bpstat_what, bptype_string, print_one_breakpoint_location)
2253 (adjust_breakpoint_address, init_bp_location): Handle
2255 (new_single_step_breakpoint): New function.
2256 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2257 handling for single-step breakpoints.
2258 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2259 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2261 (detach_single_step_breakpoints, find_single_step_breakpoint):
2263 (breakpoint_has_location_inserted_here): New function.
2264 (single_step_breakpoint_inserted_here_p): Rewrite.
2265 * breakpoint.h: Remove FIXME.
2266 (enum bptype) <bp_single_step>: New enum value.
2267 (insert_single_step_breakpoint): Update comment.
2268 * infrun.c (resume_cleanups)
2269 (delete_step_thread_step_resume_breakpoint): Remove single-step
2271 (fetch_inferior_event): Install a cleanup that removes infrun
2273 (switch_back_to_stepped_thread) <expect thread advanced also>:
2274 Clear step-over info.
2276 2014-10-15 Pedro Alves <palves@redhat.com>
2278 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2279 (delete_thread_infrun_breakpoints): New function, with parts
2280 salvaged from delete_step_resume_breakpoint_callback.
2281 (delete_step_thread_step_resume_breakpoint): Delete.
2282 (for_each_just_stopped_thread_callback_func): New typedef.
2283 (for_each_just_stopped_thread): New function.
2284 (delete_just_stopped_threads_infrun_breakpoints): New function.
2285 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2286 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2288 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2290 2014-10-15 Pedro Alves <palves@redhat.com>
2292 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2293 trying to step past a non-steppable watchpoint.
2294 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2296 * infrun.c (struct step_over_info): Add new field
2297 'nonsteppable_watchpoint_p' and adjust comments.
2298 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2300 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2301 (stepping_past_nonsteppable_watchpoint): New function.
2302 (step_over_info_valid_p): Also return true if stepping past a
2303 nonsteppable watchpoint.
2304 (proceed): Adjust call to set_step_over_info. Remove reference to
2306 (init_wait_for_inferior): Remove reference to init_infwait_state.
2307 (waiton_ptid): Delete global.
2308 (struct execution_control_state)
2309 <stepped_after_stopped_by_watchpoint>: Delete field.
2310 (wait_for_inferior, fetch_inferior_event): Always pass
2311 minus_one_ptid to target_wait.
2312 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2314 (init_infwait_state): Delete function.
2315 (handle_inferior_event): Remove infwait_state handling.
2316 (handle_signal_stop) <watchpoints handling>: Adjust after
2317 stepped_after_stopped_by_watchpoint removal. Don't remove
2318 breakpoints here nor set infwait_state. Set the thread's
2319 stepping_over_watchpoint flag, and call keep_going instead.
2320 (keep_going): Handle stepping_over_watchpoint. Adjust
2321 set_step_over_info calls.
2322 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2325 2014-10-15 Pedro Alves <palves@redhat.com>
2327 * infrun.c (step_over_info_valid_p): New function.
2328 (resume): Use step_over_info_valid_p instead of checking the
2329 threads's trap_expected flag.
2331 2014-10-15 Doug Evans <dje@google.com>
2332 Walfred Tedeschi <walfred.tedeschi@intel.com>
2335 * python/lib/gdb/__init__.py (packages): Add "printer".
2336 * python/lib/gdb/command/bound_registers.py: Moved to ...
2337 * python/lib/gdb/printer/bound_registers.py: ... here.
2338 Add printer to global set of builtin printers. Rename printer from
2339 "bound" to "mpx_bound128".
2340 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2341 registered as global "builtin" printer.
2342 (add_builtin_pretty_printer): New function.
2343 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2344 gdb/printer/__init__.py.
2346 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2348 * Makefile.in (SFILES): Remove d-support.c.
2349 (COMMON_OBS): Remove d-support.o.
2350 * d-lang.h (d_parse_symbol): Remove declaration.
2351 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2352 * d-support.c: Remove file.
2354 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2356 * gdb/infrun.c (process_event_stop_test): Apply
2357 gdbarch_addr_bits_remove to longjmp resume address.
2359 2014-10-15 Pedro Alves <palves@redhat.com>
2361 * regformats/microblaze.dat: Delete file.
2363 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2365 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2366 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2368 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2370 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2373 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2377 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2378 with qualified args.
2380 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2382 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2383 of the case where the second operand is a pointer.
2384 <BINOP_SUB>: Likewise.
2386 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2388 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2389 only if it is not NULL.
2390 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2391 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2392 (struct probe_ops) <clear_semaphore>: Likewise.
2393 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2395 (stop_tracing): Likewise, for clear_semaphore.
2397 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2399 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2400 using language_c, instead of current_language.
2402 2014-10-13 Doug Evans <dje@google.com>
2404 * python/py-objfile.c (objfpy_initialize): New function.
2405 (objfpy_new, objfile_to_objfile_object): Call it.
2406 * python/py-progspace.c (pspy_initialize): New function.
2407 (pspy_new, pspace_to_pspace_object): Call it.
2409 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2410 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 Fix "save breakpoints" for "catch" command.
2413 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2416 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2418 Fix "save breakpoints" for "disable $bpnum" command.
2419 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2421 2014-10-10 Pedro Alves <palves@redhat.com>
2423 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2424 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2425 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2426 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2428 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2429 * configure.ac: Remove references to IRIX.
2430 * configure.host: Add *-*-irix* to the obsolete hosts section.
2431 Remove all other references to irix.
2432 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2435 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2437 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2438 isn't valid, release the tdesc arch data and return NULL.
2440 2014-10-10 Pedro Alves <palves@redhat.com>
2442 * linux-tdep.c: Include observer.h.
2443 (linux_inferior_data): New global.
2444 (struct linux_info): New structure.
2445 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2446 (get_linux_inferior_data): New functions.
2447 (linux_vsyscall_range): Rename to ...
2448 (linux_vsyscall_range_raw): ... this.
2449 (linux_vsyscall_range): New function; handles caching.
2450 (_initialize_linux_tdep): Register linux_inferior_data. Install
2451 inferior_exit and inferior_appeared observers.
2453 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2454 Pedro Alves <palves@redhat.com>
2457 * solib-svr4.c (svr4_read_so_list): Rename to ...
2458 (svr4_current_sos_1): ... this and change the function comment.
2459 (svr4_current_sos): New function.
2461 2014-10-10 Pedro Alves <palves@redhat.com>
2463 * arch-utils.c (default_vsyscall_range): New function.
2464 * arch-utils.h (default_vsyscall_range): New declaration.
2465 * gdbarch.sh (vsyscall_range): New hook.
2466 * gdbarch.h, gdbarch.c: Regenerate.
2467 * linux-tdep.c (linux_vsyscall_range): New function.
2468 (linux_init_abi): Install linux_vsyscall_range as
2469 vsyscall_range gdbarch hook.
2470 * memrange.c (address_in_mem_range): New function.
2471 * memrange.h (address_in_mem_range): New declaration.
2472 * symfile-mem.c (find_vdso_size): Delete function.
2473 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2475 2014-10-10 Pedro Alves <palves@redhat.com>
2477 * infrun.c (normal_stop): Fix typo in comment.
2479 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2482 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2483 typo when using logical AND to determine instruction type.
2485 2014-10-09 Yao Qi <yao@codesourcery.com>
2487 * infrun.c (handle_signal_stop): Remove local variable
2490 2014-10-08 Stan Shebs <stan@codesourcery.com>
2492 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2494 2014-10-08 Gary Benson <gbenson@redhat.com>
2496 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2498 2014-10-08 Gary Benson <gbenson@redhat.com>
2500 * common/common-defs.h: Include common-exceptions.h.
2501 * exceptions.h: Do not include common-exceptions.h.
2503 2014-10-08 Gary Benson <gbenson@redhat.com>
2505 * common/common-defs.h: Include cleanups.h.
2506 * common/common-exceptions.c: Do not include cleanups.h.
2507 * utils.h: Likewise.
2509 2014-10-08 Gary Benson <gbenson@redhat.com>
2511 * ada-lang.c: Do not include exceptions.h.
2512 * ada-valprint.c: Likewise.
2513 * amd64-tdep.c: Likewise.
2514 * auto-load.c: Likewise.
2515 * block.c: Likewise.
2516 * break-catch-throw.c: Likewise.
2517 * breakpoint.c: Likewise.
2518 * btrace.c: Likewise.
2519 * c-lang.c: Likewise.
2520 * cli/cli-cmds.c: Likewise.
2521 * cli/cli-interp.c: Likewise.
2522 * cli/cli-script.c: Likewise.
2523 * completer.c: Likewise.
2524 * corefile.c: Likewise.
2525 * corelow.c: Likewise.
2526 * cp-abi.c: Likewise.
2527 * cp-support.c: Likewise.
2528 * cp-valprint.c: Likewise.
2529 * darwin-nat.c: Likewise.
2530 * dwarf2-frame-tailcall.c: Likewise.
2531 * dwarf2-frame.c: Likewise.
2532 * dwarf2loc.c: Likewise.
2533 * dwarf2read.c: Likewise.
2535 * event-loop.c: Likewise.
2536 * event-top.c: Likewise.
2537 * f-valprint.c: Likewise.
2538 * frame-unwind.c: Likewise.
2539 * frame.c: Likewise.
2540 * gdbtypes.c: Likewise.
2541 * gnu-v2-abi.c: Likewise.
2542 * gnu-v3-abi.c: Likewise.
2543 * guile/scm-auto-load.c: Likewise.
2544 * guile/scm-breakpoint.c: Likewise.
2545 * guile/scm-cmd.c: Likewise.
2546 * guile/scm-frame.c: Likewise.
2547 * guile/scm-lazy-string.c: Likewise.
2548 * guile/scm-param.c: Likewise.
2549 * guile/scm-symbol.c: Likewise.
2550 * guile/scm-type.c: Likewise.
2551 * hppa-hpux-tdep.c: Likewise.
2552 * i386-tdep.c: Likewise.
2553 * inf-loop.c: Likewise.
2554 * infcall.c: Likewise.
2555 * infcmd.c: Likewise.
2556 * infrun.c: Likewise.
2557 * interps.c: Likewise.
2558 * interps.h: Likewise.
2560 * linespec.c: Likewise.
2561 * linux-nat.c: Likewise.
2562 * linux-thread-db.c: Likewise.
2563 * m32r-rom.c: Likewise.
2565 * memory-map.c: Likewise.
2566 * mi/mi-cmd-break.c: Likewise.
2567 * mi/mi-cmd-stack.c: Likewise.
2568 * mi/mi-interp.c: Likewise.
2569 * mi/mi-main.c: Likewise.
2570 * monitor.c: Likewise.
2571 * nto-procfs.c: Likewise.
2572 * objc-lang.c: Likewise.
2573 * p-valprint.c: Likewise.
2574 * parse.c: Likewise.
2575 * ppc-linux-tdep.c: Likewise.
2576 * printcmd.c: Likewise.
2577 * probe.c: Likewise.
2578 * python/py-auto-load.c: Likewise.
2579 * python/py-breakpoint.c: Likewise.
2580 * python/py-cmd.c: Likewise.
2581 * python/py-finishbreakpoint.c: Likewise.
2582 * python/py-frame.c: Likewise.
2583 * python/py-framefilter.c: Likewise.
2584 * python/py-function.c: Likewise.
2585 * python/py-gdb-readline.c: Likewise.
2586 * python/py-inferior.c: Likewise.
2587 * python/py-infthread.c: Likewise.
2588 * python/py-lazy-string.c: Likewise.
2589 * python/py-linetable.c: Likewise.
2590 * python/py-param.c: Likewise.
2591 * python/py-prettyprint.c: Likewise.
2592 * python/py-symbol.c: Likewise.
2593 * python/py-type.c: Likewise.
2594 * python/py-value.c: Likewise.
2595 * python/python-internal.h: Likewise.
2596 * python/python.c: Likewise.
2597 * record-btrace.c: Likewise.
2598 * record-full.c: Likewise.
2599 * regcache.c: Likewise.
2600 * remote-fileio.c: Likewise.
2601 * remote-mips.c: Likewise.
2602 * remote.c: Likewise.
2603 * rs6000-aix-tdep.c: Likewise.
2604 * rs6000-nat.c: Likewise.
2606 * solib-darwin.c: Likewise.
2607 * solib-dsbt.c: Likewise.
2608 * solib-frv.c: Likewise.
2609 * solib-ia64-hpux.c: Likewise.
2610 * solib-spu.c: Likewise.
2611 * solib-svr4.c: Likewise.
2612 * solib.c: Likewise.
2613 * spu-tdep.c: Likewise.
2614 * stack.c: Likewise.
2615 * stap-probe.c: Likewise.
2616 * symfile-mem.c: Likewise.
2617 * symmisc.c: Likewise.
2618 * target.c: Likewise.
2619 * thread.c: Likewise.
2621 * tracepoint.c: Likewise.
2622 * tui/tui-interp.c: Likewise.
2623 * typeprint.c: Likewise.
2624 * utils.c: Likewise.
2625 * valarith.c: Likewise.
2626 * valops.c: Likewise.
2627 * valprint.c: Likewise.
2628 * value.c: Likewise.
2629 * varobj.c: Likewise.
2630 * windows-nat.c: Likewise.
2631 * xml-support.c: Likewise.
2633 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2635 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2637 (extended_mips16_next_pc): Update accordingly.
2639 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2641 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2643 (micromips_instruction_is_compact_branch): Likewise.
2644 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2645 or a compact jump, reaching a jump delay slot, or seeing a
2646 second non-prologue instruction.
2647 (micromips_scan_prologue): Also terminate scanning upon seeing a
2648 compact branch or jump, or reaching a branch or jump delay slot.
2649 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2650 or jump delay slot, or seeing a second non-prologue instruction.
2651 (mips32_instruction_has_delay_slot): Retain instruction
2652 examination code only, update arguments accordingly and move
2653 instruction fetch pieces to...
2654 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2655 (micromips_instruction_has_delay_slot): Likewise and to...
2656 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2657 (mips16_instruction_has_delay_slot): Likewise and to...
2658 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2659 (mips_single_step_through_delay): Update accordingly.
2660 (mips_adjust_breakpoint_address): Likewise.
2662 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2664 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2665 !mustbe32 also return 1 for 32-bit instructions.
2666 (mips16_instruction_has_delay_slot): Likewise. Add an
2667 explanatory comment.
2669 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2671 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2674 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2676 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2678 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2679 for the breakpoint's address. Don't preinitialize `placed_size'.
2680 (insert_bp_location): Set `reqstd_address' rather than
2682 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2683 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2685 (bkpt_remove_location): Likewise.
2686 (deprecated_insert_raw_breakpoint): Likewise.
2687 (deprecated_remove_raw_breakpoint): Likewise.
2688 (find_single_step_breakpoint): Likewise.
2689 * mem-break.c (default_memory_insert_breakpoint): Use
2690 `reqstd_address' for the breakpoint's address. Don't set
2691 `placed_address' or `placed_size' if breakpoint contents couldn't
2692 have been determined.
2693 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2694 the breakpoint's address.
2695 (remote_insert_hw_breakpoint): Likewise. Don't set
2696 `placed_address' or `placed_size' if breakpoint couldn't have been
2698 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2699 `reqstd_address' for the breakpoint's address.
2700 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2701 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2702 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2703 * microblaze-linux-tdep.c
2704 (microblaze_linux_memory_remove_breakpoint): Likewise.
2705 * monitor.c (monitor_insert_breakpoint): Likewise.
2706 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2707 (procfs_insert_hw_breakpoint): Likewise.
2708 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2709 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2710 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2711 * remote-mips.c (mips_insert_breakpoint): Likewise.
2712 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2714 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2716 * valops.c (value_assign): Check for bit field assignments
2717 before calling architecture-specific register value
2718 conversion functions.
2720 2014-10-03 Pierre Muller <muller@sourceware.org>
2722 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2724 2014-10-02 Pedro Alves <palves@redhat.com>
2726 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2727 threads_are_executing.
2728 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2730 * gdbthread.h (threads_are_executing): Declare.
2731 (handle_signal_stop) <random signals>: Don't print about the
2732 signal here if stopping.
2733 (end_stepping_range): Don't notify observers here.
2734 (normal_stop): Update the thread list. If stopped by a random
2735 signal or a stepping range ended, notify observers.
2736 * thread.c (threads_executing): New global.
2737 (init_thread_list): Clear 'threads_executing'.
2738 (set_executing): Set or clear 'threads_executing'.
2739 (threads_are_executing): New function.
2740 (update_threads_executing): New function.
2741 (update_thread_list): Use it.
2743 2014-10-02 Pedro Alves <palves@redhat.com>
2745 PR breakpoints/17431
2746 * breakpoint.c (update_breakpoints_after_exec): Don't create
2747 overlay, longjmp, std terminate nor exception breakpoints here.
2749 2014-10-02 Pedro Alves <palves@redhat.com>
2751 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2753 * inferior.c (find_inferior_for_program_space): Give preference to
2754 the current inferior.
2755 * inferior.h (find_inferior_for_program_space): Update comment.
2756 * progspace.c (switch_to_program_space_and_thread): Prefer the
2757 current inferior if it's bound to the program space requested. If
2758 the inferior found doesn't have a PID yet, don't bother looking up
2760 * progspace.h (switch_to_program_space_and_thread): Adjust
2762 * thread.c (any_thread_of_process, any_live_thread_of_process):
2763 Give preference to the current thread.
2765 2014-10-01 Pedro Alves <palves@redhat.com>
2767 * breakpoint.c (insert_bp_location): Error out if inserting a
2768 software breakpoint at a read-only address.
2769 * target.c (memory_xfer_check_region): New function, factored out
2771 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2773 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2774 against the memory region attributes.
2776 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2778 * NEWS: Announce new exit-code field in -list-thread-groups
2780 * inferior.c (exit_inferior_1): Don't clear exit code.
2781 (inferior_appeared): Clear exit code.
2782 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2785 2014-10-01 Pedro Alves <palves@redhat.com>
2787 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2788 GENERATED" along with emacs/vi read-only markers.
2789 * regformats/aarch64.dat: Regenerate.
2790 * regformats/arm-with-iwmmxt.dat: Regenerate.
2791 * regformats/arm-with-neon.dat: Regenerate.
2792 * regformats/arm-with-vfpv2.dat: Regenerate.
2793 * regformats/arm-with-vfpv3.dat: Regenerate.
2794 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2795 * regformats/i386/amd64-avx.dat: Regenerate.
2796 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2797 * regformats/i386/amd64-avx512.dat: Regenerate.
2798 * regformats/i386/amd64-linux.dat: Regenerate.
2799 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2800 * regformats/i386/amd64-mpx.dat: Regenerate.
2801 * regformats/i386/amd64.dat: Regenerate.
2802 * regformats/i386/i386-avx-linux.dat: Regenerate.
2803 * regformats/i386/i386-avx.dat: Regenerate.
2804 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2805 * regformats/i386/i386-avx512.dat: Regenerate.
2806 * regformats/i386/i386-linux.dat: Regenerate.
2807 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2808 * regformats/i386/i386-mmx.dat: Regenerate.
2809 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2810 * regformats/i386/i386-mpx.dat: Regenerate.
2811 * regformats/i386/i386.dat: Regenerate.
2812 * regformats/i386/x32-avx-linux.dat: Regenerate.
2813 * regformats/i386/x32-avx.dat: Regenerate.
2814 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2815 * regformats/i386/x32-avx512.dat: Regenerate.
2816 * regformats/i386/x32-linux.dat: Regenerate.
2817 * regformats/i386/x32.dat: Regenerate.
2818 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2819 * regformats/mips-dsp-linux.dat: Regenerate.
2820 * regformats/mips-linux.dat: Regenerate.
2821 * regformats/mips64-dsp-linux.dat: Regenerate.
2822 * regformats/mips64-linux.dat: Regenerate.
2823 * regformats/nios2-linux.dat: Regenerate.
2824 * regformats/rs6000/powerpc-32.dat: Regenerate.
2825 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2826 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2827 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2828 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2829 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2830 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2831 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2832 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2833 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2834 * regformats/s390-linux32.dat: Regenerate.
2835 * regformats/s390-linux32v1.dat: Regenerate.
2836 * regformats/s390-linux32v2.dat: Regenerate.
2837 * regformats/s390-linux64.dat: Regenerate.
2838 * regformats/s390-linux64v1.dat: Regenerate.
2839 * regformats/s390-linux64v2.dat: Regenerate.
2840 * regformats/s390-te-linux64.dat: Regenerate.
2841 * regformats/s390x-linux64.dat: Regenerate.
2842 * regformats/s390x-linux64v1.dat: Regenerate.
2843 * regformats/s390x-linux64v2.dat: Regenerate.
2844 * regformats/s390x-te-linux64.dat: Regenerate.
2845 * regformats/tic6x-c62x-linux.dat: Regenerate.
2846 * regformats/tic6x-c62x.dat: Regenerate.
2847 * regformats/tic6x-c64x-linux.dat: Regenerate.
2848 * regformats/tic6x-c64x.dat: Regenerate.
2849 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2850 * regformats/tic6x-c64xp.dat: Regenerate.
2852 2014-10-01 Pedro Alves <palves@redhat.com>
2854 * features/Makefile: Update comments.
2855 (XMLTOC): List all xml files we build C files from.
2856 (clean-cfiles): New rule.
2858 2014-10-01 Pedro Alves <palves@redhat.com>
2860 * features/i386/amd64-avx512-linux.c: Regenerate.
2861 * features/i386/amd64-avx512.c: Regenerate.
2862 * features/i386/x32-avx512-linux.c: Regenerate.
2863 * features/i386/x32-avx512.c: Regenerate.
2865 2014-10-01 Pedro Alves <palves@redhat.com>
2867 * features/Makefile (WHICH): Remove arm-with-m,
2868 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2870 2014-10-01 Pedro Alves <palves@redhat.com>
2872 * features/Makefile (clean): New rule.
2874 2014-10-01 Pedro Alves <palves@redhat.com>
2876 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2877 (zmm14h): Add missing end quotes.
2879 2014-10-01 Pedro Alves <palves@redhat.com>
2881 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2882 * features/aarch64.c: Regenerate.
2884 2014-09-30 Don Breazeal <donb@codesourcery.com>
2886 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2887 code so as to work with follow_fork_inferior.
2888 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2889 (inf_ttrace_create_inferior): Remove reference to
2890 inf_ttrace_vfork_ppid.
2891 (inf_ttrace_attach): Ditto.
2892 (inf_ttrace_detach): Ditto.
2893 (inf_ttrace_kill): Use current_inferior instead of
2894 inf_ttrace_vfork_ppid.
2895 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2896 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2897 inferior away from the parent.
2898 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2900 (follow_fork_inferior): New function.
2901 (follow_inferior_reset_breakpoints): Make function static.
2902 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2903 * linux-nat.c (linux_child_follow_fork): Move target-independent
2904 code to infrun.c:follow_fork_inferior.
2906 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2908 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2909 * gdbarch.c: Regenerate.
2910 * gdbarch.h: Likewise.
2911 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2912 gdbarch method 'regset_from_core_section'.
2913 (get_core_register_section): Remove handling for the case that
2914 regset == NULL and regset_from_core_section is defined.
2915 (get_core_registers): Drop check for deleted method.
2916 * procfs.c (procfs_do_thread_registers): Adjust comment.
2918 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2920 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2921 (linux_nat_make_corefile_notes): Remove.
2922 (linux_target_install_ops): Do not set target method
2923 'make_corefile_notes'.
2924 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2926 (linux_corefile_thread_callback): Instead of args->collect, call
2927 linux_collect_thread_registers.
2928 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2929 NULL unless there is a regset iterator.
2930 (linux_make_corefile_notes_1): Remove.
2931 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2932 by linux_make_corefile_notes.
2933 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2935 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2938 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2940 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2942 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2944 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2945 (xtensa_iterate_over_regset_sections): New.
2946 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2948 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950 * vax-tdep.c (vax_regset_from_core_section): Remove.
2951 (vax_iterate_over_regset_sections): New.
2952 (vax_gdbarch_init): Adjust gdbarch initialization.
2954 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2956 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2957 (tilegx_regset_from_core_section): Remove.
2958 (tilegx_iterate_over_regset_sections): New.
2959 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2961 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2963 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2964 (sparc_iterate_over_regset_sections): New.
2965 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2966 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2968 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2969 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2970 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2971 target method 'make_corefile_notes'.
2973 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2975 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2976 'sizeof_gregset' and 'sizeof_fpregset'.
2977 * sh-tdep.c (sh_regset_from_core_section): Remove.
2978 (sh_iterate_over_regset_sections): New.
2979 (sh_gdbarch_init): Adjust gdbarch initialization.
2980 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2982 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2985 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2987 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2988 (score7_linux_iterate_over_regset_sections): New.
2989 (score_gdbarch_init): Adjust gdbarch initialization.
2991 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2993 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2995 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2996 method 'make_corefile_notes'.
2997 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2998 (ppcfbsd_regset_from_core_section): Remove.
2999 (ppcfbsd_iterate_over_regset_sections): New.
3000 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3002 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3003 (ppcnbsd_iterate_over_regset_sections): New.
3004 (ppcnbsd_init_abi): Adjust.
3005 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3006 (ppcobsd_iterate_over_regset_sections): New.
3007 (ppcobsd_init_abi): Adjust.
3008 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3009 (rs6000_aix_iterate_over_regset_sections): New.
3010 (rs6000_aix_init_osabi): Adjust.
3012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3014 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3015 (nios2_regset_from_core_section): Remove.
3016 (nios2_iterate_over_regset_sections): New.
3017 (nios2_linux_init_abi): Adjust gdbarch initialization.
3019 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3021 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3022 (am33_iterate_over_regset_sections): New.
3023 (am33_linux_init_osabi): Adjust gdbarch initialization.
3025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3028 (mips_linux_iterate_over_regset_sections): New.
3029 (mips_linux_init_abi): Adjust gdbarch initialization.
3030 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3031 (mips64obsd_iterate_over_regset_sections): New.
3032 (mips64obsd_init_abi): Adjust.
3033 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3034 (mipsnbsd_iterate_over_regset_sections): New.
3035 (mipsnbsd_init_abi): Adjust.
3037 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3039 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3040 (m88k_iterate_over_regset_sections): New.
3041 (m88k_gdbarch_init): Adjust gdbarch initialization.
3043 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3045 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3046 (ia64_linux_iterate_over_regset_sections): New.
3047 (ia64_linux_init_abi): Adjust gdbarch initialization.
3049 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3052 (m68kbsd_iterate_over_regset_sections): New.
3053 (m68kbsd_init_abi): Adjust gdbarch initialization.
3054 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3055 (m68k_linux_iterate_over_regset_sections): New.
3056 (m68k_linux_init_abi): Adjust gdbarch initialization.
3058 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3060 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3061 (m32r_linux_regset_from_core_section): Remove.
3062 (m32r_linux_iterate_over_regset_sections): New.
3063 (m32r_linux_init_abi): Adjust gdbarch initialization.
3065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3068 (amd64obsd_iterate_over_regset_sections): New.
3069 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3070 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3072 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3073 regset_from_core_section initialization.
3074 * i386-tdep.c (i386_regset_from_core_section): Remove.
3075 (i386_iterate_over_regset_sections): New.
3076 (i386_gdbarch_init): Adjust gdbarch initialization.
3077 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3078 (i386_iterate_over_regset_sections): New prototype.
3079 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3081 (i386obsd_aout_iterate_over_regset_sections): New.
3082 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3083 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3085 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3086 (amd64fbsd_init_abi): Call fbsd_init_abi.
3087 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3088 (i386fbsd4_init_abi): Call fbsd_init_abi.
3089 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3090 target method 'make_corefile_notes'.
3091 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3093 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3096 (hppa_hpux_iterate_over_regset_sections): New.
3097 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3098 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3099 (hppa_linux_iterate_over_regset_sections): New.
3100 (hppa_linux_init_abi): Adjust.
3101 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3102 (hppanbsd_iterate_over_regset_sections): New.
3103 (hppanbsd_init_abi): Adjust.
3104 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3105 (hppaobsd_iterate_over_regset_sections): New.
3106 (hppaobsd_init_abi): Adjust.
3108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3110 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3111 (frv_linux_iterate_over_regset_sections): New.
3112 (frv_linux_init_abi): Adjust gdbarch initialization.
3114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3116 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3117 (armbsd_iterate_over_regset_sections): New prototype.
3118 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3119 (armbsd_iterate_over_regset_sections): New.
3120 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3125 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3126 (alpha_linux_iterate_over_regset_sections): New.
3127 (alpha_linux_init_abi): Adjust gdbarch initialization.
3128 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3130 (alphanbsd_iterate_over_regset_sections): New prototype.
3132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3136 (aarch64_linux_iterate_over_regset_sections): New.
3137 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3139 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3141 * fbsd-tdep.c: New file.
3142 * fbsd-tdep.h: New file.
3143 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3144 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3145 (ALLDEPFILES): Add fbsd-tdep.c.
3147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3149 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3151 * gdbarch.h: Regenerate.
3152 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3154 (get_core_register_section): Add parameter 'regset' and use it, if
3155 set. Add parameter 'min_size' and verify the bfd section size
3157 (get_core_registers_cb): Add parameter 'regset' and pass it to
3158 get_core_register section. For the "standard" register sections
3159 ".reg" and ".reg2", set an appropriate default for human_name.
3160 (get_core_registers): Don't abort when the gdbarch has an iterator
3161 but no regset_from_core_section. Add NULL/0 for parameters
3162 'regset'/'min_size' in calls to get_core_register_section.
3163 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3164 'regset' and use it instead of calling the
3165 regset_from_core_section gdbarch method.
3166 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3167 * i386-tdep.c (i386_supply_xstateregset)
3168 (i386_collect_xstateregset, i386_xstateregset): Moved to
3170 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3172 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3173 core file support only if the regset iterator hasn't been set.
3174 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3175 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3176 Moved from i386-tdep.c and renamed to *_linux*.
3177 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3178 each callback invocation. Allow any .reg-xstate size when reading
3180 * amd64-tdep.c (amd64_supply_xstateregset)
3181 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3183 (amd64_regset_from_core_section): Remove.
3184 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3185 install an amd64-specific regset_from_core_section gdbarch method.
3186 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3187 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3188 Moved from amd64-tdep.c and renamed to *_linux*.
3189 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3190 to each callback invocation. Allow any .reg-xstate size when
3191 reading from a core file.
3192 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3193 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3194 each callback invocation.
3195 (arm_linux_init_abi): No longer set the regset_from_core_section
3197 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3198 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3199 each callback invocation.
3200 (ppc_linux_init_abi): No longer set the regset_from_core_section
3202 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3203 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3204 (s390_regset_from_core_section): Remove.
3205 (s390_iterate_over_regset_sections): Add regset parameter to each
3206 callback invocation.
3207 (s390_gdbarch_init): No longer set the regset_from_core_section
3208 gdbarch method. Drop initialization of deleted tdep fields.
3210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3212 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3213 (amd64_linux_iterate_over_regset_sections): New.
3214 (amd64_linux_init_abi_common): Don't install the regset section
3215 list, but the new iterator in gdbarch.
3216 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3217 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3218 (arm_linux_iterate_over_regset_sections): ...here. New function.
3219 (arm_linux_init_abi): Set iterator instead of section list.
3220 * corelow.c (get_core_registers_cb): New function, logic moved
3222 (get_core_registers): ...loop body here. Use new iterator method
3223 instead of walking through the regset section list.
3224 * gdbarch.sh: Remove 'core_regset_sections'. New method
3225 'iterate_over_regset_sections'. New typedef
3226 'iterate_over_regset_sections_cb'.
3227 * gdbarch.c: Regenerate.
3228 * gdbarch.h: Likewise.
3229 * i386-linux-tdep.c (i386_linux_regset_sections)
3230 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3232 (i386_linux_iterate_over_regset_sections): New.
3233 (i386_linux_init_abi): Don't choose a regset section list, but
3234 install new iterator in gdbarch.
3235 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3236 (linux_collect_regset_section_cb): New function, logic moved
3238 (linux_collect_thread_registers): ...loop body here. Use iterator
3239 method instead of walking through list.
3240 (linux_make_corefile_notes_1): Check for presence of iterator
3241 method instead of regset section list.
3242 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3243 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3244 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3245 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3246 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3247 (ppc_linux_init_abi): Don't choose from above regset section
3248 lists, but install new iterator in gdbarch.
3249 * regset.h (struct core_regset_section): Remove.
3250 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3251 have_linux_v1, have_linux_v2, and have_tdb.
3252 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3253 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3254 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3255 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3256 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3257 (s390_iterate_over_regset_sections): ...here. New function. Use
3259 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3260 regset section lists, but install new iterator.
3262 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3264 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3266 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3268 * progspace.c (print_program_space): Don't prune program spaces
3269 before printing them.
3271 2014-09-25 Pedro Alves <palves@redhat.com>
3273 * infrun.c (user_visible_resume_ptid): Don't check
3274 singlestep_breakpoints_inserted_p.
3276 2014-09-25 Pedro Alves <palves@redhat.com>
3278 * breakpoint.c (should_be_inserted): Add debug output.
3280 2014-09-25 Pedro Alves <palves@redhat.com>
3282 * infrun.c (stepping_past_instruction_at)
3283 (clear_exit_convenience_vars): Point at infrun.h instead of
3285 (handle_signal_stop): Fix typo.
3287 2014-09-24 Yao Qi <yao@codesourcery.com>
3289 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3292 2014-09-22 Gary Benson <gbenson@redhat.com>
3294 * target.c (target_stop): Updated comment.
3296 2014-09-22 Gary Benson <gbenson@redhat.com>
3298 * target/target.h (target_stop_ptid): Renamed as...
3299 (target_stop_and_wait): New function. Updated comment.
3301 (target_continue_ptid): Renamed as...
3302 (target_continue_no_signal): New function. Updated comment.
3305 2014-09-22 Pedro Alves <palves@redhat.com>
3307 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3309 * breakpoint.c (enum ugll_insert_mode): New enum.
3310 (always_inserted_mode): Now a plain boolean.
3311 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3312 (breakpoints_always_inserted_mode): Delete.
3313 (breakpoints_should_be_inserted_now): New function.
3314 (insert_breakpoints): Pass UGLL_INSERT to
3315 update_global_location_list instead of calling
3316 insert_breakpoint_locations manually.
3317 (create_solib_event_breakpoint_1): New, factored out from ...
3318 (create_solib_event_breakpoint): ... this.
3319 (create_and_insert_solib_event_breakpoint): Use
3320 create_solib_event_breakpoint_1 instead of calling
3321 insert_breakpoint_locations manually.
3322 (update_global_location_list): Change parameter type from boolean
3323 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3324 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3325 (update_global_location_list_nothrow): Change parameter type from
3326 boolean to enum ugll_insert_mode.
3327 (_initialize_breakpoint): "breakpoint always-inserted" option is
3328 now a boolean command. Update help text.
3329 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3330 (breakpoints_should_be_inserted_now): New declaration.
3331 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3332 Remove breakpoints_always_inserted_mode check.
3333 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3334 * remote.c (remote_start_remote): Likewise.
3336 2014-09-22 Pedro Alves <palves@redhat.com>
3338 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3339 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3340 Instead, pass UGLL_INSERT to update_global_location_list.
3341 (update_global_location_list): Change parameter type from boolean
3342 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3343 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3344 (create_solib_event_breakpoint_1): New, factored out from ...
3345 (create_solib_event_breakpoint): ... this.
3346 (create_and_insert_solib_event_breakpoint): Use
3347 create_solib_event_breakpoint_1 instead of calling
3348 insert_breakpoint_locations manually.
3349 (update_global_location_list): Handle UGLL_INSERT.
3351 2014-09-22 Pedro Alves <palves@redhat.com>
3353 * breakpoint.c (enum ugll_insert_mode): New enum.
3354 (update_global_location_list)
3355 (update_global_location_list_nothrow): Change parameter type from
3356 boolean to enum ugll_insert_mode. All callers adjusted.
3358 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3360 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3361 SystemTap support in GDB.
3363 2014-09-19 Don Breazeal <donb@codesourcery.com>
3365 * linux-nat.c (linux_handle_extended_wait): Call
3366 linux_ptrace_get_extended_event.
3367 (wait_lwp): Call linux_is_extended_waitstatus.
3368 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3369 and linux_is_extended_waitstatus.
3370 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3371 linux_ptrace_get_extended_event.
3372 (linux_ptrace_get_extended_event): New function.
3373 (linux_is_extended_waitstatus): New function.
3374 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3375 (linux_is_extended_waitstatus): New declarations.
3377 2014-09-19 Yao Qi <yao@codesourcery.com>
3379 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3380 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3381 comments. Callers update.
3382 (dwarf_decode_lines): Likewise.
3383 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3384 comments. Skip the line table if 'lowpc' is greater than
3385 'address'. Don't check
3386 dwarf2_per_objfile->has_section_at_zero.
3388 2014-09-18 Doug Evans <dje@google.com>
3390 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3391 * python/py-symtab.c (stpy_get_producer): New function.
3392 (symtab_object_getset): Add "producer" attribute.
3394 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3397 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3398 (do_captured_read_memory_integer): Remove.
3399 (safe_read_memory_integer): Use target_read_memory directly instead
3400 of catching errors in do_captured_read_memory_integer.
3402 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3404 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3407 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3409 * objc-lang.c (find_implementation_from_class): Remove dead code.
3411 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3414 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3415 "fprintf_unfiltered (gdb_stdlog...)".
3417 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3419 PR breakpoints/12526
3420 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3422 * breakpoint.c (watch_command_1): Use these fields to retain
3423 bitfield information.
3424 (extract_bitfield_from_watchpoint_value): New function.
3425 (watchpoint_check): Use it.
3426 (update_watchpoint): Use it. Optimize the address and length of a
3427 HW watchpoint pointing to a bitfield.
3428 * value.h (unpack_value_bitfield): New prototype.
3429 * value.c (unpack_value_bitfield): Make extern.
3431 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3433 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3435 * gnu-nat.c (inf_threads): New function.
3436 * gnu-nat.h (inf_threads_ftype): New typedef.
3437 (inf_threads): New declaration.
3438 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3439 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3440 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3441 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3442 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3443 (i386_gnu_dr_get_control): New functions.
3444 (reg_addr): New structure.
3445 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3446 i386 debugging register hooks.
3447 * NEWS: Mention this.
3449 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3451 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3452 vector data transfer instructions.
3453 (arm_record_coproc_data_proc): Updated.
3455 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3457 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3458 arm_record_exreg_ld_st_insn.
3459 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3462 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3464 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3465 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3466 processing instructions.
3468 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3470 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3471 for advance SIMD struct ld/st insn.
3472 (thumb2_record_decode_insn_handler): Replace stub handler with
3473 thumb2_record_asimd_struct_ld_st.
3475 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3477 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3478 for asimd, vfp and coprocessor insns.
3479 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3480 and coprocessor insns.
3481 (thumb2_record_coproc_insn): New function.
3482 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3484 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3487 2014-09-13 Doug Evans <xdje42@gmail.com>
3489 * NEWS: Mention new "queue-signal" command.
3490 * infcmd.c (queue_signal_command): New function.
3491 (_initialize_infcmd): Add new queue-signal command.
3493 2014-09-13 Doug Evans <xdje42@gmail.com>
3495 * linux-nat.c (wait_lwp): Add debugging printf.
3496 (linux_nat_wait_1): Ditto.
3498 2014-09-12 Pedro Alves <palves@redhat.com>
3500 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3501 (create_and_insert_solib_event_breakpoint): New functions.
3502 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3503 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3504 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3505 (remove_dbx_link_breakpoint): Delete function.
3506 (insert_dbx_link_bpt_in_file): Use
3507 create_and_insert_solib_event_breakpoint instead of
3508 deprecated_insert_raw_breakpoint.
3509 (procfs_wait): Don't check whether we hit __dbx_link here.
3510 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3512 * solib-irix.c (base_breakpoint): Delete global.
3513 (disable_break): Delete function.
3514 (enable_break): Use create_solib_event_breakpoint
3515 instead of deprecated_insert_raw_breakpoint.
3516 (irix_solib_handle_event): New function.
3517 (irix_solib_create_inferior_hook): Don't run the target or disable
3518 the mapping-complete breakpoint here.
3519 (_initialize_irix_solib): Install irix_solib_handle_event as
3520 so_ops->handle_event hook.
3522 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3523 Ulrich Weigand <uweigand@de.ibm.com>
3526 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3527 instead of read_memory_unsigned_integer.
3529 2014-09-12 Gary Benson <gbenson@redhat.com>
3531 * nat/linux-waitpid.c: Include common-defs.h.
3532 [GDBSERVER]: Add FIXME comment.
3533 [!GDBSERVER]: Don't include defs.h or signal.h.
3534 (linux_debug) [!GDBSERVER]: Remove empty block.
3536 2014-09-12 Gary Benson <gbenson@redhat.com>
3538 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3539 Don't include defs.h or server.h.
3541 2014-09-12 Gary Benson <gbenson@redhat.com>
3543 * nat/linux-btrace.c: Include common-defs.h.
3544 Don't include defs.h, server.h or gdbthread.h.
3545 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3547 2014-09-12 Gary Benson <gbenson@redhat.com>
3549 * common/agent.c: Include common-defs.h.
3550 Don't include defs.h or server.h.
3551 * common/buffer.c: Likewise.
3552 * common/common-debug.c: Likewise.
3553 * common/common-utils.c: Likewise.
3554 * common/errors.c: Likewise.
3555 * common/filestuff.c: Likewise.
3556 * common/format.c: Likewise.
3557 * common/gdb_vecs.c: Likewise.
3558 * common/print-utils.c: Likewise.
3559 * common/ptid.c: Likewise.
3560 * common/rsp-low.c: Likewise.
3561 * common/signals.c: Likewise.
3562 * common/vec.c: Likewise.
3563 * common/xml-utils.c: Likewise.
3564 * nat/linux-osdata.c: Likewise.
3565 * nat/linux-procfs.c: Likewise.
3566 * nat/linux-ptrace.c: Likewise.
3567 * nat/mips-linux-watch.c: Likewise.
3568 * target/waitstatus.c: Likewise.
3570 2014-09-12 Tom Tromey <tromey@redhat.com>
3571 Gary Benson <gbenson@redhat.com>
3573 * common/common-regcache.h: New file.
3574 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3575 * regcache.h: Include common-regcache.h.
3576 (regcache_read_pc): Don't declare.
3577 * regcache.c (get_thread_regcache_for_ptid): New function.
3578 * nat/linux-btrace.c: Don't include regcache.h.
3579 Include common-regcache.h.
3580 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3582 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3584 * regcache.h (struct regset): Declare.
3586 2014-09-11 Pedro Alves <palves@redhat.com>
3589 * main.c: Include "infrun.h".
3590 (catch_command_errors, catch_command_errors_const): Wait for the
3591 foreground command to complete.
3592 * top.c (maybe_wait_sync_command_done): New function, factored out
3594 (maybe_wait_sync_command_done): ... here.
3595 * top.h (maybe_wait_sync_command_done): New declaration.
3597 2014-09-11 Tom Tromey <tromey@redhat.com>
3598 Gary Benson <gbenson@redhat.com>
3600 * common/symbol.h: New file.
3601 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3602 * minsyms.c (find_minimal_symbol_address): New function.
3603 * common/agent.c: Include common/symbol.h.
3604 [!GDBSERVER]: Don't include objfiles.h.
3605 (agent_look_up_symbols): Use find_minimal_symbol_address.
3607 2014-09-11 Gary Benson <gbenson@redhat.com>
3609 * target/target.h (target_stop_ptid, target_continue_ptid):
3611 * target.c (target_stop_ptid, target_continue_ptid): New
3613 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3614 (agent_run_command): Always use target_stop_ptid and
3615 target_continue_ptid.
3617 2014-09-11 Tom Tromey <tromey@redhat.com>
3618 Gary Benson <gbenson@redhat.com>
3620 * target/target.h: New file.
3621 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3622 * target.h: Include target/target.h.
3623 (target_read_memory, target_write_memory): Don't declare.
3624 * target.c (target_read_uint32): New function.
3625 * common/agent.c: Include target/target.h.
3626 [!GDBSERVER]: Don't include target.h.
3627 (helper_thread_id): Type changed to uint32_t.
3628 (agent_get_helper_thread_id): Use target_read_uint32.
3629 (agent_run_command): Always use target_read_memory and
3630 target_write_memory.
3631 (agent_capability): Type changed to uint32_t.
3632 (agent_capability_check): Use target_read_uint32.
3634 2014-09-11 Gary Benson <gbenson@redhat.com>
3636 * common/common-debug.h (show_debug_regs): Declare.
3637 * common/common-debug.c (show_debug_regs): Define.
3638 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3639 all uses with show_debug_regs. Replace all uses that considered
3640 debug_hw_points as a multi-value integer with straight boolean
3642 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3643 with show_debug_regs.
3644 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3645 all uses with show_debug_regs.
3646 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3647 uses with show_debug_regs.
3649 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3651 * findvar.c (address_from_register): Handle targets requiring
3652 a special conversion routine even for plain pointer types.
3654 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3656 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3657 (store_register): Do not call exec_one_dummy_insn.
3659 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3661 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3662 dereference it first. Use value_enclosing_type instead of
3664 (ada_array_length): Likewise.
3666 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3668 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3669 Adjust function implementation and documentation accordingly.
3670 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3671 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3672 Update call to ada_value_ptr_subscript.
3674 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3676 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3677 instead of VAL's type.
3679 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3681 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3683 2014-09-09 Doug Evans <xdje42@gmail.com>
3686 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3687 last parameter to pkg-config, not first.
3688 * configure.ac: Pass --with-guile provided pkg-config path to
3689 GDB_GUILE_PROGRAM_NAMES.
3690 * configure: Regenerate.
3692 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3694 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3697 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3699 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3700 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3701 the list of sections determining GDB_OSABI_IRIX.
3703 2014-09-09 James Hogan <james.hogan@imgtec.com>
3705 * MAINTAINERS (Write After Approval): Add "James Hogan".
3707 2014-09-09 James Hogan <james.hogan@imgtec.com>
3709 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3711 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3713 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3715 2014-09-08 Doug Evans <xdje42@gmail.com>
3718 * guile.c: #include <signal.h>.
3719 (_initialize_guile): Block SIGCHLD while initializing Guile.
3721 Replaces the following, which is reverted.
3723 2014-07-26 Doug Evans <xdje42@gmail.com>
3726 * configure.ac: Add check for header gc/gc.h.
3727 Add check for function setenv.
3728 * configure: Regenerate.
3729 * config.in: Regenerate.
3730 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3732 2014-09-08 Doug Evans <xdje42@gmail.com>
3734 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3735 with named constant. Fix style of pointer comparison.
3736 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3738 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3741 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3742 decide whether we display the command on "show user".
3743 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3744 printing command name.
3745 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3746 * cli/cli-decode.c (cli_user_command_p): Create helper function
3747 to verify whether cmd_list_element is a user-defined command.
3749 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3752 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3753 Fix goto out of TRY_CATCH.
3755 2014-09-06 Doug Evans <xdje42@gmail.com>
3756 Tom Tromey <tromey@redhat.com>
3759 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3760 $_any_caller_matches.
3761 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3762 * python/lib/gdb/function/caller_is.py: New file.
3764 2014-09-06 Doug Evans <xdje42@gmail.com>
3766 * infcmd.c (program_info): Fix typo.
3768 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3771 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3772 'number'. New variable 'has_digit'. Rewrite code to deal with
3773 subexpressions on SDT probes.
3775 2014-09-04 Pedro Alves <palves@redhat.com>
3777 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3778 the input is only one character long.
3780 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3783 * f-valprint.c (f_val_print): Specify the correct print option to
3784 use when printing integer values.
3786 2014-09-04 Gary Benson <gbenson@redhat.com>
3788 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3789 Remove code to cope with LWPs wrapped as PIDs.
3790 Add assertions to ensure no wrapped LWPs are passed.
3792 2014-09-04 Pedro Alves <palves@redhat.com>
3794 * value.c (value_ranges_copy_adjusted): New function, factored out
3796 (value_contents_copy_raw): ... here.
3797 (unpack_value_bits_as_long_1): Rename back to ...
3798 (unpack_bits_as_long): ... this. Remove 'original_value' and
3799 'result' parameters. Change return type to LONGEST.
3800 (unpack_value_bits_as_long): Delete.
3801 (unpack_value_field_as_long_1): Delete.
3802 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3803 (unpack_value_bitfield): New function.
3804 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3805 (value_fetch_lazy): Use unpack_value_bitfield.
3806 * value.h (unpack_value_bits_as_long): Delete declaration.
3808 2014-09-03 Sasha Smundak <asmundak@google.com>
3810 * python/py-frame.c (frapy_read_register): New function.
3812 2014-09-03 James Hogan <james.hogan@imgtec.com>
3814 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3815 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3817 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3820 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3822 (add_cmd): Set "completer_handle_brkchars" to NULL.
3823 * cli/cli-decode.h (struct cmd_list_element)
3824 <completer_handle_brkchars>: New field.
3825 * command.h (completer_ftype_void): New typedef.
3826 (set_cmd_completer_handle_brkchars): New prototype.
3827 * completer.c (set_gdb_completion_word_break_characters): New
3829 (complete_line_internal): Call "completer_handle_brkchars"
3830 callback from command.
3831 * completer.h: Include "command.h".
3832 (set_gdb_completion_word_break_characters): New prototype.
3833 * python/py-cmd.c (cmdpy_completer_helper): New function.
3834 (cmdpy_completer_handle_brkchars): New function.
3835 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3836 (cmdpy_init): Set completer_handle_brkchars to
3837 cmdpy_completer_handle_brkchars.
3839 2014-09-03 Gary Benson <gbenson@redhat.com>
3841 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3842 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3843 Loop conditions changed to equivalent form.
3844 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3845 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3846 ALL_DEBUG_ADDRESS_REGISTERS.
3848 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3850 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3853 2014-09-02 Doug Evans <dje@google.com>
3855 * typeprint.c (find_global_typedef): Fix comment.
3857 2014-09-02 Gary Benson <gbenson@redhat.com>
3859 * i386-nat.h: Renamed as...
3860 * x86-nat.h: New file. All type, function and variable name
3861 prefixes changed from "i386_" to "x86_". All references updated.
3862 * i386-nat.c: Renamed as...
3863 * x86-nat.c: New file. All type, function and variable name
3864 prefixes changed from "i386_" to "x86_". All references updated.
3865 * common/i386-xstate.h: Renamed as...
3866 * common/x86-xstate.h: New file. All type, function and variable
3867 name prefixes changed from "i386_" to "x86_". All references
3869 * nat/i386-cpuid.h: Renamed as...
3870 * nat/x86-cpuid.h: New file. All type, function and variable name
3871 prefixes changed from "i386_" to "x86_". All references updated.
3872 * nat/i386-gcc-cpuid.h: Renamed as...
3873 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3874 name prefixes changed from "i386_" to "x86_". All references
3876 * nat/i386-dregs.h: Renamed as...
3877 * nat/x86-dregs.h: New file. All type, function and variable name
3878 prefixes changed from "i386_" to "x86_". All references updated.
3879 * nat/i386-dregs.c: Renamed as...
3880 * nat/x86-dregs.c: New file. All type, function and variable name
3881 prefixes changed from "i386_" to "x86_". All references updated.
3883 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3885 * varobj.c (_initialize_varobj): Move to the end of file.
3887 2014-08-29 Gary Benson <gbenson@redhat.com>
3889 * common/common-exceptions.h: New file.
3890 * common/common-exceptions.c: Likewise.
3891 * Makefile.in (SFILES): Add common/common-exceptions.c.
3892 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3893 (COMMON_OBS): Add common-exceptions.o.
3894 (common-exceptions.o): New rule.
3895 * exceptions.h (common-exceptions.h): Include.
3896 (gdb_setjmp.h): Do not include.
3897 (return_reason): Moved to common-exceptions.h.
3898 (enum return_reason): Likewise.
3899 (RETURN_MASK): Likewise.
3900 (typedef return_mask): Likewise.
3901 (enum errors): Likewise.
3902 (struct gdb_exception): Likewise.
3903 (exceptions_state_mc_init): Likewise.
3904 (exceptions_state_mc_action_iter): Likewise.
3905 (exceptions_state_mc_action_iter_1): Likewise.
3906 (TRY_CATCH): Likewise.
3907 (throw_exception): Likewise.
3908 (throw_verror): Likewise.
3909 (throw_vquit): Likewise.
3910 (throw_error): Likewise.
3911 (throw_quit): Likewise.
3912 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3913 (enum catcher_action): Likewise.
3914 (struct catcher): Likewise.
3915 (current_catcher): Likewise.
3916 (catcher_list_size): Likewise.
3917 (exceptions_state_mc_init): Likewise.
3918 (catcher_pop): Likewise.
3919 (exceptions_state_mc): Likewise.
3920 (exceptions_state_mc_action_iter): Likewise.
3921 (exceptions_state_mc_action_iter_1): Likewise.
3922 (throw_exception): Likewise.
3923 (exception_messages): Likewise.
3924 (exception_messages_size): Likewise.
3925 (throw_it): Likewise.
3926 (throw_verror): Likewise.
3927 (throw_vquit): Likewise.
3928 (throw_error): Likewise.
3929 (throw_quit): Likewise.
3930 (prepare_to_throw_exception): New function.
3932 2014-08-29 Gary Benson <gbenson@redhat.com>
3934 * common/gdb_setjmp.h: New file.
3935 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3936 * configure.ac: Move sigsetjmp check...
3937 * common/common.m4: ...here.
3938 * configure: Regenerate.
3939 * cp-support.c (SIGJMP_BUF): Delete.
3940 (SIGSETJMP): Likewise.
3941 (SIGLONGJMP): Likewise.
3942 * exceptions.h (gdb_setjmp.h): Include.
3943 (setjmp.h): Do not include.
3944 (EXCEPTIONS_SIGJMP_BUF): Delete.
3945 (EXCEPTIONS_SIGSETJMP): Likewise.
3946 (EXCEPTIONS_SIGLONGJMP): Likewise.
3947 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3949 * exceptions.c: Likewise.
3951 2014-08-29 Gary Benson <gbenson@redhat.com>
3953 * cleanups.h: Moved to...
3954 * common/cleanups.h: New file.
3955 * cleanups.c: Moved to...
3956 * common/cleanups.c: New file. Include common-defs.h and
3957 cleanups.h. Do not include defs.h.
3958 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3959 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3960 (cleanups.o): New rule.
3962 2014-08-29 Gary Benson <gbenson@redhat.com>
3964 * common/errors.h (internal_warning): New declaration.
3965 (internal_vwarning): Likewise.
3966 * common/errors.c (internal_warning): New function.
3967 * utils.h (internal_warning): Don't declare.
3968 (internal_vwarning): Likewise.
3969 * utils.c (internal_warning): Removed.
3971 2014-08-29 Gary Benson <gbenson@redhat.com>
3973 * main.c (captured_main): Use warning during startup.
3974 Prefix startup warning messages with command name.
3976 2014-08-29 Gary Benson <gbenson@redhat.com>
3978 * main.c (captured_main): Handle usage errors with error.
3980 2014-08-29 Gary Benson <gbenson@redhat.com>
3982 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3983 exit pair with a call to error. Wrap the message with _().
3985 2014-08-29 Gary Benson <gbenson@redhat.com>
3987 * main.c (captured_main): Replace a fprintf/exit
3988 pair with a call to error. Wrap the message with _().
3990 2014-08-29 Gary Benson <gbenson@redhat.com>
3992 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3993 pairs with calls to error. Wrap the message with _().
3995 2014-08-29 Gary Benson <gbenson@redhat.com>
3997 * utils.c (vwarning): Protect calls to target_terminal_ours
4000 2014-08-29 Gary Benson <gbenson@redhat.com>
4002 * exceptions.c (print_flush): Protect calls to
4003 target_terminal_ours and wrap_here.
4005 2014-08-29 Gary Benson <gbenson@redhat.com>
4007 * utils.h (filtered_printing_initialized): New declaration.
4008 * utils.c (abort_with_message): New function.
4009 (internal_vproblem): Use abort_with_message for first level
4010 recursive internal problems, and if gdb_stderr is not set up.
4011 Protect calls to target_terminal_ours, begin_line and query.
4013 2014-08-28 Doug Evans <dje@google.com>
4015 * symtab.c (in_prologue): Move definition to better spot.
4016 (skip_prologue_using_sal): Ditto.
4018 2014-08-28 Doug Evans <dje@google.com>
4020 * symtab.c (find_function_start_sal): Move definition to better spot.
4022 2014-08-28 Yao Qi <yao@codesourcery.com>
4024 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4025 found_stack_adjust in forward scan. Remove condition check
4026 on found_stack_adjust which is always true. Indent the code.
4028 2014-08-28 Yao Qi <yao@codesourcery.com>
4030 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4031 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4032 (dwarf_decode_lines): Remove argument
4033 want_line_info. Remove condition check on want_line_info.
4036 2014-08-27 Doug Evans <dje@google.com>
4038 * dwarf2read.c (dwarf_record_line): Fix typo.
4040 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4042 * target.h (struct target_ops::to_terminal_save_ours): Remove
4044 (target_terminal_save_ours): Remove macro.
4045 * target-delegates.c: Regenerate.
4046 * inf-child.c (inf_child_target): Don't set the nonexistent
4047 field to_terminal_save_ours.
4048 * inferior.h (child_terminal_save_ours): Remove declaration.
4049 * terminal.h (gdb_save_tty_state): New declaration.
4050 * inflow.c (child_terminal_save_ours): Rename to ...
4051 (gdb_save_tty_state): ... this.
4052 * tui/tui.c: Include terminal.h.
4053 (tui_enable): Use gdb_save_tty_state instead of
4054 target_terminal_save_ours.
4055 (tui_disable): Likewise.
4057 2014-08-25 Doug Evans <dje@google.com>
4059 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4060 Pass NULL instead of 0 for context pointer.
4062 2014-08-25 Yao Qi <yao@codesourcery.com>
4064 * dwarf2read.c: Fix grammatical error.
4066 2014-08-24 Yao Qi <yao@codesourcery.com>
4068 * dwarf2read.c (scan_partial_symbols): Update comments.
4069 Rename argument 'need_pc' with 'set_addrmap'.
4070 (add_partial_namespace): Rename argument 'need_pc' with
4072 (add_partial_module): Likewise.
4073 (add_partial_subprogram): Likewise. Update comments.
4074 (dwarf2_name): Fix typo.
4076 2014-08-22 Doug Evans <dje@google.com>
4079 * dwarf2read.c (dwarf_record_line_p): New function.
4080 (dwarf_decode_lines_1): Ignore subsequent line number entries
4081 for the same line if any entry had a non-zero discriminator.
4083 2014-08-22 Doug Evans <dje@google.com>
4085 * buildsym.h (record_line_ftype): New typedef.
4086 (record_line): Use it.
4087 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4088 (dwarf_decode_lines_1): Call them.
4090 2014-08-22 Yao Qi <yao@codesourcery.com>
4092 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4093 (ctf_end): Remove code.
4095 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4097 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4098 (linux_make_corefile_notes): call update_thread_list, protected against
4101 2014-08-21 Pedro Alves <palves@redhat.com>
4103 * infcmd.c (attach_command): Remove comment.
4105 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4107 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4108 unsigned LONGEST to ULONGEST.
4110 2014-08-20 Pedro Alves <palves@redhat.com>
4112 * Makefile.in (check-read1): New rule.
4114 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4116 * value.c (value_from_contents_and_address): Strip resolved_type's
4117 typedef layers before checking its TYPE_DATA_LOCATION.
4119 2014-08-20 Pedro Alves <palves@redhat.com>
4121 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4123 2014-08-20 Yao Qi <yao@codesourcery.com>
4125 * amd64-tdep.c (amd64_classify): Add a blank line after the
4126 example. Move "*/" to a new line.
4127 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4128 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4129 * dwarf2read.c (psymtab_include_file_name): Likewise.
4131 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4132 Pedro Alves <palves@redhat.com>
4136 * ada-lang.c (coerce_unspec_val_to_type): Use
4137 value_contents_copy_raw.
4138 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4139 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4140 * cp-valprint.c (cp_print_value_fields): Let the common printing
4141 code handle optimized out values.
4142 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4143 * d-valprint.c (dynamic_array_type): Use
4144 value_bits_any_optimized_out.
4145 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4146 check_any_valid fields.
4147 (check_pieced_value_bits): Delete and inline ...
4148 (check_pieced_synthetic_pointer): ... here.
4149 (check_pieced_value_validity): Delete.
4150 (check_pieced_value_invalid): Delete.
4151 (pieced_value_funcs): Remove check_validity and check_any_valid
4153 (read_pieced_value): Use mark_value_bits_optimized_out.
4154 (write_pieced_value): Switch to use
4155 mark_value_bytes_optimized_out.
4156 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4157 of assuming the whole value is optimized out.
4158 * findvar.c (read_frame_register_value): Remove special handling
4159 of optimized out registers.
4160 (value_from_register): Use mark_value_bytes_optimized_out.
4161 * frame-unwind.c (frame_unwind_got_optimized): Use
4162 mark_value_bytes_optimized_out.
4163 * jv-valprint.c (java_value_print): Adjust.
4164 (java_print_value_fields): Let the common printing code handle
4165 optimized out values.
4166 * mips-tdep.c (mips_print_register): Remove special handling of
4167 optimized out registers.
4168 * opencl-lang.c (lval_func_check_validity): Delete.
4169 (lval_func_check_any_valid): Delete.
4170 (opencl_value_funcs): Remove check_validity and check_any_valid
4172 * p-valprint.c (pascal_object_print_value_fields): Let the common
4173 printing code handle optimized out values.
4174 * stack.c (read_frame_arg): Remove special handling of optimized
4175 out values. Fetch both VAL and ENTRYVAL before comparing
4176 contents. Adjust to value_available_contents_eq rename.
4177 * valprint.c (valprint_check_validity)
4178 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4179 (val_print_array_elements): Adjust.
4180 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4181 (value_bits_any_optimized_out): New function.
4182 (value_entirely_covered_by_range_vector): New function, factored
4183 out from value_entirely_unavailable.
4184 (value_entirely_unavailable): Reimplement.
4185 (value_entirely_optimized_out): New function.
4186 (insert_into_bit_range_vector): New function, factored out from
4187 mark_value_bits_unavailable.
4188 (mark_value_bits_unavailable): Reimplement.
4189 (struct ranges_and_idx): New struct.
4190 (find_first_range_overlap_and_match): New function, factored out
4191 from value_available_contents_bits_eq.
4192 (value_available_contents_bits_eq): Rename to ...
4193 (value_contents_bits_eq): ... this. Check both unavailable
4194 contents and optimized out contents.
4195 (value_available_contents_eq): Rename to ...
4196 (value_contents_eq): ... this.
4197 (allocate_value_lazy): Remove reference to the old optimized_out
4199 (allocate_optimized_out_value): Use
4200 mark_value_bytes_optimized_out.
4201 (require_not_optimized_out): Adjust to check whether the
4202 optimized_out vec is empty.
4203 (ranges_copy_adjusted): New function, factored out from
4204 value_contents_copy_raw.
4205 (value_contents_copy_raw): Also copy the optimized out ranges.
4206 Assert the destination ranges aren't optimized out.
4207 (value_contents_copy): Update comment, remove call to
4208 require_not_optimized_out.
4209 (value_contents_equal): Adjust to check whether the optimized_out
4211 (set_value_optimized_out, value_optimized_out_const): Delete.
4212 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4214 (value_entirely_optimized_out, value_bits_valid): Delete.
4215 (value_copy): Take a VEC copy of the 'optimized_out' field.
4216 (value_primitive_field): Remove special handling of optimized out.
4217 (value_fetch_lazy): Assert that lazy values have no unavailable
4218 regions. Use value_bits_any_optimized_out. Remove some special
4219 handling for optimized out values.
4220 * value.h: Add intro comment about <optimized out> and
4222 (struct lval_funcs): Remove check_validity and check_any_valid
4224 (set_value_optimized_out, value_optimized_out_const): Remove.
4225 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4227 (value_bits_any_optimized_out): New declaration.
4228 (value_bits_valid): Delete declaration.
4229 (value_available_contents_eq): Rename to ...
4230 (value_contents_eq): ... this, and extend comments.
4232 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4234 Fix -fsanitize=address on unreadable inferior strings.
4235 * valprint.c (val_print_string): Fix access before BUFFER.
4237 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4239 * target.c (target_struct_size): Remove.
4240 (target_struct_allocsize): Remove.
4241 (DEFAULT_ALLOCSIZE): Remove.
4242 (target_ops_p): New typedef.
4243 (DEF_VEC_P (target_ops_p)): New vector type.
4244 (target_structs): Change type to VEC (target_ops_p).
4245 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4246 (find_default_run_target): Rewrite for loop following changes to
4249 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4251 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4252 Adjust code accordingly. Adjust function description comment.
4254 2014-08-19 Yao Qi <yao@codesourcery.com>
4256 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4259 2014-08-19 Alan Modra <amodra@gmail.com>
4261 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4262 * config.in: Regenerate.
4263 * configure: Regenerate.
4265 2014-08-19 Tom Tromey <tromey@redhat.com>
4266 Gary Benson <gbenson@redhat.com>
4268 * common/common-debug.h: New file.
4269 * common/common-debug.c: Likewise.
4270 * debug.c: Likewise.
4271 * Makefile.in (SFILES): Add common/common-debug.c.
4272 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4273 (COMMON_OBS): Add common-debug.o and debug.o.
4274 (common-debug.o): New rule.
4275 * common/common-defs.h: Include common-debug.h.
4276 * common/agent.c (debug_agent_printf): New function.
4277 (DEBUG_AGENT): Redefine.
4278 * nat/i386-dregs.c (debug_printf): Undefine.
4280 2014-08-19 Gary Benson <gbenson@redhat.com>
4282 * common/common-defs.h: Include print-utils.h.
4283 * utils.h: Do not include print-utils.h.
4285 2014-08-19 Tom Tromey <tromey@redhat.com>
4286 Gary Benson <gbenson@redhat.com>
4288 * common/common-types.h: New file.
4289 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4290 * common/common-defs.h: Include common-types.h.
4291 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4294 2014-08-19 Tom Tromey <tromey@redhat.com>
4295 Gary Benson <gbenson@redhat.com>
4297 * common/errors.h: New file.
4298 * common/errors.c: Likewise.
4299 * Makefile.in (SFILES): Add common/errors.c.
4300 (HFILES_NO_SRCDIR): Add common/errors.h.
4301 (COMMON_OBS): Add errors.o.
4302 (errors.o): New rule.
4303 * common/common-defs.h: Include errors.h.
4304 * utils.h (perror_with_name, error, verror, warning, vwarning):
4306 * common/common-utils.h: (malloc_failure, internal_error):
4309 2014-08-19 Gary Benson <gbenson@redhat.com>
4311 * utils.c (internal_vproblem): Always print the message.
4313 2014-08-18 Doug Evans <dje@google.com>
4315 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4317 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4319 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4320 Return 0 if TYPE is dynamic.
4321 (print_range): Add handling of dynamic ranges.
4323 2014-08-18 Keven Boell <keven.boell@intel.com>
4324 Joel Brobecker <brobecker@adacore.com>
4326 * gdbtypes.h (struct main_type): Add field "data_location".
4327 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4328 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4329 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4330 a dynamic data location.
4331 (resolve_dynamic_type): Add DW_AT_data_location handling.
4332 (copy_recursive, copy_type): Copy the data_location information
4334 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4335 * value.c (value_from_contents_and_address): Add
4336 DW_AT_data_location handling.
4338 2014-08-18 Keven Boell <keven.boell@intel.com>
4339 Joel Brobecker <brobecker@adacore.com>
4341 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4342 field "get_object_address".
4343 * dwarf2expr.c (execute_stack_op): Add handling for
4344 DW_OP_push_object_address.
4345 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4346 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4347 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4348 (dwarf_expr_get_obj_addr): New function.
4349 (dwarf_expr_ctx_funcs): Add get_object_address field.
4350 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4351 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4352 (dwarf2_evaluate_property): Add parameter "address". Use it.
4353 (needs_get_obj_addr): New function.
4354 (needs_frame_ctx_funcs): Add get_object_address field.
4355 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4356 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4357 (resolve_dynamic_array): Likewise.
4359 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4361 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4362 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4363 fixed value for records and unions for which some GNAT encodings
4366 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4368 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4369 rewrite to avoid "else if" and "else" constructs. Should be
4370 a no-op in practice.
4372 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4374 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4377 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4380 * eval.c: Update all calls to find_overload_match.
4381 * valarith.c: Likewise.
4382 (value_user_defined_cpp_op, value_user_defined_op): New
4383 argument NOSIDE. Update all callers.
4384 * valops.c (find_overload_match): New argument NOSIDE.
4385 * value.h (find_overload_match): Update signature.
4387 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4389 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4390 'items' methods instead of 'iteritems' method on dictionaries.
4392 2014-08-15 Doug Evans <dje@google.com>
4394 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4397 2014-08-15 Doug Evans <dje@google.com>
4399 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4401 2014-08-15 Doug Evans <dje@google.com>
4403 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4405 2014-08-15 Doug Evans <dje@google.com>
4407 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4410 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4412 * dcache.h: Include target.h, to avoid compile time warnings.
4414 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4416 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4417 frame_info" partial declaration.
4418 * gdbarch.h: Regenerate.
4420 2014-08-15 Yao Qi <yao@codesourcery.com>
4422 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4423 Add parameter 'decode_for_pst_p'. Callers update.
4425 2014-08-13 Yao Qi <yao@codesourcery.com>
4428 * configure.ac: Use local variable 'pos'.
4429 * configure: Regenerated.
4431 2014-08-11 Doug Evans <dje@google.com>
4433 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4434 message, it is redundant with "Reading symbols from ..." message.
4436 2014-08-10 Doug Evans <xdje42@gmail.com>
4438 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4440 2014-08-09 Yao Qi <yao@codesourcery.com>
4443 * remote.c (remote_xfer_partial): Remove dead code.
4445 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4447 * ia64-linux-tdep.c: Include "regset.h".
4448 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4449 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4450 (ia64_linux_supply_fpregset): New function.
4451 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4452 (ia64_linux_regset_from_core_section): New function.
4453 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4456 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4458 * m68klinux-tdep.c: Include "regset.h".
4459 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4460 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4461 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4462 (m68k_linux_regset_from_core_section): New function.
4463 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4466 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4468 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4469 function. Move logic to...
4470 (tilegx_linux_regmap): ... this new register map.
4471 (tilegx_linux_regset): Refer to register map, replace supply
4472 method by regcache_supply_regset, and add collect method.
4473 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4474 TILEGX_FIRST_EASY_REGNUM.
4476 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4478 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4479 that calls regcache_supply_regset and handles the EPC register
4480 separately. Move main logic to...
4481 (score7_linux_gregmap): ... this new register map.
4482 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4483 (score7_linux_gregset): Refer to register map. Add collect method.
4484 (score7_linux_regset_from_core_section): Replace
4485 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4486 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4487 (struct regset): Delete unused forward declaraction.
4488 (struct pt_regs): Delete structure definition.
4489 (elf_gregset_t): Delete typedef.
4491 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4493 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4494 (nios2_core_regset): Add collect method.
4496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4498 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4499 platform-independent and don't write to read-only input buffer.
4500 (m32r_linux_collect_gregset): New function.
4501 (m32r_linux_gregset): Add collect method.
4503 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4505 * hppa-linux-tdep.c (greg_map): Rename to...
4506 (hppa_linux_gregmap): ... this. Also convert to
4507 regcache_map_entry format.
4508 (hppa_linux_supply_regset): Delete function.
4509 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4510 (hppa_linux_fpregmap): ... this new register map.
4511 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4512 register map, replace supply method by regcache_supply_regset, and
4513 add collect method regcache_collect_regset.
4515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4517 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4518 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4519 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4520 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4521 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4522 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4523 (frv_linux_supply_gregset): Replace main logic by call to
4524 regcache_supply_regset, but keep clearing gr32-gr63.
4525 (frv_linux_supply_fpregset): Delete function.
4526 (frv_linux_gregset): Refer to appropriate register map and add
4527 regcache_collect_regset as the collect method.
4528 (frv_linux_fpregset): Likewise. Also exchange the supply method
4529 by regcache_supply_regset.
4531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4533 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4534 by call to alpha_supply_int_regs.
4535 (alpha_linux_collect_gregset): New function.
4536 (alpha_linux_supply_fpregset): Replace logic by call to
4537 alpha_supply_fp_regs.
4538 (alpha_linux_collect_fpregset): New function.
4539 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4543 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4544 by call to regcache_collect_regset.
4545 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4546 instead of aarch64_linux_supply_gregset/_fpregset.
4547 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4548 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4549 header file instead.
4550 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4551 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4552 functions. Move logic to ...
4553 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4555 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4556 refer to new register maps, replace *_regset_from_core by
4557 regcache_supply_regset, and also use regcache_collect_regset.
4558 * aarch64-linux-tdep.h: Include "regset.h".
4559 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4561 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4562 macros, moved from C source file.
4563 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4564 variable declarations.
4566 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4568 * s390-linux-nat.c: Include "regset.h".
4569 (regmap_gregset): Delete macro.
4570 (s390_64_regmap_gregset): New register map for
4571 regcache_supply/_collect_regset.
4572 (s390_64_gregset): New regset.
4573 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4574 (regmap_fpregset): Delete macro.
4575 (s390_native_supply, s390_native_collect): Delete functions.
4576 (supply_gregset, fill_gregset): Replace s390-specific regmap
4577 handling by a call to regcache_supply/_collect_regset.
4578 (supply_fpregset, fill_fpregset): Call regcache_supply/
4579 _collect_regset instead of s390_native_supply/_collect.
4580 (fetch_regset, store_regset): Likewise. Also change the last
4581 parameter to a regset instead of a regmap.
4582 (s390_linux_fetch_inferior_registers)
4583 (390_linux_store_inferior_registers): Adjust last parameter in
4584 calls to fetch_regset and store_regset.
4585 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4586 (s390_gregmap): ... this. Also make static const and convert to
4587 regcache_map_entry format.
4588 (s390x_regmap_gregset): Delete.
4589 (s390_regmap_fpregset): Rename to...
4590 (s390_fpregmap): ... this. Make static const and convert to
4591 regcache_map_entry format.
4592 (s390_regmap_upper, s390_regmap_last_break)
4593 (s390x_regmap_last_break, s390_regmap_system_call)
4594 (s390_regmap_tdb): Likewise.
4595 (s390_supply_regset, s390_collect_regset): Remove functions.
4596 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4598 (s390_gregset, s390_fpregset, s390_upper_regset)
4599 (s390_last_break_regset, s390x_last_break_regset)
4600 (s390_system_call_regset, s390_tdb_regset): Make global and
4601 replace s390_supply/_collect_regset by regcache_supply/
4603 (s390x_gregset): Delete.
4604 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4605 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4606 (s390_regmap_fpregset, s390_regmap_last_break)
4607 (s390x_regmap_last_break, s390_regmap_system_call)
4608 (s390_regmap_tdb): Delete global variable declarations.
4609 (s390_gregset, s390_fpregset, s390_last_break_regset)
4610 (s390x_last_break_regset, s390_system_call_regset)
4611 (s390_tdb_regset): New global variable declarations.
4613 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4615 * regcache.c: Include "regset.h".
4616 (regcache_transfer_regset): New local function.
4617 (regcache_supply_regset, regcache_collect_regset): New functions.
4618 * regcache.h (struct regcache_map_entry): New structure.
4619 (REGCACHE_MAP_SKIP): New enum value.
4620 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4622 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4624 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4625 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4626 (ppc_linux_collect_gregset ): Likewise.
4627 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4628 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4629 (ppc_collect_vrregset): Likewise.
4630 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4633 2014-08-07 Yao Qi <yao@codesourcery.com>
4635 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4636 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4637 * remote.c (remote_read_bytes): Likewise.
4639 2014-08-07 Yao Qi <yao@codesourcery.com>
4641 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4643 2014-08-07 Yao Qi <yao@codesourcery.com>
4646 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4647 TARGET_XFER_OK instead of 0.
4649 2014-08-07 Gary Benson <gbenson@redhat.com>
4651 * common/common-defs.h: Include errno.h.
4652 * defs.h: Do not include errno.h.
4653 * ada-typeprint.c: Likewise.
4654 * c-typeprint.c: Likewise.
4655 * core-regset.c: Likewise.
4656 * corefile.c: Likewise.
4657 * corelow.c: Likewise.
4658 * event-loop.c: Likewise.
4659 * f-typeprint.c: Likewise.
4660 * gnu-nat.c: Likewise.
4661 * go32-nat.c: Likewise.
4662 * i386gnu-nat.c: Likewise.
4663 * m2-typeprint.c: Likewise.
4664 * nat/linux-btrace.c: Likewise.
4665 * p-typeprint.c: Likewise.
4666 * procfs.c: Likewise.
4667 * remote-sim.c: Likewise.
4668 * rs6000-nat.c: Likewise.
4669 * target.c: Likewise.
4670 * typeprint.c: Likewise.
4671 * ui-file.c: Likewise.
4672 * valops.c: Likewise.
4673 * valprint.c: Likewise.
4675 2014-08-07 Gary Benson <gbenson@redhat.com>
4677 * common/common-defs.h: Include string.h.
4678 * aarch64-tdep.c: Do not include string.h.
4679 * ada-exp.y: Likewise.
4680 * ada-lang.c: Likewise.
4681 * ada-lex.l: Likewise.
4682 * ada-typeprint.c: Likewise.
4683 * ada-valprint.c: Likewise.
4684 * aix-thread.c: Likewise.
4685 * alpha-linux-tdep.c: Likewise.
4686 * alpha-mdebug-tdep.c: Likewise.
4687 * alpha-nat.c: Likewise.
4688 * alpha-osf1-tdep.c: Likewise.
4689 * alpha-tdep.c: Likewise.
4690 * alphanbsd-tdep.c: Likewise.
4691 * amd64-dicos-tdep.c: Likewise.
4692 * amd64-linux-tdep.c: Likewise.
4693 * amd64-nat.c: Likewise.
4694 * amd64-sol2-tdep.c: Likewise.
4695 * amd64fbsd-tdep.c: Likewise.
4696 * amd64obsd-tdep.c: Likewise.
4697 * arch-utils.c: Likewise.
4698 * arm-linux-nat.c: Likewise.
4699 * arm-linux-tdep.c: Likewise.
4700 * arm-tdep.c: Likewise.
4701 * arm-wince-tdep.c: Likewise.
4702 * armbsd-tdep.c: Likewise.
4703 * armnbsd-nat.c: Likewise.
4704 * armnbsd-tdep.c: Likewise.
4705 * armobsd-tdep.c: Likewise.
4706 * avr-tdep.c: Likewise.
4707 * ax-gdb.c: Likewise.
4708 * ax-general.c: Likewise.
4709 * bcache.c: Likewise.
4710 * bfin-tdep.c: Likewise.
4711 * breakpoint.c: Likewise.
4712 * build-id.c: Likewise.
4713 * buildsym.c: Likewise.
4714 * c-exp.y: Likewise.
4715 * c-lang.c: Likewise.
4716 * c-typeprint.c: Likewise.
4717 * c-valprint.c: Likewise.
4718 * charset.c: Likewise.
4719 * cli-out.c: Likewise.
4720 * cli/cli-cmds.c: Likewise.
4721 * cli/cli-decode.c: Likewise.
4722 * cli/cli-dump.c: Likewise.
4723 * cli/cli-interp.c: Likewise.
4724 * cli/cli-logging.c: Likewise.
4725 * cli/cli-script.c: Likewise.
4726 * cli/cli-setshow.c: Likewise.
4727 * cli/cli-utils.c: Likewise.
4728 * coffread.c: Likewise.
4729 * common/agent.c: Likewise.
4730 * common/buffer.c: Likewise.
4731 * common/buffer.h: Likewise.
4732 * common/common-utils.c: Likewise.
4733 * common/filestuff.c: Likewise.
4734 * common/filestuff.c: Likewise.
4735 * common/format.c: Likewise.
4736 * common/print-utils.c: Likewise.
4737 * common/rsp-low.c: Likewise.
4738 * common/signals.c: Likewise.
4739 * common/vec.h: Likewise.
4740 * common/xml-utils.c: Likewise.
4741 * core-regset.c: Likewise.
4742 * corefile.c: Likewise.
4743 * corelow.c: Likewise.
4744 * cp-abi.c: Likewise.
4745 * cp-name-parser.y: Likewise.
4746 * cp-support.c: Likewise.
4747 * cp-valprint.c: Likewise.
4748 * cris-tdep.c: Likewise.
4749 * d-exp.y: Likewise.
4750 * darwin-nat.c: Likewise.
4751 * dbxread.c: Likewise.
4752 * dcache.c: Likewise.
4753 * demangle.c: Likewise.
4754 * dicos-tdep.c: Likewise.
4755 * disasm.c: Likewise.
4756 * doublest.c: Likewise.
4757 * dsrec.c: Likewise.
4758 * dummy-frame.c: Likewise.
4759 * dwarf2-frame.c: Likewise.
4760 * dwarf2loc.c: Likewise.
4761 * dwarf2read.c: Likewise.
4762 * elfread.c: Likewise.
4763 * environ.c: Likewise.
4765 * event-loop.c: Likewise.
4766 * exceptions.c: Likewise.
4768 * expprint.c: Likewise.
4769 * f-exp.y: Likewise.
4770 * f-lang.c: Likewise.
4771 * f-typeprint.c: Likewise.
4772 * f-valprint.c: Likewise.
4773 * fbsd-nat.c: Likewise.
4774 * findcmd.c: Likewise.
4775 * findvar.c: Likewise.
4776 * fork-child.c: Likewise.
4777 * frame.c: Likewise.
4778 * frv-linux-tdep.c: Likewise.
4779 * frv-tdep.c: Likewise.
4781 * gdb_bfd.c: Likewise.
4782 * gdbarch.c: Likewise.
4783 * gdbarch.sh: Likewise.
4784 * gdbtypes.c: Likewise.
4785 * gnu-nat.c: Likewise.
4786 * gnu-v2-abi.c: Likewise.
4787 * gnu-v3-abi.c: Likewise.
4788 * go-exp.y: Likewise.
4789 * go-lang.c: Likewise.
4790 * go32-nat.c: Likewise.
4791 * guile/guile.c: Likewise.
4792 * guile/scm-auto-load.c: Likewise.
4793 * hppa-hpux-tdep.c: Likewise.
4794 * hppa-linux-nat.c: Likewise.
4795 * hppanbsd-tdep.c: Likewise.
4796 * hppaobsd-tdep.c: Likewise.
4797 * i386-cygwin-tdep.c: Likewise.
4798 * i386-dicos-tdep.c: Likewise.
4799 * i386-linux-tdep.c: Likewise.
4800 * i386-nto-tdep.c: Likewise.
4801 * i386-sol2-tdep.c: Likewise.
4802 * i386-tdep.c: Likewise.
4803 * i386bsd-tdep.c: Likewise.
4804 * i386gnu-nat.c: Likewise.
4805 * i386nbsd-tdep.c: Likewise.
4806 * i386obsd-tdep.c: Likewise.
4807 * i387-tdep.c: Likewise.
4808 * ia64-libunwind-tdep.c: Likewise.
4809 * ia64-linux-nat.c: Likewise.
4810 * inf-child.c: Likewise.
4811 * inf-ptrace.c: Likewise.
4812 * inf-ttrace.c: Likewise.
4813 * infcall.c: Likewise.
4814 * infcmd.c: Likewise.
4815 * inflow.c: Likewise.
4816 * infrun.c: Likewise.
4817 * interps.c: Likewise.
4818 * iq2000-tdep.c: Likewise.
4819 * irix5-nat.c: Likewise.
4820 * jv-exp.y: Likewise.
4821 * jv-lang.c: Likewise.
4822 * jv-typeprint.c: Likewise.
4823 * jv-valprint.c: Likewise.
4824 * language.c: Likewise.
4825 * linux-fork.c: Likewise.
4826 * linux-nat.c: Likewise.
4827 * lm32-tdep.c: Likewise.
4828 * m2-exp.y: Likewise.
4829 * m2-typeprint.c: Likewise.
4830 * m32c-tdep.c: Likewise.
4831 * m32r-linux-nat.c: Likewise.
4832 * m32r-linux-tdep.c: Likewise.
4833 * m32r-rom.c: Likewise.
4834 * m32r-tdep.c: Likewise.
4835 * m68hc11-tdep.c: Likewise.
4836 * m68k-tdep.c: Likewise.
4837 * m68kbsd-tdep.c: Likewise.
4838 * m68klinux-nat.c: Likewise.
4839 * m68klinux-tdep.c: Likewise.
4840 * m88k-tdep.c: Likewise.
4841 * machoread.c: Likewise.
4842 * macrocmd.c: Likewise.
4844 * mdebugread.c: Likewise.
4845 * mem-break.c: Likewise.
4846 * memattr.c: Likewise.
4847 * memory-map.c: Likewise.
4848 * mep-tdep.c: Likewise.
4849 * mi/mi-cmd-break.c: Likewise.
4850 * mi/mi-cmd-disas.c: Likewise.
4851 * mi/mi-cmd-env.c: Likewise.
4852 * mi/mi-cmd-stack.c: Likewise.
4853 * mi/mi-cmd-var.c: Likewise.
4854 * mi/mi-cmds.c: Likewise.
4855 * mi/mi-console.c: Likewise.
4856 * mi/mi-getopt.c: Likewise.
4857 * mi/mi-interp.c: Likewise.
4858 * mi/mi-main.c: Likewise.
4859 * mi/mi-parse.c: Likewise.
4860 * microblaze-rom.c: Likewise.
4861 * microblaze-tdep.c: Likewise.
4862 * mingw-hdep.c: Likewise.
4863 * minidebug.c: Likewise.
4864 * minsyms.c: Likewise.
4865 * mips-irix-tdep.c: Likewise.
4866 * mips-linux-tdep.c: Likewise.
4867 * mips-tdep.c: Likewise.
4868 * mips64obsd-tdep.c: Likewise.
4869 * mipsnbsd-tdep.c: Likewise.
4870 * mipsread.c: Likewise.
4871 * mn10300-linux-tdep.c: Likewise.
4872 * mn10300-tdep.c: Likewise.
4873 * monitor.c: Likewise.
4874 * moxie-tdep.c: Likewise.
4875 * mt-tdep.c: Likewise.
4876 * nat/linux-btrace.c: Likewise.
4877 * nat/linux-osdata.c: Likewise.
4878 * nat/linux-procfs.c: Likewise.
4879 * nat/linux-ptrace.c: Likewise.
4880 * nat/linux-waitpid.c: Likewise.
4881 * nbsd-tdep.c: Likewise.
4882 * nios2-linux-tdep.c: Likewise.
4883 * nto-procfs.c: Likewise.
4884 * nto-tdep.c: Likewise.
4885 * objc-lang.c: Likewise.
4886 * objfiles.c: Likewise.
4887 * opencl-lang.c: Likewise.
4888 * osabi.c: Likewise.
4889 * osdata.c: Likewise.
4890 * p-exp.y: Likewise.
4891 * p-lang.c: Likewise.
4892 * p-typeprint.c: Likewise.
4893 * parse.c: Likewise.
4894 * posix-hdep.c: Likewise.
4895 * ppc-linux-nat.c: Likewise.
4896 * ppc-sysv-tdep.c: Likewise.
4897 * ppcfbsd-tdep.c: Likewise.
4898 * ppcnbsd-tdep.c: Likewise.
4899 * ppcobsd-tdep.c: Likewise.
4900 * printcmd.c: Likewise.
4901 * procfs.c: Likewise.
4902 * prologue-value.c: Likewise.
4903 * python/py-auto-load.c: Likewise.
4904 * python/py-gdb-readline.c: Likewise.
4905 * ravenscar-thread.c: Likewise.
4906 * regcache.c: Likewise.
4907 * registry.c: Likewise.
4908 * remote-fileio.c: Likewise.
4909 * remote-m32r-sdi.c: Likewise.
4910 * remote-mips.c: Likewise.
4911 * remote-notif.c: Likewise.
4912 * remote-sim.c: Likewise.
4913 * remote.c: Likewise.
4914 * reverse.c: Likewise.
4915 * rs6000-aix-tdep.c: Likewise.
4916 * ser-base.c: Likewise.
4917 * ser-go32.c: Likewise.
4918 * ser-mingw.c: Likewise.
4919 * ser-pipe.c: Likewise.
4920 * ser-tcp.c: Likewise.
4921 * ser-unix.c: Likewise.
4922 * serial.c: Likewise.
4923 * sh-tdep.c: Likewise.
4924 * sh64-tdep.c: Likewise.
4925 * shnbsd-tdep.c: Likewise.
4927 * sol-thread.c: Likewise.
4928 * solib-dsbt.c: Likewise.
4929 * solib-frv.c: Likewise.
4930 * solib-osf.c: Likewise.
4931 * solib-som.c: Likewise.
4932 * solib-spu.c: Likewise.
4933 * solib-target.c: Likewise.
4934 * solib.c: Likewise.
4935 * somread.c: Likewise.
4936 * source.c: Likewise.
4937 * sparc-nat.c: Likewise.
4938 * sparc-sol2-tdep.c: Likewise.
4939 * sparc-tdep.c: Likewise.
4940 * sparc64-tdep.c: Likewise.
4941 * sparc64fbsd-tdep.c: Likewise.
4942 * sparc64nbsd-tdep.c: Likewise.
4943 * sparcnbsd-tdep.c: Likewise.
4944 * spu-linux-nat.c: Likewise.
4945 * spu-multiarch.c: Likewise.
4946 * spu-tdep.c: Likewise.
4947 * stabsread.c: Likewise.
4948 * stack.c: Likewise.
4949 * std-regs.c: Likewise.
4950 * symfile.c: Likewise.
4951 * symmisc.c: Likewise.
4952 * symtab.c: Likewise.
4953 * target.c: Likewise.
4954 * thread.c: Likewise.
4955 * tilegx-linux-nat.c: Likewise.
4956 * tilegx-tdep.c: Likewise.
4958 * tracepoint.c: Likewise.
4959 * tui/tui-command.c: Likewise.
4960 * tui/tui-data.c: Likewise.
4961 * tui/tui-disasm.c: Likewise.
4962 * tui/tui-file.c: Likewise.
4963 * tui/tui-layout.c: Likewise.
4964 * tui/tui-out.c: Likewise.
4965 * tui/tui-regs.c: Likewise.
4966 * tui/tui-source.c: Likewise.
4967 * tui/tui-stack.c: Likewise.
4968 * tui/tui-win.c: Likewise.
4969 * tui/tui-windata.c: Likewise.
4970 * tui/tui-winsource.c: Likewise.
4971 * typeprint.c: Likewise.
4972 * ui-file.c: Likewise.
4973 * ui-out.c: Likewise.
4974 * user-regs.c: Likewise.
4975 * utils.c: Likewise.
4976 * v850-tdep.c: Likewise.
4977 * valarith.c: Likewise.
4978 * valops.c: Likewise.
4979 * valprint.c: Likewise.
4980 * value.c: Likewise.
4981 * varobj.c: Likewise.
4982 * vax-tdep.c: Likewise.
4983 * vaxnbsd-tdep.c: Likewise.
4984 * vaxobsd-tdep.c: Likewise.
4985 * windows-nat.c: Likewise.
4986 * xcoffread.c: Likewise.
4987 * xml-support.c: Likewise.
4988 * xstormy16-tdep.c: Likewise.
4989 * xtensa-linux-nat.c: Likewise.
4991 2014-08-07 Gary Benson <gbenson@redhat.com>
4993 * common/common-defs.h: Include gdb_assert.h.
4994 * aarch64-tdep.c: Do not include gdb_assert.h.
4995 * addrmap.c: Likewise.
4996 * aix-thread.c: Likewise.
4997 * alpha-linux-tdep.c: Likewise.
4998 * alpha-mdebug-tdep.c: Likewise.
4999 * alphanbsd-tdep.c: Likewise.
5000 * amd64-nat.c: Likewise.
5001 * amd64-tdep.c: Likewise.
5002 * amd64bsd-nat.c: Likewise.
5003 * amd64fbsd-nat.c: Likewise.
5004 * amd64fbsd-tdep.c: Likewise.
5005 * amd64nbsd-nat.c: Likewise.
5006 * amd64nbsd-tdep.c: Likewise.
5007 * amd64obsd-nat.c: Likewise.
5008 * amd64obsd-tdep.c: Likewise.
5009 * arch-utils.c: Likewise.
5010 * arm-tdep.c: Likewise.
5011 * armbsd-tdep.c: Likewise.
5013 * bcache.c: Likewise.
5014 * bfin-tdep.c: Likewise.
5015 * blockframe.c: Likewise.
5016 * breakpoint.c: Likewise.
5017 * bsd-kvm.c: Likewise.
5018 * bsd-uthread.c: Likewise.
5019 * buildsym.c: Likewise.
5020 * c-exp.y: Likewise.
5021 * c-lang.c: Likewise.
5022 * charset.c: Likewise.
5023 * cleanups.c: Likewise.
5024 * cli-out.c: Likewise.
5025 * cli/cli-decode.c: Likewise.
5026 * cli/cli-dump.c: Likewise.
5027 * cli/cli-logging.c: Likewise.
5028 * cli/cli-script.c: Likewise.
5029 * cli/cli-utils.c: Likewise.
5030 * coffread.c: Likewise.
5031 * common/common-utils.c: Likewise.
5032 * common/queue.h: Likewise.
5033 * common/signals.c: Likewise.
5034 * common/vec.h: Likewise.
5035 * complaints.c: Likewise.
5036 * completer.c: Likewise.
5037 * corelow.c: Likewise.
5038 * cp-abi.c: Likewise.
5039 * cp-name-parser.y: Likewise.
5040 * cp-namespace.c: Likewise.
5041 * cp-support.c: Likewise.
5042 * cris-tdep.c: Likewise.
5043 * dbxread.c: Likewise.
5044 * dictionary.c: Likewise.
5045 * doublest.c: Likewise.
5046 * dsrec.c: Likewise.
5047 * dummy-frame.c: Likewise.
5048 * dwarf2-frame-tailcall.c: Likewise.
5049 * dwarf2-frame.c: Likewise.
5050 * dwarf2expr.c: Likewise.
5051 * dwarf2loc.c: Likewise.
5052 * dwarf2read.c: Likewise.
5054 * event-loop.c: Likewise.
5055 * exceptions.c: Likewise.
5056 * expprint.c: Likewise.
5057 * f-valprint.c: Likewise.
5058 * fbsd-nat.c: Likewise.
5059 * findvar.c: Likewise.
5060 * frame-unwind.c: Likewise.
5061 * frame.c: Likewise.
5062 * frv-tdep.c: Likewise.
5063 * gcore.c: Likewise.
5064 * gdb-dlfcn.c: Likewise.
5065 * gdb_bfd.c: Likewise.
5066 * gdbarch.c: Likewise.
5067 * gdbarch.sh: Likewise.
5068 * gdbtypes.c: Likewise.
5069 * gnu-nat.c: Likewise.
5070 * gnu-v3-abi.c: Likewise.
5071 * go-lang.c: Likewise.
5072 * guile/scm-exception.c: Likewise.
5073 * guile/scm-gsmob.c: Likewise.
5074 * guile/scm-lazy-string.c: Likewise.
5075 * guile/scm-math.c: Likewise.
5076 * guile/scm-pretty-print.c: Likewise.
5077 * guile/scm-safe-call.c: Likewise.
5078 * guile/scm-utils.c: Likewise.
5079 * guile/scm-value.c: Likewise.
5080 * h8300-tdep.c: Likewise.
5081 * hppa-hpux-nat.c: Likewise.
5082 * hppa-tdep.c: Likewise.
5083 * hppanbsd-tdep.c: Likewise.
5084 * hppaobsd-tdep.c: Likewise.
5085 * i386-darwin-nat.c: Likewise.
5086 * i386-darwin-tdep.c: Likewise.
5087 * i386-nto-tdep.c: Likewise.
5088 * i386-tdep.c: Likewise.
5089 * i386bsd-nat.c: Likewise.
5090 * i386fbsd-tdep.c: Likewise.
5091 * i386gnu-nat.c: Likewise.
5092 * i386nbsd-tdep.c: Likewise.
5093 * i386obsd-tdep.c: Likewise.
5094 * i387-tdep.c: Likewise.
5095 * ia64-libunwind-tdep.c: Likewise.
5096 * ia64-tdep.c: Likewise.
5097 * inf-ptrace.c: Likewise.
5098 * inf-ttrace.c: Likewise.
5099 * infcall.c: Likewise.
5100 * infcmd.c: Likewise.
5101 * infrun.c: Likewise.
5102 * inline-frame.c: Likewise.
5103 * interps.c: Likewise.
5104 * jv-lang.c: Likewise.
5105 * jv-typeprint.c: Likewise.
5106 * linux-fork.c: Likewise.
5107 * linux-nat.c: Likewise.
5108 * linux-thread-db.c: Likewise.
5109 * m32c-tdep.c: Likewise.
5110 * m32r-linux-nat.c: Likewise.
5111 * m32r-tdep.c: Likewise.
5112 * m68k-tdep.c: Likewise.
5113 * m68kbsd-nat.c: Likewise.
5114 * m68kbsd-tdep.c: Likewise.
5115 * m88k-tdep.c: Likewise.
5116 * machoread.c: Likewise.
5117 * macroexp.c: Likewise.
5118 * macrotab.c: Likewise.
5119 * maint.c: Likewise.
5120 * mdebugread.c: Likewise.
5121 * memory-map.c: Likewise.
5122 * mep-tdep.c: Likewise.
5123 * mi/mi-common.c: Likewise.
5124 * microblaze-tdep.c: Likewise.
5125 * mingw-hdep.c: Likewise.
5126 * mips-linux-nat.c: Likewise.
5127 * mips-linux-tdep.c: Likewise.
5128 * mips-tdep.c: Likewise.
5129 * mips64obsd-tdep.c: Likewise.
5130 * mipsnbsd-tdep.c: Likewise.
5131 * mn10300-linux-tdep.c: Likewise.
5132 * mn10300-tdep.c: Likewise.
5133 * moxie-tdep.c: Likewise.
5134 * mt-tdep.c: Likewise.
5135 * nat/linux-btrace.c: Likewise.
5136 * nat/linux-osdata.c: Likewise.
5137 * nat/linux-ptrace.c: Likewise.
5138 * nat/mips-linux-watch.c: Likewise.
5139 * nios2-linux-tdep.c: Likewise.
5140 * nios2-tdep.c: Likewise.
5141 * objc-lang.c: Likewise.
5142 * objfiles.c: Likewise.
5143 * obsd-nat.c: Likewise.
5144 * opencl-lang.c: Likewise.
5145 * osabi.c: Likewise.
5146 * parse.c: Likewise.
5147 * ppc-linux-nat.c: Likewise.
5148 * ppc-sysv-tdep.c: Likewise.
5149 * ppcfbsd-nat.c: Likewise.
5150 * ppcfbsd-tdep.c: Likewise.
5151 * ppcnbsd-nat.c: Likewise.
5152 * ppcnbsd-tdep.c: Likewise.
5153 * ppcobsd-nat.c: Likewise.
5154 * ppcobsd-tdep.c: Likewise.
5155 * printcmd.c: Likewise.
5156 * procfs.c: Likewise.
5157 * prologue-value.c: Likewise.
5158 * psymtab.c: Likewise.
5159 * python/py-lazy-string.c: Likewise.
5160 * python/py-value.c: Likewise.
5161 * regcache.c: Likewise.
5162 * reggroups.c: Likewise.
5163 * registry.c: Likewise.
5164 * remote-sim.c: Likewise.
5165 * remote.c: Likewise.
5166 * rs6000-aix-tdep.c: Likewise.
5167 * rs6000-tdep.c: Likewise.
5168 * s390-linux-tdep.c: Likewise.
5169 * score-tdep.c: Likewise.
5170 * ser-base.c: Likewise.
5171 * ser-mingw.c: Likewise.
5172 * sh-tdep.c: Likewise.
5173 * sh64-tdep.c: Likewise.
5174 * solib-darwin.c: Likewise.
5175 * solib-spu.c: Likewise.
5176 * solib-svr4.c: Likewise.
5177 * source.c: Likewise.
5178 * sparc-nat.c: Likewise.
5179 * sparc-sol2-tdep.c: Likewise.
5180 * sparc-tdep.c: Likewise.
5181 * sparc64-sol2-tdep.c: Likewise.
5182 * sparc64-tdep.c: Likewise.
5183 * sparc64fbsd-tdep.c: Likewise.
5184 * sparc64nbsd-tdep.c: Likewise.
5185 * sparc64obsd-tdep.c: Likewise.
5186 * sparcnbsd-tdep.c: Likewise.
5187 * sparcobsd-tdep.c: Likewise.
5188 * spu-multiarch.c: Likewise.
5189 * spu-tdep.c: Likewise.
5190 * stabsread.c: Likewise.
5191 * stack.c: Likewise.
5192 * symfile.c: Likewise.
5193 * symtab.c: Likewise.
5194 * target-descriptions.c: Likewise.
5195 * target-memory.c: Likewise.
5196 * target.c: Likewise.
5197 * tic6x-linux-tdep.c: Likewise.
5198 * tic6x-tdep.c: Likewise.
5199 * tilegx-linux-nat.c: Likewise.
5200 * tilegx-tdep.c: Likewise.
5202 * tramp-frame.c: Likewise.
5203 * tui/tui-out.c: Likewise.
5204 * tui/tui-winsource.c: Likewise.
5205 * ui-out.c: Likewise.
5206 * user-regs.c: Likewise.
5207 * utils.c: Likewise.
5208 * v850-tdep.c: Likewise.
5209 * valops.c: Likewise.
5210 * value.c: Likewise.
5211 * varobj.c: Likewise.
5212 * vax-nat.c: Likewise.
5213 * xml-syscall.c: Likewise.
5214 * xml-tdesc.c: Likewise.
5215 * xstormy16-tdep.c: Likewise.
5216 * xtensa-linux-nat.c: Likewise.
5217 * xtensa-tdep.c: Likewise.
5219 2014-08-07 Gary Benson <gbenson@redhat.com>
5221 * common/common-defs.h: Include common-utils.h.
5222 * defs.h: Do not include common-utils.h.
5223 * common/gdb_assert.h: Likewise.
5224 * darwin-nat.h: Likewise.
5225 * nat/linux-btrace.c: Likewise.
5226 * target/waitstatus.h: Likewise.
5228 2014-08-07 Gary Benson <gbenson@redhat.com>
5230 * common/common-defs.h: Include ptid.h.
5231 * defs.h: Do not include ptid.h.
5232 * inferior.h: Likewise.
5233 * infrun.h: Likewise.
5234 * nat/linux-btrace.h: Likewise.
5235 * nat/linux-osdata.h: Likewise.
5236 * target/waitstatus.h: Likewise.
5238 2014-08-07 Gary Benson <gbenson@redhat.com>
5240 * common/common-defs.h: Include gdb_locale.h.
5241 * defs.h: Do not include gdb_locale.h.
5243 2014-08-07 Gary Benson <gbenson@redhat.com>
5245 * common/common-defs.h: Include gdb/signals.h.
5246 * defs.h: Do not include gdb/signals.h.
5248 2014-08-07 Gary Benson <gbenson@redhat.com>
5250 * common/common-defs.h: Include pathmax.h.
5251 * defs.h: Do not include pathmax.h.
5253 2014-08-07 Gary Benson <gbenson@redhat.com>
5255 * common/common-defs.h: Include libiberty.h.
5256 * defs.h: Do not include libiberty.h.
5257 * common/queue.h: Likewise.
5258 * cp-name-parser.y: Likewise.
5259 * mi/mi-cmd-catch.c: Likewise.
5260 * python/python.c: Likewise.
5262 2014-08-07 Gary Benson <gbenson@redhat.com>
5264 * common/common-defs.h: Include ansidecl.h.
5265 * defs.h: Do not include ansidecl.h.
5266 * common/buffer.h: Likewise.
5267 * common/common-utils.h: Likewise.
5269 2014-08-07 Gary Benson <gbenson@redhat.com>
5271 * common/common-defs.h: Include stddef.h.
5272 * defs.h: Do not include stddef.h.
5273 * common/common-utils.h: Likewise.
5274 * amd64fbsd-nat.c: Likewise.
5275 * bcache.c: Likewise.
5276 * charset.c: Likewise.
5277 * common/buffer.h: Likewise.
5278 * common/vec.h: Likewise.
5279 * i386bsd-nat.c: Likewise.
5280 * nat/linux-btrace.h: Likewise.
5281 * ppcfbsd-nat.c: Likewise.
5282 * ppcnbsd-tdep.h: Likewise.
5283 * ppcobsd-nat.c: Likewise.
5284 * ppcobsd-tdep.h: Likewise.
5285 * python/py-gdb-readline.c: Likewise.
5287 2014-08-07 Gary Benson <gbenson@redhat.com>
5289 * common/common-defs.h: Include stdarg.h.
5290 * defs.h: Do not include stdarg.h.
5291 * ada-lang.c: Likewise.
5292 * common/common-utils.h: Likewise.
5293 * guile/scm-string.c: Likewise.
5294 * guile/scm-utils.c: Likewise.
5295 * m32c-tdep.c: Likewise.
5297 2014-08-07 Gary Benson <gbenson@redhat.com>
5299 * common/common-defs.h: Include stdlib.h.
5300 * defs.h: Do not include stdlib.h.
5301 * addrmap.c: Likewise.
5302 * bcache.c: Likewise.
5303 * common/buffer.c: Likewise.
5304 * common/common-utils.c: Likewise.
5305 * cp-name-parser.y: Likewise.
5306 * go32-nat.c: Likewise.
5307 * mn10300-linux-tdep.c: Likewise.
5308 * nat/linux-osdata.c: Likewise.
5309 * tui/tui.c: Likewise.
5310 * windows-nat.c: Likewise.
5312 2014-08-07 Gary Benson <gbenson@redhat.com>
5314 * common/common-defs.h: Include stdio.h.
5315 * defs.h: Do not include stdio.h.
5316 * ada-lang.c: Likewise.
5317 * common/buffer.c: Likewise.
5318 * common/common-utils.c: Likewise.
5319 * cp-name-parser.y: Likewise.
5320 * gnu-nat.c: Likewise.
5321 * go32-nat.c: Likewise.
5322 * i386gnu-nat.c: Likewise.
5323 * proc-api.c: Likewise.
5324 * proc-events.c: Likewise.
5325 * proc-flags.c: Likewise.
5326 * proc-why.c: Likewise.
5327 * python/python-internal.h: Likewise.
5328 * target-memory.c: Likewise.
5329 * tui/tui-io.c: Likewise.
5330 * tui/tui.c: Likewise.
5332 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5334 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5335 (scan_dyntag_auxv): Same.
5337 2014-08-06 Yao Qi <yao@codesourcery.com>
5339 * amd64-linux-nat.c: Remove duplicated include
5341 * i386-linux-nat.c: Likewise.
5343 2014-08-06 Yao Qi <yao@codesourcery.com>
5345 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5346 operand" with "Special opcode" in comments.
5348 2014-08-05 Gary Benson <gbenson@redhat.com>
5350 * interps.c (initialize_interps): Remove prototype.
5351 (interpreter_initialized): Remove static global.
5352 (interp_add): Do not call initialize_interps.
5353 (initialize_interps): Remove function.
5355 2014-08-05 Gary Benson <gbenson@redhat.com>
5357 * utils.c (vwarning): Remove spurious va_end.
5359 2014-08-05 Alan Modra <amodra@gmail.com>
5361 * charset.c (convert_between_encodings): Cast result of obstack_base.
5362 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5363 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5364 (read_unwind_info): Use size_t for some locals.
5365 * jit.c (finalize_symtab): Likewise.
5366 * utils.c (hashtab_obstack_allocate): Likewise.
5367 * symmisc.c (print_objfile_statistics): Update format strings.
5369 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5371 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5372 (Changes in GDB 7.8): ... here.
5374 2014-08-04 Tom Tromey <tromey@redhat.com>
5376 * target.c (set_targetdebug): New function.
5377 (initialize_targets): Pass set_targetdebug when creating "set
5380 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5382 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5383 if detecting a variable-sized field that is not the last field.
5384 Fix struct type length computation.
5386 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5388 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5391 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5393 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5394 Remove "+ 8" offset in computation of CHAIN_VMA.
5396 2014-07-31 Doug Evans <dje@google.com>
5398 * inflow.c (child_terminal_inferior): Add comment.
5399 (child_terminal_ours_for_output): Add comment.
5400 (child_terminal_ours): Add comment.
5401 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5402 (linux_nat_terminal_ours): Add comment.
5404 2014-07-31 Gary Benson <gbenson@redhat.com>
5406 * common/btrace-common.h: Do not include defs.h or server.h.
5407 * nat/mips-linux-watch.h: Likewise.
5408 * gdb-dlfcn.h: Do not include defs.h.
5409 * tracefile.h: Likewise.
5411 2014-07-30 Roland McGrath <mcgrathr@google.com>
5413 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5415 2014-07-30 Tom Tromey <tromey@redhat.com>
5417 * bsd-kvm.c (bsd_kvm_open): Constify.
5418 * corelow.c (core_open): Constify.
5419 * ctf.c (ctf_open): Constify.
5420 * dbug-rom.c (dbug_open): Constify.
5421 * exec.c (exec_open): Constify.
5422 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5423 * microblaze-rom.c (picobug_open): Constify.
5424 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5426 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5427 * record-btrace.c (record_btrace_open): Constify.
5428 * record-full.c (record_full_core_open_1, record_full_open_1)
5429 (record_full_open): Constify.
5430 * remote-m32r-sdi.c (m32r_open): Constify.
5431 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5432 (rockhopper_open, lsi_open): Constify.
5433 * remote-sim.c (gdbsim_open): Constify.
5434 * remote.c (remote_open, extended_remote_open, remote_open_1):
5436 * target.h (struct target_ops) <to_open>: Make "arg" const.
5437 * tracefile-tfile.c (tfile_open): Constify.
5439 2014-07-30 Tom Tromey <tromey@redhat.com>
5441 * breakpoint.c (map_breakpoint_numbers): Update.
5442 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5443 (get_number_const): New function.
5444 (get_number): Rewrite using get_number_const.
5445 (init_number_or_range): Make "string" const.
5446 (number_is_in_list): Make "list" const.
5447 * cli/cli-utils.h (get_number_const): Declare.
5448 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5449 (init_number_or_range, number_is_in_list): Update.
5450 * printcmd.c (map_display_numbers): Update.
5451 * value.c (value_from_history_ref): Constify.
5452 * value.h (value_from_history_ref): Update.
5454 2014-07-30 Tom Tromey <tromey@redhat.com>
5456 * corefile.c (hook_type, call_extra_exec_file_hooks)
5457 (specify_exec_file_hook): Constify.
5458 * exec.c (exec_file_attach): Make "filename" const.
5459 * gdbcore.h (deprecated_exec_file_display_hook)
5460 (specify_exec_file_hook, exec_file_attach): Constify.
5461 * main.c (captured_main): Use catch_command_errors_const.
5463 2014-07-30 Tom Tromey <tromey@redhat.com>
5465 * target.c (open_target): New function.
5466 (add_target_with_completer, add_deprecated_target_alias): Use
5467 set_cmd_sfunc, set_cmd_context.
5468 (debug_to_open): Remove.
5469 (setup_target_debug): Update.
5471 2014-07-30 Yao Qi <yao@codesourcery.com>
5473 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5475 * parse.c (exp_iterate): Update comments.
5477 2014-07-30 Gary Benson <gbenson@redhat.com>
5479 * common/common-defs.h: New file.
5480 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5481 * defs.h: Include common-defs.h.
5482 Do not include config.h or build-gnulib/config.h.
5484 2014-07-30 Gary Benson <gbenson@redhat.com>
5486 * common/common-utils.h: Do not include config.h.
5487 * nat/linux-btrace.h: Likewise.
5489 2014-07-30 Gary Benson <gbenson@redhat.com>
5491 * btrace.c: Include defs.h.
5492 * common/ptid.c: Include defs.h or server.h as appropriate.
5493 * nat/mips-linux-watch.c: Likewise.
5495 2014-07-29 Tom Tromey <tromey@redhat.com>
5497 * target.c (target_is_pushed): Simplify.
5499 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5503 2014-07-29 Yao Qi <yao@codesourcery.com>
5506 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5508 2014-07-28 Doug Evans <xdje42@gmail.com>
5511 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5512 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5515 2014-07-28 Will Newton <will.newton@linaro.org>
5517 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5518 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5519 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5520 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5521 (THUMB2_EABI_SYSCALL): Likewise.
5522 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5524 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5525 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5527 2014-07-27 Doug Evans <xdje42@gmail.com>
5529 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5531 2014-07-27 Doug Evans <xdje42@gmail.com>
5533 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5535 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5536 Doug Evans <xdje42@gmail.com>
5539 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5540 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5541 * configure.ac: Try to use guild to compile an scm file, if it fails
5542 then disable guile support.
5543 * configure: Regenerate.
5544 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5546 (GUILE_COMPILED_FILES): New variable.
5547 (GUILE_FILES) Update.
5548 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5549 (stamp-guile): Compile scm files.
5550 * guile/guile.c (boot_guile_support): New function.
5551 (standard_throw_args_p): New function.
5552 (print_standard_throw_error, print_throw_error): New functions.
5553 (handle_boot_error): New function.
5554 (initialize_scheme_side): Rewrite to call boot_guile_support.
5555 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5556 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5558 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5559 Doug Evans <xdje42@gmail.com>
5562 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5563 * guile/lib/gdb/support.scm: New file.
5564 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5565 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5567 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5569 (%assert-type): Ditto, and renamed to assert-type.
5570 (%exception-print-style): Delete.
5572 2014-07-26 Doug Evans <xdje42@gmail.com>
5575 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5576 * configure: Regenerate.
5577 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5579 (PYTHON_FILES): New variable.
5580 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5581 (GUILE_FILES): New variable.
5582 (stamp-python, install-python, uninstall-python): Handle empty
5584 (stamp-guile, install-guile, uninstall-guile): Ditto.
5586 2014-07-26 Doug Evans <xdje42@gmail.com>
5589 * guile/lib/gdb.scm (pretty-printers): Export.
5590 (set-pretty-printers!): Export.
5591 * guile/lib/gdb/printing.scm (gdb module): Update.
5592 (prepend-pretty-printer!, append-pretty-printer!): Update.
5593 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5594 (pretty_printer_list_var): Delete.
5595 (pretty_printer_list): New static global.
5596 (gdbscm_pretty_printers): New function.
5597 (gdbscm_set_pretty_printers_x): New function.
5598 (ppscm_find_pretty_printer_from_gdb): Update.
5599 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5600 (gdbscm_initialize_pretty_printers): Update.
5602 2014-07-26 Doug Evans <xdje42@gmail.com>
5605 * configure.ac: Add check for header gc/gc.h.
5606 Add check for function setenv.
5607 * configure: Regenerate.
5608 * config.in: Regenerate.
5609 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5611 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5613 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5614 variation in gdbarch matching.
5616 2014-07-25 Tom Tromey <tromey@redhat.com>
5618 * exec.c (using_exec_ops): Remove.
5619 (exec_close_1): Update. Remove extraneous block, reindent.
5620 (add_target_sections): Use target_is_pushed.
5622 2014-07-25 Pedro Alves <palves@redhat.com>
5624 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5625 * monitor.c (monitor_create_inferior): Likewise.
5626 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5627 * remote-sim.c (gdbsim_create_inferior): Likewise.
5628 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5629 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5630 * windows-nat.c (do_initial_windows_stuff): Likewise.
5632 2014-07-25 Pedro Alves <palves@redhat.com>
5634 * NEWS: Mention signal passing and "signal" command changes.
5635 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5637 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5639 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5640 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5641 (jump_command): Adjust clear_proceed_status call.
5642 (signal_command): Warn if other thread that are resumed have
5643 signals that will be delivered. Adjust clear_proceed_status call.
5644 (until_next_command, finish_command)
5645 (proceed_after_attach_callback, attach_command_post_wait)
5646 (attach_command): Adjust clear_proceed_status call.
5647 * infrun.c (proceed_after_vfork_done): Likewise.
5648 (proceed_after_attach_callback): Adjust comment.
5649 (clear_proceed_status_thread): Clear stop_signal if not in pass
5651 (clear_proceed_status_callback): Delete.
5652 (clear_proceed_status): New 'step' parameter. Only clear the
5653 proceed status of threads the command being prepared is about to
5655 (proceed): If passed in an explicit signal, override stop_signal
5656 with it. Don't pass the last stop signal to the thread we're
5658 (init_wait_for_inferior): Adjust clear_proceed_status call.
5659 (switch_back_to_stepped_thread): Clear the signal if it should not
5661 * infrun.h (clear_proceed_status): New 'step' parameter.
5662 (user_visible_resume_ptid): Add comment.
5663 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5664 signal is in pass state.
5665 * remote.c (append_pending_thread_resumptions): Likewise.
5666 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5668 2014-07-25 Tom Tromey <tromey@redhat.com>
5670 * target.h (target_stopped_data_address)
5671 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5674 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5676 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5678 (avr_pointer_to_address): Likewise.
5680 2014-07-24 Tom Tromey <tromey@redhat.com>
5682 * monitor.c (compile_pattern): Update.
5683 * target.h (struct target_ops) <to_shortname, to_longname,
5686 2014-07-24 Tom Tromey <tromey@redhat.com>
5688 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5689 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5690 (add_info_alias, add_com): Make "doc" const.
5691 (print_doc_line): Make "str" const.
5692 (delete_cmd): Update.
5693 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5694 (print_doc_line): Update.
5695 * cli/cli-script.c (document_command): Update.
5696 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5697 (add_com, add_info, add_info_alias): Update.
5698 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5699 * python/py-cmd.c (cmdpy_destroyer): Update.
5701 2014-07-24 Tom Tromey <tromey@redhat.com>
5703 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5704 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5705 (help_cmd_list): Constify.
5706 (lookup_cmd): Update.
5707 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5709 (help_cmd_list, apropos_cmd): Update.
5710 * cli/cli-script.c (show_user): Update.
5711 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5712 * cli/cli-setshow.h (cmd_show_list): Update.
5713 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5714 (cmd_show_list): Update.
5715 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5716 * python/py-cmd.c (cmdpy_destroyer): Update.
5718 2014-07-24 Tom Tromey <tromey@redhat.com>
5720 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5721 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5723 * command.h (deprecate_cmd): Update.
5724 * maint.c (maintenance_do_deprecate): Add casts.
5726 2014-07-24 Tom Tromey <tromey@redhat.com>
5728 * cli/cli-decode.c (help_cmd): Make parameter "const".
5729 * cli/cli-decode.h (help_cmd): Update.
5731 2014-07-24 Tom Tromey <tromey@redhat.com>
5733 * stack.c (up_silently_base, down_silently_base): Make argument
5736 2014-07-24 Tom Tromey <tromey@redhat.com>
5738 * solib.c (solib_add): Make "pattern" const.
5739 * solib.h (solib_add): Update.
5741 2014-07-24 Tom Tromey <tromey@redhat.com>
5743 * remote.c (remote_serial_open, print_packet, putpkt)
5744 (putpkt_binary): Constify.
5745 * remote.h (putpkt): Update.
5747 2014-07-24 Tom Tromey <tromey@redhat.com>
5749 * monitor.c (monitor_open): Make "args" const.
5750 * monitor.h (monitor_open): Update.
5752 2014-07-24 Tom Tromey <tromey@redhat.com>
5754 * maint.c (match_bfd_flags): Make "string" const.
5755 (print_bfd_section_info): Remove casts.
5756 (print_objfile_section_info): Make "string" const.
5758 2014-07-24 Tom Tromey <tromey@redhat.com>
5760 * inf-child.c (inf_child_open_target): Make "arg" const.
5761 * inf-child.h (inf_child_open_target): Update.
5763 2014-07-24 Tom Tromey <tromey@redhat.com>
5765 * environ.c (unset_in_environ): Make "var" const.
5766 * environ.h (unset_in_environ): Update.
5768 2014-07-24 Tom Tromey <tromey@redhat.com>
5770 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5772 (scan_filename_with_cleanup): Likewise.
5773 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5774 Make arguments const.
5775 (restore_command): Update.
5777 2014-07-24 Pedro Alves <palves@redhat.com>
5779 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5781 2014-07-24 Tom Tromey <tromey@redhat.com>
5782 Gary Benson <gbenson@redhat.com>
5784 * nat/linux-ptrace.c (additional_flags): New global.
5785 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5786 additional_flags; don't check GDBSERVER.
5787 (linux_ptrace_set_additional_flags): New function.
5788 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5790 * linux-nat.c (_initialize_linux_nat): Call
5791 linux_ptrace_set_additional_flags.
5793 2014-07-24 Tom Tromey <tromey@redhat.com>
5795 * make-target-delegates (munge_type, write_debugmethod): New
5797 (debug_names): New global.
5798 ($TARGET_DEBUG_PRINTER): New global.
5799 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5801 Write debug methods. Generate init_debug_target.
5802 * target-debug.h: New file.
5803 * target-delegates.c: Rebuild.
5804 * target.c: Include target-debug.h.
5805 (debug_target): Hoist definition.
5806 (target_kill, target_get_section_table, target_memory_map)
5807 (target_flash_erase, target_flash_done, target_detach)
5808 (target_disconnect, target_wait, target_resume)
5809 (target_pass_signals, target_program_signals, target_follow_fork)
5810 (target_mourn_inferior, target_search_memory)
5811 (target_thread_address_space, target_close)
5812 (target_find_new_threads, target_core_of_thread)
5813 (target_verify_memory, target_insert_mask_watchpoint)
5814 (target_remove_mask_watchpoint): Remove targetdebug code.
5815 (debug_to_post_attach, debug_to_prepare_to_store)
5816 (debug_to_files_info, debug_to_insert_breakpoint)
5817 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5818 (debug_to_region_ok_for_hw_watchpoint)
5819 (debug_to_can_accel_watchpoint_condition)
5820 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5821 (debug_to_watchpoint_addr_within_range)
5822 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5823 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5824 (debug_to_terminal_init, debug_to_terminal_inferior)
5825 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5826 (debug_to_terminal_save_ours, debug_to_terminal_info)
5827 (debug_to_load, debug_to_post_startup_inferior)
5828 (debug_to_insert_fork_catchpoint)
5829 (debug_to_remove_fork_catchpoint)
5830 (debug_to_insert_vfork_catchpoint)
5831 (debug_to_remove_vfork_catchpoint)
5832 (debug_to_insert_exec_catchpoint)
5833 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5834 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5835 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5836 (setup_target_debug): Call init_debug_target.
5837 * target.h (TARGET_DEBUG_PRINTER): New macro.
5838 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5839 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5841 2014-07-24 Gary Benson <gbenson@redhat.com>
5843 * exceptions.h (throw_vfatal): Renamed to...
5844 (throw_vquit): New declaration.
5845 (throw_quit): Likewise.
5846 * exceptions.c (throw_vfatal): Renamed to...
5847 (throw_vquit): New function.
5848 (throw_quit): Likewise.
5849 (throw_error): Call throw_verror rather than throw_it.
5850 * utils.h (vfatal): Removed.
5852 * utils.c (vfatal): Removed.
5854 (internal_verror): Replaced call to fatal with call to throw_quit.
5855 (quit): Replaced calls to fatal with calls to throw_quit.
5857 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5859 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5862 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5864 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5865 less than zero in conditional expression.
5867 2014-07-23 Tom Tromey <tromey@redhat.com>
5869 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5870 ($INTRO_PART): Don't match whitespace.
5871 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5873 ($METHOD): Add $METHOD_TRAILER.
5875 (scan_target_h): New sub.
5876 Change main loop not to collect state.
5877 * target-delegates.c: Rebuild.
5879 2014-07-23 Gary Benson <gbenson@redhat.com>
5881 * cp-support.c (gdb_demangle): Fix build on systems without
5884 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5886 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5887 for reference entry value target data value.
5889 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5891 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5892 value_available_contents_eq.
5894 2014-07-22 Pedro Alves <palves@redhat.com>
5896 * value.c (allocate_optimized_out_value): Don't mark value as
5899 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5901 * MAINTAINERS (Write After Approval): Update my email address.
5903 2014-07-20 Doug Evans <dje@google.com>
5906 * remote.c (putpkt_binary): Add text to error message.
5908 2014-07-20 Yao Qi <yao@codesourcery.com>
5910 * eval.c: Remove "Chill" from comments.
5911 * gdbtypes.h: Likewise.
5912 * symtab.h: Likewise.
5914 2014-07-20 Yao Qi <yao@codesourcery.com>
5916 * std-operator.def: Update comments to TERNOP_SLICE.
5918 2014-07-20 Yao Qi <yao@codesourcery.com>
5920 * std-operator.def: Remove BINOP_RANGE.
5921 * breakpoint.c (watchpoint_exp_is_const): Update.
5922 * expprint.c (dump_subexp_body_standard): Likewise.
5923 * eval.c (init_array_element): Remove dead code.
5924 (evaluate_subexp_standard): Likewise.
5926 2014-07-20 Yao Qi <yao@codesourcery.com>
5928 * std-operator.def: Remove BINOP_IN.
5929 * breakpoint.c (watchpoint_exp_is_const): Update.
5930 * eval.c (evaluate_subexp_standard): Likewise.
5931 * expprint.c (dump_subexp_body_standard): Likewise.
5933 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5935 * microblaze-tdep.c (microblaze_register_names): Add
5936 the rshr and rslr register names.
5937 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5938 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5939 Use of tdesc_numbered_register. Use of
5940 microblaze_register_g_packet_guesses. Use of
5941 tdesc_use_registers. Use of set_gdbarch_register_type.
5942 (microblaze_register_g_packet_guesses): New.
5943 * microblaze-tdep.h (microblaze_reg_num): Add
5944 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5945 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5946 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5947 * features/microblaze-core.xml: New file.
5948 * features/microblaze-stack-protect.xml: New file.
5949 * features/microblaze-with-stack-protect.c: New file.
5950 * features/microblaze-with-stack-protect.xml: New file.
5951 * features/microblaze.xml: New file.
5952 * features/microblaze.c: New file.
5953 * features/Makefile (microblaze-with-stack-protect): Add
5954 microblaze-with-stack-protect microblaze and microblaze-expedite.
5955 * regformats/microblaze-with-stack-protect.dat: New file.
5956 * regformats/microblaze.dat: New file.
5957 * doc/gdb.texinfo (MicroBlaze Features): Added.
5959 2014-07-18 Tom Tromey <tromey@redhat.com>
5961 * exec.c (exec_ops): Now static.
5962 * exec.h (exec_ops): Don't declare.
5964 2014-07-18 Tom Tromey <tromey@redhat.com>
5966 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5967 to find_target_beneath.
5968 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5969 find_target_beneath.
5970 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5972 2014-07-18 Tom Tromey <tromey@redhat.com>
5975 * utils.c (quit): Use target_supports_terminal_ours.
5976 * target.h (target_supports_terminal_ours): Declare.
5977 * target.c (target_supports_delete_record): Don't check
5978 to_delete_record against NULL.
5979 (target_supports_terminal_ours): New function.
5981 2014-07-18 Tom Tromey <tromey@redhat.com>
5984 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5985 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5986 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5987 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5988 * windows-nat.c (windows_xfer_partial): Always delegate.
5989 * record-btrace.c (record_btrace_xfer_partial): Simplify
5991 (record_btrace_fetch_registers, record_btrace_store_registers)
5992 (record_btrace_prepare_to_store, record_btrace_resume)
5993 (record_btrace_wait, record_btrace_find_new_threads)
5994 (record_btrace_thread_alive): Likewise.
5995 * procfs.c (procfs_xfer_partial): Always delegate.
5996 * corelow.c (core_xfer_partial): Always delegate.
5997 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5999 2014-07-18 Tom Tromey <tromey@redhat.com>
6001 * exec.c (exec_make_note_section): Move earlier.
6003 2014-07-17 Doug Evans <dje@google.com>
6006 * maint.c (count_symtabs_and_blocks): Handle NULL
6007 current_program_space.
6008 (report_command_stats): Check global enabled flag in addition to
6009 recorded enabled flag.
6010 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6012 2014-07-16 Pedro Alves <palves@redhat.com>
6014 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6016 2014-07-16 Tom Tromey <tromey@redhat.com>
6018 * target.h (struct target_ops) <to_delete_record>: Reformat
6021 2014-07-16 Tom Tromey <tromey@redhat.com>
6023 * target-delegates.c: Rebuild.
6025 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6027 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6028 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6029 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6030 (avr_pointer_to_address): Likewise.
6031 (avr_address_class_type_flags): New function.
6032 (avr_address_class_type_flags_to_name): Likewise.
6033 (avr_address_class_name_to_type_flags): Likewise.
6034 (avr_gdbarch_init): Set address_class_type_flags,
6035 address_class_type_flags_to_name and
6036 address_class_name_to_type_flags.
6038 2014-07-15 Pedro Alves <palves@redhat.com>
6040 * linux-nat.c (kill_callback): Save errno and work with saved
6043 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6045 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6047 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6049 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6050 breakpoint support correctly.
6052 2014-07-14 Pedro Alves <palves@redhat.com>
6054 * utils.c (prompt_for_continue): Call target_terminal_ours.
6056 2014-07-14 Pedro Alves <palves@redhat.com>
6058 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6059 catch_errors. Don't re-enable stdin or notify observers where,
6061 (fetch_inferior_event_wrapper): Delete.
6063 2014-07-14 Pedro Alves <palves@redhat.com>
6066 * top.c: Include "inf-loop.h".
6067 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6069 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6071 (gdb_readline_wrapper): Store whether the target is async, and
6074 2014-07-14 Pedro Alves <palves@redhat.com>
6077 * top.c (gdb_readline_wrapper_line): Tweak comment.
6078 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6079 the input handler callback.
6081 2014-07-14 Pedro Alves <palves@redhat.com>
6084 * main.c: Include event-top.h.
6085 (handle_command_errors): New function.
6086 (catch_command_errors, catch_command_errors_const): Use it.
6088 2014-07-14 Pedro Alves <palves@redhat.com>
6090 * exceptions.c (catch_command_errors, catch_command_errors_const):
6092 * exceptions.h (catch_command_errors_ftype)
6093 (catch_command_errors_const_ftype): Moved to main.c.
6094 (catch_command_errors, catch_command_errors_const): Delete
6096 * main.c (catch_command_errors_ftype)
6097 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6098 (catch_command_errors, catch_command_errors_const)): Moved here
6099 from exceptions.c and make static.
6101 2014-07-14 Pedro Alves <palves@redhat.com>
6103 * exceptions.c (print_any_exception): Delete.
6104 (catch_exceptions_with_msg): Use exception_print instead of
6105 print_any_exception.
6106 (catch_errors): Use exception_fprintf instead of
6107 print_any_exception.
6108 (catch_command_errors, catch_command_errors_const): Use
6109 exception_print instead of print_any_exception.
6111 2014-07-14 Pedro Alves <palves@redhat.com>
6113 * infcall.c (run_inferior_call): Set 'sync_execution' while
6114 running the inferior call.
6116 2014-07-14 Pedro Alves <palves@redhat.com>
6118 * value.c (value_contents_equal): Delete function.
6119 * value.h (value_contents_equal): Delete declaration.
6121 2014-07-14 Tom Tromey <tromey@redhat.com>
6124 * gdbtypes.c (is_dynamic_type_internal): New function, from
6126 (is_dynamic_type): Rewrite.
6127 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6128 (resolve_dynamic_struct): Likewise.
6129 (resolve_dynamic_type_internal): New function, from
6130 resolve_dynamic_type.
6131 (resolve_dynamic_type): Rewrite.
6133 2014-07-14 Tom Tromey <tromey@redhat.com>
6135 * target.c (target_require_runnable): Also check record_stratum.
6138 2014-07-11 Yao Qi <yao@codesourcery.com>
6140 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6141 thumb_instruction_restores_sp return true.
6143 2014-07-11 Yao Qi <yao@codesourcery.com>
6145 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6146 (thumb_in_function_epilogue_p): Call
6147 thumb_instruction_restores_sp.
6149 2014-07-11 Yao Qi <yao@codesourcery.com>
6151 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6153 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6155 2014-07-11 Gary Benson <gbenson@redhat.com>
6157 * amd64-linux-nat.c (gdbcore.h): Remove include.
6158 (regset.h): Likewise.
6159 (nat/linux-btrace.h): Likewise.
6160 (btrace.h): Likewise.
6161 (gdb_assert.h): Likewise.
6162 (string.h): Likewise.
6163 (sys/uio.h): Likewise.
6164 (sys/debugreg.h): Likewise.
6165 (sys/syscall.h): Likewise.
6166 (sys/procfs.h): Likewise.
6167 (sys/user.h): Likewise.
6168 (asm/ptrace.h): Likewise.
6169 (i386-nat.h): Likewise.
6170 * i386-linux-nat.c (i386-nat.h): Likewise.
6171 (regset.h): Likewise.
6172 (target.h): Likewise.
6173 (linux-nat.h): Likewise.
6174 (nat/linux-btrace.h): Likewise.
6175 (btrace.h): Likewise.
6176 (gdb_assert.h): Likewise.
6177 (string.h): Likewise.
6178 (sys/uio.h): Likewise.
6179 (sys/user.h): Likewise.
6180 (sys/procfs.h): Likewise.
6181 (sys/reg.h): Likewise.
6182 (sys/debugreg.h): Likewise.
6183 (ORIG_EAX): Remove definition.
6185 2014-07-11 Gary Benson <gbenson@redhat.com>
6187 * i386-linux-nat.h: New file.
6188 * x86-linux-nat.h: Likewise.
6189 * x86-linux-nat.c: Likewise.
6190 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6191 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6192 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6193 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6194 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6195 (PTRACE_SETREGSET): Likewise.
6196 (arch_lwp_info): Now in x86-linux-nat.c.
6197 (have_ptrace_getregset): Now in x86-linux-nat.h.
6198 (x86_linux_dr_get): Now in x86-linux-nat.c.
6199 (x86_linux_dr_set): Likewise.
6200 (x86_linux_dr_get_addr): Likewise.
6201 (x86_linux_dr_get_control): Likewise.
6202 (x86_linux_dr_get_status): Likewise.
6203 (update_debug_registers_callback): Likewise.
6204 (x86_linux_dr_set_control): Likewise.
6205 (x86_linux_dr_set_addr): Likewise.
6206 (x86_linux_prepare_to_resume): Likewise.
6207 (x86_linux_new_thread): Likewise.
6208 (x86_linux_new_fork): Likewise.
6209 (x86_linux_get_thread_area): Likewise.
6210 (super_post_startup_inferior): Likewise.
6211 (x86_linux_child_post_startup_inferior): Likewise.
6212 (AMD64_LINUX_USER64_CS): Likewise.
6213 (AMD64_LINUX_X32_DS): Likewise.
6214 (x86_linux_read_description): Likewise.
6215 (x86_linux_enable_btrace): Likewise.
6216 (x86_linux_disable_btrace): Likewise.
6217 (x86_linux_teardown_btrace): Likewise.
6218 (x86_linux_read_btrace): Likewise.
6219 (x86_linux_create_target): Likewise.
6220 (x86_linux_add_target): Likewise.
6221 * i386-linux-nat.c (x86-linux-nat.h): New include.
6222 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6223 (PTRACE_SETREGSET): Likewise.
6224 (arch_lwp_info): Now in x86-linux-nat.c.
6225 (have_ptrace_getregset): Now in x86-linux-nat.h.
6226 (x86_linux_dr_get): Now in x86-linux-nat.c.
6227 (x86_linux_dr_set): Likewise.
6228 (x86_linux_dr_get_addr): Likewise.
6229 (x86_linux_dr_get_control): Likewise.
6230 (x86_linux_dr_get_status): Likewise.
6231 (update_debug_registers_callback): Likewise.
6232 (x86_linux_dr_set_control): Likewise.
6233 (x86_linux_dr_set_addr): Likewise.
6234 (x86_linux_prepare_to_resume): Likewise.
6235 (x86_linux_new_thread): Likewise.
6236 (x86_linux_new_fork): Likewise.
6237 (x86_linux_get_thread_area): Likewise.
6238 (super_post_startup_inferior): Likewise.
6239 (x86_linux_child_post_startup_inferior): Likewise.
6240 (AMD64_LINUX_USER64_CS): Likewise.
6241 (AMD64_LINUX_X32_DS): Likewise.
6242 (x86_linux_read_description): Likewise.
6243 (x86_linux_enable_btrace): Likewise.
6244 (x86_linux_disable_btrace): Likewise.
6245 (x86_linux_teardown_btrace): Likewise.
6246 (x86_linux_read_btrace): Likewise.
6247 (x86_linux_create_target): Likewise.
6248 (x86_linux_add_target): Likewise.
6250 2014-07-11 Gary Benson <gbenson@redhat.com>
6252 * amd64-linux-nat.c: Comment and whitespace changes.
6253 * i386-linux-nat.c: Comment and whitespace changes.
6255 2014-07-11 Gary Benson <gbenson@redhat.com>
6257 * amd64-linux-nat.c (x86_linux_create_target): New function.
6258 (x86_linux_add_target): Likewise.
6259 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6260 * i386-linux-nat.c (x86_linux_create_target): New function.
6261 (x86_linux_add_target): Likewise.
6262 (_initialize_i386_linux_nat): Delegate to the above new functions.
6264 2014-07-11 Gary Benson <gbenson@redhat.com>
6266 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6267 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6268 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6269 (ps_get_thread_area): Delegate to the above.
6271 2014-07-11 Gary Benson <gbenson@redhat.com>
6273 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6274 x86_linux_read_description. All uses updated. amd64-specific
6275 code conditionalized. Conditionalized i386-specific code added.
6276 Redundant cast removed.
6277 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6278 x86_linux_read_description. All uses updated. i386-specific
6279 code conditionalized. Conditionalized amd64-specific code added.
6280 One sizeof replaced with the actual type it is describing.
6282 2014-07-11 Gary Benson <gbenson@redhat.com>
6284 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6285 x86_linux_dr_get. All uses updated.
6286 (amd64_linux_dr_set): Renamed to
6287 x86_linux_dr_set. All uses updated.
6288 (amd64_linux_dr_get_addr): Renamed to
6289 x86_linux_dr_get_addr. All uses updated.
6290 (amd64_linux_dr_get_control): Renamed to
6291 x86_linux_dr_get_control. All uses updated.
6292 (amd64_linux_dr_get_status): Renamed to
6293 x86_linux_dr_get_status. All uses updated.
6294 (amd64_linux_dr_set_control): Renamed to
6295 x86_linux_dr_set_control. All uses updated.
6296 (amd64_linux_dr_set_addr): Renamed to
6297 x86_linux_dr_set_addr. All uses updated.
6298 (amd64_linux_prepare_to_resume): Renamed to
6299 x86_linux_prepare_to_resume. All uses updated.
6300 (amd64_linux_new_thread): Renamed to
6301 x86_linux_new_thread. All uses updated.
6302 (amd64_linux_new_fork): Renamed to
6303 x86_linux_new_fork. All uses updated.
6304 (amd64_linux_child_post_startup_inferior): Renamed to
6305 x86_linux_child_post_startup_inferior. All uses updated.
6306 (amd64_linux_enable_btrace): Renamed to
6307 x86_linux_enable_btrace. All uses updated.
6308 (amd64_linux_disable_btrace): Renamed to
6309 x86_linux_disable_btrace. All uses updated.
6310 (amd64_linux_teardown_btrace): Renamed to
6311 x86_linux_teardown_btrace. All uses updated.
6312 (amd64_linux_read_btrace): Renamed to
6313 x86_linux_read_btrace. All uses updated.
6314 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6315 x86_linux_dr_get. All uses updated.
6316 (i386_linux_dr_set): Renamed to
6317 x86_linux_dr_set. All uses updated.
6318 (i386_linux_dr_get_addr): Renamed to
6319 x86_linux_dr_get_addr. All uses updated.
6320 (i386_linux_dr_get_control): Renamed to
6321 x86_linux_dr_get_control. All uses updated.
6322 (i386_linux_dr_get_status): Renamed to
6323 x86_linux_dr_get_status. All uses updated.
6324 (i386_linux_dr_set_control): Renamed to
6325 x86_linux_dr_set_control. All uses updated.
6326 (i386_linux_dr_set_addr): Renamed to
6327 x86_linux_dr_set_addr. All uses updated.
6328 (i386_linux_prepare_to_resume): Renamed to
6329 x86_linux_prepare_to_resume. All uses updated.
6330 (i386_linux_new_thread): Renamed to
6331 x86_linux_new_thread. All uses updated.
6332 (i386_linux_new_fork): Renamed to
6333 x86_linux_new_fork. All uses updated.
6334 (i386_linux_child_post_startup_inferior): Renamed to
6335 x86_linux_child_post_startup_inferior. All uses updated.
6336 (i386_linux_enable_btrace): Renamed to
6337 x86_linux_enable_btrace. All uses updated.
6338 (i386_linux_disable_btrace): Renamed to
6339 x86_linux_disable_btrace. All uses updated.
6340 (i386_linux_teardown_btrace): Renamed to
6341 x86_linux_teardown_btrace. All uses updated.
6342 (i386_linux_read_btrace): Renamed to
6343 x86_linux_read_btrace. All uses updated.
6345 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6347 * remote.c (extended_remote_post_attach): New function.
6348 (init_extended_remote_ops): Install it as to_post_attach method.
6350 2014-07-09 Pedro Alves <palves@redhat.com>
6352 * infcmd.c (attach_command_post_wait): Don't call
6353 target_terminal_inferior here.
6354 (attach_command): Call it here instead.
6356 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6358 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6360 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6361 from varobj.c, with additional checks.
6362 (c_varobj_ops): Fill in is_path_expr_parent field.
6363 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6364 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6366 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6368 (varobj_default_is_path_expr_parent): New function.
6369 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6370 (varobj_default_is_path_expr_parent): Declare new function.
6372 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6374 * infcmd.c (finish_backward): Turn internal error into normal error.
6376 2014-07-07 Pedro Alves <palves@redhat.com>
6379 * remote.c (async_handle_remote_sigint)
6380 (async_handle_remote_sigint_twice): Call
6381 gdb_call_async_signal_handler instead of
6382 mark_async_signal_handler.
6384 2014-07-07 Tom Tromey <tromey@redhat.com>
6386 * target-delegates.c: Rebuild.
6387 * target.c (target_info_record): Remove.
6388 * record.c (info_record_command): Unconditionally call
6390 * target.h (struct target_ops) <to_info_record>: Use
6391 TARGET_DEFAULT_IGNORE.
6392 (target_info_record): Remove.
6394 2014-07-07 Tom Tromey <tromey@redhat.com>
6396 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6397 TARGET_DEFAULT_NORETURN.
6398 * target.c (generic_tls_error): New function.
6399 (target_translate_tls_address): Don't search target stack.
6400 * target-delegates.c: Rebuild.
6401 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6403 * linux-thread-db.c (thread_db_get_thread_local_address):
6404 Unconditionally call beneath target.
6406 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6408 * cli/cli-logging.c (pop_output_files): Assign targerr to
6411 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6413 * MAINTAINERS (Write After Approval): Update my email address.
6415 2014-07-02 Gary Benson <gbenson@redhat.com>
6417 * proc-service.c (ps_xfer_memory): Update comment.
6418 (ps_pstop): Remove unused function.
6419 (ps_pcontinue): Likewise.
6420 (ps_lstop): Likewise.
6421 (ps_lcontinue): Likewise.
6422 (ps_lgetxregsize): Likewise.
6423 (ps_lgetxregs): Likewise.
6424 (ps_lsetxregs): Likewise.
6425 (ps_plog): Likewise.
6426 (ps_ptread): Likewise.
6427 (ps_ptwrite): Likewise.
6429 2014-07-01 Mark Wielaard <mjw@redhat.com>
6431 * dwarf2read.c (add_array_cv_type): New function.
6432 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6433 (read_tag_volatile_type): Likewise.
6435 2014-07-01 Tom Tromey <tromey@redhat.com>
6437 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6438 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6439 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6440 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6441 * command.h (cmd_cfunc_ftype): Move earlier.
6442 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6443 (add_com, add_info): Use cmd_cfunc_ftype.
6445 2014-06-30 Tom Tromey <tromey@redhat.com>
6447 * symtab.c (operator_chars): Make parameters and return type
6449 (file_matches): Make "files" const.
6450 (struct search_symbols_data) <files>: Now const.
6451 (search_symbols): Make "regexp" and "files" parameters const.
6453 (symtab_symbol_info): Remove cast.
6454 (rbreak_command): Update.
6455 * symtab.h (search_symbols): Update.
6457 2014-06-27 Yao Qi <yao@codesourcery.com>
6459 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6460 Change parameter type to 'struct thread_info *'. Caller
6462 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6464 * dummy-frame.c (struct dummy_frame_id): New.
6465 (dummy_frame_id_eq): New function.
6466 (struct dummy_frame) <id>: Change its type to 'struct
6468 (dummy_frame_push): Add parameter ptid and save it in
6470 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6472 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6474 (lookup_dummy_frame): Change parameter type to 'struct
6475 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6476 instead of frame_id_eq.
6477 (dummy_frame_pop): Add parameter ptid. Callers updated.
6478 Update comments. Compose dummy_frame_id and pass it to
6480 (dummy_frame_discard): Add parameter ptid.
6481 (dummy_frame_sniffer): Compose dummy_frame_id and call
6482 dummy_frame_id_eq instead of frame_id_eq.
6483 (fprint_dummy_frames): Print ptid.
6484 * dummy-frame.h: Remove comments.
6485 (dummy_frame_push): Add ptid in declaration.
6486 (dummy_frame_pop, dummy_frame_discard): Likewise.
6488 2014-06-26 Tom Tromey <tromey@redhat.com>
6490 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6491 * command.h (error_no_arg): Update.
6493 2014-06-26 Tom Tromey <tromey@redhat.com>
6495 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6496 (do_show_command): Make "arg" const.
6497 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6499 2014-06-26 Tom Tromey <tromey@redhat.com>
6501 * record-full.c (record_full_get_bookmark): Make "args" const.
6502 (record_full_goto_bookmark): Make "raw_bookmark" const.
6503 * record.c (record_goto): New function.
6504 (cmd_record_goto): Use it. Now static.
6505 * record.h (record_goto): Declare.
6506 (cmd_record_goto): Remove declaration.
6507 * target-delegates.c: Rebuild.
6508 * target.h (struct target_ops) <to_get_bookmark,
6509 to_goto_bookmark>: Make parameter const.
6511 2014-06-26 Tom Tromey <tromey@redhat.com>
6513 * defs.h (generic_load): Update.
6514 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6515 * monitor.c (monitor_load): Make "args" const.
6516 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6517 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6519 (mips_load): Make "file" const.
6520 * remote-sim.c (gdbsim_load): Make "args" const.
6521 * remote.c (remote_load): Make "name" const.
6522 * symfile.c (generic_load): Make "args" const.
6523 * target-delegates.c: Rebuild.
6524 * target.c (target_load): Make "arg" const.
6525 (debug_to_load): Make "args" const.
6526 * target.h (struct target_ops) <to_load>: Make parameter const.
6527 (target_load): Update.
6529 2014-06-26 Tom Tromey <tromey@redhat.com>
6532 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6533 (dwarf2_physname, read_partial_die)
6534 (guess_partial_die_structure_name, fixup_partial_die)
6535 (guess_full_die_structure_name, anonymous_struct_prefix)
6536 (dwarf2_name): Use per-BFD obstack.
6538 2014-06-26 Yao Qi <yao@codesourcery.com>
6540 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6541 dummyframe and this_id into inner block below.
6543 2014-06-26 Yao Qi <yao@codesourcery.com>
6545 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6546 with "signal_pass[0]" in the initialization of signal_pass.
6548 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6550 * record-btrace.c (record_btrace_generating_corefile)
6551 (record_btrace_prepare_to_generate_core)
6552 (record_btrace_done_generating_core): New.
6553 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6554 (record_btrace_store_registers, record_btrace_prepare_to_store):
6555 Forward request when generating a core file.
6556 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6557 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6558 to_done_generating_core.
6560 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6562 * target.h (target_ops) <to_prepare_to_generate_core>
6563 <to_done_generating_core>: New.
6564 (target_prepare_to_generate_core, target_done_generating_core): New.
6565 * target.c (target_prepare_to_generate_core)
6566 (target_done_generating_core): New.
6567 * target-delegates.c: Regenerate.
6568 * gcore.c: (write_gcore_file): Rename to ...
6569 (write_gcore_file_1): ...this.
6570 (write_gcore_file): Call target_prepare_to_generate_core
6571 and target_done_generating_core.
6573 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6575 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6576 * gcore.c (write_gcore_file): Free memory returned from
6577 make_corefile_notes.
6578 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6579 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6581 2014-06-24 Yao Qi <yao@codesourcery.com>
6583 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6584 (arm_linux_init_abi): Set skip_trampoline_code with
6585 gdbarch_skip_trampoline_code instead of
6586 find_solib_trampoline_target.
6588 2014-06-24 Yao Qi <yao@codesourcery.com>
6590 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6591 arm_skip_bx_reg returns non-zero.
6593 2014-06-24 Yao Qi <yao@codesourcery.com>
6595 * arm-tdep.c (arm_skip_bx_reg): New function.
6596 (arm_skip_stub): Call arm_skip_bx_reg.
6598 2014-06-23 Don Breazeal <donb@codesourcery.com>
6600 * MAINTAINERS: Add myself as write-after-approval maintainer.
6602 2014-06-23 Pedro Alves <palves@redhat.com>
6604 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6605 DR_CONTROL before setting DR0..DR3.
6606 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6607 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6608 bits of DR_CONTROL related to the debug register slot being
6609 disabled. If all slots are vacant, clear local slowdown as well,
6610 and assert DR_CONTROL is 0.
6612 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6614 * python/lib/gdb/command/xmethods.py
6615 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6616 current progspace only if the string "progspace" matches LOCUS_RE.
6618 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6620 Fix --with-system-readline with readline-6.3 patch 5.
6621 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6622 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6625 2014-06-20 Tom Tromey <tromey@redhat.com>
6627 * dwarf2read.c (dw2_get_real_path): Use correct type in
6629 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6631 2014-06-20 Gary Benson <gbenson@redhat.com>
6633 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6634 * common/glibc_thread_db.h: Likewise.
6635 * common/i386-cpuid.h: Likewise.
6636 * common/i386-gcc-cpuid.h: Likewise.
6637 * common/linux-btrace.h: Likewise.
6638 * common/linux-osdata.h: Likewise.
6639 * common/linux-procfs.h: Likewise.
6640 * common/linux-ptrace.h: Likewise.
6641 * common/mips-linux-watch.h: Likewise.
6642 * common/linux-btrace.c: Moved to nat.
6643 * common/linux-osdata.c: Likewise.
6644 * common/linux-procfs.c: Likewise.
6645 * common/linux-ptrace.c: Likewise.
6646 * common/mips-linux-watch.c: Likewise.
6647 * nat/gdb_thread_db.h: Moved from common.
6648 * nat/glibc_thread_db.h: Likewise.
6649 * nat/i386-cpuid.h: Likewise.
6650 * nat/i386-gcc-cpuid.h: Likewise.
6651 * nat/linux-btrace.c: Likewise.
6652 * nat/linux-btrace.h: Likewise.
6653 * nat/linux-osdata.c: Likewise.
6654 * nat/linux-osdata.h: Likewise.
6655 * nat/linux-procfs.c: Likewise.
6656 * nat/linux-procfs.h: Likewise.
6657 * nat/linux-ptrace.c: Likewise.
6658 * nat/linux-ptrace.h: Likewise.
6659 * nat/mips-linux-watch.c: Likewise.
6660 * nat/mips-linux-watch.h: Likewise.
6661 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6662 (object file files): Reordered.
6663 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6664 of glibc_thread_db.h.
6666 2014-06-20 Gary Benson <gbenson@redhat.com>
6668 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6669 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6670 (i386_dr_low): Likewise.
6671 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6672 (i386_dr_low_set_addr): Likewise.
6673 (i386_dr_low_get_addr): Likewise.
6674 (i386_dr_low_can_set_control): Likewise.
6675 (i386_dr_low_set_control): Likewise.
6676 (i386_dr_low_get_control): Likewise.
6677 (i386_dr_low_get_status): Likewise.
6678 (i386_get_debug_register_length): Likewise.
6679 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6680 (i386_dr_low): Likewise.
6681 * nat/i386-dregs.c (i386-low.h): Remove include.
6682 (i386-nat.h): Likewise.
6683 (nat/i386-dregs.h): New include.
6684 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6685 (i386_dr_low_set_addr): Likewise.
6686 (i386_dr_low_get_addr): Likewise.
6687 (i386_dr_low_can_set_control): Likewise.
6688 (i386_dr_low_set_control): Likewise.
6689 (i386_dr_low_get_control): Likewise.
6690 (i386_dr_low_get_status): Likewise.
6691 (i386_get_debug_register_length): Likewise.
6692 (debug_hw_points): Likewise.
6694 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6696 * Makefile.in (SFILES): Add d-exp.y.
6697 (YYFILES): Add d-exp.c.
6698 (YYOBJ): Add d-exp.o.
6699 (local-maintainer-clean): Delete d-exp.c.
6700 * d-exp.y: New file.
6701 * d-lang.h (d_parse): New declaration.
6702 (d_error): New declaration.
6703 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6704 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6705 PREC_ORDER operators.
6706 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6708 2014-06-19 Yao Qi <yao@codesourcery.com>
6710 * gdbthread.h (any_running): Remove the declaration.
6711 * thread.c (any_running): Remove.
6713 2014-06-19 Yao Qi <yao@codesourcery.com>
6715 * gdbthread.h (struct thread_info) <state>: Change its type to
6716 'enum thread_state'. Update comments.
6718 2014-06-19 Pedro Alves <palves@redhat.com>
6720 * gdbthread.h (ALL_THREADS): Delete.
6721 (ALL_NON_EXITED_THREADS): New macro.
6722 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6723 instead of ALL_THREADS.
6724 * infrun.c (find_thread_needs_step_over)
6725 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6726 instead of ALL_THREADS.
6727 * record-btrace.c (record_btrace_open)
6728 (record_btrace_stop_recording, record_btrace_close)
6729 (record_btrace_is_replaying, record_btrace_resume)
6730 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6731 * remote.c (append_pending_thread_resumptions): Likewise.
6732 * thread.c (thread_apply_all_command): Likewise.
6734 2014-06-19 Gary Benson <gbenson@redhat.com>
6736 * i386-nat.c (i386_stopped_by_watchpoint):
6737 Use i386_dr_stopped_by_watchpoint.
6738 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6739 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6741 2014-06-19 Gary Benson <gbenson@redhat.com>
6743 * nat/i386-dregs.c: New file.
6744 * Makefile.in (i386-dregs.o): New rule.
6745 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6746 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6747 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6748 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6749 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6750 * config/i386/go32.mh (NATDEPFILES): Likewise.
6751 * config/i386/linux.mh (NATDEPFILES): Likewise.
6752 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6753 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6754 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6755 * i386-nat.h (debug_hw_points): New declaration.
6756 * i386-nat.c (breakpoint.h): Remove include.
6757 (command.h): Likewise.
6758 (target.h): Likewise.
6759 (gdb_assert.h): Likewise.
6760 (debug_hw_points): Made nonstatic.
6761 (debug_printf): Now in i386-dregs.c.
6762 (TARGET_HAS_DR_LEN_8): Likewise.
6763 (DR_CONTROL_SHIFT): Likewise.
6764 (DR_CONTROL_SIZE): Likewise.
6765 (DR_RW_EXECUTE): Likewise.
6766 (DR_RW_WRITE): Likewise.
6767 (DR_RW_READ): Likewise.
6768 (DR_RW_IORW): Likewise.
6769 (DR_LEN_1): Likewise.
6770 (DR_LEN_2): Likewise.
6771 (DR_LEN_4): Likewise.
6772 (DR_LEN_8): Likewise.
6773 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6774 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6775 (DR_ENABLE_SIZE): Likewise.
6776 (DR_LOCAL_SLOWDOWN): Likewise.
6777 (DR_GLOBAL_SLOWDOWN): Likewise.
6778 (DR_CONTROL_RESERVED): Likewise.
6779 (I386_DR_CONTROL_MASK): Likewise.
6780 (I386_DR_VACANT): Likewise.
6781 (I386_DR_LOCAL_ENABLE): Likewise.
6782 (I386_DR_GLOBAL_ENABLE): Likewise.
6783 (I386_DR_DISABLE): Likewise.
6784 (I386_DR_SET_RW_LEN): Likewise.
6785 (I386_DR_GET_RW_LEN): Likewise.
6786 (I386_DR_WATCH_HIT): Likewise.
6787 (i386_wp_op_t): Likewise.
6788 (i386_show_dr): Likewise.
6789 (i386_length_and_rw_bits): Likewise.
6790 (i386_insert_aligned_watchpoint): Likewise.
6791 (i386_remove_aligned_watchpoint): Likewise.
6792 (i386_handle_nonaligned_watchpoint): Likewise.
6793 (i386_update_inferior_debug_regs): Likewise.
6794 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6795 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6796 (i386_region_ok_for_watchpoint):
6797 Use i386_dr_region_ok_for_watchpoint.
6798 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6800 2014-06-19 Gary Benson <gbenson@redhat.com>
6802 * i386-nat.c (i386_insert_hw_breakpoint): Use
6803 i386_insert_watchpoint.
6804 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6806 2014-06-19 Gary Benson <gbenson@redhat.com>
6808 * i386-nat.c (i386_dr_show): Renamed to
6809 i386_show_dr and made static. All uses updated.
6810 (i386_dr_length_and_rw_bits): Renamed to
6811 i386_length_and_rw_bits and made static.
6813 (i386_dr_insert_aligned_watchpoint): Renamed to
6814 i386_insert_aligned_watchpoint and made static.
6816 (i386_dr_remove_aligned_watchpoint): Renamed to
6817 i386_remove_aligned_watchpoint and made static.
6819 (i386_dr_update_inferior_debug_regs): Renamed to
6820 i386_update_inferior_debug_regs and made static.
6822 * nat/i386-dregs.h (i386_dr_show): Removed.
6823 (i386_dr_length_and_rw_bits): Likewise.
6824 (i386_dr_insert_aligned_watchpoint): Likewise.
6825 (i386_dr_remove_aligned_watchpoint): Likewise.
6826 (i386_dr_update_inferior_debug_regs): Likewise.
6828 2014-06-19 Gary Benson <gbenson@redhat.com>
6830 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6831 * configure: Regenerate.
6832 * config.in: Likewise.
6833 * main.c (signal.h): New include.
6834 (setup_alternate_signal_stack): New function.
6835 (captured_main): Call the above.
6836 * cp-support.c (signal.h): New include.
6837 (catch_demangler_crashes): New flag.
6838 (SIGJMP_BUF): New define.
6839 (SIGSETJMP): Likewise.
6840 (SIGLONGJMP): Likewise.
6841 (gdb_demangle_jmp_buf): New static global.
6842 (gdb_demangle_attempt_core_dump): Likewise.
6843 (gdb_demangle_signal_handler): New function.
6844 (gdb_demangle): If catch_demangler_crashes is set, install the
6845 above signal handler before calling bfd_demangle, and restore
6846 the original signal handler afterwards. Display the offending
6847 symbol and call demangler_warning the first time a segmentation
6849 (_initialize_cp_support): New maint set/show command.
6851 2014-06-19 Gary Benson <gbenson@redhat.com>
6853 * utils.h (resource_limit_kind): New enum.
6854 (can_dump_core): New declaration.
6855 (warn_cant_dump_core): Likewise.
6856 (dump_core): Likewise.
6857 * utils.c (dump_core): Made nonstatic. Added new
6858 parameter "limit_kind".
6859 (can_dump_core): Made nonstatic. Moved printing code to...
6860 (warn_cant_dump_core): New function.
6861 (can_dump_core_warn): Likewise.
6862 (internal_vproblem): Replace calls to can_dump_core with
6863 calls to can_dump_core_warn. Supply new argument to each.
6865 2014-06-19 Gary Benson <gbenson@redhat.com>
6867 * utils.h (demangler_vwarning): New declaration.
6868 (demangler_warning): Likewise.
6869 * utils.c (struct internal_problem)
6870 <user_settable_should_quit>: New field.
6871 <user_settable_should_dump_core>: Likewise
6872 (internal_error_problem): Add values for above new fields.
6873 (internal_warning_problem): Likewise.
6874 (demangler_warning_problem): New static global.
6875 (demangler_vwarning): New function.
6876 (demangler_warning): Likewise.
6877 (add_internal_problem_command): Selectively add commands.
6878 (_initialize_utils): New internal problem command.
6879 * maint.c (maintenance_demangler_warning): New function.
6880 (_initialize_maint_cmds): New command.
6882 2014-06-18 Tom Tromey <tromey@redhat.com>
6884 * f-valprint.c (info_common_command_for_block): Update.
6885 * symtab.h (struct general_symbol_info) <common_block>: Now
6888 2014-06-18 Tom Tromey <tromey@redhat.com>
6890 * symtab.h (struct symtab) <blockvector>: Now const.
6891 * ada-lang.c (ada_add_global_exceptions): Update.
6892 * buildsym.c (augment_type_symtab): Update.
6893 * dwarf2read.c (dw2_lookup_symbol): Update.
6894 * jit.c (finalize_symtab): Update.
6895 * jv-lang.c (add_class_symtab_symbol): Update.
6896 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6898 * objfiles.c (objfile_relocate1): Update.
6899 * psymtab.c (lookup_symbol_aux_psymtabs)
6900 (maintenance_check_psymtabs): Update.
6901 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6903 * spu-tdep.c (spu_catch_start): Update.
6904 * symmisc.c (dump_symtab_1): Update.
6905 * symtab.c (lookup_global_symbol_from_objfile)
6906 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6907 (basic_lookup_transparent_type_quick)
6908 (basic_lookup_transparent_type, find_pc_sect_symtab)
6909 (find_pc_sect_line, search_symbols): Update.
6910 * block.c (find_block_in_blockvector): Make "bl" const.
6911 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6913 (blockvector_contains_pc): Make "bv" const.
6914 (block_for_pc_sect): Update.
6915 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6916 (blockvector_contains_pc): Update.
6917 * breakpoint.c (resolve_sal_pc): Update.
6918 * inline-frame.c (block_starting_point_at): Update.
6920 2014-06-18 Tom Tromey <tromey@redhat.com>
6922 * completer.c (complete_line): Make "line_buffer" const.
6923 * completer.h (complete_line): Update.
6925 2014-06-18 Tom Tromey <tromey@redhat.com>
6927 * symtab.c (add_macro_name): Remove unneeded cast.
6929 2014-06-18 Tom Tromey <tromey@redhat.com>
6931 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6932 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6934 2014-06-18 Tom Tromey <tromey@redhat.com>
6936 * probe.c (info_probes_for_ops): Make "arg" const.
6937 * probe.h (info_probes_for_ops): Update.
6939 2014-06-18 Tom Tromey <tromey@redhat.com>
6941 * varobj.c (varobj_create): Update.
6942 * valops.c (value_of_this): Update.
6943 * tracepoint.c (add_local_symbols, scope_info): Update.
6944 * symtab.h (struct general_symbol_info) <block>: Now const.
6945 * symtab.c (skip_prologue_sal)
6946 (default_make_symbol_completion_list_break_on)
6947 (skip_prologue_using_sal): Update.
6948 * stack.h (iterate_over_block_locals)
6949 (iterate_over_block_local_vars): Update.
6950 * stack.c (print_frame_args): Update.
6951 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6953 (get_selected_block): Make return type const.
6954 * python/py-frame.c (frapy_block): Update.
6955 * python/py-block.c (gdbpy_block_for_pc): Update.
6956 * p-exp.y (%union) <bval>: Now const.
6957 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6958 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6959 * m2-exp.y (%union) <bval>: Now const.
6960 * linespec.c (get_current_search_block): Make return type const.
6961 (create_sals_line_offset, find_label_symbols): Update.
6962 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6964 (block_starting_point_at): Make "block" const.
6965 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6966 (check_exception_resume): Update.
6967 * guile/scm-frame.c (gdbscm_frame_block): Update.
6968 * guile/scm-block.c (gdbscm_lookup_block): Update.
6969 * frame.h (get_frame_block): Update.
6970 (get_selected_block): Make return type const.
6971 * frame.c (frame_id_inner): Update.
6972 * f-valprint.c (info_common_command_for_block)
6973 (info_common_command): Update.
6974 * dwarf2loc.c (dwarf2_find_location_expression)
6975 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6976 (locexpr_describe_location_piece): Update.
6977 * c-exp.y (%union) <bval>: Now const.
6978 * breakpoint.c (resolve_sal_pc): Update.
6979 * blockframe.c (get_frame_block):Make return type const.
6980 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6981 (block_innermost_frame): Update.
6982 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6983 (block_for_pc, block_for_pc_sect): Update.
6984 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6986 (block_for_pc_sect, block_for_pc): Make return type const.
6987 * ax-gdb.c (gen_expr): Update.
6988 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6989 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6990 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6991 (ada_read_var_value): Update.
6992 * ada-exp.y (struct name_info) <block>: Now const.
6994 (block_lookup): Constify.
6996 2014-06-18 Gary Benson <gbenson@redhat.com>
6998 * nat/i386-dregs.h: New file.
6999 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7000 * i386-nat.h (i386-dregs.h): New include.
7001 (DR_FIRSTADDR): Now in i386-dregs.h.
7002 (DR_LASTADDR): Likewise.
7003 (DR_NADDR): Likewise.
7004 (DR_STATUS): Likewise.
7005 (DR_CONTROL): Likewise.
7006 (i386_debug_reg_state): Likewise.
7007 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7009 2014-06-18 Don Breazeal <donb@codesourcery.com>
7011 * breakpoint.c (set_longjmp_breakpoint): Call
7012 momentary_breakpoint_from_master with additional argument.
7013 (set_longjmp_breakpoint_for_call_dummy): Call
7014 momentary_breakpoint_from_master with additional argument.
7015 (set_std_terminate_breakpoint): Call
7016 momentary_breakpoint_from_master with additional argument.
7017 (momentary_breakpoint_from_master): Add argument to function
7018 definition and use it to initialize structure member flag.
7019 (clone_momentary_breakpoint): Call
7020 momentary_breakpoint_from_master with additional argument.
7021 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7022 member flags set in momentary_breakpoint_from_master.
7024 2014-06-18 Gary Benson <gbenson@redhat.com>
7026 * i386-nat.c (i386_show_dr): Renamed to
7027 i386_dr_show and made nonstatic. All uses updated.
7028 (i386_length_and_rw_bits): Renamed to
7029 i386_dr_length_and_rw_bits and made nonstatic.
7031 (i386_insert_aligned_watchpoint): Renamed to
7032 i386_dr_insert_aligned_watchpoint and made nonstatic.
7034 (i386_remove_aligned_watchpoint): Renamed to
7035 i386_dr_remove_aligned_watchpoint and made nonstatic.
7037 (i386_update_inferior_debug_regs): Renamed to
7038 i386_dr_update_inferior_debug_regs and made nonstatic.
7041 2014-06-18 Gary Benson <gbenson@redhat.com>
7043 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7044 (i386_dr_low_can_set_control): Likewise.
7045 (i386_dr_low_set_addr): Likewise.
7046 (i386_dr_low_set_control): Likewise.
7047 (i386_dr_low_get_addr): Likewise.
7048 (i386_dr_low_get_status): Likewise.
7049 (i386_dr_low_get_control): Likewise.
7050 (i386_insert_aligned_watchpoint): Use new macros.
7051 (i386_update_inferior_debug_regs): Likewise.
7052 (i386_stopped_data_address): Likewise.
7054 2014-06-18 Gary Benson <gbenson@redhat.com>
7056 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7057 New parameter. All uses updated.
7059 2014-06-18 Gary Benson <gbenson@redhat.com>
7061 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7064 2014-06-18 Gary Benson <gbenson@redhat.com>
7066 * i386-nat.c (debug_printf): New macro.
7067 (i386_get_debug_register_length): Likewise.
7068 (TARGET_HAS_DR_LEN_8): Use above macro.
7069 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7070 and printf_unfiltered. Use phex to format values.
7072 2014-06-18 Gary Benson <gbenson@redhat.com>
7074 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7077 2014-06-18 Gary Benson <gbenson@redhat.com>
7079 * i386-nat.c: Comment changes.
7081 2014-06-18 Gary Benson <gbenson@redhat.com>
7083 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7085 2014-06-18 Gary Benson <gbenson@redhat.com>
7087 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7088 (i386_insert_aligned_watchpoint): Likewise.
7089 (i386_remove_aligned_watchpoint): Likewise.
7090 (i386_handle_nonaligned_watchpoint): Likewise.
7092 2014-06-18 Gary Benson <gbenson@redhat.com>
7094 * i386-nat.c: Whitespace changes.
7096 2014-06-17 Samuel Bronson <naesten@gmail.com>
7098 * MAINTAINERS: Update Roland McGrath's email address.
7099 Thanks to Sergio Durigan Junior for pointing out that he left
7100 Red Hat a while ago, and giving me a current address.
7102 2014-06-17 Tom Tromey <tromey@redhat.com>
7104 * utils.h (savestring): Remove declaration.
7106 2014-06-17 Tom Tromey <tromey@redhat.com>
7108 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7110 2014-06-16 Keith Seitz <keiths@redhat.com>
7113 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7114 to update the varobj if inferior_ptid is null_ptid.
7116 2014-06-16 Tom Tromey <tromey@redhat.com>
7118 * target.h (struct target_ops) <to_info_proc>: Make parameter
7120 (target_info_proc): Update.
7121 * target.c (target_info_proc): Make "args" const.
7122 * procfs.c (procfs_info_proc): Update.
7123 * linux-tdep.c (linux_info_proc): Update.
7124 (linux_core_info_proc_mappings): Make "args" const.
7125 (linux_core_info_proc): Update.
7126 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7127 * gdbarch.c: Rebuild.
7128 * gdbarch.h: Rebuild.
7129 * corelow.c (core_info_proc): Update.
7131 2014-06-16 Tom Tromey <tromey@redhat.com>
7133 * target.h (struct target_ops) <to_disconnect>: Make parameter
7135 (target_disconnect): Update.
7136 * target.c (target_disconnect): Make "args" const.
7137 * target-delegates.c: Rebuild.
7138 * remote.c (remote_disconnect): Update.
7139 * record.h (record_disconnect): Update.
7140 * record.c (record_disconnect): Update.
7141 * inf-child.c (inf_child_disconnect): Update.
7143 2014-06-16 Tom Tromey <tromey@redhat.com>
7145 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7146 * target.c (debug_to_rcmd, default_rcmd): Update.
7147 * target-delegates.c: Rebuild.
7148 * remote.c (remote_rcmd): Update.
7149 * monitor.c (monitor_rcmd): Update.
7151 2014-06-16 Pedro Alves <palves@redhat.com>
7153 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7154 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7155 have OBJF_SHARED set.
7156 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7157 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7158 instead of OBJF_USERLOADED.
7159 * objfiles.h (OBJF_SHARED): Update comment.
7160 (userloaded_objfile_contains_address_p): Rename to ...
7161 (shared_objfile_contains_address_p): ... this, and update
7163 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7165 (remove_symbol_file_command): Skip objfiles that don't have
7168 2014-06-16 Tom Tromey <tromey@redhat.com>
7170 * minsyms.h (prim_record_minimal_symbol)
7171 (prim_record_minimal_symbol_and_info): Update comments.
7173 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7175 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7176 or --without-guile, according to how GDB was built.
7178 2014-06-13 Tom Tromey <tromey@redhat.com>
7180 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7182 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7184 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7186 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7187 help_list.Pass all_commands, not -1, to help_list.
7188 * cli/cli-dump.c (dump_command, append_command)
7189 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7190 (binary_dump_command, binary_append_command): Pass all_commands,
7191 not -1, to help_list.
7192 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7194 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7196 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7198 * top.c (set_history): Pass all_commands, not -1, to help_list.
7199 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7200 all_commands, not -1, to help_list.
7201 * symfile.c (overlay_command): Pass all_commands, not -1, to
7203 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7205 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7207 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7209 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7210 not -1, to help_list.
7211 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7212 not -1, to help_list.
7213 * maint.c (maintenance_command, maintenance_info_command)
7214 (maintenance_print_command, maintenance_set_cmd): Pass
7215 all_commands, not -1, to help_list.
7216 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7218 * language.c (set_check): Pass all_commands, not -1, to help_list.
7219 * infcmd.c (unset_command): Pass all_commands, not -1, to
7221 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7223 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7225 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7227 * breakpoint.c (save_command): Pass all_commands, not -1, to
7229 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7230 all_commands, not -1, to help_list.
7232 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7234 * regcache.c (struct register_to_invalidate): New structure.
7235 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7237 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7239 2014-06-12 Yao Qi <yao@codesourcery.com>
7241 * varobj.c (varobj_get_num_children): Call
7242 varobj_is_dynamic_p.
7243 (varobj_list_children): Likewise.
7244 (varobj_update): Likewise. Update comments.
7246 2014-06-12 Yao Qi <yao@codesourcery.com>
7248 * varobj.c (varobj_pretty_printed_p): Rename to ...
7249 (varobj_is_dynamic_p): ... this. New function.
7250 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7251 (varobj_is_dynamic_p): Declare.
7252 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7253 (mi_print_value_p, varobj_update_one): Likewise.
7255 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7256 Yao Qi <yao@codesourcery.com>
7258 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7259 (varobj_get_iterator): Wrap up code for pretty-printer by
7260 "#if HAVE_PYTHON" and "#endif".
7261 (update_dynamic_varobj_children): Likewise.
7263 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7264 Yao Qi <yao@codesourcery.com>
7266 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7267 gdb_python_initialized is false. Move some code from varobj.c.
7268 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7269 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7270 (struct varobj_item): Moved to varobj-iter.h".
7271 (varobj_clear_saved_item): New function.
7272 (update_dynamic_varobj_children): Move python-related code to
7274 (free_variable): Call varobj_clear_saved_item and
7277 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7278 Yao Qi <yao@codesourcery.com>
7280 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7281 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7282 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7283 (py-varobj.o): New rule.
7284 * python/py-varobj.c: New file.
7285 * python/python-internal.h (py_varobj_get_iterator): Declare.
7286 * varobj-iter.h: New file.
7287 * varobj.c: Include "varobj-iter.h"
7288 (struct varobj) <child_iter>: Change its type from "PyObject *"
7289 to "struct varobj_iter *".
7290 <saved_item>: Likewise.
7291 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7292 [HAVE_PYTHON] (varobj_get_iterator): New function.
7293 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7294 python-specific code to python/py-varobj.c.
7295 (install_visualizer): Call varobj_iter_delete instead of
7297 * varobj.h (varobj_ensure_python_env): Declare.
7299 2014-06-12 Yao Qi <yao@codesourcery.com>
7301 * varobj.c (struct varobj_item): New structure.
7302 (create_child_with_value): Update declaration.
7303 (varobj_add_child): Replace arguments 'name' and 'value' with
7304 'item'. All callers updated.
7305 (install_dynamic_child): Likewise.
7306 (update_dynamic_varobj_children): Likewise.
7307 (varobj_add_child): Likewise.
7308 (create_child_with_value): Likewise.
7310 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7312 * NEWS: Create a new section for the next release branch.
7313 Rename the section of the current branch, now that it has
7316 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7318 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7319 * version.in: Bump version to 7.8.50.DATE-cvs.
7321 2014-06-11 Pedro Alves <palves@redhat.com>
7324 * ser-mingw.c (net_windows_socket_check_pending): New function.
7325 (net_windows_select_thread): Ignore spurious wakeups. Use
7326 net_windows_socket_check_pending.
7327 (net_windows_wait_handle): Check for pending events with
7328 ioctlsocket, through net_windows_socket_check_pending, instead of
7329 checking the socket's event.
7331 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7333 * python/python-internal.h (gdb_PyObject_GetAttrString)
7334 (gdb_PyObject_HasAttrString): New inline function definitions.
7335 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7336 char * of the second argument to PyObject_GetAttrString.
7338 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7340 * serial.c (serial_write): Fix index of character to be printed
7341 in call to serial_logchar when serial debug traces are enabled.
7343 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7345 * gdbtypes (resolve_dynamic_range): Add function description.
7347 2014-06-09 Pedro Alves <palves@redhat.com>
7349 * linux-nat.c (linux_child_follow_fork): Initialize status with
7350 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7351 inner block. Only pass the signal to PTRACE_DETACH if in pass
7354 2014-06-09 Gary Benson <gbenson@redhat.com>
7356 * common/signals.c (gdb_signal_from_host): Reorder to separate
7357 the always-available ANSI-standard signals from the signals that
7359 (do_gdb_signal_to_host): Likewise.
7360 * proc-events.c (signal_table): Likewise.
7362 2014-06-08 Hui Zhu <hui@codesourcery.com>
7364 * common/linux-ptrace.c (linux_disable_event_reporting): New
7366 * common/linux-ptrace.h (linux_disable_event_reporting): New
7368 * linux-nat.c (linux_child_follow_fork): Do a single step before
7371 2014-06-07 Keith Seitz <keiths@redhat.com>
7375 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7376 from symbol_matches_domain in symtab.c. All local callers
7377 of symbol_matches_domain updated.
7378 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7379 search STRUCT_DOMAIN.
7380 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7381 independently. standard_lookup will do that automatically.
7382 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7383 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7384 (cp_lookup_symbol_in_namespace): Likewise.
7385 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7386 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7387 may return a STRUCT_DOMAIN match.
7388 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7389 * cp-support.c: Include language.h.
7390 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7392 * psymtab.c (match_partial_symbol): Compare the requested
7393 domain with the symbol's domain directly.
7394 (lookup_partial_symbol): Likewise.
7395 * symtab.c (lookup_symbol_in_language): Explain when/why
7396 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7397 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7398 appropriate languages.
7399 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7400 and moved to ada-lang.c
7401 (lookup_block_symbol): Explain that this function only returns
7402 symbol matching the requested DOMAIN.
7403 Compare the requested domain with the symbol's domain directly.
7404 (iterate_over_symbols): Compare the requested domain with the
7405 symbol's domain directly.
7406 * symtab.h (symbol_matches_domain): Remove.
7408 2014-06-06 Doug Evans <xdje42@gmail.com>
7410 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7411 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7412 (gdbscm_guile_version_is_at_least): Declare.
7413 (gdbscm_scm_string_to_int): Declare.
7414 * guile/guile.c (gdbscm_guile_major_version): New global.
7415 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7416 (guile_datadir): New static global.
7417 (gdbscm_guile_data_directory): New function.
7418 (initialize_scheme_side): Update.
7419 (misc_guile_functions): Add guile-data-directory.
7420 (initialize_gdb_module): Fetch guile version number.
7421 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7422 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7423 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7424 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7426 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7427 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7428 * guile/scm-value.c (gdbscm_value_to_string): Only call
7429 scm_port_conversion_strategy if Guile version >= 2.0.6.
7431 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7433 * main.c (print_gdb_help): Add -q and --silent.
7435 2014-06-06 Gary Benson <gbenson@redhat.com>
7437 * common/signals.c: Remove preprocessor conditionals for
7438 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7439 SIGSEGV and SIGTERM.
7440 * proc-events.c: Likewise.
7442 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7444 * symfile.c (symfile_free_objfile): Remove restriction to
7446 * symfile-mem.c (symbol_file_add_from_memory): Call
7447 add_target_sections_of_objfile.
7449 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7451 * guile/scm-value.c (gdbscm_history_append_x): Use
7452 'vlscm_get_value_smob_arg_unsafe' instead of
7453 'vlscm_scm_to_value'.
7455 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7458 * utils.c (printchar): Don't escape at all if quoter is NUL.
7459 Update function documentation to clarify effect of parameter
7461 * remote.c (escape_buffer): Pass '\\' as the quoter to
7462 fputstrn_unfiltered.
7463 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7464 generate the output.
7465 (mi_solib_unloaded): Same.
7467 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7469 * development.sh: Delete.
7470 * Makefile.in (config.status): Adjust dependency on development.sh.
7471 * configure.ac: Adjust development.sh source call.
7472 * configure: Regenerate.
7474 2014-06-04 Doug Evans <xdje42@gmail.com>
7476 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7477 is_scheme_bkpt, spec.
7478 (bpscm_make_breakpoint_smob): Initialize new members.
7479 (gdbscm_create_breakpoint_x): Split into two ...
7480 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7481 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7482 (scheme_function breakpoint_functions): Update.
7483 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7484 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7485 register-breakpoint!.
7487 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7490 * mem-break.c (z_type_supported): Return zero if
7491 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7493 2014-06-04 Tom Tromey <tromey@redhat.com>
7495 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7496 value_from_contents_and_address_unresolved.
7497 (ada_template_to_fixed_record_type_1): Likewise.
7498 (ada_which_variant_applies): Likewise.
7499 * value.h (value_from_contents_and_address_unresolved): Declare.
7500 * value.c (value_from_contents_and_address_unresolved): New
7502 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7503 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7504 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7506 2014-06-04 Tom Tromey <tromey@redhat.com>
7508 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7510 2014-06-04 Tom Tromey <tromey@redhat.com>
7512 * procfs.c (procfs_attach): Make "args" const.
7513 * windows-nat.c (windows_attach): Make "args" const.
7514 * nto-procfs.c (procfs_attach): Make "args" const.
7515 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7516 * go32-nat.c (go32_attach): Make "args" const.
7517 * gnu-nat.c (gnu_attach): Make "args" const.
7518 * darwin-nat.c (darwin_attach): Make "args" const.
7519 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7520 * linux-nat.c (linux_nat_attach): Make "args" const.
7521 * remote.c (extended_remote_attach_1, extended_remote_attach):
7523 * target.h (struct target_ops) <to_attach>: Make "args" const.
7524 (find_default_attach): Likewise.
7525 * utils.c (parse_pid_to_attach): Make "args" const.
7526 * utils.h (parse_pid_to_attach): Update.
7528 2014-06-04 Tom Tromey <tromey@redhat.com>
7530 * target-delegates.c: Rebuild.
7531 * target.c (default_thread_address_space): New function.
7532 (target_thread_address_space): Simplify.
7533 * target.h (struct target_ops) <to_thread_address_space>: Add
7534 TARGET_DEFAULT_FUNC.
7536 2014-06-04 Doug Evans <xdje42@gmail.com>
7538 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7540 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7542 * record-btrace.c: Include event-loop.h and inf-loop.h.
7543 (record_btrace_resume_exec_dir)
7544 (record_btrace_async_inferior_event_handler)
7545 (record_btrace_handle_async_inferior_event): New.
7546 (record_btrace_open): Create async event handler.
7547 (record_btrace_close): Delete async event handler.
7548 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7549 Mark async event handler.
7550 (record_btrace_execution_direction): New.
7551 (init_record_btrace_ops): Initialize to_execution_direction.
7553 2014-06-03 Doug Evans <xdje42@gmail.com>
7555 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7556 (gdbscm_make_parameter): Ditto.
7558 2014-06-03 Doug Evans <dje@google.com>
7560 * exec.c (exec_close_1): Call clear_section_table instead of
7561 resize_section_table.
7562 (clear_section_table): New function.
7563 (resize_section_table): Make static. Rename arg num_added to
7565 * exec.h (clear_section_table): Declare.
7566 (resize_section_table): Delete.
7567 * progspace.c (release_program_space): Call clear_section_table
7568 instead of resize_section_table.
7570 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7572 * NEWS (Python Scripting): Add entry about the new xmethods
7575 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7577 * python/py-xmethods.c: New file.
7578 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7579 (objfpy_dealloc): XDECREF on the new xmethods field.
7580 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7582 (objfpy_get_xmethods): New function.
7583 (objfile_getset): New entry 'xmethods'.
7584 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7585 (pspy_dealloc): XDECREF on the new xmethods field.
7586 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7588 (pspy_get_xmethods): New function.
7589 (pspace_getset): New entry 'xmethods'.
7590 * python/python-internal.h: Add declarations for new functions.
7591 * python/python.c (_initialize_python): Invoke
7592 gdbpy_initialize_xmethods.
7593 * python/lib/gdb/__init__.py (xmethods): New
7595 * python/lib/gdb/xmethod.py: New file.
7596 * python/lib/gdb/command/xmethods.py: New file.
7598 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7600 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7601 best match method returned by find_overload_match is an xmethod.
7602 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7603 the best matching operator returned by find_overload_match is an
7605 * valops.c: #include "extension.h".
7606 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7607 Return void. The list of matching source methods is returned in
7608 "fn_list" and a vector of matching debug method workers is
7609 returned in "xm_worker_vec". Update all callers.
7610 (value_find_oload_method_list): Likewise.
7611 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7612 non-NULL, then the index of the best matching method in this
7613 vector is returned. Update all callers.
7614 (find_overload_match): Include xmethods while performing overload
7617 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7619 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7620 * extension-priv.h (struct extension_language_ops): Add the
7622 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7623 get_matching_xmethod_workers, get_xmethod_argtypes,
7624 invoke_xmethod, free_xmethod_worker,
7625 free_xmethod_worker_vec): New functions.
7626 * extension.h: #include "common/vec.h".
7627 New function declarations.
7628 (struct xmethod_worker): New struct.
7629 (VEC (xmethod_worker_ptr)): New vector type.
7630 (xmethod_worker_ptr): New typedef.
7631 (xmethod_worker_vec): Likewise.
7632 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7634 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7635 (struct builtin_type): New field "xmethod".
7636 * valarith.c (value_ptradd): Assert that the value argument is not
7638 * valops.c (value_must_coerce_to_target): Return 0 for
7639 lval_xcallable values.
7640 * value.c (struct value): New field XM_WORKER in the field
7642 (value_address, value_raw_address): Return 0 for lval_xcallable
7644 (set_value_address): Assert that the value is not an
7646 (value_free): Free the associated xmethod worker when freeing
7647 lval_xcallable values.
7648 (set_value_component_location): Assert that the WHOLE value is not
7650 (value_of_xmethod, call_xmethod): New functions.
7651 * value.h: Declare "struct xmethod_worker".
7652 Declare new functions value_of_xmethod, call_xmethod.
7654 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7655 Pedro Alves <palves@redhat.com>
7657 PR breakpoints/17000
7658 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7659 New function, extracted from software_breakpoint_inserted_here_p.
7660 (software_breakpoint_inserted_here_p): Replace factored out code
7661 by call to find_non_raw_software_breakpoint_inserted_here.
7662 (bp_target_info_copy_insertion_state): New function.
7663 (bkpt_insert_location): Handle the case of a single-step
7664 breakpoint already inserted at the same address.
7665 (bkpt_remove_location): Handle the case of a single-step
7666 breakpoint still inserted at the same address.
7667 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7668 breakpoint already inserted at the same address.
7669 (deprecated_remove_raw_breakpoint): Handle the case of a
7670 non-raw breakpoint still inserted at the same address.
7671 (find_single_step_breakpoint): New function, extracted from
7672 single_step_breakpoint_inserted_here_p.
7673 (find_single_step_breakpoint): New function,
7674 factored out from single_step_breakpoint_inserted_here_p.
7675 (single_step_breakpoint_inserted_here_p): Reimplement.
7677 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7679 Pushed by Joel Brobecker <brobecker@adacore.com>
7680 * source.c (show_substitute_path_command): Fix display of matching
7683 2014-06-03 Gary Benson <gbenson@redhat.com>
7685 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7687 2014-06-02 Doug Evans <xdje42@gmail.com>
7689 Add parameter support for Guile.
7690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7691 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7692 (scm-param.o): New rule.
7693 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7694 (gdbscm_misc_error): Declare.
7695 (gdbscm_canonicalize_command_name): Declare.
7696 (gdbscm_scm_to_host_string): Declare.
7697 (gdbscm_scm_from_host_string): Declare.
7698 (gdbscm_initialize_parameters): Declare.
7699 * guile/guile.c (initialize_gdb_module): Call
7700 gdbscm_initialize_parameters.
7701 * guile/lib/gdb.scm: Export parameter symbols.
7702 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7703 cmdscm_canonicalize_name and made public. All callers updated.
7704 * guile/scm-exception.c (gdbscm_misc_error): New function.
7705 * guile/scm-param.c: New file.
7706 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7707 (gdbscm_scm_to_host_string): New function.
7708 (gdbscm_scm_from_host_string): New function.
7709 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7711 2014-06-02 Doug Evans <xdje42@gmail.com>
7713 Add command support for Guile.
7714 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7715 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7716 (scm-cmd.o): New rule.
7717 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7718 (gdbscm_user_error_p): Declare.
7719 (gdbscm_parse_command_name): Declare.
7720 (gdbscm_valid_command_class_p): Declare.
7721 (gdbscm_initialize_commands): Declare.
7722 * guile/guile.c (initialize_gdb_module): Call
7723 gdbscm_initialize_commands.
7724 * guile/lib/gdb.scm: Export command symbols.
7725 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7726 (throw-user-error): New function.
7727 * guile/scm-cmd.c: New file.
7728 * guile/scm-exception.c (user_error_symbol): New static global.
7729 (gdbscm_user_error_p): New function.
7730 (gdbscm_initialize_exceptions): Set user_error_symbol.
7731 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7733 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7735 * top.c (command_loop): Handle comments here...
7736 (command_line_input): ... not here.
7738 2014-06-02 Doug Evans <xdje42@gmail.com>
7740 Add progspace support for Guile.
7741 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7742 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7743 (scm-progspace.o): New rule.
7744 * guile/guile-internal.h (pspace_smob): New typedef.
7745 (psscm_pspace_smob_pretty_printers): Declare.
7746 (psscm_pspace_smob_from_pspace): Declare.
7747 (psscm_scm_from_pspace): Declare.
7748 * guile/guile.c (initialize_gdb_module): Call
7749 gdbscm_initialize_pspaces.
7750 * guile/lib/gdb.scm: Export progspace symbols.
7751 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7753 (append-pretty-printer!): Ditto.
7754 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7756 * guile/scm-progspace.c: New file.
7758 2014-06-03 Alan Modra <amodra@gmail.com>
7760 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7761 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7763 2014-06-02 Doug Evans <dje@google.com>
7765 Add support for skeletonless type units.
7766 * dwarf2read.c (struct dwarf2_per_objfile): New member
7767 n_allocated_type_units.
7768 (struct dwarf2_per_objfile) <tu_stats>: New member
7769 nr_all_type_units_reallocs.
7770 (create_signatured_type_table_from_index): Initialize
7771 n_allocated_type_units
7772 (create_all_type_units): Ditto.
7773 (add_type_unit): Move up in file. New arg slot.
7774 All callers updated. Increase space for all_type_units more
7776 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7777 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7778 (lookup_dwp_signatured_type): Ditto.
7779 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7780 All callers updated.
7781 (build_type_psymtabs_1): Leave type_unit_groups as
7782 NULL if no TUs present.
7783 (print_tu_stats): New function.
7784 (process_skeletonless_type_unit): New function.
7785 (process_dwo_file_for_skeletonless_type_units): New
7787 (process_skeletonless_type_units): New function.
7788 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7789 Call print tu_stats if debugging enabled.
7791 2014-06-02 Pedro Alves <palves@redhat.com>
7793 * breakpoint.c (build_target_command_list): Don't build a command
7794 list if we have any duplicate location that isn't a dprintf.
7796 2014-06-02 Pedro Alves <palves@redhat.com>
7798 * breakpoint.c (dprintf_breakpoint_hit): New function.
7799 (initialize_breakpoint_ops): Install it as dprintf's
7800 breakpoint_hit method.
7802 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7804 * source.c (substitute_path_rule_matches): Simplify using
7805 filename_ncmp instead of FILENAME_CMP.
7807 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7809 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7811 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7813 * configure.ac: When Guile is available, check for the
7814 availability of 'scm_new_smob'.
7815 * configure, config.h.in: Regenerate.
7816 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7819 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7821 * frame.c (struct frame_info): Add stop_string field.
7822 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7823 (get_prev_frame_always): Old content moved into
7824 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7825 TRY_CATCH, handle MEMORY_ERROR exceptions.
7826 (frame_stop_reason_string): New function definition.
7827 * frame.h (unwind_stop_reason_to_string): Extend comment to
7828 mention frame_stop_reason_string.
7829 (frame_stop_reason_string): New function declaration.
7830 * stack.c (frame_info): Switch to frame_stop_reason_string.
7831 (backtrace_command_1): Switch to frame_stop_reason_string.
7832 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7833 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7834 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7836 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7838 * frame.c (frame_stop_reason_string): Rename to ...
7839 (unwind_stop_reason_to_string): this.
7840 * frame.h (frame_stop_reason_string): Rename to ...
7841 (unwind_stop_reason_to_string): this.
7842 * stack.c (frame_info): Update call to frame_stop_reason_string.
7843 (backtrace_command_1): Likewise.
7844 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7845 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7847 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7849 * frame.c (remove_prev_frame): New function.
7850 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7853 2014-05-29 Pedro Alves <palves@redhat.com>
7855 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7856 and make it const. When a single-step decays to a continue,
7857 clear 'step', not 'hw_step'. Pass whether the caller wanted
7858 to step to user_visible_resume_ptid, not what we ask the
7861 2014-05-29 Pedro Alves <palves@redhat.com>
7863 * infrun.c (process_event_stop_test, handle_step_into_function)
7864 (handle_step_into_function_backward): Adjust.
7865 Don't set the even thread's stop_step and call stop_waiting before
7866 calling end_stepping_range. Instead do that ...
7867 (end_stepping_range): ... here. Take an ecs pointer parameter.
7869 2014-05-29 Pedro Alves <palves@redhat.com>
7871 * infrun.c (stop_stepping): Rename to ...
7872 (stop_waiting): ... this.
7873 (proceed): Update comment.
7874 (process_event_stop_test, handle_inferior_event)
7875 (handle_signal_stop, handle_step_into_function)
7876 (handle_step_into_function_backward): Update.
7878 2014-05-29 Pedro Alves <palves@redhat.com>
7880 * infcall.c (run_inferior_call): Don't check whether the current
7881 thread is running after the proceed call.
7883 2014-05-29 Pedro Alves <palves@redhat.com>
7884 Tom Tromey <tromey@redhat.com>
7886 * NEWS: Mention "maint set target-async", "set mi-async", and that
7887 background execution commands are now always available.
7888 * target.h (target_async_permitted): Update comment.
7889 * target.c (target_async_permitted, target_async_permitted_1):
7891 (set_target_async_command): Rename to ...
7892 (maint_set_target_async_command): ... this.
7893 (show_target_async_command): Rename to ...
7894 (maint_show_target_async_command): ... this.
7895 (_initialize_target): Adjust.
7896 * infcmd.c (prepare_execution_command): Make extern.
7897 * inferior.h (prepare_execution_command): Declare.
7898 * infrun.c (set_observer_mode): Leave target async alone.
7899 * mi/mi-interp.c (mi_interpreter_init): Install
7900 mi_on_sync_execution_done as sync_execution_done observer.
7901 (mi_on_sync_execution_done): New function.
7902 (mi_execute_command_input_handler): Don't print the prompt if we
7903 just started a synchronous command with an async target.
7904 (mi_on_resume): Check sync_execution before printing prompt.
7905 * mi/mi-main.h (mi_async_p): Declare.
7906 * mi/mi-main.c: Include gdbcmd.h.
7907 (mi_async_p): New function.
7908 (mi_async, mi_async_1): New globals.
7909 (set_mi_async_command, show_mi_async_command, mi_async): New
7911 (exec_continue): Call prepare_execution_command.
7912 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7913 (mi_execute_async_cli_command): Use mi_async_p.
7914 (_initialize_mi_main): Install "set mi-async". Make
7915 "target-async" a deprecated alias.
7917 2014-05-29 Pedro Alves <palves@redhat.com>
7919 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7920 (_initialize_cli_interp): Adjust.
7921 * event-loop.c: Include "observer.h".
7922 (start_event_loop): Notify 'command_error' observers instead of
7923 calling display_gdb_prompt. Remove FIXME comment.
7924 * event-top.c (display_gdb_prompt): Remove call into the
7926 * inf-loop.c: Include "observer.h".
7927 (inferior_event_handler): Notify 'command_error' observers instead
7928 of calling display_gdb_prompt.
7929 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7930 observers instead of calling display_gdb_prompt.
7931 * interps.c (interp_set): Don't call display_gdb_prompt.
7932 (current_interp_display_prompt_p): Delete.
7933 * interps.h (interp_prompt_p): Delete declaration.
7934 (interp_prompt_p_ftype): Delete.
7935 (struct interp_procs) <prompt_proc_p>: Delete field.
7936 (current_interp_display_prompt_p): Delete declaration.
7937 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7938 (_initialize_mi_interp): Adjust.
7939 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7940 'command_error' observers.
7941 (tui_on_sync_execution_done, tui_on_command_error): New
7943 (tui_display_prompt_p): Delete.
7944 (_initialize_tui_interp): Adjust.
7946 2014-05-29 Pedro Alves <palves@redhat.com>
7949 * cli/cli-interp.c: Include infrun.h and observer.h.
7950 (cli_uiout, cli_interp): New globals.
7951 (cli_on_signal_received, cli_on_end_stepping_range)
7952 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7954 (cli_interpreter_init): Install them as 'end_stepping_range',
7955 'signal_received' 'signal_exited', 'exited' and 'no_history'
7957 (_initialize_cli_interp): Remove cli_interp local.
7958 * infrun.c (handle_inferior_event): Call the several stop reason
7959 observers instead of printing the stop reason directly.
7960 (end_stepping_range): New function.
7961 (print_end_stepping_range_reason, print_signal_exited_reason)
7962 (print_exited_reason, print_signal_received_reason)
7963 (print_no_history_reason): Make static, and add an uiout
7964 parameter. Print to that instead of to CURRENT_UIOUT.
7965 * infrun.h (print_end_stepping_range_reason)
7966 (print_signal_exited_reason, print_exited_reason)
7967 (print_signal_received_reason print_no_history_reason): New
7969 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7971 <cli_uiout>: New field.
7972 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7973 uiout for CLI output. Install 'signal_received',
7974 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7976 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7977 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7978 (mi_on_no_history): New functions.
7979 (ui_out_free_cleanup): Delete function.
7980 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7981 instead use the one already stored in the MI interpreter data.
7982 (mi_ui_out): Adjust.
7983 * tui/tui-interp.c: Include infrun.h and observer.h.
7984 (tui_interp): New global.
7985 (tui_on_signal_received, tui_on_end_stepping_range)
7986 (tui_on_signal_exited, tui_on_exited)
7987 (tui_on_no_history): New functions.
7988 (tui_init): Install them as 'end_stepping_range',
7989 'signal_received' 'signal_exited', 'exited' and 'no_history'
7991 (_initialize_tui_interp): Delete tui_interp local.
7993 2014-05-29 Pedro Alves <palves@redhat.com>
7996 * linux-nat.c (linux_nat_resume_callback): Rename the second
7997 parameter to 'except'. Skip LP if it points to EXCEPT.
7998 (linux_nat_resume): Don't mark the event lwp as not stopped
7999 before resuming sibling lwps. Instead ask
8000 linux_nat_resume_callback to skip the event lwp. Mark it as not
8001 stopped after actually resuming it.
8002 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8004 (wait_lwp): Mark the lwp as stopped here.
8005 (stop_wait_callback): Mark the lwp as not stopped right after
8006 resuming it. Don't mark lwps as stopped here.
8007 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8008 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8010 2014-05-29 Pedro Alves <palves@redhat.com>
8013 * infrun.c (resume): Determine how much to resume depending on
8014 whether the caller wanted a step, not whether we can hardware step
8015 the target. Mark all threads that we intend to run as running,
8016 unless we're calling an inferior function.
8017 (normal_stop): If the thread is running an infcall, don't finish
8019 * target.c (target_resume): Don't mark threads as running here.
8021 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8023 * serial.c (_initialize_serial): Remove support for
8024 the "set remotebaud" and "show remotebaud" commands.
8025 * NEWS: Add entry documenting the removal of that command.
8027 2014-05-28 Yao Qi <yao@codesourcery.com>
8029 * charset.c: Fix typo in comments.
8031 2014-05-27 Gary Benson <gbenson@redhat.com>
8033 * utils.c (internal_vproblem): Prompt for a bug report.
8035 2014-05-26 Andy Wingo <wingo@igalia.com>
8037 * guile/scm-arch.c (arscm_mark_arch_smob):
8038 * guile/scm-block.c (bkscm_mark_block_smob)
8039 (bkscm_mark_block_syms_progress_smob):
8040 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8041 * guile/scm-exception.c (exscm_mark_exception_smob):
8042 * guile/scm-frame.c (frscm_mark_frame_smob):
8043 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8044 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8045 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8046 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8047 (ppscm_mark_pretty_printer_worker_smob):
8048 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8049 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8050 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8051 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8053 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8056 2014-05-26 Andy Wingo <wingo@igalia.com>
8057 Doug Evans <xdje42@gmail.com>
8059 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8060 empty_base_class. All uses updated.
8061 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8062 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8064 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8065 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8066 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8067 (gdbscm_gsmob_has_property_p, add_property_name)
8068 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8069 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8070 (gdb-object-has-property?, gdb-object-properties): Remove.
8071 (gdb-object-kind): Renamed from gsmob-kind.
8073 2014-05-26 Andy Wingo <wingo@igalia.com>
8075 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8076 * configure: Regenerate.
8078 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8080 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8082 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8084 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8085 (replay_memory_access_read_only, replay_memory_access_read_write)
8086 (replay_memory_access_types, replay_memory_access)
8087 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8088 (cmd_set_record_btrace, cmd_show_record_btrace)
8089 (cmd_show_replay_memory_access): New.
8090 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8091 (record_btrace_remove_breakpoint): Replace
8092 record_btrace_allow_memory_access with replay_memory_access.
8093 (_initialize_record_btrace): Add commands.
8094 * NEWS: Announce it.
8096 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8098 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8100 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8102 * MAINTAINERS (Write After Approval): Move self back from
8105 2014-05-22 Pedro Alves <palves@redhat.com>
8107 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8108 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8109 (disable_randomization, enum exec_direction_kind)
8110 (execution_direction, stop_registers, start_remote)
8111 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8112 (wait_for_inferior, normal_stop, get_last_target_status)
8113 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8114 (insert_step_resume_breakpoint_at_sal)
8115 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8116 (set_step_info, print_stop_event, signal_stop_state)
8117 (signal_print_state, signal_pass_state, signal_stop_update)
8118 (signal_print_update, signal_pass_update)
8119 (update_signals_program_target, clear_exit_convenience_vars)
8120 (displaced_step_dump_bytes, update_observer_mode)
8121 (signal_catch_update, gdb_signal_from_command): Move
8123 * infrun.h: ... to this new file.
8124 * amd64-tdep.c: Include infrun.h.
8125 * annotate.c: Include infrun.h.
8126 * arch-utils.c: Include infrun.h.
8127 * arm-linux-tdep.c: Include infrun.h.
8128 * arm-tdep.c: Include infrun.h.
8129 * break-catch-sig.c: Include infrun.h.
8130 * breakpoint.c: Include infrun.h.
8131 * common/agent.c: Include infrun.h instead of inferior.h.
8132 * corelow.c: Include infrun.h.
8133 * event-top.c: Include infrun.h.
8134 * go32-nat.c: Include infrun.h.
8135 * i386-tdep.c: Include infrun.h.
8136 * inf-loop.c: Include infrun.h.
8137 * infcall.c: Include infrun.h.
8138 * infcmd.c: Include infrun.h.
8139 * infrun.c: Include infrun.h.
8140 * linux-fork.c: Include infrun.h.
8141 * linux-nat.c: Include infrun.h.
8142 * linux-thread-db.c: Include infrun.h.
8143 * monitor.c: Include infrun.h.
8144 * nto-tdep.c: Include infrun.h.
8145 * procfs.c: Include infrun.h.
8146 * record-btrace.c: Include infrun.h.
8147 * record-full.c: Include infrun.h.
8148 * remote-m32r-sdi.c: Include infrun.h.
8149 * remote-mips.c: Include infrun.h.
8150 * remote-notif.c: Include infrun.h.
8151 * remote-sim.c: Include infrun.h.
8152 * remote.c: Include infrun.h.
8153 * reverse.c: Include infrun.h.
8154 * rs6000-tdep.c: Include infrun.h.
8155 * s390-linux-tdep.c: Include infrun.h.
8156 * solib-irix.c: Include infrun.h.
8157 * solib-osf.c: Include infrun.h.
8158 * solib-svr4.c: Include infrun.h.
8159 * target.c: Include infrun.h.
8160 * top.c: Include infrun.h.
8161 * windows-nat.c: Include infrun.h.
8162 * mi/mi-interp.c: Include infrun.h.
8163 * mi/mi-main.c: Include infrun.h.
8164 * python/py-threadevent.c: Include infrun.h.
8166 2014-05-22 Pedro Alves <palves@redhat.com>
8168 * infrun.c (handle_inferior_event): Store the exit code for
8169 --return-child-result here, instead of ...
8170 (print_exited_reason): ... here.
8172 2014-05-21 Pedro Alves <palves@redhat.com>
8175 * gdbthread.h (struct thread_control_state): New field
8177 * infrun.c (follow_fork): Copy the new thread control field to the
8179 (clear_proceed_status_thread): Clear the new thread control field.
8180 (proceed): Set the new thread control field.
8181 * interps.h (command_interp): Declare.
8182 * interps.c (command_interpreter): New global.
8183 (command_interp): New function.
8184 (interp_exec): Set `command_interpreter' while here.
8185 * cli-out.c (cli_uiout_dtor): New function.
8186 (cli_ui_out_impl): Install it.
8187 * mi/mi-interp.c: Include cli-out.h.
8188 (mi_cmd_interpreter_exec): Add comment.
8189 (restore_current_uiout_cleanup): New function.
8190 (ui_out_free_cleanup): New function.
8191 (mi_on_normal_stop): If finishing an execution command started by
8192 a CLI command, or any kind of breakpoint-like event triggered,
8193 print the stop event to the output (CLI) stream.
8194 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8196 2014-05-21 Pedro Alves <palves@redhat.com>
8198 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8199 current source line having changed.
8200 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8201 * infrun.c (normal_stop): Adjust call to
8202 set_current_sal_from_frame.
8203 * source.c (clear_lines_listed_range): New function.
8204 (set_current_source_symtab_and_line, identify_source_line): Clear
8205 the lines listed range.
8206 (line_info): Handle the first "info line" after the current source
8207 line having changed.
8208 * stack.c (print_stack_frame): Remove center handling.
8209 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8212 2014-05-21 Pedro Alves <palves@redhat.com>
8214 * inf-child.c (inf_child_mourn_inferior): New function.
8215 * inf-child.h (inf_child_mourn_inferior): New declaration.
8216 * darwin-nat.c (darwin_mourn_inferior): Use
8217 inf_child_mourn_inferior.
8218 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8219 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8220 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8221 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8222 * windows-nat.c (windows_mourn_inferior): Likewise.
8224 2014-05-21 Doug Evans <xdje42@gmail.com>
8226 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8228 2014-05-21 Doug Evans <xdje42@gmail.com>
8230 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8231 (gdbscm_out_of_range_error): Ditto.
8232 (gdbscm_memory_error): Ditto.
8233 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8234 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8235 (gdbscm_out_of_range_error): Update.
8236 (gdbscm_memory_error): Update.
8237 (gdbscm_scm_to_target_string_unsafe): Delete.
8239 2014-05-21 Pedro Alves <palves@redhat.com>
8241 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8243 (inf_child_open_target): New function.
8244 (inf_child_open): Use inf_child_open_target to push the target
8245 instead of erroring out.
8246 (inf_child_disconnect, inf_child_close)
8247 (inf_child_maybe_unpush_target): New functions.
8248 (inf_child_target): Install inf_child_disconnect and
8249 inf_child_close. Store a pointer to the returned object.
8250 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8252 * target.c (auto_connect_native_target): New global.
8253 (show_default_run_target): New function.
8254 (find_default_run_target): Return NULL if automatically connecting
8255 to the native target is disabled.
8256 (_initialize_target): Install set/show auto-connect-native-target.
8257 * NEWS: Mention "set auto-connect-native-target", and "target
8259 * linux-nat.c (super_close): New global.
8260 (linux_nat_close): Call super_close.
8261 (linux_nat_add_target): Store a pointer to the base class's
8263 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8264 inf_child_maybe_unpush.
8265 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8267 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8268 the inferior. Use inf_child_maybe_unpush_target.
8269 (inf_ttrace_attach): Don't push the target if it is already
8271 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8272 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8273 after mourning the inferior. Use inf_child_maybe_unpush_target.
8274 (darwin_attach_pid): Don't push the target if it is already
8276 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8277 mourning the inferior. Use inf_child_maybe_unpush_target.
8278 (gnu_detach): Use inf_child_maybe_unpush_target.
8279 * go32-nat.c (go32_create_inferior): Don't push the target if it
8281 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8282 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8283 (procfs_open): Rename to ...
8284 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8285 comments. Can target_preopen before changing node. Call
8286 inf_child_open_target to push the target explicitly.
8287 (procfs_attach): Don't push the target if it is already pushed.
8288 (procfs_detach): Use inf_child_maybe_unpush_target.
8289 (procfs_create_inferior): Don't push the target if it is already
8291 (nto_native_ops): New global.
8292 (procfs_open): Reimplement.
8293 (procfs_native_open): New function.
8294 (init_procfs_targets): Install procfs_native_open as to_open of
8295 "target native". Store a pointer to the "native" target in
8297 * procfs.c (procfs_attach): Don't push the target if it is already
8299 (procfs_detach): Use inf_child_maybe_unpush_target.
8300 (procfs_mourn_inferior): Only unpush the target after mourning the
8301 inferior. Use inf_child_maybe_unpush_target.
8302 (procfs_init_inferior): Don't push the target if it is already
8304 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8305 if it is already pushed.
8307 2014-05-21 Pedro Alves <palves@redhat.com>
8309 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8310 and "procfs" targets are now called "native" instead.
8312 2014-05-21 Pedro Alves <palves@redhat.com>
8314 * go32-nat.c (go32_open): Delete.
8315 (go32_target): Don't override the to_open method.
8317 2014-05-21 Pedro Alves <palves@redhat.com>
8319 * nto-procfs.c (procfs_can_run): New function.
8320 (nto_procfs_ops): New global.
8321 (init_procfs_targets): New, based on procfs_target. Install
8322 "target native" in addition to "target procfs".
8323 (_initialize_procfs): Call init_procfs_targets instead of adding
8326 2014-05-21 Pedro Alves <palves@redhat.com>
8328 * windows-nat.c (windows_target): Don't override to_shortname,
8329 to_longname or to_doc.
8331 2014-05-21 Pedro Alves <palves@redhat.com>
8333 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8336 2014-05-21 Pedro Alves <palves@redhat.com>
8338 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8339 to_shortname, to_longname or to_doc.
8341 2014-05-21 Pedro Alves <palves@redhat.com>
8343 * go32-nat.c (go32_target): Don't override to_shortname,
8344 to_longname or to_doc.
8346 2014-05-21 Pedro Alves <palves@redhat.com>
8348 * inf-child.c (inf_child_open): Remove mention of "child".
8349 (inf_child_target): Rename target to "native" instead of "child".
8351 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8353 * Makefile.in (SFILES): Delete "regset.c".
8354 (COMMON_OBS): Delete "regset.o".
8356 * regset.h (regset_alloc): Delete prototype.
8358 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8360 * sparc-linux-tdep.c (sparc32_linux_gregset)
8361 (sparc32_linux_fpregset): New static regset structures.
8362 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8363 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8365 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8366 (sparc64_linux_fpregset): New static regset structures.
8367 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8368 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8369 New static regset structures.
8370 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8371 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8372 New static regset structures.
8373 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8374 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8375 New static regset structures.
8376 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8377 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8378 New static regset structures.
8379 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8381 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8383 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8384 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8385 register maps ("regmaps") from "*regset" to "*regmap". Do this
8386 for all regmap types and variables.
8387 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8388 (sparc32_linux_supply_core_gregset)
8389 (sparc32_linux_collect_core_gregset)
8390 (sparc32_linux_supply_core_fpregset)
8391 (sparc32_linux_collect_core_fpregset): Likewise.
8392 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8393 (sparc_gregmap, sparc_fpregmap): ... these.
8394 (sparc_supply_gregset, sparc_collect_gregset)
8395 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8396 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8397 (_initialize_sparc_nat): Rename regmaps.
8398 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8399 (sparc_gregmap, sparc_fpregmap): ... these.
8400 (sparc_supply_gregset, sparc_collect_gregset)
8401 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8402 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8404 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8405 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8407 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8409 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8410 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8411 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8413 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8414 (sparc32_bsd_fpregset): Rename to...
8415 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8416 (sparc32_bsd_fpregmap): ... these.
8417 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8418 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8419 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8420 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8421 (struct sparc_gregmap, struct sparc_fpregmap)
8422 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8423 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8424 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8425 (sparc32_supply_regset, sparc32_collect_gregset)
8426 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8428 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8429 (sparc64_linux_ptrace_gregmap): ... this.
8430 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8431 (_initialize_sparc64_linux_nat): Rename regmaps.
8432 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8433 (sparc64_linux_core_gregmap): ... this.
8434 (sparc64_linux_supply_core_gregset)
8435 (sparc64_linux_collect_core_gregset)
8436 (sparc64_linux_supply_core_fpregset)
8437 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8438 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8439 (sparc64_sol2_fpregset): Rename to...
8440 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8441 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8442 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8444 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8445 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8446 (sparc64_bsd_fpregset): Rename to...
8447 (struct sparc_gregmap, sparc64_sol2_gregmap)
8448 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8449 (sparc64_bsd_fpregmap): ... these.
8450 (sparc64_supply_gregset, sparc64_collect_gregset)
8451 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8453 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8454 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8455 (sparc64fbsd_gregmap): ... this.
8456 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8457 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8459 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8460 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8461 (sparc64nbsd_collect_fpregset): Likewise.
8462 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8463 (sparc64nbsd_gregmap): ... this.
8464 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8466 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8467 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8468 (sparc64obsd_gregmap): ... this.
8469 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8471 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8472 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8473 (sparc32nbsd_gregmap): ... this.
8474 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8477 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8479 * score-tdep.c (score7_linux_gregset): New static regset
8481 (score7_linux_regset_from_core_section): Remove dynamic regset
8483 (score_gdbarch_init): Drop allocation of tdep structure.
8484 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8486 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8488 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8490 (am33_regset_from_core_section): Remove dynamic regset
8493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8495 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8496 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8498 (mips_linux_regset_from_core_section): Remove dynamic regset
8500 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8501 'gregset64', 'fpregset', and 'fpregset64'.
8502 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8503 deleted tdep fields.
8505 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8507 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8509 (amd64_regset_from_core_section): Remove dynamic regset
8511 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8513 (amd64obsd_regset_from_core_section): Remove dynamic regset
8515 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8517 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8518 x86-common regset supply function.
8519 * i386-tdep.c (i386_collect_gregset): Make static.
8520 (i386_gregset): New global regset structure.
8521 (i386_fpregset, i386_xstateregset): New static regset structures.
8522 (i386_regset_from_core_section): Remove dynamic regset
8524 (i386_gdbarch_init): Remove initialization of tdep fields
8525 'gregset', 'fpregset', and 'xstateregset'.
8526 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8527 'fpregset', and 'xstateregset'.
8528 (i386_collect_gregset): Remove prototype.
8529 (i386_gregset): New declaration.
8530 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8532 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8535 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8537 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8538 (arm_linux_vfpregset): New static regset structures.
8539 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8541 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8542 and 'vfpregset' fields.
8544 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8546 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8547 (aarch64_linux_fpregset): New static regset structures.
8548 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8549 of regset structures.
8550 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8553 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8555 * regset.h (struct regset): Remove gdbarch field.
8556 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8557 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8558 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8560 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8561 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8562 (ppc32_linux_vsxregset): Likewise.
8563 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8564 via the regcache instead of the regset.
8565 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8566 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8567 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8568 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8571 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8573 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8574 Constify structures.
8575 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8576 (alphanbsd_aout_gregset): Likewise.
8577 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8578 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8580 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8581 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8583 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8584 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8585 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8586 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8587 * m88k-tdep.c (m88k_gregset): Likewise.
8588 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8589 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8590 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8591 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8592 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8593 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8594 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8595 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8596 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8598 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8599 * sh-tdep.h (sh_corefile_gregset): Likewise.
8600 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8601 * vax-tdep.c (vax_gregset): Likewise.
8603 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8605 Fix TLS access for -static -pthread.
8606 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8607 (try_thread_db_load_1): Initialize it.
8608 (thread_db_get_thread_local_address): Call it if LM is zero.
8609 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8610 * target.h (struct target_ops) (to_get_thread_local_address): Add
8611 load_module_addr comment.
8613 2014-05-21 Pedro Alves <palves@redhat.com>
8615 * dcache.c (dcache_read_memory_partial): If reading the cache line
8616 fails, fallback to reading just the memory the caller wanted.
8618 2014-05-20 Doug Evans <dje@google.com>
8620 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8621 instead of get_current_arch.
8623 2014-05-20 Pedro Alves <palves@redhat.com>
8625 * NEWS: Mention that compare-sections now works with all targets.
8627 * remote.c (PACKET_qCRC): New enum value.
8628 (remote_verify_memory): Don't send qCRC if the target has no
8629 execution. Use packet_support/packet_ok. If the target doesn't
8630 support the qCRC packet, fallback to a deep memory copy.
8631 (compare_sections_command): Say "target image" instead of "remote
8633 (_initialize_remote): Add PACKET_qCRC to the list of config
8634 packets that have no associated command. Extend comment.
8635 * target.c (simple_verify_memory, default_verify_memory): New
8637 * target.h (struct target_ops) <to_verify_memory>: Default to
8638 default_verify_memory.
8639 (simple_verify_memory): New declaration.
8640 * target-delegates.c: Regenerate.
8642 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8644 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8646 2014-05-20 Hui Zhu <hui@codesourcery.com>
8647 Yao Qi <yao@codesourcery.com>
8650 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8651 and change address of sp and pc.
8653 2014-05-19 Tom Tromey <tromey@redhat.com>
8655 * gdbtypes.c (rank_function): Use XNEWVEC.
8656 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8658 2014-05-19 Doug Evans <dje@google.com>
8660 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8661 build_type_unit_groups and moved closer to only caller. Remove
8662 arguments. All references updated. Remove outdated .gdb_index
8664 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8665 build_type_psymtabs_1.
8667 2014-05-19 Doug Evans <dje@google.com>
8669 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8670 n_type_unit_groups, all_type_unit_groups. All uses removed.
8671 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8672 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8673 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8674 (add_type_unit_group_to_table): Delete.
8676 2014-05-19 Doug Evans <dje@google.com>
8678 * eval.c (evaluate_subexp_standard): Add some comments.
8680 2014-05-17 Doug Evans <xdje42@gmail.com>
8682 * progspace.c (remove_program_space): Delete, unused.
8683 * progspace.h (remove_program_space): Ditto.
8685 2014-05-17 Doug Evans <xdje42@gmail.com>
8687 * inferior.c (prune_inferiors): Fix comment.
8688 (remove_inferior_command): Call prune_program_spaces.
8690 2014-05-16 Doug Evans <dje@google.com>
8692 New command line option -D.
8694 * main.c (set_gdb_data_directory): New function.
8695 (captured_main): Recognize -D. Flag error for --data-directory "".
8696 Call set_gdb_data_directory.
8697 (print_gdb_help): Print --data-directory, -D.
8698 * main.h (set_gdb_data_directory): Declare.
8699 * top.c (staged_gdb_datadir): New static global.
8700 (set_gdb_datadir): Call set_gdb_data_directory
8701 (show_gdb_datadir): New function.
8702 (init_main): Update init of data-directory parameter.
8704 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8706 Import the "dirfd" gnulib module.
8707 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8708 * gnulib/aclocal.m4: Update.
8709 * gnulib/config.in: Update.
8710 * gnulib/configure: Update.
8711 * gnulib/import/Makefile.am: Update.
8712 * gnulib/import/Makefile.in: Update.
8713 * gnulib/import/dirfd.c: New.
8714 * gnulib/import/m4/dirfd.m4: New.
8715 * gnulib/import/m4/gnulib-cache.m4: Update.
8716 * gnulib/import/m4/gnulib-comp.m4: Update.
8718 2014-05-16 Pierre Muller <muller@sourceware.org>
8719 Yao Qi <yao@codesourcery.com>
8721 * valprint.c (print_wchar): Move the code on checking whether
8722 W is a printable wide char to the default branch of switch
8723 statement below. Call wchar_printable instead of gdb_iswprint.
8725 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8727 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8728 ldr.w and ldrd instructions.
8730 2014-05-15 Doug Evans <dje@google.com>
8732 * dwarf2read.c (read_structure_type): Delete outdated comments.
8734 2014-05-14 Tom Tromey <tromey@redhat.com>
8736 * macrocmd.c (print_macro_definition): Reindent.
8738 2014-05-13 Doug Evans <xdje42@gmail.com>
8740 * python/py-cmd.c (cmdpy_completer): Add comment.
8741 (completers): Make const.
8743 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8745 * infrun.c (resume): Remove should_resume (unused). Move up
8746 declaration of resume_ptid.
8748 2014-05-13 Tom Tromey <tromey@redhat.com>
8750 * language.h (unop_type_check): Remove.
8751 (binop_type_check): Don't declare.
8753 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8755 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8756 call to regcache_raw_collect.
8758 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8760 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8761 mi_console->quote as the quoting character.
8763 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8765 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8767 2014-04-29 Tom Tromey <tromey@redhat.com>
8769 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8770 "show debug varobj".
8772 2014-05-07 Kyle McMartin <kyle@redhat.com>
8774 Pushed by Joel Brobecker <brobecker@adacore.com>.
8775 * aarch64-tdep.c (aarch64_software_single_step): New function.
8776 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8777 with aarch64_software_single_step.
8779 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8783 2014-05-05 Keith Seitz <keiths@redhat.com>
8785 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8786 variable or history value is successfully parsed.
8788 2014-05-05 Yao Qi <yao@codesourcery.com>
8789 Pedro Alves <palves@redhat.com>
8791 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8792 address of blocks that intersects the requested range. Trim
8793 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8795 * ctf.c (ctf_xfer_partial): Likewise.
8797 2014-05-05 Yao Qi <yao@codesourcery.com>
8799 * printcmd.c (display_command): Remove the check to
8800 target_has_execution.
8802 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8804 * ppcobsd-nat.c: Include "obsd-nat.h".
8805 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8807 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8809 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8811 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8812 and 16-bit signed and unsigned arguments. Update comment.
8813 (stap_parse_probe_arguments): Extend code to handle such
8814 arguments. Use warning instead of complaint to notify about
8815 unrecognized bitness.
8817 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8819 PR breakpoints/16889
8820 * stap-probe.c (stap_parse_probe_arguments): Simplify
8821 check for non-prefixed probes (i.e., probes whose
8822 arguments do not start with "N@"). Always set the
8823 argument type to a sane value.
8825 2014-05-01 David Taylor <dtaylor@emc.com>
8827 * remote.c (compare_sections_command): Add -r option to compare
8828 all loadable read-only sections.
8830 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8832 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8833 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8835 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8836 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8837 Remove unused CORE_ADDR argument. Update all callers.
8839 2014-04-29 Pedro Alves <palves@redhat.com>
8841 * remote.c (struct packet_config) <detect>: Extend comment.
8842 (add_packet_config_cmd): Don't set the config's detect or support
8844 (init_all_packet_configs): Also initialize the config's 'detect'
8846 (reset_all_packet_configs_support): New function.
8847 (remote_open_1): Call reset_all_packet_configs_support instead of
8848 init_all_packet_configs.
8849 (_initialize_remote): Initialize all packet configs. Assert that
8850 all packets have an associated command, except a few known
8853 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8855 * dwarf2read.c (read_subrange_type): Handle dynamic
8856 DW_AT_lower_bound attributes.
8858 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8860 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8861 dynamic bounds before computing its upper bound.
8862 (ada_discrete_type_low_bound): Same as above with the lower bound.
8864 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8866 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8867 range types. Adjust the array handling implementation to
8868 take advantage of this change.
8869 (resolve_dynamic_range): New function, mostly extracted from
8870 resolve_dynamic_bounds.
8871 (resolve_dynamic_array): New function, mostly extracted from
8872 resolve_dynamic_bounds.
8873 (resolve_dynamic_bounds): Delete.
8874 (resolve_dynamic_type): Reimplement. Add handling of
8875 TYPE_CODE_RANGE types.
8877 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8879 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8880 handling of parallel ___XA types.
8882 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8884 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8885 unnecessary second call to static_unwrap_type.
8887 2014-04-27 Hui Zhu <hui@codesourcery.com>
8889 * stack.c (print_frame_info): Call do_gdb_disassembly with
8890 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8892 2014-04-26 Doug Evans <xdje42@gmail.com>
8894 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8896 2014-04-25 Pedro Alves <palves@redhat.com>
8899 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8900 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8901 and newline from built string.
8902 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8903 (linux_ptrace_attach_fail_reason): ... this.
8904 * linux-nat.c (linux_nat_attach): Adjust to use
8905 linux_ptrace_attach_fail_reason.
8907 2014-04-25 Pedro Alves <palves@redhat.com>
8909 * remote.c (struct remote_state): Remove multi_process_aware,
8910 non_stop_aware, cond_tracepoints, cond_breakpoints,
8911 breakpoint_commands, fast_tracepoints, static_tracepoints,
8912 install_in_trace, disconnected_tracing,
8913 enable_disable_tracepoints, string_tracing, and
8914 augmented_libraries_svr4_read fields.
8915 (remote_multi_process_p): Move further below in the file.
8916 (struct packet_config): Add comments.
8917 (update_packet_config): Delete function.
8918 (show_packet_config_cmd): Use packet_config_support.
8919 (add_packet_config_cmd): Use NULL as set callback.
8920 (packet_ok): "set remote foo-packet"-style commands no longer
8921 change config->supported -- adjust.
8922 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8923 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8924 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8925 (PACKET_QNonStop, PACKET_multiprocess_feature)
8926 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8927 (PACKET_DisconnectedTracing_feature)
8928 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8929 (set_remote_protocol_packet_cmd): Delete function.
8930 (packet_config_support, packet_support): New functions.
8931 (set_remote_protocol_Z_packet_cmd): Don't call
8932 update_packet_config.
8933 (remote_query_attached, remote_pass_signals)
8934 (remote_program_signals, remote_threads_info)
8935 (remote_threads_extra_info, remote_start_remote): Use
8937 (remote_start_remote): Use packet_config_support and
8939 (init_all_packet_configs): Set all packets to unknown support,
8940 instead of calling update_packet_config.
8941 (remote_check_symbols): Use packet_support.
8942 (remote_supported_packet): Unconditionally set the packet config's
8944 (remote_multi_process_feature, remote_non_stop_feature)
8945 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8946 (remote_breakpoint_commands_feature)
8947 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8948 (remote_install_in_trace_feature)
8949 (remote_disconnected_tracing_feature)
8950 (remote_enable_disable_tracepoint_feature)
8951 (remote_string_tracing_feature)
8952 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8953 (remote_protocol_features): Adjust to use remote_supported_packet
8954 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8955 "ConditionalTracepoints", "ConditionalBreakpoints",
8956 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8957 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8958 "EnableDisableTracepoints", and "tracenz".
8959 (remote_query_supported): Use packet_support.
8960 (remote_open_1): Adjust.
8961 (extended_remote_attach_1): Use packet_support. Switch on the
8962 result of packet_ok instead of checking whether the packet ended
8964 (remote_vcont_resume): Use packet_support.
8965 (remote_resume, remote_stop_ns, fetch_register_using_p)
8966 (remote_prepare_to_store, store_register_using_P)
8967 (check_binary_download, remote_write_bytes): Use packet_support.
8968 (remote_vkill): Use packet_support. Switch on the result of
8969 packet_ok instead of checking whether the packet ended up
8971 (extended_remote_supports_disable_randomization): Use
8973 (extended_remote_run): Switch on the result of packet_ok instead
8974 of checking whether the packet ended up disabled.
8975 (remote_insert_breakpoint, remote_remove_breakpoint)
8976 (remote_insert_watchpoint, remote_remove_watchpoint)
8977 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8979 (remote_search_memory): Use packet_config_support.
8980 (remote_get_thread_local_address, remote_get_tib_address)
8981 (remote_hostio_send_command, remote_can_execute_reverse): Use
8983 (remote_supports_cond_tracepoints)
8984 (remote_supports_cond_breakpoints)
8985 (remote_supports_fast_tracepoints)
8986 (remote_supports_static_tracepoints)
8987 (remote_supports_install_in_trace)
8988 (remote_supports_enable_disable_tracepoint)
8989 (remote_supports_string_tracing)
8990 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8991 the packet config says the feature is enabled or disabled.
8992 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8993 (remote_get_trace_status): Use packet_support.
8994 (remote_set_disconnected_tracing): Adjust to check whether the
8995 feature is enabled with packet_support.
8996 (remote_set_trace_buffer_size, remote_use_agent)
8997 (remote_can_use_agent, remote_supports_btrace): Use
8999 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9000 Use packet_config_support.
9001 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9002 the packet config says the feature is enabled or disabled.
9003 (set_range_stepping): Use packet_support.
9005 2014-04-25 Tom Tromey <tromey@redhat.com>
9007 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9010 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9012 * NEWS: Mention support for C99 variable length arrays.
9014 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9016 * ada-lang.c (standard_exc): Expand introductory comment.
9018 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9019 Walfred Tedeschi <walfred.tedeschi@intel.com>
9021 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9023 (amd64_linux_read_description): Add code to handle AVX512 xstate
9024 mask and return respective tdesc.
9025 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9026 and features/i386/x32-avx512-linux.c.
9027 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9028 (amd64_linux_core_read_description): Add code to handle AVX512
9029 xstate mask and return respective tdesc.
9030 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9031 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9033 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9034 (tdesc_amd64_avx512_linux): New prototype.
9035 (tdesc_x32_avx512_linux): Likewise.
9036 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9037 features/i386/x32-avx512.c.
9038 (amd64_ymm_avx512_names): New register names for pseudo
9040 (amd64_ymmh_avx512_names): New register names for raw registers
9042 (amd64_k_names): New register names for K registers.
9043 (amd64_zmmh_names): New register names for ZMM raw registers.
9044 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9045 (amd64_xmm_avx512_names): New register names for XMM16-31
9047 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9049 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9050 if feature is present.
9051 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9052 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9053 (AMD64_NUM_REGS): Adjust to new number of registers.
9054 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9055 registers supplied via XSTATE by AVX512 registers.
9056 (i386_linux_read_description): Add case for AVX512.
9057 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9058 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9059 (i386_linux_core_read_description): Add case for AVX512.
9060 (i386_linux_init_abi): Install supported register note section
9062 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9064 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9065 registers to be number of zmm7h + 1.
9066 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9067 * i386-tdep.c: Include features/i386/i386-avx512.c.
9068 (i386_zmm_names): Add ZMM pseudo register names array.
9069 (i386_zmmh_names): Add ZMM raw register names array.
9070 (i386_k_names): Add K raw register names array.
9071 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9072 registers. AVX512 has 16 more ZMM registers than there are YMM
9074 (i386_zmmh_regnum_p): Add function to look up register number of
9076 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9077 (i386_k_regnum_p): Likewise for K raw registers.
9078 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9079 registers added by AVX512.
9080 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9081 registers added by AVX512.
9082 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9084 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9085 (i386_pseudo_register_name): Add ZMM pseudo registers.
9086 (i386_zmm_type): Construct and return vector registers type for ZMM
9088 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9089 ZMM0-31 pseudo registers and K registers.
9090 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9091 and YMM16-31 registers from register cache.
9092 (i386_pseudo_register_write): Add code to write K, ZMM and
9094 (i386_register_reggroup_p): Add code to include/exclude AVX512
9095 registers in/from respective register groups.
9096 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9097 registers if feature is present in xcr0.
9098 (i386_gdbarch_init): Add code to initialize AVX512 feature
9099 variables in tdep structure, wire in pseudo registers and call
9100 initialize_tdesc_i386_avx512.
9101 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9103 (i386_regnum): Add AVX512 registers.
9104 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9105 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9106 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9107 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9109 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9110 (i386_ymm_avx512_regnum_p): Likewise.
9111 (i386_k_regnum_p): Likewise.
9112 (i386_zmm_regnum_p): Likewise.
9113 (i386_zmmh_regnum_p): Likewise.
9114 * i387-tdep.c : Update year in copyright notice.
9115 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9117 (XSAVE_YMM_AVX512_ADDR): New macro.
9118 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9120 (XSAVE_XMM_AVX512_ADDR): New macro.
9121 (xsave_avx512_k_offset): New table for K register offsets in
9123 (XSAVE_AVX512_K_ADDR): New macro.
9124 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9126 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9127 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9129 (i387_collect_xsave): Add code to collect AVX512 registers from
9131 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9132 of XMM16-31 registers.
9133 (I387_NUM_K_REGS): New define for number of K registers.
9134 (I387_K0_REGNUM): New define for K0 register number.
9135 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9136 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9137 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9139 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9140 (I387_XMM16_REGNUM): New define for XMM16 register number.
9141 (I387_YMM0_REGNUM): New define for YMM0 register number.
9142 (I387_KEND_REGNUM): New define for last K register number.
9143 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9144 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9146 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9148 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9150 * features/Makefile: Add AVX512 related files.
9151 * features/i386/32bit-avx512.xml: New file.
9152 * features/i386/64bit-avx512.xml: Likewise.
9153 * features/i386/amd64-avx512-linux.c: Likewise.
9154 * features/i386/amd64-avx512-linux.xml: Likewise.
9155 * features/i386/amd64-avx512.c: Likewise.
9156 * features/i386/amd64-avx512.xml: Likewise.
9157 * features/i386/i386-avx512-linux.c: Likewise.
9158 * features/i386/i386-avx512-linux.xml: Likewise.
9159 * features/i386/i386-avx512.c: Likewise.
9160 * features/i386/i386-avx512.xml: Likewise.
9161 * features/i386/x32-avx512-linux.c: Likewise.
9162 * features/i386/x32-avx512-linux.xml: Likewise.
9163 * features/i386/x32-avx512.c: Likewise.
9164 * features/i386/x32-avx512.xml: Likewise.
9165 * regformats/i386/amd64-avx512-linux.dat: New file.
9166 * regformats/i386/amd64-avx512.dat: Likewise.
9167 * regformats/i386/i386-avx512-linux.dat: Likewise.
9168 * regformats/i386/i386-avx512.dat: Likewise.
9169 * regformats/i386/x32-avx512-linux.dat: Likewise.
9170 * regformats/i386/x32-avx512.dat: Likewise.
9171 * NEWS: Add note about new support for AVX512.
9174 2014-04-23 Pedro Alves <palves@redhat.com>
9176 * breakpoint.c (insert_bp_location): Tolerate errors if the
9177 breakpoint is set in a user-loaded objfile.
9178 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9179 location is marked shlib_disabled. If the breakpoint is set in a
9180 user-loaded objfile is a GDB-side memory breakpoint, validate it
9181 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9182 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9184 * mem-break.c (memory_validate_breakpoint): New function.
9185 * objfiles.c (userloaded_objfile_contains_address_p): New
9187 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9188 * target.h (memory_validate_breakpoint): New declaration.
9190 2014-04-23 Pedro Alves <palves@redhat.com>
9192 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9193 the breakpoint is set in a shared library, only suppress
9194 errors for software breakpoints, not hardware breakpoints.
9196 2014-04-22 Pedro Alves <palves@redhat.com>
9198 * infrun.c (schedlock_applies): New function, factored out from
9199 find_thread_needs_step_over.
9200 (find_thread_needs_step_over): Use it.
9201 (switch_back_to_stepped_thread): Always clear trap_expected if the
9202 step over is finished. Return early if scheduler locking applies.
9203 Look for the stepping thread and a potential step-over thread with
9205 (currently_stepping_or_nexting_callback): Delete.
9207 2014-04-22 Nick Clifton <nickc@redhat.com>
9209 * NEWS: Mention that ARM sim now supports tracing.
9211 2014-04-22 Yao Qi <yao@codesourcery.com>
9213 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9215 * tracefile.c (tracefile_fetch_registers): ... it. New
9217 * tracefile.h (tracefile_fetch_registers): Declare.
9218 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9219 tracefile_fetch_registers.
9221 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9224 * windows-nat.c (thread_rec): Don't display a warning when
9225 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9226 fails for any reason, set th->suspended to -1, so that we don't
9227 try to resume such a thread. Also, don't return NULL in these
9228 cases, to avoid completely ruin the session due to "PC register is
9229 not available" error.
9230 (do_windows_fetch_inferior_registers): Check errors in
9231 GetThreadContext call.
9232 (windows_continue): Accept an additional argument KILLED; if not
9233 zero, ignore errors in the SetThreadContext call, since the
9234 inferior was killed and is shutting down.
9235 (windows_resume, get_windows_debug_event)
9236 (windows_create_inferior, windows_mourn_inferior)
9237 (windows_kill_inferior): All callers of windows_continue changed
9238 to adjust to its new calling sequence.
9240 2014-04-19 Yao Qi <yao@codesourcery.com>
9242 * ctf.c (ctf_open): Call post_create_inferior.
9244 2014-04-19 Yao Qi <yao@codesourcery.com>
9246 * ctf.c (handle_id): New static variable.
9247 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9248 value. Get the declaration of event "register" and get length
9249 of field "contents".
9251 2014-04-19 Yao Qi <yao@codesourcery.com>
9253 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9255 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9257 * valops.c (oload_method_static): Remove unnecessary argument
9258 METHOD. Update all callers.
9260 2014-04-18 Pedro alves <palves@redhat.com>
9261 Tom Tromey <tromey@redhat.com>
9264 * frame.c (get_prev_frame_1): Rename to ...
9265 (get_prev_frame_always): ... this, and make extern. Adjust.
9266 (skip_artificial_frames): Use get_prev_frame_always.
9267 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9268 (get_frame_unwind_stop_reason): Adjust to rename.
9269 * frame.h (get_prev_frame_always): Declare.
9270 * inline-frame.c: Include frame.h.
9271 (inline_frame_this_id): Use get_prev_frame_always.
9273 2014-04-18 Tristan Gingold <gingold@adacore.com>
9275 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9276 code by using bfd_mach_o_get_base_address.
9278 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9280 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9281 (spu_ax_pseudo_register_collect): New function.
9282 (spu_ax_pseudo_register_push_stack): Likewise.
9283 (spu_dwarf_reg_to_regnum): Likewise.
9284 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9286 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9288 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9289 Replace FRAME argument with FRAME_ID.
9290 * gdbarch.c, gdbarch.h: Regenerate.
9291 * findvar.c (default_value_from_register): Add GDBARCH argument;
9292 replace FRAME by FRAME_ID. No longer call get_frame_id.
9293 (value_from_register): Update call to gdbarch_value_from_register.
9294 * value.h (default_value_from_register): Update prototype.
9295 * s390-linux-tdep.c (s390_value_from_register): Update interface
9296 and call to default_value_from_register.
9297 * spu-tdep.c (spu_value_from_register): Likewise.
9299 * findvar.c (address_from_register): Remove TYPE argument.
9300 Do not call value_from_register; use gdbarch_value_from_register
9301 with null_frame_id instead.
9302 * value.h (address_from_register): Update prototype.
9303 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9304 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9305 address_from_register interface change.
9307 2014-04-17 Yao Qi <yao@codesourcery.com>
9309 * gdbtypes.h: Update comments to link to types and macros'
9312 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9314 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9316 2014-04-16 Keith Seitz <keiths@redhat.com>
9319 * dwarf2read.c (skip_one_die): Check that all relative-offset
9320 sibling DIEs fall within range of the current reader's buffer.
9321 (read_partial_die): Likewise.
9323 2014-04-16 Keith Seitz <keiths@redhat.com>
9326 * cp-namespace.c (lookup_symbol_file): If the type name of
9327 `this' is NULL, return immediately.
9329 2014-04-14 Keith Seitz <keiths@redhat.com>
9332 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9333 from symbol_matches_domain in symtab.c. All local callers
9334 of symbol_matches_domain updated.
9335 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9336 search STRUCT_DOMAIN.
9337 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9338 independently. standard_lookup will do that automatically.
9339 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9340 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9341 (cp_lookup_symbol_in_namespace): Likewise.
9342 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9343 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9344 may return a STRUCT_DOMAIN match.
9345 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9346 * cp-support.c: Include language.h.
9347 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9349 * psymtab.c (match_partial_symbol): Compare the requested
9350 domain with the symbol's domain directly.
9351 (lookup_partial_symbol): Likewise.
9352 * symtab.c (lookup_symbol_in_language): Explain when/why
9353 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9354 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9355 appropriate languages.
9356 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9357 and moved to ada-lang.c
9358 (lookup_block_symbol): Explain that this function only returns
9359 symbol matching the requested DOMAIN.
9360 Compare the requested domain with the symbol's domain directly.
9361 (iterate_over_symbols): Compare the requested domain with the
9362 symbol's domain directly.
9363 * symtab.h (symbol_matches_domain): Remove.
9365 2014-04-14 Tom Tromey <tromey@redhat.com>
9368 * c-exp.y (type_aggregate_p): New function.
9369 (qualified_name, classify_inner_name): Use it.
9370 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9371 and TYPE_TARGET_TYPE of an enum type.
9372 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9374 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9375 handle TYPE_DECLARED_CLASS.
9376 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9378 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9379 * valops.c (enum_constant_from_type): New function.
9380 (value_aggregate_elt): Use it.
9381 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9384 2014-04-14 Tom Tromey <tromey@redhat.com>
9386 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9387 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9389 * value.h (value_aggregate_elt): Update.
9391 2014-04-14 Tom Tromey <tromey@redhat.com>
9393 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9395 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9397 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9398 (evaluate_subexp_standard): Pass noside argument.
9399 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9400 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9401 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9402 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9403 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9405 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9407 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9408 points to a constant blob.
9410 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9412 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9413 property and store it as the high bound and flag the range accordingly.
9414 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9415 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9416 * gdbtypes.h (enum range_flags): New enum.
9417 (struct range_bounds): Add flags member.
9419 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9421 * c-typeprint.c (c_type_print_varspec_suffix): Added
9422 check for not yet resolved high bound. If unresolved, print
9423 "variable length" string to the console instead of random
9426 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9428 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9430 (ada_template_to_fixed_record_type_1): Likewise.
9431 (ada_to_fixed_type_1): Likewise.
9432 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9433 (cp_print_value): Likewise.
9434 * d-valprint.c (dynamic_array_type): Likewise.
9435 * findvar.c (address_of_variable): Likewise.
9436 * jv-valprint.c (java_value_print): Likewise.
9437 * valops.c (value_ind): Likewise.
9438 * value.c (coerce_ref): Likewise.
9440 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9442 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9443 value and retrieve the dynamic type size.
9445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9447 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9448 passed to sizeof is dynamic evaluate the argument to compute the length.
9450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9451 Joel Brobecker <brobecker@adacore.com>
9453 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9454 (dwarf2_evaluate_property): New function.
9455 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9456 * dwarf2read.c (attr_to_dynamic_prop): New function.
9457 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9459 * gdbtypes.c: Include dwarf2loc.h.
9460 (is_dynamic_type): New function.
9461 (resolve_dynamic_type): New function.
9462 (resolve_dynamic_bounds): New function.
9463 (get_type_length): New function.
9464 (check_typedef): Use get_type_length to compute type length.
9465 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9466 (TYPE_LOW_BOUND_KIND): New macro.
9467 (is_dynamic_type): New function prototype.
9468 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9469 to resolve dynamic properties of the type. Update comment.
9470 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9472 2014-04-14 Richard Henderson <rth@redhat.com>
9474 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9476 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9477 Doug Evans <xdje42@gmail.com>
9479 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9480 dereference TYPE_CODE_REF values.
9482 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9484 Revert the following changes due to regressions:
9486 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9487 (dwarf2_evaluate_property): New function.
9488 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9489 * dwarf2read.c (attr_to_dynamic_prop): New function.
9490 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9492 * gdbtypes.c: Include dwarf2loc.h.
9493 (is_dynamic_type): New function.
9494 (resolve_dynamic_type): New function.
9495 (resolve_dynamic_bounds): New function.
9496 (get_type_length): New function.
9497 (check_typedef): Use get_type_length to compute type length.
9498 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9499 (TYPE_LOW_BOUND_KIND): New macro.
9500 (is_dynamic_type): New function prototype.
9501 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9502 to resolve dynamic properties of the type. Update comment.
9503 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9505 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9506 passed to sizeof is dynamic evaluate the argument to compute the length.
9508 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9509 value and retrieve the dynamic type size.
9511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9512 (ada_template_to_fixed_record_type_1): Likewise.
9513 (ada_to_fixed_type_1): Likewise.
9514 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9515 (cp_print_value): Likewise.
9516 * d-valprint.c (dynamic_array_type): Likewise.
9517 * eval.c (evaluate_subexp_with_coercion): Likewise.
9518 * findvar.c (address_of_variable): Likewise.
9519 * jv-valprint.c (java_value_print): Likewise.
9520 * valops.c (value_ind): Likewise.
9521 * value.c (coerce_ref): Likewise.
9523 * c-typeprint.c (c_type_print_varspec_suffix): Added
9524 check for not yet resolved high bound. If unresolved, print
9525 "variable length" string to the console instead of random
9528 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9529 property and store it as the high bound and flag the range accordingly.
9530 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9531 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9532 * gdbtypes.h (enum range_flags): New enum.
9533 (struct range_bounds): Add flags member.
9535 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9536 points to a constant blob.
9538 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9539 (evaluate_subexp_standard): Pass noside argument.
9540 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9541 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9542 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9543 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9544 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9546 2014-04-11 Keith Seitz <keiths@redhat.com>
9549 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9550 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9553 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9555 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9556 (evaluate_subexp_standard): Pass noside argument.
9557 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9558 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9559 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9560 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9561 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9563 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9565 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9566 points to a constant blob.
9568 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9570 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9571 property and store it as the high bound and flag the range accordingly.
9572 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9573 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9574 * gdbtypes.h (enum range_flags): New enum.
9575 (struct range_bounds): Add flags member.
9577 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9579 * c-typeprint.c (c_type_print_varspec_suffix): Added
9580 check for not yet resolved high bound. If unresolved, print
9581 "variable length" string to the console instead of random
9584 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9586 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9587 (ada_template_to_fixed_record_type_1): Likewise.
9588 (ada_to_fixed_type_1): Likewise.
9589 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9590 (cp_print_value): Likewise.
9591 * d-valprint.c (dynamic_array_type): Likewise.
9592 * eval.c (evaluate_subexp_with_coercion): Likewise.
9593 * findvar.c (address_of_variable): Likewise.
9594 * jv-valprint.c (java_value_print): Likewise.
9595 * valops.c (value_ind): Likewise.
9596 * value.c (coerce_ref): Likewise.
9598 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9600 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9601 value and retrieve the dynamic type size.
9603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9605 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9606 passed to sizeof is dynamic evaluate the argument to compute the length.
9608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9610 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9611 (dwarf2_evaluate_property): New function.
9612 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9613 * dwarf2read.c (attr_to_dynamic_prop): New function.
9614 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9616 * gdbtypes.c: Include dwarf2loc.h.
9617 (is_dynamic_type): New function.
9618 (resolve_dynamic_type): New function.
9619 (resolve_dynamic_bounds): New function.
9620 (get_type_length): New function.
9621 (check_typedef): Use get_type_length to compute type length.
9622 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9623 (TYPE_LOW_BOUND_KIND): New macro.
9624 (is_dynamic_type): New function prototype.
9625 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9626 to resolve dynamic properties of the type. Update comment.
9627 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9629 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9631 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9632 declaring high/low bounds and change uses accordingly. Call
9633 create_range_type instead of create_static_range_type.
9634 * gdbtypes.c (create_range_type): New function.
9635 (create_range_type): Convert bounds into struct bound_prop and pass
9636 them to create_range_type.
9637 * gdbtypes.h (struct bound_prop): New struct.
9638 (create_range_type): New function prototype.
9639 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9640 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9641 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9643 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9645 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9647 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9648 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9649 * ada-lang.c: All uses of create_range_type updated.
9650 * coffread.c: All uses of create_range_type updated.
9651 * dwarf2read.c: All uses of create_range_type updated.
9652 * f-exp.y: All uses of create_range_type updated.
9653 * m2-valprint.c: All uses of create_range_type updated.
9654 * mdebugread.c: All uses of create_range_type updated.
9655 * stabsread.c: All uses of create_range_type updated.
9656 * valops.c: All uses of create_range_type updated.
9657 * valprint.c: All uses of create_range_type updated.
9659 2014-04-10 Pedro Alves <palves@redhat.com>
9661 * breakpoint.c (single_step_breakpoints)
9662 (single_step_gdbarch): Move up in the file.
9663 (one_breakpoint_xfer_memory): New function, factored out from ...
9664 (breakpoint_xfer_memory): ... here. Also process single-step
9667 2014-04-09 Tristan Gingold <gingold@adacore.com>
9669 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9671 (darwin_decode_exception_message): Free port only after use.
9673 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9675 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9676 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9677 when setting the size of call_length.
9679 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9681 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9682 dereference TYPE_CODE_REF values.
9684 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9686 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9687 end of warning message.
9689 2014-04-03 Doug Evans <dje@google.com>
9691 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9692 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9694 2014-04-02 Alan Modra <amodra@gmail.com>
9696 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9697 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9698 (struct symbol_file_add_from_memory_args): Add size field.
9699 (find_vdso_size): New function.
9700 (add_vsyscall_page): Attempt to find vdso size.
9702 2014-04-01 Doug Evans <dje@google.com>
9704 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9706 2014-04-01 Tristan Gingold <gingold@adacore.com>
9708 * darwin-nat.c (darwin_encode_reply): Add prototype.
9709 (darwin_decode_exception_message): Reply to unknown inferiors.
9710 (darwin_decode_message): Handle message by id. Ignore message
9711 to unknown inferior.
9712 (darwin_wait): Discard unknown messages, add debug trace.
9714 2014-03-31 Doug Evans <dje@google.com>
9716 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9719 2014-03-31 Doug Evans <dje@google.com>
9721 New option "set print symbol-loading".
9723 * solib.c (solib_read_symbols): Only print symbol loading messages
9725 (solib_add): If symbol loading is in "brief" mode, notify user
9726 symbols are being loaded.
9727 (reload_shared_libraries_1): Ditto.
9728 * symfile.c (print_symbol_loading_off): New static global.
9729 (print_symbol_loading_brief): New static global.
9730 (print_symbol_loading_full): New static global.
9731 (print_symbol_loading_enums): New static global.
9732 (print_symbol_loading): New static global.
9733 (print_symbol_loading_p): New function.
9734 (symbol_file_add_with_addrs): Only print symbol loading messages
9736 (_initialize_symfile): Register "print symbol-loading" set/show
9738 * symfile.h (print_symbol_loading_p): Declare.
9740 2014-03-30 Doug Evans <xdje42@gmail.com>
9742 * infrun.c (set_last_target_status): New function.
9743 (handle_inferior_event): Call it.
9745 2014-03-30 Doug Evans <xdje42@gmail.com>
9747 * inferior.h (enum stop_kind): Improve comment.
9749 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9751 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9752 a reference, strip the reference layer before calling
9753 the lang_ops value_has_mutated callback.
9755 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9757 Remove some globals from our parser.
9758 * language.c (unk_lang_parser): Add "struct parser_state"
9760 * language.h (struct language_defn) <la_parser>: Likewise.
9761 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9762 (initialize_expout): Add "struct parser_state" argument.
9763 Rewrite function to use the parser state.
9764 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9765 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9766 write_exp_elt_longcst, write_exp_elt_dblcst,
9767 write_exp_elt_decfloatcst, write_exp_elt_type,
9768 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9769 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9770 write_dollar_variable): Likewise.
9771 (parse_exp_in_context_1): Use parser state.
9772 (insert_type_address_space): Add "struct parser_state" argument.
9774 (increase_expout_size): New function.
9775 * parser-defs.h: Forward declare "struct language_defn" and
9776 "struct parser_state".
9777 (expout, expout_size, expout_ptr): Remove extern declarations.
9778 (parse_gdbarch, parse_language): Rewrite macro declarations to
9779 accept the parser state.
9780 (struct parser_state): New struct.
9781 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9782 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9783 write_exp_elt_decfloatcst, write_exp_elt_type,
9784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9785 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9786 write_exp_msymbol, write_dollar_variable,
9787 mark_struct_expression, insert_type_address_space): Add "struct
9788 parser_state" argument.
9789 (increase_expout_size): New function.
9790 * utils.c (do_clear_parser_state): New function.
9791 (make_cleanup_clear_parser_state): Likewise.
9792 * utils.h (make_cleanup_clear_parser_state): New function
9794 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9795 Update calls to write_exp* in order to pass the parser state.
9796 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9797 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9798 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9799 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9800 * stap-probe.c (stap_parse_register_operand): Likewise.
9801 (stap_parse_single_operand): Likewise.
9802 (stap_parse_argument_1): Likewise.
9803 (stap_parse_argument): Use parser state.
9804 * stap-probe.h: Include "parser-defs.h".
9805 (struct stap_parse_info) <pstate>: New field.
9806 * c-exp.y (parse_type): Rewrite to use parser state.
9807 (yyparse): Redefine to c_parse_internal.
9808 (pstate): New global variable.
9809 (parse_number): Add "struct parser_state" argument.
9810 (write_destructor_name): Likewise.
9811 (type_exp): Update calls to write_exp* and similars in order to
9813 (exp1, exp, variable, qualified_name, space_identifier,
9814 typename, typebase): Likewise.
9815 (write_destructor_name, parse_number, lex_one_token,
9816 classify_name, classify_inner_name, c_parse): Add "struct
9817 parser_state" argument. Update function to use parser state.
9818 * c-lang.h: Forward declare "struct parser_state".
9819 (c_parse): Add "struct parser_state" argument.
9820 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9821 (yyparse): Redefine macro to ada_parse_internal.
9822 (pstate): New variable.
9823 (write_int, write_object_renaming, write_var_or_type,
9824 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9825 type_int, type_long, type_long_long, type_float, type_double,
9826 type_long_double, type_char, type_boolean, type_system_address):
9827 Add "struct parser_state" argument.
9828 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9829 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9830 var_or_type, aggregate, aggregate_component_list,
9831 positional_list, others, component_group,
9832 component_associations): Update calls to write_exp* and similar
9833 functions in order to use parser state.
9834 (ada_parse, write_var_from_sym, write_int,
9835 write_exp_op_with_string, write_object_renaming,
9836 find_primitive_type, write_selectors, write_ambiguous_var,
9837 write_var_or_type, write_name_assoc, type_int, type_long,
9838 type_long_long, type_float, type_double, type_long_double,
9839 type_char, type_boolean, type_system_address): Add "struct
9840 parser_state" argument. Adjust function to use parser state.
9841 * ada-lang.c (parse): Likewise.
9842 * ada-lang.h: Forward declare "struct parser_state".
9843 (ada_parse): Add "struct parser_state" argument.
9844 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9845 calls to both functions.
9846 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9848 (yyparse): Redefine macro to f_parse_internal.
9849 (pstate): New variable.
9850 (parse_number): Add "struct parser_state" argument.
9851 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9852 and similars in order to use parser state.
9853 (parse_number): Adjust code to use parser state.
9855 (f_parse): New function.
9856 * f-lang.h: Forward declare "struct parser_state".
9857 (f_parse): Add "struct parser_state" argument.
9858 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9860 (yyparse): Redefine macro for java_parse_internal.
9861 (pstate): New variable.
9862 (push_expression_name, push_expression_name, insert_exp): Add
9863 "struct parser_state" argument.
9864 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9865 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9866 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9867 PostIncrementExpression, PostDecrementExpression,
9868 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9869 UnaryExpressionNotPlusMinus, CastExpression,
9870 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9871 RelationalExpression, EqualityExpression, AndExpression,
9872 ExclusiveOrExpression, InclusiveOrExpression,
9873 ConditionalAndExpression, ConditionalOrExpression,
9874 ConditionalExpression, Assignment, LeftHandSide): Update
9875 calls to write_exp* and similars in order to use parser state.
9876 (parse_number): Ajust code to use parser state.
9878 (java_parse): New function.
9879 (push_variable): Add "struct parser_state" argument. Adjust
9880 code to user parser state.
9881 (push_fieldnames, push_qualified_expression_name,
9882 push_expression_name, insert_exp): Likewise.
9883 * jv-lang.h: Forward declare "struct parser_state".
9884 (java_parse): Add "struct parser_state" argument.
9885 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9887 (yyparse): Redefine macro to m2_parse_internal.
9888 (pstate): New variable.
9889 (type_exp, exp, fblock, variable, type): Update calls to
9890 write_exp* and similars to use parser state.
9892 (m2_parse): New function.
9893 * m2-lang.h: Forward declare "struct parser_state".
9894 (m2_parse): Add "struct parser_state" argument.
9895 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9896 * objc-lang.h: Forward declare "struct parser_state".
9897 (end_msglist): Add "struct parser_state" argument.
9898 * p-exp.y (parse_type): Rewrite macro to use parser state.
9899 (yyparse): Redefine macro to pascal_parse_internal.
9900 (pstate): New variable.
9901 (parse_number): Add "struct parser_state" argument.
9902 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9903 write_exp* and similars in order to use parser state.
9904 (parse_number, yylex): Adjust code to use parser state.
9905 (pascal_parse): New function.
9906 * p-lang.h: Forward declare "struct parser_state".
9907 (pascal_parse): Add "struct parser_state" argument.
9908 * go-exp.y (parse_type): Rewrite macro to use parser state.
9909 (yyparse): Redefine macro to go_parse_internal.
9910 (pstate): New variable.
9911 (parse_number): Add "struct parser_state" argument.
9912 (type_exp, exp1, exp, variable, type): Update calls to
9913 write_exp* and similars in order to use parser state.
9914 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9915 to use parser state.
9916 (go_parse): Likewise.
9917 * go-lang.h: Forward declare "struct parser_state".
9918 (go_parse): Add "struct parser_state" argument.
9920 2014-03-27 Doug Evans <dje@google.com>
9922 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9924 2014-03-27 Doug Evans <dje@google.com>
9926 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9927 Remove argument abbrev_section. All callers updated.
9929 2014-03-27 Doug Evans <dje@google.com>
9931 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9932 addr_base, ranges_base.
9934 2014-03-26 Keith Seitz <keiths@redhat.com>
9936 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9937 types, not VAR_DOMAIN.
9939 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9941 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9943 * features/nios2-linux.c: Regenerated.
9944 * features/nios2.c: Regenerated.
9946 2014-03-25 Pedro Alves <palves@redhat.com>
9948 * cli/cli-script.c (script_from_file): Force the interpreter to
9951 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9953 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9954 small stack allocation.
9956 2014-03-24 Tristan Gingold <gingold@adacore.com>
9958 * darwin-nat.c (exc_server): Remove unused prototype.
9959 (darwin_dump_message): Correctly display data on x86_64.
9960 (darwin_encode_reply): Fix style.
9961 Add comments and fix indentation.
9963 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9965 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9967 2014-03-22 Doug Evans <xdje42@gmail.com>
9969 * infcmd.c: Whitespace fixes.
9970 (interrupt_command): Merge two function comments into one.
9972 2014-03-22 Doug Evans <xdje42@gmail.com>
9974 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9977 2014-03-22 Yao Qi <yao@codesourcery.com>
9979 * remote.c (target_read_live_memory): Remove.
9980 (memory_xfer_live_readonly_partial): Rename it to
9981 remote_xfer_live_readonly_partial. Remove argument 'object'.
9982 All callers updated. Call remote_read_bytes_1
9983 instead of target_read_live_memory.
9984 * tracepoint.c (set_traceframe_number): Remove.
9985 (make_cleanup_restore_traceframe_number): Likewise .
9986 * tracepoint.h (set_traceframe_number): Remove declaration.
9987 (make_cleanup_restore_traceframe_number): Likewise.
9989 2014-03-22 Yao Qi <yao@codesourcery.com>
9991 * remote.c (remote_read_bytes): Move code on reading from the
9993 (remote_read_bytes_1): ... here. New function.
9995 2014-03-22 Yao Qi <yao@codesourcery.com>
9997 * ctf.c (ctf_xfer_partial): Check the return value of
9998 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9999 return TARGET_XFER_UNAVAILABLE.
10000 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10001 * target.c (target_read_live_memory): Move it to remote.c.
10002 (memory_xfer_live_readonly_partial): Likewise.
10003 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10004 * remote.c (target_read_live_memory): Moved from target.c.
10005 (memory_xfer_live_readonly_partial): Likewise.
10006 (remote_read_bytes): Factored out from
10007 memory_xfer_partial_1.
10009 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10011 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10014 2014-03-21 Pedro Alves <palves@redhat.com>
10016 * infrun.c (normal_stop): Extend comment.
10018 2014-03-21 Hui Zhu <hui@codesourcery.com>
10019 Pedro Alves <palves@redhat.com>
10021 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10023 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10024 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10025 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10027 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10029 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10030 `z' formatted output modifier.
10032 2014-03-20 Tom Tromey <tromey@redhat.com>
10033 Sergio Durigan Junior <sergiodj@redhat.com>
10035 * probe.c (parse_probes): Turn assert into an ordinary error.
10036 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10037 exceptions when parsing probes. Rearrange the code for clarity.
10039 2014-03-20 Tom Tromey <tromey@redhat.com>
10042 * top.c (execute_command): Only dispatch events if the command
10043 started the target.
10045 2014-03-20 Tom Tromey <tromey@redhat.com>
10048 * infcall.c: Include event-top.h.
10049 (run_inferior_call): Call async_disable_stdin if needed.
10051 2014-03-20 Pedro Alves <palves@redhat.com>
10053 * infrun.c (prepare_to_proceed): Delete.
10054 (thread_still_needs_step_over): New function.
10055 (find_thread_needs_step_over): New function.
10056 (proceed): If the current thread needs a step-over, set its
10057 steping_over_breakpoint flag. Adjust to use
10058 find_thread_needs_step_over instead of prepare_to_proceed.
10059 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10060 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10062 (switch_back_to_stepped_thread): Step over breakpoints of all
10063 threads not the stepping thread, before switching back to the
10066 2014-03-20 Pedro Alves <palves@redhat.com>
10068 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10070 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10071 * infrun.c (saved_singlestep_ptid)
10072 (stepping_past_singlestep_breakpoint): Delete.
10073 (resume): Remove stepping_past_singlestep_breakpoint handling.
10074 (proceed): Store the prev_pc of the stepping thread too.
10075 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10077 (enum infwait_states): Delete infwait_thread_hop_state.
10078 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10080 (handle_inferior_event): Adjust.
10081 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10082 handling and the thread-hop code. Before removing single-step
10083 breakpoints, check whether the thread hit a single-step breakpoint
10084 of another thread. If it did, the trap is not a random signal.
10085 (switch_back_to_stepped_thread): If the event thread hit a
10086 single-step breakpoint, unblock it before switching to the
10087 stepping thread. Handle the case of the stepped thread having
10089 (keep_going): Handle the case of the current thread moving past a
10090 single-step breakpoint.
10092 2014-03-20 Pedro Alves <palves@redhat.com>
10094 PR breakpoints/7143
10095 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10096 are being stepped over.
10097 (breakpoint_address_match): Make extern.
10098 * breakpoint.h (breakpoint_address_match): New declaration.
10099 * inferior.h (stepping_past_instruction_at): New declaration.
10100 * infrun.c (struct step_over_info): New type.
10101 (step_over_info): New global.
10102 (set_step_over_info, clear_step_over_info)
10103 (stepping_past_instruction_at): New functions.
10104 (handle_inferior_event): Clear the step-over info when
10105 trap_expected is cleared.
10106 (resume): Remove now stale comment.
10107 (clear_proceed_status): Clear step-over info.
10108 (proceed): Adjust step-over handling to set or clear the step-over
10109 info instead of removing all breakpoints.
10110 (handle_signal_stop): When setting up a thread-hop, don't remove
10112 (stop_stepping): Clear step-over info.
10113 (keep_going): Adjust step-over handling to set or clear step-over
10114 info and then always inserting breakpoints, instead of removing
10115 all breakpoints when stepping over one.
10117 2014-03-20 Pedro Alves <palves@redhat.com>
10119 * infrun.c (previous_inferior_ptid): Adjust comment.
10120 (deferred_step_ptid): Delete.
10121 (infrun_thread_ptid_changed, prepare_to_proceed)
10122 (init_wait_for_inferior): Adjust.
10123 (handle_signal_stop): Delete deferred_step_ptid handling.
10125 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10128 * defs.h (sync_quit_force_run): New declaration.
10129 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10130 * event-top.c (async_sigterm_handler): New declaration.
10131 (async_sigterm_token): New variable.
10132 (async_init_signals): Create also async_sigterm_token.
10133 (async_sigterm_handler): New function.
10134 (sync_quit_force_run): New variable.
10135 (handle_sigterm): Replace quit_force call by other calls.
10136 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10138 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10140 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10141 offset into SPE pseudo registers.
10143 2014-03-18 Pedro Alves <palves@redhat.com>
10146 * inferior.h (print_stop_event): Declare.
10147 * infrun.c (print_stop_event): New, factored out from ...
10148 (normal_stop): ... this.
10149 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10150 of bpstat_print/print_stack_frame.
10152 2014-03-17 Tom Tromey <tromey@redhat.com>
10154 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10156 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10158 * ada-lang.c (decode_constrained_packed_array): Perform a
10159 minimal coercion for reference with coerce_ref instead of
10162 2014-03-17 Tristan Gingold <gingold@adacore.com>
10164 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10165 (darwin_solib_create_inferior_hook): Emit a warning if version
10168 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10170 * python/py-value.c (get_field_flag): Cast flag_name argument to
10171 PyObject_GetAttrString to support Python 2.4.
10173 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10175 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10176 (Global Maintainers): Remove Jan Kratochvil.
10178 2014-03-14 Pedro Alves <palves@redhat.com>
10180 * inferior.h (terminal_ours_for_output): Rename to ...
10181 (child_terminal_ours_for_output): ... this.
10182 (terminal_save_ours): Rename to ...
10183 (child_terminal_save_ours): ... this.
10184 (terminal_ours): Rename to ...
10185 (child_terminal_ours): ... this.
10186 (terminal_inferior): Rename to ...
10187 (child_terminal_inferior): ... this.
10188 (terminal_init_inferior): Rename to ...
10189 (child_terminal_init_inferior): ... this.
10190 (terminal_init_inferior_with_pgrp): Rename to ...
10191 (child_terminal_init_inferior_with_pgrp): ... this.
10192 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10193 (child_terminal_init_with_pgrp): ... this.
10194 (terminal_save_ours): Rename to ...
10195 (child_terminal_save_ours): ... this.
10196 (terminal_init_inferior): Rename to ...
10197 (child_terminal_init): ... this. Adjust.
10198 (terminal_inferior): Rename to ...
10199 (child_terminal_inferior): ... this.
10200 (terminal_ours_for_output): Rename to ...
10201 (child_terminal_ours_for_output): ... this. Adjust.
10202 (terminal_ours): Rename to ...
10203 (child_terminal_ours): ... this.
10204 (terminal_ours_1): Rename to ...
10205 (child_terminal_ours_1): ... this. Adjust.
10206 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10207 * windows-nat.c (do_initial_windows_stuff): Adjust.
10208 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10209 (gnu_terminal_init): ... this. Adjust.
10210 (gnu_target): Adjust.
10211 * inf-child.c (inf_child_target): Adjust.
10213 2014-03-13 Doug Evans <xdje42@gmail.com>
10216 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10219 2014-03-13 Doug Evans <xdje42@gmail.com>
10221 * value.c (record_latest_value): Call release_value_or_incref
10222 instead of release_value.
10224 2014-03-13 Pedro Alves <palves@redhat.com>
10226 * procfs.c (procfs_target): Don't override to_shortname,
10227 to_longname or to_doc.
10229 2014-03-13 Pedro Alves <palves@redhat.com>
10231 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10232 Unix in user visible strings.
10234 2014-03-12 Stan Shebs <stan@codesourcery.com>
10236 * gdbtypes.h: Annotate comments for Doxygen, add a page
10237 block comment with some general info.
10239 2014-03-12 Pedro Alves <palves@redhat.com>
10241 * infcmd.c (prepare_execution_command): New function, factored out
10242 from several execution commands.
10243 (run_command_1, continue_command, step_1, jump_command)
10244 (signal_command, until_command, advance_command, finish_command)
10245 (attach_command): Use prepare_execution_command.
10247 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10249 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10250 (MAX_BPTS): Define.
10251 (MAX_WPTS): Define.
10252 (struct arm_linux_thread_points): Removed.
10253 (struct arm_linux_process_info): New.
10254 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10255 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10256 (arm_linux_find_breakpoints_by_tid): Removed.
10257 (struct arch_lwp_info): New.
10258 (arm_linux_find_process_pid): New functions.
10259 (arm_linux_add_process): New functions.
10260 (arm_linux_process_info_get): New functions.
10261 (arm_linux_forget_process): New function.
10262 (arm_linux_get_debug_reg_state): New function.
10263 (struct update_registers_data): New.
10264 (update_registers_callback): New function.
10265 (arm_linux_insert_hw_breakpoint1): Updated.
10266 (arm_linux_remove_hw_breakpoint1): Updated.
10267 (arm_linux_insert_hw_breakpoint): Updated.
10268 (arm_linux_remove_hw_breakpoint): Updated.
10269 (arm_linux_insert_watchpoint): Updated.
10270 (arm_linux_remove_watchpoint): Updated.
10271 (arm_linux_new_thread): Updated.
10272 (arm_linux_prepare_to_resume): New function.
10273 (arm_linux_new_fork): New function.
10274 (_initialize_arm_linux_nat): Updated.
10276 2014-03-12 Pedro Alves <palves@redhat.com>
10278 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10280 2014-03-12 Tom Tromey <tromey@redhat.com>
10282 * inf-child.c (return_zero): New function.
10283 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10284 * aix-thread.c (aix_thread_inferior_created): New function.
10285 (aix_thread_attach): Remove.
10286 (init_aix_thread_ops): Don't set to_attach.
10287 (_initialize_aix_thread): Register inferior_created observer.
10288 * corelow.c (init_core_ops): Don't set to_attach or
10289 to_create_inferior.
10290 * exec.c (init_exec_ops): Don't set to_attach or
10291 to_create_inferior.
10292 * infcmd.c (run_command_1): Use find_run_target. Make direct
10294 (attach_command): Use find_attach_target. Make direct target
10296 * record-btrace.c (init_record_btrace_ops): Don't set
10297 to_create_inferior.
10298 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10300 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10301 set to_create_inferior.
10302 * target.c (complete_target_initialization): Add assertion.
10303 (target_create_inferior): Remove.
10304 (find_default_attach, find_default_create_inferior): Remove.
10305 (find_attach_target, find_run_target): New functions.
10306 (find_default_is_async_p, find_default_can_async_p)
10307 (target_supports_non_stop, target_attach): Remove.
10308 (init_dummy_target): Don't set to_create_inferior or
10309 to_supports_non_stop.
10310 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10311 TARGET_DEFAULT_FUNC.
10312 <to_create_inferior>: Add comment.
10313 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10314 TARGET_DEFAULT_RETURN.
10315 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10316 (find_attach_target, find_run_target): Declare.
10317 (target_create_inferior): Remove.
10318 (target_has_execution_1): Update comment.
10319 (target_supports_non_stop): Remove.
10320 * target-delegates.c: Rebuild.
10322 2014-03-12 Pedro Alves <palves@redhat.com>
10324 * inf-child.h: Update comment to not mention Unix.
10326 2014-03-12 Pedro Alves <palves@redhat.com>
10328 * inf-child.c: Update top comment to not mention Unix. Add
10329 generic comment describing how this target is meant to be used.
10330 (inf_child_post_attach, inf_child_post_startup_inferior)
10331 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10334 2014-03-12 Pedro Alves <palves@redhat.com>
10336 * nto-procfs.c: Include inf-child.h.
10337 (procfs_ops): Delete global.
10338 (procfs_can_run): Delete method.
10339 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10340 target pointer instead of referencing procfs_ops.
10341 (procfs_prepare_to_store): Delete.
10342 (init_procfs_ops): Delete function.
10343 (procfs_target): New function, based on init_procfs_ops, but
10344 inherit inf_child_target.
10345 (_initialize_procfs): Use procfs_target.
10347 2014-03-12 Pedro Alves <palves@redhat.com>
10349 * windows-nat.c: Include inf-child.h.
10350 (windows_ops): Delete global.
10351 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10353 (init_windows_ops): Delete function.
10354 (windows_target): New function, based on init_windows_ops, but
10355 inherit inf_child_target.
10356 (_initialize_windows_nat): Use windows_target. Install x86
10357 specific target methods here.
10359 2014-03-10 Doug Evans <xdje42@gmail.com>
10361 * guile/guile.c (call_initialize_gdb_module): New function.
10362 (initialize_guile): Replace call to scm_init_guile with call to
10365 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10367 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10368 in call to TYPE_CODE macro.
10370 2014-03-10 Jerome Guitton <guitton@adacore.com>
10372 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10373 Resolve tagged types to full view.
10375 2014-03-10 Hui Zhu <hui@codesourcery.com>
10377 * target.h (target_insert_breakpoint): Remove "hardware" from its
10380 2014-03-07 Doug Evans <dje@google.com>
10382 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10384 2014-03-07 Doug Evans <dje@google.com>
10386 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10387 Remove unused local comp_dir_attr. Assert exactly one of
10388 stub_comp_unit_die, stub_comp_dir is non-NULL.
10390 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10392 * target.h (complete_target_initialization, add_target):
10395 2014-03-07 Pedro Alves <palves@redhat.com>
10397 * go32-nat.c: Include inf-child.h.
10398 (go32_ops): Delete global.
10399 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10401 (go32_create_inferior): Push the passed in target pointer instead
10402 of referencing go32_ops.
10403 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10404 (go32_target): New function, based on init_go32_ops, but inherit
10406 (_initialize_go32_nat): Use go32_target. Move parts of
10407 init_go32_ops here.
10409 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10411 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10412 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10413 SYMBOL_VALUE_ADDRESS.
10414 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10416 2014-03-06 Yao Qi <yao@codesourcery.com>
10418 * breakpoint.c (get_tracepoint_by_number): Remove argument
10419 optional_p. All callers updated. Adjust comments. Update
10421 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10423 2014-03-06 Yao Qi <yao@codesourcery.com>
10425 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10426 early if get_number returns zero. Use 'p' instead of 'args'.
10428 2014-03-06 Yao Qi <yao@codesourcery.com>
10430 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10433 2014-03-06 Yao Qi <yao@codesourcery.com>
10435 PR breakpoints/16508
10436 * tracepoint.c (check_trace_running): New function.
10437 (trace_find_command): Move code to check_trace_running and
10438 call check_trace_running.
10439 (trace_find_pc_command): Likewise.
10440 (trace_find_tracepoint_command): Likewise.
10441 (trace_find_line_command): Likewise.
10442 (trace_find_range_command): Likewise.
10443 * tracepoint.h (check_trace_running): Likewise.
10444 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10446 2014-03-06 Yao Qi <yao@codesourcery.com>
10448 * target.h (struct target_ops) <to_traceframe_info>: Use
10449 TARGET_DEFAULT_NORETURN (tcomplain ()).
10450 * target-delegates.c: Regenerated.
10452 2014-03-05 Pedro Alves <palves@redhat.com>
10455 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10456 void. Update comment.
10457 (dcache_xfer_memory): Delete.
10458 (dcache_read_memory_partial): New, based on the read bits of
10459 dcache_xfer_memory.
10460 (dcache_update): Add status parameter. Use ULONGEST for len, and
10461 adjust. Discard cache lines if the reason for the update was
10463 * dcache.h (dcache_xfer_memory): Delete declaration.
10464 (dcache_read_memory_partial): New declaration.
10465 (dcache_update): Update prototype.
10466 * target.c (raw_memory_xfer_partial): Update the dcache here.
10467 (memory_xfer_partial_1): Don't handle dcache writes here.
10469 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10471 * remote-sim.c (gdbsim_load): Add const to prog.
10473 2014-03-03 Tom Tromey <tromey@redhat.com>
10475 * elfread.c (probe_key): Change to bfd_data.
10476 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10477 now per-BFD, not per-objfile.
10478 * stap-probe.c (stap_probe_destroy): Update comment.
10479 (handle_stap_probe): Allocate on the per-BFD obstack.
10481 2014-03-03 Tom Tromey <tromey@redhat.com>
10483 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10484 * breakpoint.c (create_longjmp_master_breakpoint): Use
10486 (add_location_to_breakpoint, bkpt_probe_insert_location)
10487 (bkpt_probe_remove_location): Update.
10488 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10489 * elfread.c (elf_symfile_relocate_probe): Remove.
10490 (elf_probe_fns): Update.
10491 (insert_exception_resume_breakpoint): Change type of "probe"
10492 parameter to bound_probe.
10493 (check_exception_resume): Update.
10494 * objfiles.c (objfile_relocate1): Don't relocate probes.
10495 * probe.c (bound_probe_s): New typedef.
10496 (parse_probes): Use get_probe_address. Set sal's objfile.
10497 (find_probe_by_pc): Return a bound_probe.
10498 (collect_probes): Return a VEC(bound_probe_s).
10499 (compare_probes): Update.
10500 (gen_ui_out_table_header_info): Change type of "probes"
10502 (info_probes_for_ops): Update.
10503 (get_probe_address): New function.
10504 (probe_safe_evaluate_at_pc): Update.
10505 * probe.h (struct probe_ops) <get_probe_address>: New field.
10506 <set_semaphore, clear_semaphore>: Add objfile parameter.
10507 (struct probe) <objfile>: Remove field.
10509 <address>: Update comment.
10510 (struct bound_probe): New.
10511 (find_probe_by_pc): Return a bound_probe.
10512 (get_probe_address): Declare.
10513 * solib-svr4.c (struct probe_and_action) <address>: New field.
10514 (hash_probe_and_action, equal_probe_and_action): Update.
10515 (register_solib_event_probe): Add address parameter.
10516 (solib_event_probe_at): Update.
10517 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10519 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10520 (stap_get_probe_address): New function.
10521 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10522 (compile_probe_arg): Update.
10523 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10525 (handle_stap_probe): Don't relocate the probe.
10526 (stap_relocate): Remove.
10527 (stap_gen_info_probes_table_values): Update.
10528 (stap_probe_ops): Remove stap_relocate.
10529 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10530 (debug_sym_probe_fns): Update.
10531 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10532 * symtab.c (init_sal): Use memset.
10533 * symtab.h (struct symtab_and_line) <objfile>: New field.
10534 * tracepoint.c (start_tracing, stop_tracing): Update.
10536 2014-03-03 Tom Tromey <tromey@redhat.com>
10538 * probe.h (parse_probes, find_probe_by_pc)
10539 (find_probes_in_objfile): Fix comments.
10541 2014-03-02 Doug Evans <xdje42@gmail.com>
10543 * infrun.c (handle_signal_stop): Replace test for
10544 TARGET_WAITKIND_STOPPED with an assert.
10546 2014-03-02 Doug Evans <xdje42@gmail.com>
10548 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10550 2014-03-02 Doug Evans <xdje42@gmail.com>
10552 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10554 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10556 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10558 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10560 * i386obsd-nat.c: Include "obsd-nat.h".
10561 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10563 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10565 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10567 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10569 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10571 * mips64obsd-nat.c: Include "obsd-nath".
10572 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10574 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10576 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10578 * amd64obsd-nat.c: Include "obsd-nat,h.
10579 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10581 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10583 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10585 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10586 (find_overload_match): Update call to find_oload_champ.
10587 (find_oload_champ_namespace_loop): Likewise
10589 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10591 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10593 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10594 * config/sparc/obsd64.mh: New file.
10595 * sparc64obsd-nat.c: New file.
10597 * obsd-nat.h: New file.
10598 * obsd-nat.c: New file.
10599 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10600 (ALLDEPFILES): Add obsd-nat.c.
10602 2014-02-28 Tom Tromey <tromey@redhat.com>
10604 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10605 * cli-out.h (cli_ui_out_impl): Now const.
10606 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10607 * ui-out.c (struct ui_out) <impl>: Now const.
10608 (default_ui_out_impl): Now const.
10609 (ui_out_new): Make 'impl' parameter const.
10610 * ui-out.h (ui_out_new): Update.
10612 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10614 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10616 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10618 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10620 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10622 Additional PR 8882 fix.
10623 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10625 2014-02-27 Pedro Alves <palves@redhat.com>
10627 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10630 2014-02-27 Pedro Alves <palves@redhat.com>
10633 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10634 * nat/linux-waitpid.c: Include string.h.
10635 (status_to_str): Moved here and made extern.
10636 * nat/linux-waitpid.h (status_to_str): New declaration.
10638 2014-02-27 Hui Zhu <hui@codesourcery.com>
10641 * infrun.c (ptid_match): Move ...
10642 * common/ptid.c (ptid_match): ... here.
10643 * inferior.h (ptid_match): Move ...
10644 * common/ptid.h (ptid_match): ... here.
10646 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10648 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10649 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10652 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10654 * obsd-tdep.c (obsd_auxv_parse): New function.
10655 (obsd_init_abi): Set auxv_parse.
10657 * gdbarch.sh (auxv_parse): New.
10658 * gdbarch.h: Regenerated.
10659 * gdbarch.c: Regenerated.
10660 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10662 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10664 * guile/scm-value.c (gdbscm_history_append_x): New function.
10665 (value_functions): Add it.
10667 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10669 * dwarf2read.c (attr_value_as_address): New function.
10670 (dwarf2_find_base_address, read_call_site_scope): Use
10671 attr_value_as_address in place of DW_ADDR.
10672 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10673 the low and high addresses. Slight rework of the handling
10674 of the high pc being a constant form, and limit it to
10675 DWARF verson 4 or higher.
10676 (dwarf2_record_block_ranges): Likewise.
10677 (read_partial_die): Likewise.
10678 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10680 2014-02-26 Tom Tromey <tromey@redhat.com>
10682 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10684 2014-02-26 Tom Tromey <tromey@redhat.com>
10686 * elfread.c (elf_read_minimal_symbols): Return early if
10687 minimal symbols have already been read. Add "ei" parameter.
10688 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10689 * minsyms.c (prim_record_minimal_symbol_full): Update.
10690 * objfiles.h (struct objstats) <n_minsyms>: Move...
10691 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10692 * symmisc.c (print_objfile_statistics): Update.
10694 2014-02-26 Tom Tromey <tromey@redhat.com>
10696 * elfread.c (elf_read_minimal_symbols): New function, from
10698 (elf_symfile_read): Call it.
10700 2014-02-26 Tom Tromey <tromey@redhat.com>
10702 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10703 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10704 (lookup_minimal_symbol_solib_trampoline)
10705 (lookup_minimal_symbol_by_pc_section_1)
10706 (lookup_minimal_symbol_and_objfile): Update.
10707 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10708 Don't allocate a minimal symbol if minsyms have already been read.
10709 (build_minimal_symbol_hash_tables): Update.
10710 (install_minimal_symbols): Do nothing if minsyms already read.
10711 Use the per-BFD obstack.
10712 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10713 * objfiles.c (allocate_objfile): Call
10714 terminate_minimal_symbol_table later.
10715 (have_minimal_symbols): Update.
10716 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10717 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10718 Move from struct objfile.
10719 <minsyms_read>: New field.
10720 (struct objfile) <msymbols, minimal_symbol_count,
10721 msymbol_hash, msymbol_demangled_hash>: Move.
10722 (ALL_OBJFILE_MSYMBOLS): Update.
10723 * symfile.c (read_symbols): Set minsyms_read.
10724 (reread_symbols): Update.
10725 * symmisc.c (dump_objfile, dump_msymbols): Update.
10727 2014-02-26 Tom Tromey <tromey@redhat.com>
10729 * minsyms.c (msymbols_sort): Remove.
10730 * minsyms.h (msymbols_sort): Remove.
10731 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10732 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10733 * elfread.c (elf_symtab_read): Don't add section offsets.
10734 * xcoffread.c (record_minimal_symbol): Don't add section offset
10735 to minimal symbol address.
10736 * somread.c (text_offset, data_offset): Remove.
10737 (som_symtab_read): Don't add section offsets to minimal symbol
10739 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10740 Don't add section offsets to minimal symbols.
10741 * coffread.c (coff_symtab_read): Don't add section offsets
10742 to minimal symbol addresses.
10743 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10744 to minimal symbol addresses.
10745 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10746 section offset to minimal symbol addresses.
10747 * mdebugread.c (parse_partial_symbols): Don't add section
10748 offset to minimal symbol addresses.
10749 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10750 offset to minimal symbol addresses.
10752 2014-02-26 Tom Tromey <tromey@redhat.com>
10754 * ada-lang.c (ada_main_name): Update.
10755 (ada_add_standard_exceptions): Update.
10756 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10757 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10758 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10759 * auxv.c (ld_so_xfer_auxv): Update.
10760 * avr-tdep.c (avr_scan_prologue): Update.
10761 * ax-gdb.c (gen_var_ref): Update.
10762 * blockframe.c (get_pc_function_start)
10763 (find_pc_partial_function_gnu_ifunc): Update.
10764 * breakpoint.c (create_overlay_event_breakpoint)
10765 (create_longjmp_master_breakpoint)
10766 (create_std_terminate_master_breakpoint)
10767 (create_exception_master_breakpoint): Update.
10768 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10769 * c-valprint.c (c_val_print): Update.
10770 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10771 * common/agent.c (agent_look_up_symbols): Update.
10772 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10773 * dwarf2loc.c (call_site_to_target_addr): Update.
10774 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10775 * elfread.c (elf_gnu_ifunc_record_cache)
10776 (elf_gnu_ifunc_resolve_by_got): Update.
10777 * findvar.c (default_read_var_value): Update.
10778 * frame.c (inside_main_func): Update.
10779 * frv-tdep.c (frv_frame_this_id): Update.
10780 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10781 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10783 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10784 (hppa_hpux_find_dummy_bpaddr): Update.
10785 * hppa-tdep.c (hppa_symbol_address): Update.
10786 * infcmd.c (until_next_command): Update.
10787 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10789 * linespec.c (minsym_found, add_minsym): Update.
10790 * linux-nat.c (get_signo): Update.
10791 * linux-thread-db.c (inferior_has_bug): Update.
10792 * m32c-tdep.c (m32c_return_value)
10793 (m32c_m16c_address_to_pointer): Update.
10794 * m32r-tdep.c (m32r_frame_this_id): Update.
10795 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10796 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10797 * maint.c (maintenance_translate_address): Update.
10798 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10799 (frob_address): New function.
10800 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10801 frob_address. Rename parameter to "pc_in".
10802 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10804 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10806 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10807 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10808 * objc-lang.c (find_objc_msgsend): Update.
10809 * objfiles.c (objfile_relocate1): Update.
10810 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10811 * p-valprint.c (pascal_val_print): Update.
10812 * parse.c (write_exp_msymbol): Update.
10813 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10814 (ppc_elfv2_skip_entrypoint): Update.
10815 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10816 * printcmd.c (build_address_symbolic, msym_info)
10817 (address_info): Update.
10818 * proc-service.c (ps_pglobal_lookup): Update.
10819 * psymtab.c (find_pc_sect_psymtab_closer)
10820 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10821 Change msymbol parameter to bound_minimal_symbol.
10822 * ravenscar-thread.c (get_running_thread_id): Update.
10823 * remote.c (remote_check_symbols): Update.
10824 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10826 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10827 * solib-dsbt.c (lm_base): Update.
10828 * solib-frv.c (lm_base, main_got): Update.
10829 * solib-irix.c (locate_base): Update.
10830 * solib-som.c (som_solib_create_inferior_hook)
10831 (link_map_start): Update.
10832 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10833 * solib-svr4.c (elf_locate_base, enable_break): Update.
10834 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10835 (flush_ea_cache): Update.
10836 * stabsread.c (define_symbol, scan_file_globals): Update.
10837 * stack.c (find_frame_funname): Update.
10838 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10839 (debug_qf_find_pc_sect_symtab): Update.
10840 * symfile.c (simple_read_overlay_table)
10841 (simple_overlay_update): Update.
10842 * symfile.h (struct quick_symbol_functions)
10843 <find_pc_sect_symtab>: Change type of msymbol to
10844 bound_minimal_symbol.
10845 * symmisc.c (dump_msymbols): Update.
10846 * symtab.c (find_pc_sect_symtab_via_partial)
10847 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10848 (search_symbols, print_msymbol_info): Update.
10849 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10850 (MSYMBOL_VALUE_ADDRESS): Redefine.
10851 (BMSYMBOL_VALUE_ADDRESS): New macro.
10852 * tracepoint.c (scope_info): Update.
10853 * tui/tui-disasm.c (tui_find_disassembly_address)
10854 (tui_get_begin_asm_address): Update.
10855 * valops.c (find_function_in_inferior): Update.
10856 * value.c (value_static_field, value_fn_field): Update.
10858 2014-02-26 Tom Tromey <tromey@redhat.com>
10860 * ada-lang.c (ada_update_initial_language): Update.
10861 (ada_main_name, ada_has_this_exception_support): Update.
10862 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10863 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10864 * arm-tdep.c (arm_skip_stub): Update.
10865 * auxv.c (ld_so_xfer_auxv): Update.
10866 * avr-tdep.c (avr_scan_prologue): Update.
10867 * ax-gdb.c (gen_var_ref): Update.
10868 * breakpoint.c (struct breakpoint_objfile_data)
10869 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10870 type to bound_minimal_symbol.
10871 (create_overlay_event_breakpoint)
10872 (create_longjmp_master_breakpoint)
10873 (create_std_terminate_master_breakpoint)
10874 (create_exception_master_breakpoint): Update.
10875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10876 * c-exp.y (classify_name): Update.
10877 * coffread.c (coff_symfile_read): Update.
10878 * common/agent.c (agent_look_up_symbols): Update.
10879 * d-lang.c (d_main_name): Update.
10880 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10881 * dec-thread.c (enable_dec_thread): Update.
10882 * dwarf2loc.c (call_site_to_target_addr): Update.
10883 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10884 * eval.c (evaluate_subexp_standard): Update.
10885 * findvar.c (struct minsym_lookup_data) <result>: Change type
10886 to bound_minimal_symbol.
10888 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10889 * frame.c (inside_main_func): Update.
10890 * frv-tdep.c (frv_frame_this_id): Update.
10891 * gcore.c (call_target_sbrk): Update.
10892 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10893 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10895 * go-lang.c (go_main_name): Update.
10896 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10897 (hppa_hpux_find_import_stub_for_addr): Update.
10898 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10899 Update. Change return type.
10900 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10902 * jit.c (jit_breakpoint_re_set_internal): Update.
10903 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10905 * linux-nat.c (get_signo): Update.
10906 * linux-thread-db.c (inferior_has_bug): Update
10907 * m32c-tdep.c (m32c_return_value)
10908 (m32c_m16c_address_to_pointer): Update.
10909 * m32r-tdep.c (m32r_frame_this_id): Update.
10910 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10911 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10912 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10913 lookup_minimal_symbol. Change return type.
10914 (lookup_minimal_symbol): Remove.
10915 (lookup_bound_minimal_symbol): Update.
10916 (lookup_minimal_symbol_text): Change return type.
10917 (lookup_minimal_symbol_solib_trampoline): Change return type.
10918 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10919 (lookup_minimal_symbol_solib_trampoline): Change return type.
10920 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10921 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10922 (value_nsstring, find_imps): Update.
10923 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10924 * p-lang.c (pascal_main_name): Update.
10925 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10926 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10927 * proc-service.c (ps_pglobal_lookup): Update.
10928 * ravenscar-thread.c (get_running_thread_msymbol): Change
10930 (has_ravenscar_runtime, get_running_thread_id): Update.
10931 * remote.c (remote_check_symbols): Update.
10932 * sol-thread.c (ps_pglobal_lookup): Update.
10933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10934 * solib-dsbt.c (lm_base): Update.
10935 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10937 * solib-irix.c (locate_base): Update.
10938 * solib-som.c (som_solib_create_inferior_hook)
10939 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10941 * solib-spu.c (spu_enable_break): Update.
10942 * solib-svr4.c (elf_locate_base, enable_break): Update.
10943 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10944 (flush_ea_cache): Update.
10945 * stabsread.c (define_symbol): Update.
10946 * symfile.c (simple_read_overlay_table): Update.
10947 * symtab.c (find_pc_sect_line): Update.
10948 * tracepoint.c (scope_info): Update.
10949 * tui-disasm.c (tui_get_begin_asm_address): Update.
10950 * value.c (value_static_field): Update.
10952 2014-02-26 Tom Tromey <tromey@redhat.com>
10954 * minsyms.c (prim_record_minimal_symbol_full): Use
10955 SET_MSYMBOL_VALUE_ADDRESS.
10956 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10957 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10958 SET_MSYMBOL_VALUE_ADDRESS.
10959 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10960 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10962 2014-02-26 Tom Tromey <tromey@redhat.com>
10964 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10965 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10966 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10967 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10968 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10969 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10970 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10971 * ada-lang.c (ada_main_name): Update.
10972 (ada_lookup_simple_minsym): Update.
10973 (ada_make_symbol_completion_list): Update.
10974 (ada_add_standard_exceptions): Update.
10975 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10976 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10977 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10978 * arm-tdep.c (skip_prologue_function): Update.
10979 (arm_skip_stack_protector, arm_skip_stub): Update.
10980 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10981 (arm_wince_skip_main_prologue): Update.
10982 * auxv.c (ld_so_xfer_auxv): Update.
10983 * avr-tdep.c (avr_scan_prologue): Update.
10984 * ax-gdb.c (gen_var_ref): Update.
10985 * block.c (call_site_for_pc): Update.
10986 * blockframe.c (get_pc_function_start): Update.
10987 (find_pc_partial_function_gnu_ifunc): Update.
10988 * breakpoint.c (create_overlay_event_breakpoint): Update.
10989 (create_longjmp_master_breakpoint): Update.
10990 (create_std_terminate_master_breakpoint): Update.
10991 (create_exception_master_breakpoint): Update.
10992 (resolve_sal_pc): Update.
10993 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10994 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10996 * c-valprint.c (c_val_print): Update.
10997 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10998 * coffread.c (coff_symfile_read): Update.
10999 * common/agent.c (agent_look_up_symbols): Update.
11000 * dbxread.c (find_stab_function_addr): Update.
11001 (end_psymtab): Update.
11002 * dwarf2loc.c (call_site_to_target_addr): Update.
11003 (func_verify_no_selftailcall): Update.
11004 (tailcall_dump): Update.
11005 (call_site_find_chain_1): Update.
11006 (dwarf_expr_reg_to_entry_parameter): Update.
11007 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11008 (elf_gnu_ifunc_resolve_by_got): Update.
11009 * f-valprint.c (info_common_command): Update.
11010 * findvar.c (read_var_value): Update.
11011 * frame.c (get_prev_frame_1): Update.
11012 (inside_main_func): Update.
11013 * frv-tdep.c (frv_skip_main_prologue): Update.
11014 (frv_frame_this_id): Update.
11015 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11016 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11017 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11018 (gnuv3_skip_trampoline): Update.
11019 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11020 (hppa64_hpux_in_solib_call_trampoline): Update.
11021 (hppa_hpux_skip_trampoline_code): Update.
11022 (hppa64_hpux_search_dummy_call_sequence): Update.
11023 (hppa_hpux_find_import_stub_for_addr): Update.
11024 (hppa_hpux_find_dummy_bpaddr): Update.
11025 * hppa-tdep.c (hppa_symbol_address)
11026 (hppa_lookup_stub_minimal_symbol): Update.
11027 * i386-tdep.c (i386_skip_main_prologue): Update.
11028 (i386_pe_skip_trampoline_code): Update.
11029 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11030 * infcall.c (get_function_name): Update.
11031 * infcmd.c (until_next_command): Update.
11032 * jit.c (jit_breakpoint_re_set_internal): Update.
11033 (jit_inferior_init): Update.
11034 * linespec.c (minsym_found): Update.
11035 (add_minsym): Update.
11036 * linux-fork.c (info_checkpoints_command): Update.
11037 * linux-nat.c (get_signo): Update.
11038 * linux-thread-db.c (inferior_has_bug): Update.
11039 * m32c-tdep.c (m32c_return_value): Update.
11040 (m32c_m16c_address_to_pointer): Update.
11041 (m32c_m16c_pointer_to_address): Update.
11042 * m32r-tdep.c (m32r_frame_this_id): Update.
11043 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11044 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11045 * maint.c (maintenance_translate_address): Update.
11046 * minsyms.c (add_minsym_to_hash_table): Update.
11047 (add_minsym_to_demangled_hash_table): Update.
11048 (msymbol_objfile): Update.
11049 (lookup_minimal_symbol): Update.
11050 (iterate_over_minimal_symbols): Update.
11051 (lookup_minimal_symbol_text): Update.
11052 (lookup_minimal_symbol_by_pc_name): Update.
11053 (lookup_minimal_symbol_solib_trampoline): Update.
11054 (lookup_minimal_symbol_by_pc_section_1): Update.
11055 (lookup_minimal_symbol_and_objfile): Update.
11056 (prim_record_minimal_symbol_full): Update.
11057 (compare_minimal_symbols): Update.
11058 (compact_minimal_symbols): Update.
11059 (build_minimal_symbol_hash_tables): Update.
11060 (install_minimal_symbols): Update.
11061 (terminate_minimal_symbol_table): Update.
11062 (find_solib_trampoline_target): Update.
11063 (minimal_symbol_upper_bound): Update.
11064 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11065 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11066 (mips_skip_pic_trampoline_code): Update.
11067 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11068 * objc-lang.c (selectors_info): Update.
11069 (classes_info): Update.
11070 (find_methods): Update.
11071 (find_imps): Update.
11072 (find_objc_msgsend): Update.
11073 * objfiles.c (objfile_relocate1): Update.
11074 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11075 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11076 * p-valprint.c (pascal_val_print): Update.
11077 * parse.c (write_exp_msymbol): Update.
11078 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11079 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11080 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11081 * printcmd.c (build_address_symbolic): Update.
11082 (sym_info): Update.
11083 (address_info): Update.
11084 * proc-service.c (ps_pglobal_lookup): Update.
11085 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11086 (find_pc_sect_psymtab): Update.
11087 * python/py-framefilter.c (py_print_frame): Update.
11088 * ravenscar-thread.c (get_running_thread_id): Update.
11089 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11091 * remote.c (remote_check_symbols): Update.
11092 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11093 (rs6000_skip_trampoline_code): Update.
11094 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11095 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11096 * solib-dsbt.c (lm_base): Update.
11097 * solib-frv.c (lm_base): Update.
11098 (main_got): Update.
11099 * solib-irix.c (locate_base): Update.
11100 * solib-som.c (som_solib_create_inferior_hook): Update.
11101 (som_solib_desire_dynamic_linker_symbols): Update.
11102 (link_map_start): Update.
11103 * solib-spu.c (spu_enable_break): Update.
11104 (ocl_enable_break): Update.
11105 * solib-svr4.c (elf_locate_base): Update.
11106 (enable_break): Update.
11107 * spu-tdep.c (spu_get_overlay_table): Update.
11108 (spu_catch_start): Update.
11109 (flush_ea_cache): Update.
11110 * stabsread.c (define_symbol): Update.
11111 (scan_file_globals): Update.
11112 * stack.c (find_frame_funname): Update.
11113 (frame_info): Update.
11114 * symfile.c (simple_read_overlay_table): Update.
11115 (simple_overlay_update): Update.
11116 * symmisc.c (dump_msymbols): Update.
11117 * symtab.c (fixup_section): Update.
11118 (find_pc_sect_line): Update.
11119 (skip_prologue_sal): Update.
11120 (search_symbols): Update.
11121 (print_msymbol_info): Update.
11122 (rbreak_command): Update.
11123 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11124 (completion_list_objc_symbol): Update.
11125 (default_make_symbol_completion_list_break_on): Update.
11126 * tracepoint.c (scope_info): Update.
11127 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11128 (tui_get_begin_asm_address): Update.
11129 * valops.c (find_function_in_inferior): Update.
11130 * value.c (value_static_field): Update.
11131 (value_fn_field): Update.
11133 2014-02-26 Tom Tromey <tromey@redhat.com>
11135 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11136 bound minimal symbols. Move code that knows about minsym
11138 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11140 * minsyms.h (minimal_symbol_upper_bound): Declare.
11141 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11142 minimal_symbol_upper_bound.
11144 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11146 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11147 Use the type's name if its basic type does not have a tag.
11149 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11151 * dwarf2read.c (read_subrange_type): Add comment.
11153 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11155 * dwarf2read.c (update_enumeration_type_from_children): New
11156 function, mostly extracted from process_structure_scope.
11157 (read_enumeration_type): Call update_enumeration_type_from_children.
11158 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11159 and flag_flag_enum fields.
11161 2014-02-26 Pedro Alves <palves@redhat.com>
11163 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11164 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11165 to_xfer_partial method.
11167 2014-02-26 Pedro Alves <palves@redhat.com>
11169 * target.c (complete_target_initialization): Don't install
11170 default_xfer_partial as to_xfer_partial hook.
11171 (nomemory): Delete.
11172 (update_current_target): Don't INHERIT nor de_fault
11173 deprecated_xfer_memory. Delete de_fault macro.
11174 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11175 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11176 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11179 2014-02-26 Pedro Alves <palves@redhat.com>
11181 * go32-nat.c (my_write_child): New function.
11182 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11183 (go32_xfer_partial): New function.
11184 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11185 Instead install a to_xfer_partial hook.
11187 2014-02-26 Pedro Alves <palves@redhat.com>
11189 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11190 to_xfer_partial helper. Rewrite.
11191 (procfs_xfer_partial): New function.
11192 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11193 Install a to_xfer_partial hook.
11195 2014-02-26 Pedro Alves <palves@redhat.com>
11197 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11198 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11199 (m32r_xfer_partial): New function.
11200 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11201 Install a to_xfer_partial hook.
11203 2014-02-26 Pedro Alves <palves@redhat.com>
11205 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11207 (mips_xfer_partial): New function.
11208 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11209 hook. Install a to_xfer_partial hook.
11211 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11213 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11214 * gdbtypes.c (create_array_type_with_stride): New function,
11215 renaming create_array_type, but with an added parameter
11216 called "bit_stride".
11217 (create_array_type): Re-implement using
11218 create_array_type_with_stride.
11219 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11220 and DW_AT_bit_stride attributes.
11222 2014-02-26 Pedro Alves <palves@redhat.com>
11224 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11225 task-specific breakpoints.
11227 2014-02-25 Pedro Alves <palves@redhat.com>
11229 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11230 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11232 2014-02-25 Stan Shebs <stan@codesourcery.com>
11234 * defs.h: Annotate comments for Doxygen.
11236 2014-02-25 Tom Tromey <tromey@redhat.com>
11238 * target.h (target_ignore): Don't declare.
11239 * target.c (target_ignore): Remove.
11241 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11244 * auto-load.c (auto_load_objfile_script_1): Change filename to
11247 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11249 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11250 documentation. Adjust prototype to match the target_ops
11251 to_xfer_partial method. Adjust implementation accordingly.
11253 2014-02-25 Hui Zhu <hui@codesourcery.com>
11255 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11256 to_traceframe_info.
11258 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11260 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11261 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11262 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11263 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11264 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11265 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11266 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11267 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11269 (rl78_register_type): Use a data pointer type for SP and
11270 new pseudo registers mentioned above. Use a 16 bit integer
11271 type for all other register pairs.
11272 (rl78_register_name, rl78_g10_register_name): Update for
11273 new pseudo registers.
11274 (rl78_pseudo_register_read): Likewise.
11275 (rl78_pseudo_register_write): Likewise.
11276 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11277 to the newly added pseudo registers.
11279 2014-02-24 Doug Evans <dje@google.com>
11281 * value.c (record_latest_value): Fix comment.
11282 * printcmd.c (print_command_1): Remove code to handle -1 return from
11283 record_latest_value.
11285 2014-02-24 Pedro Alves <palves@redhat.com>
11287 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11288 deprecated_xfer_memory hook.
11289 (procfs_xfer_partial): Call procfs_xfer_memory instead
11290 of the deprecated_xfer_memory target hook.
11291 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11294 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11296 * windows-nat.c (windows_xfer_shared_libraries): Return
11297 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11298 requested object is TARGET_OBJECT_LIBRARIES.
11300 2014-02-24 Yao Qi <yao@codesourcery.com>
11302 * target.h (enum target_xfer_status)
11303 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11304 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11306 * corefile.c (memory_error_message): User updated.
11307 * exec.c (section_table_read_available_memory): Likewise.
11308 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11309 * target.c (target_xfer_status_to_string): Likewise.
11310 (raw_memory_xfer_partial): Likewise.
11311 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11312 * valops.c (read_value_memory): Likewise.
11313 * exec.h: Update comments.
11315 2014-02-24 Yao Qi <yao@codesourcery.com>
11317 * target.c (target_xfer_status_to_string): Rename argument err
11319 * target.h (target_xfer_status_to_string): Update declaration.
11320 Replace target_xfer_error_to_string with
11321 target_xfer_status_to_string in comment.
11323 2014-02-24 Yao Qi <yao@codesourcery.com>
11325 * mips-linux-nat.c (super_close): Update its type.
11326 (mips_linux_close): Pass 'self' to super_close.
11328 2014-02-24 Yao Qi <yao@codesourcery.com>
11330 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11331 * corefile.c (read_memory): Adjusted.
11332 * target.c (target_write_with_progress): Adjusted.
11334 2014-02-23 Yao Qi <yao@codesourcery.com>
11336 Revert two patches:
11338 2013-10-25 Yao Qi <yao@codesourcery.com>
11340 * remote.c (remote_traceframe_info): Return early if
11341 traceframe is not selected.
11343 2013-07-19 Yao Qi <yao@codesourcery.com>
11345 * target.c (update_current_target): Change the default action
11346 of 'to_traceframe_info' from tcomplain to return_zero.
11347 * target.h (struct target_ops) <to_traceframe_info>: Add more
11350 2014-02-23 Yao Qi <yao@codesourcery.com>
11352 * valops.c (read_value_memory): Rewrite it. Call
11353 target_xfer_partial in a loop.
11354 * exec.h (section_table_available_memory): Remove declaration.
11355 Move comments to ...
11356 * exec.c (section_table_available_memory): ... here. Make it
11359 2014-02-23 Yao Qi <yao@codesourcery.com>
11361 * exec.c (section_table_read_available_memory): New function.
11362 * exec.h (section_table_read_available_memory): Declare.
11363 * ctf.c (ctf_xfer_partial): Call
11364 section_table_read_available_memory.
11365 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11367 2014-02-23 Yao Qi <yao@codesourcery.com>
11369 * ctf.c (ctf_xfer_partial): Move code to ...
11370 * exec.c (exec_read_partial_read_only): ... it. New function.
11371 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11372 * tracefile.c: Include "exec.h".
11373 * exec.h (exec_read_partial_read_only): Declare.
11375 2014-02-23 Yao Qi <yao@codesourcery.com>
11377 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11378 (tfile_has_memory): Remove.
11379 (init_tfile_ops): Don't set fields to_has_all_memory and
11380 to_has_memory of tfile_ops.
11381 * tracefile.c (tracefile_has_all_memory): New function.
11382 (tracefile_has_memory): New function.
11383 (init_tracefile_ops): Initialize fields to_has_all_memory and
11384 to_has_memory of 'ops'.
11386 2014-02-23 Yao Qi <yao@codesourcery.com>
11388 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11389 (ctf_thread_alive, ctf_get_trace_status): Remove.
11390 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11391 init_tracefile_ops.
11392 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11393 (tfile_has_stack, tfile_has_registers): Remove.
11394 (tfile_thread_alive): Remove.
11395 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11396 init_tracefile_ops.
11397 * tracefile.c (tracefile_has_stack): New function.
11398 (tracefile_has_registers): New function.
11399 (tracefile_thread_alive): New function.
11400 (tracefile_get_trace_status): New function.
11401 (init_tracefile_ops): New function.
11402 * tracefile.h (init_tracefile_ops): Declare.
11404 2014-02-23 Yao Qi <yao@codesourcery.com>
11406 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11407 (O_LARGEFILE): Likewise.
11408 (tfile_ops): Likewise.
11409 (TRACE_HEADER_SIZE): Likewise.
11410 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11411 (cur_data_size): Likewise.
11412 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11413 (tfile_close, tfile_files_info): Likewise.
11414 (tfile_get_trace_status): Likewise.
11415 (tfile_get_tracepoint_status): Likewise.
11416 (tfile_get_traceframe_address): Likewise.
11417 (tfile_trace_find, match_blocktype): Likewise.
11418 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11419 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11420 (tfile_get_trace_state_variable_value): Likewise.
11421 (tfile_has_all_memory, tfile_has_memory): Likewise.
11422 (tfile_has_stack, tfile_has_registers): Likewise.
11423 (tfile_thread_alive, build_traceframe_info): Likewise.
11424 (tfile_traceframe_info, init_tfile_ops): Likewise.
11425 (_initialize_tracepoint): Don't call init_tfile_ops
11426 and add_target_with_completer.
11427 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11428 exec.h, completer.h and filenames.h.
11429 (_initialize_tracefile_tfile): New function.
11431 2014-02-23 Yao Qi <yao@codesourcery.com>
11433 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11435 (HFILES_NO_SRCDIR): Add tracefile.h.
11436 * ctf.c: Include "tracefile.h".
11437 * tracefile.h: New file.
11438 * tracefile.c: New file
11439 * tracefile-tfile.c: New file.
11440 * tracepoint.c: Include "tracefile.h".
11441 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11442 (stop_reason_names): Add const.
11443 (trace_file_writer_xfree): Move it to tracefile.c.
11444 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11445 (trace_save_ctf): Likewise.
11446 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11447 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11448 (tfile_write_header, tfile_write_regblock_type): Likewise.
11449 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11450 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11451 (tfile_write_raw_data, tfile_end): Likewise.
11452 (tfile_trace_file_writer_new): Likewise.
11453 (free_uploaded_tp): Make it extern.
11454 (free_uploaded_tsv): Make it extern.
11455 (_initialize_tracepoint): Move code to register command 'tsave'
11457 * tracepoint.h (stop_reason_names): Declare.
11458 (struct trace_frame_write_ops): Move it to tracefile.h.
11459 (struct trace_file_write_ops): Likewise.
11460 (struct trace_file_writer): Likewise.
11461 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11463 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11466 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11468 (get_cores_used_by_process): New parameter num_cores, use it.
11469 (linux_xfer_osdata_processes): Pass num_cores to it.
11470 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11473 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11475 * target.c (memory_xfer_partial): Fix length arg in call to
11476 breakpoint_xfer_memory.
11478 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11481 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11482 number comes after the + or - signs. Adjust length of register
11483 name to be extracted.
11485 2014-02-20 Tom Tromey <tromey@redhat.com>
11487 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11488 (ada_varobj_ops): Mark "extern".
11490 2014-02-20 Tom Tromey <tromey@redhat.com>
11492 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11494 2014-02-20 Doug Evans <xdje42@gmail.com>
11496 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11497 All callers updated.
11498 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11499 All callers updated.
11500 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11501 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11503 2014-02-20 lin zuojian <manjian2006@gmail.com>
11504 Joel Brobecker <brobecker@adacore.com>
11505 Doug Evans <xdje42@gmail.com>
11508 * dwarf2read.c (struct die_info): New member in_process.
11509 (reset_die_in_process): New function.
11510 (process_die): Set it at the start, reset when returning.
11511 (inherit_abstract_dies): Only call process_die if origin_child_die
11512 not already being processed.
11514 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11516 * windows-nat.c (handle_unload_dll): Add function documentation.
11517 (do_initial_windows_stuff): Add comment explaining why we wait
11518 until after inferior initialization has finished before
11519 processing all DLLs.
11521 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11523 * windows-nat.c (get_module_name): Delete.
11524 (windows_get_exec_module_filename): New function, mostly
11525 inspired from get_module_name.
11526 (windows_pid_to_exec_file): Replace call to get_module_name
11527 by call to windows_get_exec_module_filename.
11529 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11531 * windows-nat.c (handle_load_dll): Rewrite this function's
11532 introductory comment. Remove code using get_module_name
11533 to get the DLL's name.
11535 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11537 * windows-nat.c (get_windows_debug_event): Ignore
11538 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11539 if windows_initialization_done == 0.
11540 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11541 Adjust implementation to always load all DLLs.
11542 (do_initial_windows_stuff): Replace call to
11543 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11545 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11547 * windows-nat.c (_initialize_windows_nat): Deprecate the
11548 "dll-symbols" command. Turn the "add-shared-symbol-files"
11549 and "assf" aliases into commands, and deprecate them as well.
11550 * NEWS: Add entry explaining that "dll-symbols" and its two
11551 aliases are now deprecated.
11553 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11555 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11556 new-line in debug string. Remove trailing spaces.
11558 2014-02-19 Stan Shebs <stan@codesourcery.com>
11560 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11562 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11564 * NEWS: Add entry for the new feature
11565 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11568 2014-02-19 Stan Shebs <stan@codesourcery.com>
11570 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11572 2014-02-19 Pedro Alves <palves@redhat.com>
11574 * common/ptid.h (struct ptid): Mention that process_stratum
11575 targets should prefer ptid.lwp.
11577 2014-02-19 Pedro Alves <palves@redhat.com>
11579 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11580 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11581 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11582 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11583 store remote thread ids rather than ptid.tid.
11584 (_initialize_remote): Adjust.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.c (target_get_unwinder): Rewrite.
11589 (target_get_tailcall_unwinder): Rewrite.
11590 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11591 (record_btrace_to_get_tailcall_unwinder): New function.
11592 (init_record_btrace_ops): Update.
11593 * target.h (struct target_ops) <to_get_unwinder,
11594 to_get_tailcall_unwinder>: Now function pointers. Use
11595 TARGET_DEFAULT_RETURN.
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11599 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11601 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11605 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11607 * target-delegates.c: Rebuild.
11608 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11609 TARGET_DEFAULT_FUNC.
11610 * target.c (default_target_decr_pc_after_break): Rename from
11611 forward_target_decr_pc_after_break. Simplify.
11612 (target_decr_pc_after_break): Rely on delegation.
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11616 * target.c (update_current_target): Do not INHERIT to_doc or
11617 to_magic. Do not de_fault to_open or to_close.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * gcore.h (objfile_find_memory_regions): Declare.
11622 * gcore.c (objfile_find_memory_regions): No longer static. Add
11624 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11625 * exec.c: Include gcore.h.
11626 (exec_set_find_memory_regions): Remove.
11627 (exec_find_memory_regions): Remove.
11628 (exec_do_find_memory_regions): Remove.
11629 (init_exec_ops): Update.
11630 * defs.h (exec_set_find_memory_regions): Remove.
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11634 * target-delegates.c: Rebuild.
11635 * target.h (struct target_ops) <to_extra_thread_info,
11636 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11637 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11638 not 0, in TARGET_DEFAULT_RETURN.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.c (complete_target_initialization): Remove casts. Use
11643 return_zero_has_execution.
11644 (return_zero): Add "ignore" argument.
11645 (return_zero_has_execution): New function.
11646 (init_dummy_target): Remove casts. Use
11647 return_zero_has_execution.
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11651 * target.c (update_current_target): Update comments. Do not
11652 INHERIT to_stratum.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11658 * corelow.c (core_read_description): Delegate when needed.
11659 * remote.c (remote_read_description): Delegate when needed.
11660 * target-delegates.c: Rebuild.
11661 * target.c (target_read_description): Rewrite.
11662 * target.h (struct target_ops) <to_read_description>: Update
11663 comment. Use TARGET_DEFAULT_RETURN.
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11670 (find_default_run_target): Check against delegate_can_run.
11671 * target.h (struct target_ops) <to_can_run>: Use
11672 TARGET_DEFAULT_RETURN.
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target-delegates.c: Rebuild.
11677 * target.c (target_disconnect): Unconditionally delegate.
11678 * target.h (struct target_ops) <to_disconnect>: Use
11679 TARGET_DEFAULT_NORETURN.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * record.c (record_stop): Unconditionally delegate.
11684 * target-delegates.c: Rebuild.
11685 * target.c (target_stop_recording): Unconditionally delegate.
11686 * target.h (struct target_ops) <to_stop_recording>: Use
11687 TARGET_DEFAULT_IGNORE.
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11691 * target-delegates.c: Rebuild.
11692 * target.c (target_enable_btrace): Unconditionally delegate.
11693 * target.h (struct target_ops) <to_enable_btrace>: Use
11694 TARGET_DEFAULT_NORETURN.
11696 2014-02-19 Tom Tromey <tromey@redhat.com>
11698 * target-delegates.c: Rebuild.
11699 * target.c (target_read_btrace): Unconditionally delegate.
11700 * target.h (struct target_ops) <to_read_btrace>: Use
11701 TARGET_DEFAULT_NORETURN.
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11705 * target-delegates.c: Rebuild.
11706 * target.c (target_teardown_btrace): Unconditionally delegate.
11707 * target.h (struct target_ops) <to_teardown_btrace>: Use
11708 TARGET_DEFAULT_NORETURN.
11710 2014-02-19 Tom Tromey <tromey@redhat.com>
11712 * target-delegates.c: Rebuild.
11713 * target.c (target_disable_btrace): Unconditionally delegate.
11714 * target.h (struct target_ops) <to_disable_btrace>: Use
11715 TARGET_DEFAULT_NORETURN.
11717 2014-02-19 Tom Tromey <tromey@redhat.com>
11719 * target-delegates.c: Rebuild.
11720 * target.c (default_search_memory): New function.
11721 (simple_search_memory): Update comment.
11722 (target_search_memory): Unconditionally delegate.
11723 * target.h (struct target_ops) <to_search_memory>: Use
11724 TARGET_DEFAULT_FUNC.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * auxv.c (default_auxv_parse): No longer static.
11729 (target_auxv_parse): Unconditionally delegate.
11730 * auxv.h (default_auxv_parse): Declare.
11731 * target-delegates.c: Rebuild.
11732 * target.c: Include auxv.h.
11733 * target.h (struct target_ops) <to_auxv_parse>: Use
11734 TARGET_DEFAULT_FUNC.
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11738 * target-delegates.c: Rebuild.
11739 * target.c (target_memory_map): Unconditionally delegate.
11740 * target.h (struct target_ops) <to_memory_map>: Use
11741 TARGET_DEFAULT_RETURN.
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11745 * target-delegates.c: Rebuild.
11746 * target.c (target_thread_alive): Unconditionally delegate.
11747 * target.h (struct target_ops) <to_thread_alive>: Use
11748 TARGET_DEFAULT_RETURN.
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11752 * target-delegates.c: Rebuild.
11753 * target.c (target_save_record): Unconditionally delegate.
11754 * target.h (struct target_ops) <to_save_record>: Use
11755 TARGET_DEFAULT_NORETURN.
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11759 * target-delegates.c: Rebuild.
11760 * target.c (target_delete_record): Unconditionally delegate.
11761 * target.h (struct target_ops) <to_delete_record>: Use
11762 TARGET_DEFAULT_NORETURN.
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11766 * target-delegates.c: Rebuild.
11767 * target.c (target_record_is_replaying): Unconditionally
11769 * target.h (struct target_ops) <to_record_is_replaying>: Use
11770 TARGET_DEFAULT_RETURN.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target-delegates.c: Rebuild.
11775 * target.c (target_goto_record_begin): Unconditionally delegate.
11776 * target.h (struct target_ops) <to_goto_record_begin>: Use
11777 TARGET_DEFAULT_NORETURN.
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11781 * target-delegates.c: Rebuild.
11782 * target.c (target_goto_record_end): Unconditionally delegate.
11783 * target.h (struct target_ops) <to_goto_record_end>: Use
11784 TARGET_DEFAULT_NORETURN.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (target_goto_record): Unconditionally delegate.
11790 * target.h (struct target_ops) <to_goto_record>: Use
11791 TARGET_DEFAULT_NORETURN.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target-delegates.c: Rebuild.
11796 * target.c (target_insn_history): Unconditionally delegate.
11797 * target.h (struct target_ops) <to_insn_history>: Use
11798 TARGET_DEFAULT_NORETURN.
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11802 * target-delegates.c: Rebuild.
11803 * target.c (target_insn_history_from): Unconditionally delegate.
11804 * target.h (struct target_ops) <to_insn_history_from>: Use
11805 TARGET_DEFAULT_NORETURN.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (target_insn_history_range): Unconditionally delegate.
11811 * target.h (struct target_ops) <to_insn_history_range>: Use
11812 TARGET_DEFAULT_NORETURN.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_call_history): Unconditionally delegate.
11818 * target.h (struct target_ops) <to_call_history>: Use
11819 TARGET_DEFAULT_NORETURN.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (target_call_history_from): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_call_history_from>: Use
11826 TARGET_DEFAULT_NORETURN.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (target_call_history_range): Unconditionally delegate.
11832 * target.h (struct target_ops) <to_call_history_range>: Use
11833 TARGET_DEFAULT_NORETURN.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target-delegates.c: Rebuild.
11838 * target.c (target_verify_memory): Unconditionally delegate.
11839 * target.h (struct target_ops) <to_verify_memory>: Use
11840 TARGET_DEFAULT_NORETURN.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (target_core_of_thread): Unconditionally delegate.
11846 * target.h (struct target_ops) <to_core_of_thread>: Use
11847 TARGET_DEFAULT_RETURN.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target-delegates.c: Rebuild.
11852 * target.c (target_flash_done): Unconditionally delegate.
11853 * target.h (struct target_ops) <to_flash_done>: Use
11854 TARGET_DEFAULT_NORETURN.
11856 2014-02-19 Tom Tromey <tromey@redhat.com>
11858 * target-delegates.c: Rebuild.
11859 * target.c (target_flash_erase): Unconditionally delegate.
11860 * target.h (struct target_ops) <to_flash_erase>: Use
11861 TARGET_DEFAULT_NORETURN.
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11865 * target-delegates.c: Rebuild.
11866 * target.c (target_get_section_table): Unconditionally delegate.
11867 * target.h (struct target_ops) <to_get_section_table>: Use
11868 TARGET_DEFAULT_RETURN.
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11872 * target-delegates.c: Rebuild.
11873 * target.c (target_pid_to_str): Unconditionally delegate.
11874 (init_dummy_target): Don't initialize to_pid_to_str.
11875 (default_pid_to_str): Rename from dummy_pid_to_str.
11876 * target.h (struct target_ops) <to_pid_to_str>: Use
11877 TARGET_DEFAULT_FUNC.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_find_new_threads): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_find_new_threads>: Use
11884 TARGET_DEFAULT_RETURN.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_program_signals): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_program_signals>: Use
11891 TARGET_DEFAULT_IGNORE.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_pass_signals): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_pass_signals>: Use
11898 TARGET_DEFAULT_IGNORE.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (default_mourn_inferior): New function.
11904 (target_mourn_inferior): Unconditionally delegate.
11905 * target.h (struct target_ops) <to_mourn_inferior>: Use
11906 TARGET_DEFAULT_FUNC.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (default_follow_fork): New function.
11912 (target_follow_fork): Unconditionally delegate.
11913 * target.h (struct target_ops) <to_follow_fork>: Use
11914 TARGET_DEFAULT_FUNC.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target-delegates.c: Rebuild.
11919 * target.c (target_kill): Unconditionally delegate.
11920 * target.h (struct target_ops) <to_kill>: Use
11921 TARGET_DEFAULT_NORETURN.
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11925 * target-delegates.c: Rebuild.
11926 * target.c (target_masked_watch_num_registers): Unconditionally
11928 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11929 Use TARGET_DEFAULT_RETURN.
11931 2014-02-19 Tom Tromey <tromey@redhat.com>
11933 * target-delegates.c: Rebuild.
11934 * target.c (target_remove_mask_watchpoint): Unconditionally
11936 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11937 TARGET_DEFAULT_RETURN.
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11941 * target-delegates.c: Rebuild.
11942 * target.c (target_insert_mask_watchpoint): Unconditionally
11944 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11945 TARGET_DEFAULT_RETURN.
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11949 * target-delegates.c: Rebuild.
11950 * target.c (target_ranged_break_num_registers): Unconditionally
11952 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11953 Use TARGET_DEFAULT_RETURN.
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11957 * target-delegates.c: Rebuild.
11958 * target.c (target_fetch_registers): Unconditionally delegate.
11959 * target.h (struct target_ops) <to_fetch_registers>: Use
11960 TARGET_DEFAULT_NORETURN.
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't inherit or default
11967 * target.h (struct target_ops) <to_stop>: Use
11968 TARGET_DEFAULT_IGNORE.
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_can_run_breakpoint_commands.
11975 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11976 Use TARGET_DEFAULT_RETURN.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_supports_evaluation_of_breakpoint_conditions.
11983 * target.h (struct target_ops)
11984 <to_supports_evaluation_of_breakpoint_conditions>: Use
11985 TARGET_DEFAULT_RETURN.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_augmented_libraries_svr4_read.
11992 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11993 Use TARGET_DEFAULT_RETURN.
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
12000 * target.h (struct target_ops) <to_can_use_agent>: Use
12001 TARGET_DEFAULT_RETURN.
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12008 * target.h (struct target_ops) <to_use_agent>: Use
12009 TARGET_DEFAULT_NORETURN.
12011 2014-02-19 Tom Tromey <tromey@redhat.com>
12013 * target-delegates.c: Rebuild.
12014 * target.c (update_current_target): Don't inherit or default
12015 to_traceframe_info.
12016 (return_null): Remove.
12017 * target.h (struct target_ops) <to_traceframe_info>: Use
12018 TARGET_DEFAULT_RETURN.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_static_tracepoint_markers_by_strid.
12025 * target.h (struct target_ops)
12026 <to_static_tracepoint_markers_by_strid>: Use
12027 TARGET_DEFAULT_NORETURN.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12033 to_static_tracepoint_marker_at.
12034 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12035 Use TARGET_DEFAULT_RETURN.
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12041 to_set_permissions.
12042 * target.h (struct target_ops) <to_set_permissions>: Use
12043 TARGET_DEFAULT_IGNORE.
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12049 to_get_tib_address.
12050 * target.h (struct target_ops) <to_get_tib_address>: Use
12051 TARGET_DEFAULT_NORETURN.
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12055 * target-delegates.c: Rebuild.
12056 * target.c (update_current_target): Don't inherit or default
12057 to_set_trace_notes.
12058 * target.h (struct target_ops) <to_set_trace_notes>: Use
12059 TARGET_DEFAULT_RETURN.
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12063 * target-delegates.c: Rebuild.
12064 * target.c (update_current_target): Don't initialize
12065 to_set_trace_buffer_size.
12066 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12067 TARGET_DEFAULT_IGNORE.
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12071 * target-delegates.c: Rebuild.
12072 * target.c (update_current_target): Don't inherit or default
12073 to_set_circular_trace_buffer.
12074 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12075 TARGET_DEFAULT_IGNORE.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target-delegates.c: Rebuild.
12080 * target.c (update_current_target): Don't inherit or default
12081 to_set_disconnected_tracing.
12082 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12083 TARGET_DEFAULT_IGNORE.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target-delegates.c: Rebuild.
12088 * target.c (update_current_target): Don't inherit or default
12089 to_get_min_fast_tracepoint_insn_len.
12090 (return_minus_one): Remove.
12091 * target.h (struct target_ops)
12092 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_get_raw_trace_data.
12099 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12100 TARGET_DEFAULT_NORETURN.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12106 to_upload_trace_state_variables.
12107 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12108 Use TARGET_DEFAULT_RETURN.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_upload_tracepoints.
12115 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12116 TARGET_DEFAULT_RETURN.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target-delegates.c: Rebuild.
12121 * target.c (update_current_target): Don't inherit or default
12122 to_save_trace_data.
12123 * target.h (struct target_ops) <to_save_trace_data>: Use
12124 TARGET_DEFAULT_NORETURN.
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12128 * target-delegates.c: Rebuild.
12129 * target.c (update_current_target): Don't inherit or default
12130 to_get_trace_state_variable_value.
12131 * target.h (struct target_ops)
12132 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12136 * target-delegates.c: Rebuild.
12137 * target.c (update_current_target): Don't inherit or default
12139 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12141 2014-02-19 Tom Tromey <tromey@redhat.com>
12143 * target-delegates.c: Rebuild.
12144 * target.c (update_current_target): Don't inherit or default
12146 * target.h (struct target_ops) <to_trace_stop>: Use
12147 TARGET_DEFAULT_NORETURN.
12149 2014-02-19 Tom Tromey <tromey@redhat.com>
12151 * target-delegates.c: Rebuild.
12152 * target.c (update_current_target): Don't inherit or default
12153 to_get_tracepoint_status.
12154 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12155 TARGET_DEFAULT_NORETURN.
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12159 * target-delegates.c: Rebuild.
12160 * target.c (update_current_target): Don't inherit or default
12161 to_get_trace_status.
12162 * target.h (struct target_ops) <to_get_trace_status>: Use
12163 TARGET_DEFAULT_RETURN.
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target-delegates.c: Rebuild.
12168 * target.c (update_current_target): Don't inherit or default
12170 * target.h (struct target_ops) <to_trace_start>: Use
12171 TARGET_DEFAULT_NORETURN.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target-delegates.c: Rebuild.
12176 * target.c (update_current_target): Don't inherit or default
12177 to_trace_set_readonly_regions.
12178 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12179 Use TARGET_DEFAULT_NORETURN.
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_disable_tracepoint.
12186 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12187 TARGET_DEFAULT_NORETURN.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12193 to_enable_tracepoint.
12194 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12195 TARGET_DEFAULT_NORETURN.
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * target-delegates.c: Rebuild.
12200 * target.c (update_current_target): Don't inherit or default
12201 to_download_trace_state_variable.
12202 * target.h (struct target_ops) <to_download_trace_state_variable>:
12203 Use TARGET_DEFAULT_NORETURN.
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_can_download_tracepoint.
12210 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12211 TARGET_DEFAULT_RETURN.
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_download_tracepoint.
12218 * target.h (struct target_ops) <to_download_tracepoint>: Use
12219 TARGET_DEFAULT_NORETURN.
12221 2014-02-19 Tom Tromey <tromey@redhat.com>
12223 * target-delegates.c: Rebuild.
12224 * target.c (update_current_target): Don't inherit or default
12226 * target.h (struct target_ops) <to_trace_init>: Use
12227 TARGET_DEFAULT_RETURN.
12229 2014-02-19 Tom Tromey <tromey@redhat.com>
12231 * target-delegates.c: Rebuild.
12232 * target.c (update_current_target): Don't inherit or default
12233 to_supports_string_tracing.
12234 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12235 TARGET_DEFAULT_RETURN.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * target-delegates.c: Rebuild.
12240 * target.c (update_current_target): Don't inherit or default
12241 to_supports_enable_disable_tracepoint.
12242 * target.h (struct target_ops)
12243 <to_supports_enable_disable_tracepoint>: Use
12244 TARGET_DEFAULT_RETURN.
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12248 * target-delegates.c: Rebuild.
12249 * target.c (update_current_target): Don't inherit or default
12250 to_supports_multi_process.
12251 * target.h (struct target_ops) <to_supports_multi_process>: Use
12252 TARGET_DEFAULT_RETURN.
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12256 * target-delegates.c: Rebuild.
12257 * target.c (update_current_target): Don't inherit or default
12258 to_get_ada_task_ptid.
12259 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12260 TARGET_DEFAULT_FUNC.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * target-delegates.c: Rebuild.
12265 * target.c (update_current_target): Don't inherit or default
12266 to_thread_architecture.
12267 * target.h (struct target_ops) <to_thread_architecture>: Use
12268 TARGET_DEFAULT_FUNC.
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target-delegates.c: Rebuild.
12273 * target.c (update_current_target): Don't inherit or default
12274 to_execution_direction.
12275 * target.h (struct target_ops) <to_execution_direction>: Use
12276 TARGET_DEFAULT_FUNC.
12278 2014-02-19 Tom Tromey <tromey@redhat.com>
12280 * target-delegates.c: Rebuild.
12281 * target.c (update_current_target): Don't inherit or default
12282 to_can_execute_reverse.
12283 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12284 TARGET_DEFAULT_RETURN.
12285 (target_can_execute_reverse): Unconditionally delegate.
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12289 * target-delegates.c: Rebuild.
12290 * target.c (update_current_target): Don't inherit or default
12292 (dummy_goto_bookmark): Remove.
12293 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12294 * target.h (struct target_ops) <to_goto_bookmark>: Use
12295 TARGET_DEFAULT_NORETURN.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target-delegates.c: Rebuild.
12300 * target.c (update_current_target): Don't inherit or default
12302 (dummy_get_bookmark): Remove.
12303 (init_dummy_target): Don't inherit or default to_get_bookmark.
12304 * target.h (struct target_ops) <to_get_bookmark>: Use
12305 TARGET_DEFAULT_NORETURN
12307 2014-02-19 Tom Tromey <tromey@redhat.com>
12309 * target-delegates.c: Rebuild.
12310 * target.c (update_current_target): Don't inherit or default
12311 to_make_corefile_notes.
12312 (init_dummy_target): Don't initialize to_make_corefile_notes.
12313 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12314 TARGET_DEFAULT_FUNC.
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12318 * target-delegates.c: Rebuild.
12319 * target.c (update_current_target): Don't inherit or default
12320 to_find_memory_regions.
12321 (init_dummy_target): Don't initialize to_find_memory_regions.
12322 * target.h (struct target_ops) <to_find_memory_regions>: Use
12323 TARGET_DEFAULT_FUNC.
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12330 * target.h (struct target_ops) <to_log_command>: Use
12331 TARGET_DEFAULT_IGNORE.
12332 (target_log_command): Unconditionally delegate.
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12336 * target-delegates.c: Rebuild.
12337 * target.c (update_current_target): Don't inherit or default
12338 to_pid_to_exec_file.
12339 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12340 TARGET_DEFAULT_RETURN.
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12347 (target_thread_name): Unconditionally delegate.
12348 * target.h (struct target_ops) <to_thread_name>: Use
12349 TARGET_DEFAULT_RETURN.
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12353 * target-delegates.c: Rebuild.
12354 * target.c (update_current_target): Don't inherit or default
12355 to_extra_thread_info.
12356 * target.h (struct target_ops) <to_extra_thread_info>: Use
12357 TARGET_DEFAULT_RETURN.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target-delegates.c: Rebuild.
12362 * target.c (update_current_target): Don't inherit or default
12364 * target.h (struct target_ops) <to_has_exited>: Use
12365 TARGET_DEFAULT_RETURN..
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_set_syscall_catchpoint.
12372 (return_one): Remove.
12373 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12374 TARGET_DEFAULT_RETURN.
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target-delegates.c: Rebuild.
12379 * target.c (update_current_target): Don't inherit or default
12380 to_insert_exec_catchpoint.
12381 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12382 TARGET_DEFAULT_RETURN.
12384 2014-01-08 Tom Tromey <tromey@redhat.com>
12386 * target-delegates.c: Rebuild.
12387 * target.c (update_current_target): Don't inherit or default
12388 to_insert_exec_catchpoint.
12389 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12390 TARGET_DEFAULT_RETURN.
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * target-delegates.c: Rebuild.
12395 * target.c (update_current_target): Don't inherit or default
12396 to_remove_vfork_catchpoint.
12397 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12398 TARGET_DEFAULT_RETURN.
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12402 * target-delegates.c: Rebuild.
12403 * target.c (update_current_target): Don't inherit or default
12404 to_insert_vfork_catchpoint.
12405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12406 TARGET_DEFAULT_RETURN.
12408 2014-02-19 Tom Tromey <tromey@redhat.com>
12410 * target-delegates.c: Rebuild.
12411 * target.c (update_current_target): Don't inherit or default
12412 to_remove_fork_catchpoint.
12413 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12414 TARGET_DEFAULT_RETURN.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target-delegates.c: Rebuild.
12419 * target.c (update_current_target): Don't inherit or default
12420 to_insert_fork_catchpoint.
12421 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12422 TARGET_DEFAULT_RETURN.
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12426 * target-delegates.c: Rebuild.
12427 * target.c (update_current_target): Don't inherit or default
12428 to_post_startup_inferior.
12429 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12430 TARGET_DEFAULT_IGNORE.
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * target-delegates.c: Rebuild.
12435 * target.c (update_current_target): Don't inherit or default
12437 * target.h (struct target_ops) <to_load>: Use
12438 TARGET_DEFAULT_NORETURN.
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12442 * target-delegates.c: Rebuild.
12443 * target.c (update_current_target): Don't inherit or default
12445 * target.h (struct target_ops) <to_terminal_info>: Use
12446 TARGET_DEFAULT_FUNC.
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12450 * target-delegates.c: Rebuild.
12451 * target.c (update_current_target): Don't inherit or default
12452 to_terminal_save_ours.
12453 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12454 TARGET_DEFAULT_IGNORE.
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12458 * target-delegates.c: Rebuild.
12459 * target.c (update_current_target): Don't inherit or default
12461 * target.h (struct target_ops) <to_terminal_ours>: Use
12462 TARGET_DEFAULT_IGNORE.
12464 2014-02-19 Tom Tromey <tromey@redhat.com>
12466 * target-delegates.c: Rebuild.
12467 * target.c (update_current_target): Don't inherit or default
12468 to_terminal_ours_for_output.
12469 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12470 TARGET_DEFAULT_IGNORE.
12472 2014-02-19 Tom Tromey <tromey@redhat.com>
12474 * target-delegates.c: Rebuild.
12475 * target.c (update_current_target): Don't inherit or default
12476 to_terminal_inferior.
12477 * target.h (struct target_ops) <to_terminal_inferior>: Use
12478 TARGET_DEFAULT_IGNORE.
12480 2014-02-19 Tom Tromey <tromey@redhat.com>
12482 * target-delegates.c: Rebuild.
12483 * target.c (update_current_target): Don't inherit or default
12485 * target.h (struct target_ops) <to_terminal_init>: Use
12486 TARGET_DEFAULT_IGNORE.
12488 2014-02-19 Tom Tromey <tromey@redhat.com>
12490 * target-delegates.c: Rebuild.
12491 * target.c (update_current_target): Don't inherit or default
12492 to_can_accel_watchpoint_condition.
12493 * target.h (struct target_ops)
12494 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12498 * target-delegates.c: Rebuild.
12499 * target.c (update_current_target): Don't inherit or default
12500 to_region_ok_for_hw_watchpoint.
12501 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12502 Use TARGET_DEFAULT_FUNC.
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12506 * target-delegates.c: Rebuild.
12507 * target.c (update_current_target): Don't inherit or default
12508 to_watchpoint_addr_within_range.
12509 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12510 Use TARGET_DEFAULT_FUNC.
12512 2014-02-19 Tom Tromey <tromey@redhat.com>
12514 * target-delegates.c: Rebuild.
12515 * target.c (update_current_target): Don't inherit or default
12516 to_remove_watchpoint.
12517 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12518 TARGET_DEFAULT_NORETURN.
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12522 * target-delegates.c: Rebuild.
12523 * target.c (update_current_target): Don't inherit or default
12524 to_insert_watchpoint.
12525 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12526 TARGET_DEFAULT_RETURN.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target-delegates.c: Rebuild.
12531 * target.c (update_current_target): Don't inherit or default
12532 to_remove_hw_breakpoint.
12533 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12534 TARGET_DEFAULT_RETURN.
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12538 * target-delegates.c: Rebuild.
12539 * target.c (update_current_target): Don't inherit or default
12540 to_insert_hw_breakpoint.
12541 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12542 TARGET_DEFAULT_RETURN.
12544 2014-02-19 Tom Tromey <tromey@redhat.com>
12546 * target-delegates.c: Rebuild.
12547 * target.c (update_current_target): Don't inherit or default
12548 to_can_use_hw_breakpoint.
12549 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12550 TARGET_DEFAULT_RETURN.
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12554 * target-delegates.c: Rebuild.
12555 * target.c (update_current_target): Don't inherit or default
12557 * target.h (struct target_ops) <to_files_info>: Use
12558 TARGET_DEFAULT_IGNORE.
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12562 * target-delegates.c: Rebuild.
12563 * target.c (update_current_target): Don't inherit or default
12565 * target.h (struct target_ops) <to_store>: Use
12566 TARGET_DEFAULT_NORETURN.
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12570 * target-delegates.c: Rebuild.
12571 * target.c (update_current_target): Don't inherit or default
12573 * target.h (struct target_ops) <to_post_attach>: Use
12574 TARGET_DEFAULT_IGNORE.
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target-delegates.c: Rebuild.
12579 * target.c (update_current_target): Don't inherit or default
12581 (default_rcmd): New function.
12582 (do_monitor_command): Unconditionally delegate.
12583 * target.h (struct target_ops) <to_rmcd>: Use
12584 TARGET_DEFAULT_FUNC.
12586 2014-02-19 Tom Tromey <tromey@redhat.com>
12588 * target-delegates.c: Rebuild.
12589 * target.c (init_dummy_target): Don't initialize to_attach.
12590 (target_attach): Unconditionally delegate.
12591 * target.h (struct target_ops) <to_attach>: Use
12592 TARGET_DEFAULT_FUNC.
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12596 * target-delegates.c: Rebuild.
12597 * target.c (target_detach): Unconditionally delegate.
12598 (init_dummy_target): Don't initialize to_detach.
12599 * target.h (struct target_ops) <to_detach>: Use
12600 TARGET_DEFAULT_IGNORE.
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12604 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12606 (target_augmented_libraries_svr4_read): Add argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12613 * target.h (struct target_ops) <to_call_history_range>: Add
12615 * target.c (target_call_history_range): Add argument.
12616 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12618 (record_btrace_call_history_from): Update.
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12622 * target.h (struct target_ops) <to_call_history_from>: Add
12624 * target.c (target_call_history_from): Add argument.
12625 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12630 * target.h (struct target_ops) <to_call_history>: Add argument.
12631 * target.c (target_call_history): Add argument.
12632 * record-btrace.c (record_btrace_call_history): Add 'self'
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target.h (struct target_ops) <to_insn_history_range>: Add
12639 * target.c (target_insn_history_range): Add argument.
12640 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12642 (record_btrace_insn_history_from): Update.
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12646 * target.h (struct target_ops) <to_insn_history_from>: Add
12648 * target.c (target_insn_history_from): Add argument.
12649 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12654 * target.h (struct target_ops) <to_insn_history>: Add argument.
12655 * target.c (target_insn_history): Add argument.
12656 * record-btrace.c (record_btrace_insn_history): Add 'self'
12659 2014-02-19 Tom Tromey <tromey@redhat.com>
12661 * target.h (struct target_ops) <to_goto_record>: Add argument.
12662 * target.c (target_goto_record): Add argument.
12663 * record-full.c (record_full_goto): Add 'self' argument.
12664 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12666 2014-02-19 Tom Tromey <tromey@redhat.com>
12668 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12669 * target.c (target_goto_record_end): Add argument.
12670 * record-full.c (record_full_goto_end): Add 'self' argument.
12671 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12675 * target.h (struct target_ops) <to_goto_record_begin>: Add
12677 * target.c (target_goto_record_begin): Add argument.
12678 * record-full.c (record_full_goto_begin): Add 'self' argument.
12679 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target.h (struct target_ops) <to_record_is_replaying>: Add
12686 * target.c (target_record_is_replaying): Add argument.
12687 * record-full.c (record_full_is_replaying): Add 'self' argument.
12688 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12690 (record_btrace_xfer_partial, record_btrace_store_registers)
12691 (record_btrace_prepare_to_store, record_btrace_resume)
12692 (record_btrace_wait, record_btrace_decr_pc_after_break)
12693 (record_btrace_find_new_threads, record_btrace_thread_alive):
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12698 * target.h (struct target_ops) <to_delete_record>: Add argument.
12699 * target.c (target_delete_record): Add argument.
12700 * record-full.c (record_full_delete): Add 'self' argument.
12702 2014-02-19 Tom Tromey <tromey@redhat.com>
12704 * target.h (struct target_ops) <to_save_record>: Add argument.
12705 * target.c (target_save_record): Add argument.
12706 * record-full.c (record_full_save): Add 'self' argument.
12707 (record_full_save): Add 'self' argument.
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12711 * target.h (struct target_ops) <to_info_record>: Add argument.
12712 * target.c (target_info_record): Add argument.
12713 * record.c (info_record_command): Add argument.
12714 * record-full.c (record_full_info): Add 'self' argument.
12715 * record-btrace.c (record_btrace_info): Add 'self' argument.
12717 2014-02-19 Tom Tromey <tromey@redhat.com>
12719 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12720 * target.c (target_stop_recording): Add argument.
12721 * record.c (record_stop): Add argument.
12722 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12725 2014-02-19 Tom Tromey <tromey@redhat.com>
12727 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12728 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12729 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12731 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12732 (_initialize_amd64_linux_nat): Use it.
12733 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12734 (_initialize_i386_linux_nat): Use it.
12736 2014-02-19 Tom Tromey <tromey@redhat.com>
12738 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12739 * target.c (target_teardown_btrace): Add argument.
12740 * remote.c (remote_teardown_btrace): Add 'self' argument.
12741 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12743 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12748 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12749 * target.c (target_disable_btrace): Add argument.
12750 * remote.c (remote_disable_btrace): Add 'self' argument.
12751 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12753 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12758 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12759 * target.c (target_enable_btrace): Add argument.
12760 * remote.c (remote_enable_btrace): Add 'self' argument.
12761 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12763 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12766 2014-02-19 Tom Tromey <tromey@redhat.com>
12768 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12769 (target_can_use_agent): Add argument.
12770 * target.c (update_current_target): Update.
12771 * remote.c (remote_can_use_agent): Add 'self' argument.
12772 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12774 2014-02-19 Tom Tromey <tromey@redhat.com>
12776 * target.h (struct target_ops) <to_use_agent>: Add argument.
12777 (target_use_agent): Add argument.
12778 * target.c (update_current_target): Update.
12779 * remote.c (remote_use_agent): Add 'self' argument.
12780 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12782 2014-02-19 Tom Tromey <tromey@redhat.com>
12784 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12785 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12786 (target_traceframe_info): Add argument.
12787 * target.c (update_current_target): Update.
12788 * remote.c (remote_traceframe_info): Add 'self' argument.
12789 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12793 * target.h (target_static_tracepoint_markers_by_strid): Add
12795 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12797 * target.c (update_current_target): Update.
12798 * remote.c (struct target_ops)
12799 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12800 * linux-nat.c (struct target_ops)
12801 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12805 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12807 (target_static_tracepoint_marker_at): Add argument.
12808 * target.c (update_current_target): Update.
12809 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12812 2014-02-19 Tom Tromey <tromey@redhat.com>
12814 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12815 (target_set_permissions): Add argument.
12816 * target.c (update_current_target): Update.
12817 * remote.c (remote_set_permissions): Add 'self' argument.
12818 (remote_start_remote): Update.
12820 2014-02-19 Tom Tromey <tromey@redhat.com>
12822 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12823 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12824 (target_get_tib_address): Add argument.
12825 * target.c (update_current_target): Update.
12826 * remote.c (remote_get_tib_address): Add 'self' argument.
12828 2014-02-19 Tom Tromey <tromey@redhat.com>
12830 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12831 (target_set_trace_notes): Add argument.
12832 * target.c (update_current_target): Update.
12833 * remote.c (remote_set_trace_notes): Add 'self' argument.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12837 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12839 (target_set_trace_buffer_size): Add argument.
12840 * target.c (update_current_target): Update.
12841 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12847 (target_set_circular_trace_buffer): Add argument.
12848 * target.c (update_current_target): Update.
12849 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12854 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12856 (target_set_disconnected_tracing): Add argument.
12857 * target.c (update_current_target): Update.
12858 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12862 * target.h (struct target_ops)
12863 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12864 (target_get_min_fast_tracepoint_insn_len): Add argument.
12865 * target.c (update_current_target): Update.
12866 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12869 2014-02-19 Tom Tromey <tromey@redhat.com>
12871 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12873 (target_get_raw_trace_data): Add argument.
12874 * target.c (update_current_target): Update.
12875 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12877 2014-02-19 Tom Tromey <tromey@redhat.com>
12879 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12881 (target_upload_trace_state_variables): Add argument.
12882 * target.c (update_current_target): Update.
12883 * remote.c (remote_upload_trace_state_variables): Add 'self'
12885 (remote_start_remote): Update.
12887 2014-02-19 Tom Tromey <tromey@redhat.com>
12889 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12891 (target_upload_tracepoints): Add argument.
12892 * target.c (update_current_target): Update.
12893 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12894 (remote_start_remote): Update.
12896 2014-02-19 Tom Tromey <tromey@redhat.com>
12898 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12899 (target_save_trace_data): Add argument.
12900 * target.c (update_current_target): Update.
12901 * remote.c (remote_save_trace_data): Add 'self' argument.
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12905 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12907 * target.h (struct target_ops)
12908 <to_get_trace_state_variable_value>: Add argument.
12909 (target_get_trace_state_variable_value): Add argument.
12910 * target.c (update_current_target): Update.
12911 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12913 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12915 2014-02-19 Tom Tromey <tromey@redhat.com>
12917 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12918 * target.h (struct target_ops) <to_trace_find>: Add argument.
12919 (target_trace_find): Add argument.
12920 * target.c (update_current_target): Update.
12921 * remote.c (remote_trace_find): Add 'self' argument.
12922 * ctf.c (ctf_trace_find): Add 'self' argument.
12924 2014-02-19 Tom Tromey <tromey@redhat.com>
12926 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12927 (target_trace_stop): Add argument.
12928 * target.c (update_current_target): Update.
12929 * remote.c (remote_trace_stop): Add 'self' argument.
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12933 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12934 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12936 (target_get_tracepoint_status): Add argument.
12937 * target.c (update_current_target): Update.
12938 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12940 2014-02-19 Tom Tromey <tromey@redhat.com>
12942 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12943 * target.h (struct target_ops) <to_get_trace_status>: Add
12945 (target_get_trace_status): Add argument.
12946 * target.c (update_current_target): Update.
12947 * remote.c (remote_get_trace_status): Add 'self' argument.
12948 (remote_start_remote, remote_can_download_tracepoint): Update.
12949 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12951 2014-02-19 Tom Tromey <tromey@redhat.com>
12953 * target.h (struct target_ops) <to_trace_start>: Add argument.
12954 (target_trace_start): Add argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_trace_start): Add 'self' argument.
12958 2014-02-19 Tom Tromey <tromey@redhat.com>
12960 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12962 (target_trace_set_readonly_regions): Add argument.
12963 * target.c (update_current_target): Update.
12964 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12971 (target_disable_tracepoint): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12979 (target_enable_tracepoint): Add argument.
12980 * target.c (update_current_target): Update.
12981 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12983 2014-02-19 Tom Tromey <tromey@redhat.com>
12985 * target.h (struct target_ops) <to_download_trace_state_variable>:
12987 (target_download_trace_state_variable): Add argument.
12988 * target.c (update_current_target): Update.
12989 * remote.c (remote_download_trace_state_variable): Add 'self'
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12994 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12996 (target_can_download_tracepoint): Add argument.
12997 * target.c (update_current_target): Update.
12998 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13002 * target.h (struct target_ops) <to_download_tracepoint>: Add
13004 (target_download_tracepoint): Add argument.
13005 * target.c (update_current_target): Update.
13006 * remote.c (remote_download_tracepoint): Add 'self' argument.
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13010 * target.h (struct target_ops) <to_trace_init>: Add argument.
13011 (target_trace_init): Add argument.
13012 * target.c (update_current_target): Update.
13013 * remote.c (remote_trace_init): Add 'self' argument.
13015 2014-02-19 Tom Tromey <tromey@redhat.com>
13017 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13018 * target.c (target_fileio_readlink): Add argument.
13019 * remote.c (remote_hostio_readlink): Add 'self' argument.
13020 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13022 2014-02-19 Tom Tromey <tromey@redhat.com>
13024 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13025 * target.c (target_fileio_unlink): Add argument.
13026 * remote.c (remote_hostio_unlink): Add 'self' argument.
13027 (remote_file_delete): Update.
13028 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13030 2014-02-19 Tom Tromey <tromey@redhat.com>
13032 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13033 * target.c (target_fileio_close): Add argument.
13034 * remote.c (remote_hostio_close): Add 'self' argument.
13035 (remote_hostio_close_cleanup): Update.
13036 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13038 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13040 2014-02-19 Tom Tromey <tromey@redhat.com>
13042 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13043 * target.c (target_fileio_pread): Add argument.
13044 * remote.c (remote_hostio_pread): Add 'self' argument.
13045 (remote_bfd_iovec_pread, remote_file_get): Update.
13046 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13048 2014-02-19 Tom Tromey <tromey@redhat.com>
13050 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13051 * target.c (target_fileio_pwrite): Add argument.
13052 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13053 (remote_file_put): Update.
13054 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13059 * target.c (target_fileio_open): Add argument.
13060 * remote.c (remote_hostio_open): Add 'self' argument.
13061 (remote_bfd_iovec_open): Add 'self' argument.
13062 (remote_file_put): Add 'self' argument.
13063 (remote_file_get): Add 'self' argument.
13064 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13066 2014-02-19 Tom Tromey <tromey@redhat.com>
13068 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13070 (target_can_run_breakpoint_commands): Add argument.
13071 * target.c (update_current_target): Update.
13072 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13074 (remote_insert_breakpoint): Add 'self' argument.
13075 (remote_insert_hw_breakpoint): Add 'self' argument.
13076 (remote_can_run_breakpoint_commands): Add 'self' argument.
13078 2014-02-19 Tom Tromey <tromey@redhat.com>
13080 * target.h (struct target_ops)
13081 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13082 (target_supports_evaluation_of_breakpoint_conditions): Add
13084 * target.c (update_current_target): Update.
13085 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13087 (remote_insert_breakpoint): Add 'self' argument.
13088 (remote_insert_hw_breakpoint): Add 'self' argument.
13089 (remote_supports_cond_breakpoints): Add 'self' argument.
13091 2014-02-19 Tom Tromey <tromey@redhat.com>
13093 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13095 (target_supports_string_tracing): Add argument.
13096 * target.c (update_current_target): Update.
13097 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops)
13102 <to_supports_disable_randomization>: Add argument.
13103 * target.c (find_default_supports_disable_randomization): Add
13105 (target_supports_disable_randomization): Add argument.
13106 (find_default_supports_disable_randomization): Add 'self'
13108 * remote.c (extended_remote_supports_disable_randomization): Add
13110 (remote_supports_disable_randomization): Add 'self' argument.
13111 (extended_remote_create_inferior): Update.
13112 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13115 2014-02-19 Tom Tromey <tromey@redhat.com>
13117 * target.h (struct target_ops)
13118 <to_supports_enable_disable_tracepoint>: Add argument.
13119 (target_supports_enable_disable_tracepoint): Add argument.
13120 * target.c (update_current_target): Update.
13121 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops) <to_supports_multi_process>: Add
13128 (target_supports_multi_process): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_supports_multi_process): Add 'self' argument.
13131 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13133 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13136 2014-02-19 Tom Tromey <tromey@redhat.com>
13138 * target.h (struct target_ops) <to_execution_direction>: Add
13140 (target_execution_direction): Add argument.
13141 * target.c (default_execution_direction): Add 'self' argument.
13142 * record-full.c (record_full_execution_direction): Add 'self'
13145 2014-02-19 Tom Tromey <tromey@redhat.com>
13147 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13149 (target_can_execute_reverse): Add argument.
13150 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13151 * record-full.c (record_full_can_execute_reverse): Add 'self'
13153 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13156 2014-02-19 Tom Tromey <tromey@redhat.com>
13158 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13159 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13161 (target_get_ada_task_ptid): Add argument.
13162 * target.c (update_current_target): Update.
13163 (default_get_ada_task_ptid): Add 'self' argument.
13164 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13165 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13166 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13168 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13170 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13172 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13174 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13175 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13178 2014-02-19 Tom Tromey <tromey@redhat.com>
13180 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13181 (target_goto_bookmark): Add argument.
13182 * target.c (dummy_goto_bookmark): Add 'self' argument.
13183 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13185 2014-02-19 Tom Tromey <tromey@redhat.com>
13187 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13188 (target_get_bookmark): Add argument.
13189 * target.c (dummy_get_bookmark): Add 'self' argument.
13190 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13192 2014-02-19 Tom Tromey <tromey@redhat.com>
13194 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13196 (target_make_corefile_notes): Add argument.
13197 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13198 * procfs.c (procfs_make_note_section): Add 'self' argument.
13199 (procfs_make_note_section): Add 'self' argument.
13200 (procfs_make_note_section): Add 'self' argument.
13201 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13203 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13204 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13205 * exec.c (exec_make_note_section): Add 'self' argument.
13206 (exec_make_note_section): Add 'self' argument.
13208 2014-02-19 Tom Tromey <tromey@redhat.com>
13210 * target.h (struct target_ops) <to_find_memory_regions>: Add
13212 (target_find_memory_regions): Add argument.
13213 * target.c (dummy_find_memory_regions): Add 'self' argument.
13214 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13215 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13216 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13217 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13218 * exec. (exec_do_find_memory_regions): New global.
13219 (exec_set_find_memory_regions): Rewrite.
13220 (exec_find_memory_regions): New function.
13221 (init_exec_ops): Use exec_find_memory_regions.
13223 2014-02-19 Tom Tromey <tromey@redhat.com>
13225 * target.h (struct target_ops) <to_supports_non_stop>: Add
13227 * target.c (find_default_supports_non_stop): Add argument.
13228 (target_supports_non_stop): Add argument.
13229 (find_default_supports_non_stop): Add 'self' argument.
13230 * remote.c (remote_supports_non_stop): Add 'self' argument.
13231 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13233 2014-02-19 Tom Tromey <tromey@redhat.com>
13235 * target.h (struct target_ops) <to_log_command>: Add argument.
13236 (target_log_command): Add argument.
13237 * serial.h (serial_log_command): Add 'self' argument.
13238 * serial.c (serial_log_command): Add 'self' argument.
13240 2014-02-19 Tom Tromey <tromey@redhat.com>
13242 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13243 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13245 (target_pid_to_exec_file): Add argument.
13246 * target.c (debug_to_pid_to_exec_file): Add argument.
13247 (update_current_target): Update.
13248 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13249 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13250 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13251 (linux_handle_extended_wait): Update.
13252 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13253 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13254 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13255 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13257 2014-02-19 Tom Tromey <tromey@redhat.com>
13259 * target.h (struct target_ops) <to_rcmd>: Add argument.
13260 (target_rcmd): Add argument.
13261 * target.c (debug_to_rcmd): Add argument.
13262 (update_current_target, do_monitor_command): Update.
13263 * remote.c (remote_rcmd): Add 'self' argument.
13264 * monitor.c (monitor_rcmd): Add 'self' argument.
13266 2014-02-19 Tom Tromey <tromey@redhat.com>
13268 * windows-nat.c (windows_stop): Add 'self' argument.
13269 * target.h (struct target_ops) <to_stop>: Add argument.
13270 * target.c (target_stop): Add argument.
13271 (debug_to_stop): Add argument.
13272 (update_current_target): Update.
13273 * remote.c (remote_stop): Add 'self' argument.
13274 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13275 (gdbsim_cntrl_c): Update.
13276 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13277 * procfs.c (procfs_stop): Add 'self' argument.
13278 * nto-procfs.c (procfs_stop): Add 'self' argument.
13279 * monitor.c (monitor_stop): Add 'self' argument.
13280 (monitor_open): Update.
13281 * linux-nat.c (linux_nat_stop): Add argument.
13282 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13283 * gnu-nat.c (gnu_stop): Add 'self' argument.
13284 * darwin-nat.c (darwin_stop): Add 'self' argument.
13286 2014-02-19 Tom Tromey <tromey@redhat.com>
13288 * target.h (struct target_ops) <to_thread_name>: Add argument.
13289 * target.c (target_thread_name): Add argument.
13290 (update_current_target): Update.
13291 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13293 2014-02-19 Tom Tromey <tromey@redhat.com>
13295 * target.h (struct target_ops) <to_extra_thread_info>: Add
13297 (target_extra_thread_info): Add argument.
13298 * target.c (update_current_target): Update.
13299 * remote.c (remote_threads_extra_info): Add 'self' argument.
13300 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13302 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13303 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13304 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13306 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13308 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13310 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13313 2014-02-19 Tom Tromey <tromey@redhat.com>
13315 * target.h (struct target_ops) <to_program_signals>: Add argument.
13316 * target.c (target_program_signals): Add argument.
13317 * remote.c (remote_program_signals): Add 'self' argument.
13319 2014-02-19 Tom Tromey <tromey@redhat.com>
13321 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13322 * target.c (target_pass_signals): Add argument.
13323 * remote.c (remote_pass_signals): Add 'self' argument.
13324 (remote_start_remote): Update.
13325 * procfs.c (procfs_pass_signals): Add 'self' argument.
13326 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13327 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13328 (linux_nat_create_inferior, linux_nat_attach): Update.
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13332 * windows-nat.c (windows_can_run): Add 'self' argument.
13333 * target.h (struct target_ops) <to_can_run>: Add argument.
13334 (target_can_run): Add argument.
13335 * target.c (debug_to_can_run): Add argument.
13336 (update_current_target): Update.
13337 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13338 * inf-child.c (inf_child_can_run): Add 'self' argument.
13339 * go32-nat.c (go32_can_run): Add 'self' argument.
13341 2014-02-19 Tom Tromey <tromey@redhat.com>
13343 * target.h (struct target_ops) <to_has_exited>: Add argument.
13344 (target_has_exited): Add argument.
13345 * target.c (debug_to_has_exited): Add argument.
13346 (update_current_target): Update.
13348 2014-02-19 Tom Tromey <tromey@redhat.com>
13350 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13352 (target_set_syscall_catchpoint): Add argument.
13353 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13355 * target.c (update_current_target): Update.
13357 2014-02-19 Tom Tromey <tromey@redhat.com>
13359 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13361 (target_remove_exec_catchpoint): Add argument.
13362 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13363 (update_current_target): Update.
13364 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13367 2014-02-19 Tom Tromey <tromey@redhat.com>
13369 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13371 (target_insert_exec_catchpoint): Add argument.
13372 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13373 (update_current_target): Update.
13374 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13377 2014-02-19 Tom Tromey <tromey@redhat.com>
13379 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13381 (target_remove_vfork_catchpoint): Add argument.
13382 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13383 (update_current_target): Update.
13384 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13387 2014-02-19 Tom Tromey <tromey@redhat.com>
13389 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13391 (target_insert_vfork_catchpoint): Add argument.
13392 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13393 (update_current_target): Update.
13394 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13397 2014-02-19 Tom Tromey <tromey@redhat.com>
13399 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13401 (target_remove_fork_catchpoint): Add argument.
13402 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13403 (update_current_target): Update.
13404 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13407 2014-02-19 Tom Tromey <tromey@redhat.com>
13409 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13411 (target_insert_fork_catchpoint): Add argument.
13412 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13413 (update_current_target): Update.
13414 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13417 2014-02-19 Tom Tromey <tromey@redhat.com>
13419 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13421 (target_post_startup_inferior): Add argument.
13422 * target.c (debug_to_post_startup_inferior): Add argument.
13423 (update_current_target): Update.
13424 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13426 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13428 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13430 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13432 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13434 (super_post_startup_inferior): Likewise.
13435 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13437 (super_post_startup_inferior): Likewise.
13438 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13439 Add 'self' argument.
13440 (super_post_startup_inferior): Likewise.
13442 2014-02-19 Tom Tromey <tromey@redhat.com>
13444 * target.h (struct target_ops) <to_load>: Add argument.
13445 * target.c (target_load): Add argument.
13446 (debug_to_load): Add argument.
13447 (update_current_target): Update.
13448 * remote.c (remote_load): Add 'self' argument.
13449 * remote-sim.c (gdbsim_load): Add 'self' argument.
13450 * remote-mips.c (mips_load): Add 'self' argument.
13451 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13452 * monitor.c (monitor_load): Add 'self' argument.
13453 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13455 2014-02-19 Tom Tromey <tromey@redhat.com>
13457 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13458 (target_terminal_info): Add argument.
13459 * target.c (debug_to_terminal_info): Add argument.
13460 (default_terminal_info): Likewise.
13461 * inflow.c (child_terminal_info): Add 'self' argument.
13462 * inferior.h (child_terminal_info): Add 'self' argument.
13463 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13465 2014-02-19 Tom Tromey <tromey@redhat.com>
13467 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13469 (target_terminal_save_ours): Add argument.
13470 * target.c (debug_to_terminal_save_ours): Add argument.
13471 (update_current_target): Update.
13472 * inflow.c (terminal_save_ours): Add 'self' argument.
13473 * inferior.h (terminal_save_ours): Add 'self' argument.
13475 2014-02-19 Tom Tromey <tromey@redhat.com>
13477 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13478 (target_terminal_ours): Add argument.
13479 * target.c (debug_to_terminal_ours): Add argument.
13480 (update_current_target): Update.
13481 * remote.c (remote_terminal_ours): Add 'self' argument.
13482 (remote_close): Update.
13483 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13484 * inflow.c (terminal_ours): Add 'self' argument.
13485 * inferior.h (terminal_ours): Add 'self' argument.
13486 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13488 2014-02-19 Pedro Alves <palves@redhat.com>
13489 Tom Tromey <tromey@redhat.com>
13491 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13493 (target_terminal_ours_for_output): Add argument.
13494 * target.c (debug_to_terminal_ours_for_output): Add argument.
13495 (update_current_target): Update.
13496 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13497 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13498 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13500 2014-02-19 Tom Tromey <tromey@redhat.com>
13502 * target.h (struct target_ops) <to_terminal_inferior>: Add
13504 * target.c (target_terminal_inferior): Add argument.
13505 (update_current_target): Update.
13506 * remote.c (remote_terminal_inferior): Add 'self' argument.
13507 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13508 * inflow.c (terminal_inferior): Add 'self' argument.
13509 * inferior.h (terminal_inferior): Add 'self' argument.
13510 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13511 (go32_terminal_inferior): Add 'self' argument.
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13515 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13516 (target_terminal_init): Add argument.
13517 * target.c (debug_to_terminal_init): Add argument.
13518 (update_current_target): Update.
13519 * inflow.c (terminal_init_inferior): Add 'self' argument.
13520 * inferior.h (terminal_init_inferior): Add 'self' argument.
13521 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13522 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13524 2014-02-19 Tom Tromey <tromey@redhat.com>
13526 * target.h (struct target_ops)
13527 <to_can_accel_watchpoint_condition>: Add argument.
13528 (target_can_accel_watchpoint_condition): Add argument.
13529 * target.c (debug_to_can_accel_watchpoint_condition): Add
13531 (update_current_target): Update.
13532 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13535 2014-02-19 Tom Tromey <tromey@redhat.com>
13537 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13539 (target_region_ok_for_hw_watchpoint): Add argument.
13540 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13541 (default_region_ok_for_hw_watchpoint): Add argument.
13542 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13543 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13545 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13547 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13549 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13551 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13553 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13555 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13556 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13558 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13559 Add 'self' argument.
13561 2014-02-19 Tom Tromey <tromey@redhat.com>
13563 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13565 (target_insert_watchpoint): Add argument.
13566 * target.c (debug_to_insert_watchpoint): Add argument.
13567 (update_current_target): Update.
13568 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13569 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13570 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13571 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13572 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13573 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13575 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13576 (procfs_insert_hw_watchpoint): Add 'self' argument.
13577 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13579 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13581 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13583 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13584 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13586 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13589 2014-02-19 Tom Tromey <tromey@redhat.com>
13591 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13593 (target_remove_watchpoint): Add argument.
13594 * target.c (debug_to_remove_watchpoint): Add argument.
13595 (update_current_target): Update.
13596 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13597 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13598 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13599 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13600 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13601 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13603 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13604 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13606 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13608 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13610 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13611 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13613 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13616 2014-02-19 Tom Tromey <tromey@redhat.com>
13618 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13620 (target_remove_hw_breakpoint): Add argument.
13621 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13622 (update_current_target): Update.
13623 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13624 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13626 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13627 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13629 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13632 2014-02-19 Tom Tromey <tromey@redhat.com>
13634 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13636 (target_insert_hw_breakpoint): Add argument.
13637 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13638 (update_current_target): Update.
13639 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13640 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13642 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13643 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13644 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13646 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13649 2014-02-19 Tom Tromey <tromey@redhat.com>
13651 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13653 (target_can_use_hardware_watchpoint): Add argument.
13654 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13655 (update_current_target): Update.
13656 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13658 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13660 * remote.c (remote_check_watch_resources): Add 'self' argument.
13661 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13662 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13664 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13665 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13667 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13669 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13671 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13673 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13675 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13677 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13678 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13680 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13683 2014-02-19 Tom Tromey <tromey@redhat.com>
13685 * target.h (struct target_ops) <to_post_attach>: Add argument.
13686 (target_post_attach): Add argument.
13687 * target.c (debug_to_post_attach): Add argument.
13688 (update_current_target): Update.
13689 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13690 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13691 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13692 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13693 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13695 2014-02-19 Tom Tromey <tromey@redhat.com>
13697 * windows-nat.c (windows_close): Add 'self' argument.
13698 * tracepoint.c (tfile_close): Add 'self' argument.
13699 * target.h (struct target_ops) <to_close>: Add argument.
13700 * target.c (target_close): Add argument.
13701 (update_current_target): Update.
13702 * remote.c (remote_close): Add 'self' argument.
13703 * remote-sim.c (gdbsim_close): Add 'self' argument.
13704 * remote-mips.c (mips_close): Add 'self' argument.
13705 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13706 * record-full.c (record_full_close): Add 'self' argument.
13707 * record-btrace.c (record_btrace_close): Add 'self' argument.
13708 * monitor.h (monitor_close): Add 'self' argument.
13709 * monitor.c (monitor_close): Add 'self' argument.
13710 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13711 * linux-nat.c (linux_nat_close): Add argument.
13712 * go32-nat.c (go32_close): Add 'self' argument.
13713 * exec.c (exec_close_1): Add 'self' argument.
13714 * ctf.c (ctf_close): Add 'self' argument.
13715 * corelow.c (core_close): Add 'self' argument.
13716 (core_close_cleanup): Update.
13717 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13718 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13720 2014-02-19 Tom Tromey <tromey@redhat.com>
13722 * remote.c (remote_load): New function.
13723 (init_remote_ops): Use it.
13725 2014-02-19 Tom Tromey <tromey@redhat.com>
13727 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13729 * common/linux-btrace.h (linux_supports_btrace): Update.
13730 * remote.c (remote_supports_btrace): Add "self" argument.
13731 * target-delegates.c: Rebuild.
13732 * target.c (target_supports_btrace): Remove.
13733 * target.h (struct target_ops) <to_supports_btrace>: Add
13734 target_ops argument.
13735 (target_supports_btrace): New define.
13737 2014-02-19 Tom Tromey <tromey@redhat.com>
13739 * record-full.c (record_full_beneath_to_resume_ops)
13740 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13741 (record_full_beneath_to_wait)
13742 (record_full_beneath_to_store_registers_ops)
13743 (record_full_beneath_to_store_registers)
13744 (record_full_beneath_to_xfer_partial_ops)
13745 (record_full_beneath_to_xfer_partial)
13746 (record_full_beneath_to_insert_breakpoint_ops)
13747 (record_full_beneath_to_insert_breakpoint)
13748 (record_full_beneath_to_remove_breakpoint_ops)
13749 (record_full_beneath_to_remove_breakpoint)
13750 (record_full_beneath_to_stopped_by_watchpoint)
13751 (record_full_beneath_to_stopped_data_address)
13752 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13753 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13754 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13755 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13756 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13757 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13758 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13759 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13760 (record_full_resume, record_full_wait_1)
13761 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13762 (record_full_store_registers, record_full_xfer_partial)
13763 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13764 (record_full_async, record_full_core_xfer_partial): Use target
13766 * target-delegates.c: Rebuild.
13767 * target.c (current_xfer_partial): Remove.
13768 (update_current_target): Do not INHERIT or de_fault
13769 to_insert_breakpoint, to_remove_breakpoint,
13770 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13771 to_is_async_p, to_async. Do not set to_xfer_partial field.
13772 (default_xfer_partial): Simplify.
13773 (current_xfer_partial): Remove.
13774 (target_wait, target_resume): Simplify.
13775 (find_default_can_async_p, find_default_is_async_p): Update.
13776 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13777 to_xfer_partial, to_stopped_by_watchpoint,
13778 to_stopped_data_address.
13779 (target_store_registers): Simplify.
13780 (forward_target_remove_breakpoint)
13781 (forward_target_insert_breakpoint): Remove.
13782 (target_remove_breakpoint, target_insert_breakpoint)
13783 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13784 * target.h (struct target_ops) <to_resume, to_wait,
13785 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13786 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13787 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13789 (forward_target_remove_breakpoint)
13790 (forward_target_insert_breakpoint): Remove.
13791 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13793 (record_btrace_insert_breakpoint): Delegate directly.
13795 2014-02-19 Tom Tromey <tromey@redhat.com>
13798 * target-delegates.c: New file.
13799 * target.c: Include target-delegates.c.
13800 (init_dummy_target): Call install_dummy_methods.
13801 (complete_target_initialization): Call install_delegators.
13802 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13803 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13804 * make-target-delegates: New file.
13806 2014-02-19 Tom Tromey <tromey@redhat.com>
13808 * record.c (find_record_target): Use find_target_at.
13809 * target.c (find_target_at): New function.
13810 * target.h (find_target_at): Declare.
13812 2014-02-19 Tom Tromey <tromey@redhat.com>
13814 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13815 Add 'ops' argument.
13816 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13818 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13819 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13821 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13823 * linux-nat.c (save_sigtrap): Update.
13824 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13825 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13826 (linux_nat_close): Update.
13827 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13829 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13831 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13832 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13833 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13834 (tmp_to_async): Add 'ops' argument.
13835 (record_full_stopped_by_watchpoint, record_full_async)
13836 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13838 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13839 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13840 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13841 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13842 (remote_is_async_p, remote_async): Add 'ops' argument.
13843 (remote_stopped_data_address): Update.
13844 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13845 * target.c (update_current_target)
13846 (find_default_can_async_p, find_default_is_async_p): Update.
13847 (init_dummy_target): Update.
13848 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13849 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13850 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13851 (target_can_async_p, target_is_async_p, target_async)
13852 (target_stopped_by_watchpoint): Update.
13854 2014-02-19 Yao Qi <yao@codesourcery.com>
13857 * gdbarch.sh: Remove startup_gdbarch.
13858 * gdbarch.c: Regenerated.
13859 * gdbarch.h: Likewise.
13861 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13863 * rl78-tdep.c (rl78_g10_register_name): New function.
13864 (rl78_return_value): Add g10 support.
13865 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13868 2014-02-17 Doug Evans <xdje42@gmail.com>
13870 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13871 (SUBDIR_GUILE_SRCS): Ditto.
13872 (scm-gsmob.o): Ditto.
13874 2014-02-17 Yao Qi <yao@codesourcery.com>
13876 * gnu-nat.c (ILL_RPC): Declare defined function.
13878 2014-02-17 Yao Qi <yao@codesourcery.com>
13880 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13881 mach_msg_type_number_t.
13882 (gnu_write_inferior): Likewise.
13884 2014-02-17 Yao Qi <yao@codesourcery.com>
13886 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13888 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13889 (inf_validate_procs, inf_signal): Likewise.
13890 (S_exception_raise_request): Likewise.
13891 (do_mach_notify_dead_name): Likewise.
13892 (steal_exc_port): Likewise.
13893 (gnu_read_inferior): Change 'copy_count''s type to
13894 mach_msg_type_number_t.
13895 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13898 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13900 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13901 flag. Adjust all users; in particular...
13902 (gnu_wait): ..., don't decrement its value in here...
13903 (gnu_create_inferior): ..., and instead set the flag in here,
13904 around the startup_inferior call, and call that one with
13905 START_INFERIOR_TRAPS_EXPECTED.
13907 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13908 (ILL_RPC): ... new macro.
13909 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13910 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13911 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13912 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13913 functions with ILL_RPC macro.
13914 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13915 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13916 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13917 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13918 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13919 (S_proc_getlogin_reply, S_proc_getsid_reply)
13920 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13921 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13922 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13923 (S_proc_getnports_reply, S_proc_is_important_reply)
13924 (S_proc_get_code_reply): New stub functions, generated with
13927 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13928 collected the type check structures.
13930 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13932 2014-02-14 Doug Evans <dje@google.com>
13934 * target.c (target_write_partial): Fix result type.
13936 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13938 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13939 the proper offsets to access fpregset_t.
13941 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13943 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13944 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13945 * h8300-tdep.c (setmachinelist): Remove global.
13946 * hppa-tdep.c (hppa_sigtramp): Remove global.
13947 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13948 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13949 * ravenscar-thread.c (update_target_observer): Remove global.
13950 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13952 2014-02-12 Tom Tromey <tromey@redhat.com>
13954 * common/rsp-low.c: Update comments.
13955 * common/rsp-low.h: Update comments.
13957 2014-02-12 Tom Tromey <tromey@redhat.com>
13959 * common/rsp-low.c (convert_ascii_to_int): Remove.
13960 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13962 2014-02-12 Tom Tromey <tromey@redhat.com>
13964 * common/rsp-low.h (unhexify): Don't declare.
13965 * common/rsp-low.c (unhexify): Remove.
13967 2014-02-12 Tom Tromey <tromey@redhat.com>
13969 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13970 * common/rsp-low.c (convert_int_to_ascii): Remove.
13972 2014-02-12 Tom Tromey <tromey@redhat.com>
13974 * common/rsp-low.h (hexify): Don't declare.
13975 * common/rsp-low.c (hexify): Remove.
13977 2014-02-12 Tom Tromey <tromey@redhat.com>
13979 * common/rsp-low.c (hexify): Never take strlen of argument.
13981 2014-02-12 Tom Tromey <tromey@redhat.com>
13983 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13984 * remote.c (extended_remote_run, remote_rcmd)
13985 (remote_download_trace_state_variable, remote_save_trace_data)
13986 (remote_set_trace_notes): Update.
13987 * tracepoint.c (encode_source_string, tfile_write_status)
13988 (tfile_write_uploaded_tsv): Update.
13990 2014-02-12 Tom Tromey <tromey@redhat.com>
13992 * tracepoint.c: Include rsp-low.h.
13993 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13994 * remote.c: Include rsp-low.h.
13995 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13996 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13997 (remote_unescape_input): Move to common/rsp-low.c.
13998 * common/rsp-low.h: New file.
13999 * common/rsp-low.c: New file.
14000 * Makefile.in (SFILES): Add common/rsp-low.c.
14001 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14002 (COMMON_OBS): Add rsp-low.o.
14003 (rsp-low.o): New target.
14005 2014-02-12 Tom Tromey <tromey@redhat.com>
14007 * utils.h: Include print-utils.h.
14008 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14009 (int_string, core_addr_to_string, core_addr_to_string_nz)
14010 (hex_string, hex_string_custom): Don't declare.
14011 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14012 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14013 (hex_string_custom, int_string, core_addr_to_string)
14014 (core_addr_to_string_nz, host_address_to_string): Move to
14015 common/print-utils.c.
14016 * common/print-utils.h: New file.
14017 * common/print-utils.c: New file
14018 * Makefile.in (SFILES): Add common/print-utils.c.
14019 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14020 (COMMON_OBS): Add print-utils.o.
14021 (print-utils.o): New target.
14023 2014-02-12 Tom Tromey <tromey@redhat.com>
14025 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14027 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14029 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14031 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14033 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14034 if a PT_IO ptrace request returns sucessfully but indicates that 0
14035 bytes were transferred.
14037 2014-02-12 Pedro Alves <palves@redhat.com>
14038 Kevin Buettner <kevinb@redhat.com>
14040 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14041 TYPE_INSTANCE_FLAG_CODE_SPACE.
14043 2014-02-12 Pedro Alves <palves@redhat.com>
14045 * h8300-tdep.c (pseudo_from_raw_register)
14046 (raw_from_pseudo_register): New functions.
14047 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14050 2014-02-12 Pedro Alves <palves@redhat.com>
14052 * h8300-tdep.c (h8300_register_sim_regno): New function.
14053 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14054 gdbarch_register_sim_regno hook.
14056 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14058 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14060 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14062 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14064 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14066 * obsd-tdep.h (obsd_init_abi): New prototype.
14067 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14068 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14069 (obsd_init_abi): New functions.
14070 * i386obsd-tdep.c: Include "obsd-tdep.h".
14071 (i386obsd_init_abi): Call obsd_init_abi.
14072 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14073 (amd64obsd_init_abi): Call obsd_init_abi.
14074 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14075 obsd-tdep.c to gdb_target_obs.
14077 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14079 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14080 double float arguments to 16-byte in the argument slots.
14082 2014-02-11 Doug Evans <xdje42@gmail.com>
14084 * configure.ac: Don't crash if pkg-config is not found and guile
14085 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14087 * configure: Regenerate.
14089 2014-02-11 Yao Qi <yao@codesourcery.com>
14091 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14092 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14093 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14094 * gnu-nat.c (gnu_xfer_memory): Likewise.
14095 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14096 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14097 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14098 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14100 2014-02-11 Yao Qi <yao@codesourcery.com>
14102 * target.h (enum target_xfer_error): Rename to ...
14103 (enum target_xfer_status): ... it. New. All users updated.
14104 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14106 (TARGET_XFER_STATUS_ERROR_P): New macro.
14107 (target_xfer_error_to_string): Remove declaration.
14108 (target_xfer_status_to_string): Declare.
14109 (target_xfer_partial_ftype): Adjust it.
14110 (struct target_ops) <to_xfer_partial>: Return
14111 target_xfer_status. Add argument xfered_len. Update
14113 * target.c (target_xfer_error_to_string): Rename to ...
14114 (target_xfer_status_to_string): ... it. New. All callers
14116 (target_read_live_memory): Likewise. Call target_xfer_partial
14117 instead of target_read.
14118 (memory_xfer_live_readonly_partial): Return
14119 target_xfer_status. Add argument xfered_len.
14120 (raw_memory_xfer_partial): Likewise.
14121 (memory_xfer_partial_1): Likewise.
14122 (memory_xfer_partial): Likewise.
14123 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14124 properly. Update debug message.
14125 (default_xfer_partial, current_xfer_partial): Likewise.
14126 (target_write_partial): Likewise.
14127 (target_read_partial): Likewise. All callers updated.
14128 (read_whatever_is_readable): Likewise.
14129 (target_write_with_progress): Likewise.
14130 (target_read_alloc_1): Likewise.
14132 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14133 * auxv.c (procfs_xfer_auxv): Likewise.
14134 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14135 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14136 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14137 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14138 * corefile.c (read_memory): Adjust.
14139 * corelow.c (core_xfer_partial): Likewise.
14140 * ctf.c (ctf_xfer_partial): Likewise.
14141 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14143 (darwin_xfer_partial): Likewise.
14144 * exec.c (section_table_xfer_memory_partial): Likewise. All
14146 (exec_xfer_partial): Likewise.
14147 * exec.h (section_table_xfer_memory_partial): Update
14149 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14151 (gnu_xfer_partial): Likewise.
14152 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14153 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14154 (ia64_hpux_xfer_solib_got): Likewise.
14155 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14156 type of 'partial_len' to ULONGEST.
14157 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14158 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14159 (linux_nat_xfer_partial): Likewise.
14160 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14161 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14162 * monitor.c (monitor_xfer_memory): Likewise.
14163 (monitor_xfer_partial): Likewise.
14164 * procfs.c (procfs_xfer_partial): Likewise.
14165 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14166 * record-full.c (record_full_xfer_partial): Likewise.
14167 (record_full_core_xfer_partial): Likewise.
14168 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14169 (gdbsim_xfer_partial): Likewise.
14170 * remote.c (remote_write_bytes_aux): Likewise. All callers
14172 (remote_write_bytes, remote_read_bytes): Likewise. All
14174 (remote_flash_erase): Likewise. All callers updated.
14175 (remote_write_qxfer): Likewise. All callers updated.
14176 (remote_read_qxfer): Likewise. All callers updated.
14177 (remote_xfer_partial): Likewise.
14178 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14179 (rs6000_xfer_shared_libraries): Likewise.
14180 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14181 (sol_thread_xfer_partial): Likewise.
14182 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14183 (sparc_xfer_partial): Likewise.
14184 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14186 (spu_xfer_partial): Likewise.
14187 * spu-multiarch.c (spu_xfer_partial): Likewise.
14188 * tracepoint.c (tfile_xfer_partial): Likewise.
14189 * windows-nat.c (windows_xfer_memory): Likewise.
14190 (windows_xfer_shared_libraries): Likewise.
14191 (windows_xfer_partial): Likewise.
14192 * valprint.c: Replace 'target_xfer_error' with
14193 'target_xfer_status' in comments.
14195 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14197 Checked in by Joel Brobecker <brobecker@adacore.com>.
14198 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14200 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14202 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14203 function parameters.
14205 2014-02-10 Will Newton <will.newton@linaro.org>
14207 * elfread.c (elf_rel_plt_read): Look for a .got section if
14208 looking up .got.plt fails.
14209 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14210 on address passed to elf_gnu_ifunc_record_cache.
14211 (elf_gnu_ifunc_resolve_addr): Likewise.
14212 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14214 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14216 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14217 (X_RETTURN): New macro.
14218 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14220 * sparc64-tdep.c (sparc64_init_abi): Hook
14221 sparc_in_function_epilogue_p.
14223 2014-02-10 Gary Benson <gbenson@redhat.com>
14225 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14226 Rename name_matcher to symbol_matcher.
14228 2014-02-10 Gary Benson <gbenson@redhat.com>
14230 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14231 Use expand_symtabs_file_matcher_ftype and
14232 expand_symtabs_symbol_matcher_ftype.
14234 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14236 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14237 (struct ada_symbol_cache): New.
14238 (ada_free_symbol_cache): Forward declare.
14239 (struct ada_pspace_data): New.
14240 (ada_pspace_data_handle): New static global.
14241 (get_ada_pspace_data, ada_pspace_data_cleanup)
14242 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14243 (cache_space, cache): Delete, now folded inside struct
14245 (ada_get_symbol_cache): New function.
14246 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14248 (_initialize_ada_language): Remove initialization of cache_space.
14249 Move call to observer_attach_inferior_exit up, grouping it
14250 with the other observer registrations inside this function.
14251 Rename command to be more general. Add call to
14252 register_program_space_data_with_cleanup.
14254 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14256 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14257 ada_new_objfile_observer.
14258 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14259 (_initialize_tasks): Update uses of ada_new_objfile_observer
14260 and ada_tasks_normal_stop_observer.
14262 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14264 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14265 returned by the 'Length attribute to integer.
14267 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14269 * ada-lang.c (_initialize_ada_language): Initialize
14270 cache_space obstack.
14272 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14274 * ada-lang.c (HASH_SIZE): New macro.
14275 (struct cache_entry): New type.
14276 (cache_space, cache): New static globals.
14277 (ada_clear_symbol_cache, find_entry): New functions.
14278 (lookup_cached_symbol, cache_symbol): Implement.
14279 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14280 (_initialize_ada_language): Attach ada_new_objfile_observer
14281 and ada_free_objfile_observer.
14283 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14285 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14286 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14287 struct block * parameter.
14288 (ada_lookup_symbol_list_worker): Constify local variable "block".
14289 Remove cast which is no longer necessary.
14291 2014-02-10 Doug Evans <xdje42@gmail.com>
14293 Add Guile as an extension language.
14294 * NEWS: Mention Guile scripting.
14295 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14296 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14297 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14298 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14299 (CLIBS): Add GUILE_LIBS.
14300 (install-guile): New rule.
14301 (guile.o): New rule.
14302 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14303 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14304 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14305 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14306 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14307 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14308 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14309 * configure.ac: New option --with-guile.
14310 * configure: Regenerate.
14311 * config.in: Regenerate.
14312 * auto-load.c: Remove #include "python/python.h". Add #include
14313 "gdb/section-scripts.h".
14314 (source_section_scripts): Handle Guile scripts.
14315 (_initialize_auto_load): Add name of Guile objfile script to
14316 scripts-directory help text.
14317 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14318 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14319 (struct breakpoint): New member scm_bp_object.
14320 * defs.h (enum command_control_type): New value guile_control.
14321 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14323 (show_user): Update comment.
14324 (_initialize_cli_cmds): Update help text for "show user". Update help
14325 text for max-user-call-depth.
14326 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14328 (multi_line_command_p): Add guile_control.
14329 (print_command_lines): Handle guile_control.
14330 (execute_control_command, recurse_read_control_structure): Ditto.
14331 (process_next_line): Recognize "guile" commands.
14332 * disasm.c (gdb_disassemble_info): Make non-static.
14333 * disasm.h: #include "dis-asm.h".
14334 (struct gdbarch): Add forward decl.
14335 (gdb_disassemble_info): Declare.
14336 * extension.c: #include "guile/guile.h".
14337 (extension_languages): Add guile.
14338 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14339 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14340 * gdbtypes.c (get_unsigned_type_max): New function.
14341 (get_signed_type_minmax): New function.
14342 * gdbtypes.h (get_unsigned_type_max): Declare.
14343 (get_signed_type_minmax): Declare.
14344 * guile/README: New file.
14345 * guile/guile-internal.h: New file.
14346 * guile/guile.c: New file.
14347 * guile/guile.h: New file.
14348 * guile/scm-arch.c: New file.
14349 * guile/scm-auto-load.c: New file.
14350 * guile/scm-block.c: New file.
14351 * guile/scm-breakpoint.c: New file.
14352 * guile/scm-disasm.c: New file.
14353 * guile/scm-exception.c: New file.
14354 * guile/scm-frame.c: New file.
14355 * guile/scm-gsmob.c: New file.
14356 * guile/scm-iterator.c: New file.
14357 * guile/scm-lazy-string.c: New file.
14358 * guile/scm-math.c: New file.
14359 * guile/scm-objfile.c: New file.
14360 * guile/scm-ports.c: New file.
14361 * guile/scm-pretty-print.c: New file.
14362 * guile/scm-safe-call.c: New file.
14363 * guile/scm-string.c: New file.
14364 * guile/scm-symbol.c: New file.
14365 * guile/scm-symtab.c: New file.
14366 * guile/scm-type.c: New file.
14367 * guile/scm-utils.c: New file.
14368 * guile/scm-value.c: New file.
14369 * guile/lib/gdb.scm: New file.
14370 * guile/lib/gdb/boot.scm: New file.
14371 * guile/lib/gdb/experimental.scm: New file.
14372 * guile/lib/gdb/init.scm: New file.
14373 * guile/lib/gdb/iterator.scm: New file.
14374 * guile/lib/gdb/printing.scm: New file.
14375 * guile/lib/gdb/types.scm: New file.
14376 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14377 (VPATH): Add $(GUILE_SRCDIR).
14378 (GUILE_DIR): New variable.
14379 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14380 (all): Add stamp-guile dependency.
14381 (stamp-guile): New rule.
14382 (clean-guile, install-guile, uninstall-guile): New rules.
14383 (install-only): Add install-guile dependency.
14384 (uninstall): Add uninstall-guile dependency.
14385 (clean): Add clean-guile dependency.
14387 2014-02-09 Doug Evans <xdje42@gmail.com>
14389 Revert this patch (which I approved, mea culpa).
14391 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14393 * Makefile.in (all-lib): Remove.
14394 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14396 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14398 Fix Python stack corruption.
14399 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14402 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14404 * Makefile.in (all-lib): Remove.
14405 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14407 2014-02-07 Doug Evans <dje@google.com>
14409 * extension-priv.h (extension_language_script_ops): Add comment.
14410 (extension_language_ops): Add comment.
14411 (active_ext_lang_state): Fix typo in comment.
14413 2014-02-07 Pedro Alves <palves@redhat.com>
14415 PR breakpoints/16292
14416 * infrun.c (handle_signal_stop) <signal arrives while stepping
14417 over a breakpoint>: Switch back to the stepping thread.
14419 2014-02-07 Yao Qi <yao@codesourcery.com>
14421 * target.c (target_xfer_partial): Return zero if LEN is zero.
14423 2014-02-07 Yao Qi <yao@codesourcery.com>
14425 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14426 (ld_so_xfer_auxv): Likewise.
14427 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14428 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14429 * corelow.c (core_xfer_partial): Likewise.
14430 * ctf.c (ctf_xfer_partial): Likewise.
14431 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14432 (darwin_xfer_partial): Likewise.
14433 * exec.c (exec_xfer_partial): Likewise.
14434 * gnu-nat.c (gnu_xfer_partial): Likewise.
14435 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14436 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14437 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14438 * linux-nat.c (linux_xfer_siginfo): Likewise.
14439 (linux_proc_xfer_spu): Likewise.
14440 * procfs.c (procfs_xfer_partial): Likewise.
14441 * record-full.c (record_full_xfer_partial): Likewise.
14442 (record_full_core_xfer_partial): Likewise.
14443 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14444 * remote.c (remote_write_qxfer): Likewise.
14445 (remote_write_qxfer, remote_read_qxfer): Likewise.
14446 (remote_xfer_partial): Likewise.
14447 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14448 (rs6000_xfer_shared_libraries): Likewise.
14449 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14450 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14451 (spu_xfer_partial): Likewise.
14452 * target.c (memory_xfer_partial_1): Likewise.
14453 * tracepoint.c (tfile_xfer_partial): Likewise.
14454 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14455 (windows_xfer_partial): Likewise.
14457 2014-02-07 Yao Qi <yao@codesourcery.com>
14459 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14461 (core_xfer_shared_libraries_aix): Likewise.
14462 * gdbarch.c, gdbarch.h: Regenerated.
14463 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14464 ULONGEST. Change 'len_avail' type to ULONGEST.
14465 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14466 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14468 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14470 2014-02-07 Yao Qi <yao@codesourcery.com>
14472 * corefile.c (memory_error): Get 'exception' from ERR and pass
14473 'exception' to throw_error.
14475 2014-02-06 Doug Evans <xdje42@gmail.com>
14477 * configure.ac (libpython checking): Remove all but python.o from
14478 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14479 * configure: Regenerate.
14481 * Makefile.in (SFILES): Add extension.c.
14482 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14483 (COMMON_OBS): Add extension.o.
14484 * extension.h: New file.
14485 * extension-priv.h: New file.
14486 * extension.c: New file.
14488 * python/python-internal.h: #include "extension.h".
14489 (gdbpy_auto_load_enabled): Declare.
14490 (gdbpy_apply_val_pretty_printer): Declare.
14491 (gdbpy_apply_frame_filter): Declare.
14492 (gdbpy_preserve_values): Declare.
14493 (gdbpy_breakpoint_cond_says_stop): Declare.
14494 (gdbpy_breakpoint_has_cond): Declare.
14495 (void source_python_script_for_objfile): Delete.
14496 * python/python.c: #include "extension-priv.h".
14497 Delete inclusion of "observer.h".
14498 (extension_language_python): Moved here and renamed from
14499 script_language_python in py-auto-load.c.
14500 Redefined to be of type extension_language_defn.
14501 (python_extension_script_ops): New global.
14502 (python_extension_ops): New global.
14503 (struct python_env): New member previous_active.
14504 (restore_python_env): Call restore_active_ext_lang.
14505 (ensure_python_env): Call set_active_ext_lang.
14506 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14508 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14510 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14512 (gdbpy_eval_from_control_command): Renamed from
14513 eval_python_from_control_command, made static. New arg extlang.
14514 (gdbpy_source_script) Renamed from source_python_script, made static.
14516 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14517 result to int. New arg extlang.
14518 (gdbpy_source_objfile_script): Renamed from
14519 source_python_script_for_objfile, made static. New arg extlang.
14520 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14521 static. New args extlang, extlang_printers. Change result type to
14523 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14524 static. New arg extlang. Rename arg printers to extlang_printers
14525 and change type to ext_lang_type_printers *.
14526 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14527 static. Replace argument arg with extlang, extlang_printers.
14528 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14529 (!HAVE_PYTHON, source_python_script): Delete.
14530 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14531 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14532 (!HAVE_PYTHON, start_type_printers): Delete.
14533 (!HAVE_PYTHON, apply_type_printers): Delete.
14534 (!HAVE_PYTHON, free_type_printers): Delete.
14535 (_initialize_python): Delete call to observer_attach_before_prompt.
14536 (finalize_python): Set/restore active extension language.
14537 (gdbpy_finish_initialization) Renamed from
14538 finish_python_initialization, made static. New arg extlang.
14539 (gdbpy_initialized): New function.
14540 * python/python.h: #include "extension.h". Delete #include
14541 "value.h", "mi/mi-cmds.h".
14542 (extension_language_python): Declare.
14543 (GDBPY_AUTO_FILE_NAME): Delete.
14544 (enum py_bt_status): Moved to extension.h and renamed to
14545 ext_lang_bt_status.
14546 (enum frame_filter_flags): Moved to extension.h.
14547 (enum py_frame_args): Moved to extension.h and renamed to
14548 ext_lang_frame_args.
14549 (finish_python_initialization): Delete.
14550 (eval_python_from_control_command): Delete.
14551 (source_python_script): Delete.
14552 (apply_val_pretty_printer): Delete.
14553 (apply_frame_filter): Delete.
14554 (preserve_python_values): Delete.
14555 (gdbpy_script_language_defn): Delete.
14556 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14557 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14559 * auto-load.c: #include "extension.h".
14560 (GDB_AUTO_FILE_NAME): Delete.
14561 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14562 (script_language_gdb): Delete, moved to extension.c and renamed to
14563 extension_language_gdb.
14564 (source_gdb_script_for_objfile): Delete.
14565 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14566 (loaded_script): Change type of language member to
14567 struct extension_language_defn *.
14568 (init_loaded_scripts_info): Initialize
14569 unsupported_script_warning_printed.
14570 (maybe_add_script): Make static. Change type of language arg to
14571 struct extension_language_defn *.
14572 (clear_section_scripts): Reset unsupported_script_warning_printed.
14573 (auto_load_objfile_script_1): Rewrite to use extension language API.
14574 (auto_load_objfile_script): Make public. Remove support-compiled-in
14575 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14576 (source_section_scripts): Rewrite to use extension language API.
14577 (load_auto_scripts_for_objfile): Rewrite to use
14578 auto_load_scripts_for_objfile.
14579 (collect_matching_scripts_data): Change type of language member to
14580 struct extension_language_defn *.
14581 (auto_load_info_scripts): Change type of language arg to
14582 struct extension_language_defn *.
14583 (unsupported_script_warning_print): New function.
14584 (script_not_found_warning_print): Make static.
14585 (_initialize_auto_load): Rewrite construction of scripts-directory
14587 * auto-load.h (struct objfile): Add forward decl.
14588 (struct script_language): Delete.
14589 (struct auto_load_pspace_info): Add forward decl.
14590 (struct extension_language_defn): Add forward decl.
14591 (maybe_add_script): Delete.
14592 (auto_load_objfile_script): Declare.
14593 (script_not_found_warning_print): Delete.
14594 (auto_load_info_scripts): Update prototype.
14595 (auto_load_gdb_scripts_enabled): Declare.
14596 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14597 auto_load_python_scripts_enabled and made public.
14598 (script_language_python): Delete, moved to python.c.
14599 (gdbpy_script_language_defn): Delete.
14600 (info_auto_load_python_scripts): Update to use
14601 extension_language_python.
14603 * breakpoint.c (condition_command): Replace call to
14604 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14605 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14606 with call to breakpoint_ext_lang_cond_says_stop.
14607 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14608 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14609 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14610 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14612 (local_setattro): Print name of extension language with existing
14615 * valprint.c (val_print, value_print): Update to call
14616 apply_ext_lang_val_pretty_printer.
14617 * cp-valprint.c (cp_print_value): Update call to
14618 apply_ext_lang_val_pretty_printer.
14619 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14620 (gdbpy_apply_val_pretty_printer): Renamed from
14621 apply_val_pretty_printer. New arg extlang.
14622 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14624 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14625 extension language API.
14626 * cli/cli-script.c (execute_control_command): Update to call
14627 eval_ext_lang_from_control_command.
14629 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14630 enum ext_lang_bt_status values. Update call to
14631 apply_ext_lang_frame_filter.
14632 (mi_cmd_stack_list_locals): Ditto.
14633 (mi_cmd_stack_list_args): Ditto.
14634 (mi_cmd_stack_list_variables): Ditto.
14635 * mi/mi-main.c: Delete #include "python/python-internal.h".
14636 Add #include "extension.h".
14637 (mi_cmd_list_features): Replace reference to python internal variable
14638 gdb_python_initialized with call to ext_lang_initialized_p.
14640 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14641 Update to use enum ext_lang_frame_args. Update to call
14642 apply_ext_lang_frame_filter.
14643 * python/py-framefilter.c (extract_sym): Update to use enum
14644 ext_lang_bt_status.
14645 (extract_value, py_print_type, py_print_value): Ditto.
14646 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14647 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14648 (py_print_frame): Ditto.
14649 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14650 New arg extlang. Update to use enum ext_lang_bt_status.
14652 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14653 finish_python_initialization. Replace with call to
14654 finish_ext_lang_initialization.
14656 * typeprint.c (do_free_global_table): Update to call
14657 free_ext_lang_type_printers.
14658 (create_global_typedef_table): Update to call
14659 start_ext_lang_type_printers.
14660 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14661 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14662 (type_print_options): Change type of global_printers from "void *"
14663 to "struct ext_lang_type_printers *".
14665 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14666 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14667 (gdbpy_preserve_values): Renamed from preserve_python_values.
14669 (!HAVE_PYTHON, preserve_python_values): Delete.
14671 * utils.c (quit_flag): Delete, moved to extension.c.
14672 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14675 * eval.c: Delete #include "python/python.h".
14676 * main.c: Delete #include "python/python.h".
14678 * defs.h: Update comment.
14680 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14684 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14686 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14689 2014-02-05 Yao Qi <yao@codesourcery.com>
14691 * remote.c (remote_pass_signals): Remove local 'buf' and use
14693 (remote_program_signals): Likewise.
14695 2014-02-05 Yao Qi <yao@codesourcery.com>
14697 * ctf.c: Include "inferior.h" and "gdbthread.h".
14698 (CTF_PID): A new macro.
14699 (ctf_open): Call inferior_appeared and add_thread_silent.
14700 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14701 (ctf_thread_alive): New function.
14702 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14704 2014-02-05 Yao Qi <yao@codesourcery.com>
14708 2013-05-24 Yao Qi <yao@codesourcery.com>
14710 * tracepoint.c (TFILE_PID): Remove.
14711 (tfile_open): Don't add thread and inferior.
14712 (tfile_close): Don't set 'inferior_ptid'. Don't call
14713 exit_inferior_silent.
14714 (tfile_thread_alive): Remove.
14715 (init_tfile_ops): Don't set field 'to_thread_alive' of
14718 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14720 * remote.c (remote_start_remote): Call remote_check_symbols even
14721 if only symbol-file (not file) has been given.
14723 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14725 * gdbarch.sh (skip_entrypoint): New callback.
14726 * gdbarch.c, gdbarch.h: Regenerate.
14727 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14728 * infrun.c (fill_in_stop_func): Likewise.
14729 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14730 (ppc_elfv2_elf_make_msymbol_special): New function.
14731 (ppc_elfv2_skip_entrypoint): Likewise.
14732 (ppc_linux_init_abi): Install them for ELFv2.
14734 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14736 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14737 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14738 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14739 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14740 structures returned in GPRs.
14742 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14744 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14745 offset to the stack parameter list for the ELFv2 ABI.
14747 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14749 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14750 set_gdbarch_convert_from_func_ptr_addr and
14751 set_gdbarch_elf_make_msymbol_special for ELFv1.
14752 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14753 function descriptors on ELFv1.
14754 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14755 set up r12 at function entry.
14757 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14759 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14760 (struct gdbarch_tdep): New member elf_abi.
14762 * rs6000-tdep.c: Include "elf/ppc64.h".
14763 (rs6000_gdbarch_init): Detect ELF ABI version.
14765 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14767 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14768 within a register pair holding a DFP 128-bit value on little-endian.
14769 (ppc64_sysv_abi_return_value_base): Likewise.
14770 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14771 (dfp_pseudo_register_write): Likewise.
14773 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14775 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14776 offset on little-endian when passing _Decimal32.
14777 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14779 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14781 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14782 of the overlapped FP register within the VSX register on little-
14784 (efpr_pseudo_register_write): Likewise.
14786 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14788 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14789 offset on little-endian when passing small structures.
14791 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14793 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14794 (struct ppc64_sysv_argpos): New data structure.
14795 (ppc64_sysv_abi_push_float): Remove.
14796 (ppc64_sysv_abi_push_val): New function.
14797 (ppc64_sysv_abi_push_integer): Likewise.
14798 (ppc64_sysv_abi_push_freg): Likewise.
14799 (ppc64_sysv_abi_push_vreg): Likewise.
14800 (ppc64_sysv_abi_push_param): Likewise.
14801 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14802 (ppc64_sysv_abi_return_value_base): New function.
14803 (ppc64_sysv_abi_return_value): Refactor to use it.
14805 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14807 * NEWS: Document new target powerpc64le-*-linux*.
14809 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14811 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14812 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14814 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14815 register set used in ELF core dumps. Add floating-point register set.
14817 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14819 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14820 dwarf2_to_gdb[] table using symbolic constants. Adjust
14821 penultimate entry from number representing the PC register
14822 to symbolic constant representing the MDR register. Add
14823 constant for the PC register to the end of the table.
14825 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14827 * bsd-kvm.c: Include <sys/param.h>
14829 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14831 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14833 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14835 * ada-lang.h (clear_ada_sym_cache): Delete.
14837 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14839 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14841 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14843 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14844 the sigreturn register save area only if the syscall is
14847 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14849 * valops.c (value_slice): Minor reformatting.
14851 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14853 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14855 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14857 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14858 New static globals.
14859 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14860 (ada_ignore_descriptive_types_p): New static global.
14861 (find_parallel_type_by_descriptive_type): Return immediately
14862 if ada_ignore_descriptive_types_p is set.
14863 (_initialize_ada_language): Register new commands "maintenance
14864 set ada", "maintenance show ada", "maintenance set ada
14865 ignore-descriptive-types" and "maintenance show ada
14866 ignore-descriptive-types".
14867 * NEWS: Add entry for new "maint ada set/show
14868 ignore-descriptive-types" commands.
14870 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14872 * record-btrace.c (record_btrace_close): Call btrace_teardown
14875 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14877 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14880 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14882 * ada-typeprint (type_is_full_subrange_of_target_type):
14884 (print_range): Add parameter bounds_prefered_p. If not set,
14885 try printing range types using the name of their base type.
14886 (print_range_type): Add parameter bounds_prefered_p.
14887 Use it in call to print_range.
14888 (print_array_type, ada_print_type): Update calls to print_range
14889 and print_range_type.
14891 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14893 * ada-typeprint.c (print_array_type, print_choices, print_range)
14894 (print_range_bound, print_dynamic_range_bound, print_range_type):
14895 Remove declaration.
14897 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14899 * ada-typeprint.c (print_range): Add missing empty line
14900 after local declaration.
14902 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14904 * ada-valprint.c (print_optional_low_bound): Get index_type's
14905 target type for as long as it is a TYPE_CODE_RANGE.
14907 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14909 * procfs.c (procfs_make_note_section): Remove assertion and
14910 associated comment.
14912 2014-01-24 Yao Qi <yao@codesourcery.com>
14914 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14915 * corelow.c (get_core_siginfo): Likewise.
14917 2014-01-24 Yao Qi <yao@codesourcery.com>
14919 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14920 ULONGEST. Don't check 'len' is negative.
14921 (remote_write_bytes): Change type of 'len' to ULONGEST.
14923 2014-01-23 Tom Tromey <tromey@redhat.com>
14926 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14927 Handle exception from frame.block.
14928 (FrameVars.fetch_frame_locals): Likewise.
14930 2014-01-23 Tom Tromey <tromey@redhat.com>
14933 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14934 on a NULL pointer. Move "goto error" to correct place.
14936 2014-01-23 Tom Tromey <tromey@redhat.com>
14939 * python/py-framefilter.c (apply_frame_filter): Call
14940 ensure_python_env after computing gdbarch.
14942 2014-01-23 Yao Qi <yao@codesourcery.com>
14944 * target.c (raw_memory_xfer_partial): Change argument type
14945 from void * to gdb_byte *.
14946 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14948 2014-01-22 Doug Evans <dje@google.com>
14950 New gdbserver option --debug-format=timestamp.
14951 * NEWS: Mention it.
14953 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14955 * syscalls/s390x-linux.xml: New file.
14956 * syscalls/s390-linux.xml: New file.
14957 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14958 (XML_SYSCALL_FILENAME_S390X): Likewise.
14959 (op_svc): New enum value for SVC opcode.
14960 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14961 (s390_linux_get_syscall_number): New function.
14962 (s390_gdbarch_init): Register '*get_syscall_number' and the
14963 syscall xml file name.
14964 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14965 "s390-linux.xml" and "s390x-linux.xml".
14966 * NEWS: Announce new feature.
14968 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14970 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14972 2014-01-22 Pedro Alves <palves@redhat.com>
14974 * xtensa-config.c: Include defs.h.
14976 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14978 * common/common-utils.h: Add "ARI:" comment beside __func__
14981 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14983 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14984 documentation a bit.
14986 2014-01-21 Roland McGrath <mcgrathr@google.com>
14988 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14989 * configure: Regenerate.
14990 * aclocal.m4: Regenerate.
14991 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14992 New substituted variables.
14993 (install-strip): New target.
14994 (INSTALL_SCRIPT): New substituted variable.
14995 (FLAGS_TO_PASS): Add it.
14996 (install-only): Use $(INSTALL_SCRIPT) rather than
14997 $(INSTALL_PROGRAM) for gcore.
14999 2014-01-20 Tom Tromey <tromey@redhat.com>
15001 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15004 2014-01-20 Tom Tromey <tromey@redhat.com>
15006 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15007 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15008 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15009 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15010 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15011 (struct cmd_list_element) <flags>: Remove.
15012 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15013 doc_allocated>: New fields.
15014 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15016 * maint.c (maintenance_do_deprecate): Update.
15017 * top.c (execute_command): Update.
15019 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15021 * xtensa-linux-nat.c: Include asm/ptrace.h.
15023 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15025 * Makefile.in (SFILES): Add d-support.c.
15026 (COMMON_OBS): Add d-support.o.
15027 * d-lang.h (d_parse_symbol): Add comment, now defined in
15029 * d-lang.c (parse_call_convention)
15030 (parse_attributes, parse_function_types)
15031 (parse_function_args, parse_type, parse_identifier)
15032 (call_convention_p, d_parse_symbol): Move functions to ...
15033 * d-support.c: ... New file.
15035 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15037 * d-lang.h (d_parse_symbol): Add declaration.
15038 * d-lang.c (extract_identifiers)
15039 (extract_type_info): Remove functions.
15040 (parse_call_convention, parse_attributes)
15041 (parse_function_types, parse_function_args)
15042 (parse_type, parse_identifier, call_convention_p)
15043 (d_parse_symbol): New functions.
15044 (d_demangle): Use d_parse_symbol to demangle D symbols.
15046 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15048 * d-lang.h (struct builtin_d_type): New data type.
15049 (builtin_d_type): Add declaration.
15050 * d-lang.c (d_language_arch_info, build_d_types)
15051 (builtin_d_type): New functions.
15052 (enum d_primitive_types): New data type.
15053 (d_language_defn): Change c_language_arch_info to
15054 d_language_arch_info.
15055 (d_type_data): New static variable.
15056 (_initialize_d_language): Initialize d_type_data.
15058 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15060 * d-lang.h (d_main_name): Add declaration.
15061 * d-lang.c (d_main_name): New function.
15062 * symtab.c (find_main_name): Add call to d_main_name.
15064 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15066 * d-lang.c (d_language_defn): Change macro_expansion_c to
15067 macro_expansion_no.
15069 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15071 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15073 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15075 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15076 gdb_exception" declaration.
15077 * remote.c (getpkt_or_notif_sane): Likewise.
15079 2014-01-17 Doug Evans <dje@google.com>
15081 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15082 function, contents of dirnames_to_char_ptr_vec_append moved here.
15083 (delim_string_to_char_ptr_vec): New function.
15084 (dirnames_to_char_ptr_vec_append): Rewrite.
15085 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15087 2014-01-17 Doug Evans <dje@google.com>
15089 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15091 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15092 #include "common-utils.h".
15093 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15094 * common/vec.h (VEC_ASSERT_PASS): Update.
15095 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15096 (MACH_CHECK_ERROR): Update.
15098 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15100 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15102 * gdbarch.h: Regenerate.
15104 2014-01-16 Tom Tromey <tromey@redhat.com>
15106 * value.c (struct value) <regnum>: Move earlier.
15108 2014-01-16 Tom Tromey <tromey@redhat.com>
15110 * remote.c (extended_remote_create_inferior): Rename from
15111 extended_remote_create_inferior_1. Add "ops" argument. Remove
15112 old implementation.
15114 2014-01-16 Pedro Alves <palves@redhat.com>
15116 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15117 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15120 2014-01-16 Doug Evans <dje@google.com>
15122 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15126 * btrace.h (btrace_thread_flag): New.
15127 (struct btrace_thread_info) <flags>: New.
15128 * record-btrace.c (record_btrace_resume_thread)
15129 (record_btrace_find_thread_to_move, btrace_step_no_history)
15130 (btrace_step_stopped, record_btrace_start_replaying)
15131 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15132 (record_btrace_find_resume_thread): New.
15133 (record_btrace_resume, record_btrace_wait): Extend.
15134 (record_btrace_can_execute_reverse): New.
15135 (record_btrace_open): Fail in non-stop mode.
15136 (record_btrace_set_replay): Split into this, ...
15137 (record_btrace_stop_replaying): ... this, ...
15138 (record_btrace_clear_histories): ... and this.
15139 (init_record_btrace_ops): Init to_can_execute_reverse.
15140 * NEWS: Announce it.
15142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15144 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15145 (forward_target_decr_pc_after_break)
15146 (target_decr_pc_after_break): New.
15147 * target.c (forward_target_decr_pc_after_break)
15148 (target_decr_pc_after_break): New.
15149 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15150 instead of gdbarch_decr_pc_after_break.
15151 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15152 instead of gdbarch_decr_pc_after_break.
15153 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15154 instead of gdbarch_decr_pc_after_break.
15155 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15156 instead of gdbarch_decr_pc_after_break.
15157 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15158 instead of gdbarch_decr_pc_after_break.
15159 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15160 instead of gdbarch_decr_pc_after_break.
15162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15164 * btrace.c: Include regcache.h.
15165 (btrace_add_pc): New.
15166 (btrace_enable): Call btrace_add_pc.
15167 (btrace_is_empty): New.
15168 * btrace.h (btrace_is_empty): New.
15169 * record-btrace.c (require_btrace, record_btrace_info): Call
15172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15174 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15175 Support delta reads.
15176 (linux_disable_btrace): Change return type.
15177 * common/linux-btrace.h (linux_read_btrace): Change parameters
15178 and return type to allow error reporting. Update users.
15179 (linux_disable_btrace): Change return type. Update users.
15180 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15182 (btrace_error): New.
15183 (btrace_block) <begin>: Comment on BEGIN == 0.
15184 * btrace.c (btrace_compute_ftrace): Start from the end of
15186 (btrace_stitch_trace, btrace_clear_history): New.
15187 (btrace_fetch): Read delta trace, return if replaying.
15188 (btrace_clear): Move clear history code to btrace_clear_history.
15189 (parse_xml_btrace): Throw an error if parsing failed.
15190 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15191 and return type to allow error reporting.
15192 (target_read_btrace): Change parameters and return type to allow
15194 * target.c (target_read_btrace): Update.
15195 * remote.c (remote_read_btrace): Support delta reads. Pass
15197 * NEWS: Announce it.
15199 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15201 * record.h (record_btrace_frame_unwind)
15202 (record_btrace_tailcall_frame_unwind): New declarations.
15203 * dwarf2-frame: Include record.h
15204 (dwarf2_frame_cfa): Throw an error for btrace frames.
15205 * record-btrace.c: Include hashtab.h.
15206 (btrace_get_bfun_name): New.
15207 (btrace_call_history): Call btrace_get_bfun_name.
15208 (struct btrace_frame_cache): New.
15210 (bfcache_hash, bfcache_eq, bfcache_new): New.
15211 (btrace_get_frame_function): New.
15212 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15213 (record_btrace_frame_this_id): Compute own id.
15214 (record_btrace_frame_prev_register): Provide PC, throw_error
15215 for all other registers.
15216 (record_btrace_frame_sniffer): Detect btrace frames.
15217 (record_btrace_tailcall_frame_sniffer): New.
15218 (record_btrace_frame_dealloc_cache): New.
15219 (record_btrace_frame_unwind): Add new functions.
15220 (record_btrace_tailcall_frame_unwind): New.
15221 (_initialize_record_btrace): Allocate cache.
15222 * btrace.c (btrace_clear): Call reinit_frame_cache.
15223 * NEWS: Announce it.
15225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15227 * record-btrace.c (record_btrace_set_replay)
15228 (record_btrace_goto_begin, record_btrace_goto_end)
15229 (record_btrace_goto): New.
15230 (init_record_btrace_ops): Initialize them.
15231 * NEWS: Announce it.
15233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15235 * record-btrace.c (record_btrace_find_new_threads)
15236 (record_btrace_thread_alive): New.
15237 (init_record_btrace_ops): Initialize to_find_new_threads and
15240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15242 * record-btrace.c (record_btrace_resume): New.
15243 (record_btrace_wait): New.
15244 (init_record_btrace_ops): Initialize to_wait and to_resume.
15246 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15248 * record-btrace.c (record_btrace_xfer_partial)
15249 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15250 (record_btrace_allow_memory_access): New.
15251 (init_record_btrace_ops): Initialize new methods.
15252 * target.c (raw_memory_xfer_partial): Bail out if target reports
15253 that this memory is not available.
15255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15257 * target.h (target_ops) <to_insert_breakpoint>
15258 <to_remove_breakpoint>: Add target_ops parameter.
15259 (forward_target_insert_breakpoint): New.
15260 (forward_target_remove_breakpoint): New.
15261 (memory_remove_breakpoint, memory_insert_breakpoint):
15262 Add target_ops parameter.
15263 * target.c (target_insert_breakpoint): Split into this and ...
15264 (forward_target_insert_breakpoint): ... this.
15265 (target_remove_breakpoint): Split into this and ...
15266 (forward_target_remove_breakpoint): ... this.
15267 (debug_to_insert_breakpoint): Add target_ops parameter.
15268 Call forward_target_insert_breakpoint.
15269 (debug_to_remove_breakpoint): Add target_ops parameter.
15270 Call forward_target_remove_breakpoint.
15271 (update_current_target): Do not inherit or default to_insert_breakpoint
15272 and to_remove_breakpoint.
15273 * corelow.c (ignore): Add target_ops parameter.
15274 * exec.c (ignore): Add target_ops parameter.
15275 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15276 Add target_ops parameter.
15277 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15278 Add target_ops parameter.
15279 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15280 Add target_ops parameter.
15281 * record-full.c (record_full_beneath_to_insert_breakpoint)
15282 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15283 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15284 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15285 (record_full_core_remove_breakpoint): Add target_ops parameter.
15287 (record_full_beneath_to_insert_breakpoint_ops)
15288 (record_full_beneath_to_remove_breakpoint_ops)
15289 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15290 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15291 tmp_to_remove_breakpoint_ops,
15292 record_full_beneath_to_insert_breakpoint_ops, and
15293 record_full_beneath_to_remove_breakpoint_ops.
15294 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15295 (m32r_remove_breakpoint): Add target_ops parameter.
15296 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15297 Add target_ops parameter.
15298 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15299 Add target_ops parameter.
15301 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15302 Markus Metzger <markus.t.metzger@intel.com>
15304 * record-btrace.c: Include frame-unwind.h.
15305 (record_btrace_frame_unwind_stop_reason)
15306 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15307 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15309 (init_record_btrace_ops): Install it.
15311 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15313 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15316 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15318 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15321 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15323 * frame-unwind.c: Include target.h.
15324 (frame_unwind_try_unwinder): New function with code from ...
15325 (frame_unwind_find_by_frame): ... here. New variable
15326 unwinder_from_target, call also target_get_unwinder)
15327 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15328 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15329 * target.h (struct target_ops): New fields to_get_unwinder and
15330 to_get_tailcall_unwinder.
15331 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15335 * record-btrace.c (record_btrace_fetch_registers)
15336 (record_btrace_store_registers)
15337 (record_btrace_to_prepare_to_store): New.
15338 (init_record_btrace_ops): Add the above.
15340 2014-01-16 Tom Tromey <tromey@redhat.com>
15342 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15343 * target.h (struct target_ops) <to_prepare_to_store>: Add
15345 (target_prepare_to_store): Add argument.
15346 * target.c (debug_to_prepare_to_store): Add argument.
15347 (update_current_target): Update.
15348 * remote.c (remote_prepare_to_store): Add 'self' argument.
15349 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15350 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15351 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15352 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15354 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15355 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15356 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15357 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15358 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15360 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15362 * btrace.h (replay) <replay>: New.
15363 (btrace_is_replaying): New.
15364 * btrace.c (btrace_clear): Free replay iterator.
15365 (btrace_is_replaying): New.
15366 * record-btrace.c (record_btrace_is_replaying): New.
15367 (record_btrace_info): Print insn number if replaying.
15368 (record_btrace_insn_history): Start at replay position.
15369 (record_btrace_call_history): Start at replay position.
15370 (init_record_btrace_ops): Init to_record_is_replaying.
15372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15374 * record-btrace.c (record_btrace_insn_history_range): Include
15376 (record_btrace_insn_history_from): Adjust range.
15377 (record_btrace_call_history_range): Include
15379 (record_btrace_call_history_from): Adjust range.
15380 * NEWS: Announce changes.
15382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15384 * record.h (enum record_print_flag)
15385 <record_print_indent_calls>: New.
15386 * record.c (get_call_history_modifiers): Recognize /c modifier.
15387 (_initialize_record): Document /c modifier.
15388 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15389 Reorder fields. Optionally indent the function name. Update
15391 * NEWS: Announce changes.
15393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15395 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15397 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15399 * btrace.c (ftrace_new_function): Start counting at one.
15400 * record-btrace.c (record_btrace_info): Adjust number of calls
15402 * NEWS: Announce it.
15404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15406 * record-btrace.c (btrace_call_history_insn_range): Print
15407 insn range as [begin, end].
15409 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15411 * btrace.h (struct btrace_func_link): New.
15412 (enum btrace_function_flag): New.
15413 (struct btrace_inst): Rename to ...
15414 (struct btrace_insn): ...this. Update all users.
15415 (struct btrace_func) <ibegin, iend>: Remove.
15416 (struct btrace_func_link): New.
15417 (struct btrace_func): Rename to ...
15418 (struct btrace_function): ...this. Update all users.
15419 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15420 (number, level, flags>: New.
15421 (struct btrace_insn_iterator): Rename to ...
15422 (struct btrace_insn_history): ...this.
15424 (struct btrace_insn_iterator, btrace_call_iterator): New.
15425 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15426 (struct btrace_target_info) <begin, end, level>
15427 <insn_history, call_history>: New.
15428 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15429 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15430 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15431 (btrace_call_number, btrace_call_begin, btrace_call_end)
15432 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15433 (btrace_find_function_by_number, btrace_set_insn_history)
15434 (btrace_set_call_history): New.
15435 * btrace.c (btrace_init_insn_iterator)
15436 (btrace_init_func_iterator, compute_itrace): Remove.
15437 (ftrace_print_function_name, ftrace_print_filename)
15438 (ftrace_skip_file): Change
15439 parameter to const.
15440 (ftrace_init_func): Remove.
15441 (ftrace_debug): Use new btrace_function fields.
15442 (ftrace_function_switched): Also consider gaining and
15443 losing symbol information).
15444 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15445 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15446 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15448 (ftrace_new_function): Move. Remove debug print.
15449 (ftrace_update_lines, ftrace_update_insns): New.
15450 (ftrace_update_function): Check for call, ret, and jump.
15451 (compute_ftrace): Renamed to ...
15452 (btrace_compute_ftrace): ...this. Rewritten to compute call
15454 (btrace_fetch, btrace_clear): Updated.
15455 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15456 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15457 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15458 (btrace_call_number, btrace_call_begin, btrace_call_end)
15459 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15460 (btrace_find_function_by_number, btrace_set_insn_history)
15461 (btrace_set_call_history): New.
15462 * record-btrace.c (require_btrace): Use new btrace thread
15464 (record_btrace_info, btrace_insn_history)
15465 (record_btrace_insn_history, record_btrace_insn_history_range):
15466 Use new btrace thread info fields and new iterator.
15467 (btrace_func_history_src_line): Rename to ...
15468 (btrace_call_history_src_line): ...this. Use new btrace
15469 thread info fields.
15470 (btrace_func_history): Rename to ...
15471 (btrace_call_history): ...this. Use new btrace thread info
15472 fields and new iterator.
15473 (record_btrace_call_history, record_btrace_call_history_range):
15474 Use new btrace thread info fields and new iterator.
15476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15478 * frame.h (frame_id_build_unavailable_stack_special): New.
15479 * frame.c (frame_id_build_unavailable_stack_special): New.
15481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15483 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15484 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15485 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15487 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15488 (i386_insn_is_jump, i386_jmp_p): New.
15489 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15490 insn_is_jump to gdbarch.
15491 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15492 * gdbarch.h: Regenerated.
15493 * gdbarch.c: Regenerated.
15494 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15495 (default_insn_is_jump): New.
15496 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15497 (default_insn_is_jump): New.
15499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15501 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15503 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15504 (btrace_read_type) <btrace_read_new>: Change to ...
15505 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15509 * common/linux-btrace.c (linux_read_btrace): Free trace from
15510 previous iteration.
15512 2014-01-15 Doug Evans <dje@google.com>
15514 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15517 2014-01-15 Tom Tromey <tromey@redhat.com>
15519 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15520 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15521 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15522 (set_objfile_main_name): New function.
15523 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15524 language_of_main>: New fields.
15525 (set_objfile_main_name): Declare.
15526 * symtab.c (find_main_name): Loop over objfiles to find the main
15528 (set_main_name): Now static.
15529 (get_main_info): Add comment.
15530 * symtab.h (set_main_name): Don't declare.
15532 2014-01-15 Tom Tromey <tromey@redhat.com>
15534 * symtab.c (main_progspace_key): New global.
15535 (struct main_info): New.
15536 (name_of_main, language_of_main): Remove.
15537 (get_main_info, main_info_cleanup): New function.
15538 (set_main_name, main_name, main_language): Use get_main_info.
15539 (_initialize_symtab): Initialize main_progspace_key.
15541 2014-01-15 Tom Tromey <tromey@redhat.com>
15543 * dbxread.c (process_one_symbol): Update.
15544 * dwarf2read.c (read_partial_die): Update.
15545 * symfile.c (set_initial_language): Call main_language.
15546 * symtab.c (language_of_main): Now static.
15547 (set_main_name): Add 'lang' parameter.
15548 (find_main_name): Update.
15549 (main_language): New function.
15550 (symtab_observer_executable_changed): Update.
15551 * symtab.h (set_main_name): Update.
15552 (language_of_main): Remove.
15553 (main_language): Declare.
15555 2014-01-15 Tom Tromey <tromey@redhat.com>
15557 * symfile.c (init_entry_point_info): Use new "initialized" field.
15559 * objfiles.h (struct entry_point) <initialized>: New field.
15560 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15561 (struct objfile) <ei>: ...here. Remove.
15562 * objfiles.c (entry_point_address_query): Update.
15564 2014-01-15 Tom Tromey <tromey@redhat.com>
15566 * objfiles.c (entry_point_address_query): Relocate entry point
15568 (objfile_relocate1): Do not relocate entry point address.
15569 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15570 <the_bfd_section_index>: New field.
15571 * symfile.c (init_entry_point_info): Find the entry point's
15574 2014-01-15 Tom Tromey <tromey@redhat.com>
15576 * solib-frv.c (enable_break): Use entry_point_address_query.
15578 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15580 * NEWS: Add note on improved process record-replay on
15581 arm*-linux* targets.
15583 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15585 * arm-tdep.c (enum arm_record_result): New enum.
15586 (arm_record_unsupported_insn): New function.
15587 (arm_record_coproc_data_proc): Removed.
15588 (thumb2_record_ld_st_multiple): New function.
15589 (thumb2_record_ld_st_dual_ex_tbb): New function.
15590 (thumb2_record_data_proc_sreg_mimm): New function.
15591 (thumb2_record_ps_dest_generic): New function.
15592 (thumb2_record_branch_misc_cntrl): New function.
15593 (thumb2_record_str_single_data): New function.
15594 (thumb2_record_ld_mem_hints): New function.
15595 (thumb2_record_ld_word): New function.
15596 (thumb2_record_lmul_lmla_div): New function.
15597 (thumb2_record_decode_insn_handler): New function.
15598 (decode_insn): Add thumb32 instruction handlers.
15600 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15602 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15603 (struct arm_linux_record_tdep): Declare.
15604 (arm_canonicalize_syscall): New function.
15605 (arm_all_but_pc_registers_record): New function.
15606 (arm_linux_syscall_record): New function.
15607 (arm_linux_init_abi): Add syscall recording constructs.
15608 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15609 decoding. (arm_record_coproc_data_proc): Update arm syscall
15611 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15612 <arm_syscall_record>: New field.
15613 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15616 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15618 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15619 register for push instruction recording.
15621 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15623 * arm-tdep.c (thumb_record_misc): Update to correct logical
15624 error while recording ldm, ldmia and pop instructions.
15626 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15628 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15630 2014-01-15 Pedro Alves <palves@redhat.com>
15632 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15633 (go32_resume, go32_fetch_registers, store_register)
15634 (go32_store_registers, go32_prepare_to_store)
15635 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15636 (go32_create_inferior, go32_can_run, go32_terminal_init)
15637 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15640 2014-01-15 Tom Tromey <tromey@redhat.com>
15642 * target.h (async_callback_ftype): New typedef.
15643 (struct target_ops) <to_async>: Use it.
15645 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15647 * python/py-value.c (get_field_type): Remove unnecessary curly
15648 braces for single-statement if block.
15650 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15652 * python/py-type.c (convert_field): Add missing empty line
15653 after declarations.
15655 2014-01-14 Doug Evans <dje@google.com>
15657 * symfile.h (expand_symtabs_matching): Renamed from
15658 expand_partial_symbol_names. Update prototype.
15659 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15660 * symfile.c (expand_symtabs_matching): Renamed from
15661 expand_partial_symbol_names. New args file_matcher, kind.
15662 Rename arg fun to symbol_matcher.
15663 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15664 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15665 ada_expand_partial_symbol_name.
15666 (ada_make_symbol_completion_list): Update to call
15667 expand_symtabs_matching.
15668 (ada_add_global_exceptions): Call expand_symtabs_matching.
15669 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15670 call map_symbol_filenames.
15671 * symtab.c (sources_info): Update to call map_symbol_filenames.
15672 (search_symbols): Call expand_symtabs_matching.
15673 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15674 (default_make_symbol_completion_list_break_on): Update to call
15675 expand_symtabs_matching.
15676 (make_source_files_completion_list): Update to call
15677 map_symbol_filenames.
15679 2014-01-14 Doug Evans <dje@google.com>
15681 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15682 (expand_symtabs_symbol_matcher_ftype): New typedef.
15683 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15684 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15685 * symfile.c (expand_partial_symbol_names): Update to use
15686 expand_symtabs_symbol_matcher_ftype.
15687 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15688 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15689 Arg name_matcher renamed to symbol_matcher.
15690 * psymtab.c (recursively_search_psymtabs): Update to use
15691 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15693 (expand_symtabs_matching_via_partial): Update to use
15694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15695 Arg name_matcher renamed to symbol_matcher.
15697 2014-01-14 Doug Evans <dje@google.com>
15699 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15700 (map_partial_symbol_filenames): Ditto.
15701 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15702 (map_partial_symbol_filenames): Ditto.
15703 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15704 (map_partial_symbol_filenames): Ditto.
15705 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15706 (map_partial_symbol_filenames): Ditto.
15707 * symtab.c: Delete #include "psymtab.h".
15709 2014-01-14 Pedro Alves <palves@redhat.com>
15710 Tom Tromey <tromey@redhat.com>
15712 * infrun.c (use_displaced_stepping): Use find_record_target
15713 instead of RECORD_IS_USED.
15714 (adjust_pc_after_break): Use record_full_is_used instead of
15716 * record-btrace.c (record_btrace_open): Call record_preopen
15717 instead of checking RECORD_IS_USED.
15718 * record-full.c (record_full_shortname)
15719 (record_full_core_shortname): New globals.
15720 (record_full_is_used): New function.
15721 (find_full_open): Call record_preopen instead of checking
15723 (init_record_full_ops): Set the target's shortname to
15724 record_full_shortname.
15725 (init_record_full_core_ops): Set the target's shortname to
15726 record_full_core_shortname.
15727 * record-full.h (record_full_is_used): Declare.
15728 * record.c (find_record_target): Make extern.
15729 (record_preopen): New function.
15730 * record.h (RECORD_IS_USED): Delete macro.
15731 (find_record_target, record_preopen): Declare functions.
15733 2014-01-14 Yao Qi <yao@codesourcery.com>
15735 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15736 'len''s type to ULONGEST.
15737 (core_xfer_shared_libraries_aix): Likewise.
15738 * gdbarch.c, gdbarch.h: Regenerated.
15739 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15740 Change type of 'len' to ULONGEST.
15741 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15742 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15744 2014-01-14 Yao Qi <yao@codesourcery.com>
15746 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15747 type of 'len' to ULONGEST.
15748 (linux_xfer_osdata_processgroups): Likewise.
15749 (linux_xfer_osdata_threads): Likewise.
15750 (linux_xfer_osdata_fds): Likewise.
15751 (linux_xfer_osdata_isockets): Likewise.
15752 (linux_xfer_osdata_shm): Likewise.
15753 (linux_xfer_osdata_sem): Likewise.
15754 (linux_xfer_osdata_msg): Likewise.
15755 (linux_common_xfer_osdata): Likewise.
15756 (struct osdata_type) <getter>: Likewise.
15757 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15760 2014-01-14 Yao Qi <yao@codesourcery.com>
15762 * target.h (target_xfer_partial_ftype): Update.
15763 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15765 * aix-thread.c (aix_thread_xfer_partial): Change type of
15766 argument 'len' to ULONGEST.
15767 * auxv.c (procfs_xfer_auxv): Likewise.
15768 (ld_so_xfer_auxv): Likewise.
15769 (memory_xfer_auxv): Likewise.
15770 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15771 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15772 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15773 * corelow.c (core_xfer_partial): Likewise.
15774 * ctf.c (ctf_xfer_partial): Likewise.
15775 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15777 (darwin_read_dyld_info): Likewise.
15778 (darwin_xfer_partial): Likewise.
15779 * exec.c (section_table_xfer_memory_partial): Likewise.
15780 (exec_xfer_partial): Likewise.
15781 * exec.h (section_table_xfer_memory_partial): Update
15783 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15784 instead of plongest.
15785 (gnu_xfer_partial): Likewise.
15786 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15787 (ia64_hpux_xfer_solib_got): Likewise.
15788 (ia64_hpux_xfer_partial): Likewise.
15789 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15790 * inf-ptrace.c (inf_ptrace_xfer_partial):
15791 * inf-ttrace.c (inf_ttrace_xfer_partial):
15792 * linux-nat.c (linux_xfer_siginfo): Likewise.
15793 (linux_nat_xfer_partial): Likewise.
15794 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15795 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15796 * monitor.c (monitor_xfer_memory): Likewise.
15797 (monitor_xfer_partial): Likewise.
15798 * procfs.c (procfs_xfer_partial): Likewise.
15799 * record-full.c (record_full_xfer_partial): Likewise.
15800 (record_full_core_xfer_partial): Likewise.
15801 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15802 instead of plongest.
15803 (gdbsim_xfer_partial): Likewise.
15804 * remote.c (remote_xfer_partial): Likewise.
15805 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15806 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15808 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15809 (rs6000_xfer_shared_libraries): Likewise.
15810 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15812 (sparc_xfer_partial): Likewise.
15813 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15814 (spu_xfer_partial): Likewise.
15815 * spu-multiarch.c (spu_xfer_partial): Likewise.
15816 * target.c (target_read_live_memory): Likewise.
15817 (memory_xfer_live_readonly_partial): Likewise.
15818 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15819 (target_xfer_partial, default_xfer_partial): Likewise.
15820 (current_xfer_partial): Likewise.
15821 * tracepoint.c (tfile_xfer_partial): Likewise.
15822 * windows-nat.c (windows_xfer_memory): Likewise. Call
15823 pulongest instead of plongest.
15824 (windows_xfer_partial): Likewise.
15825 (windows_xfer_shared_libraries): Likewise.
15827 2014-01-14 Yao Qi <yao@codesourcery.com>
15829 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15830 target_xfer_partial_ftype.
15832 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15836 * valops.c (value_struct_elt_bitpos): New function
15837 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15838 object to 'None' if the field name is an empty string ("").
15839 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15840 attribute to look for a field when 'name' is 'None'.
15841 (get_field_type): New function
15843 2014-01-13 Doug Evans <dje@google.com>
15846 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15847 (try_open_dwop_file): Ditto.
15848 * gdb_bfd.c: #include "vec.h".
15849 (bfdp): New typedef.
15850 (struct gdb_bfd_data): New member included_bfds.
15851 (gdb_bfd_unref): Unref all included bfds.
15852 (gdb_bfd_record_inclusion): New function.
15853 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15855 2014-01-13 Tom Tromey <tromey@redhat.com>
15857 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15859 2014-01-13 Tom Tromey <tromey@redhat.com>
15861 * defs.h (use_windows): Remove.
15862 * gdb.c (main): Update.
15863 * main.c (captured_main, gdb_main): Update.
15864 * main.h (struct captured_main_args) <use_windows>: Remove.
15865 * top.c (use_windows): Remove.
15867 2014-01-13 Tom Tromey <tromey@redhat.com>
15869 * defs.h (deprecated_flush_hook): Remove.
15871 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15874 * linux-thread-db.c (try_thread_db_load): Add parameter
15875 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15876 (try_thread_db_load_from_pdir_1): Move it there from here.
15877 (try_thread_db_load_from_sdir): Update caller.
15878 (try_thread_db_load_from_dir): Move it there from here.
15880 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15882 * regformats/regdat.sh: Always rewrite the register file.
15884 2014-01-13 Pedro Alves <palves@redhat.com>
15886 * Makefile.in (CHECK_HEADERS): New variable.
15887 (check-headers:): New rule.
15889 2014-01-13 Tom Tromey <tromey@redhat.com>
15891 * cli/cli-setshow.c (do_set_command): Update.
15892 * defs.h (deprecated_set_hook): Remove.
15893 * top.c (deprecated_set_hook): Remove.
15895 2014-01-13 Pedro Alves <palves@redhat.com>
15897 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15898 the tracepoint if the PC is a pseudo-register.
15900 2014-01-13 Tom Tromey <tromey@redhat.com>
15902 * defs.h (XCALLOC): Remove.
15903 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15904 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15905 * dwarf2loc.c (allocate_piece_closure): Likewise.
15906 * elfread.c (elf_symfile_segments): Likewise.
15907 (elf_symfile_segments): Likewise.
15908 * gdbtypes.c (copy_type_recursive): Likewise.
15909 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15910 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15911 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15913 * mt-tdep.c (mt_gdbarch_init): Likewise.
15914 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15916 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15917 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15918 * registry.c (registry_alloc_data): Likewise.
15919 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15920 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15921 * serial.c (serial_fdopen_ops): Likewise.
15922 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15924 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15925 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15928 2014-01-13 Tom Tromey <tromey@redhat.com>
15930 * defs.h (XMALLOC): Remove.
15931 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15932 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15933 * cli-out.c (struct ui_out *): Likewise.
15934 * cli/cli-dump.c (add_dump_command): Likewise.
15935 (add_dump_command): Likewise.
15936 * complaints.c (get_complaints): Likewise.
15937 (find_complaint): Likewise.
15938 * dwarf2-frame.c (execute_cfa_program): Likewise.
15939 * dwarf2read.c (abbrev_table_read_table): Likewise.
15940 * gdbarch.sh: Likewise.
15941 * gdbarch.c: Rebuild.
15942 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15943 * interps.c (interp_new): Likewise.
15944 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15945 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15946 * mi/mi-console.c (mi_console_file_new): Likewise.
15947 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15948 * mi/mi-out.c (mi_out_new): Likewise.
15949 * mi/mi-parse.c (mi_parse): Likewise.
15950 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15951 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15952 * observer.c (xalloc_observer_list_node): Likewise.
15953 * regcache.c (regcache_xmalloc_1): Likewise.
15954 * reggroups.c (reggroup_new): Likewise.
15955 (_initialize_reggroup): Likewise.
15956 * registry.c (register_data_with_cleanup): Likewise.
15957 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15958 * ser-base.c (serial_ttystate): Likewise.
15959 * ser-mingw.c (make_pipe_state): Likewise.
15960 * ser-pipe.c (pipe_open): Likewise.
15961 * serial.c (serial_open): Likewise.
15962 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15963 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15964 (tui_alloc_win_info): Likewise.
15965 (tui_add_content_elements): Likewise.
15966 * tui/tui-file.c (tui_file_new): Likewise.
15967 * tui/tui-out.c (tui_out_new): Likewise.
15968 * ui-file.c (mem_file_new): Likewise.
15969 * ui-out.c (push_level): Likewise.
15970 (make_cleanup_ui_out_end): Likewise.
15971 (append_header_to_list): Likewise.
15972 (ui_out_new): Likewise.
15973 * user-regs.c (user_reg_add_builtin): Likewise.
15975 2014-01-13 Tom Tromey <tromey@redhat.com>
15977 * defs.h (XZALLOC): Remove.
15978 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15979 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15980 (get_ada_tasks_inferior_data): Likewise.
15981 * auto-load.c (get_auto_load_pspace_data): Likewise.
15982 * auxv.c (get_auxv_inferior_data): Likewise.
15983 * bfd-target.c (target_bfd_reopen): Likewise.
15984 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15985 (deprecated_insert_raw_breakpoint): Likewise.
15986 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15987 * corelow.c (core_open): Likewise.
15988 * darwin-nat.c (darwin_check_new_threads): Likewise.
15989 (darwin_attach_pid): Likewise.
15990 * dummy-frame.c (dummy_frame_push): Likewise.
15991 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15992 * dwarf2loc.c (allocate_piece_closure): Likewise.
15993 * elfread.c (elf_symfile_segments): Likewise.
15994 * eval.c (ptrmath_type_p): Likewise.
15995 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15996 * gdbtypes.c (alloc_type_arch): Likewise.
15997 (alloc_type_instance): Likewise.
15998 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15999 * inf-child.c (inf_child_can_use_agent): Likewise.
16000 * inflow.c (get_inflow_inferior_data): Likewise.
16001 * infrun.c (save_infcall_suspend_state): Likewise.
16002 * jit.c (jit_reader_load): Likewise.
16003 (get_jit_objfile_data): Likewise.
16004 (get_jit_program_space_data): Likewise.
16005 (jit_object_open_impl): Likewise.
16006 (jit_symtab_open_impl): Likewise.
16007 (jit_block_open_impl): Likewise.
16008 (jit_frame_sniffer): Likewise.
16009 * linux-fork.c (add_fork): Likewise.
16010 * maint.c (make_command_stats_cleanup): Likewise.
16011 * objfiles.c (get_objfile_pspace_data): Likewise.
16012 * opencl-lang.c (struct lval_closure): Likewise.
16013 * osdata.c (osdata_start_osdata): Likewise.
16014 * progspace.c (new_address_space): Likewise.
16015 (add_program_space): Likewise.
16016 * remote-sim.c (get_sim_inferior_data): Likewise.
16017 * sh-tdep.c (sh_gdbarch_init): Likewise.
16018 * skip.c (Ignore): Likewise.
16019 (skip_delete_command): Likewise.
16020 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16021 (library_list_start_library): Likewise.
16022 (solib_aix_current_sos): Likewise.
16023 * solib-darwin.c (get_darwin_info): Likewise.
16024 (darwin_current_sos): Likewise.
16025 * solib-dsbt.c (get_dsbt_info): Likewise.
16026 * solib-ia64-hpux.c (new_so_list): Likewise.
16027 (ia64_hpux_get_solib_linkage_addr): Likewise.
16028 * solib-spu.c (append_ocl_sos): Likewise.
16029 (spu_current_sos): Likewise.
16030 * solib-svr4.c (get_svr4_info): Likewise.
16031 (svr4_keep_data_in_core): Likewise.
16032 (library_list_start_library): Likewise.
16033 (svr4_default_sos): Likewise.
16034 (svr4_read_so_list): Likewise.
16035 * solib-target.c (library_list_start_library): Likewise.
16036 (solib_target_current_sos): Likewise.
16037 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16038 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16039 * symfile.c (default_symfile_segments): Likewise.
16040 * target-descriptions.c (tdesc_data_init): Likewise.
16041 (tdesc_create_reg): Likewise.
16042 (struct tdesc_type *): Likewise.
16043 (tdesc_create_vector): Likewise.
16044 (tdesc_set_struct_size): Likewise.
16045 (struct tdesc_type *): Likewise.
16046 (tdesc_free_feature): Likewise.
16047 (tdesc_create_feature): Likewise.
16048 * windows-nat.c (windows_add_thread): Likewise.
16049 (windows_make_so): Likewise.
16050 * xml-support.c (gdb_xml_body_text): Likewise.
16051 (gdb_xml_create_parser_and_cleanup): Likewise.
16052 (xml_process_xincludes): Likewise.
16053 * xml-syscall.c (allocate_syscalls_info): Likewise.
16054 (syscall_create_syscall_desc): Likewise.
16056 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16058 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16059 function, with code from i386_stap_parse_special_token.
16060 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16061 (i386_stap_parse_special_token): Move code to the two functions
16062 above; simplify it.
16064 2014-01-09 Pedro Alves <palves@redhat.com>
16065 Hui Zhu <hui@codesourcery.com>
16068 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16069 bp_err_string. Don't mark the location shlib_disabled if the
16070 error thrown wasn't a generic or memory error. Catch errors
16071 thrown while inserting breakpoints in overlayed code. Output
16072 error message of software breakpoints.
16073 * remote.c (remote_insert_breakpoint): If this breakpoint has
16074 target-side commands but this stub doesn't support Z0 packets,
16075 throw NOT_SUPPORTED_ERROR error.
16076 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16077 * target.h (target_insert_breakpoint): Extend comment.
16078 (target_insert_hw_breakpoint): Add comment.
16080 2014-01-08 Pedro Alves <palves@redhat.com>
16082 * remote.c (remote_add_thread): Add threads silently if starting
16084 (remote_notice_new_inferior): If in all-stop, and starting up,
16085 don't call notice_new_inferior.
16086 (get_current_thread): New function, factored out from ...
16087 (add_current_inferior_and_thread): ... this. Adjust.
16088 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16089 found any thread, then select the remote's current thread as GDB's
16090 current thread too.
16092 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16094 * NEWS: Create a new section for the next release branch.
16095 Rename the section of the current branch, now that it has
16098 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16100 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16101 * version.in: Bump version to 7.7.50.DATE-cvs.
16103 2014-01-08 Yao Qi <yao@codesourcery.com>
16105 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16106 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16107 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16109 2014-01-08 Yao Qi <yao@codesourcery.com>
16111 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16112 return value of bfd_get_filename to symbol_file_add_from_bfd.
16114 2014-01-08 Pierre Muller <muller@sourceware.org>
16117 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16118 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16119 to prim_record_mininal_symbol_and_info.
16120 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16121 in call to prim_record_minimal_symbol_and_info.
16122 (read_pe_exported_syms): Set index field of section_data.
16124 2014-01-07 Andrew Pinski <apinski@cavium.com>
16126 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16127 * features/aarch64.c: Regenerate.
16129 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16131 * target.c (return_null): Define.
16132 (update_current_target): Use it instead of return_zero for
16133 functions that return a pointer.
16135 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16137 * source.c (add_path): Fix check for duplicated paths in the previously
16140 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16142 * ada-lang.c: Remove duplicated include statements.
16143 * alphabsd-nat.c: Ditto.
16144 * amd64-darwin-tdep.c: Ditto.
16145 * amd64fbsd-nat.c: Ditto.
16146 * auto-load.c: Ditto.
16148 * breakpoint.c: Ditto.
16149 * dbxread.c: Ditto.
16150 * fork-child.c: Ditto.
16151 * gdb_usleep.c: Ditto.
16152 * i386-darwin-tdep.c: Ditto.
16153 * i386fbsd-nat.c: Ditto.
16155 * inferior.c: Ditto.
16156 * jv-lang.c: Ditto.
16157 * linux-nat.c: Ditto.
16158 * linux-tdep.c: Ditto.
16159 * m68kbsd-nat.c: Ditto.
16160 * m68klinux-nat.c: Ditto.
16161 * microblaze-tdep.c: Ditto.
16162 * mips-linux-tdep.c: Ditto.
16163 * mn10300-tdep.c: Ditto.
16164 * nto-tdep.c: Ditto.
16165 * opencl-lang.c: Ditto.
16167 * printcmd.c: Ditto.
16168 * regcache.c: Ditto.
16169 * remote-m32r-sdi.c: Ditto.
16171 * symfile.c: Ditto.
16173 * tilegx-linux-nat.c: Ditto.
16174 * tilegx-tdep.c: Ditto.
16175 * tracepoint.c: Ditto.
16177 * vaxbsd-nat.c: Ditto.
16178 * windows-nat.c: Ditto.
16179 * xtensa-tdep.c: Ditto.
16181 2014-01-07 Yao Qi <yao@codesourcery.com>
16183 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16185 2014-01-07 Yao Qi <yao@codesourcery.com>
16186 Joel Brobecker <brobecker@adacore.com>
16188 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16189 (pdc_write_regs): Likewise.
16190 (fetch_regs_kernel_thread): Likewise.
16191 (store_regs_kernel_thread): Likewise.
16193 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16195 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16196 tagged type objects to their actual type.
16198 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16200 * ada-valprint.c (print_field_values): Add "language" parameter.
16201 Update calls to print_field_values and print_variant_part.
16202 Pass new parameter "language" in call to val_print instead
16203 of "current_language". Replace call to ada_val_print by call
16205 (print_variant_part): Add "language" parameter.
16206 (ada_val_print_struct_union): Update call to print_field_values.
16208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16210 * ada-valprint.c (ui_memcpy): Delete.
16211 (ada_print_floating): Update documentation. Add empty line
16212 between between function documentation and implementation.
16213 Delete variable "buffer". Use ui_file_xstrdup in place of
16214 ui_file_put. Minor adjustments following this change.
16216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16218 * ada-valprint.c (ada_val_print_string): New function,
16219 extracted from ada_val_print_array.
16220 (ada_val_print_array): Replace extracted code by call
16221 to ada_val_print_string followed by a return. Move
16222 "else" branch to the function's top block.
16224 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16226 * ada-valprint.c (ada_val_print_array): Move implementation
16227 down. Rename parameter "offset" and "val" into "offset_aligned"
16228 and "original_value" respectively. Add parameter "offset".
16230 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16232 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16233 re-organizing the code. Change the "???" message printed
16234 when target type is a TYPE_CODE_UNDEF into
16235 "<ref to undefined type>".
16237 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16239 * ada-valprint.c (print_record): Delete, implementation inlined...
16240 (ada_val_print_struct_union): ... here. Remove call to
16241 ada_check_typedef in inlined implementation.
16243 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16245 * ada-valprint.c (ada_val_print_gnat_array): New function,
16246 extracted from ada_val_print_1;
16247 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16248 (ada_val_print_flt, ada_val_print_struct_union)
16249 (ada_val_print_ref): Likewise.
16250 (ada_val_print_1): Delete variables i and elttype.
16251 Replace extracted-out code by call to corresponding
16254 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16256 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16258 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16260 * ada-valprint.c (ada_val_print_1): Replace calls to
16261 ada_val_print_1 by calls to val_print.
16263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16265 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16266 Update calls to self accordingly. Replace calls to c_val_print
16267 by calls to val_print.
16269 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16271 * ada-valprint.c (print_record): Delete declaration.
16272 (adjust_type_signedness, ada_val_print_1): Likewise.
16273 (ada_val_print): Move function implementation down.
16274 (print_variant_part, print_field_values, print_record):
16275 Move function implementation up.
16277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16279 * python/py-type.c (typy_get_name): New function.
16280 (type_object_getset): Add entry for attribute "name".
16281 * NEWS: Add entry mentioning this new attribute.
16283 2014-01-07 Yao Qi <yao@codesourcery.com>
16285 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16288 2014-01-07 Yao Qi <yao@codesourcery.com>
16290 * gnu-nat.c (info_port_rights): Add qualifier const to
16293 2014-01-07 Yao Qi <yao@codesourcery.com>
16295 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16297 2014-01-07 Yao Qi <yao@codesourcery.com>
16299 * gnu-nat.c (make_inf) Update declaration.
16300 (make_inf): Make it static.
16301 (inf_set_traced): Likewise.
16302 (inf_port_to_thread, inf_task_died_status): Likewise.
16304 2014-01-07 Yao Qi <yao@codesourcery.com>
16306 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16308 2014-01-07 Yao Qi <yao@codesourcery.com>
16310 * gnu-nat.c (_initialize_gnu_nat): Declare.
16312 2014-01-07 Yao Qi <yao@codesourcery.com>
16314 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16316 (struct gdbarch_info) <byte_order>: Change type to
16318 <byte_order_for_code>: Likewise.
16319 * gdbarch.c, gdbarch.h: Regenerated.
16321 2014-01-06 Sasha Smundak <asmundak@google.com>
16323 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16325 2014-01-06 Tom Tromey <tromey@redhat.com>
16327 * doublest.c (convert_doublest_to_floatformat): Use const, not
16329 * somread.c (som_symtab_read): Likewise.
16331 2014-01-07 Hui Zhu <hui@codesourcery.com>
16333 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16334 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16335 (gdb_bfd_fopen): Ditto.
16336 (gdb_bfd_openr): Ditto.
16337 (gdb_bfd_openw): Ditto.
16338 (gdb_bfd_openr_iovec): Ditto.
16339 (gdb_bfd_fdopenr): Ditto.
16340 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16341 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16343 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16345 * symfile-mem.c (symbol_file_add_from_memory): Removed
16346 gdb_bfd_stash_filename.
16348 2014-01-03 Doug Evans <dje@google.com>
16350 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16353 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16355 Update year range in copyright notice of all files.
16357 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16359 * top.c (print_gdb_version): Set copyright year to 2014.
16361 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16363 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16365 For older changes see ChangeLog-2013.
16371 version-control: never