1 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
3 * inferior.c (find_inferior_ptid): New function.
4 * inferior.h (find_inferior_ptid): New declaration.
5 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
6 * corelow.c (core_pid_to_str): Same.
7 * darwin-nat.c (darwin_resume): Same.
8 * infrun.c (fetch_inferior_event): Same.
9 (get_inferior_stop_soon): Same.
10 (handle_inferior_event): Same.
11 (handle_signal_stop): Same.
12 * linux-nat.c (resume_lwp): Same.
13 (stop_wait_callback): Same.
14 * mi/mi-interp.c (mi_new_thread): Same.
15 (mi_thread_exit): Same.
16 * proc-service.c (ps_pglobal_lookup): Same.
17 * record-btrace.c (record_btrace_step_thread): Same.
18 * remote-sim.c (gdbsim_close_inferior): Same.
19 (gdbsim_resume): Same.
21 * sol2-tdep.c (sol2_core_pid_to_str): Same.
22 * target.c (memory_xfer_partial_1): Same.
23 (default_thread_address_space): Same.
24 * thread.c (thread_change_ptid): Same.
25 (switch_to_thread): Same.
26 (do_restore_current_thread_cleanup): Same.
28 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
30 * defs.h (gdb_readline): Constify argument.
31 (gdb_readline_wrapper): Same.
32 (command_line_input): Same.
33 (deprecated_readline_hook): Same.
34 * top.c (deprecated_readline_hook): Same.
36 (gdb_readline_wrapper): Same.
37 (command_line_input): Constify argument. Pass prompt_arg to called
38 functions instead of local_prompt, overwriting prompt_arg if necessary.
39 * event-top.h (display_gdb_prompt): Constify argument.
40 * event-top.c (display_gdb_prompt): Same.
41 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
42 if building with Python 3.4 and up.
44 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
46 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
49 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
52 * memattr.c (mem_info_command): Remove "unsigned long" casts.
54 2014-12-13 Doug Evans <xdje42@gmail.com>
56 * utils.c (make_hex_string): Fix off-by-one error.
58 2014-12-13 Joel Brobecker <brobecker@adacore.com>
60 * ada-lang.h (ada_ensure_varsize_limit): Declare.
61 * ada-lang.c (check_size): Remove advance declaration.
62 (ada_ensure_varsize_limit): Renames check_size.
63 Replace calls to check_size by calls to ada_ensure_varsize_limit
65 * ada-valprint.c (ada_val_print_ref): Add call to
66 ada_ensure_varsize_limit. Add comment explaining why.
68 2014-12-13 Joel Brobecker <brobecker@adacore.com>
70 * utils.c (make_hex_string): Replace use of sprintf by use of
73 2014-12-13 Joel Brobecker <brobecker@adacore.com>
75 * compile/compile-object-load.c (link_callbacks_multiple_definition)
76 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
77 newline at end of warning message.
79 2014-12-13 Joel Brobecker <brobecker@adacore.com>
81 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
82 new "EXTRA-ARGS" parameter.
83 * configure.ac: If large-file support is disabled in GDB,
84 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
85 * configure: Regenerate.
87 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
90 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
91 TYPE if not TYPE_CODE_TYPEDEF.
93 2014-12-13 Joel Brobecker <brobecker@adacore.com>
96 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
97 the frame unwinder must either be the dwarf2_frame_unwind
98 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
99 stack_addr is valid before calling get_frame_base. Throw
100 an error if not valid.
102 2014-12-12 Doug Evans <xdje42@gmail.com>
104 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
107 2014-12-12 Doug Evans <xdje42@gmail.com>
109 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
110 All callers updated. Rename arg "namespace" to "symbol_name".
112 2014-12-12 Doug Evans <xdje42@gmail.com>
114 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
115 partial_map_symtabs_matching_filename. All uses updated.
116 (psym_find_pc_sect_compunit_symtab): Renamed from
117 find_pc_sect_compunit_symtab_from_partial. All uses updated.
118 Add function comment.
119 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
120 All uses updated. Add function comment.
121 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
122 Add function comment.
123 (psym_find_last_source_symtab): Renamed from
124 find_last_source_symtab_from_partial. All uses updated.
125 Add function comment.
126 (psym_forget_cached_source_info): Renamed from
127 forget_cached_source_info_partial. All uses updated.
128 Add function comment.
129 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
130 All uses updated. Add function comment.
131 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
132 updated. Add function comment.
133 (psym_expand_symtabs_for_function): Renamed from
134 read_symtabs_for_function. All uses updated. Update function comment.
135 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
136 All uses updated. Add function comment.
137 (psym_expand_symtabs_with_fullname): Renamed from
138 read_psymtabs_with_fullname. All uses updated. Add function comment.
139 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
140 All uses updated. Add function comment.
141 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
143 (psym_expand_symtabs_matching): Renamed from
144 expand_symtabs_matching_via_partial. All uses updated.
145 Add function comment.
146 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
147 Add function comment.
149 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
150 Jan Kratochvil <jan.kratochvil@redhat.com>
151 Tom Tromey <tromey@redhat.com>
154 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
156 * p-lang.c (pascal_language_defn): Update.
157 * opencl-lang.c (opencl_language_defn): Update.
158 * objc-lang.c (objc_language_defn): Update.
159 * m2-lang.c (m2_language_defn): Update.
160 * language.h (struct language_defn) <la_get_compile_instance,
161 la_compute_program>: New fields.
162 * language.c (unknown_language_defn, auto_language_defn)
163 (local_language_defn): Update.
164 * jv-lang.c (java_language_defn): Update.
165 * go-lang.c (go_language_defn): Update.
166 * f-lang.c (f_language_defn): Update.
167 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
168 * dwarf2loc.c (dwarf2_compile_property_to_c)
169 (locexpr_generate_c_location, loclist_generate_c_location): New
171 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
172 * defs.h (enum compile_i_scope_types): New.
173 (enum command_control_type) <compile_control>: New constant.
174 (struct command_line) <control_u>: New field.
175 * d-lang.c (d_language_defn): Update.
176 * compile/compile.c: New file.
177 * compile/compile-c-support.c: New file.
178 * compile/compile-c-symbols.c: New file.
179 * compile/compile-c-types.c: New file.
180 * compile/compile.h: New file.
181 * compile/compile-internal.h: New file.
182 * compile/compile-loc2c.c: New file.
183 * compile/compile-object-load.c: New file.
184 * compile/compile-object-load.h: New file.
185 * compile/compile-object-run.c: New file.
186 * compile/compile-object-run.h: New file.
187 * cli/cli-script.c (multi_line_command_p, print_command_lines)
188 (execute_control_command, process_next_line)
189 (recurse_read_control_structure): Handle compile_control.
190 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
191 * c-lang.c (c_language_defn, cplus_language_defn)
192 (asm_language_defn, minimal_language_defn): Update.
193 * ada-lang.c (ada_language_defn): Update.
194 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
196 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
197 (HFILES_NO_SRCDIR): Add compile.h.
198 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
199 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
200 (compile.o, compile-c-types.o, compile-c-symbols.o)
201 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
202 (compile-c-support.o): New targets.
204 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * s390-linux-tdep.c (s390_gcc_target_options): New function.
207 (s390_gdbarch_init): Add it to gdbarch.
209 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
211 * linux-tdep.c: Include objfiles.h and infcall.h.
212 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
214 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
216 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
218 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
219 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
220 translate_register. Now public.
221 (dwarf2_compile_expr_to_ax): Update.
223 2014-12-12 Tom Tromey <tromey@redhat.com>
224 Jan Kratochvil <jan.kratochvil@redhat.com>
226 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
227 (dwarf_expr_frame_base): Update caller.
228 (dwarf_expr_frame_base_1): Rename to ...
229 (func_get_frame_base_dwarf_block): ... this and make it public.
230 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
232 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
234 2014-12-12 Tom Tromey <tromey@redhat.com>
236 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
238 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
239 dwarf2_compile_cfa_to_ax.
240 (dwarf2_compile_cfa_to_ax): Remove.
241 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
242 (dwarf2_compile_cfa_to_ax): Remove.
244 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
246 * infcall.h (call_function_by_hand_dummy): Declare.
247 * infcall.c (call_function_by_hand): Use
248 call_function_by_hand_dummy.
249 (call_function_by_hand_dummy): Rename from call_function_by_hand.
250 Add arguments. Register a destructor.
252 2014-12-12 Tom Tromey <tromey@redhat.com>
253 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * osabi.h (osabi_triplet_regexp): Declare.
256 * osabi.c (struct osabi_names): New.
257 (gdb_osabi_names): Change type to struct osabi_names. Update
259 (gdbarch_osabi_name): Update.
260 (osabi_triplet_regexp): New function.
261 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
262 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
263 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
264 set_gdbarch_gnu_triplet_regexp.
265 * gdbarch.sh (gnu_triplet_regexp): New method.
266 * gdbarch.c, gdbarch.h: Rebuild.
267 * arch-utils.h (default_gnu_triplet_regexp): Declare.
268 * arch-utils.c (default_gnu_triplet_regexp): New function.
270 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
272 * arch-utils.c (default_infcall_mmap)
273 (default_gcc_target_options): New functions.
274 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
275 (GDB_MMAP_PROT_EXEC): Define.
276 (default_infcall_mmap, default_gcc_target_options): Declare.
277 * gdbarch.h: Rebuild.
278 * gdbarch.c: Rebuild.
279 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
281 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
283 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
285 (pop_dummy_frame): Call the destructor if it exists.
286 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
288 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
289 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
291 2014-12-12 Tom Tromey <tromey@redhat.com>
293 * gdbtypes.h (make_unqualified_type): Declare.
294 * gdbtypes.c (make_unqualified_type): New function.
296 2014-12-12 Tom Tromey <tromey@redhat.com>
298 * ui-file.h (ui_file_write_for_put): Declare.
299 * ui-file.c (ui_file_write_for_put): New function.
300 * mi/mi-out.c (do_write): Remove.
301 (mi_out_put): Use ui_file_write_for_put.
303 2014-12-12 Doug Evans <dje@google.com>
305 * NEWS: Mention gdb.lookup_objfile.
306 * python/python.c (GdbMethods): Add lookup_objfile.
307 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
308 * python/py-objfile.c: #include "symtab.h".
309 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
310 (objfpy_lookup_objfile_by_name): New function.
311 (objfpy_lookup_objfile_by_build_id): New function.
312 (gdbpy_lookup_objfile): New function.
314 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
316 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
317 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
318 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
320 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
323 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
325 * completer.c: Include "target.h", "reggroups.h", and
327 (reg_or_group_completer): New.
328 * completer.h (reg_or_group_completer): Declare.
329 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
330 the "info registers" and "info all-registers" commands and the
331 dbx-mode "lr" command.
333 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
335 * user-regs.c: Include "arch-utils.h", "command.h", and
337 (maintenance_print_user_registers): New.
338 (_initialize_user_regs): Register new "maint print user-registers"
340 * NEWS: Mention new GDB command "maint print user-registers".
342 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
343 Maciej W. Rozycki <macro@mips.com>
344 Pedro Alves <pedro@codesourcery.com>
346 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
347 remove `predefault' and `invalid_p' initializers.
348 (make_symbol_special): New architecture method.
349 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
350 (objfile, symbol): New declarations.
351 * arch-utils.h (default_elf_make_msymbol_special): Remove
353 (default_make_symbol_special): New prototype.
354 (default_adjust_dwarf2_addr): Likewise.
355 (default_adjust_dwarf2_line): Likewise.
356 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
357 * arch-utils.c (default_elf_make_msymbol_special): Remove
359 (default_make_symbol_special): New function.
360 (default_adjust_dwarf2_addr): Likewise.
361 (default_adjust_dwarf2_line): Likewise.
362 * dwarf2-frame.c (decode_frame_entry_1): Call
363 `gdbarch_adjust_dwarf2_addr'.
364 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
365 * dwarf2read.c (create_addrmap_from_index): Likewise.
366 (process_psymtab_comp_unit_reader): Likewise.
367 (add_partial_symbol): Likewise.
368 (add_partial_subprogram): Likewise.
369 (process_full_comp_unit): Likewise.
370 (read_file_scope): Likewise.
371 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
372 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
373 (read_call_site_scope): Likewise.
374 (dwarf2_ranges_read): Likewise.
375 (dwarf2_record_block_ranges): Likewise.
376 (read_attribute_value): Likewise.
377 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
378 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
379 * elfread.c (elf_symtab_read): Don't call
380 `gdbarch_elf_make_msymbol_special' if unset.
381 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
382 the ISA bit from the PC.
383 * mips-tdep.c (mips_unmake_compact_addr): New function.
384 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
385 address appropriately.
386 (mips_make_symbol_special): New function.
387 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
388 (mips_pc_is_mips16): Likewise.
389 (mips_pc_is_micromips): Likewise.
390 (mips_pc_isa): Likewise.
391 (mips_adjust_dwarf2_addr): New function.
392 (mips_adjust_dwarf2_line): Likewise.
393 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
394 (mips_addr_bits_remove): Likewise.
395 (mips_skip_trampoline_code): Likewise.
396 (mips_write_pc): Don't set the ISA bit.
397 (mips_eabi_push_dummy_call): Likewise.
398 (mips_o64_push_dummy_call): Likewise.
399 (mips_gdbarch_init): Install `mips_make_symbol_special',
400 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
402 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
403 target-specific symbol address adjustments.
404 * gdbarch.h: Regenerate.
405 * gdbarch.c: Regenerate.
407 2014-12-12 Yao Qi <yao@codesourcery.com>
410 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
411 'skip_pc'. Remove code skipping prologue instructions, use
412 arm_analyze_prologue instead.
413 (arm_analyze_prologue): Stop the scanning for unrecognized
414 instruction when skipping prologue.
416 2014-12-12 Yao Qi <yao@codesourcery.com>
418 * arm-tdep.c (arm_instruction_restores_sp): New function.
419 (arm_analyze_prologue): Call arm_instruction_restores_sp.
420 (arm_in_function_epilogue_p): Move code to
421 arm_instruction_restores_sp.
423 2014-12-11 Doug Evans <xdje42@gmail.com>
425 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
427 2014-12-11 Doug Evans <xdje42@gmail.com>
429 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
430 (symbol *lookup_symbol_via_quick_fns): Ditto.
431 (lookup_symbol_in_objfile): Add forward decl.
432 (lookup_global_symbol_from_objfile): Simplify, call
433 lookup_symbol_in_objfile.
435 2014-12-11 Doug Evans <xdje42@gmail.com>
437 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
439 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
442 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
443 it is marked as persistent.
445 2014-12-10 Doug Evans <xdje42@gmail.com>
447 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
448 closer to its subroutines.
450 2014-12-10 Doug Evans <xdje42@gmail.com>
452 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
454 2014-12-10 Doug Evans <xdje42@gmail.com>
456 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
457 * cp-support.c (cp_lookup_symbol_imports): Delete.
459 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
462 * target.c (cleanup_restore_target_terminal): New function.
463 (make_cleanup_restore_target_terminal): New function.
464 * target.h (make_cleanup_restore_target_terminal): New declaration.
465 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
467 2014-12-08 Doug Evans <dje@google.com>
469 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
471 2014-12-08 Doug Evans <dje@google.com>
473 * NEWS: Mention gdb.Objfile.owner.
474 * python/py-objfile.c (objfpy_get_owner): New function.
475 (objfile_getset): Add "owner".
477 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
479 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
480 (lookup_global_symbol_from_objfile): Call it.
482 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Remove const from struct objfile *.
485 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
486 symtab.c, symtab.h: In these files.
488 2014-12-05 Andreas From <andreas.from@ericsson.com>
490 * MAINTAINERS (Write After Approval): Add "Andreas From"
492 2014-12-05 Doug Evans <xdje42@gmail.com>
496 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
498 2014-12-04 Doug Evans <dje@google.com>
500 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
501 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
502 (objfile_getset): Add "add_separate_debug_file".
504 2014-12-04 Doug Evans <dje@google.com>
506 * NEWS: Mention gdb.Objfile.build_id.
507 * build-id.c (build_id_bfd_get): Make non-static.
508 * build-id.h (build_id_bfd_get): Add declaration.
509 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
510 (OBJFPY_REQUIRE_VALID): New macro.
511 (objfpy_get_build_id): New function.
512 (objfile_getset): Add "build_id".
513 * utils.c (make_hex_string): New function.
514 * utils.h (make_hex_string): Add declaration.
516 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
518 * block.c (block_lookup_symbol_primary): New function.
519 * block.h (block_lookup_symbol_primary): New declaration.
520 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
521 Call block_lookup_symbol_primary.
523 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
525 * tramp-frame.h (tramp_frame): Add `validate' member.
526 * tramp-frame.c (tramp_frame_start): Validate trampoline before
528 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
529 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
530 (mips_linux_o32_sigframe): Initialize `validate' member.
531 (mips_linux_o32_rt_sigframe): Likewise.
532 (mips_linux_n32_rt_sigframe): Likewise.
533 (mips_linux_n64_rt_sigframe): Likewise.
534 (micromips_linux_o32_sigframe): New variable.
535 (micromips_linux_o32_rt_sigframe): Likewise.
536 (micromips_linux_n32_rt_sigframe): Likewise.
537 (micromips_linux_n64_rt_sigframe): Likewise.
538 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
539 (mips_linux_n32n64_sigframe_init): Likewise.
540 (mips_linux_sigframe_validate): New function.
541 (micromips_linux_sigframe_validate): Likewise.
542 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
544 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
546 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
547 * sparc-sol2-tdep.c: Include "regset.h".
548 (sparc32_sol2_supply_core_gregset): New function.
549 (sparc32_sol2_collect_core_gregset): Likewise.
550 (sparc32_sol2_supply_core_fpregset): Likewise.
551 (sparc32_sol2_collect_core_fpregset): Likewise.
552 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
553 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
554 tdep->fpregset/sizeof_fpregset.
555 * sparc64-sol2-tdep.c: Include "regset.h".
556 (sparc64_sol2_supply_core_gregset): New function.
557 (sparc64_sol2_collect_core_gregset): Likewise.
558 (sparc64_sol2_supply_core_fpregset): Likewise.
559 (sparc64_sol2_collect_core_fpregset): Likewise.
560 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
561 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
562 tdep->fpregset/sizeof_fpregset.
564 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
566 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
569 2014-12-02 Doug Evans <dje@google.com>
571 * symtab.c (symbol_init_cplus_specific): Delete.
572 (symbol_set_demangled_name): Remove special c++ support.
573 (symbol_get_demangled_name, symbol_set_language): Ditto.
574 * symtab.h (struct cplus_specific): Delete.
575 (struct general_symbol_info) <language_specific>: Remove
578 2014-12-02 Doug Evans <dje@google.com>
581 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
583 2014-12-02 Doug Evans <dje@google.com>
586 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
589 2014-12-02 Doug Evans <dje@google.com>
591 * dwarf2read.c (peek_die_abbrev): Improve error message text.
593 2014-12-02 Doug Evans <dje@google.com>
595 * valops.c (do_search_struct_field): Remove remnant of Chill support.
596 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
598 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
600 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
602 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
604 * NEWS: Mention new Python events.
605 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
606 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
607 (py-infevents.o): New rule.
608 * doc/observer.texi (inferior_call_pre, inferior_call_post)
609 (memory_changed, register_changed): New observers.
610 * infcall.c (call_function_by_hand): Notify observer before and
612 * python/py-event.h (inferior_call_kind): New enum.
613 (emit_inferior_call_event): New prototype.
614 (emit_register_changed_event): New prototype.
615 (emit_memory_changed_event): New prototype.
616 * python/py-events.h (events_object): New registries
617 inferior_call, memory_changed and register_changed.
618 * python/py-evts.c (gdbpy_initialize_py_events): Add the
619 inferior_call, memory_changed and register_changed registries.
620 * python/py-infevents.c: New.
621 * python/py-inferior.c (python_on_inferior_call_pre)
622 (python_on_inferior_call_post, python_on_register_change)
623 (python_on_memory_change): New functions.
624 (gdbpy_initialize_inferior): Attach python handler to new
626 * python/py-infthread.c(gdbpy_create_ptid_object): New.
627 (thpy_get_ptid) Use gdbpy_create_ptid_object.
628 * python/python-internal.h:
629 (gdbpy_create_ptid_object)
630 (gdbpy_initialize_inferior_call_pre_event)
631 (gdbpy_initialize_inferior_call_post_event)
632 (gdbpy_initialize_register_changed_event)
633 (gdbpy_initialize_memory_changed_event): New prototypes.
634 * python/python.c (_initialize_python): Initialize new events.
635 * valops.c (value_assign): Notify register_changed observer.
637 2014-12-02 Doug Evans <dje@google.com>
639 * python/py-infthread.c: Whitespace fixes.
641 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
643 * features/Makefile (s390-te-linux64-expedite): Replace
644 non-existant r14 and r15 by r14l and r15l, respectively.
645 * regformats/s390-te-linux64.dat: Regenerate.
647 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
649 * objfiles.c (allocate_objfile): Remove duplicate comment.
651 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
653 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
654 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
655 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
656 (supply_gregset, supply_fpregset): Remove.
657 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
658 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
661 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
663 Add add-auto-load-scripts-directory.
664 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
665 * auto-load.c (add_auto_load_dir): New function.
666 (_initialize_auto_load): Install it.
668 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
670 Pushed by Joel Brobecker <brobecker@adacore.com>.
671 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
673 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
675 * eval.c (evaluate_subexp): Check that the thread stack temporaries
676 are not already enabled before enabling them.
678 2014-11-29 Yao Qi <yao@codesourcery.com>
680 * arm-tdep.c (arm_analyze_prologue): Move local variables
681 'framereg' and 'framesize' to inner block. Move code to
684 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
686 * eval.c: Include gdbthread.h.
687 (evaluate_subexp): Enable thread stack temporaries before
688 evaluating a complete expression and clean them up after the
689 evaluation is complete.
690 * gdbthread.h: Include common/vec.h.
691 (value_ptr): New typedef.
692 (VEC (value_ptr)): New vector type.
693 (value_vec): New typedef.
694 (struct thread_info): Add new fields stack_temporaries_enabled
695 and stack_temporaries.
696 (enable_thread_stack_temporaries)
697 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
698 (get_last_thread_stack_temporary)
699 (value_in_thread_stack_temporaries): Declare.
700 * gdbtypes.c (class_or_union_p): New function.
701 * gdbtypes.h (class_or_union_p): Declare.
702 * infcall.c (call_function_by_hand): Store return values of class
703 type as temporaries on stack.
704 * thread.c (enable_thread_stack_temporaries): New function.
705 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
706 (get_last_thread_stack_temporary): Likewise.
707 (value_in_thread_stack_temporaries): Likewise.
708 * value.c (value_force_lval): New function.
709 * value.h (value_force_lval): Declare.
711 2014-11-28 Pierre Muller <muller@sourceware.org>
713 Pushed by Joel Brobecker <brobecker@adacore.com>.
714 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
717 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
719 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
720 * config/sparc/linux.mh (NATDEPFILES): Likewise.
721 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
722 * m68klinux-nat.c (fetch_core_registers): Remove.
723 (linux_elf_core_fns): Remove.
724 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
726 2014-11-28 Joel Brobecker <brobecker@adacore.com>
728 * utils.c (gdb_realpath): Rework comment about handling on
731 2014-11-28 Yao Qi <yao@codesourcery.com>
733 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
735 * gnulib/aclocal.m4: Re-generated.
736 * gnulib/config.in: Re-generated.
737 * gnulib/configure: Re-generated.
738 * gnulib/import/Makefile.am: Re-generated.
739 * gnulib/import/Makefile.in: Re-generated.
740 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
741 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
742 * import/basename-lgpl.c: New file.
743 * import/dirname-lgpl.c: New file.
744 * import/dirname.h: New file.
745 * import/m4/dirname.m4: New file.
746 * import/m4/malloc.m4: New file.
747 * import/m4/rename.m4: New file.
748 * import/m4/rmdir.m4: New file.
749 * import/m4/stdio_h.m4: New file.
750 * import/malloc.c: New file.
751 * import/rename.c: New file.
752 * import/rmdir.c: New file.
753 * import/same-inode.h: New file.
754 * import/stdio.c: New file.
755 * import/stdio.in.h: New file.
756 * import/stripslash.c: New file.
758 2014-11-28 Yao Qi <yao@codesourcery.com>
760 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
762 * config.in: Re-generated.
763 * configure: Re-generated.
764 * utils.c (gdb_realpath): Remove code calling realpath,
765 canonicalize_file_name and pathconf.
766 [!_WIN32]: Call canonicalize_file_name.
768 2014-11-28 Yao Qi <yao@codesourcery.com>
770 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
772 * aclocal.m4: Re-generated.
773 * config.in: Re-generated.
774 * configure: Re-generated.
775 * import/Makefile.am: Re-generated.
776 * import/Makefile.in: Re-generated.
777 * import/m4/gnulib-cache.m4: Re-generated.
778 * import/m4/gnulib-comp.m4: Re-generated.
779 * import/canonicalize-lgpl.c: New file.
780 * import/extra/snippet/_Noreturn.h: New file.
781 * import/m4/canonicalize.m4: New file.
782 * import/m4/double-slash-root.m4: New file.
783 * import/m4/eealloc.m4: New file.
784 * import/m4/malloca.m4: New file.
785 * import/m4/nocrash.m4: New file.
786 * import/m4/stdlib_h.m4: New file.
787 * import/malloca.c: New file.
788 * import/malloca.h: New file.
789 * import/malloca.valgrind: New file.
791 2014-11-28 Yao Qi <yao@codesourcery.com>
793 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
794 * config.in, configure: Regenerate.
795 * symfile.c (find_separate_debug_file_by_debuglink): Remove
796 code checking HAVE_LSTAT is defined.
798 2014-11-28 Yao Qi <yao@codesourcery.com>
800 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
802 * gnulib/aclocal.m4: Re-generated.
803 * gnulib/config.in: Re-generated.
804 * gnulib/configure: Re-generated.
805 * gnulib/import/Makefile.am: Re-generated.
806 * gnulib/import/Makefile.in: Re-generated.
807 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
808 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
809 * gnulib/import/lstat.c: New file.
810 * gnulib/import/m4/lstat.m4: New file.
812 2014-11-28 Yao Qi <yao@codesourcery.com>
814 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
815 * config.in, configure: Re-generate.
816 * inf-child.c (inf_child_fileio_readlink): Don't check
817 HAVE_READLINK is defined.
819 2014-11-28 Yao Qi <yao@codesourcery.com>
821 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
822 * gnulib/aclocal.m4: Re-generated.
823 * gnulib/config.in: Likewise.
824 * gnulib/configure: Likewise.
825 * gnulib/import/Makefile.am: Likewise.
826 * gnulib/import/Makefile.in: Likewise.
827 * gnulib/import/m4/gnulib-cache.m4: Likewise.
828 * gnulib/import/m4/gnulib-comp.m4: Likewise.
829 * gnulib/import/dosname.h: New file
830 * gnulib/import/m4/largefile.m4: New file.
831 * gnulib/import/m4/readlink.m4: New file.
832 * gnulib/import/m4/stat.m4: New file.
833 * gnulib/import/readlink.c: New file.
834 * gnulib/import/stat.c: New file.
836 2014-11-26 Mark Wielaard <mjw@redhat.com>
838 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
839 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
841 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
843 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
844 that there can be only one stack adjustment in the prologue
845 with tests to detect specific disallowed stack adjustments.
847 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
849 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
852 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
854 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
855 the instruction as well as reading it from memory.
856 (nios2_match_add): New.
857 (nios2_match_sub): New.
858 (nios2_match_addi): New.
859 (nios2_match_orhi): New.
860 (nios2_match_stw): New.
861 (nios2_match_ldw): New.
862 (nios2_match_rdctl): New.
863 (enum branch_condition): New.
864 (nios2_match_branch): New.
865 (nios2_match_jmpi): New.
866 (nios2_match_calli): New.
867 (nios2_match_jmpr): New.
868 (nios2_match_callr): New.
869 (nios2_match_break): New.
870 (nios2_match_trap): New.
871 (nios2_in_epilogue_p): Rewrite to use new functions.
872 (nios2_analyze_prologue): Likewise.
873 (nios2_skip_prologue): Delete unused local limit_pc.
874 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
875 (nios2_get_next_pc): Rewrite to use new functions.
877 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
879 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
881 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
883 Pushed by Joel Brobecker <brobecker@adacore.com>
884 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
885 elements pi_len by the size of the elements before calling
887 (inf_validate_task_sc): Likewise, and properly deallocate the
890 2014-11-23 Doug Evans <xdje42@gmail.com>
892 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
893 number and name if present. All callers updated.
894 (dump_fn_fieldlists): Fix indentation of args.
896 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
898 * MAINTAINERS (Write After Approval): Add myself.
900 2014-11-23 Joel Brobecker <brobecker@adacore.com>
902 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
903 to a bp_call_dummy breakpoint type.
905 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
907 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
908 registering the signal handler.
910 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
912 * event-top.h (call_stdin_event_handler_again_p): Declare.
913 * event-top.c (call_stdin_event_handler_again_p): Define.
914 (stdin_event_handler): Use it.
915 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
916 handler again if there is pending input following a
919 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
921 Pushed by Joel Brobecker <brobecker@adacore.com>
922 * linux-fork.c (checkpoint_command): Print index of new
923 checkpoint in response message.
925 2014-11-23 Yao Qi <yao@codesourcery.com>
927 * valprint.c (read_string): Move local variables 'found_nul',
928 'chunksize' and 'limit' to inner scope. Update comments.
930 2014-11-22 Doug Evans <xdje42@gmail.com>
932 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
934 (search_symbols): Fix comments and whitespace.
936 2014-11-22 Doug Evans <xdje42@gmail.com>
938 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
940 2014-11-21 Doug Evans <dje@google.com>
942 * psymtab.c (psymtab_search_name): Fix whitespace.
944 2014-11-21 Yao Qi <yao@codesourcery.com>
946 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
948 * gnulib/import/Makefile.am: Re-generated.
949 * gnulib/import/Makefile.in: Likewise.
950 * gnulib/import/m4/gnulib-cache.m4: Likewise.
952 2014-11-21 Yao Qi <yao@codesourcery.com>
954 * gdb_wchar.h: Include wchar.h and wctype.h.
955 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
956 include wchar.h and wctype.h.
957 Don't check HAVE_WCHAR_H.
959 2014-11-21 Yao Qi <yao@codesourcery.com>
961 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
963 * gnulib/import/Makefile.am: Re-generated.
964 * gnulib/import/Makefile.in: Likewise.
965 * gnulib/import/m4/gnulib-cache.m4: Likewise.
967 2014-11-21 Yao Qi <yao@codesourcery.com>
969 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
971 * gnulib/import/Makefile.am: Re-generated.
972 * gnulib/import/Makefile.in: Likewise.
973 * gnulib/import/m4/gnulib-cache.m4: Likewise.
975 2014-11-21 Yao Qi <yao@codesourcery.com>
977 * common/common-defs.h: Include alloca.h
978 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
979 * configure: Re-generated.
980 * defs.h: Remove code handling alloca.
981 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
984 2014-11-21 Yao Qi <yao@codesourcery.com>
986 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
988 * gnulib/import/Makefile.am: Re-generated.
989 * gnulib/import/Makefile.in: Likewise..
990 * gnulib/import/m4/gnulib-cache.m4: Likewise.
992 2014-11-21 Yao Qi <yao@codesourcery.com>
994 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
997 2014-11-21 Joel Brobecker <brobecker@adacore.com>
999 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1000 flag_unsigned if HIGH_BOUND is constant and negative.
1002 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1004 PR breakpoints/10737
1005 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1006 modifier from "struct gdbarch" when compiling without Expat (XML)
1008 (get_syscall_by_number): Likewise.
1009 (get_syscall_by_name): Likewise.
1010 (get_syscall_names): Likewise.
1012 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1014 PR breakpoints/10737
1015 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1016 set_xml_syscall_file_name to provide gdbarch.
1017 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1018 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1019 * breakpoint.c (print_it_catch_syscall): Adjust call to
1020 get_syscall_by_number to provide gdbarch.
1021 (print_one_catch_syscall): Likewise.
1022 (print_mention_catch_syscall): Likewise.
1023 (print_recreate_catch_syscall): Likewise.
1024 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1025 and get_syscall_by_name to provide gdbarch.
1026 (catch_syscall_completer): Adjust call to get_syscall_names to
1028 * gdbarch.c: Regenerate.
1029 * gdbarch.h: Likewise.
1030 * gdbarch.sh: Forward declare "struct syscalls_info".
1031 (xml_syscall_file): New variable.
1032 (syscalls_info): Likewise.
1033 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1034 set_xml_syscall_file_name to provide gdbarch.
1035 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1036 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1037 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1038 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1039 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1040 * xml-syscall.c: Include gdbarch.h.
1041 (set_xml_syscall_file_name): Accept gdbarch parameter.
1042 (get_syscall_by_number): Likewise.
1043 (get_syscall_by_name): Likewise.
1044 (get_syscall_names): Likewise.
1045 (my_gdb_datadir): Delete global variable.
1046 (struct syscalls_info) <my_gdb_datadir>: New variable.
1047 (struct syscalls_info) <sysinfo>: Rename variable to
1049 (sysinfo): Delete global variable.
1050 (have_initialized_sysinfo): Likewise.
1051 (xml_syscall_file): Likewise.
1052 (sysinfo_free_syscalls_desc): Rename to...
1053 (syscalls_info_free_syscalls_desc): ... this.
1054 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1055 code to the new layout of "struct syscalls_info".
1056 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1058 (syscall_create_syscall_desc): Likewise.
1059 (syscall_start_syscall): Likewise.
1060 (syscall_parse_xml): Likewise.
1061 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1062 (init_sysinfo): Rename to...
1063 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1064 Adjust function to deal with gdbarch.
1065 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1066 gdbarch as a parameter. Adjust code.
1067 (xml_get_syscall_name): Likewise.
1068 (xml_list_of_syscalls): Likewise.
1069 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1070 (get_syscall_by_number): Likewise.
1071 (get_syscall_by_name): Likewise.
1072 (get_syscall_names): Likewise.
1073 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1074 (get_syscall_by_number): Likewise.
1075 (get_syscall_by_name): Likewise.
1076 (get_syscall_names): Likewise.
1078 2014-11-20 Doug Evans <xdje42@gmail.com>
1080 Split struct symtab into two: struct symtab and compunit_symtab.
1081 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1082 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1083 to "struct compunit_symtab *". All callers updated.
1084 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1085 "struct symtab *" argument to "struct compunit_symtab *".
1086 All callers updated.
1087 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1088 result to "struct compunit_symtab *". All callers updated.
1089 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1090 Change result to "struct compunit_symtab *". All callers updated.
1091 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1092 hange type to "struct compunit_symtab *". All uses updated.
1093 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1094 Change type to "struct compunit_symtab *". All uses updated.
1095 * buildsym.c (struct buildsym_compunit): New struct.
1096 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1097 (buildsym_compunit): New static global.
1098 (finish_block_internal): Update to fetch objfile from
1100 (make_blockvector): Delete objfile argument.
1101 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1102 debugformat, producer.
1103 (start_buildsym_compunit): New function.
1104 (free_buildsym_compunit): Renamed from free_subfiles_list.
1105 All callers updated.
1106 (patch_subfile_names): Rewrite to use buildsym_compunit.
1107 (get_compunit_symtab): New function.
1108 (get_macro_table): Delete argument comp_dir. All callers updated.
1109 (start_symtab): Change result to "struct compunit_symtab *".
1110 All callers updated. Create the subfile of the main source file.
1111 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1112 (reset_symtab_globals): Update.
1113 (end_symtab_get_static_block): Update to use buildsym_compunit.
1114 (end_symtab_without_blockvector): Rewrite.
1115 (end_symtab_with_blockvector): Change result to
1116 "struct compunit_symtab *". All callers updated.
1117 Update to use buildsym_compunit. Don't set symtab->dirname,
1118 instead set it in the compunit.
1119 Explicitly make sure main symtab is first in its list.
1120 Set debugformat, producer, blockvector, block_line_section, and
1121 macrotable in the compunit.
1122 (end_symtab_from_static_block): Change result to
1123 "struct compunit_symtab *". All callers updated.
1124 (end_symtab, end_expandable_symtab): Ditto.
1125 (set_missing_symtab): Change symtab argument to
1126 "struct compunit_symtab *". All callers updated.
1127 (augment_type_symtab): Ditto.
1128 (record_debugformat): Update to use buildsym_compunit.
1129 (record_producer): Update to use buildsym_compunit.
1130 * buildsym.h (struct subfile) <dirname>: Delete.
1131 <producer, debugformat>: Delete.
1132 <buildsym_compunit>: New member.
1133 (get_compunit_symtab): Declare.
1134 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1135 from primary_symtab. Change type to "struct compunit_symtab *".
1137 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1138 All callers updated.
1139 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1140 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1141 symtab. Change type to "struct compunit_symtab *". All uses updated.
1142 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1143 All callers updated.
1144 (dw2_find_last_source_symtab): Ditto.
1145 (dw2_lookup_symbol): Ditto.
1146 (recursively_find_pc_sect_compunit_symtab): Renamed from
1147 recursively_find_pc_sect_symtab. Change result to
1148 "struct compunit_symtab *". All callers updated.
1149 (dw2_find_pc_sect_compunit_symtab): Renamed from
1150 dw2_find_pc_sect_symtab. Change result to
1151 "struct compunit_symtab *". All callers updated.
1152 (get_compunit_symtab): Renamed from get_symtab. Change result to
1153 "struct compunit_symtab *". All callers updated.
1154 (recursively_compute_inclusions): Change type of immediate_parent
1155 argument to "struct compunit_symtab *". All callers updated.
1156 (compute_compunit_symtab_includes): Renamed from
1157 compute_symtab_includes. All callers updated. Rewrite to compute
1158 includes of compunit_symtabs and not symtabs.
1159 (process_full_comp_unit): Update to work with struct compunit_symtab.
1160 (process_full_type_unit): Ditto.
1161 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1162 (dwarf_decode_lines): Remove special case handling of main subfile.
1163 (macro_start_file): Delete argument comp_dir. All callers updated.
1164 (dwarf_decode_macro_bytes): Ditto.
1165 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1166 use struct compunit_symtab.
1167 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1168 * jit.c (finalize_symtab): Build compunit_symtab.
1169 * jv-lang.c (get_java_class_symtab): Change result to
1170 "struct compunit_symtab *". All callers updated.
1171 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1172 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1173 comp_dir. Change type to "struct compunit_symtab *".
1175 (new_macro_table): Change comp_dir argument to cust,
1176 "struct compunit_symtab *". All callers updated.
1177 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1178 nr_primary_symtabs. All uses updated.
1179 (count_symtabs_and_blocks): Update to handle compunits.
1180 (report_command_stats): Update output, "primary symtabs" renamed to
1182 * mdebugread.c (new_symtab): Change result to
1183 "struct compunit_symtab *". All callers updated.
1184 (parse_procedure): Change type of search_symtab argument to
1185 "struct compunit_symtab *". All callers updated.
1186 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1188 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1189 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1190 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1192 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1194 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1195 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1196 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1197 symtab. Change type to "struct compunit_symtab *". All uses updated.
1198 * psymtab.c (psymtab_to_symtab): Change result type to
1199 "struct compunit_symtab *". All callers updated.
1200 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1201 find_pc_sect_symtab_from_partial. Change result type to
1202 "struct compunit_symtab *". All callers updated.
1203 (lookup_symbol_aux_psymtabs): Change result type to
1204 "struct compunit_symtab *". All callers updated.
1205 (find_last_source_symtab_from_partial): Ditto.
1206 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1207 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1208 and macro_table from compunit.
1209 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1210 type to "struct compunit_symtab *". All callers updated.
1211 (debug_qf_lookup_symbol): Ditto.
1212 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1213 debug_qf_find_pc_sect_symtab, change result type to
1214 "struct compunit_symtab *". All callers updated.
1215 * symfile.c (allocate_symtab): Delete objfile argument.
1217 (allocate_compunit_symtab): New function.
1218 (add_compunit_symtab_to_objfile): New function.
1219 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1220 Change result type to "struct compunit_symtab *". All uses updated.
1221 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1222 Change result type to "struct compunit_symtab *". All uses updated.
1223 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1225 (dump_symtab_1): Update test for primary source symtab.
1226 (maintenance_info_symtabs): Update to handle compunit symtabs.
1227 (maintenance_check_symtabs): Ditto.
1228 * symtab.c (set_primary_symtab): Delete.
1229 (compunit_primary_filetab): New function.
1230 (compunit_language): New function.
1231 (iterate_over_some_symtabs): Change type of arguments "first",
1232 "after_last" to "struct compunit_symtab *". All callers updated.
1233 Update to loop over symtabs in each compunit.
1234 (error_in_psymtab_expansion): Rename symtab argument to cust,
1235 and change type to "struct compunit_symtab *". All callers updated.
1236 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1237 Change result type to "struct compunit_symtab *". All callers updated.
1238 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1239 Change result type to "struct compunit_symtab *". All callers updated.
1240 (find_pc_sect_line): Only loop over symtabs within selected compunit
1241 instead of all symtabs in the objfile.
1242 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1243 <compunit_symtab> New member.
1244 <block_line_section>: Moved to compunit_symtab.
1245 <locations_valid>: Ditto.
1246 <epilogue_unwind_valid>: Ditto.
1247 <macro_table>: Ditto.
1249 <debugformat>: Ditto.
1252 <call_site_htab>: Ditto.
1256 (SYMTAB_COMPUNIT): New macro.
1257 (SYMTAB_BLOCKVECTOR): Update definition.
1258 (SYMTAB_OBJFILE): Update definition.
1259 (SYMTAB_DIRNAME): Update definition.
1260 (struct compunit_symtab): New type. Common members among all source
1261 symtabs within a compilation unit moved here. All uses updated.
1262 (COMPUNIT_OBJFILE): New macro.
1263 (COMPUNIT_FILETABS): New macro.
1264 (COMPUNIT_DEBUGFORMAT): New macro.
1265 (COMPUNIT_PRODUCER): New macro.
1266 (COMPUNIT_DIRNAME): New macro.
1267 (COMPUNIT_BLOCKVECTOR): New macro.
1268 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1269 (COMPUNIT_LOCATIONS_VALID): New macro.
1270 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1271 (COMPUNIT_CALL_SITE_HTAB): New macro.
1272 (COMPUNIT_MACRO_TABLE): New macro.
1273 (ALL_COMPUNIT_FILETABS): New macro.
1274 (compunit_symtab_ptr): New typedef.
1275 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1277 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1279 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1280 if the TYPE_CODE of range_type's base type does not match
1281 the TYPE_CODE of encoding_type's base type.
1283 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1285 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1288 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1290 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1291 (ada_is_redundant_index_type_desc): New function.
1292 (to_fixed_array_type): Ignore parallel XA type if redundant.
1294 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1296 * ada-lang.c (constrained_packed_array_type): Set the length
1297 of the return array as if both bounds where zero if that
1298 returned array's index type is dynamic.
1300 2014-11-19 Yao Qi <yao@codesourcery.com>
1302 * config/i386/go32.mh (CC): Remove.
1304 2014-11-18 Doug Evans <xdje42@gmail.com>
1306 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1309 2014-11-18 Doug Evans <xdje42@gmail.com>
1311 * buildsym.c (buildsym_objfile): New static global.
1312 (buildsym_comp_dir): New static global.
1313 (finish_block_internal): Delete arg objfile. All callers updated.
1314 (finish_block): Delete arg objfile. All callers updated.
1315 (start_subfile): Delete arg dirname. All callers updated.
1316 (patch_subfile_names): Update buildsym_comp_dir.
1317 (get_macro_table): Delete arg objfile. All callers updated.
1318 (start_symtab): New arg objfile. All callers updated.
1319 Rename arg dirname to comp_dir.
1320 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1321 (end_symtab_get_static_block): Delete arg objfile. All callers
1323 (end_symtab_without_blockvector): Ditto.
1324 (end_symtab_with_blockvector): Ditto.
1325 (end_symtab_from_static_block): Ditto.
1326 (end_symtab): Ditto.
1327 (end_expandable_symtab): Ditto.
1328 (augment_type_symtab): Ditto.
1329 * coffread.c (coff_start_symtab): New arg objfile. All callers
1332 2014-11-18 Doug Evans <xdje42@gmail.com>
1334 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1337 2014-11-18 Doug Evans <xdje42@gmail.com>
1339 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1340 symtab.dirname updated to use it.
1342 2014-11-18 Doug Evans <xdje42@gmail.com>
1344 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1345 symtab.objfile updated to use it.
1347 2014-11-18 Doug Evans <xdje42@gmail.com>
1349 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1351 2014-11-18 Doug Evans <xdje42@gmail.com>
1353 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1355 * findvar.c (default_read_var_value): Ditto.
1356 * jv-lang.c (add_class_symtab_symbol): Ditto.
1357 * parse.c (operator_check_standard): Ditto.
1358 * printcmd.c (address_info): Ditto.
1359 * symtab.c (fixup_symbol_section): Ditto.
1360 (skip_prologue_sal): Ditto.
1361 * tracepoint.c (scope_info): Ditto.
1362 * valops.c (find_function_in_inferior): Ditto.
1363 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1364 * python/py-symbol.c (set_symbol): Ditto.
1366 2014-11-18 Doug Evans <xdje42@gmail.com>
1368 * buildsym.c (main_subfile): New static global.
1369 (free_subfiles_list): New function.
1370 (start_symtab): Set main_subfile.
1371 (restart_symtab): Replace init of subfiles, current_subfile with
1372 call to free_subfiles_list.
1373 (watch_main_source_file_lossage): Use main_subfile.
1374 (reset_symtab_globals): Replace init of current_subfile with call
1375 to free_subfiles_list.
1376 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1377 functions, split out from ...
1378 (end_symtab_from_static_block): ... here. Rewrite to call them.
1380 2014-11-18 Doug Evans <xdje42@gmail.com>
1382 The result of symtab expansion is always a primary symtab.
1383 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1384 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1385 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1386 (psymtab_to_symtab): Add comment and assert.
1387 (map_matching_symbols_psymtab): Remove unnecessary test for
1390 2014-11-15 Doug Evans <xdje42@gmail.com>
1393 * symtab.c (find_pc_line_symtab): New function.
1394 * symtab.h (find_pc_line_symtab): Declare.
1395 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1397 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1398 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1399 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1400 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1401 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1402 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1404 2014-11-15 Doug Evans <xdje42@gmail.com>
1406 * symtab.c (expand_symtab_containing_pc): Renamed from
1407 find_pc_sect_symtab_via_partial. All callers updated.
1409 2014-11-15 Yao Qi <yao@codesourcery.com>
1411 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1413 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1415 * common/common-defs.h: Move <stdarg.h> #include ahead of
1418 2014-11-14 Pedro Alves <palves@redhat.com>
1420 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1421 [!PHONY_ICONV] (gdb_iconv): New function.
1422 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1424 2014-11-13 Doug Evans <dje@google.com>
1427 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1428 "(anonymous namespace)".
1430 2014-11-13 Doug Evans <dje@google.com>
1432 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1435 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1437 * NEWS (maint set target-async): Fix typo.
1439 2014-11-12 Pedro Alves <palves@redhat.com>
1441 * infrun.c (enum infwait_states, infwait_state): Delete.
1443 2014-11-12 Pedro Alves <palves@redhat.com>
1445 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1446 Rewrite stepping over a permanent breakpoint.
1447 (thread_still_needs_step_over, proceed): Don't set
1448 stepping_over_breakpoint for permanent breakpoints.
1449 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1450 single-step breakpoints out of the target on hardware step
1452 (process_event_stop_test): If stepping a permanent breakpoint
1453 doesn't hit the step-resume breakpoint, delete the step-resume
1455 (switch_back_to_stepped_thread): Also check if the stepped thread
1456 has advanced already on hardware step targets.
1457 (currently_stepping): Return true if the thread stepped a
1460 2014-11-12 Pedro Alves <palves@redhat.com>
1462 Mark locations as permanent, not the whole breakpoint.
1463 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1464 (mark_breakpoints_out): Don't mark permanent breakpoints as
1466 (breakpoint_init_inferior): Use mark_breakpoints_out.
1467 (breakpoint_here_p): Adjust.
1468 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1469 of permanent breakpoints.
1470 (make_breakpoint_permanent): Mark each location as permanent,
1471 instead of marking the breakpoint.
1472 (add_location_to_breakpoint): If the location is permanent, mark
1473 it as such, and as inserted.
1474 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1475 (bp_location_compare, update_global_location_list): Adjust.
1476 (update_breakpoint_locations): Don't make the breakpoint permanent
1478 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1480 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1481 (struct bp_location) <permanent>: New field.
1482 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1483 reference to bp_permanent.
1485 2014-11-12 Pedro Alves <palves@redhat.com>
1487 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1488 * arch-utils.h (default_skip_permanent_breakpoint): New
1490 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1491 Install default_skip_permanent_breakpoint as default method.
1492 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1493 (i386_gdbarch_init): Don't install it.
1494 * infrun.c (resume): Assume there's always a
1495 gdbarch_skip_permanent_breakpoint implementation.
1496 * gdbarch.h, gdbarch.c: Regenerate.
1498 2014-11-11 Daniel Colascione <dancol@dancol.org>
1500 Warn about cross-PID-namespace debugging.
1501 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1502 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1503 * linux-thread-db.c (check_pid_namespace_match): New function.
1504 (thread_db_inferior_created): Call it.
1506 2014-11-10 Doug Evans <xdje42@gmail.com>
1508 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1509 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1511 2014-11-10 Doug Evans <xdje42@gmail.com>
1513 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1515 2014-11-10 Doug Evans <xdje42@gmail.com>
1518 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1519 (lookup_static_symbol): Move definition to new location and rewrite.
1520 (lookup_symbol_in_objfile): New function.
1521 (lookup_symbol_global_iterator_cb): Call it.
1523 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1525 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1527 2014-11-07 Pedro Alves <palves@redhat.com>
1529 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1530 check if we did a "nexti" inside a prologue.
1531 * symtab.c (in_prologue): Delete function.
1532 * symtab.h (in_prologue): Delete declaration.
1534 2014-11-06 Doug Evans <xdje42@gmail.com>
1536 * symtab.h (lookup_global_symbol): Improve function comment.
1538 2014-11-06 Doug Evans <xdje42@gmail.com>
1540 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1541 All callers updated.
1542 * symtab.h (lookup_global_symbol): Update decl.
1543 (lookup_static_symbol): Move decl to better location.
1545 2014-11-06 Doug Evans <xdje42@gmail.com>
1547 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1549 2014-11-06 Doug Evans <xdje42@gmail.com>
1551 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1552 All callers updated.
1553 (lookup_symbol_in_all_objfiles): Renamed from
1554 lookup_symbol_aux_symtabs. All callers updated.
1555 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1556 All callers updated.
1557 (lookup_symbol_in_objfile_symtabs): Renamed from
1558 lookup_symbol_aux_objfile. All callers updated.
1560 2014-11-06 Doug Evans <xdje42@gmail.com>
1562 * symtab.c (lookup_symbol_in_block): Renamed from
1563 lookup_symbol_aux_block. All callers updated.
1565 2014-11-06 Doug Evans <xdje42@gmail.com>
1567 * symtab.c (lookup_static_symbol): Renamed from
1568 lookup_static_symbol_aux. All callers updated.
1569 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1570 All callers updated.
1572 2014-11-06 Doug Evans <xdje42@gmail.com>
1574 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1575 * block.c (block_lookup_symbol): Use it.
1576 * cp-support.c (make_symbol_overload_list_block): Use it.
1577 * symtab.c (iterate_over_symbols): Use it.
1579 2014-11-06 Doug Evans <xdje42@gmail.com>
1581 * symtab.c (lookup_block_symbol): Moved to ...
1582 * block.c (block_lookup_symbol): ... here and renamed.
1583 All callers updated.
1584 * block.h (block_lookup_symbol): Declare.
1585 * symtab.h (lookup_block_symbol): Delete.
1587 2014-11-06 Doug Evans <xdje42@gmail.com>
1589 * ada-lang.c (ada_make_symbol_completion_list): Use
1590 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1591 * symtab.c (lookup_objfile_from_block): Ditto.
1593 2014-11-06 Doug Evans <xdje42@gmail.com>
1595 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1598 2014-11-06 Doug Evans <xdje42@gmail.com>
1600 * objfiles.c (get_objfile_arch): Constify.
1601 * objfiles.h (get_objfile_arch): Update prototype.
1602 * solib.c (solib_global_lookup): Fetch arch from objfile,
1605 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1607 * nios2-tdep.c (wild_insn): Delete.
1608 (profiler_insn, irqentry_insn): Delete.
1609 (nios2_match_sequence): Delete.
1610 (nios2_analyze_prologue): Update comments. Remove matching
1611 of obsolete profiler_insn and irqentry_insn sequences.
1613 2014-11-05 Alan Modra <amodra@gmail.com>
1615 * charset.c (convert_between_encodings): Shrink obstack using
1617 * minsyms.c (install_minimal_symbols): Likewise.
1618 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1619 to char* before doing pointer arithmetic.
1621 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1623 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1625 2014-11-04 Pedro Alves <palves@redhat.com>
1627 * breakpoint.c (breakpoint_thread_match): Delete function.
1628 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1630 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1633 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1634 the method args also under EVAL_SKIP when evaluating method
1635 calls under EVAL_SKIP.
1637 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1639 * dwarf2loc.c (read_pieced_value): Do big endian
1640 processing only if gdb_regnum is not -1.
1641 (write_pieced_value): Ditto.
1643 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1645 * arm-linux-tdep.c (arm_linux_init_abi): Use
1646 info.byte_order_for_code to choose endianity of breakpoint
1647 instructions snippets.
1649 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1651 * arm-tdep.c (extract_arm_insn): Use
1652 gdbarch_byte_order_for_code to read arm instruction.
1654 2014-11-02 Doug Evans <xdje42@gmail.com>
1656 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1658 2014-11-02 Doug Evans <xdje42@gmail.com>
1660 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1661 main_subfile before returning.
1663 2014-10-31 Doug Evans <xdje42@gmail.com>
1665 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1666 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1668 2014-10-31 Doug Evans <xdje42@gmail.com>
1670 * valops.c (value_cast_pointers): Fix whitespace.
1671 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1674 2014-10-30 Doug Evans <dje@google.com>
1676 * NEWS: Mention ability add attributes to gdb.Objfile and
1677 gdb.Progspace objects.
1678 * python/py-objfile.c (objfile_object): New member dict.
1679 (objfpy_dealloc): Py_XDECREF dict.
1680 (objfpy_initialize): Initialize dict.
1681 (objfile_getset): Add __dict__.
1682 (objfile_object_type): Set tp_dictoffset member.
1683 * python/py-progspace.c (progspace_object): New member dict.
1684 (pspy_dealloc): Py_XDECREF dict.
1685 (pspy_initialize): Initialize dict.
1686 (pspace_getset): Add __dict__.
1687 (pspace_object_type): Set tp_dictoffset member.
1689 2014-10-30 Yao Qi <yao@codesourcery.com>
1691 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1692 replace '\\' with '\\\\'.
1694 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1698 2014-10-29 Pedro Alves <palves@redhat.com>
1701 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1702 instead of assuming a thread with a stepping range is always
1705 2014-10-29 Pedro Alves <palves@redhat.com>
1708 * event-top.c (change_line_handler): Call
1709 gdb_rl_callback_handler_remove instead of
1710 rl_callback_handler_remove.
1711 (callback_handler_installed): New global.
1712 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1713 (gdb_rl_callback_handler_reinstall): New functions.
1714 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1715 gdb_rl_callback_handler_install instead of
1716 rl_callback_handler_remove and rl_callback_handler_install.
1717 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1718 instead of rl_callback_handler_remove.
1719 * event-top.h (gdb_rl_callback_handler_remove)
1720 (gdb_rl_callback_handler_install)
1721 (gdb_rl_callback_handler_reinstall): New declarations.
1722 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1724 (fetch_inferior_event): Install it.
1725 * top.c (gdb_readline_wrapper_line) Call
1726 gdb_rl_callback_handler_remove instead of
1727 rl_callback_handler_remove.
1728 (gdb_readline_wrapper_cleanup): Don't call
1729 rl_callback_handler_install.
1731 2014-10-29 Pedro Alves <palves@redhat.com>
1733 * event-top.c (command_line_handler): Clear the first byte of
1734 linebuffer, when it is first allocated.
1736 2014-10-29 Pedro Alves <palves@redhat.com>
1738 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1741 2014-10-29 Pedro Alves <palves@redhat.com>
1745 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1746 (tui_allowed_p): Delete function.
1747 * tui/tui.c: Include "interps.h".
1748 (tui_enable): Don't use tui_allowed_p. Error out here with
1749 detailed error messages if the TUI is the top level interpreter,
1750 or if output is not a terminal. Use newterm instead of initscr,
1751 and error out if initializing the terminal fails. Also error out if
1752 the terminal doesn't support cursor addressing.
1753 * tui/tui.h (tui_allowed_p): Delete declaration.
1755 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1757 * arm-tdep.c (arm_skip_stack_protector): Return early if
1758 address loaded by first "ldr" instruction does not have
1759 a corresponding minimal symbol. Update comment.
1761 2014-10-29 Yao Qi <yao@codesourcery.com>
1763 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1764 loaded address correctly of ldr instruction.
1766 2014-10-28 Pedro Alves <palves@redhat.com>
1769 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1771 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1772 thread's stepped_breakpoint field. Skip if reverse debugging.
1774 (init_thread_stepping_state, handle_signal_stop): Clear the
1775 thread's stepped_breakpoint field.
1777 2014-10-27 Pedro Alves <palves@redhat.com>
1779 * remote.c (remote_thread_alive): New, factored out from ...
1780 (remote_thread_alive): ... this.
1781 (remote_update_thread_list): Bail out before deleting threads if
1782 the target returned an empty list, and, the current thread has a
1785 2014-10-27 Pedro Alves <palves@redhat.com>
1787 * infrun.c (handle_signal_stop): Also skip handlers when a random
1788 signal arrives while handling a "stepi" or a "nexti". Set the
1789 thread's 'step_after_step_resume_breakpoint' flag.
1791 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1793 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1794 (arm_record_ld_st_imm_offset): Reimplement to cover all
1795 load/store cases for ARM opcode 010.
1796 (arm_record_ld_st_multiple): Reimplement to cover all
1797 load/store cases for ARM opcode 100.
1799 2014-10-26 Doug Evans <xdje42@gmail.com>
1801 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1803 2014-10-26 Doug Evans <xdje42@gmail.com>
1805 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1806 parameter "kind" to "block_index".
1807 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1809 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1811 2014-10-26 Doug Evans <xdje42@gmail.com>
1813 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1815 2014-10-26 Doug Evans <xdje42@gmail.com>
1817 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1820 2014-10-26 Doug Evans <xdje42@gmail.com>
1822 * parser-defs.h (block_found): Move decl from here ...
1823 * symtab.h (block_found): ... to here.
1825 2014-10-26 Doug Evans <xdje42@gmail.com>
1827 * symtab.h (struct field_of_this_result): Fix typo in comment.
1828 (lookup_symbol_in_language): Move function comment here.
1829 (lookup_symbol): Improve function comment.
1830 (basic_lookup_symbol_nonlocal): Ditto.
1831 (lookup_symbol_static, lookup_symbol_global): Ditto.
1832 (lookup_symbol_aux_block): Ditto.
1833 (lookup_language_this): Add function comment.
1834 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1836 (lookup_block_symbol): Improve function comment.
1837 (lookup_struct): Fix capitalization in function comment.
1838 (lookup_transparent_type): Add function comment.
1839 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1840 Improve function comment.
1841 (lookup_objfile_from_block): Add function comment.
1842 * symtab.c (lookup_symbol_in_language): Update function comment.
1843 (lookup_symbol, lookup_language_this): Ditto.
1844 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1845 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1846 (basic_lookup_symbol_nonlocal): Ditto.
1847 (lookup_symbol_static, lookup_symbol_global): Ditto.
1848 (lookup_transparent_type, lookup_block_symbol): Ditto.
1850 2014-10-25 Doug Evans <xdje42@gmail.com>
1852 * symtab.c (types_info): Delete forward decl.
1853 (functions_info, variables_info, sources_info): Ditto.
1854 (_initialize_symtab): Rewrite forward decl to use
1855 initialize_file_ftype.
1857 2014-10-25 Doug Evans <xdje42@gmail.com>
1859 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1861 2014-10-25 Doug Evans <xdje42@gmail.com>
1863 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1864 of local var child_die.
1866 2014-10-24 Don Breazeal <donb@codesourcery.com>
1868 * infrun.c (follow_fork_inferior): Update fork message printing
1869 to use target_terminal_ours_for_output instead of
1870 target_terminal_ours, to use _() for all format strings, to print
1871 "vfork" instead of "fork" for vforks, and to add a detach message.
1872 (handle_vfork_child_exec_or_exit): Update message printing to use
1873 target_terminal_ours_for_output instead of target_terminal_ours, to
1874 use _() for all format strings, and to fix some formatting.
1876 2014-10-24 Pedro Alves <palves@redhat.com>
1878 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1879 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1880 * config/vax/vax.mh: Delete.
1881 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1882 obsolete configurations section.
1883 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1884 * vax-nat.c: Delete file.
1886 2014-10-24 Pedro Alves <palves@redhat.com>
1888 * NEWS (Removed targets): Add OS/arch column.
1890 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1892 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1893 on the arg type of a constructor only if it is of reference type.
1895 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1897 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1898 accessors and constants from nios2 opcodes update.
1899 (nios2_get_next_pc): Likewise.
1901 2014-10-19 Doug Evans <xdje42@gmail.com>
1903 * gdbthread.h (set_running): Fix comment.
1904 (set_executing, finish_thread_state): Fix comment.
1906 2014-10-18 Doug Evans <xdje42@gmail.com>
1908 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1910 2014-10-17 Doug Evans <dje@google.com>
1912 * NEWS: Mention new event gdb.clear_objfiles.
1913 * python/py-event.h (emit_clear_objfiles_event): Clear
1914 * python/py-events.h (events_object): New member clear_objfiles.
1915 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1917 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1918 emit clear_objfiles event.
1919 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1921 (emit_clear_objfiles_event): New function.
1922 (clear_objfiles): New event.
1923 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1925 * python/python.c (_initialize_python): Call
1926 gdbpy_initialize_clear_objfiles_event.
1928 2014-10-17 Doug Evans <dje@google.com>
1930 * NEWS: Mention new gdb.Objfile.progspace attribute.
1931 * python/py-objfile.c (objfpy_get_progspace): New function.
1932 (objfile_getset): New entry for "progspace".
1934 2014-10-17 Pedro Alves <palves@redhat.com>
1937 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1938 returns a copy of the input.
1939 (run_command_1, continue_command, step_1, jump_command)
1940 (signal_command, until_command, advance_command, finish_command)
1941 (attach_command): Adjust and install a cleanup to free the
1944 2014-10-17 Pedro Alves <palves@redhat.com>
1947 * infcmd.c (continue_1): If continuing all threads in the
1948 foreground, make sure the inferior's terminal settings are put in
1951 2014-10-17 Pedro Alves <palves@redhat.com>
1954 * annotate.c (annotate_breakpoints_invalid): Use
1955 target_terminal_our_for_output instead of target_terminal_ours.
1956 Give back the terminal to the target.
1957 (annotate_frames_invalid): Likewise.
1959 2014-10-17 Pedro Alves <palves@redhat.com>
1961 * target.c (enum terminal_state): New enum.
1962 (terminal_state): New global.
1963 (target_terminal_init): New function.
1964 (target_terminal_inferior): Skip if inferior already owns the
1966 (target_terminal_ours, target_terminal_ours_for_output): New
1968 * target.h (target_terminal_init): Convert to function prototype.
1969 (target_terminal_ours_for_output): Convert to function prototype
1971 (target_terminal_ours): Convert to function prototype and tweak
1973 * windows-nat.c (do_initial_windows_stuff): Call
1974 target_terminal_init instead of child_terminal_init_with_pgrp.
1976 2014-10-17 Pedro Alves <palves@redhat.com>
1978 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1979 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1980 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1982 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1983 * ada-lang.h [__alpha__ && __osf__]
1984 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1985 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1986 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1988 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1990 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1991 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1992 * configure: Regenerate.
1993 * configure.ac: Remove references to osf.
1994 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1995 section. Remove all other references to osf.
1996 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1997 Remove all other references to osf.
1998 * dec-thread.c: Delete file.
1999 * defs.h (GDB_OSABI_OSF1): Delete.
2000 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2002 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2003 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2005 (unconditionally_kill_inferior)
2006 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2007 * solib-osf.c: Delete file.
2009 2014-10-17 Pedro Alves <palves@redhat.com>
2011 * remote.c (clear_threads_listing_context): Move higher up, out of
2012 the HAVE_LIBEXPAT guard.
2014 2014-10-16 Tristan Gingold <gingold@adacore.com>
2016 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2017 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2020 2014-10-15 Pedro Alves <palves@redhat.com>
2022 * dec-thread.c (dec_thread_count_gdb_threads)
2023 (dec_thread_add_gdb_thread): Delete.
2024 (dec_thread_update_thread_list): Delete.
2025 (dec_thread_find_new_threads): Rename to ...
2026 (dec_thread_update_thread_list): ... this. Delete GDB-size
2027 threads that are no longer found in dec_thread_list.
2028 (resync_thread_list): Delete.
2029 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2032 2014-10-15 Pedro Alves <palves@redhat.com>
2034 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2035 * remote.c (remote_update_thread_list): Skip calling prune_threads
2036 if any thread listing method is supported, and instead walk over
2037 the set of remote threads listed, deleting those that are not
2038 found in GDB's thread list.
2040 2014-10-15 Pedro Alves <palves@redhat.com>
2042 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2043 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2044 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2045 (bsd_uthread_target): Adjust.
2046 * corelow.c (core_open): Adjust.
2047 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2048 (dec_thread_update_thread_list): New function.
2049 (init_dec_thread_ops): Adjust.
2050 * gdbthread.h (prune_threads): New declaration.
2051 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2052 (thread_db_update_thread_list): ... this. Call prune_threads.
2053 (init_thread_db_ops): Adjust.
2054 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2055 (procfs_update_thread_list): ... this. Call prune_threads.
2056 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2058 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2059 (obsd_update_thread_list): ... this. Call prune_threads.
2060 (obsd_add_target): Adjust.
2061 * procfs.c (procfs_target): Adjust.
2062 (procfs_notice_thread): Update comment.
2063 (procfs_find_new_threads): Rename to ...
2064 (procfs_update_thread_list): ... this. Call prune_threads.
2065 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2067 (ravenscar_wait): Adjust.
2068 (ravenscar_find_new_threads): Rename to ...
2069 (ravenscar_update_thread_list): ... this. Call prune_threads.
2070 (init_ravenscar_thread_ops): Adjust.
2071 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2072 (record_btrace_update_thread_list): ... this. Adjust comment.
2073 (init_record_btrace_ops): Adjust.
2074 * remote.c (remote_threads_info): Rename to ...
2075 (remote_update_thread_list): ... this. Call prune_threads.
2076 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2078 * sol-thread.c (check_for_thread_db): Adjust.
2079 (sol_find_new_threads_callback): Rename to ...
2080 (sol_update_thread_list_callback): ... this.
2081 (sol_find_new_threads): Rename to ...
2082 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2083 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2084 * target-delegates.c: Regenerate.
2085 * target.c (target_find_new_threads): Rename to ...
2086 (target_update_thread_list): ... this.
2087 * target.h (struct target_ops): Rename to_find_new_threads field
2088 to to_update_thread_list.
2089 (target_find_new_threads): Rename to ...
2090 (target_update_thread_list): ... this.
2091 * thread.c (prune_threads): Make extern.
2092 (update_thread_list): Adjust.
2094 2014-10-15 Pedro Alves <palves@redhat.com>
2096 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2097 Add describing comment. Return -1 if the qL packet is not
2099 (struct thread_item, thread_item_t): Move higher up in
2100 the file. Add comments.
2101 (struct threads_parsing_context): Move higher up in
2102 the file, add comments, and remote to ...
2103 (struct threads_listing_context): ... this.
2104 (remote_newthread_step): Don't add the thread to GDB's thread
2105 database here. Instead push it to the thread_listing_context
2107 (remote_find_new_threads): Rename to ...
2108 (remote_get_threads_with_ql): ... this. Add target_ops and
2109 targets_listing_context parameters. Pass down context.
2110 (start_thread): Adjust.
2111 (clear_threads_parsing_context): Rename to ...
2112 (clear_threads_listing_context): ... this.
2113 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2114 remote_threads_info.
2115 (remote_get_threads_with_qthreadinfo): Ditto.
2116 (remote_threads_info): Reimplement.
2118 2014-10-15 Pedro Alves <palves@redhat.com>
2120 * infrun.c (resume): Don't force displaced-stepping for all
2121 single-steps on software single-stepping archs.
2123 2014-10-15 Pedro Alves <palves@redhat.com>
2125 * breakpoint.c (single_step_breakpoints): Delete global.
2126 (insert_single_step_breakpoint): Adjust to store the breakpoint
2127 pointer in the current thread.
2128 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2129 (cancel_single_step_breakpoints): Delete functions.
2130 (breakpoint_has_location_inserted_here): Make extern.
2131 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2133 * breakpoint.h (breakpoint_has_location_inserted_here): New
2135 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2136 (cancel_single_step_breakpoints): Remove declarations.
2137 * gdbthread.h (struct thread_control_state)
2138 <single_step_breakpoints>: New field.
2139 (delete_single_step_breakpoints)
2140 (thread_has_single_step_breakpoints_set)
2141 (thread_has_single_step_breakpoint_here): New declarations.
2142 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2143 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2144 (singlestep_pc): Delete globals.
2145 (infrun_thread_ptid_changed): Remove references to removed
2147 (resume_cleanups): Delete the current thread's single-step
2149 (maybe_software_singlestep): Remove references to removed globals.
2150 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2151 delete_single_step_breakpoints.
2152 (init_wait_for_inferior): Remove references to removed globals.
2153 (delete_thread_infrun_breakpoints): Delete the thread's
2154 single-step breakpoints too.
2155 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2156 single-step breakpoints here.
2157 (delete_stopped_threads_single_step_breakpoints): New function.
2158 (adjust_pc_after_break): Adjust to use
2159 thread_has_single_step_breakpoints_set.
2160 (handle_inferior_event): Remove references to removed globals.
2161 Use delete_stopped_threads_single_step_breakpoints.
2162 (handle_signal_stop): Adjust to per-thread single-step
2163 breakpoints. Swap test order to do cheaper tests first.
2164 (switch_back_to_stepped_thread): Extend debug output. Remove
2165 references to removed globals.
2166 * record-full.c (record_full_wait_1): Adjust to per-thread
2167 single-step breakpoints.
2168 * thread.c (delete_single_step_breakpoints)
2169 (thread_has_single_step_breakpoints_set)
2170 (thread_has_single_step_breakpoint_here): New functions.
2171 (clear_thread_inferior_resources): Also delete the thread's
2172 single-step breakpoints.
2174 2014-10-15 Pedro Alves <palves@redhat.com>
2176 * thread.c (delete_thread_breakpoint): New function.
2177 (delete_step_resume_breakpoint)
2178 (delete_exception_resume_breakpoint): Use it.
2179 (delete_at_next_stop): New function.
2180 (clear_thread_inferior_resources): Use delete_at_next_stop.
2182 2014-10-15 Pedro Alves <palves@redhat.com>
2184 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2185 (breakpoint_inserted_here_p): ... here. Remove special case for
2186 software single-step breakpoints.
2187 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2188 (software_breakpoint_inserted_here_p): ... here. Remove special
2189 case for software single-step breakpoints.
2190 (bp_target_info_copy_insertion_state)
2191 (deprecated_insert_raw_breakpoint)
2192 (deprecated_remove_raw_breakpoint): Delete functions.
2193 * breakpoint.h (deprecated_insert_raw_breakpoint)
2194 (deprecated_remove_raw_breakpoint): Remove declarations.
2196 2014-10-15 Pedro Alves <palves@redhat.com>
2199 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2200 Delete array globals.
2201 (single_step_breakpoints): New global.
2202 (breakpoint_xfer_memory): Remove special handling for single-step
2204 (update_breakpoints_after_exec): Delete bp_single_step
2206 (detach_breakpoints): Remove special handling for single-step
2208 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2209 (bpstat_stop_status): Add comment.
2210 (bpstat_what, bptype_string, print_one_breakpoint_location)
2211 (adjust_breakpoint_address, init_bp_location): Handle
2213 (new_single_step_breakpoint): New function.
2214 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2215 handling for single-step breakpoints.
2216 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2217 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2219 (detach_single_step_breakpoints, find_single_step_breakpoint):
2221 (breakpoint_has_location_inserted_here): New function.
2222 (single_step_breakpoint_inserted_here_p): Rewrite.
2223 * breakpoint.h: Remove FIXME.
2224 (enum bptype) <bp_single_step>: New enum value.
2225 (insert_single_step_breakpoint): Update comment.
2226 * infrun.c (resume_cleanups)
2227 (delete_step_thread_step_resume_breakpoint): Remove single-step
2229 (fetch_inferior_event): Install a cleanup that removes infrun
2231 (switch_back_to_stepped_thread) <expect thread advanced also>:
2232 Clear step-over info.
2234 2014-10-15 Pedro Alves <palves@redhat.com>
2236 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2237 (delete_thread_infrun_breakpoints): New function, with parts
2238 salvaged from delete_step_resume_breakpoint_callback.
2239 (delete_step_thread_step_resume_breakpoint): Delete.
2240 (for_each_just_stopped_thread_callback_func): New typedef.
2241 (for_each_just_stopped_thread): New function.
2242 (delete_just_stopped_threads_infrun_breakpoints): New function.
2243 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2244 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2246 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2248 2014-10-15 Pedro Alves <palves@redhat.com>
2250 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2251 trying to step past a non-steppable watchpoint.
2252 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2254 * infrun.c (struct step_over_info): Add new field
2255 'nonsteppable_watchpoint_p' and adjust comments.
2256 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2258 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2259 (stepping_past_nonsteppable_watchpoint): New function.
2260 (step_over_info_valid_p): Also return true if stepping past a
2261 nonsteppable watchpoint.
2262 (proceed): Adjust call to set_step_over_info. Remove reference to
2264 (init_wait_for_inferior): Remove reference to init_infwait_state.
2265 (waiton_ptid): Delete global.
2266 (struct execution_control_state)
2267 <stepped_after_stopped_by_watchpoint>: Delete field.
2268 (wait_for_inferior, fetch_inferior_event): Always pass
2269 minus_one_ptid to target_wait.
2270 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2272 (init_infwait_state): Delete function.
2273 (handle_inferior_event): Remove infwait_state handling.
2274 (handle_signal_stop) <watchpoints handling>: Adjust after
2275 stepped_after_stopped_by_watchpoint removal. Don't remove
2276 breakpoints here nor set infwait_state. Set the thread's
2277 stepping_over_watchpoint flag, and call keep_going instead.
2278 (keep_going): Handle stepping_over_watchpoint. Adjust
2279 set_step_over_info calls.
2280 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2283 2014-10-15 Pedro Alves <palves@redhat.com>
2285 * infrun.c (step_over_info_valid_p): New function.
2286 (resume): Use step_over_info_valid_p instead of checking the
2287 threads's trap_expected flag.
2289 2014-10-15 Doug Evans <dje@google.com>
2290 Walfred Tedeschi <walfred.tedeschi@intel.com>
2293 * python/lib/gdb/__init__.py (packages): Add "printer".
2294 * python/lib/gdb/command/bound_registers.py: Moved to ...
2295 * python/lib/gdb/printer/bound_registers.py: ... here.
2296 Add printer to global set of builtin printers. Rename printer from
2297 "bound" to "mpx_bound128".
2298 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2299 registered as global "builtin" printer.
2300 (add_builtin_pretty_printer): New function.
2301 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2302 gdb/printer/__init__.py.
2304 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2306 * Makefile.in (SFILES): Remove d-support.c.
2307 (COMMON_OBS): Remove d-support.o.
2308 * d-lang.h (d_parse_symbol): Remove declaration.
2309 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2310 * d-support.c: Remove file.
2312 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2314 * gdb/infrun.c (process_event_stop_test): Apply
2315 gdbarch_addr_bits_remove to longjmp resume address.
2317 2014-10-15 Pedro Alves <palves@redhat.com>
2319 * regformats/microblaze.dat: Delete file.
2321 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2323 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2324 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2326 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2328 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2331 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2335 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2336 with qualified args.
2338 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2340 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2341 of the case where the second operand is a pointer.
2342 <BINOP_SUB>: Likewise.
2344 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2346 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2347 only if it is not NULL.
2348 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2349 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2350 (struct probe_ops) <clear_semaphore>: Likewise.
2351 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2353 (stop_tracing): Likewise, for clear_semaphore.
2355 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2357 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2358 using language_c, instead of current_language.
2360 2014-10-13 Doug Evans <dje@google.com>
2362 * python/py-objfile.c (objfpy_initialize): New function.
2363 (objfpy_new, objfile_to_objfile_object): Call it.
2364 * python/py-progspace.c (pspy_initialize): New function.
2365 (pspy_new, pspace_to_pspace_object): Call it.
2367 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2368 Jan Kratochvil <jan.kratochvil@redhat.com>
2370 Fix "save breakpoints" for "catch" command.
2371 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2374 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2376 Fix "save breakpoints" for "disable $bpnum" command.
2377 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2379 2014-10-10 Pedro Alves <palves@redhat.com>
2381 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2382 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2383 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2384 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2386 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2387 * configure.ac: Remove references to IRIX.
2388 * configure.host: Add *-*-irix* to the obsolete hosts section.
2389 Remove all other references to irix.
2390 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2393 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2395 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2396 isn't valid, release the tdesc arch data and return NULL.
2398 2014-10-10 Pedro Alves <palves@redhat.com>
2400 * linux-tdep.c: Include observer.h.
2401 (linux_inferior_data): New global.
2402 (struct linux_info): New structure.
2403 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2404 (get_linux_inferior_data): New functions.
2405 (linux_vsyscall_range): Rename to ...
2406 (linux_vsyscall_range_raw): ... this.
2407 (linux_vsyscall_range): New function; handles caching.
2408 (_initialize_linux_tdep): Register linux_inferior_data. Install
2409 inferior_exit and inferior_appeared observers.
2411 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 Pedro Alves <palves@redhat.com>
2415 * solib-svr4.c (svr4_read_so_list): Rename to ...
2416 (svr4_current_sos_1): ... this and change the function comment.
2417 (svr4_current_sos): New function.
2419 2014-10-10 Pedro Alves <palves@redhat.com>
2421 * arch-utils.c (default_vsyscall_range): New function.
2422 * arch-utils.h (default_vsyscall_range): New declaration.
2423 * gdbarch.sh (vsyscall_range): New hook.
2424 * gdbarch.h, gdbarch.c: Regenerate.
2425 * linux-tdep.c (linux_vsyscall_range): New function.
2426 (linux_init_abi): Install linux_vsyscall_range as
2427 vsyscall_range gdbarch hook.
2428 * memrange.c (address_in_mem_range): New function.
2429 * memrange.h (address_in_mem_range): New declaration.
2430 * symfile-mem.c (find_vdso_size): Delete function.
2431 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2433 2014-10-10 Pedro Alves <palves@redhat.com>
2435 * infrun.c (normal_stop): Fix typo in comment.
2437 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2440 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2441 typo when using logical AND to determine instruction type.
2443 2014-10-09 Yao Qi <yao@codesourcery.com>
2445 * infrun.c (handle_signal_stop): Remove local variable
2448 2014-10-08 Stan Shebs <stan@codesourcery.com>
2450 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2452 2014-10-08 Gary Benson <gbenson@redhat.com>
2454 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2456 2014-10-08 Gary Benson <gbenson@redhat.com>
2458 * common/common-defs.h: Include common-exceptions.h.
2459 * exceptions.h: Do not include common-exceptions.h.
2461 2014-10-08 Gary Benson <gbenson@redhat.com>
2463 * common/common-defs.h: Include cleanups.h.
2464 * common/common-exceptions.c: Do not include cleanups.h.
2465 * utils.h: Likewise.
2467 2014-10-08 Gary Benson <gbenson@redhat.com>
2469 * ada-lang.c: Do not include exceptions.h.
2470 * ada-valprint.c: Likewise.
2471 * amd64-tdep.c: Likewise.
2472 * auto-load.c: Likewise.
2473 * block.c: Likewise.
2474 * break-catch-throw.c: Likewise.
2475 * breakpoint.c: Likewise.
2476 * btrace.c: Likewise.
2477 * c-lang.c: Likewise.
2478 * cli/cli-cmds.c: Likewise.
2479 * cli/cli-interp.c: Likewise.
2480 * cli/cli-script.c: Likewise.
2481 * completer.c: Likewise.
2482 * corefile.c: Likewise.
2483 * corelow.c: Likewise.
2484 * cp-abi.c: Likewise.
2485 * cp-support.c: Likewise.
2486 * cp-valprint.c: Likewise.
2487 * darwin-nat.c: Likewise.
2488 * dwarf2-frame-tailcall.c: Likewise.
2489 * dwarf2-frame.c: Likewise.
2490 * dwarf2loc.c: Likewise.
2491 * dwarf2read.c: Likewise.
2493 * event-loop.c: Likewise.
2494 * event-top.c: Likewise.
2495 * f-valprint.c: Likewise.
2496 * frame-unwind.c: Likewise.
2497 * frame.c: Likewise.
2498 * gdbtypes.c: Likewise.
2499 * gnu-v2-abi.c: Likewise.
2500 * gnu-v3-abi.c: Likewise.
2501 * guile/scm-auto-load.c: Likewise.
2502 * guile/scm-breakpoint.c: Likewise.
2503 * guile/scm-cmd.c: Likewise.
2504 * guile/scm-frame.c: Likewise.
2505 * guile/scm-lazy-string.c: Likewise.
2506 * guile/scm-param.c: Likewise.
2507 * guile/scm-symbol.c: Likewise.
2508 * guile/scm-type.c: Likewise.
2509 * hppa-hpux-tdep.c: Likewise.
2510 * i386-tdep.c: Likewise.
2511 * inf-loop.c: Likewise.
2512 * infcall.c: Likewise.
2513 * infcmd.c: Likewise.
2514 * infrun.c: Likewise.
2515 * interps.c: Likewise.
2516 * interps.h: Likewise.
2518 * linespec.c: Likewise.
2519 * linux-nat.c: Likewise.
2520 * linux-thread-db.c: Likewise.
2521 * m32r-rom.c: Likewise.
2523 * memory-map.c: Likewise.
2524 * mi/mi-cmd-break.c: Likewise.
2525 * mi/mi-cmd-stack.c: Likewise.
2526 * mi/mi-interp.c: Likewise.
2527 * mi/mi-main.c: Likewise.
2528 * monitor.c: Likewise.
2529 * nto-procfs.c: Likewise.
2530 * objc-lang.c: Likewise.
2531 * p-valprint.c: Likewise.
2532 * parse.c: Likewise.
2533 * ppc-linux-tdep.c: Likewise.
2534 * printcmd.c: Likewise.
2535 * probe.c: Likewise.
2536 * python/py-auto-load.c: Likewise.
2537 * python/py-breakpoint.c: Likewise.
2538 * python/py-cmd.c: Likewise.
2539 * python/py-finishbreakpoint.c: Likewise.
2540 * python/py-frame.c: Likewise.
2541 * python/py-framefilter.c: Likewise.
2542 * python/py-function.c: Likewise.
2543 * python/py-gdb-readline.c: Likewise.
2544 * python/py-inferior.c: Likewise.
2545 * python/py-infthread.c: Likewise.
2546 * python/py-lazy-string.c: Likewise.
2547 * python/py-linetable.c: Likewise.
2548 * python/py-param.c: Likewise.
2549 * python/py-prettyprint.c: Likewise.
2550 * python/py-symbol.c: Likewise.
2551 * python/py-type.c: Likewise.
2552 * python/py-value.c: Likewise.
2553 * python/python-internal.h: Likewise.
2554 * python/python.c: Likewise.
2555 * record-btrace.c: Likewise.
2556 * record-full.c: Likewise.
2557 * regcache.c: Likewise.
2558 * remote-fileio.c: Likewise.
2559 * remote-mips.c: Likewise.
2560 * remote.c: Likewise.
2561 * rs6000-aix-tdep.c: Likewise.
2562 * rs6000-nat.c: Likewise.
2564 * solib-darwin.c: Likewise.
2565 * solib-dsbt.c: Likewise.
2566 * solib-frv.c: Likewise.
2567 * solib-ia64-hpux.c: Likewise.
2568 * solib-spu.c: Likewise.
2569 * solib-svr4.c: Likewise.
2570 * solib.c: Likewise.
2571 * spu-tdep.c: Likewise.
2572 * stack.c: Likewise.
2573 * stap-probe.c: Likewise.
2574 * symfile-mem.c: Likewise.
2575 * symmisc.c: Likewise.
2576 * target.c: Likewise.
2577 * thread.c: Likewise.
2579 * tracepoint.c: Likewise.
2580 * tui/tui-interp.c: Likewise.
2581 * typeprint.c: Likewise.
2582 * utils.c: Likewise.
2583 * valarith.c: Likewise.
2584 * valops.c: Likewise.
2585 * valprint.c: Likewise.
2586 * value.c: Likewise.
2587 * varobj.c: Likewise.
2588 * windows-nat.c: Likewise.
2589 * xml-support.c: Likewise.
2591 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2593 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2595 (extended_mips16_next_pc): Update accordingly.
2597 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2599 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2601 (micromips_instruction_is_compact_branch): Likewise.
2602 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2603 or a compact jump, reaching a jump delay slot, or seeing a
2604 second non-prologue instruction.
2605 (micromips_scan_prologue): Also terminate scanning upon seeing a
2606 compact branch or jump, or reaching a branch or jump delay slot.
2607 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2608 or jump delay slot, or seeing a second non-prologue instruction.
2609 (mips32_instruction_has_delay_slot): Retain instruction
2610 examination code only, update arguments accordingly and move
2611 instruction fetch pieces to...
2612 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2613 (micromips_instruction_has_delay_slot): Likewise and to...
2614 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2615 (mips16_instruction_has_delay_slot): Likewise and to...
2616 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2617 (mips_single_step_through_delay): Update accordingly.
2618 (mips_adjust_breakpoint_address): Likewise.
2620 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2622 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2623 !mustbe32 also return 1 for 32-bit instructions.
2624 (mips16_instruction_has_delay_slot): Likewise. Add an
2625 explanatory comment.
2627 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2629 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2632 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2634 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2636 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2637 for the breakpoint's address. Don't preinitialize `placed_size'.
2638 (insert_bp_location): Set `reqstd_address' rather than
2640 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2641 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2643 (bkpt_remove_location): Likewise.
2644 (deprecated_insert_raw_breakpoint): Likewise.
2645 (deprecated_remove_raw_breakpoint): Likewise.
2646 (find_single_step_breakpoint): Likewise.
2647 * mem-break.c (default_memory_insert_breakpoint): Use
2648 `reqstd_address' for the breakpoint's address. Don't set
2649 `placed_address' or `placed_size' if breakpoint contents couldn't
2650 have been determined.
2651 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2652 the breakpoint's address.
2653 (remote_insert_hw_breakpoint): Likewise. Don't set
2654 `placed_address' or `placed_size' if breakpoint couldn't have been
2656 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2657 `reqstd_address' for the breakpoint's address.
2658 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2659 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2660 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2661 * microblaze-linux-tdep.c
2662 (microblaze_linux_memory_remove_breakpoint): Likewise.
2663 * monitor.c (monitor_insert_breakpoint): Likewise.
2664 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2665 (procfs_insert_hw_breakpoint): Likewise.
2666 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2667 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2668 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2669 * remote-mips.c (mips_insert_breakpoint): Likewise.
2670 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2672 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2674 * valops.c (value_assign): Check for bit field assignments
2675 before calling architecture-specific register value
2676 conversion functions.
2678 2014-10-03 Pierre Muller <muller@sourceware.org>
2680 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2682 2014-10-02 Pedro Alves <palves@redhat.com>
2684 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2685 threads_are_executing.
2686 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2688 * gdbthread.h (threads_are_executing): Declare.
2689 (handle_signal_stop) <random signals>: Don't print about the
2690 signal here if stopping.
2691 (end_stepping_range): Don't notify observers here.
2692 (normal_stop): Update the thread list. If stopped by a random
2693 signal or a stepping range ended, notify observers.
2694 * thread.c (threads_executing): New global.
2695 (init_thread_list): Clear 'threads_executing'.
2696 (set_executing): Set or clear 'threads_executing'.
2697 (threads_are_executing): New function.
2698 (update_threads_executing): New function.
2699 (update_thread_list): Use it.
2701 2014-10-02 Pedro Alves <palves@redhat.com>
2703 PR breakpoints/17431
2704 * breakpoint.c (update_breakpoints_after_exec): Don't create
2705 overlay, longjmp, std terminate nor exception breakpoints here.
2707 2014-10-02 Pedro Alves <palves@redhat.com>
2709 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2711 * inferior.c (find_inferior_for_program_space): Give preference to
2712 the current inferior.
2713 * inferior.h (find_inferior_for_program_space): Update comment.
2714 * progspace.c (switch_to_program_space_and_thread): Prefer the
2715 current inferior if it's bound to the program space requested. If
2716 the inferior found doesn't have a PID yet, don't bother looking up
2718 * progspace.h (switch_to_program_space_and_thread): Adjust
2720 * thread.c (any_thread_of_process, any_live_thread_of_process):
2721 Give preference to the current thread.
2723 2014-10-01 Pedro Alves <palves@redhat.com>
2725 * breakpoint.c (insert_bp_location): Error out if inserting a
2726 software breakpoint at a read-only address.
2727 * target.c (memory_xfer_check_region): New function, factored out
2729 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2731 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2732 against the memory region attributes.
2734 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2736 * NEWS: Announce new exit-code field in -list-thread-groups
2738 * inferior.c (exit_inferior_1): Don't clear exit code.
2739 (inferior_appeared): Clear exit code.
2740 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2743 2014-10-01 Pedro Alves <palves@redhat.com>
2745 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2746 GENERATED" along with emacs/vi read-only markers.
2747 * regformats/aarch64.dat: Regenerate.
2748 * regformats/arm-with-iwmmxt.dat: Regenerate.
2749 * regformats/arm-with-neon.dat: Regenerate.
2750 * regformats/arm-with-vfpv2.dat: Regenerate.
2751 * regformats/arm-with-vfpv3.dat: Regenerate.
2752 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2753 * regformats/i386/amd64-avx.dat: Regenerate.
2754 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2755 * regformats/i386/amd64-avx512.dat: Regenerate.
2756 * regformats/i386/amd64-linux.dat: Regenerate.
2757 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2758 * regformats/i386/amd64-mpx.dat: Regenerate.
2759 * regformats/i386/amd64.dat: Regenerate.
2760 * regformats/i386/i386-avx-linux.dat: Regenerate.
2761 * regformats/i386/i386-avx.dat: Regenerate.
2762 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2763 * regformats/i386/i386-avx512.dat: Regenerate.
2764 * regformats/i386/i386-linux.dat: Regenerate.
2765 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2766 * regformats/i386/i386-mmx.dat: Regenerate.
2767 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2768 * regformats/i386/i386-mpx.dat: Regenerate.
2769 * regformats/i386/i386.dat: Regenerate.
2770 * regformats/i386/x32-avx-linux.dat: Regenerate.
2771 * regformats/i386/x32-avx.dat: Regenerate.
2772 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2773 * regformats/i386/x32-avx512.dat: Regenerate.
2774 * regformats/i386/x32-linux.dat: Regenerate.
2775 * regformats/i386/x32.dat: Regenerate.
2776 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2777 * regformats/mips-dsp-linux.dat: Regenerate.
2778 * regformats/mips-linux.dat: Regenerate.
2779 * regformats/mips64-dsp-linux.dat: Regenerate.
2780 * regformats/mips64-linux.dat: Regenerate.
2781 * regformats/nios2-linux.dat: Regenerate.
2782 * regformats/rs6000/powerpc-32.dat: Regenerate.
2783 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2784 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2785 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2786 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2787 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2788 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2789 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2790 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2791 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2792 * regformats/s390-linux32.dat: Regenerate.
2793 * regformats/s390-linux32v1.dat: Regenerate.
2794 * regformats/s390-linux32v2.dat: Regenerate.
2795 * regformats/s390-linux64.dat: Regenerate.
2796 * regformats/s390-linux64v1.dat: Regenerate.
2797 * regformats/s390-linux64v2.dat: Regenerate.
2798 * regformats/s390-te-linux64.dat: Regenerate.
2799 * regformats/s390x-linux64.dat: Regenerate.
2800 * regformats/s390x-linux64v1.dat: Regenerate.
2801 * regformats/s390x-linux64v2.dat: Regenerate.
2802 * regformats/s390x-te-linux64.dat: Regenerate.
2803 * regformats/tic6x-c62x-linux.dat: Regenerate.
2804 * regformats/tic6x-c62x.dat: Regenerate.
2805 * regformats/tic6x-c64x-linux.dat: Regenerate.
2806 * regformats/tic6x-c64x.dat: Regenerate.
2807 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2808 * regformats/tic6x-c64xp.dat: Regenerate.
2810 2014-10-01 Pedro Alves <palves@redhat.com>
2812 * features/Makefile: Update comments.
2813 (XMLTOC): List all xml files we build C files from.
2814 (clean-cfiles): New rule.
2816 2014-10-01 Pedro Alves <palves@redhat.com>
2818 * features/i386/amd64-avx512-linux.c: Regenerate.
2819 * features/i386/amd64-avx512.c: Regenerate.
2820 * features/i386/x32-avx512-linux.c: Regenerate.
2821 * features/i386/x32-avx512.c: Regenerate.
2823 2014-10-01 Pedro Alves <palves@redhat.com>
2825 * features/Makefile (WHICH): Remove arm-with-m,
2826 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2828 2014-10-01 Pedro Alves <palves@redhat.com>
2830 * features/Makefile (clean): New rule.
2832 2014-10-01 Pedro Alves <palves@redhat.com>
2834 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2835 (zmm14h): Add missing end quotes.
2837 2014-10-01 Pedro Alves <palves@redhat.com>
2839 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2840 * features/aarch64.c: Regenerate.
2842 2014-09-30 Don Breazeal <donb@codesourcery.com>
2844 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2845 code so as to work with follow_fork_inferior.
2846 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2847 (inf_ttrace_create_inferior): Remove reference to
2848 inf_ttrace_vfork_ppid.
2849 (inf_ttrace_attach): Ditto.
2850 (inf_ttrace_detach): Ditto.
2851 (inf_ttrace_kill): Use current_inferior instead of
2852 inf_ttrace_vfork_ppid.
2853 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2854 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2855 inferior away from the parent.
2856 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2858 (follow_fork_inferior): New function.
2859 (follow_inferior_reset_breakpoints): Make function static.
2860 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2861 * linux-nat.c (linux_child_follow_fork): Move target-independent
2862 code to infrun.c:follow_fork_inferior.
2864 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2866 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2867 * gdbarch.c: Regenerate.
2868 * gdbarch.h: Likewise.
2869 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2870 gdbarch method 'regset_from_core_section'.
2871 (get_core_register_section): Remove handling for the case that
2872 regset == NULL and regset_from_core_section is defined.
2873 (get_core_registers): Drop check for deleted method.
2874 * procfs.c (procfs_do_thread_registers): Adjust comment.
2876 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2878 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2879 (linux_nat_make_corefile_notes): Remove.
2880 (linux_target_install_ops): Do not set target method
2881 'make_corefile_notes'.
2882 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2884 (linux_corefile_thread_callback): Instead of args->collect, call
2885 linux_collect_thread_registers.
2886 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2887 NULL unless there is a regset iterator.
2888 (linux_make_corefile_notes_1): Remove.
2889 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2890 by linux_make_corefile_notes.
2891 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2893 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2895 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2896 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2898 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2900 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2902 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2903 (xtensa_iterate_over_regset_sections): New.
2904 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2906 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2908 * vax-tdep.c (vax_regset_from_core_section): Remove.
2909 (vax_iterate_over_regset_sections): New.
2910 (vax_gdbarch_init): Adjust gdbarch initialization.
2912 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2914 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2915 (tilegx_regset_from_core_section): Remove.
2916 (tilegx_iterate_over_regset_sections): New.
2917 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2919 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2921 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2922 (sparc_iterate_over_regset_sections): New.
2923 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2924 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2926 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2927 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2928 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2929 target method 'make_corefile_notes'.
2931 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2933 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2934 'sizeof_gregset' and 'sizeof_fpregset'.
2935 * sh-tdep.c (sh_regset_from_core_section): Remove.
2936 (sh_iterate_over_regset_sections): New.
2937 (sh_gdbarch_init): Adjust gdbarch initialization.
2938 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2940 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2943 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2945 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2946 (score7_linux_iterate_over_regset_sections): New.
2947 (score_gdbarch_init): Adjust gdbarch initialization.
2949 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2951 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2953 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2954 method 'make_corefile_notes'.
2955 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2956 (ppcfbsd_regset_from_core_section): Remove.
2957 (ppcfbsd_iterate_over_regset_sections): New.
2958 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2960 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2961 (ppcnbsd_iterate_over_regset_sections): New.
2962 (ppcnbsd_init_abi): Adjust.
2963 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2964 (ppcobsd_iterate_over_regset_sections): New.
2965 (ppcobsd_init_abi): Adjust.
2966 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2967 (rs6000_aix_iterate_over_regset_sections): New.
2968 (rs6000_aix_init_osabi): Adjust.
2970 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2972 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2973 (nios2_regset_from_core_section): Remove.
2974 (nios2_iterate_over_regset_sections): New.
2975 (nios2_linux_init_abi): Adjust gdbarch initialization.
2977 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2979 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2980 (am33_iterate_over_regset_sections): New.
2981 (am33_linux_init_osabi): Adjust gdbarch initialization.
2983 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2985 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2986 (mips_linux_iterate_over_regset_sections): New.
2987 (mips_linux_init_abi): Adjust gdbarch initialization.
2988 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2989 (mips64obsd_iterate_over_regset_sections): New.
2990 (mips64obsd_init_abi): Adjust.
2991 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2992 (mipsnbsd_iterate_over_regset_sections): New.
2993 (mipsnbsd_init_abi): Adjust.
2995 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2997 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2998 (m88k_iterate_over_regset_sections): New.
2999 (m88k_gdbarch_init): Adjust gdbarch initialization.
3001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3003 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3004 (ia64_linux_iterate_over_regset_sections): New.
3005 (ia64_linux_init_abi): Adjust gdbarch initialization.
3007 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3009 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3010 (m68kbsd_iterate_over_regset_sections): New.
3011 (m68kbsd_init_abi): Adjust gdbarch initialization.
3012 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3013 (m68k_linux_iterate_over_regset_sections): New.
3014 (m68k_linux_init_abi): Adjust gdbarch initialization.
3016 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3018 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3019 (m32r_linux_regset_from_core_section): Remove.
3020 (m32r_linux_iterate_over_regset_sections): New.
3021 (m32r_linux_init_abi): Adjust gdbarch initialization.
3023 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3026 (amd64obsd_iterate_over_regset_sections): New.
3027 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3028 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3030 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3031 regset_from_core_section initialization.
3032 * i386-tdep.c (i386_regset_from_core_section): Remove.
3033 (i386_iterate_over_regset_sections): New.
3034 (i386_gdbarch_init): Adjust gdbarch initialization.
3035 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3036 (i386_iterate_over_regset_sections): New prototype.
3037 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3039 (i386obsd_aout_iterate_over_regset_sections): New.
3040 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3041 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3043 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3044 (amd64fbsd_init_abi): Call fbsd_init_abi.
3045 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3046 (i386fbsd4_init_abi): Call fbsd_init_abi.
3047 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3048 target method 'make_corefile_notes'.
3049 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3051 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3053 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3054 (hppa_hpux_iterate_over_regset_sections): New.
3055 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3056 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3057 (hppa_linux_iterate_over_regset_sections): New.
3058 (hppa_linux_init_abi): Adjust.
3059 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3060 (hppanbsd_iterate_over_regset_sections): New.
3061 (hppanbsd_init_abi): Adjust.
3062 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3063 (hppaobsd_iterate_over_regset_sections): New.
3064 (hppaobsd_init_abi): Adjust.
3066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3068 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3069 (frv_linux_iterate_over_regset_sections): New.
3070 (frv_linux_init_abi): Adjust gdbarch initialization.
3072 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3074 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3075 (armbsd_iterate_over_regset_sections): New prototype.
3076 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3077 (armbsd_iterate_over_regset_sections): New.
3078 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3081 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3083 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3084 (alpha_linux_iterate_over_regset_sections): New.
3085 (alpha_linux_init_abi): Adjust gdbarch initialization.
3086 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3088 (alphanbsd_iterate_over_regset_sections): New prototype.
3090 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3094 (aarch64_linux_iterate_over_regset_sections): New.
3095 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3097 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3099 * fbsd-tdep.c: New file.
3100 * fbsd-tdep.h: New file.
3101 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3102 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3103 (ALLDEPFILES): Add fbsd-tdep.c.
3105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3107 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3109 * gdbarch.h: Regenerate.
3110 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3112 (get_core_register_section): Add parameter 'regset' and use it, if
3113 set. Add parameter 'min_size' and verify the bfd section size
3115 (get_core_registers_cb): Add parameter 'regset' and pass it to
3116 get_core_register section. For the "standard" register sections
3117 ".reg" and ".reg2", set an appropriate default for human_name.
3118 (get_core_registers): Don't abort when the gdbarch has an iterator
3119 but no regset_from_core_section. Add NULL/0 for parameters
3120 'regset'/'min_size' in calls to get_core_register_section.
3121 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3122 'regset' and use it instead of calling the
3123 regset_from_core_section gdbarch method.
3124 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3125 * i386-tdep.c (i386_supply_xstateregset)
3126 (i386_collect_xstateregset, i386_xstateregset): Moved to
3128 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3130 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3131 core file support only if the regset iterator hasn't been set.
3132 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3133 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3134 Moved from i386-tdep.c and renamed to *_linux*.
3135 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3136 each callback invocation. Allow any .reg-xstate size when reading
3138 * amd64-tdep.c (amd64_supply_xstateregset)
3139 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3141 (amd64_regset_from_core_section): Remove.
3142 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3143 install an amd64-specific regset_from_core_section gdbarch method.
3144 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3145 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3146 Moved from amd64-tdep.c and renamed to *_linux*.
3147 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3148 to each callback invocation. Allow any .reg-xstate size when
3149 reading from a core file.
3150 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3151 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3152 each callback invocation.
3153 (arm_linux_init_abi): No longer set the regset_from_core_section
3155 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3156 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3157 each callback invocation.
3158 (ppc_linux_init_abi): No longer set the regset_from_core_section
3160 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3161 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3162 (s390_regset_from_core_section): Remove.
3163 (s390_iterate_over_regset_sections): Add regset parameter to each
3164 callback invocation.
3165 (s390_gdbarch_init): No longer set the regset_from_core_section
3166 gdbarch method. Drop initialization of deleted tdep fields.
3168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3171 (amd64_linux_iterate_over_regset_sections): New.
3172 (amd64_linux_init_abi_common): Don't install the regset section
3173 list, but the new iterator in gdbarch.
3174 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3175 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3176 (arm_linux_iterate_over_regset_sections): ...here. New function.
3177 (arm_linux_init_abi): Set iterator instead of section list.
3178 * corelow.c (get_core_registers_cb): New function, logic moved
3180 (get_core_registers): ...loop body here. Use new iterator method
3181 instead of walking through the regset section list.
3182 * gdbarch.sh: Remove 'core_regset_sections'. New method
3183 'iterate_over_regset_sections'. New typedef
3184 'iterate_over_regset_sections_cb'.
3185 * gdbarch.c: Regenerate.
3186 * gdbarch.h: Likewise.
3187 * i386-linux-tdep.c (i386_linux_regset_sections)
3188 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3190 (i386_linux_iterate_over_regset_sections): New.
3191 (i386_linux_init_abi): Don't choose a regset section list, but
3192 install new iterator in gdbarch.
3193 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3194 (linux_collect_regset_section_cb): New function, logic moved
3196 (linux_collect_thread_registers): ...loop body here. Use iterator
3197 method instead of walking through list.
3198 (linux_make_corefile_notes_1): Check for presence of iterator
3199 method instead of regset section list.
3200 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3201 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3202 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3203 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3204 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3205 (ppc_linux_init_abi): Don't choose from above regset section
3206 lists, but install new iterator in gdbarch.
3207 * regset.h (struct core_regset_section): Remove.
3208 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3209 have_linux_v1, have_linux_v2, and have_tdb.
3210 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3211 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3212 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3213 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3214 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3215 (s390_iterate_over_regset_sections): ...here. New function. Use
3217 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3218 regset section lists, but install new iterator.
3220 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3222 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3224 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3226 * progspace.c (print_program_space): Don't prune program spaces
3227 before printing them.
3229 2014-09-25 Pedro Alves <palves@redhat.com>
3231 * infrun.c (user_visible_resume_ptid): Don't check
3232 singlestep_breakpoints_inserted_p.
3234 2014-09-25 Pedro Alves <palves@redhat.com>
3236 * breakpoint.c (should_be_inserted): Add debug output.
3238 2014-09-25 Pedro Alves <palves@redhat.com>
3240 * infrun.c (stepping_past_instruction_at)
3241 (clear_exit_convenience_vars): Point at infrun.h instead of
3243 (handle_signal_stop): Fix typo.
3245 2014-09-24 Yao Qi <yao@codesourcery.com>
3247 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3250 2014-09-22 Gary Benson <gbenson@redhat.com>
3252 * target.c (target_stop): Updated comment.
3254 2014-09-22 Gary Benson <gbenson@redhat.com>
3256 * target/target.h (target_stop_ptid): Renamed as...
3257 (target_stop_and_wait): New function. Updated comment.
3259 (target_continue_ptid): Renamed as...
3260 (target_continue_no_signal): New function. Updated comment.
3263 2014-09-22 Pedro Alves <palves@redhat.com>
3265 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3267 * breakpoint.c (enum ugll_insert_mode): New enum.
3268 (always_inserted_mode): Now a plain boolean.
3269 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3270 (breakpoints_always_inserted_mode): Delete.
3271 (breakpoints_should_be_inserted_now): New function.
3272 (insert_breakpoints): Pass UGLL_INSERT to
3273 update_global_location_list instead of calling
3274 insert_breakpoint_locations manually.
3275 (create_solib_event_breakpoint_1): New, factored out from ...
3276 (create_solib_event_breakpoint): ... this.
3277 (create_and_insert_solib_event_breakpoint): Use
3278 create_solib_event_breakpoint_1 instead of calling
3279 insert_breakpoint_locations manually.
3280 (update_global_location_list): Change parameter type from boolean
3281 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3282 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3283 (update_global_location_list_nothrow): Change parameter type from
3284 boolean to enum ugll_insert_mode.
3285 (_initialize_breakpoint): "breakpoint always-inserted" option is
3286 now a boolean command. Update help text.
3287 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3288 (breakpoints_should_be_inserted_now): New declaration.
3289 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3290 Remove breakpoints_always_inserted_mode check.
3291 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3292 * remote.c (remote_start_remote): Likewise.
3294 2014-09-22 Pedro Alves <palves@redhat.com>
3296 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3297 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3298 Instead, pass UGLL_INSERT to update_global_location_list.
3299 (update_global_location_list): Change parameter type from boolean
3300 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3301 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3302 (create_solib_event_breakpoint_1): New, factored out from ...
3303 (create_solib_event_breakpoint): ... this.
3304 (create_and_insert_solib_event_breakpoint): Use
3305 create_solib_event_breakpoint_1 instead of calling
3306 insert_breakpoint_locations manually.
3307 (update_global_location_list): Handle UGLL_INSERT.
3309 2014-09-22 Pedro Alves <palves@redhat.com>
3311 * breakpoint.c (enum ugll_insert_mode): New enum.
3312 (update_global_location_list)
3313 (update_global_location_list_nothrow): Change parameter type from
3314 boolean to enum ugll_insert_mode. All callers adjusted.
3316 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3318 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3319 SystemTap support in GDB.
3321 2014-09-19 Don Breazeal <donb@codesourcery.com>
3323 * linux-nat.c (linux_handle_extended_wait): Call
3324 linux_ptrace_get_extended_event.
3325 (wait_lwp): Call linux_is_extended_waitstatus.
3326 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3327 and linux_is_extended_waitstatus.
3328 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3329 linux_ptrace_get_extended_event.
3330 (linux_ptrace_get_extended_event): New function.
3331 (linux_is_extended_waitstatus): New function.
3332 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3333 (linux_is_extended_waitstatus): New declarations.
3335 2014-09-19 Yao Qi <yao@codesourcery.com>
3337 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3338 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3339 comments. Callers update.
3340 (dwarf_decode_lines): Likewise.
3341 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3342 comments. Skip the line table if 'lowpc' is greater than
3343 'address'. Don't check
3344 dwarf2_per_objfile->has_section_at_zero.
3346 2014-09-18 Doug Evans <dje@google.com>
3348 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3349 * python/py-symtab.c (stpy_get_producer): New function.
3350 (symtab_object_getset): Add "producer" attribute.
3352 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3355 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3356 (do_captured_read_memory_integer): Remove.
3357 (safe_read_memory_integer): Use target_read_memory directly instead
3358 of catching errors in do_captured_read_memory_integer.
3360 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3362 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3365 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3367 * objc-lang.c (find_implementation_from_class): Remove dead code.
3369 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3372 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3373 "fprintf_unfiltered (gdb_stdlog...)".
3375 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3377 PR breakpoints/12526
3378 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3380 * breakpoint.c (watch_command_1): Use these fields to retain
3381 bitfield information.
3382 (extract_bitfield_from_watchpoint_value): New function.
3383 (watchpoint_check): Use it.
3384 (update_watchpoint): Use it. Optimize the address and length of a
3385 HW watchpoint pointing to a bitfield.
3386 * value.h (unpack_value_bitfield): New prototype.
3387 * value.c (unpack_value_bitfield): Make extern.
3389 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3391 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3393 * gnu-nat.c (inf_threads): New function.
3394 * gnu-nat.h (inf_threads_ftype): New typedef.
3395 (inf_threads): New declaration.
3396 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3397 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3398 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3399 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3400 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3401 (i386_gnu_dr_get_control): New functions.
3402 (reg_addr): New structure.
3403 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3404 i386 debugging register hooks.
3405 * NEWS: Mention this.
3407 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3409 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3410 vector data transfer instructions.
3411 (arm_record_coproc_data_proc): Updated.
3413 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3415 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3416 arm_record_exreg_ld_st_insn.
3417 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3420 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3422 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3423 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3424 processing instructions.
3426 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3428 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3429 for advance SIMD struct ld/st insn.
3430 (thumb2_record_decode_insn_handler): Replace stub handler with
3431 thumb2_record_asimd_struct_ld_st.
3433 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3435 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3436 for asimd, vfp and coprocessor insns.
3437 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3438 and coprocessor insns.
3439 (thumb2_record_coproc_insn): New function.
3440 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3442 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3445 2014-09-13 Doug Evans <xdje42@gmail.com>
3447 * NEWS: Mention new "queue-signal" command.
3448 * infcmd.c (queue_signal_command): New function.
3449 (_initialize_infcmd): Add new queue-signal command.
3451 2014-09-13 Doug Evans <xdje42@gmail.com>
3453 * linux-nat.c (wait_lwp): Add debugging printf.
3454 (linux_nat_wait_1): Ditto.
3456 2014-09-12 Pedro Alves <palves@redhat.com>
3458 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3459 (create_and_insert_solib_event_breakpoint): New functions.
3460 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3461 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3462 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3463 (remove_dbx_link_breakpoint): Delete function.
3464 (insert_dbx_link_bpt_in_file): Use
3465 create_and_insert_solib_event_breakpoint instead of
3466 deprecated_insert_raw_breakpoint.
3467 (procfs_wait): Don't check whether we hit __dbx_link here.
3468 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3470 * solib-irix.c (base_breakpoint): Delete global.
3471 (disable_break): Delete function.
3472 (enable_break): Use create_solib_event_breakpoint
3473 instead of deprecated_insert_raw_breakpoint.
3474 (irix_solib_handle_event): New function.
3475 (irix_solib_create_inferior_hook): Don't run the target or disable
3476 the mapping-complete breakpoint here.
3477 (_initialize_irix_solib): Install irix_solib_handle_event as
3478 so_ops->handle_event hook.
3480 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3481 Ulrich Weigand <uweigand@de.ibm.com>
3484 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3485 instead of read_memory_unsigned_integer.
3487 2014-09-12 Gary Benson <gbenson@redhat.com>
3489 * nat/linux-waitpid.c: Include common-defs.h.
3490 [GDBSERVER]: Add FIXME comment.
3491 [!GDBSERVER]: Don't include defs.h or signal.h.
3492 (linux_debug) [!GDBSERVER]: Remove empty block.
3494 2014-09-12 Gary Benson <gbenson@redhat.com>
3496 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3497 Don't include defs.h or server.h.
3499 2014-09-12 Gary Benson <gbenson@redhat.com>
3501 * nat/linux-btrace.c: Include common-defs.h.
3502 Don't include defs.h, server.h or gdbthread.h.
3503 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3505 2014-09-12 Gary Benson <gbenson@redhat.com>
3507 * common/agent.c: Include common-defs.h.
3508 Don't include defs.h or server.h.
3509 * common/buffer.c: Likewise.
3510 * common/common-debug.c: Likewise.
3511 * common/common-utils.c: Likewise.
3512 * common/errors.c: Likewise.
3513 * common/filestuff.c: Likewise.
3514 * common/format.c: Likewise.
3515 * common/gdb_vecs.c: Likewise.
3516 * common/print-utils.c: Likewise.
3517 * common/ptid.c: Likewise.
3518 * common/rsp-low.c: Likewise.
3519 * common/signals.c: Likewise.
3520 * common/vec.c: Likewise.
3521 * common/xml-utils.c: Likewise.
3522 * nat/linux-osdata.c: Likewise.
3523 * nat/linux-procfs.c: Likewise.
3524 * nat/linux-ptrace.c: Likewise.
3525 * nat/mips-linux-watch.c: Likewise.
3526 * target/waitstatus.c: Likewise.
3528 2014-09-12 Tom Tromey <tromey@redhat.com>
3529 Gary Benson <gbenson@redhat.com>
3531 * common/common-regcache.h: New file.
3532 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3533 * regcache.h: Include common-regcache.h.
3534 (regcache_read_pc): Don't declare.
3535 * regcache.c (get_thread_regcache_for_ptid): New function.
3536 * nat/linux-btrace.c: Don't include regcache.h.
3537 Include common-regcache.h.
3538 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3540 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3542 * regcache.h (struct regset): Declare.
3544 2014-09-11 Pedro Alves <palves@redhat.com>
3547 * main.c: Include "infrun.h".
3548 (catch_command_errors, catch_command_errors_const): Wait for the
3549 foreground command to complete.
3550 * top.c (maybe_wait_sync_command_done): New function, factored out
3552 (maybe_wait_sync_command_done): ... here.
3553 * top.h (maybe_wait_sync_command_done): New declaration.
3555 2014-09-11 Tom Tromey <tromey@redhat.com>
3556 Gary Benson <gbenson@redhat.com>
3558 * common/symbol.h: New file.
3559 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3560 * minsyms.c (find_minimal_symbol_address): New function.
3561 * common/agent.c: Include common/symbol.h.
3562 [!GDBSERVER]: Don't include objfiles.h.
3563 (agent_look_up_symbols): Use find_minimal_symbol_address.
3565 2014-09-11 Gary Benson <gbenson@redhat.com>
3567 * target/target.h (target_stop_ptid, target_continue_ptid):
3569 * target.c (target_stop_ptid, target_continue_ptid): New
3571 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3572 (agent_run_command): Always use target_stop_ptid and
3573 target_continue_ptid.
3575 2014-09-11 Tom Tromey <tromey@redhat.com>
3576 Gary Benson <gbenson@redhat.com>
3578 * target/target.h: New file.
3579 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3580 * target.h: Include target/target.h.
3581 (target_read_memory, target_write_memory): Don't declare.
3582 * target.c (target_read_uint32): New function.
3583 * common/agent.c: Include target/target.h.
3584 [!GDBSERVER]: Don't include target.h.
3585 (helper_thread_id): Type changed to uint32_t.
3586 (agent_get_helper_thread_id): Use target_read_uint32.
3587 (agent_run_command): Always use target_read_memory and
3588 target_write_memory.
3589 (agent_capability): Type changed to uint32_t.
3590 (agent_capability_check): Use target_read_uint32.
3592 2014-09-11 Gary Benson <gbenson@redhat.com>
3594 * common/common-debug.h (show_debug_regs): Declare.
3595 * common/common-debug.c (show_debug_regs): Define.
3596 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3597 all uses with show_debug_regs. Replace all uses that considered
3598 debug_hw_points as a multi-value integer with straight boolean
3600 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3601 with show_debug_regs.
3602 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3603 all uses with show_debug_regs.
3604 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3605 uses with show_debug_regs.
3607 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3609 * findvar.c (address_from_register): Handle targets requiring
3610 a special conversion routine even for plain pointer types.
3612 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3614 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3615 (store_register): Do not call exec_one_dummy_insn.
3617 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3619 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3620 dereference it first. Use value_enclosing_type instead of
3622 (ada_array_length): Likewise.
3624 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3626 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3627 Adjust function implementation and documentation accordingly.
3628 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3629 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3630 Update call to ada_value_ptr_subscript.
3632 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3634 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3635 instead of VAL's type.
3637 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3639 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3641 2014-09-09 Doug Evans <xdje42@gmail.com>
3644 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3645 last parameter to pkg-config, not first.
3646 * configure.ac: Pass --with-guile provided pkg-config path to
3647 GDB_GUILE_PROGRAM_NAMES.
3648 * configure: Regenerate.
3650 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3652 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3655 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3657 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3658 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3659 the list of sections determining GDB_OSABI_IRIX.
3661 2014-09-09 James Hogan <james.hogan@imgtec.com>
3663 * MAINTAINERS (Write After Approval): Add "James Hogan".
3665 2014-09-09 James Hogan <james.hogan@imgtec.com>
3667 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3669 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3671 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3673 2014-09-08 Doug Evans <xdje42@gmail.com>
3676 * guile.c: #include <signal.h>.
3677 (_initialize_guile): Block SIGCHLD while initializing Guile.
3679 Replaces the following, which is reverted.
3681 2014-07-26 Doug Evans <xdje42@gmail.com>
3684 * configure.ac: Add check for header gc/gc.h.
3685 Add check for function setenv.
3686 * configure: Regenerate.
3687 * config.in: Regenerate.
3688 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3690 2014-09-08 Doug Evans <xdje42@gmail.com>
3692 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3693 with named constant. Fix style of pointer comparison.
3694 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3696 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3699 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3700 decide whether we display the command on "show user".
3701 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3702 printing command name.
3703 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3704 * cli/cli-decode.c (cli_user_command_p): Create helper function
3705 to verify whether cmd_list_element is a user-defined command.
3707 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3710 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3711 Fix goto out of TRY_CATCH.
3713 2014-09-06 Doug Evans <xdje42@gmail.com>
3714 Tom Tromey <tromey@redhat.com>
3717 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3718 $_any_caller_matches.
3719 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3720 * python/lib/gdb/function/caller_is.py: New file.
3722 2014-09-06 Doug Evans <xdje42@gmail.com>
3724 * infcmd.c (program_info): Fix typo.
3726 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3729 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3730 'number'. New variable 'has_digit'. Rewrite code to deal with
3731 subexpressions on SDT probes.
3733 2014-09-04 Pedro Alves <palves@redhat.com>
3735 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3736 the input is only one character long.
3738 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3741 * f-valprint.c (f_val_print): Specify the correct print option to
3742 use when printing integer values.
3744 2014-09-04 Gary Benson <gbenson@redhat.com>
3746 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3747 Remove code to cope with LWPs wrapped as PIDs.
3748 Add assertions to ensure no wrapped LWPs are passed.
3750 2014-09-04 Pedro Alves <palves@redhat.com>
3752 * value.c (value_ranges_copy_adjusted): New function, factored out
3754 (value_contents_copy_raw): ... here.
3755 (unpack_value_bits_as_long_1): Rename back to ...
3756 (unpack_bits_as_long): ... this. Remove 'original_value' and
3757 'result' parameters. Change return type to LONGEST.
3758 (unpack_value_bits_as_long): Delete.
3759 (unpack_value_field_as_long_1): Delete.
3760 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3761 (unpack_value_bitfield): New function.
3762 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3763 (value_fetch_lazy): Use unpack_value_bitfield.
3764 * value.h (unpack_value_bits_as_long): Delete declaration.
3766 2014-09-03 Sasha Smundak <asmundak@google.com>
3768 * python/py-frame.c (frapy_read_register): New function.
3770 2014-09-03 James Hogan <james.hogan@imgtec.com>
3772 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3773 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3775 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3778 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3780 (add_cmd): Set "completer_handle_brkchars" to NULL.
3781 * cli/cli-decode.h (struct cmd_list_element)
3782 <completer_handle_brkchars>: New field.
3783 * command.h (completer_ftype_void): New typedef.
3784 (set_cmd_completer_handle_brkchars): New prototype.
3785 * completer.c (set_gdb_completion_word_break_characters): New
3787 (complete_line_internal): Call "completer_handle_brkchars"
3788 callback from command.
3789 * completer.h: Include "command.h".
3790 (set_gdb_completion_word_break_characters): New prototype.
3791 * python/py-cmd.c (cmdpy_completer_helper): New function.
3792 (cmdpy_completer_handle_brkchars): New function.
3793 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3794 (cmdpy_init): Set completer_handle_brkchars to
3795 cmdpy_completer_handle_brkchars.
3797 2014-09-03 Gary Benson <gbenson@redhat.com>
3799 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3800 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3801 Loop conditions changed to equivalent form.
3802 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3803 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3804 ALL_DEBUG_ADDRESS_REGISTERS.
3806 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3808 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3811 2014-09-02 Doug Evans <dje@google.com>
3813 * typeprint.c (find_global_typedef): Fix comment.
3815 2014-09-02 Gary Benson <gbenson@redhat.com>
3817 * i386-nat.h: Renamed as...
3818 * x86-nat.h: New file. All type, function and variable name
3819 prefixes changed from "i386_" to "x86_". All references updated.
3820 * i386-nat.c: Renamed as...
3821 * x86-nat.c: New file. All type, function and variable name
3822 prefixes changed from "i386_" to "x86_". All references updated.
3823 * common/i386-xstate.h: Renamed as...
3824 * common/x86-xstate.h: New file. All type, function and variable
3825 name prefixes changed from "i386_" to "x86_". All references
3827 * nat/i386-cpuid.h: Renamed as...
3828 * nat/x86-cpuid.h: New file. All type, function and variable name
3829 prefixes changed from "i386_" to "x86_". All references updated.
3830 * nat/i386-gcc-cpuid.h: Renamed as...
3831 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3832 name prefixes changed from "i386_" to "x86_". All references
3834 * nat/i386-dregs.h: Renamed as...
3835 * nat/x86-dregs.h: New file. All type, function and variable name
3836 prefixes changed from "i386_" to "x86_". All references updated.
3837 * nat/i386-dregs.c: Renamed as...
3838 * nat/x86-dregs.c: New file. All type, function and variable name
3839 prefixes changed from "i386_" to "x86_". All references updated.
3841 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3843 * varobj.c (_initialize_varobj): Move to the end of file.
3845 2014-08-29 Gary Benson <gbenson@redhat.com>
3847 * common/common-exceptions.h: New file.
3848 * common/common-exceptions.c: Likewise.
3849 * Makefile.in (SFILES): Add common/common-exceptions.c.
3850 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3851 (COMMON_OBS): Add common-exceptions.o.
3852 (common-exceptions.o): New rule.
3853 * exceptions.h (common-exceptions.h): Include.
3854 (gdb_setjmp.h): Do not include.
3855 (return_reason): Moved to common-exceptions.h.
3856 (enum return_reason): Likewise.
3857 (RETURN_MASK): Likewise.
3858 (typedef return_mask): Likewise.
3859 (enum errors): Likewise.
3860 (struct gdb_exception): Likewise.
3861 (exceptions_state_mc_init): Likewise.
3862 (exceptions_state_mc_action_iter): Likewise.
3863 (exceptions_state_mc_action_iter_1): Likewise.
3864 (TRY_CATCH): Likewise.
3865 (throw_exception): Likewise.
3866 (throw_verror): Likewise.
3867 (throw_vquit): Likewise.
3868 (throw_error): Likewise.
3869 (throw_quit): Likewise.
3870 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3871 (enum catcher_action): Likewise.
3872 (struct catcher): Likewise.
3873 (current_catcher): Likewise.
3874 (catcher_list_size): Likewise.
3875 (exceptions_state_mc_init): Likewise.
3876 (catcher_pop): Likewise.
3877 (exceptions_state_mc): Likewise.
3878 (exceptions_state_mc_action_iter): Likewise.
3879 (exceptions_state_mc_action_iter_1): Likewise.
3880 (throw_exception): Likewise.
3881 (exception_messages): Likewise.
3882 (exception_messages_size): Likewise.
3883 (throw_it): Likewise.
3884 (throw_verror): Likewise.
3885 (throw_vquit): Likewise.
3886 (throw_error): Likewise.
3887 (throw_quit): Likewise.
3888 (prepare_to_throw_exception): New function.
3890 2014-08-29 Gary Benson <gbenson@redhat.com>
3892 * common/gdb_setjmp.h: New file.
3893 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3894 * configure.ac: Move sigsetjmp check...
3895 * common/common.m4: ...here.
3896 * configure: Regenerate.
3897 * cp-support.c (SIGJMP_BUF): Delete.
3898 (SIGSETJMP): Likewise.
3899 (SIGLONGJMP): Likewise.
3900 * exceptions.h (gdb_setjmp.h): Include.
3901 (setjmp.h): Do not include.
3902 (EXCEPTIONS_SIGJMP_BUF): Delete.
3903 (EXCEPTIONS_SIGSETJMP): Likewise.
3904 (EXCEPTIONS_SIGLONGJMP): Likewise.
3905 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3907 * exceptions.c: Likewise.
3909 2014-08-29 Gary Benson <gbenson@redhat.com>
3911 * cleanups.h: Moved to...
3912 * common/cleanups.h: New file.
3913 * cleanups.c: Moved to...
3914 * common/cleanups.c: New file. Include common-defs.h and
3915 cleanups.h. Do not include defs.h.
3916 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3917 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3918 (cleanups.o): New rule.
3920 2014-08-29 Gary Benson <gbenson@redhat.com>
3922 * common/errors.h (internal_warning): New declaration.
3923 (internal_vwarning): Likewise.
3924 * common/errors.c (internal_warning): New function.
3925 * utils.h (internal_warning): Don't declare.
3926 (internal_vwarning): Likewise.
3927 * utils.c (internal_warning): Removed.
3929 2014-08-29 Gary Benson <gbenson@redhat.com>
3931 * main.c (captured_main): Use warning during startup.
3932 Prefix startup warning messages with command name.
3934 2014-08-29 Gary Benson <gbenson@redhat.com>
3936 * main.c (captured_main): Handle usage errors with error.
3938 2014-08-29 Gary Benson <gbenson@redhat.com>
3940 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3941 exit pair with a call to error. Wrap the message with _().
3943 2014-08-29 Gary Benson <gbenson@redhat.com>
3945 * main.c (captured_main): Replace a fprintf/exit
3946 pair with a call to error. Wrap the message with _().
3948 2014-08-29 Gary Benson <gbenson@redhat.com>
3950 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3951 pairs with calls to error. Wrap the message with _().
3953 2014-08-29 Gary Benson <gbenson@redhat.com>
3955 * utils.c (vwarning): Protect calls to target_terminal_ours
3958 2014-08-29 Gary Benson <gbenson@redhat.com>
3960 * exceptions.c (print_flush): Protect calls to
3961 target_terminal_ours and wrap_here.
3963 2014-08-29 Gary Benson <gbenson@redhat.com>
3965 * utils.h (filtered_printing_initialized): New declaration.
3966 * utils.c (abort_with_message): New function.
3967 (internal_vproblem): Use abort_with_message for first level
3968 recursive internal problems, and if gdb_stderr is not set up.
3969 Protect calls to target_terminal_ours, begin_line and query.
3971 2014-08-28 Doug Evans <dje@google.com>
3973 * symtab.c (in_prologue): Move definition to better spot.
3974 (skip_prologue_using_sal): Ditto.
3976 2014-08-28 Doug Evans <dje@google.com>
3978 * symtab.c (find_function_start_sal): Move definition to better spot.
3980 2014-08-28 Yao Qi <yao@codesourcery.com>
3982 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3983 found_stack_adjust in forward scan. Remove condition check
3984 on found_stack_adjust which is always true. Indent the code.
3986 2014-08-28 Yao Qi <yao@codesourcery.com>
3988 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3989 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3990 (dwarf_decode_lines): Remove argument
3991 want_line_info. Remove condition check on want_line_info.
3994 2014-08-27 Doug Evans <dje@google.com>
3996 * dwarf2read.c (dwarf_record_line): Fix typo.
3998 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4000 * target.h (struct target_ops::to_terminal_save_ours): Remove
4002 (target_terminal_save_ours): Remove macro.
4003 * target-delegates.c: Regenerate.
4004 * inf-child.c (inf_child_target): Don't set the nonexistent
4005 field to_terminal_save_ours.
4006 * inferior.h (child_terminal_save_ours): Remove declaration.
4007 * terminal.h (gdb_save_tty_state): New declaration.
4008 * inflow.c (child_terminal_save_ours): Rename to ...
4009 (gdb_save_tty_state): ... this.
4010 * tui/tui.c: Include terminal.h.
4011 (tui_enable): Use gdb_save_tty_state instead of
4012 target_terminal_save_ours.
4013 (tui_disable): Likewise.
4015 2014-08-25 Doug Evans <dje@google.com>
4017 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4018 Pass NULL instead of 0 for context pointer.
4020 2014-08-25 Yao Qi <yao@codesourcery.com>
4022 * dwarf2read.c: Fix grammatical error.
4024 2014-08-24 Yao Qi <yao@codesourcery.com>
4026 * dwarf2read.c (scan_partial_symbols): Update comments.
4027 Rename argument 'need_pc' with 'set_addrmap'.
4028 (add_partial_namespace): Rename argument 'need_pc' with
4030 (add_partial_module): Likewise.
4031 (add_partial_subprogram): Likewise. Update comments.
4032 (dwarf2_name): Fix typo.
4034 2014-08-22 Doug Evans <dje@google.com>
4037 * dwarf2read.c (dwarf_record_line_p): New function.
4038 (dwarf_decode_lines_1): Ignore subsequent line number entries
4039 for the same line if any entry had a non-zero discriminator.
4041 2014-08-22 Doug Evans <dje@google.com>
4043 * buildsym.h (record_line_ftype): New typedef.
4044 (record_line): Use it.
4045 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4046 (dwarf_decode_lines_1): Call them.
4048 2014-08-22 Yao Qi <yao@codesourcery.com>
4050 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4051 (ctf_end): Remove code.
4053 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4055 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4056 (linux_make_corefile_notes): call update_thread_list, protected against
4059 2014-08-21 Pedro Alves <palves@redhat.com>
4061 * infcmd.c (attach_command): Remove comment.
4063 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4065 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4066 unsigned LONGEST to ULONGEST.
4068 2014-08-20 Pedro Alves <palves@redhat.com>
4070 * Makefile.in (check-read1): New rule.
4072 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4074 * value.c (value_from_contents_and_address): Strip resolved_type's
4075 typedef layers before checking its TYPE_DATA_LOCATION.
4077 2014-08-20 Pedro Alves <palves@redhat.com>
4079 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4081 2014-08-20 Yao Qi <yao@codesourcery.com>
4083 * amd64-tdep.c (amd64_classify): Add a blank line after the
4084 example. Move "*/" to a new line.
4085 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4086 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4087 * dwarf2read.c (psymtab_include_file_name): Likewise.
4089 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4090 Pedro Alves <palves@redhat.com>
4094 * ada-lang.c (coerce_unspec_val_to_type): Use
4095 value_contents_copy_raw.
4096 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4097 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4098 * cp-valprint.c (cp_print_value_fields): Let the common printing
4099 code handle optimized out values.
4100 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4101 * d-valprint.c (dynamic_array_type): Use
4102 value_bits_any_optimized_out.
4103 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4104 check_any_valid fields.
4105 (check_pieced_value_bits): Delete and inline ...
4106 (check_pieced_synthetic_pointer): ... here.
4107 (check_pieced_value_validity): Delete.
4108 (check_pieced_value_invalid): Delete.
4109 (pieced_value_funcs): Remove check_validity and check_any_valid
4111 (read_pieced_value): Use mark_value_bits_optimized_out.
4112 (write_pieced_value): Switch to use
4113 mark_value_bytes_optimized_out.
4114 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4115 of assuming the whole value is optimized out.
4116 * findvar.c (read_frame_register_value): Remove special handling
4117 of optimized out registers.
4118 (value_from_register): Use mark_value_bytes_optimized_out.
4119 * frame-unwind.c (frame_unwind_got_optimized): Use
4120 mark_value_bytes_optimized_out.
4121 * jv-valprint.c (java_value_print): Adjust.
4122 (java_print_value_fields): Let the common printing code handle
4123 optimized out values.
4124 * mips-tdep.c (mips_print_register): Remove special handling of
4125 optimized out registers.
4126 * opencl-lang.c (lval_func_check_validity): Delete.
4127 (lval_func_check_any_valid): Delete.
4128 (opencl_value_funcs): Remove check_validity and check_any_valid
4130 * p-valprint.c (pascal_object_print_value_fields): Let the common
4131 printing code handle optimized out values.
4132 * stack.c (read_frame_arg): Remove special handling of optimized
4133 out values. Fetch both VAL and ENTRYVAL before comparing
4134 contents. Adjust to value_available_contents_eq rename.
4135 * valprint.c (valprint_check_validity)
4136 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4137 (val_print_array_elements): Adjust.
4138 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4139 (value_bits_any_optimized_out): New function.
4140 (value_entirely_covered_by_range_vector): New function, factored
4141 out from value_entirely_unavailable.
4142 (value_entirely_unavailable): Reimplement.
4143 (value_entirely_optimized_out): New function.
4144 (insert_into_bit_range_vector): New function, factored out from
4145 mark_value_bits_unavailable.
4146 (mark_value_bits_unavailable): Reimplement.
4147 (struct ranges_and_idx): New struct.
4148 (find_first_range_overlap_and_match): New function, factored out
4149 from value_available_contents_bits_eq.
4150 (value_available_contents_bits_eq): Rename to ...
4151 (value_contents_bits_eq): ... this. Check both unavailable
4152 contents and optimized out contents.
4153 (value_available_contents_eq): Rename to ...
4154 (value_contents_eq): ... this.
4155 (allocate_value_lazy): Remove reference to the old optimized_out
4157 (allocate_optimized_out_value): Use
4158 mark_value_bytes_optimized_out.
4159 (require_not_optimized_out): Adjust to check whether the
4160 optimized_out vec is empty.
4161 (ranges_copy_adjusted): New function, factored out from
4162 value_contents_copy_raw.
4163 (value_contents_copy_raw): Also copy the optimized out ranges.
4164 Assert the destination ranges aren't optimized out.
4165 (value_contents_copy): Update comment, remove call to
4166 require_not_optimized_out.
4167 (value_contents_equal): Adjust to check whether the optimized_out
4169 (set_value_optimized_out, value_optimized_out_const): Delete.
4170 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4172 (value_entirely_optimized_out, value_bits_valid): Delete.
4173 (value_copy): Take a VEC copy of the 'optimized_out' field.
4174 (value_primitive_field): Remove special handling of optimized out.
4175 (value_fetch_lazy): Assert that lazy values have no unavailable
4176 regions. Use value_bits_any_optimized_out. Remove some special
4177 handling for optimized out values.
4178 * value.h: Add intro comment about <optimized out> and
4180 (struct lval_funcs): Remove check_validity and check_any_valid
4182 (set_value_optimized_out, value_optimized_out_const): Remove.
4183 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4185 (value_bits_any_optimized_out): New declaration.
4186 (value_bits_valid): Delete declaration.
4187 (value_available_contents_eq): Rename to ...
4188 (value_contents_eq): ... this, and extend comments.
4190 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4192 Fix -fsanitize=address on unreadable inferior strings.
4193 * valprint.c (val_print_string): Fix access before BUFFER.
4195 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4197 * target.c (target_struct_size): Remove.
4198 (target_struct_allocsize): Remove.
4199 (DEFAULT_ALLOCSIZE): Remove.
4200 (target_ops_p): New typedef.
4201 (DEF_VEC_P (target_ops_p)): New vector type.
4202 (target_structs): Change type to VEC (target_ops_p).
4203 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4204 (find_default_run_target): Rewrite for loop following changes to
4207 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4209 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4210 Adjust code accordingly. Adjust function description comment.
4212 2014-08-19 Yao Qi <yao@codesourcery.com>
4214 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4217 2014-08-19 Alan Modra <amodra@gmail.com>
4219 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4220 * config.in: Regenerate.
4221 * configure: Regenerate.
4223 2014-08-19 Tom Tromey <tromey@redhat.com>
4224 Gary Benson <gbenson@redhat.com>
4226 * common/common-debug.h: New file.
4227 * common/common-debug.c: Likewise.
4228 * debug.c: Likewise.
4229 * Makefile.in (SFILES): Add common/common-debug.c.
4230 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4231 (COMMON_OBS): Add common-debug.o and debug.o.
4232 (common-debug.o): New rule.
4233 * common/common-defs.h: Include common-debug.h.
4234 * common/agent.c (debug_agent_printf): New function.
4235 (DEBUG_AGENT): Redefine.
4236 * nat/i386-dregs.c (debug_printf): Undefine.
4238 2014-08-19 Gary Benson <gbenson@redhat.com>
4240 * common/common-defs.h: Include print-utils.h.
4241 * utils.h: Do not include print-utils.h.
4243 2014-08-19 Tom Tromey <tromey@redhat.com>
4244 Gary Benson <gbenson@redhat.com>
4246 * common/common-types.h: New file.
4247 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4248 * common/common-defs.h: Include common-types.h.
4249 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4252 2014-08-19 Tom Tromey <tromey@redhat.com>
4253 Gary Benson <gbenson@redhat.com>
4255 * common/errors.h: New file.
4256 * common/errors.c: Likewise.
4257 * Makefile.in (SFILES): Add common/errors.c.
4258 (HFILES_NO_SRCDIR): Add common/errors.h.
4259 (COMMON_OBS): Add errors.o.
4260 (errors.o): New rule.
4261 * common/common-defs.h: Include errors.h.
4262 * utils.h (perror_with_name, error, verror, warning, vwarning):
4264 * common/common-utils.h: (malloc_failure, internal_error):
4267 2014-08-19 Gary Benson <gbenson@redhat.com>
4269 * utils.c (internal_vproblem): Always print the message.
4271 2014-08-18 Doug Evans <dje@google.com>
4273 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4275 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4277 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4278 Return 0 if TYPE is dynamic.
4279 (print_range): Add handling of dynamic ranges.
4281 2014-08-18 Keven Boell <keven.boell@intel.com>
4282 Joel Brobecker <brobecker@adacore.com>
4284 * gdbtypes.h (struct main_type): Add field "data_location".
4285 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4286 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4287 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4288 a dynamic data location.
4289 (resolve_dynamic_type): Add DW_AT_data_location handling.
4290 (copy_recursive, copy_type): Copy the data_location information
4292 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4293 * value.c (value_from_contents_and_address): Add
4294 DW_AT_data_location handling.
4296 2014-08-18 Keven Boell <keven.boell@intel.com>
4297 Joel Brobecker <brobecker@adacore.com>
4299 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4300 field "get_object_address".
4301 * dwarf2expr.c (execute_stack_op): Add handling for
4302 DW_OP_push_object_address.
4303 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4304 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4305 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4306 (dwarf_expr_get_obj_addr): New function.
4307 (dwarf_expr_ctx_funcs): Add get_object_address field.
4308 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4309 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4310 (dwarf2_evaluate_property): Add parameter "address". Use it.
4311 (needs_get_obj_addr): New function.
4312 (needs_frame_ctx_funcs): Add get_object_address field.
4313 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4314 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4315 (resolve_dynamic_array): Likewise.
4317 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4319 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4320 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4321 fixed value for records and unions for which some GNAT encodings
4324 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4326 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4327 rewrite to avoid "else if" and "else" constructs. Should be
4328 a no-op in practice.
4330 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4332 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4335 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4338 * eval.c: Update all calls to find_overload_match.
4339 * valarith.c: Likewise.
4340 (value_user_defined_cpp_op, value_user_defined_op): New
4341 argument NOSIDE. Update all callers.
4342 * valops.c (find_overload_match): New argument NOSIDE.
4343 * value.h (find_overload_match): Update signature.
4345 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4347 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4348 'items' methods instead of 'iteritems' method on dictionaries.
4350 2014-08-15 Doug Evans <dje@google.com>
4352 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4355 2014-08-15 Doug Evans <dje@google.com>
4357 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4359 2014-08-15 Doug Evans <dje@google.com>
4361 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4363 2014-08-15 Doug Evans <dje@google.com>
4365 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4368 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4370 * dcache.h: Include target.h, to avoid compile time warnings.
4372 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4374 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4375 frame_info" partial declaration.
4376 * gdbarch.h: Regenerate.
4378 2014-08-15 Yao Qi <yao@codesourcery.com>
4380 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4381 Add parameter 'decode_for_pst_p'. Callers update.
4383 2014-08-13 Yao Qi <yao@codesourcery.com>
4386 * configure.ac: Use local variable 'pos'.
4387 * configure: Regenerated.
4389 2014-08-11 Doug Evans <dje@google.com>
4391 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4392 message, it is redundant with "Reading symbols from ..." message.
4394 2014-08-10 Doug Evans <xdje42@gmail.com>
4396 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4398 2014-08-09 Yao Qi <yao@codesourcery.com>
4401 * remote.c (remote_xfer_partial): Remove dead code.
4403 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4405 * ia64-linux-tdep.c: Include "regset.h".
4406 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4407 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4408 (ia64_linux_supply_fpregset): New function.
4409 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4410 (ia64_linux_regset_from_core_section): New function.
4411 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4414 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4416 * m68klinux-tdep.c: Include "regset.h".
4417 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4418 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4419 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4420 (m68k_linux_regset_from_core_section): New function.
4421 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4424 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4426 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4427 function. Move logic to...
4428 (tilegx_linux_regmap): ... this new register map.
4429 (tilegx_linux_regset): Refer to register map, replace supply
4430 method by regcache_supply_regset, and add collect method.
4431 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4432 TILEGX_FIRST_EASY_REGNUM.
4434 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4436 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4437 that calls regcache_supply_regset and handles the EPC register
4438 separately. Move main logic to...
4439 (score7_linux_gregmap): ... this new register map.
4440 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4441 (score7_linux_gregset): Refer to register map. Add collect method.
4442 (score7_linux_regset_from_core_section): Replace
4443 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4444 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4445 (struct regset): Delete unused forward declaraction.
4446 (struct pt_regs): Delete structure definition.
4447 (elf_gregset_t): Delete typedef.
4449 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4451 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4452 (nios2_core_regset): Add collect method.
4454 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4456 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4457 platform-independent and don't write to read-only input buffer.
4458 (m32r_linux_collect_gregset): New function.
4459 (m32r_linux_gregset): Add collect method.
4461 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4463 * hppa-linux-tdep.c (greg_map): Rename to...
4464 (hppa_linux_gregmap): ... this. Also convert to
4465 regcache_map_entry format.
4466 (hppa_linux_supply_regset): Delete function.
4467 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4468 (hppa_linux_fpregmap): ... this new register map.
4469 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4470 register map, replace supply method by regcache_supply_regset, and
4471 add collect method regcache_collect_regset.
4473 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4475 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4476 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4477 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4478 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4479 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4480 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4481 (frv_linux_supply_gregset): Replace main logic by call to
4482 regcache_supply_regset, but keep clearing gr32-gr63.
4483 (frv_linux_supply_fpregset): Delete function.
4484 (frv_linux_gregset): Refer to appropriate register map and add
4485 regcache_collect_regset as the collect method.
4486 (frv_linux_fpregset): Likewise. Also exchange the supply method
4487 by regcache_supply_regset.
4489 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4491 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4492 by call to alpha_supply_int_regs.
4493 (alpha_linux_collect_gregset): New function.
4494 (alpha_linux_supply_fpregset): Replace logic by call to
4495 alpha_supply_fp_regs.
4496 (alpha_linux_collect_fpregset): New function.
4497 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4499 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4501 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4502 by call to regcache_collect_regset.
4503 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4504 instead of aarch64_linux_supply_gregset/_fpregset.
4505 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4506 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4507 header file instead.
4508 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4509 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4510 functions. Move logic to ...
4511 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4513 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4514 refer to new register maps, replace *_regset_from_core by
4515 regcache_supply_regset, and also use regcache_collect_regset.
4516 * aarch64-linux-tdep.h: Include "regset.h".
4517 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4519 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4520 macros, moved from C source file.
4521 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4522 variable declarations.
4524 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4526 * s390-linux-nat.c: Include "regset.h".
4527 (regmap_gregset): Delete macro.
4528 (s390_64_regmap_gregset): New register map for
4529 regcache_supply/_collect_regset.
4530 (s390_64_gregset): New regset.
4531 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4532 (regmap_fpregset): Delete macro.
4533 (s390_native_supply, s390_native_collect): Delete functions.
4534 (supply_gregset, fill_gregset): Replace s390-specific regmap
4535 handling by a call to regcache_supply/_collect_regset.
4536 (supply_fpregset, fill_fpregset): Call regcache_supply/
4537 _collect_regset instead of s390_native_supply/_collect.
4538 (fetch_regset, store_regset): Likewise. Also change the last
4539 parameter to a regset instead of a regmap.
4540 (s390_linux_fetch_inferior_registers)
4541 (390_linux_store_inferior_registers): Adjust last parameter in
4542 calls to fetch_regset and store_regset.
4543 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4544 (s390_gregmap): ... this. Also make static const and convert to
4545 regcache_map_entry format.
4546 (s390x_regmap_gregset): Delete.
4547 (s390_regmap_fpregset): Rename to...
4548 (s390_fpregmap): ... this. Make static const and convert to
4549 regcache_map_entry format.
4550 (s390_regmap_upper, s390_regmap_last_break)
4551 (s390x_regmap_last_break, s390_regmap_system_call)
4552 (s390_regmap_tdb): Likewise.
4553 (s390_supply_regset, s390_collect_regset): Remove functions.
4554 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4556 (s390_gregset, s390_fpregset, s390_upper_regset)
4557 (s390_last_break_regset, s390x_last_break_regset)
4558 (s390_system_call_regset, s390_tdb_regset): Make global and
4559 replace s390_supply/_collect_regset by regcache_supply/
4561 (s390x_gregset): Delete.
4562 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4563 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4564 (s390_regmap_fpregset, s390_regmap_last_break)
4565 (s390x_regmap_last_break, s390_regmap_system_call)
4566 (s390_regmap_tdb): Delete global variable declarations.
4567 (s390_gregset, s390_fpregset, s390_last_break_regset)
4568 (s390x_last_break_regset, s390_system_call_regset)
4569 (s390_tdb_regset): New global variable declarations.
4571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4573 * regcache.c: Include "regset.h".
4574 (regcache_transfer_regset): New local function.
4575 (regcache_supply_regset, regcache_collect_regset): New functions.
4576 * regcache.h (struct regcache_map_entry): New structure.
4577 (REGCACHE_MAP_SKIP): New enum value.
4578 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4580 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4582 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4583 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4584 (ppc_linux_collect_gregset ): Likewise.
4585 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4586 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4587 (ppc_collect_vrregset): Likewise.
4588 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4591 2014-08-07 Yao Qi <yao@codesourcery.com>
4593 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4594 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4595 * remote.c (remote_read_bytes): Likewise.
4597 2014-08-07 Yao Qi <yao@codesourcery.com>
4599 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4601 2014-08-07 Yao Qi <yao@codesourcery.com>
4604 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4605 TARGET_XFER_OK instead of 0.
4607 2014-08-07 Gary Benson <gbenson@redhat.com>
4609 * common/common-defs.h: Include errno.h.
4610 * defs.h: Do not include errno.h.
4611 * ada-typeprint.c: Likewise.
4612 * c-typeprint.c: Likewise.
4613 * core-regset.c: Likewise.
4614 * corefile.c: Likewise.
4615 * corelow.c: Likewise.
4616 * event-loop.c: Likewise.
4617 * f-typeprint.c: Likewise.
4618 * gnu-nat.c: Likewise.
4619 * go32-nat.c: Likewise.
4620 * i386gnu-nat.c: Likewise.
4621 * m2-typeprint.c: Likewise.
4622 * nat/linux-btrace.c: Likewise.
4623 * p-typeprint.c: Likewise.
4624 * procfs.c: Likewise.
4625 * remote-sim.c: Likewise.
4626 * rs6000-nat.c: Likewise.
4627 * target.c: Likewise.
4628 * typeprint.c: Likewise.
4629 * ui-file.c: Likewise.
4630 * valops.c: Likewise.
4631 * valprint.c: Likewise.
4633 2014-08-07 Gary Benson <gbenson@redhat.com>
4635 * common/common-defs.h: Include string.h.
4636 * aarch64-tdep.c: Do not include string.h.
4637 * ada-exp.y: Likewise.
4638 * ada-lang.c: Likewise.
4639 * ada-lex.l: Likewise.
4640 * ada-typeprint.c: Likewise.
4641 * ada-valprint.c: Likewise.
4642 * aix-thread.c: Likewise.
4643 * alpha-linux-tdep.c: Likewise.
4644 * alpha-mdebug-tdep.c: Likewise.
4645 * alpha-nat.c: Likewise.
4646 * alpha-osf1-tdep.c: Likewise.
4647 * alpha-tdep.c: Likewise.
4648 * alphanbsd-tdep.c: Likewise.
4649 * amd64-dicos-tdep.c: Likewise.
4650 * amd64-linux-tdep.c: Likewise.
4651 * amd64-nat.c: Likewise.
4652 * amd64-sol2-tdep.c: Likewise.
4653 * amd64fbsd-tdep.c: Likewise.
4654 * amd64obsd-tdep.c: Likewise.
4655 * arch-utils.c: Likewise.
4656 * arm-linux-nat.c: Likewise.
4657 * arm-linux-tdep.c: Likewise.
4658 * arm-tdep.c: Likewise.
4659 * arm-wince-tdep.c: Likewise.
4660 * armbsd-tdep.c: Likewise.
4661 * armnbsd-nat.c: Likewise.
4662 * armnbsd-tdep.c: Likewise.
4663 * armobsd-tdep.c: Likewise.
4664 * avr-tdep.c: Likewise.
4665 * ax-gdb.c: Likewise.
4666 * ax-general.c: Likewise.
4667 * bcache.c: Likewise.
4668 * bfin-tdep.c: Likewise.
4669 * breakpoint.c: Likewise.
4670 * build-id.c: Likewise.
4671 * buildsym.c: Likewise.
4672 * c-exp.y: Likewise.
4673 * c-lang.c: Likewise.
4674 * c-typeprint.c: Likewise.
4675 * c-valprint.c: Likewise.
4676 * charset.c: Likewise.
4677 * cli-out.c: Likewise.
4678 * cli/cli-cmds.c: Likewise.
4679 * cli/cli-decode.c: Likewise.
4680 * cli/cli-dump.c: Likewise.
4681 * cli/cli-interp.c: Likewise.
4682 * cli/cli-logging.c: Likewise.
4683 * cli/cli-script.c: Likewise.
4684 * cli/cli-setshow.c: Likewise.
4685 * cli/cli-utils.c: Likewise.
4686 * coffread.c: Likewise.
4687 * common/agent.c: Likewise.
4688 * common/buffer.c: Likewise.
4689 * common/buffer.h: Likewise.
4690 * common/common-utils.c: Likewise.
4691 * common/filestuff.c: Likewise.
4692 * common/filestuff.c: Likewise.
4693 * common/format.c: Likewise.
4694 * common/print-utils.c: Likewise.
4695 * common/rsp-low.c: Likewise.
4696 * common/signals.c: Likewise.
4697 * common/vec.h: Likewise.
4698 * common/xml-utils.c: Likewise.
4699 * core-regset.c: Likewise.
4700 * corefile.c: Likewise.
4701 * corelow.c: Likewise.
4702 * cp-abi.c: Likewise.
4703 * cp-name-parser.y: Likewise.
4704 * cp-support.c: Likewise.
4705 * cp-valprint.c: Likewise.
4706 * cris-tdep.c: Likewise.
4707 * d-exp.y: Likewise.
4708 * darwin-nat.c: Likewise.
4709 * dbxread.c: Likewise.
4710 * dcache.c: Likewise.
4711 * demangle.c: Likewise.
4712 * dicos-tdep.c: Likewise.
4713 * disasm.c: Likewise.
4714 * doublest.c: Likewise.
4715 * dsrec.c: Likewise.
4716 * dummy-frame.c: Likewise.
4717 * dwarf2-frame.c: Likewise.
4718 * dwarf2loc.c: Likewise.
4719 * dwarf2read.c: Likewise.
4720 * elfread.c: Likewise.
4721 * environ.c: Likewise.
4723 * event-loop.c: Likewise.
4724 * exceptions.c: Likewise.
4726 * expprint.c: Likewise.
4727 * f-exp.y: Likewise.
4728 * f-lang.c: Likewise.
4729 * f-typeprint.c: Likewise.
4730 * f-valprint.c: Likewise.
4731 * fbsd-nat.c: Likewise.
4732 * findcmd.c: Likewise.
4733 * findvar.c: Likewise.
4734 * fork-child.c: Likewise.
4735 * frame.c: Likewise.
4736 * frv-linux-tdep.c: Likewise.
4737 * frv-tdep.c: Likewise.
4739 * gdb_bfd.c: Likewise.
4740 * gdbarch.c: Likewise.
4741 * gdbarch.sh: Likewise.
4742 * gdbtypes.c: Likewise.
4743 * gnu-nat.c: Likewise.
4744 * gnu-v2-abi.c: Likewise.
4745 * gnu-v3-abi.c: Likewise.
4746 * go-exp.y: Likewise.
4747 * go-lang.c: Likewise.
4748 * go32-nat.c: Likewise.
4749 * guile/guile.c: Likewise.
4750 * guile/scm-auto-load.c: Likewise.
4751 * hppa-hpux-tdep.c: Likewise.
4752 * hppa-linux-nat.c: Likewise.
4753 * hppanbsd-tdep.c: Likewise.
4754 * hppaobsd-tdep.c: Likewise.
4755 * i386-cygwin-tdep.c: Likewise.
4756 * i386-dicos-tdep.c: Likewise.
4757 * i386-linux-tdep.c: Likewise.
4758 * i386-nto-tdep.c: Likewise.
4759 * i386-sol2-tdep.c: Likewise.
4760 * i386-tdep.c: Likewise.
4761 * i386bsd-tdep.c: Likewise.
4762 * i386gnu-nat.c: Likewise.
4763 * i386nbsd-tdep.c: Likewise.
4764 * i386obsd-tdep.c: Likewise.
4765 * i387-tdep.c: Likewise.
4766 * ia64-libunwind-tdep.c: Likewise.
4767 * ia64-linux-nat.c: Likewise.
4768 * inf-child.c: Likewise.
4769 * inf-ptrace.c: Likewise.
4770 * inf-ttrace.c: Likewise.
4771 * infcall.c: Likewise.
4772 * infcmd.c: Likewise.
4773 * inflow.c: Likewise.
4774 * infrun.c: Likewise.
4775 * interps.c: Likewise.
4776 * iq2000-tdep.c: Likewise.
4777 * irix5-nat.c: Likewise.
4778 * jv-exp.y: Likewise.
4779 * jv-lang.c: Likewise.
4780 * jv-typeprint.c: Likewise.
4781 * jv-valprint.c: Likewise.
4782 * language.c: Likewise.
4783 * linux-fork.c: Likewise.
4784 * linux-nat.c: Likewise.
4785 * lm32-tdep.c: Likewise.
4786 * m2-exp.y: Likewise.
4787 * m2-typeprint.c: Likewise.
4788 * m32c-tdep.c: Likewise.
4789 * m32r-linux-nat.c: Likewise.
4790 * m32r-linux-tdep.c: Likewise.
4791 * m32r-rom.c: Likewise.
4792 * m32r-tdep.c: Likewise.
4793 * m68hc11-tdep.c: Likewise.
4794 * m68k-tdep.c: Likewise.
4795 * m68kbsd-tdep.c: Likewise.
4796 * m68klinux-nat.c: Likewise.
4797 * m68klinux-tdep.c: Likewise.
4798 * m88k-tdep.c: Likewise.
4799 * machoread.c: Likewise.
4800 * macrocmd.c: Likewise.
4802 * mdebugread.c: Likewise.
4803 * mem-break.c: Likewise.
4804 * memattr.c: Likewise.
4805 * memory-map.c: Likewise.
4806 * mep-tdep.c: Likewise.
4807 * mi/mi-cmd-break.c: Likewise.
4808 * mi/mi-cmd-disas.c: Likewise.
4809 * mi/mi-cmd-env.c: Likewise.
4810 * mi/mi-cmd-stack.c: Likewise.
4811 * mi/mi-cmd-var.c: Likewise.
4812 * mi/mi-cmds.c: Likewise.
4813 * mi/mi-console.c: Likewise.
4814 * mi/mi-getopt.c: Likewise.
4815 * mi/mi-interp.c: Likewise.
4816 * mi/mi-main.c: Likewise.
4817 * mi/mi-parse.c: Likewise.
4818 * microblaze-rom.c: Likewise.
4819 * microblaze-tdep.c: Likewise.
4820 * mingw-hdep.c: Likewise.
4821 * minidebug.c: Likewise.
4822 * minsyms.c: Likewise.
4823 * mips-irix-tdep.c: Likewise.
4824 * mips-linux-tdep.c: Likewise.
4825 * mips-tdep.c: Likewise.
4826 * mips64obsd-tdep.c: Likewise.
4827 * mipsnbsd-tdep.c: Likewise.
4828 * mipsread.c: Likewise.
4829 * mn10300-linux-tdep.c: Likewise.
4830 * mn10300-tdep.c: Likewise.
4831 * monitor.c: Likewise.
4832 * moxie-tdep.c: Likewise.
4833 * mt-tdep.c: Likewise.
4834 * nat/linux-btrace.c: Likewise.
4835 * nat/linux-osdata.c: Likewise.
4836 * nat/linux-procfs.c: Likewise.
4837 * nat/linux-ptrace.c: Likewise.
4838 * nat/linux-waitpid.c: Likewise.
4839 * nbsd-tdep.c: Likewise.
4840 * nios2-linux-tdep.c: Likewise.
4841 * nto-procfs.c: Likewise.
4842 * nto-tdep.c: Likewise.
4843 * objc-lang.c: Likewise.
4844 * objfiles.c: Likewise.
4845 * opencl-lang.c: Likewise.
4846 * osabi.c: Likewise.
4847 * osdata.c: Likewise.
4848 * p-exp.y: Likewise.
4849 * p-lang.c: Likewise.
4850 * p-typeprint.c: Likewise.
4851 * parse.c: Likewise.
4852 * posix-hdep.c: Likewise.
4853 * ppc-linux-nat.c: Likewise.
4854 * ppc-sysv-tdep.c: Likewise.
4855 * ppcfbsd-tdep.c: Likewise.
4856 * ppcnbsd-tdep.c: Likewise.
4857 * ppcobsd-tdep.c: Likewise.
4858 * printcmd.c: Likewise.
4859 * procfs.c: Likewise.
4860 * prologue-value.c: Likewise.
4861 * python/py-auto-load.c: Likewise.
4862 * python/py-gdb-readline.c: Likewise.
4863 * ravenscar-thread.c: Likewise.
4864 * regcache.c: Likewise.
4865 * registry.c: Likewise.
4866 * remote-fileio.c: Likewise.
4867 * remote-m32r-sdi.c: Likewise.
4868 * remote-mips.c: Likewise.
4869 * remote-notif.c: Likewise.
4870 * remote-sim.c: Likewise.
4871 * remote.c: Likewise.
4872 * reverse.c: Likewise.
4873 * rs6000-aix-tdep.c: Likewise.
4874 * ser-base.c: Likewise.
4875 * ser-go32.c: Likewise.
4876 * ser-mingw.c: Likewise.
4877 * ser-pipe.c: Likewise.
4878 * ser-tcp.c: Likewise.
4879 * ser-unix.c: Likewise.
4880 * serial.c: Likewise.
4881 * sh-tdep.c: Likewise.
4882 * sh64-tdep.c: Likewise.
4883 * shnbsd-tdep.c: Likewise.
4885 * sol-thread.c: Likewise.
4886 * solib-dsbt.c: Likewise.
4887 * solib-frv.c: Likewise.
4888 * solib-osf.c: Likewise.
4889 * solib-som.c: Likewise.
4890 * solib-spu.c: Likewise.
4891 * solib-target.c: Likewise.
4892 * solib.c: Likewise.
4893 * somread.c: Likewise.
4894 * source.c: Likewise.
4895 * sparc-nat.c: Likewise.
4896 * sparc-sol2-tdep.c: Likewise.
4897 * sparc-tdep.c: Likewise.
4898 * sparc64-tdep.c: Likewise.
4899 * sparc64fbsd-tdep.c: Likewise.
4900 * sparc64nbsd-tdep.c: Likewise.
4901 * sparcnbsd-tdep.c: Likewise.
4902 * spu-linux-nat.c: Likewise.
4903 * spu-multiarch.c: Likewise.
4904 * spu-tdep.c: Likewise.
4905 * stabsread.c: Likewise.
4906 * stack.c: Likewise.
4907 * std-regs.c: Likewise.
4908 * symfile.c: Likewise.
4909 * symmisc.c: Likewise.
4910 * symtab.c: Likewise.
4911 * target.c: Likewise.
4912 * thread.c: Likewise.
4913 * tilegx-linux-nat.c: Likewise.
4914 * tilegx-tdep.c: Likewise.
4916 * tracepoint.c: Likewise.
4917 * tui/tui-command.c: Likewise.
4918 * tui/tui-data.c: Likewise.
4919 * tui/tui-disasm.c: Likewise.
4920 * tui/tui-file.c: Likewise.
4921 * tui/tui-layout.c: Likewise.
4922 * tui/tui-out.c: Likewise.
4923 * tui/tui-regs.c: Likewise.
4924 * tui/tui-source.c: Likewise.
4925 * tui/tui-stack.c: Likewise.
4926 * tui/tui-win.c: Likewise.
4927 * tui/tui-windata.c: Likewise.
4928 * tui/tui-winsource.c: Likewise.
4929 * typeprint.c: Likewise.
4930 * ui-file.c: Likewise.
4931 * ui-out.c: Likewise.
4932 * user-regs.c: Likewise.
4933 * utils.c: Likewise.
4934 * v850-tdep.c: Likewise.
4935 * valarith.c: Likewise.
4936 * valops.c: Likewise.
4937 * valprint.c: Likewise.
4938 * value.c: Likewise.
4939 * varobj.c: Likewise.
4940 * vax-tdep.c: Likewise.
4941 * vaxnbsd-tdep.c: Likewise.
4942 * vaxobsd-tdep.c: Likewise.
4943 * windows-nat.c: Likewise.
4944 * xcoffread.c: Likewise.
4945 * xml-support.c: Likewise.
4946 * xstormy16-tdep.c: Likewise.
4947 * xtensa-linux-nat.c: Likewise.
4949 2014-08-07 Gary Benson <gbenson@redhat.com>
4951 * common/common-defs.h: Include gdb_assert.h.
4952 * aarch64-tdep.c: Do not include gdb_assert.h.
4953 * addrmap.c: Likewise.
4954 * aix-thread.c: Likewise.
4955 * alpha-linux-tdep.c: Likewise.
4956 * alpha-mdebug-tdep.c: Likewise.
4957 * alphanbsd-tdep.c: Likewise.
4958 * amd64-nat.c: Likewise.
4959 * amd64-tdep.c: Likewise.
4960 * amd64bsd-nat.c: Likewise.
4961 * amd64fbsd-nat.c: Likewise.
4962 * amd64fbsd-tdep.c: Likewise.
4963 * amd64nbsd-nat.c: Likewise.
4964 * amd64nbsd-tdep.c: Likewise.
4965 * amd64obsd-nat.c: Likewise.
4966 * amd64obsd-tdep.c: Likewise.
4967 * arch-utils.c: Likewise.
4968 * arm-tdep.c: Likewise.
4969 * armbsd-tdep.c: Likewise.
4971 * bcache.c: Likewise.
4972 * bfin-tdep.c: Likewise.
4973 * blockframe.c: Likewise.
4974 * breakpoint.c: Likewise.
4975 * bsd-kvm.c: Likewise.
4976 * bsd-uthread.c: Likewise.
4977 * buildsym.c: Likewise.
4978 * c-exp.y: Likewise.
4979 * c-lang.c: Likewise.
4980 * charset.c: Likewise.
4981 * cleanups.c: Likewise.
4982 * cli-out.c: Likewise.
4983 * cli/cli-decode.c: Likewise.
4984 * cli/cli-dump.c: Likewise.
4985 * cli/cli-logging.c: Likewise.
4986 * cli/cli-script.c: Likewise.
4987 * cli/cli-utils.c: Likewise.
4988 * coffread.c: Likewise.
4989 * common/common-utils.c: Likewise.
4990 * common/queue.h: Likewise.
4991 * common/signals.c: Likewise.
4992 * common/vec.h: Likewise.
4993 * complaints.c: Likewise.
4994 * completer.c: Likewise.
4995 * corelow.c: Likewise.
4996 * cp-abi.c: Likewise.
4997 * cp-name-parser.y: Likewise.
4998 * cp-namespace.c: Likewise.
4999 * cp-support.c: Likewise.
5000 * cris-tdep.c: Likewise.
5001 * dbxread.c: Likewise.
5002 * dictionary.c: Likewise.
5003 * doublest.c: Likewise.
5004 * dsrec.c: Likewise.
5005 * dummy-frame.c: Likewise.
5006 * dwarf2-frame-tailcall.c: Likewise.
5007 * dwarf2-frame.c: Likewise.
5008 * dwarf2expr.c: Likewise.
5009 * dwarf2loc.c: Likewise.
5010 * dwarf2read.c: Likewise.
5012 * event-loop.c: Likewise.
5013 * exceptions.c: Likewise.
5014 * expprint.c: Likewise.
5015 * f-valprint.c: Likewise.
5016 * fbsd-nat.c: Likewise.
5017 * findvar.c: Likewise.
5018 * frame-unwind.c: Likewise.
5019 * frame.c: Likewise.
5020 * frv-tdep.c: Likewise.
5021 * gcore.c: Likewise.
5022 * gdb-dlfcn.c: Likewise.
5023 * gdb_bfd.c: Likewise.
5024 * gdbarch.c: Likewise.
5025 * gdbarch.sh: Likewise.
5026 * gdbtypes.c: Likewise.
5027 * gnu-nat.c: Likewise.
5028 * gnu-v3-abi.c: Likewise.
5029 * go-lang.c: Likewise.
5030 * guile/scm-exception.c: Likewise.
5031 * guile/scm-gsmob.c: Likewise.
5032 * guile/scm-lazy-string.c: Likewise.
5033 * guile/scm-math.c: Likewise.
5034 * guile/scm-pretty-print.c: Likewise.
5035 * guile/scm-safe-call.c: Likewise.
5036 * guile/scm-utils.c: Likewise.
5037 * guile/scm-value.c: Likewise.
5038 * h8300-tdep.c: Likewise.
5039 * hppa-hpux-nat.c: Likewise.
5040 * hppa-tdep.c: Likewise.
5041 * hppanbsd-tdep.c: Likewise.
5042 * hppaobsd-tdep.c: Likewise.
5043 * i386-darwin-nat.c: Likewise.
5044 * i386-darwin-tdep.c: Likewise.
5045 * i386-nto-tdep.c: Likewise.
5046 * i386-tdep.c: Likewise.
5047 * i386bsd-nat.c: Likewise.
5048 * i386fbsd-tdep.c: Likewise.
5049 * i386gnu-nat.c: Likewise.
5050 * i386nbsd-tdep.c: Likewise.
5051 * i386obsd-tdep.c: Likewise.
5052 * i387-tdep.c: Likewise.
5053 * ia64-libunwind-tdep.c: Likewise.
5054 * ia64-tdep.c: Likewise.
5055 * inf-ptrace.c: Likewise.
5056 * inf-ttrace.c: Likewise.
5057 * infcall.c: Likewise.
5058 * infcmd.c: Likewise.
5059 * infrun.c: Likewise.
5060 * inline-frame.c: Likewise.
5061 * interps.c: Likewise.
5062 * jv-lang.c: Likewise.
5063 * jv-typeprint.c: Likewise.
5064 * linux-fork.c: Likewise.
5065 * linux-nat.c: Likewise.
5066 * linux-thread-db.c: Likewise.
5067 * m32c-tdep.c: Likewise.
5068 * m32r-linux-nat.c: Likewise.
5069 * m32r-tdep.c: Likewise.
5070 * m68k-tdep.c: Likewise.
5071 * m68kbsd-nat.c: Likewise.
5072 * m68kbsd-tdep.c: Likewise.
5073 * m88k-tdep.c: Likewise.
5074 * machoread.c: Likewise.
5075 * macroexp.c: Likewise.
5076 * macrotab.c: Likewise.
5077 * maint.c: Likewise.
5078 * mdebugread.c: Likewise.
5079 * memory-map.c: Likewise.
5080 * mep-tdep.c: Likewise.
5081 * mi/mi-common.c: Likewise.
5082 * microblaze-tdep.c: Likewise.
5083 * mingw-hdep.c: Likewise.
5084 * mips-linux-nat.c: Likewise.
5085 * mips-linux-tdep.c: Likewise.
5086 * mips-tdep.c: Likewise.
5087 * mips64obsd-tdep.c: Likewise.
5088 * mipsnbsd-tdep.c: Likewise.
5089 * mn10300-linux-tdep.c: Likewise.
5090 * mn10300-tdep.c: Likewise.
5091 * moxie-tdep.c: Likewise.
5092 * mt-tdep.c: Likewise.
5093 * nat/linux-btrace.c: Likewise.
5094 * nat/linux-osdata.c: Likewise.
5095 * nat/linux-ptrace.c: Likewise.
5096 * nat/mips-linux-watch.c: Likewise.
5097 * nios2-linux-tdep.c: Likewise.
5098 * nios2-tdep.c: Likewise.
5099 * objc-lang.c: Likewise.
5100 * objfiles.c: Likewise.
5101 * obsd-nat.c: Likewise.
5102 * opencl-lang.c: Likewise.
5103 * osabi.c: Likewise.
5104 * parse.c: Likewise.
5105 * ppc-linux-nat.c: Likewise.
5106 * ppc-sysv-tdep.c: Likewise.
5107 * ppcfbsd-nat.c: Likewise.
5108 * ppcfbsd-tdep.c: Likewise.
5109 * ppcnbsd-nat.c: Likewise.
5110 * ppcnbsd-tdep.c: Likewise.
5111 * ppcobsd-nat.c: Likewise.
5112 * ppcobsd-tdep.c: Likewise.
5113 * printcmd.c: Likewise.
5114 * procfs.c: Likewise.
5115 * prologue-value.c: Likewise.
5116 * psymtab.c: Likewise.
5117 * python/py-lazy-string.c: Likewise.
5118 * python/py-value.c: Likewise.
5119 * regcache.c: Likewise.
5120 * reggroups.c: Likewise.
5121 * registry.c: Likewise.
5122 * remote-sim.c: Likewise.
5123 * remote.c: Likewise.
5124 * rs6000-aix-tdep.c: Likewise.
5125 * rs6000-tdep.c: Likewise.
5126 * s390-linux-tdep.c: Likewise.
5127 * score-tdep.c: Likewise.
5128 * ser-base.c: Likewise.
5129 * ser-mingw.c: Likewise.
5130 * sh-tdep.c: Likewise.
5131 * sh64-tdep.c: Likewise.
5132 * solib-darwin.c: Likewise.
5133 * solib-spu.c: Likewise.
5134 * solib-svr4.c: Likewise.
5135 * source.c: Likewise.
5136 * sparc-nat.c: Likewise.
5137 * sparc-sol2-tdep.c: Likewise.
5138 * sparc-tdep.c: Likewise.
5139 * sparc64-sol2-tdep.c: Likewise.
5140 * sparc64-tdep.c: Likewise.
5141 * sparc64fbsd-tdep.c: Likewise.
5142 * sparc64nbsd-tdep.c: Likewise.
5143 * sparc64obsd-tdep.c: Likewise.
5144 * sparcnbsd-tdep.c: Likewise.
5145 * sparcobsd-tdep.c: Likewise.
5146 * spu-multiarch.c: Likewise.
5147 * spu-tdep.c: Likewise.
5148 * stabsread.c: Likewise.
5149 * stack.c: Likewise.
5150 * symfile.c: Likewise.
5151 * symtab.c: Likewise.
5152 * target-descriptions.c: Likewise.
5153 * target-memory.c: Likewise.
5154 * target.c: Likewise.
5155 * tic6x-linux-tdep.c: Likewise.
5156 * tic6x-tdep.c: Likewise.
5157 * tilegx-linux-nat.c: Likewise.
5158 * tilegx-tdep.c: Likewise.
5160 * tramp-frame.c: Likewise.
5161 * tui/tui-out.c: Likewise.
5162 * tui/tui-winsource.c: Likewise.
5163 * ui-out.c: Likewise.
5164 * user-regs.c: Likewise.
5165 * utils.c: Likewise.
5166 * v850-tdep.c: Likewise.
5167 * valops.c: Likewise.
5168 * value.c: Likewise.
5169 * varobj.c: Likewise.
5170 * vax-nat.c: Likewise.
5171 * xml-syscall.c: Likewise.
5172 * xml-tdesc.c: Likewise.
5173 * xstormy16-tdep.c: Likewise.
5174 * xtensa-linux-nat.c: Likewise.
5175 * xtensa-tdep.c: Likewise.
5177 2014-08-07 Gary Benson <gbenson@redhat.com>
5179 * common/common-defs.h: Include common-utils.h.
5180 * defs.h: Do not include common-utils.h.
5181 * common/gdb_assert.h: Likewise.
5182 * darwin-nat.h: Likewise.
5183 * nat/linux-btrace.c: Likewise.
5184 * target/waitstatus.h: Likewise.
5186 2014-08-07 Gary Benson <gbenson@redhat.com>
5188 * common/common-defs.h: Include ptid.h.
5189 * defs.h: Do not include ptid.h.
5190 * inferior.h: Likewise.
5191 * infrun.h: Likewise.
5192 * nat/linux-btrace.h: Likewise.
5193 * nat/linux-osdata.h: Likewise.
5194 * target/waitstatus.h: Likewise.
5196 2014-08-07 Gary Benson <gbenson@redhat.com>
5198 * common/common-defs.h: Include gdb_locale.h.
5199 * defs.h: Do not include gdb_locale.h.
5201 2014-08-07 Gary Benson <gbenson@redhat.com>
5203 * common/common-defs.h: Include gdb/signals.h.
5204 * defs.h: Do not include gdb/signals.h.
5206 2014-08-07 Gary Benson <gbenson@redhat.com>
5208 * common/common-defs.h: Include pathmax.h.
5209 * defs.h: Do not include pathmax.h.
5211 2014-08-07 Gary Benson <gbenson@redhat.com>
5213 * common/common-defs.h: Include libiberty.h.
5214 * defs.h: Do not include libiberty.h.
5215 * common/queue.h: Likewise.
5216 * cp-name-parser.y: Likewise.
5217 * mi/mi-cmd-catch.c: Likewise.
5218 * python/python.c: Likewise.
5220 2014-08-07 Gary Benson <gbenson@redhat.com>
5222 * common/common-defs.h: Include ansidecl.h.
5223 * defs.h: Do not include ansidecl.h.
5224 * common/buffer.h: Likewise.
5225 * common/common-utils.h: Likewise.
5227 2014-08-07 Gary Benson <gbenson@redhat.com>
5229 * common/common-defs.h: Include stddef.h.
5230 * defs.h: Do not include stddef.h.
5231 * common/common-utils.h: Likewise.
5232 * amd64fbsd-nat.c: Likewise.
5233 * bcache.c: Likewise.
5234 * charset.c: Likewise.
5235 * common/buffer.h: Likewise.
5236 * common/vec.h: Likewise.
5237 * i386bsd-nat.c: Likewise.
5238 * nat/linux-btrace.h: Likewise.
5239 * ppcfbsd-nat.c: Likewise.
5240 * ppcnbsd-tdep.h: Likewise.
5241 * ppcobsd-nat.c: Likewise.
5242 * ppcobsd-tdep.h: Likewise.
5243 * python/py-gdb-readline.c: Likewise.
5245 2014-08-07 Gary Benson <gbenson@redhat.com>
5247 * common/common-defs.h: Include stdarg.h.
5248 * defs.h: Do not include stdarg.h.
5249 * ada-lang.c: Likewise.
5250 * common/common-utils.h: Likewise.
5251 * guile/scm-string.c: Likewise.
5252 * guile/scm-utils.c: Likewise.
5253 * m32c-tdep.c: Likewise.
5255 2014-08-07 Gary Benson <gbenson@redhat.com>
5257 * common/common-defs.h: Include stdlib.h.
5258 * defs.h: Do not include stdlib.h.
5259 * addrmap.c: Likewise.
5260 * bcache.c: Likewise.
5261 * common/buffer.c: Likewise.
5262 * common/common-utils.c: Likewise.
5263 * cp-name-parser.y: Likewise.
5264 * go32-nat.c: Likewise.
5265 * mn10300-linux-tdep.c: Likewise.
5266 * nat/linux-osdata.c: Likewise.
5267 * tui/tui.c: Likewise.
5268 * windows-nat.c: Likewise.
5270 2014-08-07 Gary Benson <gbenson@redhat.com>
5272 * common/common-defs.h: Include stdio.h.
5273 * defs.h: Do not include stdio.h.
5274 * ada-lang.c: Likewise.
5275 * common/buffer.c: Likewise.
5276 * common/common-utils.c: Likewise.
5277 * cp-name-parser.y: Likewise.
5278 * gnu-nat.c: Likewise.
5279 * go32-nat.c: Likewise.
5280 * i386gnu-nat.c: Likewise.
5281 * proc-api.c: Likewise.
5282 * proc-events.c: Likewise.
5283 * proc-flags.c: Likewise.
5284 * proc-why.c: Likewise.
5285 * python/python-internal.h: Likewise.
5286 * target-memory.c: Likewise.
5287 * tui/tui-io.c: Likewise.
5288 * tui/tui.c: Likewise.
5290 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5292 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5293 (scan_dyntag_auxv): Same.
5295 2014-08-06 Yao Qi <yao@codesourcery.com>
5297 * amd64-linux-nat.c: Remove duplicated include
5299 * i386-linux-nat.c: Likewise.
5301 2014-08-06 Yao Qi <yao@codesourcery.com>
5303 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5304 operand" with "Special opcode" in comments.
5306 2014-08-05 Gary Benson <gbenson@redhat.com>
5308 * interps.c (initialize_interps): Remove prototype.
5309 (interpreter_initialized): Remove static global.
5310 (interp_add): Do not call initialize_interps.
5311 (initialize_interps): Remove function.
5313 2014-08-05 Gary Benson <gbenson@redhat.com>
5315 * utils.c (vwarning): Remove spurious va_end.
5317 2014-08-05 Alan Modra <amodra@gmail.com>
5319 * charset.c (convert_between_encodings): Cast result of obstack_base.
5320 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5321 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5322 (read_unwind_info): Use size_t for some locals.
5323 * jit.c (finalize_symtab): Likewise.
5324 * utils.c (hashtab_obstack_allocate): Likewise.
5325 * symmisc.c (print_objfile_statistics): Update format strings.
5327 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5329 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5330 (Changes in GDB 7.8): ... here.
5332 2014-08-04 Tom Tromey <tromey@redhat.com>
5334 * target.c (set_targetdebug): New function.
5335 (initialize_targets): Pass set_targetdebug when creating "set
5338 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5340 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5341 if detecting a variable-sized field that is not the last field.
5342 Fix struct type length computation.
5344 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5346 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5349 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5351 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5352 Remove "+ 8" offset in computation of CHAIN_VMA.
5354 2014-07-31 Doug Evans <dje@google.com>
5356 * inflow.c (child_terminal_inferior): Add comment.
5357 (child_terminal_ours_for_output): Add comment.
5358 (child_terminal_ours): Add comment.
5359 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5360 (linux_nat_terminal_ours): Add comment.
5362 2014-07-31 Gary Benson <gbenson@redhat.com>
5364 * common/btrace-common.h: Do not include defs.h or server.h.
5365 * nat/mips-linux-watch.h: Likewise.
5366 * gdb-dlfcn.h: Do not include defs.h.
5367 * tracefile.h: Likewise.
5369 2014-07-30 Roland McGrath <mcgrathr@google.com>
5371 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5373 2014-07-30 Tom Tromey <tromey@redhat.com>
5375 * bsd-kvm.c (bsd_kvm_open): Constify.
5376 * corelow.c (core_open): Constify.
5377 * ctf.c (ctf_open): Constify.
5378 * dbug-rom.c (dbug_open): Constify.
5379 * exec.c (exec_open): Constify.
5380 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5381 * microblaze-rom.c (picobug_open): Constify.
5382 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5384 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5385 * record-btrace.c (record_btrace_open): Constify.
5386 * record-full.c (record_full_core_open_1, record_full_open_1)
5387 (record_full_open): Constify.
5388 * remote-m32r-sdi.c (m32r_open): Constify.
5389 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5390 (rockhopper_open, lsi_open): Constify.
5391 * remote-sim.c (gdbsim_open): Constify.
5392 * remote.c (remote_open, extended_remote_open, remote_open_1):
5394 * target.h (struct target_ops) <to_open>: Make "arg" const.
5395 * tracefile-tfile.c (tfile_open): Constify.
5397 2014-07-30 Tom Tromey <tromey@redhat.com>
5399 * breakpoint.c (map_breakpoint_numbers): Update.
5400 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5401 (get_number_const): New function.
5402 (get_number): Rewrite using get_number_const.
5403 (init_number_or_range): Make "string" const.
5404 (number_is_in_list): Make "list" const.
5405 * cli/cli-utils.h (get_number_const): Declare.
5406 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5407 (init_number_or_range, number_is_in_list): Update.
5408 * printcmd.c (map_display_numbers): Update.
5409 * value.c (value_from_history_ref): Constify.
5410 * value.h (value_from_history_ref): Update.
5412 2014-07-30 Tom Tromey <tromey@redhat.com>
5414 * corefile.c (hook_type, call_extra_exec_file_hooks)
5415 (specify_exec_file_hook): Constify.
5416 * exec.c (exec_file_attach): Make "filename" const.
5417 * gdbcore.h (deprecated_exec_file_display_hook)
5418 (specify_exec_file_hook, exec_file_attach): Constify.
5419 * main.c (captured_main): Use catch_command_errors_const.
5421 2014-07-30 Tom Tromey <tromey@redhat.com>
5423 * target.c (open_target): New function.
5424 (add_target_with_completer, add_deprecated_target_alias): Use
5425 set_cmd_sfunc, set_cmd_context.
5426 (debug_to_open): Remove.
5427 (setup_target_debug): Update.
5429 2014-07-30 Yao Qi <yao@codesourcery.com>
5431 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5433 * parse.c (exp_iterate): Update comments.
5435 2014-07-30 Gary Benson <gbenson@redhat.com>
5437 * common/common-defs.h: New file.
5438 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5439 * defs.h: Include common-defs.h.
5440 Do not include config.h or build-gnulib/config.h.
5442 2014-07-30 Gary Benson <gbenson@redhat.com>
5444 * common/common-utils.h: Do not include config.h.
5445 * nat/linux-btrace.h: Likewise.
5447 2014-07-30 Gary Benson <gbenson@redhat.com>
5449 * btrace.c: Include defs.h.
5450 * common/ptid.c: Include defs.h or server.h as appropriate.
5451 * nat/mips-linux-watch.c: Likewise.
5453 2014-07-29 Tom Tromey <tromey@redhat.com>
5455 * target.c (target_is_pushed): Simplify.
5457 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5461 2014-07-29 Yao Qi <yao@codesourcery.com>
5464 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5466 2014-07-28 Doug Evans <xdje42@gmail.com>
5469 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5470 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5473 2014-07-28 Will Newton <will.newton@linaro.org>
5475 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5476 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5477 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5478 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5479 (THUMB2_EABI_SYSCALL): Likewise.
5480 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5482 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5483 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5485 2014-07-27 Doug Evans <xdje42@gmail.com>
5487 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5489 2014-07-27 Doug Evans <xdje42@gmail.com>
5491 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5493 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5494 Doug Evans <xdje42@gmail.com>
5497 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5498 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5499 * configure.ac: Try to use guild to compile an scm file, if it fails
5500 then disable guile support.
5501 * configure: Regenerate.
5502 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5504 (GUILE_COMPILED_FILES): New variable.
5505 (GUILE_FILES) Update.
5506 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5507 (stamp-guile): Compile scm files.
5508 * guile/guile.c (boot_guile_support): New function.
5509 (standard_throw_args_p): New function.
5510 (print_standard_throw_error, print_throw_error): New functions.
5511 (handle_boot_error): New function.
5512 (initialize_scheme_side): Rewrite to call boot_guile_support.
5513 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5514 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5516 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5517 Doug Evans <xdje42@gmail.com>
5520 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5521 * guile/lib/gdb/support.scm: New file.
5522 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5523 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5525 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5527 (%assert-type): Ditto, and renamed to assert-type.
5528 (%exception-print-style): Delete.
5530 2014-07-26 Doug Evans <xdje42@gmail.com>
5533 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5534 * configure: Regenerate.
5535 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5537 (PYTHON_FILES): New variable.
5538 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5539 (GUILE_FILES): New variable.
5540 (stamp-python, install-python, uninstall-python): Handle empty
5542 (stamp-guile, install-guile, uninstall-guile): Ditto.
5544 2014-07-26 Doug Evans <xdje42@gmail.com>
5547 * guile/lib/gdb.scm (pretty-printers): Export.
5548 (set-pretty-printers!): Export.
5549 * guile/lib/gdb/printing.scm (gdb module): Update.
5550 (prepend-pretty-printer!, append-pretty-printer!): Update.
5551 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5552 (pretty_printer_list_var): Delete.
5553 (pretty_printer_list): New static global.
5554 (gdbscm_pretty_printers): New function.
5555 (gdbscm_set_pretty_printers_x): New function.
5556 (ppscm_find_pretty_printer_from_gdb): Update.
5557 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5558 (gdbscm_initialize_pretty_printers): Update.
5560 2014-07-26 Doug Evans <xdje42@gmail.com>
5563 * configure.ac: Add check for header gc/gc.h.
5564 Add check for function setenv.
5565 * configure: Regenerate.
5566 * config.in: Regenerate.
5567 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5569 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5571 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5572 variation in gdbarch matching.
5574 2014-07-25 Tom Tromey <tromey@redhat.com>
5576 * exec.c (using_exec_ops): Remove.
5577 (exec_close_1): Update. Remove extraneous block, reindent.
5578 (add_target_sections): Use target_is_pushed.
5580 2014-07-25 Pedro Alves <palves@redhat.com>
5582 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5583 * monitor.c (monitor_create_inferior): Likewise.
5584 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5585 * remote-sim.c (gdbsim_create_inferior): Likewise.
5586 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5587 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5588 * windows-nat.c (do_initial_windows_stuff): Likewise.
5590 2014-07-25 Pedro Alves <palves@redhat.com>
5592 * NEWS: Mention signal passing and "signal" command changes.
5593 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5595 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5597 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5598 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5599 (jump_command): Adjust clear_proceed_status call.
5600 (signal_command): Warn if other thread that are resumed have
5601 signals that will be delivered. Adjust clear_proceed_status call.
5602 (until_next_command, finish_command)
5603 (proceed_after_attach_callback, attach_command_post_wait)
5604 (attach_command): Adjust clear_proceed_status call.
5605 * infrun.c (proceed_after_vfork_done): Likewise.
5606 (proceed_after_attach_callback): Adjust comment.
5607 (clear_proceed_status_thread): Clear stop_signal if not in pass
5609 (clear_proceed_status_callback): Delete.
5610 (clear_proceed_status): New 'step' parameter. Only clear the
5611 proceed status of threads the command being prepared is about to
5613 (proceed): If passed in an explicit signal, override stop_signal
5614 with it. Don't pass the last stop signal to the thread we're
5616 (init_wait_for_inferior): Adjust clear_proceed_status call.
5617 (switch_back_to_stepped_thread): Clear the signal if it should not
5619 * infrun.h (clear_proceed_status): New 'step' parameter.
5620 (user_visible_resume_ptid): Add comment.
5621 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5622 signal is in pass state.
5623 * remote.c (append_pending_thread_resumptions): Likewise.
5624 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5626 2014-07-25 Tom Tromey <tromey@redhat.com>
5628 * target.h (target_stopped_data_address)
5629 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5632 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5634 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5636 (avr_pointer_to_address): Likewise.
5638 2014-07-24 Tom Tromey <tromey@redhat.com>
5640 * monitor.c (compile_pattern): Update.
5641 * target.h (struct target_ops) <to_shortname, to_longname,
5644 2014-07-24 Tom Tromey <tromey@redhat.com>
5646 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5647 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5648 (add_info_alias, add_com): Make "doc" const.
5649 (print_doc_line): Make "str" const.
5650 (delete_cmd): Update.
5651 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5652 (print_doc_line): Update.
5653 * cli/cli-script.c (document_command): Update.
5654 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5655 (add_com, add_info, add_info_alias): Update.
5656 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5657 * python/py-cmd.c (cmdpy_destroyer): Update.
5659 2014-07-24 Tom Tromey <tromey@redhat.com>
5661 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5662 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5663 (help_cmd_list): Constify.
5664 (lookup_cmd): Update.
5665 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5667 (help_cmd_list, apropos_cmd): Update.
5668 * cli/cli-script.c (show_user): Update.
5669 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5670 * cli/cli-setshow.h (cmd_show_list): Update.
5671 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5672 (cmd_show_list): Update.
5673 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5674 * python/py-cmd.c (cmdpy_destroyer): Update.
5676 2014-07-24 Tom Tromey <tromey@redhat.com>
5678 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5679 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5681 * command.h (deprecate_cmd): Update.
5682 * maint.c (maintenance_do_deprecate): Add casts.
5684 2014-07-24 Tom Tromey <tromey@redhat.com>
5686 * cli/cli-decode.c (help_cmd): Make parameter "const".
5687 * cli/cli-decode.h (help_cmd): Update.
5689 2014-07-24 Tom Tromey <tromey@redhat.com>
5691 * stack.c (up_silently_base, down_silently_base): Make argument
5694 2014-07-24 Tom Tromey <tromey@redhat.com>
5696 * solib.c (solib_add): Make "pattern" const.
5697 * solib.h (solib_add): Update.
5699 2014-07-24 Tom Tromey <tromey@redhat.com>
5701 * remote.c (remote_serial_open, print_packet, putpkt)
5702 (putpkt_binary): Constify.
5703 * remote.h (putpkt): Update.
5705 2014-07-24 Tom Tromey <tromey@redhat.com>
5707 * monitor.c (monitor_open): Make "args" const.
5708 * monitor.h (monitor_open): Update.
5710 2014-07-24 Tom Tromey <tromey@redhat.com>
5712 * maint.c (match_bfd_flags): Make "string" const.
5713 (print_bfd_section_info): Remove casts.
5714 (print_objfile_section_info): Make "string" const.
5716 2014-07-24 Tom Tromey <tromey@redhat.com>
5718 * inf-child.c (inf_child_open_target): Make "arg" const.
5719 * inf-child.h (inf_child_open_target): Update.
5721 2014-07-24 Tom Tromey <tromey@redhat.com>
5723 * environ.c (unset_in_environ): Make "var" const.
5724 * environ.h (unset_in_environ): Update.
5726 2014-07-24 Tom Tromey <tromey@redhat.com>
5728 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5730 (scan_filename_with_cleanup): Likewise.
5731 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5732 Make arguments const.
5733 (restore_command): Update.
5735 2014-07-24 Pedro Alves <palves@redhat.com>
5737 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5739 2014-07-24 Tom Tromey <tromey@redhat.com>
5740 Gary Benson <gbenson@redhat.com>
5742 * nat/linux-ptrace.c (additional_flags): New global.
5743 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5744 additional_flags; don't check GDBSERVER.
5745 (linux_ptrace_set_additional_flags): New function.
5746 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5748 * linux-nat.c (_initialize_linux_nat): Call
5749 linux_ptrace_set_additional_flags.
5751 2014-07-24 Tom Tromey <tromey@redhat.com>
5753 * make-target-delegates (munge_type, write_debugmethod): New
5755 (debug_names): New global.
5756 ($TARGET_DEBUG_PRINTER): New global.
5757 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5759 Write debug methods. Generate init_debug_target.
5760 * target-debug.h: New file.
5761 * target-delegates.c: Rebuild.
5762 * target.c: Include target-debug.h.
5763 (debug_target): Hoist definition.
5764 (target_kill, target_get_section_table, target_memory_map)
5765 (target_flash_erase, target_flash_done, target_detach)
5766 (target_disconnect, target_wait, target_resume)
5767 (target_pass_signals, target_program_signals, target_follow_fork)
5768 (target_mourn_inferior, target_search_memory)
5769 (target_thread_address_space, target_close)
5770 (target_find_new_threads, target_core_of_thread)
5771 (target_verify_memory, target_insert_mask_watchpoint)
5772 (target_remove_mask_watchpoint): Remove targetdebug code.
5773 (debug_to_post_attach, debug_to_prepare_to_store)
5774 (debug_to_files_info, debug_to_insert_breakpoint)
5775 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5776 (debug_to_region_ok_for_hw_watchpoint)
5777 (debug_to_can_accel_watchpoint_condition)
5778 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5779 (debug_to_watchpoint_addr_within_range)
5780 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5781 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5782 (debug_to_terminal_init, debug_to_terminal_inferior)
5783 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5784 (debug_to_terminal_save_ours, debug_to_terminal_info)
5785 (debug_to_load, debug_to_post_startup_inferior)
5786 (debug_to_insert_fork_catchpoint)
5787 (debug_to_remove_fork_catchpoint)
5788 (debug_to_insert_vfork_catchpoint)
5789 (debug_to_remove_vfork_catchpoint)
5790 (debug_to_insert_exec_catchpoint)
5791 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5792 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5793 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5794 (setup_target_debug): Call init_debug_target.
5795 * target.h (TARGET_DEBUG_PRINTER): New macro.
5796 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5797 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5799 2014-07-24 Gary Benson <gbenson@redhat.com>
5801 * exceptions.h (throw_vfatal): Renamed to...
5802 (throw_vquit): New declaration.
5803 (throw_quit): Likewise.
5804 * exceptions.c (throw_vfatal): Renamed to...
5805 (throw_vquit): New function.
5806 (throw_quit): Likewise.
5807 (throw_error): Call throw_verror rather than throw_it.
5808 * utils.h (vfatal): Removed.
5810 * utils.c (vfatal): Removed.
5812 (internal_verror): Replaced call to fatal with call to throw_quit.
5813 (quit): Replaced calls to fatal with calls to throw_quit.
5815 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5817 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5820 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5822 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5823 less than zero in conditional expression.
5825 2014-07-23 Tom Tromey <tromey@redhat.com>
5827 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5828 ($INTRO_PART): Don't match whitespace.
5829 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5831 ($METHOD): Add $METHOD_TRAILER.
5833 (scan_target_h): New sub.
5834 Change main loop not to collect state.
5835 * target-delegates.c: Rebuild.
5837 2014-07-23 Gary Benson <gbenson@redhat.com>
5839 * cp-support.c (gdb_demangle): Fix build on systems without
5842 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5844 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5845 for reference entry value target data value.
5847 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5849 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5850 value_available_contents_eq.
5852 2014-07-22 Pedro Alves <palves@redhat.com>
5854 * value.c (allocate_optimized_out_value): Don't mark value as
5857 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5859 * MAINTAINERS (Write After Approval): Update my email address.
5861 2014-07-20 Doug Evans <dje@google.com>
5864 * remote.c (putpkt_binary): Add text to error message.
5866 2014-07-20 Yao Qi <yao@codesourcery.com>
5868 * eval.c: Remove "Chill" from comments.
5869 * gdbtypes.h: Likewise.
5870 * symtab.h: Likewise.
5872 2014-07-20 Yao Qi <yao@codesourcery.com>
5874 * std-operator.def: Update comments to TERNOP_SLICE.
5876 2014-07-20 Yao Qi <yao@codesourcery.com>
5878 * std-operator.def: Remove BINOP_RANGE.
5879 * breakpoint.c (watchpoint_exp_is_const): Update.
5880 * expprint.c (dump_subexp_body_standard): Likewise.
5881 * eval.c (init_array_element): Remove dead code.
5882 (evaluate_subexp_standard): Likewise.
5884 2014-07-20 Yao Qi <yao@codesourcery.com>
5886 * std-operator.def: Remove BINOP_IN.
5887 * breakpoint.c (watchpoint_exp_is_const): Update.
5888 * eval.c (evaluate_subexp_standard): Likewise.
5889 * expprint.c (dump_subexp_body_standard): Likewise.
5891 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5893 * microblaze-tdep.c (microblaze_register_names): Add
5894 the rshr and rslr register names.
5895 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5896 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5897 Use of tdesc_numbered_register. Use of
5898 microblaze_register_g_packet_guesses. Use of
5899 tdesc_use_registers. Use of set_gdbarch_register_type.
5900 (microblaze_register_g_packet_guesses): New.
5901 * microblaze-tdep.h (microblaze_reg_num): Add
5902 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5903 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5904 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5905 * features/microblaze-core.xml: New file.
5906 * features/microblaze-stack-protect.xml: New file.
5907 * features/microblaze-with-stack-protect.c: New file.
5908 * features/microblaze-with-stack-protect.xml: New file.
5909 * features/microblaze.xml: New file.
5910 * features/microblaze.c: New file.
5911 * features/Makefile (microblaze-with-stack-protect): Add
5912 microblaze-with-stack-protect microblaze and microblaze-expedite.
5913 * regformats/microblaze-with-stack-protect.dat: New file.
5914 * regformats/microblaze.dat: New file.
5915 * doc/gdb.texinfo (MicroBlaze Features): Added.
5917 2014-07-18 Tom Tromey <tromey@redhat.com>
5919 * exec.c (exec_ops): Now static.
5920 * exec.h (exec_ops): Don't declare.
5922 2014-07-18 Tom Tromey <tromey@redhat.com>
5924 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5925 to find_target_beneath.
5926 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5927 find_target_beneath.
5928 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5930 2014-07-18 Tom Tromey <tromey@redhat.com>
5933 * utils.c (quit): Use target_supports_terminal_ours.
5934 * target.h (target_supports_terminal_ours): Declare.
5935 * target.c (target_supports_delete_record): Don't check
5936 to_delete_record against NULL.
5937 (target_supports_terminal_ours): New function.
5939 2014-07-18 Tom Tromey <tromey@redhat.com>
5942 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5943 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5944 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5945 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5946 * windows-nat.c (windows_xfer_partial): Always delegate.
5947 * record-btrace.c (record_btrace_xfer_partial): Simplify
5949 (record_btrace_fetch_registers, record_btrace_store_registers)
5950 (record_btrace_prepare_to_store, record_btrace_resume)
5951 (record_btrace_wait, record_btrace_find_new_threads)
5952 (record_btrace_thread_alive): Likewise.
5953 * procfs.c (procfs_xfer_partial): Always delegate.
5954 * corelow.c (core_xfer_partial): Always delegate.
5955 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5957 2014-07-18 Tom Tromey <tromey@redhat.com>
5959 * exec.c (exec_make_note_section): Move earlier.
5961 2014-07-17 Doug Evans <dje@google.com>
5964 * maint.c (count_symtabs_and_blocks): Handle NULL
5965 current_program_space.
5966 (report_command_stats): Check global enabled flag in addition to
5967 recorded enabled flag.
5968 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5970 2014-07-16 Pedro Alves <palves@redhat.com>
5972 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5974 2014-07-16 Tom Tromey <tromey@redhat.com>
5976 * target.h (struct target_ops) <to_delete_record>: Reformat
5979 2014-07-16 Tom Tromey <tromey@redhat.com>
5981 * target-delegates.c: Rebuild.
5983 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5985 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5986 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5987 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5988 (avr_pointer_to_address): Likewise.
5989 (avr_address_class_type_flags): New function.
5990 (avr_address_class_type_flags_to_name): Likewise.
5991 (avr_address_class_name_to_type_flags): Likewise.
5992 (avr_gdbarch_init): Set address_class_type_flags,
5993 address_class_type_flags_to_name and
5994 address_class_name_to_type_flags.
5996 2014-07-15 Pedro Alves <palves@redhat.com>
5998 * linux-nat.c (kill_callback): Save errno and work with saved
6001 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6003 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6005 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6007 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6008 breakpoint support correctly.
6010 2014-07-14 Pedro Alves <palves@redhat.com>
6012 * utils.c (prompt_for_continue): Call target_terminal_ours.
6014 2014-07-14 Pedro Alves <palves@redhat.com>
6016 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6017 catch_errors. Don't re-enable stdin or notify observers where,
6019 (fetch_inferior_event_wrapper): Delete.
6021 2014-07-14 Pedro Alves <palves@redhat.com>
6024 * top.c: Include "inf-loop.h".
6025 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6027 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6029 (gdb_readline_wrapper): Store whether the target is async, and
6032 2014-07-14 Pedro Alves <palves@redhat.com>
6035 * top.c (gdb_readline_wrapper_line): Tweak comment.
6036 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6037 the input handler callback.
6039 2014-07-14 Pedro Alves <palves@redhat.com>
6042 * main.c: Include event-top.h.
6043 (handle_command_errors): New function.
6044 (catch_command_errors, catch_command_errors_const): Use it.
6046 2014-07-14 Pedro Alves <palves@redhat.com>
6048 * exceptions.c (catch_command_errors, catch_command_errors_const):
6050 * exceptions.h (catch_command_errors_ftype)
6051 (catch_command_errors_const_ftype): Moved to main.c.
6052 (catch_command_errors, catch_command_errors_const): Delete
6054 * main.c (catch_command_errors_ftype)
6055 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6056 (catch_command_errors, catch_command_errors_const)): Moved here
6057 from exceptions.c and make static.
6059 2014-07-14 Pedro Alves <palves@redhat.com>
6061 * exceptions.c (print_any_exception): Delete.
6062 (catch_exceptions_with_msg): Use exception_print instead of
6063 print_any_exception.
6064 (catch_errors): Use exception_fprintf instead of
6065 print_any_exception.
6066 (catch_command_errors, catch_command_errors_const): Use
6067 exception_print instead of print_any_exception.
6069 2014-07-14 Pedro Alves <palves@redhat.com>
6071 * infcall.c (run_inferior_call): Set 'sync_execution' while
6072 running the inferior call.
6074 2014-07-14 Pedro Alves <palves@redhat.com>
6076 * value.c (value_contents_equal): Delete function.
6077 * value.h (value_contents_equal): Delete declaration.
6079 2014-07-14 Tom Tromey <tromey@redhat.com>
6082 * gdbtypes.c (is_dynamic_type_internal): New function, from
6084 (is_dynamic_type): Rewrite.
6085 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6086 (resolve_dynamic_struct): Likewise.
6087 (resolve_dynamic_type_internal): New function, from
6088 resolve_dynamic_type.
6089 (resolve_dynamic_type): Rewrite.
6091 2014-07-14 Tom Tromey <tromey@redhat.com>
6093 * target.c (target_require_runnable): Also check record_stratum.
6096 2014-07-11 Yao Qi <yao@codesourcery.com>
6098 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6099 thumb_instruction_restores_sp return true.
6101 2014-07-11 Yao Qi <yao@codesourcery.com>
6103 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6104 (thumb_in_function_epilogue_p): Call
6105 thumb_instruction_restores_sp.
6107 2014-07-11 Yao Qi <yao@codesourcery.com>
6109 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6111 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6113 2014-07-11 Gary Benson <gbenson@redhat.com>
6115 * amd64-linux-nat.c (gdbcore.h): Remove include.
6116 (regset.h): Likewise.
6117 (nat/linux-btrace.h): Likewise.
6118 (btrace.h): Likewise.
6119 (gdb_assert.h): Likewise.
6120 (string.h): Likewise.
6121 (sys/uio.h): Likewise.
6122 (sys/debugreg.h): Likewise.
6123 (sys/syscall.h): Likewise.
6124 (sys/procfs.h): Likewise.
6125 (sys/user.h): Likewise.
6126 (asm/ptrace.h): Likewise.
6127 (i386-nat.h): Likewise.
6128 * i386-linux-nat.c (i386-nat.h): Likewise.
6129 (regset.h): Likewise.
6130 (target.h): Likewise.
6131 (linux-nat.h): Likewise.
6132 (nat/linux-btrace.h): Likewise.
6133 (btrace.h): Likewise.
6134 (gdb_assert.h): Likewise.
6135 (string.h): Likewise.
6136 (sys/uio.h): Likewise.
6137 (sys/user.h): Likewise.
6138 (sys/procfs.h): Likewise.
6139 (sys/reg.h): Likewise.
6140 (sys/debugreg.h): Likewise.
6141 (ORIG_EAX): Remove definition.
6143 2014-07-11 Gary Benson <gbenson@redhat.com>
6145 * i386-linux-nat.h: New file.
6146 * x86-linux-nat.h: Likewise.
6147 * x86-linux-nat.c: Likewise.
6148 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6149 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6150 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6151 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6152 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6153 (PTRACE_SETREGSET): Likewise.
6154 (arch_lwp_info): Now in x86-linux-nat.c.
6155 (have_ptrace_getregset): Now in x86-linux-nat.h.
6156 (x86_linux_dr_get): Now in x86-linux-nat.c.
6157 (x86_linux_dr_set): Likewise.
6158 (x86_linux_dr_get_addr): Likewise.
6159 (x86_linux_dr_get_control): Likewise.
6160 (x86_linux_dr_get_status): Likewise.
6161 (update_debug_registers_callback): Likewise.
6162 (x86_linux_dr_set_control): Likewise.
6163 (x86_linux_dr_set_addr): Likewise.
6164 (x86_linux_prepare_to_resume): Likewise.
6165 (x86_linux_new_thread): Likewise.
6166 (x86_linux_new_fork): Likewise.
6167 (x86_linux_get_thread_area): Likewise.
6168 (super_post_startup_inferior): Likewise.
6169 (x86_linux_child_post_startup_inferior): Likewise.
6170 (AMD64_LINUX_USER64_CS): Likewise.
6171 (AMD64_LINUX_X32_DS): Likewise.
6172 (x86_linux_read_description): Likewise.
6173 (x86_linux_enable_btrace): Likewise.
6174 (x86_linux_disable_btrace): Likewise.
6175 (x86_linux_teardown_btrace): Likewise.
6176 (x86_linux_read_btrace): Likewise.
6177 (x86_linux_create_target): Likewise.
6178 (x86_linux_add_target): Likewise.
6179 * i386-linux-nat.c (x86-linux-nat.h): New include.
6180 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6181 (PTRACE_SETREGSET): Likewise.
6182 (arch_lwp_info): Now in x86-linux-nat.c.
6183 (have_ptrace_getregset): Now in x86-linux-nat.h.
6184 (x86_linux_dr_get): Now in x86-linux-nat.c.
6185 (x86_linux_dr_set): Likewise.
6186 (x86_linux_dr_get_addr): Likewise.
6187 (x86_linux_dr_get_control): Likewise.
6188 (x86_linux_dr_get_status): Likewise.
6189 (update_debug_registers_callback): Likewise.
6190 (x86_linux_dr_set_control): Likewise.
6191 (x86_linux_dr_set_addr): Likewise.
6192 (x86_linux_prepare_to_resume): Likewise.
6193 (x86_linux_new_thread): Likewise.
6194 (x86_linux_new_fork): Likewise.
6195 (x86_linux_get_thread_area): Likewise.
6196 (super_post_startup_inferior): Likewise.
6197 (x86_linux_child_post_startup_inferior): Likewise.
6198 (AMD64_LINUX_USER64_CS): Likewise.
6199 (AMD64_LINUX_X32_DS): Likewise.
6200 (x86_linux_read_description): Likewise.
6201 (x86_linux_enable_btrace): Likewise.
6202 (x86_linux_disable_btrace): Likewise.
6203 (x86_linux_teardown_btrace): Likewise.
6204 (x86_linux_read_btrace): Likewise.
6205 (x86_linux_create_target): Likewise.
6206 (x86_linux_add_target): Likewise.
6208 2014-07-11 Gary Benson <gbenson@redhat.com>
6210 * amd64-linux-nat.c: Comment and whitespace changes.
6211 * i386-linux-nat.c: Comment and whitespace changes.
6213 2014-07-11 Gary Benson <gbenson@redhat.com>
6215 * amd64-linux-nat.c (x86_linux_create_target): New function.
6216 (x86_linux_add_target): Likewise.
6217 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6218 * i386-linux-nat.c (x86_linux_create_target): New function.
6219 (x86_linux_add_target): Likewise.
6220 (_initialize_i386_linux_nat): Delegate to the above new functions.
6222 2014-07-11 Gary Benson <gbenson@redhat.com>
6224 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6225 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6226 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6227 (ps_get_thread_area): Delegate to the above.
6229 2014-07-11 Gary Benson <gbenson@redhat.com>
6231 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6232 x86_linux_read_description. All uses updated. amd64-specific
6233 code conditionalized. Conditionalized i386-specific code added.
6234 Redundant cast removed.
6235 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6236 x86_linux_read_description. All uses updated. i386-specific
6237 code conditionalized. Conditionalized amd64-specific code added.
6238 One sizeof replaced with the actual type it is describing.
6240 2014-07-11 Gary Benson <gbenson@redhat.com>
6242 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6243 x86_linux_dr_get. All uses updated.
6244 (amd64_linux_dr_set): Renamed to
6245 x86_linux_dr_set. All uses updated.
6246 (amd64_linux_dr_get_addr): Renamed to
6247 x86_linux_dr_get_addr. All uses updated.
6248 (amd64_linux_dr_get_control): Renamed to
6249 x86_linux_dr_get_control. All uses updated.
6250 (amd64_linux_dr_get_status): Renamed to
6251 x86_linux_dr_get_status. All uses updated.
6252 (amd64_linux_dr_set_control): Renamed to
6253 x86_linux_dr_set_control. All uses updated.
6254 (amd64_linux_dr_set_addr): Renamed to
6255 x86_linux_dr_set_addr. All uses updated.
6256 (amd64_linux_prepare_to_resume): Renamed to
6257 x86_linux_prepare_to_resume. All uses updated.
6258 (amd64_linux_new_thread): Renamed to
6259 x86_linux_new_thread. All uses updated.
6260 (amd64_linux_new_fork): Renamed to
6261 x86_linux_new_fork. All uses updated.
6262 (amd64_linux_child_post_startup_inferior): Renamed to
6263 x86_linux_child_post_startup_inferior. All uses updated.
6264 (amd64_linux_enable_btrace): Renamed to
6265 x86_linux_enable_btrace. All uses updated.
6266 (amd64_linux_disable_btrace): Renamed to
6267 x86_linux_disable_btrace. All uses updated.
6268 (amd64_linux_teardown_btrace): Renamed to
6269 x86_linux_teardown_btrace. All uses updated.
6270 (amd64_linux_read_btrace): Renamed to
6271 x86_linux_read_btrace. All uses updated.
6272 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6273 x86_linux_dr_get. All uses updated.
6274 (i386_linux_dr_set): Renamed to
6275 x86_linux_dr_set. All uses updated.
6276 (i386_linux_dr_get_addr): Renamed to
6277 x86_linux_dr_get_addr. All uses updated.
6278 (i386_linux_dr_get_control): Renamed to
6279 x86_linux_dr_get_control. All uses updated.
6280 (i386_linux_dr_get_status): Renamed to
6281 x86_linux_dr_get_status. All uses updated.
6282 (i386_linux_dr_set_control): Renamed to
6283 x86_linux_dr_set_control. All uses updated.
6284 (i386_linux_dr_set_addr): Renamed to
6285 x86_linux_dr_set_addr. All uses updated.
6286 (i386_linux_prepare_to_resume): Renamed to
6287 x86_linux_prepare_to_resume. All uses updated.
6288 (i386_linux_new_thread): Renamed to
6289 x86_linux_new_thread. All uses updated.
6290 (i386_linux_new_fork): Renamed to
6291 x86_linux_new_fork. All uses updated.
6292 (i386_linux_child_post_startup_inferior): Renamed to
6293 x86_linux_child_post_startup_inferior. All uses updated.
6294 (i386_linux_enable_btrace): Renamed to
6295 x86_linux_enable_btrace. All uses updated.
6296 (i386_linux_disable_btrace): Renamed to
6297 x86_linux_disable_btrace. All uses updated.
6298 (i386_linux_teardown_btrace): Renamed to
6299 x86_linux_teardown_btrace. All uses updated.
6300 (i386_linux_read_btrace): Renamed to
6301 x86_linux_read_btrace. All uses updated.
6303 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6305 * remote.c (extended_remote_post_attach): New function.
6306 (init_extended_remote_ops): Install it as to_post_attach method.
6308 2014-07-09 Pedro Alves <palves@redhat.com>
6310 * infcmd.c (attach_command_post_wait): Don't call
6311 target_terminal_inferior here.
6312 (attach_command): Call it here instead.
6314 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6316 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6318 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6319 from varobj.c, with additional checks.
6320 (c_varobj_ops): Fill in is_path_expr_parent field.
6321 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6322 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6324 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6326 (varobj_default_is_path_expr_parent): New function.
6327 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6328 (varobj_default_is_path_expr_parent): Declare new function.
6330 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6332 * infcmd.c (finish_backward): Turn internal error into normal error.
6334 2014-07-07 Pedro Alves <palves@redhat.com>
6337 * remote.c (async_handle_remote_sigint)
6338 (async_handle_remote_sigint_twice): Call
6339 gdb_call_async_signal_handler instead of
6340 mark_async_signal_handler.
6342 2014-07-07 Tom Tromey <tromey@redhat.com>
6344 * target-delegates.c: Rebuild.
6345 * target.c (target_info_record): Remove.
6346 * record.c (info_record_command): Unconditionally call
6348 * target.h (struct target_ops) <to_info_record>: Use
6349 TARGET_DEFAULT_IGNORE.
6350 (target_info_record): Remove.
6352 2014-07-07 Tom Tromey <tromey@redhat.com>
6354 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6355 TARGET_DEFAULT_NORETURN.
6356 * target.c (generic_tls_error): New function.
6357 (target_translate_tls_address): Don't search target stack.
6358 * target-delegates.c: Rebuild.
6359 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6361 * linux-thread-db.c (thread_db_get_thread_local_address):
6362 Unconditionally call beneath target.
6364 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6366 * cli/cli-logging.c (pop_output_files): Assign targerr to
6369 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6371 * MAINTAINERS (Write After Approval): Update my email address.
6373 2014-07-02 Gary Benson <gbenson@redhat.com>
6375 * proc-service.c (ps_xfer_memory): Update comment.
6376 (ps_pstop): Remove unused function.
6377 (ps_pcontinue): Likewise.
6378 (ps_lstop): Likewise.
6379 (ps_lcontinue): Likewise.
6380 (ps_lgetxregsize): Likewise.
6381 (ps_lgetxregs): Likewise.
6382 (ps_lsetxregs): Likewise.
6383 (ps_plog): Likewise.
6384 (ps_ptread): Likewise.
6385 (ps_ptwrite): Likewise.
6387 2014-07-01 Mark Wielaard <mjw@redhat.com>
6389 * dwarf2read.c (add_array_cv_type): New function.
6390 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6391 (read_tag_volatile_type): Likewise.
6393 2014-07-01 Tom Tromey <tromey@redhat.com>
6395 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6396 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6397 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6398 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6399 * command.h (cmd_cfunc_ftype): Move earlier.
6400 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6401 (add_com, add_info): Use cmd_cfunc_ftype.
6403 2014-06-30 Tom Tromey <tromey@redhat.com>
6405 * symtab.c (operator_chars): Make parameters and return type
6407 (file_matches): Make "files" const.
6408 (struct search_symbols_data) <files>: Now const.
6409 (search_symbols): Make "regexp" and "files" parameters const.
6411 (symtab_symbol_info): Remove cast.
6412 (rbreak_command): Update.
6413 * symtab.h (search_symbols): Update.
6415 2014-06-27 Yao Qi <yao@codesourcery.com>
6417 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6418 Change parameter type to 'struct thread_info *'. Caller
6420 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6422 * dummy-frame.c (struct dummy_frame_id): New.
6423 (dummy_frame_id_eq): New function.
6424 (struct dummy_frame) <id>: Change its type to 'struct
6426 (dummy_frame_push): Add parameter ptid and save it in
6428 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6430 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6432 (lookup_dummy_frame): Change parameter type to 'struct
6433 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6434 instead of frame_id_eq.
6435 (dummy_frame_pop): Add parameter ptid. Callers updated.
6436 Update comments. Compose dummy_frame_id and pass it to
6438 (dummy_frame_discard): Add parameter ptid.
6439 (dummy_frame_sniffer): Compose dummy_frame_id and call
6440 dummy_frame_id_eq instead of frame_id_eq.
6441 (fprint_dummy_frames): Print ptid.
6442 * dummy-frame.h: Remove comments.
6443 (dummy_frame_push): Add ptid in declaration.
6444 (dummy_frame_pop, dummy_frame_discard): Likewise.
6446 2014-06-26 Tom Tromey <tromey@redhat.com>
6448 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6449 * command.h (error_no_arg): Update.
6451 2014-06-26 Tom Tromey <tromey@redhat.com>
6453 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6454 (do_show_command): Make "arg" const.
6455 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6457 2014-06-26 Tom Tromey <tromey@redhat.com>
6459 * record-full.c (record_full_get_bookmark): Make "args" const.
6460 (record_full_goto_bookmark): Make "raw_bookmark" const.
6461 * record.c (record_goto): New function.
6462 (cmd_record_goto): Use it. Now static.
6463 * record.h (record_goto): Declare.
6464 (cmd_record_goto): Remove declaration.
6465 * target-delegates.c: Rebuild.
6466 * target.h (struct target_ops) <to_get_bookmark,
6467 to_goto_bookmark>: Make parameter const.
6469 2014-06-26 Tom Tromey <tromey@redhat.com>
6471 * defs.h (generic_load): Update.
6472 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6473 * monitor.c (monitor_load): Make "args" const.
6474 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6475 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6477 (mips_load): Make "file" const.
6478 * remote-sim.c (gdbsim_load): Make "args" const.
6479 * remote.c (remote_load): Make "name" const.
6480 * symfile.c (generic_load): Make "args" const.
6481 * target-delegates.c: Rebuild.
6482 * target.c (target_load): Make "arg" const.
6483 (debug_to_load): Make "args" const.
6484 * target.h (struct target_ops) <to_load>: Make parameter const.
6485 (target_load): Update.
6487 2014-06-26 Tom Tromey <tromey@redhat.com>
6490 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6491 (dwarf2_physname, read_partial_die)
6492 (guess_partial_die_structure_name, fixup_partial_die)
6493 (guess_full_die_structure_name, anonymous_struct_prefix)
6494 (dwarf2_name): Use per-BFD obstack.
6496 2014-06-26 Yao Qi <yao@codesourcery.com>
6498 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6499 dummyframe and this_id into inner block below.
6501 2014-06-26 Yao Qi <yao@codesourcery.com>
6503 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6504 with "signal_pass[0]" in the initialization of signal_pass.
6506 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6508 * record-btrace.c (record_btrace_generating_corefile)
6509 (record_btrace_prepare_to_generate_core)
6510 (record_btrace_done_generating_core): New.
6511 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6512 (record_btrace_store_registers, record_btrace_prepare_to_store):
6513 Forward request when generating a core file.
6514 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6515 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6516 to_done_generating_core.
6518 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6520 * target.h (target_ops) <to_prepare_to_generate_core>
6521 <to_done_generating_core>: New.
6522 (target_prepare_to_generate_core, target_done_generating_core): New.
6523 * target.c (target_prepare_to_generate_core)
6524 (target_done_generating_core): New.
6525 * target-delegates.c: Regenerate.
6526 * gcore.c: (write_gcore_file): Rename to ...
6527 (write_gcore_file_1): ...this.
6528 (write_gcore_file): Call target_prepare_to_generate_core
6529 and target_done_generating_core.
6531 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6533 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6534 * gcore.c (write_gcore_file): Free memory returned from
6535 make_corefile_notes.
6536 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6537 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6539 2014-06-24 Yao Qi <yao@codesourcery.com>
6541 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6542 (arm_linux_init_abi): Set skip_trampoline_code with
6543 gdbarch_skip_trampoline_code instead of
6544 find_solib_trampoline_target.
6546 2014-06-24 Yao Qi <yao@codesourcery.com>
6548 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6549 arm_skip_bx_reg returns non-zero.
6551 2014-06-24 Yao Qi <yao@codesourcery.com>
6553 * arm-tdep.c (arm_skip_bx_reg): New function.
6554 (arm_skip_stub): Call arm_skip_bx_reg.
6556 2014-06-23 Don Breazeal <donb@codesourcery.com>
6558 * MAINTAINERS: Add myself as write-after-approval maintainer.
6560 2014-06-23 Pedro Alves <palves@redhat.com>
6562 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6563 DR_CONTROL before setting DR0..DR3.
6564 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6565 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6566 bits of DR_CONTROL related to the debug register slot being
6567 disabled. If all slots are vacant, clear local slowdown as well,
6568 and assert DR_CONTROL is 0.
6570 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6572 * python/lib/gdb/command/xmethods.py
6573 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6574 current progspace only if the string "progspace" matches LOCUS_RE.
6576 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6578 Fix --with-system-readline with readline-6.3 patch 5.
6579 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6580 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6583 2014-06-20 Tom Tromey <tromey@redhat.com>
6585 * dwarf2read.c (dw2_get_real_path): Use correct type in
6587 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6589 2014-06-20 Gary Benson <gbenson@redhat.com>
6591 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6592 * common/glibc_thread_db.h: Likewise.
6593 * common/i386-cpuid.h: Likewise.
6594 * common/i386-gcc-cpuid.h: Likewise.
6595 * common/linux-btrace.h: Likewise.
6596 * common/linux-osdata.h: Likewise.
6597 * common/linux-procfs.h: Likewise.
6598 * common/linux-ptrace.h: Likewise.
6599 * common/mips-linux-watch.h: Likewise.
6600 * common/linux-btrace.c: Moved to nat.
6601 * common/linux-osdata.c: Likewise.
6602 * common/linux-procfs.c: Likewise.
6603 * common/linux-ptrace.c: Likewise.
6604 * common/mips-linux-watch.c: Likewise.
6605 * nat/gdb_thread_db.h: Moved from common.
6606 * nat/glibc_thread_db.h: Likewise.
6607 * nat/i386-cpuid.h: Likewise.
6608 * nat/i386-gcc-cpuid.h: Likewise.
6609 * nat/linux-btrace.c: Likewise.
6610 * nat/linux-btrace.h: Likewise.
6611 * nat/linux-osdata.c: Likewise.
6612 * nat/linux-osdata.h: Likewise.
6613 * nat/linux-procfs.c: Likewise.
6614 * nat/linux-procfs.h: Likewise.
6615 * nat/linux-ptrace.c: Likewise.
6616 * nat/linux-ptrace.h: Likewise.
6617 * nat/mips-linux-watch.c: Likewise.
6618 * nat/mips-linux-watch.h: Likewise.
6619 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6620 (object file files): Reordered.
6621 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6622 of glibc_thread_db.h.
6624 2014-06-20 Gary Benson <gbenson@redhat.com>
6626 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6627 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6628 (i386_dr_low): Likewise.
6629 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6630 (i386_dr_low_set_addr): Likewise.
6631 (i386_dr_low_get_addr): Likewise.
6632 (i386_dr_low_can_set_control): Likewise.
6633 (i386_dr_low_set_control): Likewise.
6634 (i386_dr_low_get_control): Likewise.
6635 (i386_dr_low_get_status): Likewise.
6636 (i386_get_debug_register_length): Likewise.
6637 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6638 (i386_dr_low): Likewise.
6639 * nat/i386-dregs.c (i386-low.h): Remove include.
6640 (i386-nat.h): Likewise.
6641 (nat/i386-dregs.h): New include.
6642 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6643 (i386_dr_low_set_addr): Likewise.
6644 (i386_dr_low_get_addr): Likewise.
6645 (i386_dr_low_can_set_control): Likewise.
6646 (i386_dr_low_set_control): Likewise.
6647 (i386_dr_low_get_control): Likewise.
6648 (i386_dr_low_get_status): Likewise.
6649 (i386_get_debug_register_length): Likewise.
6650 (debug_hw_points): Likewise.
6652 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6654 * Makefile.in (SFILES): Add d-exp.y.
6655 (YYFILES): Add d-exp.c.
6656 (YYOBJ): Add d-exp.o.
6657 (local-maintainer-clean): Delete d-exp.c.
6658 * d-exp.y: New file.
6659 * d-lang.h (d_parse): New declaration.
6660 (d_error): New declaration.
6661 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6662 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6663 PREC_ORDER operators.
6664 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6666 2014-06-19 Yao Qi <yao@codesourcery.com>
6668 * gdbthread.h (any_running): Remove the declaration.
6669 * thread.c (any_running): Remove.
6671 2014-06-19 Yao Qi <yao@codesourcery.com>
6673 * gdbthread.h (struct thread_info) <state>: Change its type to
6674 'enum thread_state'. Update comments.
6676 2014-06-19 Pedro Alves <palves@redhat.com>
6678 * gdbthread.h (ALL_THREADS): Delete.
6679 (ALL_NON_EXITED_THREADS): New macro.
6680 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6681 instead of ALL_THREADS.
6682 * infrun.c (find_thread_needs_step_over)
6683 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6684 instead of ALL_THREADS.
6685 * record-btrace.c (record_btrace_open)
6686 (record_btrace_stop_recording, record_btrace_close)
6687 (record_btrace_is_replaying, record_btrace_resume)
6688 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6689 * remote.c (append_pending_thread_resumptions): Likewise.
6690 * thread.c (thread_apply_all_command): Likewise.
6692 2014-06-19 Gary Benson <gbenson@redhat.com>
6694 * i386-nat.c (i386_stopped_by_watchpoint):
6695 Use i386_dr_stopped_by_watchpoint.
6696 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6697 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6699 2014-06-19 Gary Benson <gbenson@redhat.com>
6701 * nat/i386-dregs.c: New file.
6702 * Makefile.in (i386-dregs.o): New rule.
6703 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6704 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6705 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6706 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6707 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6708 * config/i386/go32.mh (NATDEPFILES): Likewise.
6709 * config/i386/linux.mh (NATDEPFILES): Likewise.
6710 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6711 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6712 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6713 * i386-nat.h (debug_hw_points): New declaration.
6714 * i386-nat.c (breakpoint.h): Remove include.
6715 (command.h): Likewise.
6716 (target.h): Likewise.
6717 (gdb_assert.h): Likewise.
6718 (debug_hw_points): Made nonstatic.
6719 (debug_printf): Now in i386-dregs.c.
6720 (TARGET_HAS_DR_LEN_8): Likewise.
6721 (DR_CONTROL_SHIFT): Likewise.
6722 (DR_CONTROL_SIZE): Likewise.
6723 (DR_RW_EXECUTE): Likewise.
6724 (DR_RW_WRITE): Likewise.
6725 (DR_RW_READ): Likewise.
6726 (DR_RW_IORW): Likewise.
6727 (DR_LEN_1): Likewise.
6728 (DR_LEN_2): Likewise.
6729 (DR_LEN_4): Likewise.
6730 (DR_LEN_8): Likewise.
6731 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6732 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6733 (DR_ENABLE_SIZE): Likewise.
6734 (DR_LOCAL_SLOWDOWN): Likewise.
6735 (DR_GLOBAL_SLOWDOWN): Likewise.
6736 (DR_CONTROL_RESERVED): Likewise.
6737 (I386_DR_CONTROL_MASK): Likewise.
6738 (I386_DR_VACANT): Likewise.
6739 (I386_DR_LOCAL_ENABLE): Likewise.
6740 (I386_DR_GLOBAL_ENABLE): Likewise.
6741 (I386_DR_DISABLE): Likewise.
6742 (I386_DR_SET_RW_LEN): Likewise.
6743 (I386_DR_GET_RW_LEN): Likewise.
6744 (I386_DR_WATCH_HIT): Likewise.
6745 (i386_wp_op_t): Likewise.
6746 (i386_show_dr): Likewise.
6747 (i386_length_and_rw_bits): Likewise.
6748 (i386_insert_aligned_watchpoint): Likewise.
6749 (i386_remove_aligned_watchpoint): Likewise.
6750 (i386_handle_nonaligned_watchpoint): Likewise.
6751 (i386_update_inferior_debug_regs): Likewise.
6752 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6753 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6754 (i386_region_ok_for_watchpoint):
6755 Use i386_dr_region_ok_for_watchpoint.
6756 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6758 2014-06-19 Gary Benson <gbenson@redhat.com>
6760 * i386-nat.c (i386_insert_hw_breakpoint): Use
6761 i386_insert_watchpoint.
6762 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6764 2014-06-19 Gary Benson <gbenson@redhat.com>
6766 * i386-nat.c (i386_dr_show): Renamed to
6767 i386_show_dr and made static. All uses updated.
6768 (i386_dr_length_and_rw_bits): Renamed to
6769 i386_length_and_rw_bits and made static.
6771 (i386_dr_insert_aligned_watchpoint): Renamed to
6772 i386_insert_aligned_watchpoint and made static.
6774 (i386_dr_remove_aligned_watchpoint): Renamed to
6775 i386_remove_aligned_watchpoint and made static.
6777 (i386_dr_update_inferior_debug_regs): Renamed to
6778 i386_update_inferior_debug_regs and made static.
6780 * nat/i386-dregs.h (i386_dr_show): Removed.
6781 (i386_dr_length_and_rw_bits): Likewise.
6782 (i386_dr_insert_aligned_watchpoint): Likewise.
6783 (i386_dr_remove_aligned_watchpoint): Likewise.
6784 (i386_dr_update_inferior_debug_regs): Likewise.
6786 2014-06-19 Gary Benson <gbenson@redhat.com>
6788 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6789 * configure: Regenerate.
6790 * config.in: Likewise.
6791 * main.c (signal.h): New include.
6792 (setup_alternate_signal_stack): New function.
6793 (captured_main): Call the above.
6794 * cp-support.c (signal.h): New include.
6795 (catch_demangler_crashes): New flag.
6796 (SIGJMP_BUF): New define.
6797 (SIGSETJMP): Likewise.
6798 (SIGLONGJMP): Likewise.
6799 (gdb_demangle_jmp_buf): New static global.
6800 (gdb_demangle_attempt_core_dump): Likewise.
6801 (gdb_demangle_signal_handler): New function.
6802 (gdb_demangle): If catch_demangler_crashes is set, install the
6803 above signal handler before calling bfd_demangle, and restore
6804 the original signal handler afterwards. Display the offending
6805 symbol and call demangler_warning the first time a segmentation
6807 (_initialize_cp_support): New maint set/show command.
6809 2014-06-19 Gary Benson <gbenson@redhat.com>
6811 * utils.h (resource_limit_kind): New enum.
6812 (can_dump_core): New declaration.
6813 (warn_cant_dump_core): Likewise.
6814 (dump_core): Likewise.
6815 * utils.c (dump_core): Made nonstatic. Added new
6816 parameter "limit_kind".
6817 (can_dump_core): Made nonstatic. Moved printing code to...
6818 (warn_cant_dump_core): New function.
6819 (can_dump_core_warn): Likewise.
6820 (internal_vproblem): Replace calls to can_dump_core with
6821 calls to can_dump_core_warn. Supply new argument to each.
6823 2014-06-19 Gary Benson <gbenson@redhat.com>
6825 * utils.h (demangler_vwarning): New declaration.
6826 (demangler_warning): Likewise.
6827 * utils.c (struct internal_problem)
6828 <user_settable_should_quit>: New field.
6829 <user_settable_should_dump_core>: Likewise
6830 (internal_error_problem): Add values for above new fields.
6831 (internal_warning_problem): Likewise.
6832 (demangler_warning_problem): New static global.
6833 (demangler_vwarning): New function.
6834 (demangler_warning): Likewise.
6835 (add_internal_problem_command): Selectively add commands.
6836 (_initialize_utils): New internal problem command.
6837 * maint.c (maintenance_demangler_warning): New function.
6838 (_initialize_maint_cmds): New command.
6840 2014-06-18 Tom Tromey <tromey@redhat.com>
6842 * f-valprint.c (info_common_command_for_block): Update.
6843 * symtab.h (struct general_symbol_info) <common_block>: Now
6846 2014-06-18 Tom Tromey <tromey@redhat.com>
6848 * symtab.h (struct symtab) <blockvector>: Now const.
6849 * ada-lang.c (ada_add_global_exceptions): Update.
6850 * buildsym.c (augment_type_symtab): Update.
6851 * dwarf2read.c (dw2_lookup_symbol): Update.
6852 * jit.c (finalize_symtab): Update.
6853 * jv-lang.c (add_class_symtab_symbol): Update.
6854 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6856 * objfiles.c (objfile_relocate1): Update.
6857 * psymtab.c (lookup_symbol_aux_psymtabs)
6858 (maintenance_check_psymtabs): Update.
6859 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6861 * spu-tdep.c (spu_catch_start): Update.
6862 * symmisc.c (dump_symtab_1): Update.
6863 * symtab.c (lookup_global_symbol_from_objfile)
6864 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6865 (basic_lookup_transparent_type_quick)
6866 (basic_lookup_transparent_type, find_pc_sect_symtab)
6867 (find_pc_sect_line, search_symbols): Update.
6868 * block.c (find_block_in_blockvector): Make "bl" const.
6869 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6871 (blockvector_contains_pc): Make "bv" const.
6872 (block_for_pc_sect): Update.
6873 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6874 (blockvector_contains_pc): Update.
6875 * breakpoint.c (resolve_sal_pc): Update.
6876 * inline-frame.c (block_starting_point_at): Update.
6878 2014-06-18 Tom Tromey <tromey@redhat.com>
6880 * completer.c (complete_line): Make "line_buffer" const.
6881 * completer.h (complete_line): Update.
6883 2014-06-18 Tom Tromey <tromey@redhat.com>
6885 * symtab.c (add_macro_name): Remove unneeded cast.
6887 2014-06-18 Tom Tromey <tromey@redhat.com>
6889 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6890 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6892 2014-06-18 Tom Tromey <tromey@redhat.com>
6894 * probe.c (info_probes_for_ops): Make "arg" const.
6895 * probe.h (info_probes_for_ops): Update.
6897 2014-06-18 Tom Tromey <tromey@redhat.com>
6899 * varobj.c (varobj_create): Update.
6900 * valops.c (value_of_this): Update.
6901 * tracepoint.c (add_local_symbols, scope_info): Update.
6902 * symtab.h (struct general_symbol_info) <block>: Now const.
6903 * symtab.c (skip_prologue_sal)
6904 (default_make_symbol_completion_list_break_on)
6905 (skip_prologue_using_sal): Update.
6906 * stack.h (iterate_over_block_locals)
6907 (iterate_over_block_local_vars): Update.
6908 * stack.c (print_frame_args): Update.
6909 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6911 (get_selected_block): Make return type const.
6912 * python/py-frame.c (frapy_block): Update.
6913 * python/py-block.c (gdbpy_block_for_pc): Update.
6914 * p-exp.y (%union) <bval>: Now const.
6915 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6916 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6917 * m2-exp.y (%union) <bval>: Now const.
6918 * linespec.c (get_current_search_block): Make return type const.
6919 (create_sals_line_offset, find_label_symbols): Update.
6920 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6922 (block_starting_point_at): Make "block" const.
6923 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6924 (check_exception_resume): Update.
6925 * guile/scm-frame.c (gdbscm_frame_block): Update.
6926 * guile/scm-block.c (gdbscm_lookup_block): Update.
6927 * frame.h (get_frame_block): Update.
6928 (get_selected_block): Make return type const.
6929 * frame.c (frame_id_inner): Update.
6930 * f-valprint.c (info_common_command_for_block)
6931 (info_common_command): Update.
6932 * dwarf2loc.c (dwarf2_find_location_expression)
6933 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6934 (locexpr_describe_location_piece): Update.
6935 * c-exp.y (%union) <bval>: Now const.
6936 * breakpoint.c (resolve_sal_pc): Update.
6937 * blockframe.c (get_frame_block):Make return type const.
6938 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6939 (block_innermost_frame): Update.
6940 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6941 (block_for_pc, block_for_pc_sect): Update.
6942 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6944 (block_for_pc_sect, block_for_pc): Make return type const.
6945 * ax-gdb.c (gen_expr): Update.
6946 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6947 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6948 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6949 (ada_read_var_value): Update.
6950 * ada-exp.y (struct name_info) <block>: Now const.
6952 (block_lookup): Constify.
6954 2014-06-18 Gary Benson <gbenson@redhat.com>
6956 * nat/i386-dregs.h: New file.
6957 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6958 * i386-nat.h (i386-dregs.h): New include.
6959 (DR_FIRSTADDR): Now in i386-dregs.h.
6960 (DR_LASTADDR): Likewise.
6961 (DR_NADDR): Likewise.
6962 (DR_STATUS): Likewise.
6963 (DR_CONTROL): Likewise.
6964 (i386_debug_reg_state): Likewise.
6965 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6967 2014-06-18 Don Breazeal <donb@codesourcery.com>
6969 * breakpoint.c (set_longjmp_breakpoint): Call
6970 momentary_breakpoint_from_master with additional argument.
6971 (set_longjmp_breakpoint_for_call_dummy): Call
6972 momentary_breakpoint_from_master with additional argument.
6973 (set_std_terminate_breakpoint): Call
6974 momentary_breakpoint_from_master with additional argument.
6975 (momentary_breakpoint_from_master): Add argument to function
6976 definition and use it to initialize structure member flag.
6977 (clone_momentary_breakpoint): Call
6978 momentary_breakpoint_from_master with additional argument.
6979 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6980 member flags set in momentary_breakpoint_from_master.
6982 2014-06-18 Gary Benson <gbenson@redhat.com>
6984 * i386-nat.c (i386_show_dr): Renamed to
6985 i386_dr_show and made nonstatic. All uses updated.
6986 (i386_length_and_rw_bits): Renamed to
6987 i386_dr_length_and_rw_bits and made nonstatic.
6989 (i386_insert_aligned_watchpoint): Renamed to
6990 i386_dr_insert_aligned_watchpoint and made nonstatic.
6992 (i386_remove_aligned_watchpoint): Renamed to
6993 i386_dr_remove_aligned_watchpoint and made nonstatic.
6995 (i386_update_inferior_debug_regs): Renamed to
6996 i386_dr_update_inferior_debug_regs and made nonstatic.
6999 2014-06-18 Gary Benson <gbenson@redhat.com>
7001 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7002 (i386_dr_low_can_set_control): Likewise.
7003 (i386_dr_low_set_addr): Likewise.
7004 (i386_dr_low_set_control): Likewise.
7005 (i386_dr_low_get_addr): Likewise.
7006 (i386_dr_low_get_status): Likewise.
7007 (i386_dr_low_get_control): Likewise.
7008 (i386_insert_aligned_watchpoint): Use new macros.
7009 (i386_update_inferior_debug_regs): Likewise.
7010 (i386_stopped_data_address): Likewise.
7012 2014-06-18 Gary Benson <gbenson@redhat.com>
7014 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7015 New parameter. All uses updated.
7017 2014-06-18 Gary Benson <gbenson@redhat.com>
7019 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7022 2014-06-18 Gary Benson <gbenson@redhat.com>
7024 * i386-nat.c (debug_printf): New macro.
7025 (i386_get_debug_register_length): Likewise.
7026 (TARGET_HAS_DR_LEN_8): Use above macro.
7027 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7028 and printf_unfiltered. Use phex to format values.
7030 2014-06-18 Gary Benson <gbenson@redhat.com>
7032 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7035 2014-06-18 Gary Benson <gbenson@redhat.com>
7037 * i386-nat.c: Comment changes.
7039 2014-06-18 Gary Benson <gbenson@redhat.com>
7041 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7043 2014-06-18 Gary Benson <gbenson@redhat.com>
7045 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7046 (i386_insert_aligned_watchpoint): Likewise.
7047 (i386_remove_aligned_watchpoint): Likewise.
7048 (i386_handle_nonaligned_watchpoint): Likewise.
7050 2014-06-18 Gary Benson <gbenson@redhat.com>
7052 * i386-nat.c: Whitespace changes.
7054 2014-06-17 Samuel Bronson <naesten@gmail.com>
7056 * MAINTAINERS: Update Roland McGrath's email address.
7057 Thanks to Sergio Durigan Junior for pointing out that he left
7058 Red Hat a while ago, and giving me a current address.
7060 2014-06-17 Tom Tromey <tromey@redhat.com>
7062 * utils.h (savestring): Remove declaration.
7064 2014-06-17 Tom Tromey <tromey@redhat.com>
7066 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7068 2014-06-16 Keith Seitz <keiths@redhat.com>
7071 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7072 to update the varobj if inferior_ptid is null_ptid.
7074 2014-06-16 Tom Tromey <tromey@redhat.com>
7076 * target.h (struct target_ops) <to_info_proc>: Make parameter
7078 (target_info_proc): Update.
7079 * target.c (target_info_proc): Make "args" const.
7080 * procfs.c (procfs_info_proc): Update.
7081 * linux-tdep.c (linux_info_proc): Update.
7082 (linux_core_info_proc_mappings): Make "args" const.
7083 (linux_core_info_proc): Update.
7084 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7085 * gdbarch.c: Rebuild.
7086 * gdbarch.h: Rebuild.
7087 * corelow.c (core_info_proc): Update.
7089 2014-06-16 Tom Tromey <tromey@redhat.com>
7091 * target.h (struct target_ops) <to_disconnect>: Make parameter
7093 (target_disconnect): Update.
7094 * target.c (target_disconnect): Make "args" const.
7095 * target-delegates.c: Rebuild.
7096 * remote.c (remote_disconnect): Update.
7097 * record.h (record_disconnect): Update.
7098 * record.c (record_disconnect): Update.
7099 * inf-child.c (inf_child_disconnect): Update.
7101 2014-06-16 Tom Tromey <tromey@redhat.com>
7103 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7104 * target.c (debug_to_rcmd, default_rcmd): Update.
7105 * target-delegates.c: Rebuild.
7106 * remote.c (remote_rcmd): Update.
7107 * monitor.c (monitor_rcmd): Update.
7109 2014-06-16 Pedro Alves <palves@redhat.com>
7111 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7112 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7113 have OBJF_SHARED set.
7114 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7115 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7116 instead of OBJF_USERLOADED.
7117 * objfiles.h (OBJF_SHARED): Update comment.
7118 (userloaded_objfile_contains_address_p): Rename to ...
7119 (shared_objfile_contains_address_p): ... this, and update
7121 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7123 (remove_symbol_file_command): Skip objfiles that don't have
7126 2014-06-16 Tom Tromey <tromey@redhat.com>
7128 * minsyms.h (prim_record_minimal_symbol)
7129 (prim_record_minimal_symbol_and_info): Update comments.
7131 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7133 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7134 or --without-guile, according to how GDB was built.
7136 2014-06-13 Tom Tromey <tromey@redhat.com>
7138 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7140 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7142 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7144 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7145 help_list.Pass all_commands, not -1, to help_list.
7146 * cli/cli-dump.c (dump_command, append_command)
7147 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7148 (binary_dump_command, binary_append_command): Pass all_commands,
7149 not -1, to help_list.
7150 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7152 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7154 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7156 * top.c (set_history): Pass all_commands, not -1, to help_list.
7157 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7158 all_commands, not -1, to help_list.
7159 * symfile.c (overlay_command): Pass all_commands, not -1, to
7161 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7163 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7165 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7167 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7168 not -1, to help_list.
7169 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7170 not -1, to help_list.
7171 * maint.c (maintenance_command, maintenance_info_command)
7172 (maintenance_print_command, maintenance_set_cmd): Pass
7173 all_commands, not -1, to help_list.
7174 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7176 * language.c (set_check): Pass all_commands, not -1, to help_list.
7177 * infcmd.c (unset_command): Pass all_commands, not -1, to
7179 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7181 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7183 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7185 * breakpoint.c (save_command): Pass all_commands, not -1, to
7187 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7188 all_commands, not -1, to help_list.
7190 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7192 * regcache.c (struct register_to_invalidate): New structure.
7193 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7195 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7197 2014-06-12 Yao Qi <yao@codesourcery.com>
7199 * varobj.c (varobj_get_num_children): Call
7200 varobj_is_dynamic_p.
7201 (varobj_list_children): Likewise.
7202 (varobj_update): Likewise. Update comments.
7204 2014-06-12 Yao Qi <yao@codesourcery.com>
7206 * varobj.c (varobj_pretty_printed_p): Rename to ...
7207 (varobj_is_dynamic_p): ... this. New function.
7208 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7209 (varobj_is_dynamic_p): Declare.
7210 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7211 (mi_print_value_p, varobj_update_one): Likewise.
7213 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7214 Yao Qi <yao@codesourcery.com>
7216 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7217 (varobj_get_iterator): Wrap up code for pretty-printer by
7218 "#if HAVE_PYTHON" and "#endif".
7219 (update_dynamic_varobj_children): Likewise.
7221 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7222 Yao Qi <yao@codesourcery.com>
7224 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7225 gdb_python_initialized is false. Move some code from varobj.c.
7226 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7227 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7228 (struct varobj_item): Moved to varobj-iter.h".
7229 (varobj_clear_saved_item): New function.
7230 (update_dynamic_varobj_children): Move python-related code to
7232 (free_variable): Call varobj_clear_saved_item and
7235 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7236 Yao Qi <yao@codesourcery.com>
7238 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7239 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7240 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7241 (py-varobj.o): New rule.
7242 * python/py-varobj.c: New file.
7243 * python/python-internal.h (py_varobj_get_iterator): Declare.
7244 * varobj-iter.h: New file.
7245 * varobj.c: Include "varobj-iter.h"
7246 (struct varobj) <child_iter>: Change its type from "PyObject *"
7247 to "struct varobj_iter *".
7248 <saved_item>: Likewise.
7249 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7250 [HAVE_PYTHON] (varobj_get_iterator): New function.
7251 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7252 python-specific code to python/py-varobj.c.
7253 (install_visualizer): Call varobj_iter_delete instead of
7255 * varobj.h (varobj_ensure_python_env): Declare.
7257 2014-06-12 Yao Qi <yao@codesourcery.com>
7259 * varobj.c (struct varobj_item): New structure.
7260 (create_child_with_value): Update declaration.
7261 (varobj_add_child): Replace arguments 'name' and 'value' with
7262 'item'. All callers updated.
7263 (install_dynamic_child): Likewise.
7264 (update_dynamic_varobj_children): Likewise.
7265 (varobj_add_child): Likewise.
7266 (create_child_with_value): Likewise.
7268 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7270 * NEWS: Create a new section for the next release branch.
7271 Rename the section of the current branch, now that it has
7274 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7276 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7277 * version.in: Bump version to 7.8.50.DATE-cvs.
7279 2014-06-11 Pedro Alves <palves@redhat.com>
7282 * ser-mingw.c (net_windows_socket_check_pending): New function.
7283 (net_windows_select_thread): Ignore spurious wakeups. Use
7284 net_windows_socket_check_pending.
7285 (net_windows_wait_handle): Check for pending events with
7286 ioctlsocket, through net_windows_socket_check_pending, instead of
7287 checking the socket's event.
7289 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7291 * python/python-internal.h (gdb_PyObject_GetAttrString)
7292 (gdb_PyObject_HasAttrString): New inline function definitions.
7293 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7294 char * of the second argument to PyObject_GetAttrString.
7296 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7298 * serial.c (serial_write): Fix index of character to be printed
7299 in call to serial_logchar when serial debug traces are enabled.
7301 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7303 * gdbtypes (resolve_dynamic_range): Add function description.
7305 2014-06-09 Pedro Alves <palves@redhat.com>
7307 * linux-nat.c (linux_child_follow_fork): Initialize status with
7308 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7309 inner block. Only pass the signal to PTRACE_DETACH if in pass
7312 2014-06-09 Gary Benson <gbenson@redhat.com>
7314 * common/signals.c (gdb_signal_from_host): Reorder to separate
7315 the always-available ANSI-standard signals from the signals that
7317 (do_gdb_signal_to_host): Likewise.
7318 * proc-events.c (signal_table): Likewise.
7320 2014-06-08 Hui Zhu <hui@codesourcery.com>
7322 * common/linux-ptrace.c (linux_disable_event_reporting): New
7324 * common/linux-ptrace.h (linux_disable_event_reporting): New
7326 * linux-nat.c (linux_child_follow_fork): Do a single step before
7329 2014-06-07 Keith Seitz <keiths@redhat.com>
7333 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7334 from symbol_matches_domain in symtab.c. All local callers
7335 of symbol_matches_domain updated.
7336 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7337 search STRUCT_DOMAIN.
7338 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7339 independently. standard_lookup will do that automatically.
7340 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7342 (cp_lookup_symbol_in_namespace): Likewise.
7343 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7344 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7345 may return a STRUCT_DOMAIN match.
7346 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7347 * cp-support.c: Include language.h.
7348 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7350 * psymtab.c (match_partial_symbol): Compare the requested
7351 domain with the symbol's domain directly.
7352 (lookup_partial_symbol): Likewise.
7353 * symtab.c (lookup_symbol_in_language): Explain when/why
7354 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7355 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7356 appropriate languages.
7357 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7358 and moved to ada-lang.c
7359 (lookup_block_symbol): Explain that this function only returns
7360 symbol matching the requested DOMAIN.
7361 Compare the requested domain with the symbol's domain directly.
7362 (iterate_over_symbols): Compare the requested domain with the
7363 symbol's domain directly.
7364 * symtab.h (symbol_matches_domain): Remove.
7366 2014-06-06 Doug Evans <xdje42@gmail.com>
7368 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7369 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7370 (gdbscm_guile_version_is_at_least): Declare.
7371 (gdbscm_scm_string_to_int): Declare.
7372 * guile/guile.c (gdbscm_guile_major_version): New global.
7373 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7374 (guile_datadir): New static global.
7375 (gdbscm_guile_data_directory): New function.
7376 (initialize_scheme_side): Update.
7377 (misc_guile_functions): Add guile-data-directory.
7378 (initialize_gdb_module): Fetch guile version number.
7379 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7380 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7381 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7382 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7384 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7385 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7386 * guile/scm-value.c (gdbscm_value_to_string): Only call
7387 scm_port_conversion_strategy if Guile version >= 2.0.6.
7389 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7391 * main.c (print_gdb_help): Add -q and --silent.
7393 2014-06-06 Gary Benson <gbenson@redhat.com>
7395 * common/signals.c: Remove preprocessor conditionals for
7396 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7397 SIGSEGV and SIGTERM.
7398 * proc-events.c: Likewise.
7400 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7402 * symfile.c (symfile_free_objfile): Remove restriction to
7404 * symfile-mem.c (symbol_file_add_from_memory): Call
7405 add_target_sections_of_objfile.
7407 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7409 * guile/scm-value.c (gdbscm_history_append_x): Use
7410 'vlscm_get_value_smob_arg_unsafe' instead of
7411 'vlscm_scm_to_value'.
7413 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7416 * utils.c (printchar): Don't escape at all if quoter is NUL.
7417 Update function documentation to clarify effect of parameter
7419 * remote.c (escape_buffer): Pass '\\' as the quoter to
7420 fputstrn_unfiltered.
7421 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7422 generate the output.
7423 (mi_solib_unloaded): Same.
7425 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7427 * development.sh: Delete.
7428 * Makefile.in (config.status): Adjust dependency on development.sh.
7429 * configure.ac: Adjust development.sh source call.
7430 * configure: Regenerate.
7432 2014-06-04 Doug Evans <xdje42@gmail.com>
7434 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7435 is_scheme_bkpt, spec.
7436 (bpscm_make_breakpoint_smob): Initialize new members.
7437 (gdbscm_create_breakpoint_x): Split into two ...
7438 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7439 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7440 (scheme_function breakpoint_functions): Update.
7441 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7442 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7443 register-breakpoint!.
7445 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7448 * mem-break.c (z_type_supported): Return zero if
7449 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7451 2014-06-04 Tom Tromey <tromey@redhat.com>
7453 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7454 value_from_contents_and_address_unresolved.
7455 (ada_template_to_fixed_record_type_1): Likewise.
7456 (ada_which_variant_applies): Likewise.
7457 * value.h (value_from_contents_and_address_unresolved): Declare.
7458 * value.c (value_from_contents_and_address_unresolved): New
7460 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7461 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7462 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7464 2014-06-04 Tom Tromey <tromey@redhat.com>
7466 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7468 2014-06-04 Tom Tromey <tromey@redhat.com>
7470 * procfs.c (procfs_attach): Make "args" const.
7471 * windows-nat.c (windows_attach): Make "args" const.
7472 * nto-procfs.c (procfs_attach): Make "args" const.
7473 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7474 * go32-nat.c (go32_attach): Make "args" const.
7475 * gnu-nat.c (gnu_attach): Make "args" const.
7476 * darwin-nat.c (darwin_attach): Make "args" const.
7477 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7478 * linux-nat.c (linux_nat_attach): Make "args" const.
7479 * remote.c (extended_remote_attach_1, extended_remote_attach):
7481 * target.h (struct target_ops) <to_attach>: Make "args" const.
7482 (find_default_attach): Likewise.
7483 * utils.c (parse_pid_to_attach): Make "args" const.
7484 * utils.h (parse_pid_to_attach): Update.
7486 2014-06-04 Tom Tromey <tromey@redhat.com>
7488 * target-delegates.c: Rebuild.
7489 * target.c (default_thread_address_space): New function.
7490 (target_thread_address_space): Simplify.
7491 * target.h (struct target_ops) <to_thread_address_space>: Add
7492 TARGET_DEFAULT_FUNC.
7494 2014-06-04 Doug Evans <xdje42@gmail.com>
7496 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7498 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7500 * record-btrace.c: Include event-loop.h and inf-loop.h.
7501 (record_btrace_resume_exec_dir)
7502 (record_btrace_async_inferior_event_handler)
7503 (record_btrace_handle_async_inferior_event): New.
7504 (record_btrace_open): Create async event handler.
7505 (record_btrace_close): Delete async event handler.
7506 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7507 Mark async event handler.
7508 (record_btrace_execution_direction): New.
7509 (init_record_btrace_ops): Initialize to_execution_direction.
7511 2014-06-03 Doug Evans <xdje42@gmail.com>
7513 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7514 (gdbscm_make_parameter): Ditto.
7516 2014-06-03 Doug Evans <dje@google.com>
7518 * exec.c (exec_close_1): Call clear_section_table instead of
7519 resize_section_table.
7520 (clear_section_table): New function.
7521 (resize_section_table): Make static. Rename arg num_added to
7523 * exec.h (clear_section_table): Declare.
7524 (resize_section_table): Delete.
7525 * progspace.c (release_program_space): Call clear_section_table
7526 instead of resize_section_table.
7528 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7530 * NEWS (Python Scripting): Add entry about the new xmethods
7533 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7535 * python/py-xmethods.c: New file.
7536 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7537 (objfpy_dealloc): XDECREF on the new xmethods field.
7538 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7540 (objfpy_get_xmethods): New function.
7541 (objfile_getset): New entry 'xmethods'.
7542 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7543 (pspy_dealloc): XDECREF on the new xmethods field.
7544 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7546 (pspy_get_xmethods): New function.
7547 (pspace_getset): New entry 'xmethods'.
7548 * python/python-internal.h: Add declarations for new functions.
7549 * python/python.c (_initialize_python): Invoke
7550 gdbpy_initialize_xmethods.
7551 * python/lib/gdb/__init__.py (xmethods): New
7553 * python/lib/gdb/xmethod.py: New file.
7554 * python/lib/gdb/command/xmethods.py: New file.
7556 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7558 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7559 best match method returned by find_overload_match is an xmethod.
7560 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7561 the best matching operator returned by find_overload_match is an
7563 * valops.c: #include "extension.h".
7564 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7565 Return void. The list of matching source methods is returned in
7566 "fn_list" and a vector of matching debug method workers is
7567 returned in "xm_worker_vec". Update all callers.
7568 (value_find_oload_method_list): Likewise.
7569 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7570 non-NULL, then the index of the best matching method in this
7571 vector is returned. Update all callers.
7572 (find_overload_match): Include xmethods while performing overload
7575 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7577 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7578 * extension-priv.h (struct extension_language_ops): Add the
7580 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7581 get_matching_xmethod_workers, get_xmethod_argtypes,
7582 invoke_xmethod, free_xmethod_worker,
7583 free_xmethod_worker_vec): New functions.
7584 * extension.h: #include "common/vec.h".
7585 New function declarations.
7586 (struct xmethod_worker): New struct.
7587 (VEC (xmethod_worker_ptr)): New vector type.
7588 (xmethod_worker_ptr): New typedef.
7589 (xmethod_worker_vec): Likewise.
7590 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7592 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7593 (struct builtin_type): New field "xmethod".
7594 * valarith.c (value_ptradd): Assert that the value argument is not
7596 * valops.c (value_must_coerce_to_target): Return 0 for
7597 lval_xcallable values.
7598 * value.c (struct value): New field XM_WORKER in the field
7600 (value_address, value_raw_address): Return 0 for lval_xcallable
7602 (set_value_address): Assert that the value is not an
7604 (value_free): Free the associated xmethod worker when freeing
7605 lval_xcallable values.
7606 (set_value_component_location): Assert that the WHOLE value is not
7608 (value_of_xmethod, call_xmethod): New functions.
7609 * value.h: Declare "struct xmethod_worker".
7610 Declare new functions value_of_xmethod, call_xmethod.
7612 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7613 Pedro Alves <palves@redhat.com>
7615 PR breakpoints/17000
7616 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7617 New function, extracted from software_breakpoint_inserted_here_p.
7618 (software_breakpoint_inserted_here_p): Replace factored out code
7619 by call to find_non_raw_software_breakpoint_inserted_here.
7620 (bp_target_info_copy_insertion_state): New function.
7621 (bkpt_insert_location): Handle the case of a single-step
7622 breakpoint already inserted at the same address.
7623 (bkpt_remove_location): Handle the case of a single-step
7624 breakpoint still inserted at the same address.
7625 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7626 breakpoint already inserted at the same address.
7627 (deprecated_remove_raw_breakpoint): Handle the case of a
7628 non-raw breakpoint still inserted at the same address.
7629 (find_single_step_breakpoint): New function, extracted from
7630 single_step_breakpoint_inserted_here_p.
7631 (find_single_step_breakpoint): New function,
7632 factored out from single_step_breakpoint_inserted_here_p.
7633 (single_step_breakpoint_inserted_here_p): Reimplement.
7635 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7637 Pushed by Joel Brobecker <brobecker@adacore.com>
7638 * source.c (show_substitute_path_command): Fix display of matching
7641 2014-06-03 Gary Benson <gbenson@redhat.com>
7643 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7645 2014-06-02 Doug Evans <xdje42@gmail.com>
7647 Add parameter support for Guile.
7648 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7649 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7650 (scm-param.o): New rule.
7651 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7652 (gdbscm_misc_error): Declare.
7653 (gdbscm_canonicalize_command_name): Declare.
7654 (gdbscm_scm_to_host_string): Declare.
7655 (gdbscm_scm_from_host_string): Declare.
7656 (gdbscm_initialize_parameters): Declare.
7657 * guile/guile.c (initialize_gdb_module): Call
7658 gdbscm_initialize_parameters.
7659 * guile/lib/gdb.scm: Export parameter symbols.
7660 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7661 cmdscm_canonicalize_name and made public. All callers updated.
7662 * guile/scm-exception.c (gdbscm_misc_error): New function.
7663 * guile/scm-param.c: New file.
7664 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7665 (gdbscm_scm_to_host_string): New function.
7666 (gdbscm_scm_from_host_string): New function.
7667 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7669 2014-06-02 Doug Evans <xdje42@gmail.com>
7671 Add command support for Guile.
7672 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7673 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7674 (scm-cmd.o): New rule.
7675 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7676 (gdbscm_user_error_p): Declare.
7677 (gdbscm_parse_command_name): Declare.
7678 (gdbscm_valid_command_class_p): Declare.
7679 (gdbscm_initialize_commands): Declare.
7680 * guile/guile.c (initialize_gdb_module): Call
7681 gdbscm_initialize_commands.
7682 * guile/lib/gdb.scm: Export command symbols.
7683 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7684 (throw-user-error): New function.
7685 * guile/scm-cmd.c: New file.
7686 * guile/scm-exception.c (user_error_symbol): New static global.
7687 (gdbscm_user_error_p): New function.
7688 (gdbscm_initialize_exceptions): Set user_error_symbol.
7689 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7691 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7693 * top.c (command_loop): Handle comments here...
7694 (command_line_input): ... not here.
7696 2014-06-02 Doug Evans <xdje42@gmail.com>
7698 Add progspace support for Guile.
7699 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7700 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7701 (scm-progspace.o): New rule.
7702 * guile/guile-internal.h (pspace_smob): New typedef.
7703 (psscm_pspace_smob_pretty_printers): Declare.
7704 (psscm_pspace_smob_from_pspace): Declare.
7705 (psscm_scm_from_pspace): Declare.
7706 * guile/guile.c (initialize_gdb_module): Call
7707 gdbscm_initialize_pspaces.
7708 * guile/lib/gdb.scm: Export progspace symbols.
7709 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7711 (append-pretty-printer!): Ditto.
7712 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7714 * guile/scm-progspace.c: New file.
7716 2014-06-03 Alan Modra <amodra@gmail.com>
7718 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7719 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7721 2014-06-02 Doug Evans <dje@google.com>
7723 Add support for skeletonless type units.
7724 * dwarf2read.c (struct dwarf2_per_objfile): New member
7725 n_allocated_type_units.
7726 (struct dwarf2_per_objfile) <tu_stats>: New member
7727 nr_all_type_units_reallocs.
7728 (create_signatured_type_table_from_index): Initialize
7729 n_allocated_type_units
7730 (create_all_type_units): Ditto.
7731 (add_type_unit): Move up in file. New arg slot.
7732 All callers updated. Increase space for all_type_units more
7734 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7735 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7736 (lookup_dwp_signatured_type): Ditto.
7737 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7738 All callers updated.
7739 (build_type_psymtabs_1): Leave type_unit_groups as
7740 NULL if no TUs present.
7741 (print_tu_stats): New function.
7742 (process_skeletonless_type_unit): New function.
7743 (process_dwo_file_for_skeletonless_type_units): New
7745 (process_skeletonless_type_units): New function.
7746 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7747 Call print tu_stats if debugging enabled.
7749 2014-06-02 Pedro Alves <palves@redhat.com>
7751 * breakpoint.c (build_target_command_list): Don't build a command
7752 list if we have any duplicate location that isn't a dprintf.
7754 2014-06-02 Pedro Alves <palves@redhat.com>
7756 * breakpoint.c (dprintf_breakpoint_hit): New function.
7757 (initialize_breakpoint_ops): Install it as dprintf's
7758 breakpoint_hit method.
7760 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7762 * source.c (substitute_path_rule_matches): Simplify using
7763 filename_ncmp instead of FILENAME_CMP.
7765 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7767 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7769 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7771 * configure.ac: When Guile is available, check for the
7772 availability of 'scm_new_smob'.
7773 * configure, config.h.in: Regenerate.
7774 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7777 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7779 * frame.c (struct frame_info): Add stop_string field.
7780 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7781 (get_prev_frame_always): Old content moved into
7782 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7783 TRY_CATCH, handle MEMORY_ERROR exceptions.
7784 (frame_stop_reason_string): New function definition.
7785 * frame.h (unwind_stop_reason_to_string): Extend comment to
7786 mention frame_stop_reason_string.
7787 (frame_stop_reason_string): New function declaration.
7788 * stack.c (frame_info): Switch to frame_stop_reason_string.
7789 (backtrace_command_1): Switch to frame_stop_reason_string.
7790 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7791 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7792 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7794 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7796 * frame.c (frame_stop_reason_string): Rename to ...
7797 (unwind_stop_reason_to_string): this.
7798 * frame.h (frame_stop_reason_string): Rename to ...
7799 (unwind_stop_reason_to_string): this.
7800 * stack.c (frame_info): Update call to frame_stop_reason_string.
7801 (backtrace_command_1): Likewise.
7802 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7803 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7805 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7807 * frame.c (remove_prev_frame): New function.
7808 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7811 2014-05-29 Pedro Alves <palves@redhat.com>
7813 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7814 and make it const. When a single-step decays to a continue,
7815 clear 'step', not 'hw_step'. Pass whether the caller wanted
7816 to step to user_visible_resume_ptid, not what we ask the
7819 2014-05-29 Pedro Alves <palves@redhat.com>
7821 * infrun.c (process_event_stop_test, handle_step_into_function)
7822 (handle_step_into_function_backward): Adjust.
7823 Don't set the even thread's stop_step and call stop_waiting before
7824 calling end_stepping_range. Instead do that ...
7825 (end_stepping_range): ... here. Take an ecs pointer parameter.
7827 2014-05-29 Pedro Alves <palves@redhat.com>
7829 * infrun.c (stop_stepping): Rename to ...
7830 (stop_waiting): ... this.
7831 (proceed): Update comment.
7832 (process_event_stop_test, handle_inferior_event)
7833 (handle_signal_stop, handle_step_into_function)
7834 (handle_step_into_function_backward): Update.
7836 2014-05-29 Pedro Alves <palves@redhat.com>
7838 * infcall.c (run_inferior_call): Don't check whether the current
7839 thread is running after the proceed call.
7841 2014-05-29 Pedro Alves <palves@redhat.com>
7842 Tom Tromey <tromey@redhat.com>
7844 * NEWS: Mention "maint set target-async", "set mi-async", and that
7845 background execution commands are now always available.
7846 * target.h (target_async_permitted): Update comment.
7847 * target.c (target_async_permitted, target_async_permitted_1):
7849 (set_target_async_command): Rename to ...
7850 (maint_set_target_async_command): ... this.
7851 (show_target_async_command): Rename to ...
7852 (maint_show_target_async_command): ... this.
7853 (_initialize_target): Adjust.
7854 * infcmd.c (prepare_execution_command): Make extern.
7855 * inferior.h (prepare_execution_command): Declare.
7856 * infrun.c (set_observer_mode): Leave target async alone.
7857 * mi/mi-interp.c (mi_interpreter_init): Install
7858 mi_on_sync_execution_done as sync_execution_done observer.
7859 (mi_on_sync_execution_done): New function.
7860 (mi_execute_command_input_handler): Don't print the prompt if we
7861 just started a synchronous command with an async target.
7862 (mi_on_resume): Check sync_execution before printing prompt.
7863 * mi/mi-main.h (mi_async_p): Declare.
7864 * mi/mi-main.c: Include gdbcmd.h.
7865 (mi_async_p): New function.
7866 (mi_async, mi_async_1): New globals.
7867 (set_mi_async_command, show_mi_async_command, mi_async): New
7869 (exec_continue): Call prepare_execution_command.
7870 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7871 (mi_execute_async_cli_command): Use mi_async_p.
7872 (_initialize_mi_main): Install "set mi-async". Make
7873 "target-async" a deprecated alias.
7875 2014-05-29 Pedro Alves <palves@redhat.com>
7877 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7878 (_initialize_cli_interp): Adjust.
7879 * event-loop.c: Include "observer.h".
7880 (start_event_loop): Notify 'command_error' observers instead of
7881 calling display_gdb_prompt. Remove FIXME comment.
7882 * event-top.c (display_gdb_prompt): Remove call into the
7884 * inf-loop.c: Include "observer.h".
7885 (inferior_event_handler): Notify 'command_error' observers instead
7886 of calling display_gdb_prompt.
7887 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7888 observers instead of calling display_gdb_prompt.
7889 * interps.c (interp_set): Don't call display_gdb_prompt.
7890 (current_interp_display_prompt_p): Delete.
7891 * interps.h (interp_prompt_p): Delete declaration.
7892 (interp_prompt_p_ftype): Delete.
7893 (struct interp_procs) <prompt_proc_p>: Delete field.
7894 (current_interp_display_prompt_p): Delete declaration.
7895 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7896 (_initialize_mi_interp): Adjust.
7897 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7898 'command_error' observers.
7899 (tui_on_sync_execution_done, tui_on_command_error): New
7901 (tui_display_prompt_p): Delete.
7902 (_initialize_tui_interp): Adjust.
7904 2014-05-29 Pedro Alves <palves@redhat.com>
7907 * cli/cli-interp.c: Include infrun.h and observer.h.
7908 (cli_uiout, cli_interp): New globals.
7909 (cli_on_signal_received, cli_on_end_stepping_range)
7910 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7912 (cli_interpreter_init): Install them as 'end_stepping_range',
7913 'signal_received' 'signal_exited', 'exited' and 'no_history'
7915 (_initialize_cli_interp): Remove cli_interp local.
7916 * infrun.c (handle_inferior_event): Call the several stop reason
7917 observers instead of printing the stop reason directly.
7918 (end_stepping_range): New function.
7919 (print_end_stepping_range_reason, print_signal_exited_reason)
7920 (print_exited_reason, print_signal_received_reason)
7921 (print_no_history_reason): Make static, and add an uiout
7922 parameter. Print to that instead of to CURRENT_UIOUT.
7923 * infrun.h (print_end_stepping_range_reason)
7924 (print_signal_exited_reason, print_exited_reason)
7925 (print_signal_received_reason print_no_history_reason): New
7927 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7929 <cli_uiout>: New field.
7930 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7931 uiout for CLI output. Install 'signal_received',
7932 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7934 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7935 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7936 (mi_on_no_history): New functions.
7937 (ui_out_free_cleanup): Delete function.
7938 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7939 instead use the one already stored in the MI interpreter data.
7940 (mi_ui_out): Adjust.
7941 * tui/tui-interp.c: Include infrun.h and observer.h.
7942 (tui_interp): New global.
7943 (tui_on_signal_received, tui_on_end_stepping_range)
7944 (tui_on_signal_exited, tui_on_exited)
7945 (tui_on_no_history): New functions.
7946 (tui_init): Install them as 'end_stepping_range',
7947 'signal_received' 'signal_exited', 'exited' and 'no_history'
7949 (_initialize_tui_interp): Delete tui_interp local.
7951 2014-05-29 Pedro Alves <palves@redhat.com>
7954 * linux-nat.c (linux_nat_resume_callback): Rename the second
7955 parameter to 'except'. Skip LP if it points to EXCEPT.
7956 (linux_nat_resume): Don't mark the event lwp as not stopped
7957 before resuming sibling lwps. Instead ask
7958 linux_nat_resume_callback to skip the event lwp. Mark it as not
7959 stopped after actually resuming it.
7960 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7962 (wait_lwp): Mark the lwp as stopped here.
7963 (stop_wait_callback): Mark the lwp as not stopped right after
7964 resuming it. Don't mark lwps as stopped here.
7965 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7966 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7968 2014-05-29 Pedro Alves <palves@redhat.com>
7971 * infrun.c (resume): Determine how much to resume depending on
7972 whether the caller wanted a step, not whether we can hardware step
7973 the target. Mark all threads that we intend to run as running,
7974 unless we're calling an inferior function.
7975 (normal_stop): If the thread is running an infcall, don't finish
7977 * target.c (target_resume): Don't mark threads as running here.
7979 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7981 * serial.c (_initialize_serial): Remove support for
7982 the "set remotebaud" and "show remotebaud" commands.
7983 * NEWS: Add entry documenting the removal of that command.
7985 2014-05-28 Yao Qi <yao@codesourcery.com>
7987 * charset.c: Fix typo in comments.
7989 2014-05-27 Gary Benson <gbenson@redhat.com>
7991 * utils.c (internal_vproblem): Prompt for a bug report.
7993 2014-05-26 Andy Wingo <wingo@igalia.com>
7995 * guile/scm-arch.c (arscm_mark_arch_smob):
7996 * guile/scm-block.c (bkscm_mark_block_smob)
7997 (bkscm_mark_block_syms_progress_smob):
7998 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7999 * guile/scm-exception.c (exscm_mark_exception_smob):
8000 * guile/scm-frame.c (frscm_mark_frame_smob):
8001 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8002 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8003 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8004 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8005 (ppscm_mark_pretty_printer_worker_smob):
8006 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8007 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8008 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8009 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8011 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8014 2014-05-26 Andy Wingo <wingo@igalia.com>
8015 Doug Evans <xdje42@gmail.com>
8017 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8018 empty_base_class. All uses updated.
8019 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8020 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8022 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8023 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8024 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8025 (gdbscm_gsmob_has_property_p, add_property_name)
8026 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8027 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8028 (gdb-object-has-property?, gdb-object-properties): Remove.
8029 (gdb-object-kind): Renamed from gsmob-kind.
8031 2014-05-26 Andy Wingo <wingo@igalia.com>
8033 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8034 * configure: Regenerate.
8036 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8038 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8040 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8042 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8043 (replay_memory_access_read_only, replay_memory_access_read_write)
8044 (replay_memory_access_types, replay_memory_access)
8045 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8046 (cmd_set_record_btrace, cmd_show_record_btrace)
8047 (cmd_show_replay_memory_access): New.
8048 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8049 (record_btrace_remove_breakpoint): Replace
8050 record_btrace_allow_memory_access with replay_memory_access.
8051 (_initialize_record_btrace): Add commands.
8052 * NEWS: Announce it.
8054 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8056 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8058 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8060 * MAINTAINERS (Write After Approval): Move self back from
8063 2014-05-22 Pedro Alves <palves@redhat.com>
8065 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8066 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8067 (disable_randomization, enum exec_direction_kind)
8068 (execution_direction, stop_registers, start_remote)
8069 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8070 (wait_for_inferior, normal_stop, get_last_target_status)
8071 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8072 (insert_step_resume_breakpoint_at_sal)
8073 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8074 (set_step_info, print_stop_event, signal_stop_state)
8075 (signal_print_state, signal_pass_state, signal_stop_update)
8076 (signal_print_update, signal_pass_update)
8077 (update_signals_program_target, clear_exit_convenience_vars)
8078 (displaced_step_dump_bytes, update_observer_mode)
8079 (signal_catch_update, gdb_signal_from_command): Move
8081 * infrun.h: ... to this new file.
8082 * amd64-tdep.c: Include infrun.h.
8083 * annotate.c: Include infrun.h.
8084 * arch-utils.c: Include infrun.h.
8085 * arm-linux-tdep.c: Include infrun.h.
8086 * arm-tdep.c: Include infrun.h.
8087 * break-catch-sig.c: Include infrun.h.
8088 * breakpoint.c: Include infrun.h.
8089 * common/agent.c: Include infrun.h instead of inferior.h.
8090 * corelow.c: Include infrun.h.
8091 * event-top.c: Include infrun.h.
8092 * go32-nat.c: Include infrun.h.
8093 * i386-tdep.c: Include infrun.h.
8094 * inf-loop.c: Include infrun.h.
8095 * infcall.c: Include infrun.h.
8096 * infcmd.c: Include infrun.h.
8097 * infrun.c: Include infrun.h.
8098 * linux-fork.c: Include infrun.h.
8099 * linux-nat.c: Include infrun.h.
8100 * linux-thread-db.c: Include infrun.h.
8101 * monitor.c: Include infrun.h.
8102 * nto-tdep.c: Include infrun.h.
8103 * procfs.c: Include infrun.h.
8104 * record-btrace.c: Include infrun.h.
8105 * record-full.c: Include infrun.h.
8106 * remote-m32r-sdi.c: Include infrun.h.
8107 * remote-mips.c: Include infrun.h.
8108 * remote-notif.c: Include infrun.h.
8109 * remote-sim.c: Include infrun.h.
8110 * remote.c: Include infrun.h.
8111 * reverse.c: Include infrun.h.
8112 * rs6000-tdep.c: Include infrun.h.
8113 * s390-linux-tdep.c: Include infrun.h.
8114 * solib-irix.c: Include infrun.h.
8115 * solib-osf.c: Include infrun.h.
8116 * solib-svr4.c: Include infrun.h.
8117 * target.c: Include infrun.h.
8118 * top.c: Include infrun.h.
8119 * windows-nat.c: Include infrun.h.
8120 * mi/mi-interp.c: Include infrun.h.
8121 * mi/mi-main.c: Include infrun.h.
8122 * python/py-threadevent.c: Include infrun.h.
8124 2014-05-22 Pedro Alves <palves@redhat.com>
8126 * infrun.c (handle_inferior_event): Store the exit code for
8127 --return-child-result here, instead of ...
8128 (print_exited_reason): ... here.
8130 2014-05-21 Pedro Alves <palves@redhat.com>
8133 * gdbthread.h (struct thread_control_state): New field
8135 * infrun.c (follow_fork): Copy the new thread control field to the
8137 (clear_proceed_status_thread): Clear the new thread control field.
8138 (proceed): Set the new thread control field.
8139 * interps.h (command_interp): Declare.
8140 * interps.c (command_interpreter): New global.
8141 (command_interp): New function.
8142 (interp_exec): Set `command_interpreter' while here.
8143 * cli-out.c (cli_uiout_dtor): New function.
8144 (cli_ui_out_impl): Install it.
8145 * mi/mi-interp.c: Include cli-out.h.
8146 (mi_cmd_interpreter_exec): Add comment.
8147 (restore_current_uiout_cleanup): New function.
8148 (ui_out_free_cleanup): New function.
8149 (mi_on_normal_stop): If finishing an execution command started by
8150 a CLI command, or any kind of breakpoint-like event triggered,
8151 print the stop event to the output (CLI) stream.
8152 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8154 2014-05-21 Pedro Alves <palves@redhat.com>
8156 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8157 current source line having changed.
8158 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8159 * infrun.c (normal_stop): Adjust call to
8160 set_current_sal_from_frame.
8161 * source.c (clear_lines_listed_range): New function.
8162 (set_current_source_symtab_and_line, identify_source_line): Clear
8163 the lines listed range.
8164 (line_info): Handle the first "info line" after the current source
8165 line having changed.
8166 * stack.c (print_stack_frame): Remove center handling.
8167 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8170 2014-05-21 Pedro Alves <palves@redhat.com>
8172 * inf-child.c (inf_child_mourn_inferior): New function.
8173 * inf-child.h (inf_child_mourn_inferior): New declaration.
8174 * darwin-nat.c (darwin_mourn_inferior): Use
8175 inf_child_mourn_inferior.
8176 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8177 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8178 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8179 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8180 * windows-nat.c (windows_mourn_inferior): Likewise.
8182 2014-05-21 Doug Evans <xdje42@gmail.com>
8184 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8186 2014-05-21 Doug Evans <xdje42@gmail.com>
8188 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8189 (gdbscm_out_of_range_error): Ditto.
8190 (gdbscm_memory_error): Ditto.
8191 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8192 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8193 (gdbscm_out_of_range_error): Update.
8194 (gdbscm_memory_error): Update.
8195 (gdbscm_scm_to_target_string_unsafe): Delete.
8197 2014-05-21 Pedro Alves <palves@redhat.com>
8199 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8201 (inf_child_open_target): New function.
8202 (inf_child_open): Use inf_child_open_target to push the target
8203 instead of erroring out.
8204 (inf_child_disconnect, inf_child_close)
8205 (inf_child_maybe_unpush_target): New functions.
8206 (inf_child_target): Install inf_child_disconnect and
8207 inf_child_close. Store a pointer to the returned object.
8208 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8210 * target.c (auto_connect_native_target): New global.
8211 (show_default_run_target): New function.
8212 (find_default_run_target): Return NULL if automatically connecting
8213 to the native target is disabled.
8214 (_initialize_target): Install set/show auto-connect-native-target.
8215 * NEWS: Mention "set auto-connect-native-target", and "target
8217 * linux-nat.c (super_close): New global.
8218 (linux_nat_close): Call super_close.
8219 (linux_nat_add_target): Store a pointer to the base class's
8221 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8222 inf_child_maybe_unpush.
8223 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8225 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8226 the inferior. Use inf_child_maybe_unpush_target.
8227 (inf_ttrace_attach): Don't push the target if it is already
8229 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8230 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8231 after mourning the inferior. Use inf_child_maybe_unpush_target.
8232 (darwin_attach_pid): Don't push the target if it is already
8234 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8235 mourning the inferior. Use inf_child_maybe_unpush_target.
8236 (gnu_detach): Use inf_child_maybe_unpush_target.
8237 * go32-nat.c (go32_create_inferior): Don't push the target if it
8239 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8240 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8241 (procfs_open): Rename to ...
8242 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8243 comments. Can target_preopen before changing node. Call
8244 inf_child_open_target to push the target explicitly.
8245 (procfs_attach): Don't push the target if it is already pushed.
8246 (procfs_detach): Use inf_child_maybe_unpush_target.
8247 (procfs_create_inferior): Don't push the target if it is already
8249 (nto_native_ops): New global.
8250 (procfs_open): Reimplement.
8251 (procfs_native_open): New function.
8252 (init_procfs_targets): Install procfs_native_open as to_open of
8253 "target native". Store a pointer to the "native" target in
8255 * procfs.c (procfs_attach): Don't push the target if it is already
8257 (procfs_detach): Use inf_child_maybe_unpush_target.
8258 (procfs_mourn_inferior): Only unpush the target after mourning the
8259 inferior. Use inf_child_maybe_unpush_target.
8260 (procfs_init_inferior): Don't push the target if it is already
8262 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8263 if it is already pushed.
8265 2014-05-21 Pedro Alves <palves@redhat.com>
8267 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8268 and "procfs" targets are now called "native" instead.
8270 2014-05-21 Pedro Alves <palves@redhat.com>
8272 * go32-nat.c (go32_open): Delete.
8273 (go32_target): Don't override the to_open method.
8275 2014-05-21 Pedro Alves <palves@redhat.com>
8277 * nto-procfs.c (procfs_can_run): New function.
8278 (nto_procfs_ops): New global.
8279 (init_procfs_targets): New, based on procfs_target. Install
8280 "target native" in addition to "target procfs".
8281 (_initialize_procfs): Call init_procfs_targets instead of adding
8284 2014-05-21 Pedro Alves <palves@redhat.com>
8286 * windows-nat.c (windows_target): Don't override to_shortname,
8287 to_longname or to_doc.
8289 2014-05-21 Pedro Alves <palves@redhat.com>
8291 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8294 2014-05-21 Pedro Alves <palves@redhat.com>
8296 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8297 to_shortname, to_longname or to_doc.
8299 2014-05-21 Pedro Alves <palves@redhat.com>
8301 * go32-nat.c (go32_target): Don't override to_shortname,
8302 to_longname or to_doc.
8304 2014-05-21 Pedro Alves <palves@redhat.com>
8306 * inf-child.c (inf_child_open): Remove mention of "child".
8307 (inf_child_target): Rename target to "native" instead of "child".
8309 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8311 * Makefile.in (SFILES): Delete "regset.c".
8312 (COMMON_OBS): Delete "regset.o".
8314 * regset.h (regset_alloc): Delete prototype.
8316 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8318 * sparc-linux-tdep.c (sparc32_linux_gregset)
8319 (sparc32_linux_fpregset): New static regset structures.
8320 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8321 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8323 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8324 (sparc64_linux_fpregset): New static regset structures.
8325 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8326 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8327 New static regset structures.
8328 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8329 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8330 New static regset structures.
8331 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8332 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8333 New static regset structures.
8334 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8335 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8336 New static regset structures.
8337 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8339 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8341 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8342 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8343 register maps ("regmaps") from "*regset" to "*regmap". Do this
8344 for all regmap types and variables.
8345 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8346 (sparc32_linux_supply_core_gregset)
8347 (sparc32_linux_collect_core_gregset)
8348 (sparc32_linux_supply_core_fpregset)
8349 (sparc32_linux_collect_core_fpregset): Likewise.
8350 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8351 (sparc_gregmap, sparc_fpregmap): ... these.
8352 (sparc_supply_gregset, sparc_collect_gregset)
8353 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8354 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8355 (_initialize_sparc_nat): Rename regmaps.
8356 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8357 (sparc_gregmap, sparc_fpregmap): ... these.
8358 (sparc_supply_gregset, sparc_collect_gregset)
8359 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8360 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8362 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8363 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8365 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8367 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8368 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8369 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8371 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8372 (sparc32_bsd_fpregset): Rename to...
8373 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8374 (sparc32_bsd_fpregmap): ... these.
8375 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8376 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8377 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8378 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8379 (struct sparc_gregmap, struct sparc_fpregmap)
8380 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8381 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8382 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8383 (sparc32_supply_regset, sparc32_collect_gregset)
8384 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8386 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8387 (sparc64_linux_ptrace_gregmap): ... this.
8388 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8389 (_initialize_sparc64_linux_nat): Rename regmaps.
8390 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8391 (sparc64_linux_core_gregmap): ... this.
8392 (sparc64_linux_supply_core_gregset)
8393 (sparc64_linux_collect_core_gregset)
8394 (sparc64_linux_supply_core_fpregset)
8395 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8396 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8397 (sparc64_sol2_fpregset): Rename to...
8398 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8399 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8400 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8402 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8403 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8404 (sparc64_bsd_fpregset): Rename to...
8405 (struct sparc_gregmap, sparc64_sol2_gregmap)
8406 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8407 (sparc64_bsd_fpregmap): ... these.
8408 (sparc64_supply_gregset, sparc64_collect_gregset)
8409 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8411 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8412 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8413 (sparc64fbsd_gregmap): ... this.
8414 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8415 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8417 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8418 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8419 (sparc64nbsd_collect_fpregset): Likewise.
8420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8421 (sparc64nbsd_gregmap): ... this.
8422 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8424 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8425 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8426 (sparc64obsd_gregmap): ... this.
8427 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8429 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8430 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8431 (sparc32nbsd_gregmap): ... this.
8432 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8437 * score-tdep.c (score7_linux_gregset): New static regset
8439 (score7_linux_regset_from_core_section): Remove dynamic regset
8441 (score_gdbarch_init): Drop allocation of tdep structure.
8442 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8446 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8448 (am33_regset_from_core_section): Remove dynamic regset
8451 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8453 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8454 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8456 (mips_linux_regset_from_core_section): Remove dynamic regset
8458 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8459 'gregset64', 'fpregset', and 'fpregset64'.
8460 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8461 deleted tdep fields.
8463 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8465 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8467 (amd64_regset_from_core_section): Remove dynamic regset
8469 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8471 (amd64obsd_regset_from_core_section): Remove dynamic regset
8473 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8475 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8476 x86-common regset supply function.
8477 * i386-tdep.c (i386_collect_gregset): Make static.
8478 (i386_gregset): New global regset structure.
8479 (i386_fpregset, i386_xstateregset): New static regset structures.
8480 (i386_regset_from_core_section): Remove dynamic regset
8482 (i386_gdbarch_init): Remove initialization of tdep fields
8483 'gregset', 'fpregset', and 'xstateregset'.
8484 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8485 'fpregset', and 'xstateregset'.
8486 (i386_collect_gregset): Remove prototype.
8487 (i386_gregset): New declaration.
8488 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8490 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8495 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8496 (arm_linux_vfpregset): New static regset structures.
8497 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8499 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8500 and 'vfpregset' fields.
8502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8504 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8505 (aarch64_linux_fpregset): New static regset structures.
8506 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8507 of regset structures.
8508 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8513 * regset.h (struct regset): Remove gdbarch field.
8514 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8515 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8516 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8518 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8519 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8520 (ppc32_linux_vsxregset): Likewise.
8521 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8522 via the regcache instead of the regset.
8523 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8524 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8525 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8526 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8529 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8531 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8532 Constify structures.
8533 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8534 (alphanbsd_aout_gregset): Likewise.
8535 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8536 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8538 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8539 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8541 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8542 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8543 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8544 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8545 * m88k-tdep.c (m88k_gregset): Likewise.
8546 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8547 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8548 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8549 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8550 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8551 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8552 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8553 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8554 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8556 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8557 * sh-tdep.h (sh_corefile_gregset): Likewise.
8558 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8559 * vax-tdep.c (vax_gregset): Likewise.
8561 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8563 Fix TLS access for -static -pthread.
8564 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8565 (try_thread_db_load_1): Initialize it.
8566 (thread_db_get_thread_local_address): Call it if LM is zero.
8567 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8568 * target.h (struct target_ops) (to_get_thread_local_address): Add
8569 load_module_addr comment.
8571 2014-05-21 Pedro Alves <palves@redhat.com>
8573 * dcache.c (dcache_read_memory_partial): If reading the cache line
8574 fails, fallback to reading just the memory the caller wanted.
8576 2014-05-20 Doug Evans <dje@google.com>
8578 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8579 instead of get_current_arch.
8581 2014-05-20 Pedro Alves <palves@redhat.com>
8583 * NEWS: Mention that compare-sections now works with all targets.
8585 * remote.c (PACKET_qCRC): New enum value.
8586 (remote_verify_memory): Don't send qCRC if the target has no
8587 execution. Use packet_support/packet_ok. If the target doesn't
8588 support the qCRC packet, fallback to a deep memory copy.
8589 (compare_sections_command): Say "target image" instead of "remote
8591 (_initialize_remote): Add PACKET_qCRC to the list of config
8592 packets that have no associated command. Extend comment.
8593 * target.c (simple_verify_memory, default_verify_memory): New
8595 * target.h (struct target_ops) <to_verify_memory>: Default to
8596 default_verify_memory.
8597 (simple_verify_memory): New declaration.
8598 * target-delegates.c: Regenerate.
8600 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8602 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8604 2014-05-20 Hui Zhu <hui@codesourcery.com>
8605 Yao Qi <yao@codesourcery.com>
8608 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8609 and change address of sp and pc.
8611 2014-05-19 Tom Tromey <tromey@redhat.com>
8613 * gdbtypes.c (rank_function): Use XNEWVEC.
8614 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8616 2014-05-19 Doug Evans <dje@google.com>
8618 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8619 build_type_unit_groups and moved closer to only caller. Remove
8620 arguments. All references updated. Remove outdated .gdb_index
8622 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8623 build_type_psymtabs_1.
8625 2014-05-19 Doug Evans <dje@google.com>
8627 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8628 n_type_unit_groups, all_type_unit_groups. All uses removed.
8629 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8630 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8631 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8632 (add_type_unit_group_to_table): Delete.
8634 2014-05-19 Doug Evans <dje@google.com>
8636 * eval.c (evaluate_subexp_standard): Add some comments.
8638 2014-05-17 Doug Evans <xdje42@gmail.com>
8640 * progspace.c (remove_program_space): Delete, unused.
8641 * progspace.h (remove_program_space): Ditto.
8643 2014-05-17 Doug Evans <xdje42@gmail.com>
8645 * inferior.c (prune_inferiors): Fix comment.
8646 (remove_inferior_command): Call prune_program_spaces.
8648 2014-05-16 Doug Evans <dje@google.com>
8650 New command line option -D.
8652 * main.c (set_gdb_data_directory): New function.
8653 (captured_main): Recognize -D. Flag error for --data-directory "".
8654 Call set_gdb_data_directory.
8655 (print_gdb_help): Print --data-directory, -D.
8656 * main.h (set_gdb_data_directory): Declare.
8657 * top.c (staged_gdb_datadir): New static global.
8658 (set_gdb_datadir): Call set_gdb_data_directory
8659 (show_gdb_datadir): New function.
8660 (init_main): Update init of data-directory parameter.
8662 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8664 Import the "dirfd" gnulib module.
8665 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8666 * gnulib/aclocal.m4: Update.
8667 * gnulib/config.in: Update.
8668 * gnulib/configure: Update.
8669 * gnulib/import/Makefile.am: Update.
8670 * gnulib/import/Makefile.in: Update.
8671 * gnulib/import/dirfd.c: New.
8672 * gnulib/import/m4/dirfd.m4: New.
8673 * gnulib/import/m4/gnulib-cache.m4: Update.
8674 * gnulib/import/m4/gnulib-comp.m4: Update.
8676 2014-05-16 Pierre Muller <muller@sourceware.org>
8677 Yao Qi <yao@codesourcery.com>
8679 * valprint.c (print_wchar): Move the code on checking whether
8680 W is a printable wide char to the default branch of switch
8681 statement below. Call wchar_printable instead of gdb_iswprint.
8683 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8685 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8686 ldr.w and ldrd instructions.
8688 2014-05-15 Doug Evans <dje@google.com>
8690 * dwarf2read.c (read_structure_type): Delete outdated comments.
8692 2014-05-14 Tom Tromey <tromey@redhat.com>
8694 * macrocmd.c (print_macro_definition): Reindent.
8696 2014-05-13 Doug Evans <xdje42@gmail.com>
8698 * python/py-cmd.c (cmdpy_completer): Add comment.
8699 (completers): Make const.
8701 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8703 * infrun.c (resume): Remove should_resume (unused). Move up
8704 declaration of resume_ptid.
8706 2014-05-13 Tom Tromey <tromey@redhat.com>
8708 * language.h (unop_type_check): Remove.
8709 (binop_type_check): Don't declare.
8711 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8713 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8714 call to regcache_raw_collect.
8716 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8718 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8719 mi_console->quote as the quoting character.
8721 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8723 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8725 2014-04-29 Tom Tromey <tromey@redhat.com>
8727 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8728 "show debug varobj".
8730 2014-05-07 Kyle McMartin <kyle@redhat.com>
8732 Pushed by Joel Brobecker <brobecker@adacore.com>.
8733 * aarch64-tdep.c (aarch64_software_single_step): New function.
8734 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8735 with aarch64_software_single_step.
8737 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8741 2014-05-05 Keith Seitz <keiths@redhat.com>
8743 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8744 variable or history value is successfully parsed.
8746 2014-05-05 Yao Qi <yao@codesourcery.com>
8747 Pedro Alves <palves@redhat.com>
8749 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8750 address of blocks that intersects the requested range. Trim
8751 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8753 * ctf.c (ctf_xfer_partial): Likewise.
8755 2014-05-05 Yao Qi <yao@codesourcery.com>
8757 * printcmd.c (display_command): Remove the check to
8758 target_has_execution.
8760 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8762 * ppcobsd-nat.c: Include "obsd-nat.h".
8763 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8765 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8767 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8769 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8770 and 16-bit signed and unsigned arguments. Update comment.
8771 (stap_parse_probe_arguments): Extend code to handle such
8772 arguments. Use warning instead of complaint to notify about
8773 unrecognized bitness.
8775 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8777 PR breakpoints/16889
8778 * stap-probe.c (stap_parse_probe_arguments): Simplify
8779 check for non-prefixed probes (i.e., probes whose
8780 arguments do not start with "N@"). Always set the
8781 argument type to a sane value.
8783 2014-05-01 David Taylor <dtaylor@emc.com>
8785 * remote.c (compare_sections_command): Add -r option to compare
8786 all loadable read-only sections.
8788 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8790 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8791 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8793 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8794 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8795 Remove unused CORE_ADDR argument. Update all callers.
8797 2014-04-29 Pedro Alves <palves@redhat.com>
8799 * remote.c (struct packet_config) <detect>: Extend comment.
8800 (add_packet_config_cmd): Don't set the config's detect or support
8802 (init_all_packet_configs): Also initialize the config's 'detect'
8804 (reset_all_packet_configs_support): New function.
8805 (remote_open_1): Call reset_all_packet_configs_support instead of
8806 init_all_packet_configs.
8807 (_initialize_remote): Initialize all packet configs. Assert that
8808 all packets have an associated command, except a few known
8811 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8813 * dwarf2read.c (read_subrange_type): Handle dynamic
8814 DW_AT_lower_bound attributes.
8816 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8818 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8819 dynamic bounds before computing its upper bound.
8820 (ada_discrete_type_low_bound): Same as above with the lower bound.
8822 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8824 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8825 range types. Adjust the array handling implementation to
8826 take advantage of this change.
8827 (resolve_dynamic_range): New function, mostly extracted from
8828 resolve_dynamic_bounds.
8829 (resolve_dynamic_array): New function, mostly extracted from
8830 resolve_dynamic_bounds.
8831 (resolve_dynamic_bounds): Delete.
8832 (resolve_dynamic_type): Reimplement. Add handling of
8833 TYPE_CODE_RANGE types.
8835 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8837 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8838 handling of parallel ___XA types.
8840 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8842 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8843 unnecessary second call to static_unwrap_type.
8845 2014-04-27 Hui Zhu <hui@codesourcery.com>
8847 * stack.c (print_frame_info): Call do_gdb_disassembly with
8848 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8850 2014-04-26 Doug Evans <xdje42@gmail.com>
8852 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8854 2014-04-25 Pedro Alves <palves@redhat.com>
8857 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8858 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8859 and newline from built string.
8860 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8861 (linux_ptrace_attach_fail_reason): ... this.
8862 * linux-nat.c (linux_nat_attach): Adjust to use
8863 linux_ptrace_attach_fail_reason.
8865 2014-04-25 Pedro Alves <palves@redhat.com>
8867 * remote.c (struct remote_state): Remove multi_process_aware,
8868 non_stop_aware, cond_tracepoints, cond_breakpoints,
8869 breakpoint_commands, fast_tracepoints, static_tracepoints,
8870 install_in_trace, disconnected_tracing,
8871 enable_disable_tracepoints, string_tracing, and
8872 augmented_libraries_svr4_read fields.
8873 (remote_multi_process_p): Move further below in the file.
8874 (struct packet_config): Add comments.
8875 (update_packet_config): Delete function.
8876 (show_packet_config_cmd): Use packet_config_support.
8877 (add_packet_config_cmd): Use NULL as set callback.
8878 (packet_ok): "set remote foo-packet"-style commands no longer
8879 change config->supported -- adjust.
8880 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8881 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8882 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8883 (PACKET_QNonStop, PACKET_multiprocess_feature)
8884 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8885 (PACKET_DisconnectedTracing_feature)
8886 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8887 (set_remote_protocol_packet_cmd): Delete function.
8888 (packet_config_support, packet_support): New functions.
8889 (set_remote_protocol_Z_packet_cmd): Don't call
8890 update_packet_config.
8891 (remote_query_attached, remote_pass_signals)
8892 (remote_program_signals, remote_threads_info)
8893 (remote_threads_extra_info, remote_start_remote): Use
8895 (remote_start_remote): Use packet_config_support and
8897 (init_all_packet_configs): Set all packets to unknown support,
8898 instead of calling update_packet_config.
8899 (remote_check_symbols): Use packet_support.
8900 (remote_supported_packet): Unconditionally set the packet config's
8902 (remote_multi_process_feature, remote_non_stop_feature)
8903 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8904 (remote_breakpoint_commands_feature)
8905 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8906 (remote_install_in_trace_feature)
8907 (remote_disconnected_tracing_feature)
8908 (remote_enable_disable_tracepoint_feature)
8909 (remote_string_tracing_feature)
8910 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8911 (remote_protocol_features): Adjust to use remote_supported_packet
8912 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8913 "ConditionalTracepoints", "ConditionalBreakpoints",
8914 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8915 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8916 "EnableDisableTracepoints", and "tracenz".
8917 (remote_query_supported): Use packet_support.
8918 (remote_open_1): Adjust.
8919 (extended_remote_attach_1): Use packet_support. Switch on the
8920 result of packet_ok instead of checking whether the packet ended
8922 (remote_vcont_resume): Use packet_support.
8923 (remote_resume, remote_stop_ns, fetch_register_using_p)
8924 (remote_prepare_to_store, store_register_using_P)
8925 (check_binary_download, remote_write_bytes): Use packet_support.
8926 (remote_vkill): Use packet_support. Switch on the result of
8927 packet_ok instead of checking whether the packet ended up
8929 (extended_remote_supports_disable_randomization): Use
8931 (extended_remote_run): Switch on the result of packet_ok instead
8932 of checking whether the packet ended up disabled.
8933 (remote_insert_breakpoint, remote_remove_breakpoint)
8934 (remote_insert_watchpoint, remote_remove_watchpoint)
8935 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8937 (remote_search_memory): Use packet_config_support.
8938 (remote_get_thread_local_address, remote_get_tib_address)
8939 (remote_hostio_send_command, remote_can_execute_reverse): Use
8941 (remote_supports_cond_tracepoints)
8942 (remote_supports_cond_breakpoints)
8943 (remote_supports_fast_tracepoints)
8944 (remote_supports_static_tracepoints)
8945 (remote_supports_install_in_trace)
8946 (remote_supports_enable_disable_tracepoint)
8947 (remote_supports_string_tracing)
8948 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8949 the packet config says the feature is enabled or disabled.
8950 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8951 (remote_get_trace_status): Use packet_support.
8952 (remote_set_disconnected_tracing): Adjust to check whether the
8953 feature is enabled with packet_support.
8954 (remote_set_trace_buffer_size, remote_use_agent)
8955 (remote_can_use_agent, remote_supports_btrace): Use
8957 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8958 Use packet_config_support.
8959 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8960 the packet config says the feature is enabled or disabled.
8961 (set_range_stepping): Use packet_support.
8963 2014-04-25 Tom Tromey <tromey@redhat.com>
8965 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8968 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8970 * NEWS: Mention support for C99 variable length arrays.
8972 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8974 * ada-lang.c (standard_exc): Expand introductory comment.
8976 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8977 Walfred Tedeschi <walfred.tedeschi@intel.com>
8979 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8981 (amd64_linux_read_description): Add code to handle AVX512 xstate
8982 mask and return respective tdesc.
8983 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8984 and features/i386/x32-avx512-linux.c.
8985 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8986 (amd64_linux_core_read_description): Add code to handle AVX512
8987 xstate mask and return respective tdesc.
8988 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8989 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8991 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8992 (tdesc_amd64_avx512_linux): New prototype.
8993 (tdesc_x32_avx512_linux): Likewise.
8994 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8995 features/i386/x32-avx512.c.
8996 (amd64_ymm_avx512_names): New register names for pseudo
8998 (amd64_ymmh_avx512_names): New register names for raw registers
9000 (amd64_k_names): New register names for K registers.
9001 (amd64_zmmh_names): New register names for ZMM raw registers.
9002 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9003 (amd64_xmm_avx512_names): New register names for XMM16-31
9005 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9007 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9008 if feature is present.
9009 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9010 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9011 (AMD64_NUM_REGS): Adjust to new number of registers.
9012 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9013 registers supplied via XSTATE by AVX512 registers.
9014 (i386_linux_read_description): Add case for AVX512.
9015 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9016 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9017 (i386_linux_core_read_description): Add case for AVX512.
9018 (i386_linux_init_abi): Install supported register note section
9020 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9022 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9023 registers to be number of zmm7h + 1.
9024 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9025 * i386-tdep.c: Include features/i386/i386-avx512.c.
9026 (i386_zmm_names): Add ZMM pseudo register names array.
9027 (i386_zmmh_names): Add ZMM raw register names array.
9028 (i386_k_names): Add K raw register names array.
9029 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9030 registers. AVX512 has 16 more ZMM registers than there are YMM
9032 (i386_zmmh_regnum_p): Add function to look up register number of
9034 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9035 (i386_k_regnum_p): Likewise for K raw registers.
9036 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9037 registers added by AVX512.
9038 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9039 registers added by AVX512.
9040 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9042 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9043 (i386_pseudo_register_name): Add ZMM pseudo registers.
9044 (i386_zmm_type): Construct and return vector registers type for ZMM
9046 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9047 ZMM0-31 pseudo registers and K registers.
9048 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9049 and YMM16-31 registers from register cache.
9050 (i386_pseudo_register_write): Add code to write K, ZMM and
9052 (i386_register_reggroup_p): Add code to include/exclude AVX512
9053 registers in/from respective register groups.
9054 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9055 registers if feature is present in xcr0.
9056 (i386_gdbarch_init): Add code to initialize AVX512 feature
9057 variables in tdep structure, wire in pseudo registers and call
9058 initialize_tdesc_i386_avx512.
9059 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9061 (i386_regnum): Add AVX512 registers.
9062 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9063 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9064 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9065 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9067 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9068 (i386_ymm_avx512_regnum_p): Likewise.
9069 (i386_k_regnum_p): Likewise.
9070 (i386_zmm_regnum_p): Likewise.
9071 (i386_zmmh_regnum_p): Likewise.
9072 * i387-tdep.c : Update year in copyright notice.
9073 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9075 (XSAVE_YMM_AVX512_ADDR): New macro.
9076 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9078 (XSAVE_XMM_AVX512_ADDR): New macro.
9079 (xsave_avx512_k_offset): New table for K register offsets in
9081 (XSAVE_AVX512_K_ADDR): New macro.
9082 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9084 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9085 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9087 (i387_collect_xsave): Add code to collect AVX512 registers from
9089 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9090 of XMM16-31 registers.
9091 (I387_NUM_K_REGS): New define for number of K registers.
9092 (I387_K0_REGNUM): New define for K0 register number.
9093 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9094 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9095 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9097 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9098 (I387_XMM16_REGNUM): New define for XMM16 register number.
9099 (I387_YMM0_REGNUM): New define for YMM0 register number.
9100 (I387_KEND_REGNUM): New define for last K register number.
9101 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9102 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9104 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9106 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9108 * features/Makefile: Add AVX512 related files.
9109 * features/i386/32bit-avx512.xml: New file.
9110 * features/i386/64bit-avx512.xml: Likewise.
9111 * features/i386/amd64-avx512-linux.c: Likewise.
9112 * features/i386/amd64-avx512-linux.xml: Likewise.
9113 * features/i386/amd64-avx512.c: Likewise.
9114 * features/i386/amd64-avx512.xml: Likewise.
9115 * features/i386/i386-avx512-linux.c: Likewise.
9116 * features/i386/i386-avx512-linux.xml: Likewise.
9117 * features/i386/i386-avx512.c: Likewise.
9118 * features/i386/i386-avx512.xml: Likewise.
9119 * features/i386/x32-avx512-linux.c: Likewise.
9120 * features/i386/x32-avx512-linux.xml: Likewise.
9121 * features/i386/x32-avx512.c: Likewise.
9122 * features/i386/x32-avx512.xml: Likewise.
9123 * regformats/i386/amd64-avx512-linux.dat: New file.
9124 * regformats/i386/amd64-avx512.dat: Likewise.
9125 * regformats/i386/i386-avx512-linux.dat: Likewise.
9126 * regformats/i386/i386-avx512.dat: Likewise.
9127 * regformats/i386/x32-avx512-linux.dat: Likewise.
9128 * regformats/i386/x32-avx512.dat: Likewise.
9129 * NEWS: Add note about new support for AVX512.
9132 2014-04-23 Pedro Alves <palves@redhat.com>
9134 * breakpoint.c (insert_bp_location): Tolerate errors if the
9135 breakpoint is set in a user-loaded objfile.
9136 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9137 location is marked shlib_disabled. If the breakpoint is set in a
9138 user-loaded objfile is a GDB-side memory breakpoint, validate it
9139 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9140 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9142 * mem-break.c (memory_validate_breakpoint): New function.
9143 * objfiles.c (userloaded_objfile_contains_address_p): New
9145 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9146 * target.h (memory_validate_breakpoint): New declaration.
9148 2014-04-23 Pedro Alves <palves@redhat.com>
9150 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9151 the breakpoint is set in a shared library, only suppress
9152 errors for software breakpoints, not hardware breakpoints.
9154 2014-04-22 Pedro Alves <palves@redhat.com>
9156 * infrun.c (schedlock_applies): New function, factored out from
9157 find_thread_needs_step_over.
9158 (find_thread_needs_step_over): Use it.
9159 (switch_back_to_stepped_thread): Always clear trap_expected if the
9160 step over is finished. Return early if scheduler locking applies.
9161 Look for the stepping thread and a potential step-over thread with
9163 (currently_stepping_or_nexting_callback): Delete.
9165 2014-04-22 Nick Clifton <nickc@redhat.com>
9167 * NEWS: Mention that ARM sim now supports tracing.
9169 2014-04-22 Yao Qi <yao@codesourcery.com>
9171 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9173 * tracefile.c (tracefile_fetch_registers): ... it. New
9175 * tracefile.h (tracefile_fetch_registers): Declare.
9176 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9177 tracefile_fetch_registers.
9179 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9182 * windows-nat.c (thread_rec): Don't display a warning when
9183 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9184 fails for any reason, set th->suspended to -1, so that we don't
9185 try to resume such a thread. Also, don't return NULL in these
9186 cases, to avoid completely ruin the session due to "PC register is
9187 not available" error.
9188 (do_windows_fetch_inferior_registers): Check errors in
9189 GetThreadContext call.
9190 (windows_continue): Accept an additional argument KILLED; if not
9191 zero, ignore errors in the SetThreadContext call, since the
9192 inferior was killed and is shutting down.
9193 (windows_resume, get_windows_debug_event)
9194 (windows_create_inferior, windows_mourn_inferior)
9195 (windows_kill_inferior): All callers of windows_continue changed
9196 to adjust to its new calling sequence.
9198 2014-04-19 Yao Qi <yao@codesourcery.com>
9200 * ctf.c (ctf_open): Call post_create_inferior.
9202 2014-04-19 Yao Qi <yao@codesourcery.com>
9204 * ctf.c (handle_id): New static variable.
9205 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9206 value. Get the declaration of event "register" and get length
9207 of field "contents".
9209 2014-04-19 Yao Qi <yao@codesourcery.com>
9211 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9213 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9215 * valops.c (oload_method_static): Remove unnecessary argument
9216 METHOD. Update all callers.
9218 2014-04-18 Pedro alves <palves@redhat.com>
9219 Tom Tromey <tromey@redhat.com>
9222 * frame.c (get_prev_frame_1): Rename to ...
9223 (get_prev_frame_always): ... this, and make extern. Adjust.
9224 (skip_artificial_frames): Use get_prev_frame_always.
9225 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9226 (get_frame_unwind_stop_reason): Adjust to rename.
9227 * frame.h (get_prev_frame_always): Declare.
9228 * inline-frame.c: Include frame.h.
9229 (inline_frame_this_id): Use get_prev_frame_always.
9231 2014-04-18 Tristan Gingold <gingold@adacore.com>
9233 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9234 code by using bfd_mach_o_get_base_address.
9236 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9238 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9239 (spu_ax_pseudo_register_collect): New function.
9240 (spu_ax_pseudo_register_push_stack): Likewise.
9241 (spu_dwarf_reg_to_regnum): Likewise.
9242 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9244 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9246 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9247 Replace FRAME argument with FRAME_ID.
9248 * gdbarch.c, gdbarch.h: Regenerate.
9249 * findvar.c (default_value_from_register): Add GDBARCH argument;
9250 replace FRAME by FRAME_ID. No longer call get_frame_id.
9251 (value_from_register): Update call to gdbarch_value_from_register.
9252 * value.h (default_value_from_register): Update prototype.
9253 * s390-linux-tdep.c (s390_value_from_register): Update interface
9254 and call to default_value_from_register.
9255 * spu-tdep.c (spu_value_from_register): Likewise.
9257 * findvar.c (address_from_register): Remove TYPE argument.
9258 Do not call value_from_register; use gdbarch_value_from_register
9259 with null_frame_id instead.
9260 * value.h (address_from_register): Update prototype.
9261 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9262 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9263 address_from_register interface change.
9265 2014-04-17 Yao Qi <yao@codesourcery.com>
9267 * gdbtypes.h: Update comments to link to types and macros'
9270 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9272 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9274 2014-04-16 Keith Seitz <keiths@redhat.com>
9277 * dwarf2read.c (skip_one_die): Check that all relative-offset
9278 sibling DIEs fall within range of the current reader's buffer.
9279 (read_partial_die): Likewise.
9281 2014-04-16 Keith Seitz <keiths@redhat.com>
9284 * cp-namespace.c (lookup_symbol_file): If the type name of
9285 `this' is NULL, return immediately.
9287 2014-04-14 Keith Seitz <keiths@redhat.com>
9290 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9291 from symbol_matches_domain in symtab.c. All local callers
9292 of symbol_matches_domain updated.
9293 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9294 search STRUCT_DOMAIN.
9295 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9296 independently. standard_lookup will do that automatically.
9297 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9298 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9299 (cp_lookup_symbol_in_namespace): Likewise.
9300 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9301 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9302 may return a STRUCT_DOMAIN match.
9303 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9304 * cp-support.c: Include language.h.
9305 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9307 * psymtab.c (match_partial_symbol): Compare the requested
9308 domain with the symbol's domain directly.
9309 (lookup_partial_symbol): Likewise.
9310 * symtab.c (lookup_symbol_in_language): Explain when/why
9311 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9312 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9313 appropriate languages.
9314 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9315 and moved to ada-lang.c
9316 (lookup_block_symbol): Explain that this function only returns
9317 symbol matching the requested DOMAIN.
9318 Compare the requested domain with the symbol's domain directly.
9319 (iterate_over_symbols): Compare the requested domain with the
9320 symbol's domain directly.
9321 * symtab.h (symbol_matches_domain): Remove.
9323 2014-04-14 Tom Tromey <tromey@redhat.com>
9326 * c-exp.y (type_aggregate_p): New function.
9327 (qualified_name, classify_inner_name): Use it.
9328 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9329 and TYPE_TARGET_TYPE of an enum type.
9330 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9332 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9333 handle TYPE_DECLARED_CLASS.
9334 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9336 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9337 * valops.c (enum_constant_from_type): New function.
9338 (value_aggregate_elt): Use it.
9339 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9342 2014-04-14 Tom Tromey <tromey@redhat.com>
9344 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9345 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9347 * value.h (value_aggregate_elt): Update.
9349 2014-04-14 Tom Tromey <tromey@redhat.com>
9351 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9353 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9355 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9356 (evaluate_subexp_standard): Pass noside argument.
9357 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9358 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9359 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9360 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9361 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9363 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9365 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9366 points to a constant blob.
9368 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9370 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9371 property and store it as the high bound and flag the range accordingly.
9372 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9373 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9374 * gdbtypes.h (enum range_flags): New enum.
9375 (struct range_bounds): Add flags member.
9377 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9379 * c-typeprint.c (c_type_print_varspec_suffix): Added
9380 check for not yet resolved high bound. If unresolved, print
9381 "variable length" string to the console instead of random
9384 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9386 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9388 (ada_template_to_fixed_record_type_1): Likewise.
9389 (ada_to_fixed_type_1): Likewise.
9390 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9391 (cp_print_value): Likewise.
9392 * d-valprint.c (dynamic_array_type): Likewise.
9393 * findvar.c (address_of_variable): Likewise.
9394 * jv-valprint.c (java_value_print): Likewise.
9395 * valops.c (value_ind): Likewise.
9396 * value.c (coerce_ref): Likewise.
9398 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9400 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9401 value and retrieve the dynamic type size.
9403 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9405 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9406 passed to sizeof is dynamic evaluate the argument to compute the length.
9408 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9409 Joel Brobecker <brobecker@adacore.com>
9411 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9412 (dwarf2_evaluate_property): New function.
9413 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9414 * dwarf2read.c (attr_to_dynamic_prop): New function.
9415 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9417 * gdbtypes.c: Include dwarf2loc.h.
9418 (is_dynamic_type): New function.
9419 (resolve_dynamic_type): New function.
9420 (resolve_dynamic_bounds): New function.
9421 (get_type_length): New function.
9422 (check_typedef): Use get_type_length to compute type length.
9423 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9424 (TYPE_LOW_BOUND_KIND): New macro.
9425 (is_dynamic_type): New function prototype.
9426 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9427 to resolve dynamic properties of the type. Update comment.
9428 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9430 2014-04-14 Richard Henderson <rth@redhat.com>
9432 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9434 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9435 Doug Evans <xdje42@gmail.com>
9437 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9438 dereference TYPE_CODE_REF values.
9440 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9442 Revert the following changes due to regressions:
9444 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9445 (dwarf2_evaluate_property): New function.
9446 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9447 * dwarf2read.c (attr_to_dynamic_prop): New function.
9448 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9450 * gdbtypes.c: Include dwarf2loc.h.
9451 (is_dynamic_type): New function.
9452 (resolve_dynamic_type): New function.
9453 (resolve_dynamic_bounds): New function.
9454 (get_type_length): New function.
9455 (check_typedef): Use get_type_length to compute type length.
9456 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9457 (TYPE_LOW_BOUND_KIND): New macro.
9458 (is_dynamic_type): New function prototype.
9459 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9460 to resolve dynamic properties of the type. Update comment.
9461 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9464 passed to sizeof is dynamic evaluate the argument to compute the length.
9466 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9467 value and retrieve the dynamic type size.
9469 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9470 (ada_template_to_fixed_record_type_1): Likewise.
9471 (ada_to_fixed_type_1): Likewise.
9472 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9473 (cp_print_value): Likewise.
9474 * d-valprint.c (dynamic_array_type): Likewise.
9475 * eval.c (evaluate_subexp_with_coercion): Likewise.
9476 * findvar.c (address_of_variable): Likewise.
9477 * jv-valprint.c (java_value_print): Likewise.
9478 * valops.c (value_ind): Likewise.
9479 * value.c (coerce_ref): Likewise.
9481 * c-typeprint.c (c_type_print_varspec_suffix): Added
9482 check for not yet resolved high bound. If unresolved, print
9483 "variable length" string to the console instead of random
9486 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9487 property and store it as the high bound and flag the range accordingly.
9488 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9489 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9490 * gdbtypes.h (enum range_flags): New enum.
9491 (struct range_bounds): Add flags member.
9493 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9494 points to a constant blob.
9496 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9497 (evaluate_subexp_standard): Pass noside argument.
9498 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9499 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9500 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9501 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9502 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9504 2014-04-11 Keith Seitz <keiths@redhat.com>
9507 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9508 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9511 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9513 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9514 (evaluate_subexp_standard): Pass noside argument.
9515 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9516 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9517 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9518 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9519 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9521 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9523 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9524 points to a constant blob.
9526 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9537 * c-typeprint.c (c_type_print_varspec_suffix): Added
9538 check for not yet resolved high bound. If unresolved, print
9539 "variable length" string to the console instead of random
9542 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9544 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9545 (ada_template_to_fixed_record_type_1): Likewise.
9546 (ada_to_fixed_type_1): Likewise.
9547 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9548 (cp_print_value): Likewise.
9549 * d-valprint.c (dynamic_array_type): Likewise.
9550 * eval.c (evaluate_subexp_with_coercion): Likewise.
9551 * findvar.c (address_of_variable): Likewise.
9552 * jv-valprint.c (java_value_print): Likewise.
9553 * valops.c (value_ind): Likewise.
9554 * value.c (coerce_ref): Likewise.
9556 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9558 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9559 value and retrieve the dynamic type size.
9561 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9563 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9564 passed to sizeof is dynamic evaluate the argument to compute the length.
9566 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9568 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9569 (dwarf2_evaluate_property): New function.
9570 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9571 * dwarf2read.c (attr_to_dynamic_prop): New function.
9572 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9574 * gdbtypes.c: Include dwarf2loc.h.
9575 (is_dynamic_type): New function.
9576 (resolve_dynamic_type): New function.
9577 (resolve_dynamic_bounds): New function.
9578 (get_type_length): New function.
9579 (check_typedef): Use get_type_length to compute type length.
9580 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9581 (TYPE_LOW_BOUND_KIND): New macro.
9582 (is_dynamic_type): New function prototype.
9583 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9584 to resolve dynamic properties of the type. Update comment.
9585 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9589 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9590 declaring high/low bounds and change uses accordingly. Call
9591 create_range_type instead of create_static_range_type.
9592 * gdbtypes.c (create_range_type): New function.
9593 (create_range_type): Convert bounds into struct bound_prop and pass
9594 them to create_range_type.
9595 * gdbtypes.h (struct bound_prop): New struct.
9596 (create_range_type): New function prototype.
9597 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9598 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9599 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9601 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9605 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9606 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9607 * ada-lang.c: All uses of create_range_type updated.
9608 * coffread.c: All uses of create_range_type updated.
9609 * dwarf2read.c: All uses of create_range_type updated.
9610 * f-exp.y: All uses of create_range_type updated.
9611 * m2-valprint.c: All uses of create_range_type updated.
9612 * mdebugread.c: All uses of create_range_type updated.
9613 * stabsread.c: All uses of create_range_type updated.
9614 * valops.c: All uses of create_range_type updated.
9615 * valprint.c: All uses of create_range_type updated.
9617 2014-04-10 Pedro Alves <palves@redhat.com>
9619 * breakpoint.c (single_step_breakpoints)
9620 (single_step_gdbarch): Move up in the file.
9621 (one_breakpoint_xfer_memory): New function, factored out from ...
9622 (breakpoint_xfer_memory): ... here. Also process single-step
9625 2014-04-09 Tristan Gingold <gingold@adacore.com>
9627 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9629 (darwin_decode_exception_message): Free port only after use.
9631 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9633 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9634 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9635 when setting the size of call_length.
9637 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9639 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9640 dereference TYPE_CODE_REF values.
9642 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9644 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9645 end of warning message.
9647 2014-04-03 Doug Evans <dje@google.com>
9649 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9650 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9652 2014-04-02 Alan Modra <amodra@gmail.com>
9654 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9655 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9656 (struct symbol_file_add_from_memory_args): Add size field.
9657 (find_vdso_size): New function.
9658 (add_vsyscall_page): Attempt to find vdso size.
9660 2014-04-01 Doug Evans <dje@google.com>
9662 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9664 2014-04-01 Tristan Gingold <gingold@adacore.com>
9666 * darwin-nat.c (darwin_encode_reply): Add prototype.
9667 (darwin_decode_exception_message): Reply to unknown inferiors.
9668 (darwin_decode_message): Handle message by id. Ignore message
9669 to unknown inferior.
9670 (darwin_wait): Discard unknown messages, add debug trace.
9672 2014-03-31 Doug Evans <dje@google.com>
9674 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9677 2014-03-31 Doug Evans <dje@google.com>
9679 New option "set print symbol-loading".
9681 * solib.c (solib_read_symbols): Only print symbol loading messages
9683 (solib_add): If symbol loading is in "brief" mode, notify user
9684 symbols are being loaded.
9685 (reload_shared_libraries_1): Ditto.
9686 * symfile.c (print_symbol_loading_off): New static global.
9687 (print_symbol_loading_brief): New static global.
9688 (print_symbol_loading_full): New static global.
9689 (print_symbol_loading_enums): New static global.
9690 (print_symbol_loading): New static global.
9691 (print_symbol_loading_p): New function.
9692 (symbol_file_add_with_addrs): Only print symbol loading messages
9694 (_initialize_symfile): Register "print symbol-loading" set/show
9696 * symfile.h (print_symbol_loading_p): Declare.
9698 2014-03-30 Doug Evans <xdje42@gmail.com>
9700 * infrun.c (set_last_target_status): New function.
9701 (handle_inferior_event): Call it.
9703 2014-03-30 Doug Evans <xdje42@gmail.com>
9705 * inferior.h (enum stop_kind): Improve comment.
9707 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9709 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9710 a reference, strip the reference layer before calling
9711 the lang_ops value_has_mutated callback.
9713 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9715 Remove some globals from our parser.
9716 * language.c (unk_lang_parser): Add "struct parser_state"
9718 * language.h (struct language_defn) <la_parser>: Likewise.
9719 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9720 (initialize_expout): Add "struct parser_state" argument.
9721 Rewrite function to use the parser state.
9722 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9723 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9724 write_exp_elt_longcst, write_exp_elt_dblcst,
9725 write_exp_elt_decfloatcst, write_exp_elt_type,
9726 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9727 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9728 write_dollar_variable): Likewise.
9729 (parse_exp_in_context_1): Use parser state.
9730 (insert_type_address_space): Add "struct parser_state" argument.
9732 (increase_expout_size): New function.
9733 * parser-defs.h: Forward declare "struct language_defn" and
9734 "struct parser_state".
9735 (expout, expout_size, expout_ptr): Remove extern declarations.
9736 (parse_gdbarch, parse_language): Rewrite macro declarations to
9737 accept the parser state.
9738 (struct parser_state): New struct.
9739 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9740 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9741 write_exp_elt_decfloatcst, write_exp_elt_type,
9742 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9743 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9744 write_exp_msymbol, write_dollar_variable,
9745 mark_struct_expression, insert_type_address_space): Add "struct
9746 parser_state" argument.
9747 (increase_expout_size): New function.
9748 * utils.c (do_clear_parser_state): New function.
9749 (make_cleanup_clear_parser_state): Likewise.
9750 * utils.h (make_cleanup_clear_parser_state): New function
9752 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9753 Update calls to write_exp* in order to pass the parser state.
9754 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9755 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9756 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9757 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9758 * stap-probe.c (stap_parse_register_operand): Likewise.
9759 (stap_parse_single_operand): Likewise.
9760 (stap_parse_argument_1): Likewise.
9761 (stap_parse_argument): Use parser state.
9762 * stap-probe.h: Include "parser-defs.h".
9763 (struct stap_parse_info) <pstate>: New field.
9764 * c-exp.y (parse_type): Rewrite to use parser state.
9765 (yyparse): Redefine to c_parse_internal.
9766 (pstate): New global variable.
9767 (parse_number): Add "struct parser_state" argument.
9768 (write_destructor_name): Likewise.
9769 (type_exp): Update calls to write_exp* and similars in order to
9771 (exp1, exp, variable, qualified_name, space_identifier,
9772 typename, typebase): Likewise.
9773 (write_destructor_name, parse_number, lex_one_token,
9774 classify_name, classify_inner_name, c_parse): Add "struct
9775 parser_state" argument. Update function to use parser state.
9776 * c-lang.h: Forward declare "struct parser_state".
9777 (c_parse): Add "struct parser_state" argument.
9778 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9779 (yyparse): Redefine macro to ada_parse_internal.
9780 (pstate): New variable.
9781 (write_int, write_object_renaming, write_var_or_type,
9782 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9783 type_int, type_long, type_long_long, type_float, type_double,
9784 type_long_double, type_char, type_boolean, type_system_address):
9785 Add "struct parser_state" argument.
9786 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9787 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9788 var_or_type, aggregate, aggregate_component_list,
9789 positional_list, others, component_group,
9790 component_associations): Update calls to write_exp* and similar
9791 functions in order to use parser state.
9792 (ada_parse, write_var_from_sym, write_int,
9793 write_exp_op_with_string, write_object_renaming,
9794 find_primitive_type, write_selectors, write_ambiguous_var,
9795 write_var_or_type, write_name_assoc, type_int, type_long,
9796 type_long_long, type_float, type_double, type_long_double,
9797 type_char, type_boolean, type_system_address): Add "struct
9798 parser_state" argument. Adjust function to use parser state.
9799 * ada-lang.c (parse): Likewise.
9800 * ada-lang.h: Forward declare "struct parser_state".
9801 (ada_parse): Add "struct parser_state" argument.
9802 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9803 calls to both functions.
9804 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9806 (yyparse): Redefine macro to f_parse_internal.
9807 (pstate): New variable.
9808 (parse_number): Add "struct parser_state" argument.
9809 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9810 and similars in order to use parser state.
9811 (parse_number): Adjust code to use parser state.
9813 (f_parse): New function.
9814 * f-lang.h: Forward declare "struct parser_state".
9815 (f_parse): Add "struct parser_state" argument.
9816 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9818 (yyparse): Redefine macro for java_parse_internal.
9819 (pstate): New variable.
9820 (push_expression_name, push_expression_name, insert_exp): Add
9821 "struct parser_state" argument.
9822 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9823 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9824 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9825 PostIncrementExpression, PostDecrementExpression,
9826 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9827 UnaryExpressionNotPlusMinus, CastExpression,
9828 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9829 RelationalExpression, EqualityExpression, AndExpression,
9830 ExclusiveOrExpression, InclusiveOrExpression,
9831 ConditionalAndExpression, ConditionalOrExpression,
9832 ConditionalExpression, Assignment, LeftHandSide): Update
9833 calls to write_exp* and similars in order to use parser state.
9834 (parse_number): Ajust code to use parser state.
9836 (java_parse): New function.
9837 (push_variable): Add "struct parser_state" argument. Adjust
9838 code to user parser state.
9839 (push_fieldnames, push_qualified_expression_name,
9840 push_expression_name, insert_exp): Likewise.
9841 * jv-lang.h: Forward declare "struct parser_state".
9842 (java_parse): Add "struct parser_state" argument.
9843 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9845 (yyparse): Redefine macro to m2_parse_internal.
9846 (pstate): New variable.
9847 (type_exp, exp, fblock, variable, type): Update calls to
9848 write_exp* and similars to use parser state.
9850 (m2_parse): New function.
9851 * m2-lang.h: Forward declare "struct parser_state".
9852 (m2_parse): Add "struct parser_state" argument.
9853 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9854 * objc-lang.h: Forward declare "struct parser_state".
9855 (end_msglist): Add "struct parser_state" argument.
9856 * p-exp.y (parse_type): Rewrite macro to use parser state.
9857 (yyparse): Redefine macro to pascal_parse_internal.
9858 (pstate): New variable.
9859 (parse_number): Add "struct parser_state" argument.
9860 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9861 write_exp* and similars in order to use parser state.
9862 (parse_number, yylex): Adjust code to use parser state.
9863 (pascal_parse): New function.
9864 * p-lang.h: Forward declare "struct parser_state".
9865 (pascal_parse): Add "struct parser_state" argument.
9866 * go-exp.y (parse_type): Rewrite macro to use parser state.
9867 (yyparse): Redefine macro to go_parse_internal.
9868 (pstate): New variable.
9869 (parse_number): Add "struct parser_state" argument.
9870 (type_exp, exp1, exp, variable, type): Update calls to
9871 write_exp* and similars in order to use parser state.
9872 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9873 to use parser state.
9874 (go_parse): Likewise.
9875 * go-lang.h: Forward declare "struct parser_state".
9876 (go_parse): Add "struct parser_state" argument.
9878 2014-03-27 Doug Evans <dje@google.com>
9880 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9882 2014-03-27 Doug Evans <dje@google.com>
9884 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9885 Remove argument abbrev_section. All callers updated.
9887 2014-03-27 Doug Evans <dje@google.com>
9889 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9890 addr_base, ranges_base.
9892 2014-03-26 Keith Seitz <keiths@redhat.com>
9894 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9895 types, not VAR_DOMAIN.
9897 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9899 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9901 * features/nios2-linux.c: Regenerated.
9902 * features/nios2.c: Regenerated.
9904 2014-03-25 Pedro Alves <palves@redhat.com>
9906 * cli/cli-script.c (script_from_file): Force the interpreter to
9909 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9911 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9912 small stack allocation.
9914 2014-03-24 Tristan Gingold <gingold@adacore.com>
9916 * darwin-nat.c (exc_server): Remove unused prototype.
9917 (darwin_dump_message): Correctly display data on x86_64.
9918 (darwin_encode_reply): Fix style.
9919 Add comments and fix indentation.
9921 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9923 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9925 2014-03-22 Doug Evans <xdje42@gmail.com>
9927 * infcmd.c: Whitespace fixes.
9928 (interrupt_command): Merge two function comments into one.
9930 2014-03-22 Doug Evans <xdje42@gmail.com>
9932 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9935 2014-03-22 Yao Qi <yao@codesourcery.com>
9937 * remote.c (target_read_live_memory): Remove.
9938 (memory_xfer_live_readonly_partial): Rename it to
9939 remote_xfer_live_readonly_partial. Remove argument 'object'.
9940 All callers updated. Call remote_read_bytes_1
9941 instead of target_read_live_memory.
9942 * tracepoint.c (set_traceframe_number): Remove.
9943 (make_cleanup_restore_traceframe_number): Likewise .
9944 * tracepoint.h (set_traceframe_number): Remove declaration.
9945 (make_cleanup_restore_traceframe_number): Likewise.
9947 2014-03-22 Yao Qi <yao@codesourcery.com>
9949 * remote.c (remote_read_bytes): Move code on reading from the
9951 (remote_read_bytes_1): ... here. New function.
9953 2014-03-22 Yao Qi <yao@codesourcery.com>
9955 * ctf.c (ctf_xfer_partial): Check the return value of
9956 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9957 return TARGET_XFER_UNAVAILABLE.
9958 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9959 * target.c (target_read_live_memory): Move it to remote.c.
9960 (memory_xfer_live_readonly_partial): Likewise.
9961 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9962 * remote.c (target_read_live_memory): Moved from target.c.
9963 (memory_xfer_live_readonly_partial): Likewise.
9964 (remote_read_bytes): Factored out from
9965 memory_xfer_partial_1.
9967 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9969 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9972 2014-03-21 Pedro Alves <palves@redhat.com>
9974 * infrun.c (normal_stop): Extend comment.
9976 2014-03-21 Hui Zhu <hui@codesourcery.com>
9977 Pedro Alves <palves@redhat.com>
9979 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9981 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9982 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9983 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9985 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9987 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9988 `z' formatted output modifier.
9990 2014-03-20 Tom Tromey <tromey@redhat.com>
9991 Sergio Durigan Junior <sergiodj@redhat.com>
9993 * probe.c (parse_probes): Turn assert into an ordinary error.
9994 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9995 exceptions when parsing probes. Rearrange the code for clarity.
9997 2014-03-20 Tom Tromey <tromey@redhat.com>
10000 * top.c (execute_command): Only dispatch events if the command
10001 started the target.
10003 2014-03-20 Tom Tromey <tromey@redhat.com>
10006 * infcall.c: Include event-top.h.
10007 (run_inferior_call): Call async_disable_stdin if needed.
10009 2014-03-20 Pedro Alves <palves@redhat.com>
10011 * infrun.c (prepare_to_proceed): Delete.
10012 (thread_still_needs_step_over): New function.
10013 (find_thread_needs_step_over): New function.
10014 (proceed): If the current thread needs a step-over, set its
10015 steping_over_breakpoint flag. Adjust to use
10016 find_thread_needs_step_over instead of prepare_to_proceed.
10017 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10018 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10020 (switch_back_to_stepped_thread): Step over breakpoints of all
10021 threads not the stepping thread, before switching back to the
10024 2014-03-20 Pedro Alves <palves@redhat.com>
10026 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10028 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10029 * infrun.c (saved_singlestep_ptid)
10030 (stepping_past_singlestep_breakpoint): Delete.
10031 (resume): Remove stepping_past_singlestep_breakpoint handling.
10032 (proceed): Store the prev_pc of the stepping thread too.
10033 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10035 (enum infwait_states): Delete infwait_thread_hop_state.
10036 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10038 (handle_inferior_event): Adjust.
10039 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10040 handling and the thread-hop code. Before removing single-step
10041 breakpoints, check whether the thread hit a single-step breakpoint
10042 of another thread. If it did, the trap is not a random signal.
10043 (switch_back_to_stepped_thread): If the event thread hit a
10044 single-step breakpoint, unblock it before switching to the
10045 stepping thread. Handle the case of the stepped thread having
10047 (keep_going): Handle the case of the current thread moving past a
10048 single-step breakpoint.
10050 2014-03-20 Pedro Alves <palves@redhat.com>
10052 PR breakpoints/7143
10053 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10054 are being stepped over.
10055 (breakpoint_address_match): Make extern.
10056 * breakpoint.h (breakpoint_address_match): New declaration.
10057 * inferior.h (stepping_past_instruction_at): New declaration.
10058 * infrun.c (struct step_over_info): New type.
10059 (step_over_info): New global.
10060 (set_step_over_info, clear_step_over_info)
10061 (stepping_past_instruction_at): New functions.
10062 (handle_inferior_event): Clear the step-over info when
10063 trap_expected is cleared.
10064 (resume): Remove now stale comment.
10065 (clear_proceed_status): Clear step-over info.
10066 (proceed): Adjust step-over handling to set or clear the step-over
10067 info instead of removing all breakpoints.
10068 (handle_signal_stop): When setting up a thread-hop, don't remove
10070 (stop_stepping): Clear step-over info.
10071 (keep_going): Adjust step-over handling to set or clear step-over
10072 info and then always inserting breakpoints, instead of removing
10073 all breakpoints when stepping over one.
10075 2014-03-20 Pedro Alves <palves@redhat.com>
10077 * infrun.c (previous_inferior_ptid): Adjust comment.
10078 (deferred_step_ptid): Delete.
10079 (infrun_thread_ptid_changed, prepare_to_proceed)
10080 (init_wait_for_inferior): Adjust.
10081 (handle_signal_stop): Delete deferred_step_ptid handling.
10083 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10086 * defs.h (sync_quit_force_run): New declaration.
10087 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10088 * event-top.c (async_sigterm_handler): New declaration.
10089 (async_sigterm_token): New variable.
10090 (async_init_signals): Create also async_sigterm_token.
10091 (async_sigterm_handler): New function.
10092 (sync_quit_force_run): New variable.
10093 (handle_sigterm): Replace quit_force call by other calls.
10094 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10096 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10098 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10099 offset into SPE pseudo registers.
10101 2014-03-18 Pedro Alves <palves@redhat.com>
10104 * inferior.h (print_stop_event): Declare.
10105 * infrun.c (print_stop_event): New, factored out from ...
10106 (normal_stop): ... this.
10107 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10108 of bpstat_print/print_stack_frame.
10110 2014-03-17 Tom Tromey <tromey@redhat.com>
10112 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10114 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10116 * ada-lang.c (decode_constrained_packed_array): Perform a
10117 minimal coercion for reference with coerce_ref instead of
10120 2014-03-17 Tristan Gingold <gingold@adacore.com>
10122 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10123 (darwin_solib_create_inferior_hook): Emit a warning if version
10126 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10128 * python/py-value.c (get_field_flag): Cast flag_name argument to
10129 PyObject_GetAttrString to support Python 2.4.
10131 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10133 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10134 (Global Maintainers): Remove Jan Kratochvil.
10136 2014-03-14 Pedro Alves <palves@redhat.com>
10138 * inferior.h (terminal_ours_for_output): Rename to ...
10139 (child_terminal_ours_for_output): ... this.
10140 (terminal_save_ours): Rename to ...
10141 (child_terminal_save_ours): ... this.
10142 (terminal_ours): Rename to ...
10143 (child_terminal_ours): ... this.
10144 (terminal_inferior): Rename to ...
10145 (child_terminal_inferior): ... this.
10146 (terminal_init_inferior): Rename to ...
10147 (child_terminal_init_inferior): ... this.
10148 (terminal_init_inferior_with_pgrp): Rename to ...
10149 (child_terminal_init_inferior_with_pgrp): ... this.
10150 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10151 (child_terminal_init_with_pgrp): ... this.
10152 (terminal_save_ours): Rename to ...
10153 (child_terminal_save_ours): ... this.
10154 (terminal_init_inferior): Rename to ...
10155 (child_terminal_init): ... this. Adjust.
10156 (terminal_inferior): Rename to ...
10157 (child_terminal_inferior): ... this.
10158 (terminal_ours_for_output): Rename to ...
10159 (child_terminal_ours_for_output): ... this. Adjust.
10160 (terminal_ours): Rename to ...
10161 (child_terminal_ours): ... this.
10162 (terminal_ours_1): Rename to ...
10163 (child_terminal_ours_1): ... this. Adjust.
10164 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10165 * windows-nat.c (do_initial_windows_stuff): Adjust.
10166 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10167 (gnu_terminal_init): ... this. Adjust.
10168 (gnu_target): Adjust.
10169 * inf-child.c (inf_child_target): Adjust.
10171 2014-03-13 Doug Evans <xdje42@gmail.com>
10174 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10177 2014-03-13 Doug Evans <xdje42@gmail.com>
10179 * value.c (record_latest_value): Call release_value_or_incref
10180 instead of release_value.
10182 2014-03-13 Pedro Alves <palves@redhat.com>
10184 * procfs.c (procfs_target): Don't override to_shortname,
10185 to_longname or to_doc.
10187 2014-03-13 Pedro Alves <palves@redhat.com>
10189 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10190 Unix in user visible strings.
10192 2014-03-12 Stan Shebs <stan@codesourcery.com>
10194 * gdbtypes.h: Annotate comments for Doxygen, add a page
10195 block comment with some general info.
10197 2014-03-12 Pedro Alves <palves@redhat.com>
10199 * infcmd.c (prepare_execution_command): New function, factored out
10200 from several execution commands.
10201 (run_command_1, continue_command, step_1, jump_command)
10202 (signal_command, until_command, advance_command, finish_command)
10203 (attach_command): Use prepare_execution_command.
10205 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10207 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10208 (MAX_BPTS): Define.
10209 (MAX_WPTS): Define.
10210 (struct arm_linux_thread_points): Removed.
10211 (struct arm_linux_process_info): New.
10212 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10213 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10214 (arm_linux_find_breakpoints_by_tid): Removed.
10215 (struct arch_lwp_info): New.
10216 (arm_linux_find_process_pid): New functions.
10217 (arm_linux_add_process): New functions.
10218 (arm_linux_process_info_get): New functions.
10219 (arm_linux_forget_process): New function.
10220 (arm_linux_get_debug_reg_state): New function.
10221 (struct update_registers_data): New.
10222 (update_registers_callback): New function.
10223 (arm_linux_insert_hw_breakpoint1): Updated.
10224 (arm_linux_remove_hw_breakpoint1): Updated.
10225 (arm_linux_insert_hw_breakpoint): Updated.
10226 (arm_linux_remove_hw_breakpoint): Updated.
10227 (arm_linux_insert_watchpoint): Updated.
10228 (arm_linux_remove_watchpoint): Updated.
10229 (arm_linux_new_thread): Updated.
10230 (arm_linux_prepare_to_resume): New function.
10231 (arm_linux_new_fork): New function.
10232 (_initialize_arm_linux_nat): Updated.
10234 2014-03-12 Pedro Alves <palves@redhat.com>
10236 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10238 2014-03-12 Tom Tromey <tromey@redhat.com>
10240 * inf-child.c (return_zero): New function.
10241 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10242 * aix-thread.c (aix_thread_inferior_created): New function.
10243 (aix_thread_attach): Remove.
10244 (init_aix_thread_ops): Don't set to_attach.
10245 (_initialize_aix_thread): Register inferior_created observer.
10246 * corelow.c (init_core_ops): Don't set to_attach or
10247 to_create_inferior.
10248 * exec.c (init_exec_ops): Don't set to_attach or
10249 to_create_inferior.
10250 * infcmd.c (run_command_1): Use find_run_target. Make direct
10252 (attach_command): Use find_attach_target. Make direct target
10254 * record-btrace.c (init_record_btrace_ops): Don't set
10255 to_create_inferior.
10256 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10258 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10259 set to_create_inferior.
10260 * target.c (complete_target_initialization): Add assertion.
10261 (target_create_inferior): Remove.
10262 (find_default_attach, find_default_create_inferior): Remove.
10263 (find_attach_target, find_run_target): New functions.
10264 (find_default_is_async_p, find_default_can_async_p)
10265 (target_supports_non_stop, target_attach): Remove.
10266 (init_dummy_target): Don't set to_create_inferior or
10267 to_supports_non_stop.
10268 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10269 TARGET_DEFAULT_FUNC.
10270 <to_create_inferior>: Add comment.
10271 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10272 TARGET_DEFAULT_RETURN.
10273 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10274 (find_attach_target, find_run_target): Declare.
10275 (target_create_inferior): Remove.
10276 (target_has_execution_1): Update comment.
10277 (target_supports_non_stop): Remove.
10278 * target-delegates.c: Rebuild.
10280 2014-03-12 Pedro Alves <palves@redhat.com>
10282 * inf-child.h: Update comment to not mention Unix.
10284 2014-03-12 Pedro Alves <palves@redhat.com>
10286 * inf-child.c: Update top comment to not mention Unix. Add
10287 generic comment describing how this target is meant to be used.
10288 (inf_child_post_attach, inf_child_post_startup_inferior)
10289 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10292 2014-03-12 Pedro Alves <palves@redhat.com>
10294 * nto-procfs.c: Include inf-child.h.
10295 (procfs_ops): Delete global.
10296 (procfs_can_run): Delete method.
10297 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10298 target pointer instead of referencing procfs_ops.
10299 (procfs_prepare_to_store): Delete.
10300 (init_procfs_ops): Delete function.
10301 (procfs_target): New function, based on init_procfs_ops, but
10302 inherit inf_child_target.
10303 (_initialize_procfs): Use procfs_target.
10305 2014-03-12 Pedro Alves <palves@redhat.com>
10307 * windows-nat.c: Include inf-child.h.
10308 (windows_ops): Delete global.
10309 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10311 (init_windows_ops): Delete function.
10312 (windows_target): New function, based on init_windows_ops, but
10313 inherit inf_child_target.
10314 (_initialize_windows_nat): Use windows_target. Install x86
10315 specific target methods here.
10317 2014-03-10 Doug Evans <xdje42@gmail.com>
10319 * guile/guile.c (call_initialize_gdb_module): New function.
10320 (initialize_guile): Replace call to scm_init_guile with call to
10323 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10325 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10326 in call to TYPE_CODE macro.
10328 2014-03-10 Jerome Guitton <guitton@adacore.com>
10330 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10331 Resolve tagged types to full view.
10333 2014-03-10 Hui Zhu <hui@codesourcery.com>
10335 * target.h (target_insert_breakpoint): Remove "hardware" from its
10338 2014-03-07 Doug Evans <dje@google.com>
10340 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10342 2014-03-07 Doug Evans <dje@google.com>
10344 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10345 Remove unused local comp_dir_attr. Assert exactly one of
10346 stub_comp_unit_die, stub_comp_dir is non-NULL.
10348 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10350 * target.h (complete_target_initialization, add_target):
10353 2014-03-07 Pedro Alves <palves@redhat.com>
10355 * go32-nat.c: Include inf-child.h.
10356 (go32_ops): Delete global.
10357 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10359 (go32_create_inferior): Push the passed in target pointer instead
10360 of referencing go32_ops.
10361 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10362 (go32_target): New function, based on init_go32_ops, but inherit
10364 (_initialize_go32_nat): Use go32_target. Move parts of
10365 init_go32_ops here.
10367 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10369 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10370 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10371 SYMBOL_VALUE_ADDRESS.
10372 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10374 2014-03-06 Yao Qi <yao@codesourcery.com>
10376 * breakpoint.c (get_tracepoint_by_number): Remove argument
10377 optional_p. All callers updated. Adjust comments. Update
10379 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10381 2014-03-06 Yao Qi <yao@codesourcery.com>
10383 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10384 early if get_number returns zero. Use 'p' instead of 'args'.
10386 2014-03-06 Yao Qi <yao@codesourcery.com>
10388 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10391 2014-03-06 Yao Qi <yao@codesourcery.com>
10393 PR breakpoints/16508
10394 * tracepoint.c (check_trace_running): New function.
10395 (trace_find_command): Move code to check_trace_running and
10396 call check_trace_running.
10397 (trace_find_pc_command): Likewise.
10398 (trace_find_tracepoint_command): Likewise.
10399 (trace_find_line_command): Likewise.
10400 (trace_find_range_command): Likewise.
10401 * tracepoint.h (check_trace_running): Likewise.
10402 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10404 2014-03-06 Yao Qi <yao@codesourcery.com>
10406 * target.h (struct target_ops) <to_traceframe_info>: Use
10407 TARGET_DEFAULT_NORETURN (tcomplain ()).
10408 * target-delegates.c: Regenerated.
10410 2014-03-05 Pedro Alves <palves@redhat.com>
10413 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10414 void. Update comment.
10415 (dcache_xfer_memory): Delete.
10416 (dcache_read_memory_partial): New, based on the read bits of
10417 dcache_xfer_memory.
10418 (dcache_update): Add status parameter. Use ULONGEST for len, and
10419 adjust. Discard cache lines if the reason for the update was
10421 * dcache.h (dcache_xfer_memory): Delete declaration.
10422 (dcache_read_memory_partial): New declaration.
10423 (dcache_update): Update prototype.
10424 * target.c (raw_memory_xfer_partial): Update the dcache here.
10425 (memory_xfer_partial_1): Don't handle dcache writes here.
10427 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10429 * remote-sim.c (gdbsim_load): Add const to prog.
10431 2014-03-03 Tom Tromey <tromey@redhat.com>
10433 * elfread.c (probe_key): Change to bfd_data.
10434 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10435 now per-BFD, not per-objfile.
10436 * stap-probe.c (stap_probe_destroy): Update comment.
10437 (handle_stap_probe): Allocate on the per-BFD obstack.
10439 2014-03-03 Tom Tromey <tromey@redhat.com>
10441 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10442 * breakpoint.c (create_longjmp_master_breakpoint): Use
10444 (add_location_to_breakpoint, bkpt_probe_insert_location)
10445 (bkpt_probe_remove_location): Update.
10446 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10447 * elfread.c (elf_symfile_relocate_probe): Remove.
10448 (elf_probe_fns): Update.
10449 (insert_exception_resume_breakpoint): Change type of "probe"
10450 parameter to bound_probe.
10451 (check_exception_resume): Update.
10452 * objfiles.c (objfile_relocate1): Don't relocate probes.
10453 * probe.c (bound_probe_s): New typedef.
10454 (parse_probes): Use get_probe_address. Set sal's objfile.
10455 (find_probe_by_pc): Return a bound_probe.
10456 (collect_probes): Return a VEC(bound_probe_s).
10457 (compare_probes): Update.
10458 (gen_ui_out_table_header_info): Change type of "probes"
10460 (info_probes_for_ops): Update.
10461 (get_probe_address): New function.
10462 (probe_safe_evaluate_at_pc): Update.
10463 * probe.h (struct probe_ops) <get_probe_address>: New field.
10464 <set_semaphore, clear_semaphore>: Add objfile parameter.
10465 (struct probe) <objfile>: Remove field.
10467 <address>: Update comment.
10468 (struct bound_probe): New.
10469 (find_probe_by_pc): Return a bound_probe.
10470 (get_probe_address): Declare.
10471 * solib-svr4.c (struct probe_and_action) <address>: New field.
10472 (hash_probe_and_action, equal_probe_and_action): Update.
10473 (register_solib_event_probe): Add address parameter.
10474 (solib_event_probe_at): Update.
10475 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10477 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10478 (stap_get_probe_address): New function.
10479 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10480 (compile_probe_arg): Update.
10481 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10483 (handle_stap_probe): Don't relocate the probe.
10484 (stap_relocate): Remove.
10485 (stap_gen_info_probes_table_values): Update.
10486 (stap_probe_ops): Remove stap_relocate.
10487 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10488 (debug_sym_probe_fns): Update.
10489 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10490 * symtab.c (init_sal): Use memset.
10491 * symtab.h (struct symtab_and_line) <objfile>: New field.
10492 * tracepoint.c (start_tracing, stop_tracing): Update.
10494 2014-03-03 Tom Tromey <tromey@redhat.com>
10496 * probe.h (parse_probes, find_probe_by_pc)
10497 (find_probes_in_objfile): Fix comments.
10499 2014-03-02 Doug Evans <xdje42@gmail.com>
10501 * infrun.c (handle_signal_stop): Replace test for
10502 TARGET_WAITKIND_STOPPED with an assert.
10504 2014-03-02 Doug Evans <xdje42@gmail.com>
10506 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10508 2014-03-02 Doug Evans <xdje42@gmail.com>
10510 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10514 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10516 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10518 * i386obsd-nat.c: Include "obsd-nat.h".
10519 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10521 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10523 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10525 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10527 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10529 * mips64obsd-nat.c: Include "obsd-nath".
10530 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10532 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10534 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10536 * amd64obsd-nat.c: Include "obsd-nat,h.
10537 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10539 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10541 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10543 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10544 (find_overload_match): Update call to find_oload_champ.
10545 (find_oload_champ_namespace_loop): Likewise
10547 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10549 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10551 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10552 * config/sparc/obsd64.mh: New file.
10553 * sparc64obsd-nat.c: New file.
10555 * obsd-nat.h: New file.
10556 * obsd-nat.c: New file.
10557 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10558 (ALLDEPFILES): Add obsd-nat.c.
10560 2014-02-28 Tom Tromey <tromey@redhat.com>
10562 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10563 * cli-out.h (cli_ui_out_impl): Now const.
10564 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10565 * ui-out.c (struct ui_out) <impl>: Now const.
10566 (default_ui_out_impl): Now const.
10567 (ui_out_new): Make 'impl' parameter const.
10568 * ui-out.h (ui_out_new): Update.
10570 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10572 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10574 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10576 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10578 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10580 Additional PR 8882 fix.
10581 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10583 2014-02-27 Pedro Alves <palves@redhat.com>
10585 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10588 2014-02-27 Pedro Alves <palves@redhat.com>
10591 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10592 * nat/linux-waitpid.c: Include string.h.
10593 (status_to_str): Moved here and made extern.
10594 * nat/linux-waitpid.h (status_to_str): New declaration.
10596 2014-02-27 Hui Zhu <hui@codesourcery.com>
10599 * infrun.c (ptid_match): Move ...
10600 * common/ptid.c (ptid_match): ... here.
10601 * inferior.h (ptid_match): Move ...
10602 * common/ptid.h (ptid_match): ... here.
10604 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10606 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10607 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10610 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10612 * obsd-tdep.c (obsd_auxv_parse): New function.
10613 (obsd_init_abi): Set auxv_parse.
10615 * gdbarch.sh (auxv_parse): New.
10616 * gdbarch.h: Regenerated.
10617 * gdbarch.c: Regenerated.
10618 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10620 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10622 * guile/scm-value.c (gdbscm_history_append_x): New function.
10623 (value_functions): Add it.
10625 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10627 * dwarf2read.c (attr_value_as_address): New function.
10628 (dwarf2_find_base_address, read_call_site_scope): Use
10629 attr_value_as_address in place of DW_ADDR.
10630 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10631 the low and high addresses. Slight rework of the handling
10632 of the high pc being a constant form, and limit it to
10633 DWARF verson 4 or higher.
10634 (dwarf2_record_block_ranges): Likewise.
10635 (read_partial_die): Likewise.
10636 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10638 2014-02-26 Tom Tromey <tromey@redhat.com>
10640 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10642 2014-02-26 Tom Tromey <tromey@redhat.com>
10644 * elfread.c (elf_read_minimal_symbols): Return early if
10645 minimal symbols have already been read. Add "ei" parameter.
10646 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10647 * minsyms.c (prim_record_minimal_symbol_full): Update.
10648 * objfiles.h (struct objstats) <n_minsyms>: Move...
10649 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10650 * symmisc.c (print_objfile_statistics): Update.
10652 2014-02-26 Tom Tromey <tromey@redhat.com>
10654 * elfread.c (elf_read_minimal_symbols): New function, from
10656 (elf_symfile_read): Call it.
10658 2014-02-26 Tom Tromey <tromey@redhat.com>
10660 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10661 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10662 (lookup_minimal_symbol_solib_trampoline)
10663 (lookup_minimal_symbol_by_pc_section_1)
10664 (lookup_minimal_symbol_and_objfile): Update.
10665 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10666 Don't allocate a minimal symbol if minsyms have already been read.
10667 (build_minimal_symbol_hash_tables): Update.
10668 (install_minimal_symbols): Do nothing if minsyms already read.
10669 Use the per-BFD obstack.
10670 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10671 * objfiles.c (allocate_objfile): Call
10672 terminate_minimal_symbol_table later.
10673 (have_minimal_symbols): Update.
10674 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10675 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10676 Move from struct objfile.
10677 <minsyms_read>: New field.
10678 (struct objfile) <msymbols, minimal_symbol_count,
10679 msymbol_hash, msymbol_demangled_hash>: Move.
10680 (ALL_OBJFILE_MSYMBOLS): Update.
10681 * symfile.c (read_symbols): Set minsyms_read.
10682 (reread_symbols): Update.
10683 * symmisc.c (dump_objfile, dump_msymbols): Update.
10685 2014-02-26 Tom Tromey <tromey@redhat.com>
10687 * minsyms.c (msymbols_sort): Remove.
10688 * minsyms.h (msymbols_sort): Remove.
10689 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10690 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10691 * elfread.c (elf_symtab_read): Don't add section offsets.
10692 * xcoffread.c (record_minimal_symbol): Don't add section offset
10693 to minimal symbol address.
10694 * somread.c (text_offset, data_offset): Remove.
10695 (som_symtab_read): Don't add section offsets to minimal symbol
10697 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10698 Don't add section offsets to minimal symbols.
10699 * coffread.c (coff_symtab_read): Don't add section offsets
10700 to minimal symbol addresses.
10701 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10702 to minimal symbol addresses.
10703 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10704 section offset to minimal symbol addresses.
10705 * mdebugread.c (parse_partial_symbols): Don't add section
10706 offset to minimal symbol addresses.
10707 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10708 offset to minimal symbol addresses.
10710 2014-02-26 Tom Tromey <tromey@redhat.com>
10712 * ada-lang.c (ada_main_name): Update.
10713 (ada_add_standard_exceptions): Update.
10714 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10716 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10717 * auxv.c (ld_so_xfer_auxv): Update.
10718 * avr-tdep.c (avr_scan_prologue): Update.
10719 * ax-gdb.c (gen_var_ref): Update.
10720 * blockframe.c (get_pc_function_start)
10721 (find_pc_partial_function_gnu_ifunc): Update.
10722 * breakpoint.c (create_overlay_event_breakpoint)
10723 (create_longjmp_master_breakpoint)
10724 (create_std_terminate_master_breakpoint)
10725 (create_exception_master_breakpoint): Update.
10726 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10727 * c-valprint.c (c_val_print): Update.
10728 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10729 * common/agent.c (agent_look_up_symbols): Update.
10730 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10731 * dwarf2loc.c (call_site_to_target_addr): Update.
10732 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10733 * elfread.c (elf_gnu_ifunc_record_cache)
10734 (elf_gnu_ifunc_resolve_by_got): Update.
10735 * findvar.c (default_read_var_value): Update.
10736 * frame.c (inside_main_func): Update.
10737 * frv-tdep.c (frv_frame_this_id): Update.
10738 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10739 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10741 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10742 (hppa_hpux_find_dummy_bpaddr): Update.
10743 * hppa-tdep.c (hppa_symbol_address): Update.
10744 * infcmd.c (until_next_command): Update.
10745 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10747 * linespec.c (minsym_found, add_minsym): Update.
10748 * linux-nat.c (get_signo): Update.
10749 * linux-thread-db.c (inferior_has_bug): Update.
10750 * m32c-tdep.c (m32c_return_value)
10751 (m32c_m16c_address_to_pointer): Update.
10752 * m32r-tdep.c (m32r_frame_this_id): Update.
10753 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10754 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10755 * maint.c (maintenance_translate_address): Update.
10756 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10757 (frob_address): New function.
10758 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10759 frob_address. Rename parameter to "pc_in".
10760 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10762 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10764 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10765 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10766 * objc-lang.c (find_objc_msgsend): Update.
10767 * objfiles.c (objfile_relocate1): Update.
10768 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10769 * p-valprint.c (pascal_val_print): Update.
10770 * parse.c (write_exp_msymbol): Update.
10771 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10772 (ppc_elfv2_skip_entrypoint): Update.
10773 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10774 * printcmd.c (build_address_symbolic, msym_info)
10775 (address_info): Update.
10776 * proc-service.c (ps_pglobal_lookup): Update.
10777 * psymtab.c (find_pc_sect_psymtab_closer)
10778 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10779 Change msymbol parameter to bound_minimal_symbol.
10780 * ravenscar-thread.c (get_running_thread_id): Update.
10781 * remote.c (remote_check_symbols): Update.
10782 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10784 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10785 * solib-dsbt.c (lm_base): Update.
10786 * solib-frv.c (lm_base, main_got): Update.
10787 * solib-irix.c (locate_base): Update.
10788 * solib-som.c (som_solib_create_inferior_hook)
10789 (link_map_start): Update.
10790 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10791 * solib-svr4.c (elf_locate_base, enable_break): Update.
10792 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10793 (flush_ea_cache): Update.
10794 * stabsread.c (define_symbol, scan_file_globals): Update.
10795 * stack.c (find_frame_funname): Update.
10796 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10797 (debug_qf_find_pc_sect_symtab): Update.
10798 * symfile.c (simple_read_overlay_table)
10799 (simple_overlay_update): Update.
10800 * symfile.h (struct quick_symbol_functions)
10801 <find_pc_sect_symtab>: Change type of msymbol to
10802 bound_minimal_symbol.
10803 * symmisc.c (dump_msymbols): Update.
10804 * symtab.c (find_pc_sect_symtab_via_partial)
10805 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10806 (search_symbols, print_msymbol_info): Update.
10807 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10808 (MSYMBOL_VALUE_ADDRESS): Redefine.
10809 (BMSYMBOL_VALUE_ADDRESS): New macro.
10810 * tracepoint.c (scope_info): Update.
10811 * tui/tui-disasm.c (tui_find_disassembly_address)
10812 (tui_get_begin_asm_address): Update.
10813 * valops.c (find_function_in_inferior): Update.
10814 * value.c (value_static_field, value_fn_field): Update.
10816 2014-02-26 Tom Tromey <tromey@redhat.com>
10818 * ada-lang.c (ada_update_initial_language): Update.
10819 (ada_main_name, ada_has_this_exception_support): Update.
10820 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10821 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10822 * arm-tdep.c (arm_skip_stub): Update.
10823 * auxv.c (ld_so_xfer_auxv): Update.
10824 * avr-tdep.c (avr_scan_prologue): Update.
10825 * ax-gdb.c (gen_var_ref): Update.
10826 * breakpoint.c (struct breakpoint_objfile_data)
10827 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10828 type to bound_minimal_symbol.
10829 (create_overlay_event_breakpoint)
10830 (create_longjmp_master_breakpoint)
10831 (create_std_terminate_master_breakpoint)
10832 (create_exception_master_breakpoint): Update.
10833 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10834 * c-exp.y (classify_name): Update.
10835 * coffread.c (coff_symfile_read): Update.
10836 * common/agent.c (agent_look_up_symbols): Update.
10837 * d-lang.c (d_main_name): Update.
10838 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10839 * dec-thread.c (enable_dec_thread): Update.
10840 * dwarf2loc.c (call_site_to_target_addr): Update.
10841 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10842 * eval.c (evaluate_subexp_standard): Update.
10843 * findvar.c (struct minsym_lookup_data) <result>: Change type
10844 to bound_minimal_symbol.
10846 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10847 * frame.c (inside_main_func): Update.
10848 * frv-tdep.c (frv_frame_this_id): Update.
10849 * gcore.c (call_target_sbrk): Update.
10850 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10851 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10853 * go-lang.c (go_main_name): Update.
10854 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10855 (hppa_hpux_find_import_stub_for_addr): Update.
10856 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10857 Update. Change return type.
10858 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10860 * jit.c (jit_breakpoint_re_set_internal): Update.
10861 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10863 * linux-nat.c (get_signo): Update.
10864 * linux-thread-db.c (inferior_has_bug): Update
10865 * m32c-tdep.c (m32c_return_value)
10866 (m32c_m16c_address_to_pointer): Update.
10867 * m32r-tdep.c (m32r_frame_this_id): Update.
10868 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10869 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10870 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10871 lookup_minimal_symbol. Change return type.
10872 (lookup_minimal_symbol): Remove.
10873 (lookup_bound_minimal_symbol): Update.
10874 (lookup_minimal_symbol_text): Change return type.
10875 (lookup_minimal_symbol_solib_trampoline): Change return type.
10876 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10877 (lookup_minimal_symbol_solib_trampoline): Change return type.
10878 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10879 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10880 (value_nsstring, find_imps): Update.
10881 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10882 * p-lang.c (pascal_main_name): Update.
10883 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10884 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10885 * proc-service.c (ps_pglobal_lookup): Update.
10886 * ravenscar-thread.c (get_running_thread_msymbol): Change
10888 (has_ravenscar_runtime, get_running_thread_id): Update.
10889 * remote.c (remote_check_symbols): Update.
10890 * sol-thread.c (ps_pglobal_lookup): Update.
10891 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10892 * solib-dsbt.c (lm_base): Update.
10893 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10895 * solib-irix.c (locate_base): Update.
10896 * solib-som.c (som_solib_create_inferior_hook)
10897 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10899 * solib-spu.c (spu_enable_break): Update.
10900 * solib-svr4.c (elf_locate_base, enable_break): Update.
10901 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10902 (flush_ea_cache): Update.
10903 * stabsread.c (define_symbol): Update.
10904 * symfile.c (simple_read_overlay_table): Update.
10905 * symtab.c (find_pc_sect_line): Update.
10906 * tracepoint.c (scope_info): Update.
10907 * tui-disasm.c (tui_get_begin_asm_address): Update.
10908 * value.c (value_static_field): Update.
10910 2014-02-26 Tom Tromey <tromey@redhat.com>
10912 * minsyms.c (prim_record_minimal_symbol_full): Use
10913 SET_MSYMBOL_VALUE_ADDRESS.
10914 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10915 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10916 SET_MSYMBOL_VALUE_ADDRESS.
10917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10918 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10920 2014-02-26 Tom Tromey <tromey@redhat.com>
10922 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10923 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10924 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10925 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10926 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10927 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10928 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10929 * ada-lang.c (ada_main_name): Update.
10930 (ada_lookup_simple_minsym): Update.
10931 (ada_make_symbol_completion_list): Update.
10932 (ada_add_standard_exceptions): Update.
10933 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10934 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10935 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10936 * arm-tdep.c (skip_prologue_function): Update.
10937 (arm_skip_stack_protector, arm_skip_stub): Update.
10938 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10939 (arm_wince_skip_main_prologue): Update.
10940 * auxv.c (ld_so_xfer_auxv): Update.
10941 * avr-tdep.c (avr_scan_prologue): Update.
10942 * ax-gdb.c (gen_var_ref): Update.
10943 * block.c (call_site_for_pc): Update.
10944 * blockframe.c (get_pc_function_start): Update.
10945 (find_pc_partial_function_gnu_ifunc): Update.
10946 * breakpoint.c (create_overlay_event_breakpoint): Update.
10947 (create_longjmp_master_breakpoint): Update.
10948 (create_std_terminate_master_breakpoint): Update.
10949 (create_exception_master_breakpoint): Update.
10950 (resolve_sal_pc): Update.
10951 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10952 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10954 * c-valprint.c (c_val_print): Update.
10955 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10956 * coffread.c (coff_symfile_read): Update.
10957 * common/agent.c (agent_look_up_symbols): Update.
10958 * dbxread.c (find_stab_function_addr): Update.
10959 (end_psymtab): Update.
10960 * dwarf2loc.c (call_site_to_target_addr): Update.
10961 (func_verify_no_selftailcall): Update.
10962 (tailcall_dump): Update.
10963 (call_site_find_chain_1): Update.
10964 (dwarf_expr_reg_to_entry_parameter): Update.
10965 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10966 (elf_gnu_ifunc_resolve_by_got): Update.
10967 * f-valprint.c (info_common_command): Update.
10968 * findvar.c (read_var_value): Update.
10969 * frame.c (get_prev_frame_1): Update.
10970 (inside_main_func): Update.
10971 * frv-tdep.c (frv_skip_main_prologue): Update.
10972 (frv_frame_this_id): Update.
10973 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10974 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10975 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10976 (gnuv3_skip_trampoline): Update.
10977 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10978 (hppa64_hpux_in_solib_call_trampoline): Update.
10979 (hppa_hpux_skip_trampoline_code): Update.
10980 (hppa64_hpux_search_dummy_call_sequence): Update.
10981 (hppa_hpux_find_import_stub_for_addr): Update.
10982 (hppa_hpux_find_dummy_bpaddr): Update.
10983 * hppa-tdep.c (hppa_symbol_address)
10984 (hppa_lookup_stub_minimal_symbol): Update.
10985 * i386-tdep.c (i386_skip_main_prologue): Update.
10986 (i386_pe_skip_trampoline_code): Update.
10987 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10988 * infcall.c (get_function_name): Update.
10989 * infcmd.c (until_next_command): Update.
10990 * jit.c (jit_breakpoint_re_set_internal): Update.
10991 (jit_inferior_init): Update.
10992 * linespec.c (minsym_found): Update.
10993 (add_minsym): Update.
10994 * linux-fork.c (info_checkpoints_command): Update.
10995 * linux-nat.c (get_signo): Update.
10996 * linux-thread-db.c (inferior_has_bug): Update.
10997 * m32c-tdep.c (m32c_return_value): Update.
10998 (m32c_m16c_address_to_pointer): Update.
10999 (m32c_m16c_pointer_to_address): Update.
11000 * m32r-tdep.c (m32r_frame_this_id): Update.
11001 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11002 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11003 * maint.c (maintenance_translate_address): Update.
11004 * minsyms.c (add_minsym_to_hash_table): Update.
11005 (add_minsym_to_demangled_hash_table): Update.
11006 (msymbol_objfile): Update.
11007 (lookup_minimal_symbol): Update.
11008 (iterate_over_minimal_symbols): Update.
11009 (lookup_minimal_symbol_text): Update.
11010 (lookup_minimal_symbol_by_pc_name): Update.
11011 (lookup_minimal_symbol_solib_trampoline): Update.
11012 (lookup_minimal_symbol_by_pc_section_1): Update.
11013 (lookup_minimal_symbol_and_objfile): Update.
11014 (prim_record_minimal_symbol_full): Update.
11015 (compare_minimal_symbols): Update.
11016 (compact_minimal_symbols): Update.
11017 (build_minimal_symbol_hash_tables): Update.
11018 (install_minimal_symbols): Update.
11019 (terminate_minimal_symbol_table): Update.
11020 (find_solib_trampoline_target): Update.
11021 (minimal_symbol_upper_bound): Update.
11022 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11023 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11024 (mips_skip_pic_trampoline_code): Update.
11025 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11026 * objc-lang.c (selectors_info): Update.
11027 (classes_info): Update.
11028 (find_methods): Update.
11029 (find_imps): Update.
11030 (find_objc_msgsend): Update.
11031 * objfiles.c (objfile_relocate1): Update.
11032 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11033 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11034 * p-valprint.c (pascal_val_print): Update.
11035 * parse.c (write_exp_msymbol): Update.
11036 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11037 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11039 * printcmd.c (build_address_symbolic): Update.
11040 (sym_info): Update.
11041 (address_info): Update.
11042 * proc-service.c (ps_pglobal_lookup): Update.
11043 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11044 (find_pc_sect_psymtab): Update.
11045 * python/py-framefilter.c (py_print_frame): Update.
11046 * ravenscar-thread.c (get_running_thread_id): Update.
11047 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11049 * remote.c (remote_check_symbols): Update.
11050 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11051 (rs6000_skip_trampoline_code): Update.
11052 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11053 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11054 * solib-dsbt.c (lm_base): Update.
11055 * solib-frv.c (lm_base): Update.
11056 (main_got): Update.
11057 * solib-irix.c (locate_base): Update.
11058 * solib-som.c (som_solib_create_inferior_hook): Update.
11059 (som_solib_desire_dynamic_linker_symbols): Update.
11060 (link_map_start): Update.
11061 * solib-spu.c (spu_enable_break): Update.
11062 (ocl_enable_break): Update.
11063 * solib-svr4.c (elf_locate_base): Update.
11064 (enable_break): Update.
11065 * spu-tdep.c (spu_get_overlay_table): Update.
11066 (spu_catch_start): Update.
11067 (flush_ea_cache): Update.
11068 * stabsread.c (define_symbol): Update.
11069 (scan_file_globals): Update.
11070 * stack.c (find_frame_funname): Update.
11071 (frame_info): Update.
11072 * symfile.c (simple_read_overlay_table): Update.
11073 (simple_overlay_update): Update.
11074 * symmisc.c (dump_msymbols): Update.
11075 * symtab.c (fixup_section): Update.
11076 (find_pc_sect_line): Update.
11077 (skip_prologue_sal): Update.
11078 (search_symbols): Update.
11079 (print_msymbol_info): Update.
11080 (rbreak_command): Update.
11081 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11082 (completion_list_objc_symbol): Update.
11083 (default_make_symbol_completion_list_break_on): Update.
11084 * tracepoint.c (scope_info): Update.
11085 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11086 (tui_get_begin_asm_address): Update.
11087 * valops.c (find_function_in_inferior): Update.
11088 * value.c (value_static_field): Update.
11089 (value_fn_field): Update.
11091 2014-02-26 Tom Tromey <tromey@redhat.com>
11093 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11094 bound minimal symbols. Move code that knows about minsym
11096 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11098 * minsyms.h (minimal_symbol_upper_bound): Declare.
11099 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11100 minimal_symbol_upper_bound.
11102 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11104 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11105 Use the type's name if its basic type does not have a tag.
11107 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11109 * dwarf2read.c (read_subrange_type): Add comment.
11111 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11113 * dwarf2read.c (update_enumeration_type_from_children): New
11114 function, mostly extracted from process_structure_scope.
11115 (read_enumeration_type): Call update_enumeration_type_from_children.
11116 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11117 and flag_flag_enum fields.
11119 2014-02-26 Pedro Alves <palves@redhat.com>
11121 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11122 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11123 to_xfer_partial method.
11125 2014-02-26 Pedro Alves <palves@redhat.com>
11127 * target.c (complete_target_initialization): Don't install
11128 default_xfer_partial as to_xfer_partial hook.
11129 (nomemory): Delete.
11130 (update_current_target): Don't INHERIT nor de_fault
11131 deprecated_xfer_memory. Delete de_fault macro.
11132 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11133 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11134 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11137 2014-02-26 Pedro Alves <palves@redhat.com>
11139 * go32-nat.c (my_write_child): New function.
11140 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11141 (go32_xfer_partial): New function.
11142 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11143 Instead install a to_xfer_partial hook.
11145 2014-02-26 Pedro Alves <palves@redhat.com>
11147 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11148 to_xfer_partial helper. Rewrite.
11149 (procfs_xfer_partial): New function.
11150 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11151 Install a to_xfer_partial hook.
11153 2014-02-26 Pedro Alves <palves@redhat.com>
11155 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11156 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11157 (m32r_xfer_partial): New function.
11158 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11159 Install a to_xfer_partial hook.
11161 2014-02-26 Pedro Alves <palves@redhat.com>
11163 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11165 (mips_xfer_partial): New function.
11166 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11167 hook. Install a to_xfer_partial hook.
11169 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11171 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11172 * gdbtypes.c (create_array_type_with_stride): New function,
11173 renaming create_array_type, but with an added parameter
11174 called "bit_stride".
11175 (create_array_type): Re-implement using
11176 create_array_type_with_stride.
11177 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11178 and DW_AT_bit_stride attributes.
11180 2014-02-26 Pedro Alves <palves@redhat.com>
11182 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11183 task-specific breakpoints.
11185 2014-02-25 Pedro Alves <palves@redhat.com>
11187 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11188 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11190 2014-02-25 Stan Shebs <stan@codesourcery.com>
11192 * defs.h: Annotate comments for Doxygen.
11194 2014-02-25 Tom Tromey <tromey@redhat.com>
11196 * target.h (target_ignore): Don't declare.
11197 * target.c (target_ignore): Remove.
11199 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11202 * auto-load.c (auto_load_objfile_script_1): Change filename to
11205 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11207 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11208 documentation. Adjust prototype to match the target_ops
11209 to_xfer_partial method. Adjust implementation accordingly.
11211 2014-02-25 Hui Zhu <hui@codesourcery.com>
11213 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11214 to_traceframe_info.
11216 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11218 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11219 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11220 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11221 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11222 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11223 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11224 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11225 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11227 (rl78_register_type): Use a data pointer type for SP and
11228 new pseudo registers mentioned above. Use a 16 bit integer
11229 type for all other register pairs.
11230 (rl78_register_name, rl78_g10_register_name): Update for
11231 new pseudo registers.
11232 (rl78_pseudo_register_read): Likewise.
11233 (rl78_pseudo_register_write): Likewise.
11234 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11235 to the newly added pseudo registers.
11237 2014-02-24 Doug Evans <dje@google.com>
11239 * value.c (record_latest_value): Fix comment.
11240 * printcmd.c (print_command_1): Remove code to handle -1 return from
11241 record_latest_value.
11243 2014-02-24 Pedro Alves <palves@redhat.com>
11245 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11246 deprecated_xfer_memory hook.
11247 (procfs_xfer_partial): Call procfs_xfer_memory instead
11248 of the deprecated_xfer_memory target hook.
11249 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11252 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11254 * windows-nat.c (windows_xfer_shared_libraries): Return
11255 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11256 requested object is TARGET_OBJECT_LIBRARIES.
11258 2014-02-24 Yao Qi <yao@codesourcery.com>
11260 * target.h (enum target_xfer_status)
11261 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11262 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11264 * corefile.c (memory_error_message): User updated.
11265 * exec.c (section_table_read_available_memory): Likewise.
11266 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11267 * target.c (target_xfer_status_to_string): Likewise.
11268 (raw_memory_xfer_partial): Likewise.
11269 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11270 * valops.c (read_value_memory): Likewise.
11271 * exec.h: Update comments.
11273 2014-02-24 Yao Qi <yao@codesourcery.com>
11275 * target.c (target_xfer_status_to_string): Rename argument err
11277 * target.h (target_xfer_status_to_string): Update declaration.
11278 Replace target_xfer_error_to_string with
11279 target_xfer_status_to_string in comment.
11281 2014-02-24 Yao Qi <yao@codesourcery.com>
11283 * mips-linux-nat.c (super_close): Update its type.
11284 (mips_linux_close): Pass 'self' to super_close.
11286 2014-02-24 Yao Qi <yao@codesourcery.com>
11288 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11289 * corefile.c (read_memory): Adjusted.
11290 * target.c (target_write_with_progress): Adjusted.
11292 2014-02-23 Yao Qi <yao@codesourcery.com>
11294 Revert two patches:
11296 2013-10-25 Yao Qi <yao@codesourcery.com>
11298 * remote.c (remote_traceframe_info): Return early if
11299 traceframe is not selected.
11301 2013-07-19 Yao Qi <yao@codesourcery.com>
11303 * target.c (update_current_target): Change the default action
11304 of 'to_traceframe_info' from tcomplain to return_zero.
11305 * target.h (struct target_ops) <to_traceframe_info>: Add more
11308 2014-02-23 Yao Qi <yao@codesourcery.com>
11310 * valops.c (read_value_memory): Rewrite it. Call
11311 target_xfer_partial in a loop.
11312 * exec.h (section_table_available_memory): Remove declaration.
11313 Move comments to ...
11314 * exec.c (section_table_available_memory): ... here. Make it
11317 2014-02-23 Yao Qi <yao@codesourcery.com>
11319 * exec.c (section_table_read_available_memory): New function.
11320 * exec.h (section_table_read_available_memory): Declare.
11321 * ctf.c (ctf_xfer_partial): Call
11322 section_table_read_available_memory.
11323 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11325 2014-02-23 Yao Qi <yao@codesourcery.com>
11327 * ctf.c (ctf_xfer_partial): Move code to ...
11328 * exec.c (exec_read_partial_read_only): ... it. New function.
11329 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11330 * tracefile.c: Include "exec.h".
11331 * exec.h (exec_read_partial_read_only): Declare.
11333 2014-02-23 Yao Qi <yao@codesourcery.com>
11335 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11336 (tfile_has_memory): Remove.
11337 (init_tfile_ops): Don't set fields to_has_all_memory and
11338 to_has_memory of tfile_ops.
11339 * tracefile.c (tracefile_has_all_memory): New function.
11340 (tracefile_has_memory): New function.
11341 (init_tracefile_ops): Initialize fields to_has_all_memory and
11342 to_has_memory of 'ops'.
11344 2014-02-23 Yao Qi <yao@codesourcery.com>
11346 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11347 (ctf_thread_alive, ctf_get_trace_status): Remove.
11348 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11349 init_tracefile_ops.
11350 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11351 (tfile_has_stack, tfile_has_registers): Remove.
11352 (tfile_thread_alive): Remove.
11353 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11354 init_tracefile_ops.
11355 * tracefile.c (tracefile_has_stack): New function.
11356 (tracefile_has_registers): New function.
11357 (tracefile_thread_alive): New function.
11358 (tracefile_get_trace_status): New function.
11359 (init_tracefile_ops): New function.
11360 * tracefile.h (init_tracefile_ops): Declare.
11362 2014-02-23 Yao Qi <yao@codesourcery.com>
11364 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11365 (O_LARGEFILE): Likewise.
11366 (tfile_ops): Likewise.
11367 (TRACE_HEADER_SIZE): Likewise.
11368 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11369 (cur_data_size): Likewise.
11370 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11371 (tfile_close, tfile_files_info): Likewise.
11372 (tfile_get_trace_status): Likewise.
11373 (tfile_get_tracepoint_status): Likewise.
11374 (tfile_get_traceframe_address): Likewise.
11375 (tfile_trace_find, match_blocktype): Likewise.
11376 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11377 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11378 (tfile_get_trace_state_variable_value): Likewise.
11379 (tfile_has_all_memory, tfile_has_memory): Likewise.
11380 (tfile_has_stack, tfile_has_registers): Likewise.
11381 (tfile_thread_alive, build_traceframe_info): Likewise.
11382 (tfile_traceframe_info, init_tfile_ops): Likewise.
11383 (_initialize_tracepoint): Don't call init_tfile_ops
11384 and add_target_with_completer.
11385 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11386 exec.h, completer.h and filenames.h.
11387 (_initialize_tracefile_tfile): New function.
11389 2014-02-23 Yao Qi <yao@codesourcery.com>
11391 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11393 (HFILES_NO_SRCDIR): Add tracefile.h.
11394 * ctf.c: Include "tracefile.h".
11395 * tracefile.h: New file.
11396 * tracefile.c: New file
11397 * tracefile-tfile.c: New file.
11398 * tracepoint.c: Include "tracefile.h".
11399 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11400 (stop_reason_names): Add const.
11401 (trace_file_writer_xfree): Move it to tracefile.c.
11402 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11403 (trace_save_ctf): Likewise.
11404 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11405 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11406 (tfile_write_header, tfile_write_regblock_type): Likewise.
11407 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11408 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11409 (tfile_write_raw_data, tfile_end): Likewise.
11410 (tfile_trace_file_writer_new): Likewise.
11411 (free_uploaded_tp): Make it extern.
11412 (free_uploaded_tsv): Make it extern.
11413 (_initialize_tracepoint): Move code to register command 'tsave'
11415 * tracepoint.h (stop_reason_names): Declare.
11416 (struct trace_frame_write_ops): Move it to tracefile.h.
11417 (struct trace_file_write_ops): Likewise.
11418 (struct trace_file_writer): Likewise.
11419 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11421 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11424 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11426 (get_cores_used_by_process): New parameter num_cores, use it.
11427 (linux_xfer_osdata_processes): Pass num_cores to it.
11428 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11431 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11433 * target.c (memory_xfer_partial): Fix length arg in call to
11434 breakpoint_xfer_memory.
11436 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11439 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11440 number comes after the + or - signs. Adjust length of register
11441 name to be extracted.
11443 2014-02-20 Tom Tromey <tromey@redhat.com>
11445 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11446 (ada_varobj_ops): Mark "extern".
11448 2014-02-20 Tom Tromey <tromey@redhat.com>
11450 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11452 2014-02-20 Doug Evans <xdje42@gmail.com>
11454 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11455 All callers updated.
11456 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11457 All callers updated.
11458 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11459 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11461 2014-02-20 lin zuojian <manjian2006@gmail.com>
11462 Joel Brobecker <brobecker@adacore.com>
11463 Doug Evans <xdje42@gmail.com>
11466 * dwarf2read.c (struct die_info): New member in_process.
11467 (reset_die_in_process): New function.
11468 (process_die): Set it at the start, reset when returning.
11469 (inherit_abstract_dies): Only call process_die if origin_child_die
11470 not already being processed.
11472 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11474 * windows-nat.c (handle_unload_dll): Add function documentation.
11475 (do_initial_windows_stuff): Add comment explaining why we wait
11476 until after inferior initialization has finished before
11477 processing all DLLs.
11479 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11481 * windows-nat.c (get_module_name): Delete.
11482 (windows_get_exec_module_filename): New function, mostly
11483 inspired from get_module_name.
11484 (windows_pid_to_exec_file): Replace call to get_module_name
11485 by call to windows_get_exec_module_filename.
11487 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11489 * windows-nat.c (handle_load_dll): Rewrite this function's
11490 introductory comment. Remove code using get_module_name
11491 to get the DLL's name.
11493 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11495 * windows-nat.c (get_windows_debug_event): Ignore
11496 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11497 if windows_initialization_done == 0.
11498 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11499 Adjust implementation to always load all DLLs.
11500 (do_initial_windows_stuff): Replace call to
11501 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11503 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11505 * windows-nat.c (_initialize_windows_nat): Deprecate the
11506 "dll-symbols" command. Turn the "add-shared-symbol-files"
11507 and "assf" aliases into commands, and deprecate them as well.
11508 * NEWS: Add entry explaining that "dll-symbols" and its two
11509 aliases are now deprecated.
11511 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11513 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11514 new-line in debug string. Remove trailing spaces.
11516 2014-02-19 Stan Shebs <stan@codesourcery.com>
11518 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11520 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11522 * NEWS: Add entry for the new feature
11523 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11526 2014-02-19 Stan Shebs <stan@codesourcery.com>
11528 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11530 2014-02-19 Pedro Alves <palves@redhat.com>
11532 * common/ptid.h (struct ptid): Mention that process_stratum
11533 targets should prefer ptid.lwp.
11535 2014-02-19 Pedro Alves <palves@redhat.com>
11537 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11538 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11539 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11540 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11541 store remote thread ids rather than ptid.tid.
11542 (_initialize_remote): Adjust.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target.c (target_get_unwinder): Rewrite.
11547 (target_get_tailcall_unwinder): Rewrite.
11548 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11549 (record_btrace_to_get_tailcall_unwinder): New function.
11550 (init_record_btrace_ops): Update.
11551 * target.h (struct target_ops) <to_get_unwinder,
11552 to_get_tailcall_unwinder>: Now function pointers. Use
11553 TARGET_DEFAULT_RETURN.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11559 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11565 * target-delegates.c: Rebuild.
11566 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11567 TARGET_DEFAULT_FUNC.
11568 * target.c (default_target_decr_pc_after_break): Rename from
11569 forward_target_decr_pc_after_break. Simplify.
11570 (target_decr_pc_after_break): Rely on delegation.
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target.c (update_current_target): Do not INHERIT to_doc or
11575 to_magic. Do not de_fault to_open or to_close.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * gcore.h (objfile_find_memory_regions): Declare.
11580 * gcore.c (objfile_find_memory_regions): No longer static. Add
11582 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11583 * exec.c: Include gcore.h.
11584 (exec_set_find_memory_regions): Remove.
11585 (exec_find_memory_regions): Remove.
11586 (exec_do_find_memory_regions): Remove.
11587 (init_exec_ops): Update.
11588 * defs.h (exec_set_find_memory_regions): Remove.
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target-delegates.c: Rebuild.
11593 * target.h (struct target_ops) <to_extra_thread_info,
11594 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11595 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11596 not 0, in TARGET_DEFAULT_RETURN.
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11600 * target.c (complete_target_initialization): Remove casts. Use
11601 return_zero_has_execution.
11602 (return_zero): Add "ignore" argument.
11603 (return_zero_has_execution): New function.
11604 (init_dummy_target): Remove casts. Use
11605 return_zero_has_execution.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target.c (update_current_target): Update comments. Do not
11610 INHERIT to_stratum.
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11614 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11616 * corelow.c (core_read_description): Delegate when needed.
11617 * remote.c (remote_read_description): Delegate when needed.
11618 * target-delegates.c: Rebuild.
11619 * target.c (target_read_description): Rewrite.
11620 * target.h (struct target_ops) <to_read_description>: Update
11621 comment. Use TARGET_DEFAULT_RETURN.
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11628 (find_default_run_target): Check against delegate_can_run.
11629 * target.h (struct target_ops) <to_can_run>: Use
11630 TARGET_DEFAULT_RETURN.
11632 2014-02-19 Tom Tromey <tromey@redhat.com>
11634 * target-delegates.c: Rebuild.
11635 * target.c (target_disconnect): Unconditionally delegate.
11636 * target.h (struct target_ops) <to_disconnect>: Use
11637 TARGET_DEFAULT_NORETURN.
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * record.c (record_stop): Unconditionally delegate.
11642 * target-delegates.c: Rebuild.
11643 * target.c (target_stop_recording): Unconditionally delegate.
11644 * target.h (struct target_ops) <to_stop_recording>: Use
11645 TARGET_DEFAULT_IGNORE.
11647 2014-02-19 Tom Tromey <tromey@redhat.com>
11649 * target-delegates.c: Rebuild.
11650 * target.c (target_enable_btrace): Unconditionally delegate.
11651 * target.h (struct target_ops) <to_enable_btrace>: Use
11652 TARGET_DEFAULT_NORETURN.
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11656 * target-delegates.c: Rebuild.
11657 * target.c (target_read_btrace): Unconditionally delegate.
11658 * target.h (struct target_ops) <to_read_btrace>: Use
11659 TARGET_DEFAULT_NORETURN.
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11663 * target-delegates.c: Rebuild.
11664 * target.c (target_teardown_btrace): Unconditionally delegate.
11665 * target.h (struct target_ops) <to_teardown_btrace>: Use
11666 TARGET_DEFAULT_NORETURN.
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11670 * target-delegates.c: Rebuild.
11671 * target.c (target_disable_btrace): Unconditionally delegate.
11672 * target.h (struct target_ops) <to_disable_btrace>: Use
11673 TARGET_DEFAULT_NORETURN.
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11677 * target-delegates.c: Rebuild.
11678 * target.c (default_search_memory): New function.
11679 (simple_search_memory): Update comment.
11680 (target_search_memory): Unconditionally delegate.
11681 * target.h (struct target_ops) <to_search_memory>: Use
11682 TARGET_DEFAULT_FUNC.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * auxv.c (default_auxv_parse): No longer static.
11687 (target_auxv_parse): Unconditionally delegate.
11688 * auxv.h (default_auxv_parse): Declare.
11689 * target-delegates.c: Rebuild.
11690 * target.c: Include auxv.h.
11691 * target.h (struct target_ops) <to_auxv_parse>: Use
11692 TARGET_DEFAULT_FUNC.
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11696 * target-delegates.c: Rebuild.
11697 * target.c (target_memory_map): Unconditionally delegate.
11698 * target.h (struct target_ops) <to_memory_map>: Use
11699 TARGET_DEFAULT_RETURN.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target-delegates.c: Rebuild.
11704 * target.c (target_thread_alive): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_thread_alive>: Use
11706 TARGET_DEFAULT_RETURN.
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target-delegates.c: Rebuild.
11711 * target.c (target_save_record): Unconditionally delegate.
11712 * target.h (struct target_ops) <to_save_record>: Use
11713 TARGET_DEFAULT_NORETURN.
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target-delegates.c: Rebuild.
11718 * target.c (target_delete_record): Unconditionally delegate.
11719 * target.h (struct target_ops) <to_delete_record>: Use
11720 TARGET_DEFAULT_NORETURN.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target-delegates.c: Rebuild.
11725 * target.c (target_record_is_replaying): Unconditionally
11727 * target.h (struct target_ops) <to_record_is_replaying>: Use
11728 TARGET_DEFAULT_RETURN.
11730 2014-02-19 Tom Tromey <tromey@redhat.com>
11732 * target-delegates.c: Rebuild.
11733 * target.c (target_goto_record_begin): Unconditionally delegate.
11734 * target.h (struct target_ops) <to_goto_record_begin>: Use
11735 TARGET_DEFAULT_NORETURN.
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11739 * target-delegates.c: Rebuild.
11740 * target.c (target_goto_record_end): Unconditionally delegate.
11741 * target.h (struct target_ops) <to_goto_record_end>: Use
11742 TARGET_DEFAULT_NORETURN.
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11746 * target-delegates.c: Rebuild.
11747 * target.c (target_goto_record): Unconditionally delegate.
11748 * target.h (struct target_ops) <to_goto_record>: Use
11749 TARGET_DEFAULT_NORETURN.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * target-delegates.c: Rebuild.
11754 * target.c (target_insn_history): Unconditionally delegate.
11755 * target.h (struct target_ops) <to_insn_history>: Use
11756 TARGET_DEFAULT_NORETURN.
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11760 * target-delegates.c: Rebuild.
11761 * target.c (target_insn_history_from): Unconditionally delegate.
11762 * target.h (struct target_ops) <to_insn_history_from>: Use
11763 TARGET_DEFAULT_NORETURN.
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * target-delegates.c: Rebuild.
11768 * target.c (target_insn_history_range): Unconditionally delegate.
11769 * target.h (struct target_ops) <to_insn_history_range>: Use
11770 TARGET_DEFAULT_NORETURN.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target-delegates.c: Rebuild.
11775 * target.c (target_call_history): Unconditionally delegate.
11776 * target.h (struct target_ops) <to_call_history>: Use
11777 TARGET_DEFAULT_NORETURN.
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11781 * target-delegates.c: Rebuild.
11782 * target.c (target_call_history_from): Unconditionally delegate.
11783 * target.h (struct target_ops) <to_call_history_from>: Use
11784 TARGET_DEFAULT_NORETURN.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target-delegates.c: Rebuild.
11789 * target.c (target_call_history_range): Unconditionally delegate.
11790 * target.h (struct target_ops) <to_call_history_range>: Use
11791 TARGET_DEFAULT_NORETURN.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target-delegates.c: Rebuild.
11796 * target.c (target_verify_memory): Unconditionally delegate.
11797 * target.h (struct target_ops) <to_verify_memory>: Use
11798 TARGET_DEFAULT_NORETURN.
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11802 * target-delegates.c: Rebuild.
11803 * target.c (target_core_of_thread): Unconditionally delegate.
11804 * target.h (struct target_ops) <to_core_of_thread>: Use
11805 TARGET_DEFAULT_RETURN.
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11809 * target-delegates.c: Rebuild.
11810 * target.c (target_flash_done): Unconditionally delegate.
11811 * target.h (struct target_ops) <to_flash_done>: Use
11812 TARGET_DEFAULT_NORETURN.
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_flash_erase): Unconditionally delegate.
11818 * target.h (struct target_ops) <to_flash_erase>: Use
11819 TARGET_DEFAULT_NORETURN.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (target_get_section_table): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_get_section_table>: Use
11826 TARGET_DEFAULT_RETURN.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (target_pid_to_str): Unconditionally delegate.
11832 (init_dummy_target): Don't initialize to_pid_to_str.
11833 (default_pid_to_str): Rename from dummy_pid_to_str.
11834 * target.h (struct target_ops) <to_pid_to_str>: Use
11835 TARGET_DEFAULT_FUNC.
11837 2014-02-19 Tom Tromey <tromey@redhat.com>
11839 * target-delegates.c: Rebuild.
11840 * target.c (target_find_new_threads): Unconditionally delegate.
11841 * target.h (struct target_ops) <to_find_new_threads>: Use
11842 TARGET_DEFAULT_RETURN.
11844 2014-02-19 Tom Tromey <tromey@redhat.com>
11846 * target-delegates.c: Rebuild.
11847 * target.c (target_program_signals): Unconditionally delegate.
11848 * target.h (struct target_ops) <to_program_signals>: Use
11849 TARGET_DEFAULT_IGNORE.
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11853 * target-delegates.c: Rebuild.
11854 * target.c (target_pass_signals): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_pass_signals>: Use
11856 TARGET_DEFAULT_IGNORE.
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * target-delegates.c: Rebuild.
11861 * target.c (default_mourn_inferior): New function.
11862 (target_mourn_inferior): Unconditionally delegate.
11863 * target.h (struct target_ops) <to_mourn_inferior>: Use
11864 TARGET_DEFAULT_FUNC.
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target-delegates.c: Rebuild.
11869 * target.c (default_follow_fork): New function.
11870 (target_follow_fork): Unconditionally delegate.
11871 * target.h (struct target_ops) <to_follow_fork>: Use
11872 TARGET_DEFAULT_FUNC.
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11876 * target-delegates.c: Rebuild.
11877 * target.c (target_kill): Unconditionally delegate.
11878 * target.h (struct target_ops) <to_kill>: Use
11879 TARGET_DEFAULT_NORETURN.
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target-delegates.c: Rebuild.
11884 * target.c (target_masked_watch_num_registers): Unconditionally
11886 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11887 Use TARGET_DEFAULT_RETURN.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_remove_mask_watchpoint): Unconditionally
11894 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11895 TARGET_DEFAULT_RETURN.
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target-delegates.c: Rebuild.
11900 * target.c (target_insert_mask_watchpoint): Unconditionally
11902 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11903 TARGET_DEFAULT_RETURN.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target-delegates.c: Rebuild.
11908 * target.c (target_ranged_break_num_registers): Unconditionally
11910 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11911 Use TARGET_DEFAULT_RETURN.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target-delegates.c: Rebuild.
11916 * target.c (target_fetch_registers): Unconditionally delegate.
11917 * target.h (struct target_ops) <to_fetch_registers>: Use
11918 TARGET_DEFAULT_NORETURN.
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11925 * target.h (struct target_ops) <to_stop>: Use
11926 TARGET_DEFAULT_IGNORE.
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_can_run_breakpoint_commands.
11933 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11934 Use TARGET_DEFAULT_RETURN.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_supports_evaluation_of_breakpoint_conditions.
11941 * target.h (struct target_ops)
11942 <to_supports_evaluation_of_breakpoint_conditions>: Use
11943 TARGET_DEFAULT_RETURN.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * target-delegates.c: Rebuild.
11948 * target.c (update_current_target): Don't inherit or default
11949 to_augmented_libraries_svr4_read.
11950 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11951 Use TARGET_DEFAULT_RETURN.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target-delegates.c: Rebuild.
11956 * target.c (update_current_target): Don't inherit or default
11958 * target.h (struct target_ops) <to_can_use_agent>: Use
11959 TARGET_DEFAULT_RETURN.
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11966 * target.h (struct target_ops) <to_use_agent>: Use
11967 TARGET_DEFAULT_NORETURN.
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11971 * target-delegates.c: Rebuild.
11972 * target.c (update_current_target): Don't inherit or default
11973 to_traceframe_info.
11974 (return_null): Remove.
11975 * target.h (struct target_ops) <to_traceframe_info>: Use
11976 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_static_tracepoint_markers_by_strid.
11983 * target.h (struct target_ops)
11984 <to_static_tracepoint_markers_by_strid>: Use
11985 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
11992 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
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
11999 to_set_permissions.
12000 * target.h (struct target_ops) <to_set_permissions>: Use
12001 TARGET_DEFAULT_IGNORE.
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
12007 to_get_tib_address.
12008 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
12016 * target.h (struct target_ops) <to_set_trace_notes>: Use
12017 TARGET_DEFAULT_RETURN.
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't initialize
12023 to_set_trace_buffer_size.
12024 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12025 TARGET_DEFAULT_IGNORE.
12027 2014-02-19 Tom Tromey <tromey@redhat.com>
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12031 to_set_circular_trace_buffer.
12032 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12033 TARGET_DEFAULT_IGNORE.
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_set_disconnected_tracing.
12040 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12041 TARGET_DEFAULT_IGNORE.
12043 2014-02-19 Tom Tromey <tromey@redhat.com>
12045 * target-delegates.c: Rebuild.
12046 * target.c (update_current_target): Don't inherit or default
12047 to_get_min_fast_tracepoint_insn_len.
12048 (return_minus_one): Remove.
12049 * target.h (struct target_ops)
12050 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_get_raw_trace_data.
12057 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12058 TARGET_DEFAULT_NORETURN.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_upload_trace_state_variables.
12065 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12066 Use TARGET_DEFAULT_RETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_upload_tracepoints.
12073 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12074 TARGET_DEFAULT_RETURN.
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_save_trace_data.
12081 * target.h (struct target_ops) <to_save_trace_data>: Use
12082 TARGET_DEFAULT_NORETURN.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_get_trace_state_variable_value.
12089 * target.h (struct target_ops)
12090 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12092 2014-02-19 Tom Tromey <tromey@redhat.com>
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12097 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12101 * target-delegates.c: Rebuild.
12102 * target.c (update_current_target): Don't inherit or default
12104 * target.h (struct target_ops) <to_trace_stop>: Use
12105 TARGET_DEFAULT_NORETURN.
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12109 * target-delegates.c: Rebuild.
12110 * target.c (update_current_target): Don't inherit or default
12111 to_get_tracepoint_status.
12112 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12113 TARGET_DEFAULT_NORETURN.
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target-delegates.c: Rebuild.
12118 * target.c (update_current_target): Don't inherit or default
12119 to_get_trace_status.
12120 * target.h (struct target_ops) <to_get_trace_status>: Use
12121 TARGET_DEFAULT_RETURN.
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12128 * target.h (struct target_ops) <to_trace_start>: Use
12129 TARGET_DEFAULT_NORETURN.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_trace_set_readonly_regions.
12136 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12137 Use TARGET_DEFAULT_NORETURN.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12143 to_disable_tracepoint.
12144 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12145 TARGET_DEFAULT_NORETURN.
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_enable_tracepoint.
12152 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12153 TARGET_DEFAULT_NORETURN.
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_download_trace_state_variable.
12160 * target.h (struct target_ops) <to_download_trace_state_variable>:
12161 Use TARGET_DEFAULT_NORETURN.
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_can_download_tracepoint.
12168 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12169 TARGET_DEFAULT_RETURN.
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_download_tracepoint.
12176 * target.h (struct target_ops) <to_download_tracepoint>: Use
12177 TARGET_DEFAULT_NORETURN.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12184 * target.h (struct target_ops) <to_trace_init>: Use
12185 TARGET_DEFAULT_RETURN.
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_supports_string_tracing.
12192 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12193 TARGET_DEFAULT_RETURN.
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12197 * target-delegates.c: Rebuild.
12198 * target.c (update_current_target): Don't inherit or default
12199 to_supports_enable_disable_tracepoint.
12200 * target.h (struct target_ops)
12201 <to_supports_enable_disable_tracepoint>: Use
12202 TARGET_DEFAULT_RETURN.
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12206 * target-delegates.c: Rebuild.
12207 * target.c (update_current_target): Don't inherit or default
12208 to_supports_multi_process.
12209 * target.h (struct target_ops) <to_supports_multi_process>: Use
12210 TARGET_DEFAULT_RETURN.
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12214 * target-delegates.c: Rebuild.
12215 * target.c (update_current_target): Don't inherit or default
12216 to_get_ada_task_ptid.
12217 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12218 TARGET_DEFAULT_FUNC.
12220 2014-02-19 Tom Tromey <tromey@redhat.com>
12222 * target-delegates.c: Rebuild.
12223 * target.c (update_current_target): Don't inherit or default
12224 to_thread_architecture.
12225 * target.h (struct target_ops) <to_thread_architecture>: Use
12226 TARGET_DEFAULT_FUNC.
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12230 * target-delegates.c: Rebuild.
12231 * target.c (update_current_target): Don't inherit or default
12232 to_execution_direction.
12233 * target.h (struct target_ops) <to_execution_direction>: Use
12234 TARGET_DEFAULT_FUNC.
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * target-delegates.c: Rebuild.
12239 * target.c (update_current_target): Don't inherit or default
12240 to_can_execute_reverse.
12241 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12242 TARGET_DEFAULT_RETURN.
12243 (target_can_execute_reverse): Unconditionally delegate.
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12247 * target-delegates.c: Rebuild.
12248 * target.c (update_current_target): Don't inherit or default
12250 (dummy_goto_bookmark): Remove.
12251 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12252 * target.h (struct target_ops) <to_goto_bookmark>: Use
12253 TARGET_DEFAULT_NORETURN.
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12260 (dummy_get_bookmark): Remove.
12261 (init_dummy_target): Don't inherit or default to_get_bookmark.
12262 * target.h (struct target_ops) <to_get_bookmark>: Use
12263 TARGET_DEFAULT_NORETURN
12265 2014-02-19 Tom Tromey <tromey@redhat.com>
12267 * target-delegates.c: Rebuild.
12268 * target.c (update_current_target): Don't inherit or default
12269 to_make_corefile_notes.
12270 (init_dummy_target): Don't initialize to_make_corefile_notes.
12271 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12272 TARGET_DEFAULT_FUNC.
12274 2014-02-19 Tom Tromey <tromey@redhat.com>
12276 * target-delegates.c: Rebuild.
12277 * target.c (update_current_target): Don't inherit or default
12278 to_find_memory_regions.
12279 (init_dummy_target): Don't initialize to_find_memory_regions.
12280 * target.h (struct target_ops) <to_find_memory_regions>: Use
12281 TARGET_DEFAULT_FUNC.
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12288 * target.h (struct target_ops) <to_log_command>: Use
12289 TARGET_DEFAULT_IGNORE.
12290 (target_log_command): Unconditionally delegate.
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12294 * target-delegates.c: Rebuild.
12295 * target.c (update_current_target): Don't inherit or default
12296 to_pid_to_exec_file.
12297 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12298 TARGET_DEFAULT_RETURN.
12300 2014-02-19 Tom Tromey <tromey@redhat.com>
12302 * target-delegates.c: Rebuild.
12303 * target.c (update_current_target): Don't inherit or default
12305 (target_thread_name): Unconditionally delegate.
12306 * target.h (struct target_ops) <to_thread_name>: Use
12307 TARGET_DEFAULT_RETURN.
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_extra_thread_info.
12314 * target.h (struct target_ops) <to_extra_thread_info>: Use
12315 TARGET_DEFAULT_RETURN.
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12322 * target.h (struct target_ops) <to_has_exited>: Use
12323 TARGET_DEFAULT_RETURN..
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
12329 to_set_syscall_catchpoint.
12330 (return_one): Remove.
12331 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12332 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
12339 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12340 TARGET_DEFAULT_RETURN.
12342 2014-01-08 Tom Tromey <tromey@redhat.com>
12344 * target-delegates.c: Rebuild.
12345 * target.c (update_current_target): Don't inherit or default
12346 to_insert_exec_catchpoint.
12347 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12348 TARGET_DEFAULT_RETURN.
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_remove_vfork_catchpoint.
12355 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12356 TARGET_DEFAULT_RETURN.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_insert_vfork_catchpoint.
12363 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12364 TARGET_DEFAULT_RETURN.
12366 2014-02-19 Tom Tromey <tromey@redhat.com>
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_remove_fork_catchpoint.
12371 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12372 TARGET_DEFAULT_RETURN.
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_insert_fork_catchpoint.
12379 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12380 TARGET_DEFAULT_RETURN.
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_post_startup_inferior.
12387 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12388 TARGET_DEFAULT_IGNORE.
12390 2014-02-19 Tom Tromey <tromey@redhat.com>
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12395 * target.h (struct target_ops) <to_load>: Use
12396 TARGET_DEFAULT_NORETURN.
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12403 * target.h (struct target_ops) <to_terminal_info>: Use
12404 TARGET_DEFAULT_FUNC.
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target-delegates.c: Rebuild.
12409 * target.c (update_current_target): Don't inherit or default
12410 to_terminal_save_ours.
12411 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12412 TARGET_DEFAULT_IGNORE.
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12419 * target.h (struct target_ops) <to_terminal_ours>: Use
12420 TARGET_DEFAULT_IGNORE.
12422 2014-02-19 Tom Tromey <tromey@redhat.com>
12424 * target-delegates.c: Rebuild.
12425 * target.c (update_current_target): Don't inherit or default
12426 to_terminal_ours_for_output.
12427 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12428 TARGET_DEFAULT_IGNORE.
12430 2014-02-19 Tom Tromey <tromey@redhat.com>
12432 * target-delegates.c: Rebuild.
12433 * target.c (update_current_target): Don't inherit or default
12434 to_terminal_inferior.
12435 * target.h (struct target_ops) <to_terminal_inferior>: Use
12436 TARGET_DEFAULT_IGNORE.
12438 2014-02-19 Tom Tromey <tromey@redhat.com>
12440 * target-delegates.c: Rebuild.
12441 * target.c (update_current_target): Don't inherit or default
12443 * target.h (struct target_ops) <to_terminal_init>: Use
12444 TARGET_DEFAULT_IGNORE.
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12448 * target-delegates.c: Rebuild.
12449 * target.c (update_current_target): Don't inherit or default
12450 to_can_accel_watchpoint_condition.
12451 * target.h (struct target_ops)
12452 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12454 2014-02-19 Tom Tromey <tromey@redhat.com>
12456 * target-delegates.c: Rebuild.
12457 * target.c (update_current_target): Don't inherit or default
12458 to_region_ok_for_hw_watchpoint.
12459 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12460 Use TARGET_DEFAULT_FUNC.
12462 2014-02-19 Tom Tromey <tromey@redhat.com>
12464 * target-delegates.c: Rebuild.
12465 * target.c (update_current_target): Don't inherit or default
12466 to_watchpoint_addr_within_range.
12467 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12468 Use TARGET_DEFAULT_FUNC.
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_remove_watchpoint.
12475 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12476 TARGET_DEFAULT_NORETURN.
12478 2014-02-19 Tom Tromey <tromey@redhat.com>
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12482 to_insert_watchpoint.
12483 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12484 TARGET_DEFAULT_RETURN.
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12488 * target-delegates.c: Rebuild.
12489 * target.c (update_current_target): Don't inherit or default
12490 to_remove_hw_breakpoint.
12491 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12492 TARGET_DEFAULT_RETURN.
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12496 * target-delegates.c: Rebuild.
12497 * target.c (update_current_target): Don't inherit or default
12498 to_insert_hw_breakpoint.
12499 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12500 TARGET_DEFAULT_RETURN.
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_can_use_hw_breakpoint.
12507 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12508 TARGET_DEFAULT_RETURN.
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12515 * target.h (struct target_ops) <to_files_info>: Use
12516 TARGET_DEFAULT_IGNORE.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12523 * target.h (struct target_ops) <to_store>: Use
12524 TARGET_DEFAULT_NORETURN.
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12531 * target.h (struct target_ops) <to_post_attach>: Use
12532 TARGET_DEFAULT_IGNORE.
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12539 (default_rcmd): New function.
12540 (do_monitor_command): Unconditionally delegate.
12541 * target.h (struct target_ops) <to_rmcd>: Use
12542 TARGET_DEFAULT_FUNC.
12544 2014-02-19 Tom Tromey <tromey@redhat.com>
12546 * target-delegates.c: Rebuild.
12547 * target.c (init_dummy_target): Don't initialize to_attach.
12548 (target_attach): Unconditionally delegate.
12549 * target.h (struct target_ops) <to_attach>: Use
12550 TARGET_DEFAULT_FUNC.
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12554 * target-delegates.c: Rebuild.
12555 * target.c (target_detach): Unconditionally delegate.
12556 (init_dummy_target): Don't initialize to_detach.
12557 * target.h (struct target_ops) <to_detach>: Use
12558 TARGET_DEFAULT_IGNORE.
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12562 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12564 (target_augmented_libraries_svr4_read): Add argument.
12565 * target.c (update_current_target): Update.
12566 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12569 2014-02-19 Tom Tromey <tromey@redhat.com>
12571 * target.h (struct target_ops) <to_call_history_range>: Add
12573 * target.c (target_call_history_range): Add argument.
12574 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12576 (record_btrace_call_history_from): Update.
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12580 * target.h (struct target_ops) <to_call_history_from>: Add
12582 * target.c (target_call_history_from): Add argument.
12583 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12586 2014-02-19 Tom Tromey <tromey@redhat.com>
12588 * target.h (struct target_ops) <to_call_history>: Add argument.
12589 * target.c (target_call_history): Add argument.
12590 * record-btrace.c (record_btrace_call_history): Add 'self'
12593 2014-02-19 Tom Tromey <tromey@redhat.com>
12595 * target.h (struct target_ops) <to_insn_history_range>: Add
12597 * target.c (target_insn_history_range): Add argument.
12598 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12600 (record_btrace_insn_history_from): Update.
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12604 * target.h (struct target_ops) <to_insn_history_from>: Add
12606 * target.c (target_insn_history_from): Add argument.
12607 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12612 * target.h (struct target_ops) <to_insn_history>: Add argument.
12613 * target.c (target_insn_history): Add argument.
12614 * record-btrace.c (record_btrace_insn_history): Add 'self'
12617 2014-02-19 Tom Tromey <tromey@redhat.com>
12619 * target.h (struct target_ops) <to_goto_record>: Add argument.
12620 * target.c (target_goto_record): Add argument.
12621 * record-full.c (record_full_goto): Add 'self' argument.
12622 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12627 * target.c (target_goto_record_end): Add argument.
12628 * record-full.c (record_full_goto_end): Add 'self' argument.
12629 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12631 2014-02-19 Tom Tromey <tromey@redhat.com>
12633 * target.h (struct target_ops) <to_goto_record_begin>: Add
12635 * target.c (target_goto_record_begin): Add argument.
12636 * record-full.c (record_full_goto_begin): Add 'self' argument.
12637 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target.h (struct target_ops) <to_record_is_replaying>: Add
12644 * target.c (target_record_is_replaying): Add argument.
12645 * record-full.c (record_full_is_replaying): Add 'self' argument.
12646 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12648 (record_btrace_xfer_partial, record_btrace_store_registers)
12649 (record_btrace_prepare_to_store, record_btrace_resume)
12650 (record_btrace_wait, record_btrace_decr_pc_after_break)
12651 (record_btrace_find_new_threads, record_btrace_thread_alive):
12654 2014-02-19 Tom Tromey <tromey@redhat.com>
12656 * target.h (struct target_ops) <to_delete_record>: Add argument.
12657 * target.c (target_delete_record): Add argument.
12658 * record-full.c (record_full_delete): Add 'self' argument.
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12662 * target.h (struct target_ops) <to_save_record>: Add argument.
12663 * target.c (target_save_record): Add argument.
12664 * record-full.c (record_full_save): Add 'self' argument.
12665 (record_full_save): Add 'self' argument.
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12669 * target.h (struct target_ops) <to_info_record>: Add argument.
12670 * target.c (target_info_record): Add argument.
12671 * record.c (info_record_command): Add argument.
12672 * record-full.c (record_full_info): Add 'self' argument.
12673 * record-btrace.c (record_btrace_info): Add 'self' argument.
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12677 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12678 * target.c (target_stop_recording): Add argument.
12679 * record.c (record_stop): Add argument.
12680 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12685 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12686 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12687 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12689 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12690 (_initialize_amd64_linux_nat): Use it.
12691 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12692 (_initialize_i386_linux_nat): Use it.
12694 2014-02-19 Tom Tromey <tromey@redhat.com>
12696 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12697 * target.c (target_teardown_btrace): Add argument.
12698 * remote.c (remote_teardown_btrace): Add 'self' argument.
12699 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12701 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12707 * target.c (target_disable_btrace): Add argument.
12708 * remote.c (remote_disable_btrace): Add 'self' argument.
12709 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12711 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12716 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12717 * target.c (target_enable_btrace): Add argument.
12718 * remote.c (remote_enable_btrace): Add 'self' argument.
12719 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12721 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12724 2014-02-19 Tom Tromey <tromey@redhat.com>
12726 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12727 (target_can_use_agent): Add argument.
12728 * target.c (update_current_target): Update.
12729 * remote.c (remote_can_use_agent): Add 'self' argument.
12730 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12734 * target.h (struct target_ops) <to_use_agent>: Add argument.
12735 (target_use_agent): Add argument.
12736 * target.c (update_current_target): Update.
12737 * remote.c (remote_use_agent): Add 'self' argument.
12738 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12740 2014-02-19 Tom Tromey <tromey@redhat.com>
12742 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12743 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12744 (target_traceframe_info): Add argument.
12745 * target.c (update_current_target): Update.
12746 * remote.c (remote_traceframe_info): Add 'self' argument.
12747 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12751 * target.h (target_static_tracepoint_markers_by_strid): Add
12753 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12755 * target.c (update_current_target): Update.
12756 * remote.c (struct target_ops)
12757 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12758 * linux-nat.c (struct target_ops)
12759 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12763 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12765 (target_static_tracepoint_marker_at): Add argument.
12766 * target.c (update_current_target): Update.
12767 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12772 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12773 (target_set_permissions): Add argument.
12774 * target.c (update_current_target): Update.
12775 * remote.c (remote_set_permissions): Add 'self' argument.
12776 (remote_start_remote): Update.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12781 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12782 (target_get_tib_address): Add argument.
12783 * target.c (update_current_target): Update.
12784 * remote.c (remote_get_tib_address): Add 'self' argument.
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12788 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12789 (target_set_trace_notes): Add argument.
12790 * target.c (update_current_target): Update.
12791 * remote.c (remote_set_trace_notes): Add 'self' argument.
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12795 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12797 (target_set_trace_buffer_size): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12801 2014-02-19 Tom Tromey <tromey@redhat.com>
12803 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12805 (target_set_circular_trace_buffer): Add argument.
12806 * target.c (update_current_target): Update.
12807 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12812 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12814 (target_set_disconnected_tracing): Add argument.
12815 * target.c (update_current_target): Update.
12816 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target.h (struct target_ops)
12821 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12822 (target_get_min_fast_tracepoint_insn_len): Add argument.
12823 * target.c (update_current_target): Update.
12824 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12827 2014-02-19 Tom Tromey <tromey@redhat.com>
12829 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12831 (target_get_raw_trace_data): Add argument.
12832 * target.c (update_current_target): Update.
12833 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12837 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12839 (target_upload_trace_state_variables): Add argument.
12840 * target.c (update_current_target): Update.
12841 * remote.c (remote_upload_trace_state_variables): Add 'self'
12843 (remote_start_remote): Update.
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12847 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12849 (target_upload_tracepoints): Add argument.
12850 * target.c (update_current_target): Update.
12851 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12852 (remote_start_remote): Update.
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12856 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12857 (target_save_trace_data): Add argument.
12858 * target.c (update_current_target): Update.
12859 * remote.c (remote_save_trace_data): Add 'self' argument.
12861 2014-02-19 Tom Tromey <tromey@redhat.com>
12863 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12865 * target.h (struct target_ops)
12866 <to_get_trace_state_variable_value>: Add argument.
12867 (target_get_trace_state_variable_value): Add argument.
12868 * target.c (update_current_target): Update.
12869 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12871 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12873 2014-02-19 Tom Tromey <tromey@redhat.com>
12875 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12876 * target.h (struct target_ops) <to_trace_find>: Add argument.
12877 (target_trace_find): Add argument.
12878 * target.c (update_current_target): Update.
12879 * remote.c (remote_trace_find): Add 'self' argument.
12880 * ctf.c (ctf_trace_find): Add 'self' argument.
12882 2014-02-19 Tom Tromey <tromey@redhat.com>
12884 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12885 (target_trace_stop): Add argument.
12886 * target.c (update_current_target): Update.
12887 * remote.c (remote_trace_stop): Add 'self' argument.
12889 2014-02-19 Tom Tromey <tromey@redhat.com>
12891 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12892 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12894 (target_get_tracepoint_status): Add argument.
12895 * target.c (update_current_target): Update.
12896 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12898 2014-02-19 Tom Tromey <tromey@redhat.com>
12900 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12901 * target.h (struct target_ops) <to_get_trace_status>: Add
12903 (target_get_trace_status): Add argument.
12904 * target.c (update_current_target): Update.
12905 * remote.c (remote_get_trace_status): Add 'self' argument.
12906 (remote_start_remote, remote_can_download_tracepoint): Update.
12907 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12911 * target.h (struct target_ops) <to_trace_start>: Add argument.
12912 (target_trace_start): Add argument.
12913 * target.c (update_current_target): Update.
12914 * remote.c (remote_trace_start): Add 'self' argument.
12916 2014-02-19 Tom Tromey <tromey@redhat.com>
12918 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12920 (target_trace_set_readonly_regions): Add argument.
12921 * target.c (update_current_target): Update.
12922 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12925 2014-02-19 Tom Tromey <tromey@redhat.com>
12927 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12929 (target_disable_tracepoint): Add argument.
12930 * target.c (update_current_target): Update.
12931 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12933 2014-02-19 Tom Tromey <tromey@redhat.com>
12935 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12937 (target_enable_tracepoint): Add argument.
12938 * target.c (update_current_target): Update.
12939 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12943 * target.h (struct target_ops) <to_download_trace_state_variable>:
12945 (target_download_trace_state_variable): Add argument.
12946 * target.c (update_current_target): Update.
12947 * remote.c (remote_download_trace_state_variable): Add 'self'
12950 2014-02-19 Tom Tromey <tromey@redhat.com>
12952 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12954 (target_can_download_tracepoint): Add argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12958 2014-02-19 Tom Tromey <tromey@redhat.com>
12960 * target.h (struct target_ops) <to_download_tracepoint>: Add
12962 (target_download_tracepoint): Add argument.
12963 * target.c (update_current_target): Update.
12964 * remote.c (remote_download_tracepoint): Add 'self' argument.
12966 2014-02-19 Tom Tromey <tromey@redhat.com>
12968 * target.h (struct target_ops) <to_trace_init>: Add argument.
12969 (target_trace_init): Add argument.
12970 * target.c (update_current_target): Update.
12971 * remote.c (remote_trace_init): Add 'self' argument.
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12976 * target.c (target_fileio_readlink): Add argument.
12977 * remote.c (remote_hostio_readlink): Add 'self' argument.
12978 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12980 2014-02-19 Tom Tromey <tromey@redhat.com>
12982 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12983 * target.c (target_fileio_unlink): Add argument.
12984 * remote.c (remote_hostio_unlink): Add 'self' argument.
12985 (remote_file_delete): Update.
12986 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12988 2014-02-19 Tom Tromey <tromey@redhat.com>
12990 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12991 * target.c (target_fileio_close): Add argument.
12992 * remote.c (remote_hostio_close): Add 'self' argument.
12993 (remote_hostio_close_cleanup): Update.
12994 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12996 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12998 2014-02-19 Tom Tromey <tromey@redhat.com>
13000 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13001 * target.c (target_fileio_pread): Add argument.
13002 * remote.c (remote_hostio_pread): Add 'self' argument.
13003 (remote_bfd_iovec_pread, remote_file_get): Update.
13004 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13006 2014-02-19 Tom Tromey <tromey@redhat.com>
13008 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13009 * target.c (target_fileio_pwrite): Add argument.
13010 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13011 (remote_file_put): Update.
13012 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13014 2014-02-19 Tom Tromey <tromey@redhat.com>
13016 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13017 * target.c (target_fileio_open): Add argument.
13018 * remote.c (remote_hostio_open): Add 'self' argument.
13019 (remote_bfd_iovec_open): Add 'self' argument.
13020 (remote_file_put): Add 'self' argument.
13021 (remote_file_get): Add 'self' argument.
13022 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13026 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13028 (target_can_run_breakpoint_commands): Add argument.
13029 * target.c (update_current_target): Update.
13030 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13032 (remote_insert_breakpoint): Add 'self' argument.
13033 (remote_insert_hw_breakpoint): Add 'self' argument.
13034 (remote_can_run_breakpoint_commands): Add 'self' argument.
13036 2014-02-19 Tom Tromey <tromey@redhat.com>
13038 * target.h (struct target_ops)
13039 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13040 (target_supports_evaluation_of_breakpoint_conditions): Add
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13045 (remote_insert_breakpoint): Add 'self' argument.
13046 (remote_insert_hw_breakpoint): Add 'self' argument.
13047 (remote_supports_cond_breakpoints): Add 'self' argument.
13049 2014-02-19 Tom Tromey <tromey@redhat.com>
13051 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13053 (target_supports_string_tracing): Add argument.
13054 * target.c (update_current_target): Update.
13055 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13057 2014-02-19 Tom Tromey <tromey@redhat.com>
13059 * target.h (struct target_ops)
13060 <to_supports_disable_randomization>: Add argument.
13061 * target.c (find_default_supports_disable_randomization): Add
13063 (target_supports_disable_randomization): Add argument.
13064 (find_default_supports_disable_randomization): Add 'self'
13066 * remote.c (extended_remote_supports_disable_randomization): Add
13068 (remote_supports_disable_randomization): Add 'self' argument.
13069 (extended_remote_create_inferior): Update.
13070 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13075 * target.h (struct target_ops)
13076 <to_supports_enable_disable_tracepoint>: Add argument.
13077 (target_supports_enable_disable_tracepoint): Add argument.
13078 * target.c (update_current_target): Update.
13079 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13084 * target.h (struct target_ops) <to_supports_multi_process>: Add
13086 (target_supports_multi_process): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_supports_multi_process): Add 'self' argument.
13089 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13091 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13094 2014-02-19 Tom Tromey <tromey@redhat.com>
13096 * target.h (struct target_ops) <to_execution_direction>: Add
13098 (target_execution_direction): Add argument.
13099 * target.c (default_execution_direction): Add 'self' argument.
13100 * record-full.c (record_full_execution_direction): Add 'self'
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13105 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13107 (target_can_execute_reverse): Add argument.
13108 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13109 * record-full.c (record_full_can_execute_reverse): Add 'self'
13111 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13114 2014-02-19 Tom Tromey <tromey@redhat.com>
13116 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13117 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13119 (target_get_ada_task_ptid): Add argument.
13120 * target.c (update_current_target): Update.
13121 (default_get_ada_task_ptid): Add 'self' argument.
13122 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13123 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13124 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13126 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13128 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13130 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13132 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13133 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13136 2014-02-19 Tom Tromey <tromey@redhat.com>
13138 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13139 (target_goto_bookmark): Add argument.
13140 * target.c (dummy_goto_bookmark): Add 'self' argument.
13141 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13143 2014-02-19 Tom Tromey <tromey@redhat.com>
13145 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13146 (target_get_bookmark): Add argument.
13147 * target.c (dummy_get_bookmark): Add 'self' argument.
13148 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13150 2014-02-19 Tom Tromey <tromey@redhat.com>
13152 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13154 (target_make_corefile_notes): Add argument.
13155 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13156 * procfs.c (procfs_make_note_section): Add 'self' argument.
13157 (procfs_make_note_section): Add 'self' argument.
13158 (procfs_make_note_section): Add 'self' argument.
13159 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13161 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13162 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13163 * exec.c (exec_make_note_section): Add 'self' argument.
13164 (exec_make_note_section): Add 'self' argument.
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13168 * target.h (struct target_ops) <to_find_memory_regions>: Add
13170 (target_find_memory_regions): Add argument.
13171 * target.c (dummy_find_memory_regions): Add 'self' argument.
13172 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13173 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13174 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13175 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13176 * exec. (exec_do_find_memory_regions): New global.
13177 (exec_set_find_memory_regions): Rewrite.
13178 (exec_find_memory_regions): New function.
13179 (init_exec_ops): Use exec_find_memory_regions.
13181 2014-02-19 Tom Tromey <tromey@redhat.com>
13183 * target.h (struct target_ops) <to_supports_non_stop>: Add
13185 * target.c (find_default_supports_non_stop): Add argument.
13186 (target_supports_non_stop): Add argument.
13187 (find_default_supports_non_stop): Add 'self' argument.
13188 * remote.c (remote_supports_non_stop): Add 'self' argument.
13189 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13191 2014-02-19 Tom Tromey <tromey@redhat.com>
13193 * target.h (struct target_ops) <to_log_command>: Add argument.
13194 (target_log_command): Add argument.
13195 * serial.h (serial_log_command): Add 'self' argument.
13196 * serial.c (serial_log_command): Add 'self' argument.
13198 2014-02-19 Tom Tromey <tromey@redhat.com>
13200 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13201 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13203 (target_pid_to_exec_file): Add argument.
13204 * target.c (debug_to_pid_to_exec_file): Add argument.
13205 (update_current_target): Update.
13206 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13207 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13208 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13209 (linux_handle_extended_wait): Update.
13210 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13211 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13212 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13213 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13215 2014-02-19 Tom Tromey <tromey@redhat.com>
13217 * target.h (struct target_ops) <to_rcmd>: Add argument.
13218 (target_rcmd): Add argument.
13219 * target.c (debug_to_rcmd): Add argument.
13220 (update_current_target, do_monitor_command): Update.
13221 * remote.c (remote_rcmd): Add 'self' argument.
13222 * monitor.c (monitor_rcmd): Add 'self' argument.
13224 2014-02-19 Tom Tromey <tromey@redhat.com>
13226 * windows-nat.c (windows_stop): Add 'self' argument.
13227 * target.h (struct target_ops) <to_stop>: Add argument.
13228 * target.c (target_stop): Add argument.
13229 (debug_to_stop): Add argument.
13230 (update_current_target): Update.
13231 * remote.c (remote_stop): Add 'self' argument.
13232 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13233 (gdbsim_cntrl_c): Update.
13234 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13235 * procfs.c (procfs_stop): Add 'self' argument.
13236 * nto-procfs.c (procfs_stop): Add 'self' argument.
13237 * monitor.c (monitor_stop): Add 'self' argument.
13238 (monitor_open): Update.
13239 * linux-nat.c (linux_nat_stop): Add argument.
13240 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13241 * gnu-nat.c (gnu_stop): Add 'self' argument.
13242 * darwin-nat.c (darwin_stop): Add 'self' argument.
13244 2014-02-19 Tom Tromey <tromey@redhat.com>
13246 * target.h (struct target_ops) <to_thread_name>: Add argument.
13247 * target.c (target_thread_name): Add argument.
13248 (update_current_target): Update.
13249 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13251 2014-02-19 Tom Tromey <tromey@redhat.com>
13253 * target.h (struct target_ops) <to_extra_thread_info>: Add
13255 (target_extra_thread_info): Add argument.
13256 * target.c (update_current_target): Update.
13257 * remote.c (remote_threads_extra_info): Add 'self' argument.
13258 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13260 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13261 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13262 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13264 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13266 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13268 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13271 2014-02-19 Tom Tromey <tromey@redhat.com>
13273 * target.h (struct target_ops) <to_program_signals>: Add argument.
13274 * target.c (target_program_signals): Add argument.
13275 * remote.c (remote_program_signals): Add 'self' argument.
13277 2014-02-19 Tom Tromey <tromey@redhat.com>
13279 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13280 * target.c (target_pass_signals): Add argument.
13281 * remote.c (remote_pass_signals): Add 'self' argument.
13282 (remote_start_remote): Update.
13283 * procfs.c (procfs_pass_signals): Add 'self' argument.
13284 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13285 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13286 (linux_nat_create_inferior, linux_nat_attach): Update.
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * windows-nat.c (windows_can_run): Add 'self' argument.
13291 * target.h (struct target_ops) <to_can_run>: Add argument.
13292 (target_can_run): Add argument.
13293 * target.c (debug_to_can_run): Add argument.
13294 (update_current_target): Update.
13295 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13296 * inf-child.c (inf_child_can_run): Add 'self' argument.
13297 * go32-nat.c (go32_can_run): Add 'self' argument.
13299 2014-02-19 Tom Tromey <tromey@redhat.com>
13301 * target.h (struct target_ops) <to_has_exited>: Add argument.
13302 (target_has_exited): Add argument.
13303 * target.c (debug_to_has_exited): Add argument.
13304 (update_current_target): Update.
13306 2014-02-19 Tom Tromey <tromey@redhat.com>
13308 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13310 (target_set_syscall_catchpoint): Add argument.
13311 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13313 * target.c (update_current_target): Update.
13315 2014-02-19 Tom Tromey <tromey@redhat.com>
13317 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13319 (target_remove_exec_catchpoint): Add argument.
13320 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13321 (update_current_target): Update.
13322 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13325 2014-02-19 Tom Tromey <tromey@redhat.com>
13327 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13329 (target_insert_exec_catchpoint): Add argument.
13330 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13331 (update_current_target): Update.
13332 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13335 2014-02-19 Tom Tromey <tromey@redhat.com>
13337 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13339 (target_remove_vfork_catchpoint): Add argument.
13340 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13341 (update_current_target): Update.
13342 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13345 2014-02-19 Tom Tromey <tromey@redhat.com>
13347 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13349 (target_insert_vfork_catchpoint): Add argument.
13350 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13351 (update_current_target): Update.
13352 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13355 2014-02-19 Tom Tromey <tromey@redhat.com>
13357 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13359 (target_remove_fork_catchpoint): Add argument.
13360 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13361 (update_current_target): Update.
13362 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13367 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13369 (target_insert_fork_catchpoint): Add argument.
13370 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13371 (update_current_target): Update.
13372 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13375 2014-02-19 Tom Tromey <tromey@redhat.com>
13377 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13379 (target_post_startup_inferior): Add argument.
13380 * target.c (debug_to_post_startup_inferior): Add argument.
13381 (update_current_target): Update.
13382 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13384 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13386 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13388 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13390 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13392 (super_post_startup_inferior): Likewise.
13393 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13395 (super_post_startup_inferior): Likewise.
13396 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13397 Add 'self' argument.
13398 (super_post_startup_inferior): Likewise.
13400 2014-02-19 Tom Tromey <tromey@redhat.com>
13402 * target.h (struct target_ops) <to_load>: Add argument.
13403 * target.c (target_load): Add argument.
13404 (debug_to_load): Add argument.
13405 (update_current_target): Update.
13406 * remote.c (remote_load): Add 'self' argument.
13407 * remote-sim.c (gdbsim_load): Add 'self' argument.
13408 * remote-mips.c (mips_load): Add 'self' argument.
13409 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13410 * monitor.c (monitor_load): Add 'self' argument.
13411 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13413 2014-02-19 Tom Tromey <tromey@redhat.com>
13415 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13416 (target_terminal_info): Add argument.
13417 * target.c (debug_to_terminal_info): Add argument.
13418 (default_terminal_info): Likewise.
13419 * inflow.c (child_terminal_info): Add 'self' argument.
13420 * inferior.h (child_terminal_info): Add 'self' argument.
13421 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13423 2014-02-19 Tom Tromey <tromey@redhat.com>
13425 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13427 (target_terminal_save_ours): Add argument.
13428 * target.c (debug_to_terminal_save_ours): Add argument.
13429 (update_current_target): Update.
13430 * inflow.c (terminal_save_ours): Add 'self' argument.
13431 * inferior.h (terminal_save_ours): Add 'self' argument.
13433 2014-02-19 Tom Tromey <tromey@redhat.com>
13435 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13436 (target_terminal_ours): Add argument.
13437 * target.c (debug_to_terminal_ours): Add argument.
13438 (update_current_target): Update.
13439 * remote.c (remote_terminal_ours): Add 'self' argument.
13440 (remote_close): Update.
13441 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13442 * inflow.c (terminal_ours): Add 'self' argument.
13443 * inferior.h (terminal_ours): Add 'self' argument.
13444 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13446 2014-02-19 Pedro Alves <palves@redhat.com>
13447 Tom Tromey <tromey@redhat.com>
13449 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13451 (target_terminal_ours_for_output): Add argument.
13452 * target.c (debug_to_terminal_ours_for_output): Add argument.
13453 (update_current_target): Update.
13454 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13455 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13456 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13458 2014-02-19 Tom Tromey <tromey@redhat.com>
13460 * target.h (struct target_ops) <to_terminal_inferior>: Add
13462 * target.c (target_terminal_inferior): Add argument.
13463 (update_current_target): Update.
13464 * remote.c (remote_terminal_inferior): Add 'self' argument.
13465 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13466 * inflow.c (terminal_inferior): Add 'self' argument.
13467 * inferior.h (terminal_inferior): Add 'self' argument.
13468 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13469 (go32_terminal_inferior): Add 'self' argument.
13471 2014-02-19 Tom Tromey <tromey@redhat.com>
13473 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13474 (target_terminal_init): Add argument.
13475 * target.c (debug_to_terminal_init): Add argument.
13476 (update_current_target): Update.
13477 * inflow.c (terminal_init_inferior): Add 'self' argument.
13478 * inferior.h (terminal_init_inferior): Add 'self' argument.
13479 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13480 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13482 2014-02-19 Tom Tromey <tromey@redhat.com>
13484 * target.h (struct target_ops)
13485 <to_can_accel_watchpoint_condition>: Add argument.
13486 (target_can_accel_watchpoint_condition): Add argument.
13487 * target.c (debug_to_can_accel_watchpoint_condition): Add
13489 (update_current_target): Update.
13490 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13493 2014-02-19 Tom Tromey <tromey@redhat.com>
13495 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13497 (target_region_ok_for_hw_watchpoint): Add argument.
13498 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13499 (default_region_ok_for_hw_watchpoint): Add argument.
13500 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13501 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13503 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13505 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13507 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13509 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13511 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13513 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13514 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13516 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13517 Add 'self' argument.
13519 2014-02-19 Tom Tromey <tromey@redhat.com>
13521 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13523 (target_insert_watchpoint): Add argument.
13524 * target.c (debug_to_insert_watchpoint): Add argument.
13525 (update_current_target): Update.
13526 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13527 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13528 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13529 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13530 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13531 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13533 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13534 (procfs_insert_hw_watchpoint): Add 'self' argument.
13535 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13537 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13539 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13541 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13542 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13544 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13547 2014-02-19 Tom Tromey <tromey@redhat.com>
13549 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13551 (target_remove_watchpoint): Add argument.
13552 * target.c (debug_to_remove_watchpoint): Add argument.
13553 (update_current_target): Update.
13554 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13555 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13556 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13557 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13558 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13559 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13561 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13562 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13564 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13566 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13568 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13569 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13571 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13574 2014-02-19 Tom Tromey <tromey@redhat.com>
13576 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13578 (target_remove_hw_breakpoint): Add argument.
13579 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13580 (update_current_target): Update.
13581 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13582 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13584 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13585 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13587 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13590 2014-02-19 Tom Tromey <tromey@redhat.com>
13592 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13594 (target_insert_hw_breakpoint): Add argument.
13595 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13596 (update_current_target): Update.
13597 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13598 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13600 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13601 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13602 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13604 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13607 2014-02-19 Tom Tromey <tromey@redhat.com>
13609 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13611 (target_can_use_hardware_watchpoint): Add argument.
13612 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13613 (update_current_target): Update.
13614 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13616 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13618 * remote.c (remote_check_watch_resources): Add 'self' argument.
13619 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13620 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13622 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13623 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13625 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13627 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13629 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13631 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13633 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13635 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13636 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13638 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13641 2014-02-19 Tom Tromey <tromey@redhat.com>
13643 * target.h (struct target_ops) <to_post_attach>: Add argument.
13644 (target_post_attach): Add argument.
13645 * target.c (debug_to_post_attach): Add argument.
13646 (update_current_target): Update.
13647 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13648 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13649 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13650 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13651 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13653 2014-02-19 Tom Tromey <tromey@redhat.com>
13655 * windows-nat.c (windows_close): Add 'self' argument.
13656 * tracepoint.c (tfile_close): Add 'self' argument.
13657 * target.h (struct target_ops) <to_close>: Add argument.
13658 * target.c (target_close): Add argument.
13659 (update_current_target): Update.
13660 * remote.c (remote_close): Add 'self' argument.
13661 * remote-sim.c (gdbsim_close): Add 'self' argument.
13662 * remote-mips.c (mips_close): Add 'self' argument.
13663 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13664 * record-full.c (record_full_close): Add 'self' argument.
13665 * record-btrace.c (record_btrace_close): Add 'self' argument.
13666 * monitor.h (monitor_close): Add 'self' argument.
13667 * monitor.c (monitor_close): Add 'self' argument.
13668 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13669 * linux-nat.c (linux_nat_close): Add argument.
13670 * go32-nat.c (go32_close): Add 'self' argument.
13671 * exec.c (exec_close_1): Add 'self' argument.
13672 * ctf.c (ctf_close): Add 'self' argument.
13673 * corelow.c (core_close): Add 'self' argument.
13674 (core_close_cleanup): Update.
13675 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13676 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13678 2014-02-19 Tom Tromey <tromey@redhat.com>
13680 * remote.c (remote_load): New function.
13681 (init_remote_ops): Use it.
13683 2014-02-19 Tom Tromey <tromey@redhat.com>
13685 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13687 * common/linux-btrace.h (linux_supports_btrace): Update.
13688 * remote.c (remote_supports_btrace): Add "self" argument.
13689 * target-delegates.c: Rebuild.
13690 * target.c (target_supports_btrace): Remove.
13691 * target.h (struct target_ops) <to_supports_btrace>: Add
13692 target_ops argument.
13693 (target_supports_btrace): New define.
13695 2014-02-19 Tom Tromey <tromey@redhat.com>
13697 * record-full.c (record_full_beneath_to_resume_ops)
13698 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13699 (record_full_beneath_to_wait)
13700 (record_full_beneath_to_store_registers_ops)
13701 (record_full_beneath_to_store_registers)
13702 (record_full_beneath_to_xfer_partial_ops)
13703 (record_full_beneath_to_xfer_partial)
13704 (record_full_beneath_to_insert_breakpoint_ops)
13705 (record_full_beneath_to_insert_breakpoint)
13706 (record_full_beneath_to_remove_breakpoint_ops)
13707 (record_full_beneath_to_remove_breakpoint)
13708 (record_full_beneath_to_stopped_by_watchpoint)
13709 (record_full_beneath_to_stopped_data_address)
13710 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13711 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13712 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13713 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13714 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13715 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13716 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13717 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13718 (record_full_resume, record_full_wait_1)
13719 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13720 (record_full_store_registers, record_full_xfer_partial)
13721 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13722 (record_full_async, record_full_core_xfer_partial): Use target
13724 * target-delegates.c: Rebuild.
13725 * target.c (current_xfer_partial): Remove.
13726 (update_current_target): Do not INHERIT or de_fault
13727 to_insert_breakpoint, to_remove_breakpoint,
13728 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13729 to_is_async_p, to_async. Do not set to_xfer_partial field.
13730 (default_xfer_partial): Simplify.
13731 (current_xfer_partial): Remove.
13732 (target_wait, target_resume): Simplify.
13733 (find_default_can_async_p, find_default_is_async_p): Update.
13734 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13735 to_xfer_partial, to_stopped_by_watchpoint,
13736 to_stopped_data_address.
13737 (target_store_registers): Simplify.
13738 (forward_target_remove_breakpoint)
13739 (forward_target_insert_breakpoint): Remove.
13740 (target_remove_breakpoint, target_insert_breakpoint)
13741 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13742 * target.h (struct target_ops) <to_resume, to_wait,
13743 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13744 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13745 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13747 (forward_target_remove_breakpoint)
13748 (forward_target_insert_breakpoint): Remove.
13749 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13751 (record_btrace_insert_breakpoint): Delegate directly.
13753 2014-02-19 Tom Tromey <tromey@redhat.com>
13756 * target-delegates.c: New file.
13757 * target.c: Include target-delegates.c.
13758 (init_dummy_target): Call install_dummy_methods.
13759 (complete_target_initialization): Call install_delegators.
13760 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13761 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13762 * make-target-delegates: New file.
13764 2014-02-19 Tom Tromey <tromey@redhat.com>
13766 * record.c (find_record_target): Use find_target_at.
13767 * target.c (find_target_at): New function.
13768 * target.h (find_target_at): Declare.
13770 2014-02-19 Tom Tromey <tromey@redhat.com>
13772 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13773 Add 'ops' argument.
13774 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13776 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13777 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13779 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13781 * linux-nat.c (save_sigtrap): Update.
13782 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13783 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13784 (linux_nat_close): Update.
13785 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13787 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13789 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13790 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13791 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13792 (tmp_to_async): Add 'ops' argument.
13793 (record_full_stopped_by_watchpoint, record_full_async)
13794 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13796 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13797 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13798 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13799 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13800 (remote_is_async_p, remote_async): Add 'ops' argument.
13801 (remote_stopped_data_address): Update.
13802 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13803 * target.c (update_current_target)
13804 (find_default_can_async_p, find_default_is_async_p): Update.
13805 (init_dummy_target): Update.
13806 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13807 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13808 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13809 (target_can_async_p, target_is_async_p, target_async)
13810 (target_stopped_by_watchpoint): Update.
13812 2014-02-19 Yao Qi <yao@codesourcery.com>
13815 * gdbarch.sh: Remove startup_gdbarch.
13816 * gdbarch.c: Regenerated.
13817 * gdbarch.h: Likewise.
13819 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13821 * rl78-tdep.c (rl78_g10_register_name): New function.
13822 (rl78_return_value): Add g10 support.
13823 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13826 2014-02-17 Doug Evans <xdje42@gmail.com>
13828 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13829 (SUBDIR_GUILE_SRCS): Ditto.
13830 (scm-gsmob.o): Ditto.
13832 2014-02-17 Yao Qi <yao@codesourcery.com>
13834 * gnu-nat.c (ILL_RPC): Declare defined function.
13836 2014-02-17 Yao Qi <yao@codesourcery.com>
13838 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13839 mach_msg_type_number_t.
13840 (gnu_write_inferior): Likewise.
13842 2014-02-17 Yao Qi <yao@codesourcery.com>
13844 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13846 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13847 (inf_validate_procs, inf_signal): Likewise.
13848 (S_exception_raise_request): Likewise.
13849 (do_mach_notify_dead_name): Likewise.
13850 (steal_exc_port): Likewise.
13851 (gnu_read_inferior): Change 'copy_count''s type to
13852 mach_msg_type_number_t.
13853 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13856 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13858 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13859 flag. Adjust all users; in particular...
13860 (gnu_wait): ..., don't decrement its value in here...
13861 (gnu_create_inferior): ..., and instead set the flag in here,
13862 around the startup_inferior call, and call that one with
13863 START_INFERIOR_TRAPS_EXPECTED.
13865 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13866 (ILL_RPC): ... new macro.
13867 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13868 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13869 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13870 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13871 functions with ILL_RPC macro.
13872 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13873 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13874 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13875 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13876 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13877 (S_proc_getlogin_reply, S_proc_getsid_reply)
13878 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13879 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13880 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13881 (S_proc_getnports_reply, S_proc_is_important_reply)
13882 (S_proc_get_code_reply): New stub functions, generated with
13885 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13886 collected the type check structures.
13888 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13890 2014-02-14 Doug Evans <dje@google.com>
13892 * target.c (target_write_partial): Fix result type.
13894 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13896 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13897 the proper offsets to access fpregset_t.
13899 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13901 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13902 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13903 * h8300-tdep.c (setmachinelist): Remove global.
13904 * hppa-tdep.c (hppa_sigtramp): Remove global.
13905 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13906 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13907 * ravenscar-thread.c (update_target_observer): Remove global.
13908 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13910 2014-02-12 Tom Tromey <tromey@redhat.com>
13912 * common/rsp-low.c: Update comments.
13913 * common/rsp-low.h: Update comments.
13915 2014-02-12 Tom Tromey <tromey@redhat.com>
13917 * common/rsp-low.c (convert_ascii_to_int): Remove.
13918 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13920 2014-02-12 Tom Tromey <tromey@redhat.com>
13922 * common/rsp-low.h (unhexify): Don't declare.
13923 * common/rsp-low.c (unhexify): Remove.
13925 2014-02-12 Tom Tromey <tromey@redhat.com>
13927 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13928 * common/rsp-low.c (convert_int_to_ascii): Remove.
13930 2014-02-12 Tom Tromey <tromey@redhat.com>
13932 * common/rsp-low.h (hexify): Don't declare.
13933 * common/rsp-low.c (hexify): Remove.
13935 2014-02-12 Tom Tromey <tromey@redhat.com>
13937 * common/rsp-low.c (hexify): Never take strlen of argument.
13939 2014-02-12 Tom Tromey <tromey@redhat.com>
13941 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13942 * remote.c (extended_remote_run, remote_rcmd)
13943 (remote_download_trace_state_variable, remote_save_trace_data)
13944 (remote_set_trace_notes): Update.
13945 * tracepoint.c (encode_source_string, tfile_write_status)
13946 (tfile_write_uploaded_tsv): Update.
13948 2014-02-12 Tom Tromey <tromey@redhat.com>
13950 * tracepoint.c: Include rsp-low.h.
13951 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13952 * remote.c: Include rsp-low.h.
13953 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13954 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13955 (remote_unescape_input): Move to common/rsp-low.c.
13956 * common/rsp-low.h: New file.
13957 * common/rsp-low.c: New file.
13958 * Makefile.in (SFILES): Add common/rsp-low.c.
13959 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13960 (COMMON_OBS): Add rsp-low.o.
13961 (rsp-low.o): New target.
13963 2014-02-12 Tom Tromey <tromey@redhat.com>
13965 * utils.h: Include print-utils.h.
13966 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13967 (int_string, core_addr_to_string, core_addr_to_string_nz)
13968 (hex_string, hex_string_custom): Don't declare.
13969 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13970 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13971 (hex_string_custom, int_string, core_addr_to_string)
13972 (core_addr_to_string_nz, host_address_to_string): Move to
13973 common/print-utils.c.
13974 * common/print-utils.h: New file.
13975 * common/print-utils.c: New file
13976 * Makefile.in (SFILES): Add common/print-utils.c.
13977 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13978 (COMMON_OBS): Add print-utils.o.
13979 (print-utils.o): New target.
13981 2014-02-12 Tom Tromey <tromey@redhat.com>
13983 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13985 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13987 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13989 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13991 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13992 if a PT_IO ptrace request returns sucessfully but indicates that 0
13993 bytes were transferred.
13995 2014-02-12 Pedro Alves <palves@redhat.com>
13996 Kevin Buettner <kevinb@redhat.com>
13998 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13999 TYPE_INSTANCE_FLAG_CODE_SPACE.
14001 2014-02-12 Pedro Alves <palves@redhat.com>
14003 * h8300-tdep.c (pseudo_from_raw_register)
14004 (raw_from_pseudo_register): New functions.
14005 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14008 2014-02-12 Pedro Alves <palves@redhat.com>
14010 * h8300-tdep.c (h8300_register_sim_regno): New function.
14011 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14012 gdbarch_register_sim_regno hook.
14014 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14016 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14018 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14020 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14022 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14024 * obsd-tdep.h (obsd_init_abi): New prototype.
14025 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14026 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14027 (obsd_init_abi): New functions.
14028 * i386obsd-tdep.c: Include "obsd-tdep.h".
14029 (i386obsd_init_abi): Call obsd_init_abi.
14030 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14031 (amd64obsd_init_abi): Call obsd_init_abi.
14032 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14033 obsd-tdep.c to gdb_target_obs.
14035 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14037 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14038 double float arguments to 16-byte in the argument slots.
14040 2014-02-11 Doug Evans <xdje42@gmail.com>
14042 * configure.ac: Don't crash if pkg-config is not found and guile
14043 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14045 * configure: Regenerate.
14047 2014-02-11 Yao Qi <yao@codesourcery.com>
14049 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14050 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14051 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14052 * gnu-nat.c (gnu_xfer_memory): Likewise.
14053 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14054 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14055 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14056 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14058 2014-02-11 Yao Qi <yao@codesourcery.com>
14060 * target.h (enum target_xfer_error): Rename to ...
14061 (enum target_xfer_status): ... it. New. All users updated.
14062 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14064 (TARGET_XFER_STATUS_ERROR_P): New macro.
14065 (target_xfer_error_to_string): Remove declaration.
14066 (target_xfer_status_to_string): Declare.
14067 (target_xfer_partial_ftype): Adjust it.
14068 (struct target_ops) <to_xfer_partial>: Return
14069 target_xfer_status. Add argument xfered_len. Update
14071 * target.c (target_xfer_error_to_string): Rename to ...
14072 (target_xfer_status_to_string): ... it. New. All callers
14074 (target_read_live_memory): Likewise. Call target_xfer_partial
14075 instead of target_read.
14076 (memory_xfer_live_readonly_partial): Return
14077 target_xfer_status. Add argument xfered_len.
14078 (raw_memory_xfer_partial): Likewise.
14079 (memory_xfer_partial_1): Likewise.
14080 (memory_xfer_partial): Likewise.
14081 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14082 properly. Update debug message.
14083 (default_xfer_partial, current_xfer_partial): Likewise.
14084 (target_write_partial): Likewise.
14085 (target_read_partial): Likewise. All callers updated.
14086 (read_whatever_is_readable): Likewise.
14087 (target_write_with_progress): Likewise.
14088 (target_read_alloc_1): Likewise.
14090 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14091 * auxv.c (procfs_xfer_auxv): Likewise.
14092 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14093 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14094 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14095 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14096 * corefile.c (read_memory): Adjust.
14097 * corelow.c (core_xfer_partial): Likewise.
14098 * ctf.c (ctf_xfer_partial): Likewise.
14099 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14101 (darwin_xfer_partial): Likewise.
14102 * exec.c (section_table_xfer_memory_partial): Likewise. All
14104 (exec_xfer_partial): Likewise.
14105 * exec.h (section_table_xfer_memory_partial): Update
14107 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14109 (gnu_xfer_partial): Likewise.
14110 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14111 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14112 (ia64_hpux_xfer_solib_got): Likewise.
14113 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14114 type of 'partial_len' to ULONGEST.
14115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14116 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14117 (linux_nat_xfer_partial): Likewise.
14118 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14119 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14120 * monitor.c (monitor_xfer_memory): Likewise.
14121 (monitor_xfer_partial): Likewise.
14122 * procfs.c (procfs_xfer_partial): Likewise.
14123 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14124 * record-full.c (record_full_xfer_partial): Likewise.
14125 (record_full_core_xfer_partial): Likewise.
14126 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14127 (gdbsim_xfer_partial): Likewise.
14128 * remote.c (remote_write_bytes_aux): Likewise. All callers
14130 (remote_write_bytes, remote_read_bytes): Likewise. All
14132 (remote_flash_erase): Likewise. All callers updated.
14133 (remote_write_qxfer): Likewise. All callers updated.
14134 (remote_read_qxfer): Likewise. All callers updated.
14135 (remote_xfer_partial): Likewise.
14136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14137 (rs6000_xfer_shared_libraries): Likewise.
14138 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14139 (sol_thread_xfer_partial): Likewise.
14140 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14141 (sparc_xfer_partial): Likewise.
14142 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14144 (spu_xfer_partial): Likewise.
14145 * spu-multiarch.c (spu_xfer_partial): Likewise.
14146 * tracepoint.c (tfile_xfer_partial): Likewise.
14147 * windows-nat.c (windows_xfer_memory): Likewise.
14148 (windows_xfer_shared_libraries): Likewise.
14149 (windows_xfer_partial): Likewise.
14150 * valprint.c: Replace 'target_xfer_error' with
14151 'target_xfer_status' in comments.
14153 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14155 Checked in by Joel Brobecker <brobecker@adacore.com>.
14156 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14158 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14160 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14161 function parameters.
14163 2014-02-10 Will Newton <will.newton@linaro.org>
14165 * elfread.c (elf_rel_plt_read): Look for a .got section if
14166 looking up .got.plt fails.
14167 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14168 on address passed to elf_gnu_ifunc_record_cache.
14169 (elf_gnu_ifunc_resolve_addr): Likewise.
14170 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14172 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14174 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14175 (X_RETTURN): New macro.
14176 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14178 * sparc64-tdep.c (sparc64_init_abi): Hook
14179 sparc_in_function_epilogue_p.
14181 2014-02-10 Gary Benson <gbenson@redhat.com>
14183 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14184 Rename name_matcher to symbol_matcher.
14186 2014-02-10 Gary Benson <gbenson@redhat.com>
14188 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14189 Use expand_symtabs_file_matcher_ftype and
14190 expand_symtabs_symbol_matcher_ftype.
14192 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14194 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14195 (struct ada_symbol_cache): New.
14196 (ada_free_symbol_cache): Forward declare.
14197 (struct ada_pspace_data): New.
14198 (ada_pspace_data_handle): New static global.
14199 (get_ada_pspace_data, ada_pspace_data_cleanup)
14200 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14201 (cache_space, cache): Delete, now folded inside struct
14203 (ada_get_symbol_cache): New function.
14204 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14206 (_initialize_ada_language): Remove initialization of cache_space.
14207 Move call to observer_attach_inferior_exit up, grouping it
14208 with the other observer registrations inside this function.
14209 Rename command to be more general. Add call to
14210 register_program_space_data_with_cleanup.
14212 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14214 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14215 ada_new_objfile_observer.
14216 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14217 (_initialize_tasks): Update uses of ada_new_objfile_observer
14218 and ada_tasks_normal_stop_observer.
14220 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14222 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14223 returned by the 'Length attribute to integer.
14225 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14227 * ada-lang.c (_initialize_ada_language): Initialize
14228 cache_space obstack.
14230 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14232 * ada-lang.c (HASH_SIZE): New macro.
14233 (struct cache_entry): New type.
14234 (cache_space, cache): New static globals.
14235 (ada_clear_symbol_cache, find_entry): New functions.
14236 (lookup_cached_symbol, cache_symbol): Implement.
14237 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14238 (_initialize_ada_language): Attach ada_new_objfile_observer
14239 and ada_free_objfile_observer.
14241 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14243 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14244 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14245 struct block * parameter.
14246 (ada_lookup_symbol_list_worker): Constify local variable "block".
14247 Remove cast which is no longer necessary.
14249 2014-02-10 Doug Evans <xdje42@gmail.com>
14251 Add Guile as an extension language.
14252 * NEWS: Mention Guile scripting.
14253 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14254 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14255 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14256 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14257 (CLIBS): Add GUILE_LIBS.
14258 (install-guile): New rule.
14259 (guile.o): New rule.
14260 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14261 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14262 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14263 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14264 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14265 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14266 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14267 * configure.ac: New option --with-guile.
14268 * configure: Regenerate.
14269 * config.in: Regenerate.
14270 * auto-load.c: Remove #include "python/python.h". Add #include
14271 "gdb/section-scripts.h".
14272 (source_section_scripts): Handle Guile scripts.
14273 (_initialize_auto_load): Add name of Guile objfile script to
14274 scripts-directory help text.
14275 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14276 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14277 (struct breakpoint): New member scm_bp_object.
14278 * defs.h (enum command_control_type): New value guile_control.
14279 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14281 (show_user): Update comment.
14282 (_initialize_cli_cmds): Update help text for "show user". Update help
14283 text for max-user-call-depth.
14284 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14286 (multi_line_command_p): Add guile_control.
14287 (print_command_lines): Handle guile_control.
14288 (execute_control_command, recurse_read_control_structure): Ditto.
14289 (process_next_line): Recognize "guile" commands.
14290 * disasm.c (gdb_disassemble_info): Make non-static.
14291 * disasm.h: #include "dis-asm.h".
14292 (struct gdbarch): Add forward decl.
14293 (gdb_disassemble_info): Declare.
14294 * extension.c: #include "guile/guile.h".
14295 (extension_languages): Add guile.
14296 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14297 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14298 * gdbtypes.c (get_unsigned_type_max): New function.
14299 (get_signed_type_minmax): New function.
14300 * gdbtypes.h (get_unsigned_type_max): Declare.
14301 (get_signed_type_minmax): Declare.
14302 * guile/README: New file.
14303 * guile/guile-internal.h: New file.
14304 * guile/guile.c: New file.
14305 * guile/guile.h: New file.
14306 * guile/scm-arch.c: New file.
14307 * guile/scm-auto-load.c: New file.
14308 * guile/scm-block.c: New file.
14309 * guile/scm-breakpoint.c: New file.
14310 * guile/scm-disasm.c: New file.
14311 * guile/scm-exception.c: New file.
14312 * guile/scm-frame.c: New file.
14313 * guile/scm-gsmob.c: New file.
14314 * guile/scm-iterator.c: New file.
14315 * guile/scm-lazy-string.c: New file.
14316 * guile/scm-math.c: New file.
14317 * guile/scm-objfile.c: New file.
14318 * guile/scm-ports.c: New file.
14319 * guile/scm-pretty-print.c: New file.
14320 * guile/scm-safe-call.c: New file.
14321 * guile/scm-string.c: New file.
14322 * guile/scm-symbol.c: New file.
14323 * guile/scm-symtab.c: New file.
14324 * guile/scm-type.c: New file.
14325 * guile/scm-utils.c: New file.
14326 * guile/scm-value.c: New file.
14327 * guile/lib/gdb.scm: New file.
14328 * guile/lib/gdb/boot.scm: New file.
14329 * guile/lib/gdb/experimental.scm: New file.
14330 * guile/lib/gdb/init.scm: New file.
14331 * guile/lib/gdb/iterator.scm: New file.
14332 * guile/lib/gdb/printing.scm: New file.
14333 * guile/lib/gdb/types.scm: New file.
14334 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14335 (VPATH): Add $(GUILE_SRCDIR).
14336 (GUILE_DIR): New variable.
14337 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14338 (all): Add stamp-guile dependency.
14339 (stamp-guile): New rule.
14340 (clean-guile, install-guile, uninstall-guile): New rules.
14341 (install-only): Add install-guile dependency.
14342 (uninstall): Add uninstall-guile dependency.
14343 (clean): Add clean-guile dependency.
14345 2014-02-09 Doug Evans <xdje42@gmail.com>
14347 Revert this patch (which I approved, mea culpa).
14349 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14351 * Makefile.in (all-lib): Remove.
14352 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14354 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14356 Fix Python stack corruption.
14357 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14360 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14362 * Makefile.in (all-lib): Remove.
14363 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14365 2014-02-07 Doug Evans <dje@google.com>
14367 * extension-priv.h (extension_language_script_ops): Add comment.
14368 (extension_language_ops): Add comment.
14369 (active_ext_lang_state): Fix typo in comment.
14371 2014-02-07 Pedro Alves <palves@redhat.com>
14373 PR breakpoints/16292
14374 * infrun.c (handle_signal_stop) <signal arrives while stepping
14375 over a breakpoint>: Switch back to the stepping thread.
14377 2014-02-07 Yao Qi <yao@codesourcery.com>
14379 * target.c (target_xfer_partial): Return zero if LEN is zero.
14381 2014-02-07 Yao Qi <yao@codesourcery.com>
14383 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14384 (ld_so_xfer_auxv): Likewise.
14385 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14386 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14387 * corelow.c (core_xfer_partial): Likewise.
14388 * ctf.c (ctf_xfer_partial): Likewise.
14389 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14390 (darwin_xfer_partial): Likewise.
14391 * exec.c (exec_xfer_partial): Likewise.
14392 * gnu-nat.c (gnu_xfer_partial): Likewise.
14393 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14394 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14395 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14396 * linux-nat.c (linux_xfer_siginfo): Likewise.
14397 (linux_proc_xfer_spu): Likewise.
14398 * procfs.c (procfs_xfer_partial): Likewise.
14399 * record-full.c (record_full_xfer_partial): Likewise.
14400 (record_full_core_xfer_partial): Likewise.
14401 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14402 * remote.c (remote_write_qxfer): Likewise.
14403 (remote_write_qxfer, remote_read_qxfer): Likewise.
14404 (remote_xfer_partial): Likewise.
14405 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14406 (rs6000_xfer_shared_libraries): Likewise.
14407 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14408 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14409 (spu_xfer_partial): Likewise.
14410 * target.c (memory_xfer_partial_1): Likewise.
14411 * tracepoint.c (tfile_xfer_partial): Likewise.
14412 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14413 (windows_xfer_partial): Likewise.
14415 2014-02-07 Yao Qi <yao@codesourcery.com>
14417 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14419 (core_xfer_shared_libraries_aix): Likewise.
14420 * gdbarch.c, gdbarch.h: Regenerated.
14421 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14422 ULONGEST. Change 'len_avail' type to ULONGEST.
14423 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14424 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14426 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14428 2014-02-07 Yao Qi <yao@codesourcery.com>
14430 * corefile.c (memory_error): Get 'exception' from ERR and pass
14431 'exception' to throw_error.
14433 2014-02-06 Doug Evans <xdje42@gmail.com>
14435 * configure.ac (libpython checking): Remove all but python.o from
14436 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14437 * configure: Regenerate.
14439 * Makefile.in (SFILES): Add extension.c.
14440 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14441 (COMMON_OBS): Add extension.o.
14442 * extension.h: New file.
14443 * extension-priv.h: New file.
14444 * extension.c: New file.
14446 * python/python-internal.h: #include "extension.h".
14447 (gdbpy_auto_load_enabled): Declare.
14448 (gdbpy_apply_val_pretty_printer): Declare.
14449 (gdbpy_apply_frame_filter): Declare.
14450 (gdbpy_preserve_values): Declare.
14451 (gdbpy_breakpoint_cond_says_stop): Declare.
14452 (gdbpy_breakpoint_has_cond): Declare.
14453 (void source_python_script_for_objfile): Delete.
14454 * python/python.c: #include "extension-priv.h".
14455 Delete inclusion of "observer.h".
14456 (extension_language_python): Moved here and renamed from
14457 script_language_python in py-auto-load.c.
14458 Redefined to be of type extension_language_defn.
14459 (python_extension_script_ops): New global.
14460 (python_extension_ops): New global.
14461 (struct python_env): New member previous_active.
14462 (restore_python_env): Call restore_active_ext_lang.
14463 (ensure_python_env): Call set_active_ext_lang.
14464 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14466 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14468 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14470 (gdbpy_eval_from_control_command): Renamed from
14471 eval_python_from_control_command, made static. New arg extlang.
14472 (gdbpy_source_script) Renamed from source_python_script, made static.
14474 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14475 result to int. New arg extlang.
14476 (gdbpy_source_objfile_script): Renamed from
14477 source_python_script_for_objfile, made static. New arg extlang.
14478 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14479 static. New args extlang, extlang_printers. Change result type to
14481 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14482 static. New arg extlang. Rename arg printers to extlang_printers
14483 and change type to ext_lang_type_printers *.
14484 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14485 static. Replace argument arg with extlang, extlang_printers.
14486 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14487 (!HAVE_PYTHON, source_python_script): Delete.
14488 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14489 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14490 (!HAVE_PYTHON, start_type_printers): Delete.
14491 (!HAVE_PYTHON, apply_type_printers): Delete.
14492 (!HAVE_PYTHON, free_type_printers): Delete.
14493 (_initialize_python): Delete call to observer_attach_before_prompt.
14494 (finalize_python): Set/restore active extension language.
14495 (gdbpy_finish_initialization) Renamed from
14496 finish_python_initialization, made static. New arg extlang.
14497 (gdbpy_initialized): New function.
14498 * python/python.h: #include "extension.h". Delete #include
14499 "value.h", "mi/mi-cmds.h".
14500 (extension_language_python): Declare.
14501 (GDBPY_AUTO_FILE_NAME): Delete.
14502 (enum py_bt_status): Moved to extension.h and renamed to
14503 ext_lang_bt_status.
14504 (enum frame_filter_flags): Moved to extension.h.
14505 (enum py_frame_args): Moved to extension.h and renamed to
14506 ext_lang_frame_args.
14507 (finish_python_initialization): Delete.
14508 (eval_python_from_control_command): Delete.
14509 (source_python_script): Delete.
14510 (apply_val_pretty_printer): Delete.
14511 (apply_frame_filter): Delete.
14512 (preserve_python_values): Delete.
14513 (gdbpy_script_language_defn): Delete.
14514 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14515 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14517 * auto-load.c: #include "extension.h".
14518 (GDB_AUTO_FILE_NAME): Delete.
14519 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14520 (script_language_gdb): Delete, moved to extension.c and renamed to
14521 extension_language_gdb.
14522 (source_gdb_script_for_objfile): Delete.
14523 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14524 (loaded_script): Change type of language member to
14525 struct extension_language_defn *.
14526 (init_loaded_scripts_info): Initialize
14527 unsupported_script_warning_printed.
14528 (maybe_add_script): Make static. Change type of language arg to
14529 struct extension_language_defn *.
14530 (clear_section_scripts): Reset unsupported_script_warning_printed.
14531 (auto_load_objfile_script_1): Rewrite to use extension language API.
14532 (auto_load_objfile_script): Make public. Remove support-compiled-in
14533 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14534 (source_section_scripts): Rewrite to use extension language API.
14535 (load_auto_scripts_for_objfile): Rewrite to use
14536 auto_load_scripts_for_objfile.
14537 (collect_matching_scripts_data): Change type of language member to
14538 struct extension_language_defn *.
14539 (auto_load_info_scripts): Change type of language arg to
14540 struct extension_language_defn *.
14541 (unsupported_script_warning_print): New function.
14542 (script_not_found_warning_print): Make static.
14543 (_initialize_auto_load): Rewrite construction of scripts-directory
14545 * auto-load.h (struct objfile): Add forward decl.
14546 (struct script_language): Delete.
14547 (struct auto_load_pspace_info): Add forward decl.
14548 (struct extension_language_defn): Add forward decl.
14549 (maybe_add_script): Delete.
14550 (auto_load_objfile_script): Declare.
14551 (script_not_found_warning_print): Delete.
14552 (auto_load_info_scripts): Update prototype.
14553 (auto_load_gdb_scripts_enabled): Declare.
14554 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14555 auto_load_python_scripts_enabled and made public.
14556 (script_language_python): Delete, moved to python.c.
14557 (gdbpy_script_language_defn): Delete.
14558 (info_auto_load_python_scripts): Update to use
14559 extension_language_python.
14561 * breakpoint.c (condition_command): Replace call to
14562 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14563 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14564 with call to breakpoint_ext_lang_cond_says_stop.
14565 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14566 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14567 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14568 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14570 (local_setattro): Print name of extension language with existing
14573 * valprint.c (val_print, value_print): Update to call
14574 apply_ext_lang_val_pretty_printer.
14575 * cp-valprint.c (cp_print_value): Update call to
14576 apply_ext_lang_val_pretty_printer.
14577 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14578 (gdbpy_apply_val_pretty_printer): Renamed from
14579 apply_val_pretty_printer. New arg extlang.
14580 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14582 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14583 extension language API.
14584 * cli/cli-script.c (execute_control_command): Update to call
14585 eval_ext_lang_from_control_command.
14587 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14588 enum ext_lang_bt_status values. Update call to
14589 apply_ext_lang_frame_filter.
14590 (mi_cmd_stack_list_locals): Ditto.
14591 (mi_cmd_stack_list_args): Ditto.
14592 (mi_cmd_stack_list_variables): Ditto.
14593 * mi/mi-main.c: Delete #include "python/python-internal.h".
14594 Add #include "extension.h".
14595 (mi_cmd_list_features): Replace reference to python internal variable
14596 gdb_python_initialized with call to ext_lang_initialized_p.
14598 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14599 Update to use enum ext_lang_frame_args. Update to call
14600 apply_ext_lang_frame_filter.
14601 * python/py-framefilter.c (extract_sym): Update to use enum
14602 ext_lang_bt_status.
14603 (extract_value, py_print_type, py_print_value): Ditto.
14604 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14605 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14606 (py_print_frame): Ditto.
14607 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14608 New arg extlang. Update to use enum ext_lang_bt_status.
14610 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14611 finish_python_initialization. Replace with call to
14612 finish_ext_lang_initialization.
14614 * typeprint.c (do_free_global_table): Update to call
14615 free_ext_lang_type_printers.
14616 (create_global_typedef_table): Update to call
14617 start_ext_lang_type_printers.
14618 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14619 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14620 (type_print_options): Change type of global_printers from "void *"
14621 to "struct ext_lang_type_printers *".
14623 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14624 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14625 (gdbpy_preserve_values): Renamed from preserve_python_values.
14627 (!HAVE_PYTHON, preserve_python_values): Delete.
14629 * utils.c (quit_flag): Delete, moved to extension.c.
14630 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14633 * eval.c: Delete #include "python/python.h".
14634 * main.c: Delete #include "python/python.h".
14636 * defs.h: Update comment.
14638 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14642 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14644 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14647 2014-02-05 Yao Qi <yao@codesourcery.com>
14649 * remote.c (remote_pass_signals): Remove local 'buf' and use
14651 (remote_program_signals): Likewise.
14653 2014-02-05 Yao Qi <yao@codesourcery.com>
14655 * ctf.c: Include "inferior.h" and "gdbthread.h".
14656 (CTF_PID): A new macro.
14657 (ctf_open): Call inferior_appeared and add_thread_silent.
14658 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14659 (ctf_thread_alive): New function.
14660 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14662 2014-02-05 Yao Qi <yao@codesourcery.com>
14666 2013-05-24 Yao Qi <yao@codesourcery.com>
14668 * tracepoint.c (TFILE_PID): Remove.
14669 (tfile_open): Don't add thread and inferior.
14670 (tfile_close): Don't set 'inferior_ptid'. Don't call
14671 exit_inferior_silent.
14672 (tfile_thread_alive): Remove.
14673 (init_tfile_ops): Don't set field 'to_thread_alive' of
14676 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14678 * remote.c (remote_start_remote): Call remote_check_symbols even
14679 if only symbol-file (not file) has been given.
14681 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14683 * gdbarch.sh (skip_entrypoint): New callback.
14684 * gdbarch.c, gdbarch.h: Regenerate.
14685 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14686 * infrun.c (fill_in_stop_func): Likewise.
14687 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14688 (ppc_elfv2_elf_make_msymbol_special): New function.
14689 (ppc_elfv2_skip_entrypoint): Likewise.
14690 (ppc_linux_init_abi): Install them for ELFv2.
14692 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14694 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14695 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14696 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14697 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14698 structures returned in GPRs.
14700 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14702 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14703 offset to the stack parameter list for the ELFv2 ABI.
14705 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14707 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14708 set_gdbarch_convert_from_func_ptr_addr and
14709 set_gdbarch_elf_make_msymbol_special for ELFv1.
14710 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14711 function descriptors on ELFv1.
14712 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14713 set up r12 at function entry.
14715 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14717 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14718 (struct gdbarch_tdep): New member elf_abi.
14720 * rs6000-tdep.c: Include "elf/ppc64.h".
14721 (rs6000_gdbarch_init): Detect ELF ABI version.
14723 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14726 within a register pair holding a DFP 128-bit value on little-endian.
14727 (ppc64_sysv_abi_return_value_base): Likewise.
14728 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14729 (dfp_pseudo_register_write): Likewise.
14731 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14733 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14734 offset on little-endian when passing _Decimal32.
14735 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14737 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14739 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14740 of the overlapped FP register within the VSX register on little-
14742 (efpr_pseudo_register_write): Likewise.
14744 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14746 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14747 offset on little-endian when passing small structures.
14749 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14751 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14752 (struct ppc64_sysv_argpos): New data structure.
14753 (ppc64_sysv_abi_push_float): Remove.
14754 (ppc64_sysv_abi_push_val): New function.
14755 (ppc64_sysv_abi_push_integer): Likewise.
14756 (ppc64_sysv_abi_push_freg): Likewise.
14757 (ppc64_sysv_abi_push_vreg): Likewise.
14758 (ppc64_sysv_abi_push_param): Likewise.
14759 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14760 (ppc64_sysv_abi_return_value_base): New function.
14761 (ppc64_sysv_abi_return_value): Refactor to use it.
14763 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14765 * NEWS: Document new target powerpc64le-*-linux*.
14767 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14769 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14770 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14772 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14773 register set used in ELF core dumps. Add floating-point register set.
14775 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14777 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14778 dwarf2_to_gdb[] table using symbolic constants. Adjust
14779 penultimate entry from number representing the PC register
14780 to symbolic constant representing the MDR register. Add
14781 constant for the PC register to the end of the table.
14783 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14785 * bsd-kvm.c: Include <sys/param.h>
14787 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14789 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14791 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14793 * ada-lang.h (clear_ada_sym_cache): Delete.
14795 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14797 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14799 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14801 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14802 the sigreturn register save area only if the syscall is
14805 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14807 * valops.c (value_slice): Minor reformatting.
14809 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14811 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14813 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14815 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14816 New static globals.
14817 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14818 (ada_ignore_descriptive_types_p): New static global.
14819 (find_parallel_type_by_descriptive_type): Return immediately
14820 if ada_ignore_descriptive_types_p is set.
14821 (_initialize_ada_language): Register new commands "maintenance
14822 set ada", "maintenance show ada", "maintenance set ada
14823 ignore-descriptive-types" and "maintenance show ada
14824 ignore-descriptive-types".
14825 * NEWS: Add entry for new "maint ada set/show
14826 ignore-descriptive-types" commands.
14828 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14830 * record-btrace.c (record_btrace_close): Call btrace_teardown
14833 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14835 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14840 * ada-typeprint (type_is_full_subrange_of_target_type):
14842 (print_range): Add parameter bounds_prefered_p. If not set,
14843 try printing range types using the name of their base type.
14844 (print_range_type): Add parameter bounds_prefered_p.
14845 Use it in call to print_range.
14846 (print_array_type, ada_print_type): Update calls to print_range
14847 and print_range_type.
14849 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14851 * ada-typeprint.c (print_array_type, print_choices, print_range)
14852 (print_range_bound, print_dynamic_range_bound, print_range_type):
14853 Remove declaration.
14855 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14857 * ada-typeprint.c (print_range): Add missing empty line
14858 after local declaration.
14860 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14862 * ada-valprint.c (print_optional_low_bound): Get index_type's
14863 target type for as long as it is a TYPE_CODE_RANGE.
14865 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14867 * procfs.c (procfs_make_note_section): Remove assertion and
14868 associated comment.
14870 2014-01-24 Yao Qi <yao@codesourcery.com>
14872 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14873 * corelow.c (get_core_siginfo): Likewise.
14875 2014-01-24 Yao Qi <yao@codesourcery.com>
14877 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14878 ULONGEST. Don't check 'len' is negative.
14879 (remote_write_bytes): Change type of 'len' to ULONGEST.
14881 2014-01-23 Tom Tromey <tromey@redhat.com>
14884 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14885 Handle exception from frame.block.
14886 (FrameVars.fetch_frame_locals): Likewise.
14888 2014-01-23 Tom Tromey <tromey@redhat.com>
14891 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14892 on a NULL pointer. Move "goto error" to correct place.
14894 2014-01-23 Tom Tromey <tromey@redhat.com>
14897 * python/py-framefilter.c (apply_frame_filter): Call
14898 ensure_python_env after computing gdbarch.
14900 2014-01-23 Yao Qi <yao@codesourcery.com>
14902 * target.c (raw_memory_xfer_partial): Change argument type
14903 from void * to gdb_byte *.
14904 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14906 2014-01-22 Doug Evans <dje@google.com>
14908 New gdbserver option --debug-format=timestamp.
14909 * NEWS: Mention it.
14911 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14913 * syscalls/s390x-linux.xml: New file.
14914 * syscalls/s390-linux.xml: New file.
14915 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14916 (XML_SYSCALL_FILENAME_S390X): Likewise.
14917 (op_svc): New enum value for SVC opcode.
14918 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14919 (s390_linux_get_syscall_number): New function.
14920 (s390_gdbarch_init): Register '*get_syscall_number' and the
14921 syscall xml file name.
14922 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14923 "s390-linux.xml" and "s390x-linux.xml".
14924 * NEWS: Announce new feature.
14926 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14928 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14930 2014-01-22 Pedro Alves <palves@redhat.com>
14932 * xtensa-config.c: Include defs.h.
14934 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14936 * common/common-utils.h: Add "ARI:" comment beside __func__
14939 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14941 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14942 documentation a bit.
14944 2014-01-21 Roland McGrath <mcgrathr@google.com>
14946 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14947 * configure: Regenerate.
14948 * aclocal.m4: Regenerate.
14949 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14950 New substituted variables.
14951 (install-strip): New target.
14952 (INSTALL_SCRIPT): New substituted variable.
14953 (FLAGS_TO_PASS): Add it.
14954 (install-only): Use $(INSTALL_SCRIPT) rather than
14955 $(INSTALL_PROGRAM) for gcore.
14957 2014-01-20 Tom Tromey <tromey@redhat.com>
14959 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14962 2014-01-20 Tom Tromey <tromey@redhat.com>
14964 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14965 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14966 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14967 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14968 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14969 (struct cmd_list_element) <flags>: Remove.
14970 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14971 doc_allocated>: New fields.
14972 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14974 * maint.c (maintenance_do_deprecate): Update.
14975 * top.c (execute_command): Update.
14977 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14979 * xtensa-linux-nat.c: Include asm/ptrace.h.
14981 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14983 * Makefile.in (SFILES): Add d-support.c.
14984 (COMMON_OBS): Add d-support.o.
14985 * d-lang.h (d_parse_symbol): Add comment, now defined in
14987 * d-lang.c (parse_call_convention)
14988 (parse_attributes, parse_function_types)
14989 (parse_function_args, parse_type, parse_identifier)
14990 (call_convention_p, d_parse_symbol): Move functions to ...
14991 * d-support.c: ... New file.
14993 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14995 * d-lang.h (d_parse_symbol): Add declaration.
14996 * d-lang.c (extract_identifiers)
14997 (extract_type_info): Remove functions.
14998 (parse_call_convention, parse_attributes)
14999 (parse_function_types, parse_function_args)
15000 (parse_type, parse_identifier, call_convention_p)
15001 (d_parse_symbol): New functions.
15002 (d_demangle): Use d_parse_symbol to demangle D symbols.
15004 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15006 * d-lang.h (struct builtin_d_type): New data type.
15007 (builtin_d_type): Add declaration.
15008 * d-lang.c (d_language_arch_info, build_d_types)
15009 (builtin_d_type): New functions.
15010 (enum d_primitive_types): New data type.
15011 (d_language_defn): Change c_language_arch_info to
15012 d_language_arch_info.
15013 (d_type_data): New static variable.
15014 (_initialize_d_language): Initialize d_type_data.
15016 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15018 * d-lang.h (d_main_name): Add declaration.
15019 * d-lang.c (d_main_name): New function.
15020 * symtab.c (find_main_name): Add call to d_main_name.
15022 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15024 * d-lang.c (d_language_defn): Change macro_expansion_c to
15025 macro_expansion_no.
15027 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15029 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15031 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15033 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15034 gdb_exception" declaration.
15035 * remote.c (getpkt_or_notif_sane): Likewise.
15037 2014-01-17 Doug Evans <dje@google.com>
15039 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15040 function, contents of dirnames_to_char_ptr_vec_append moved here.
15041 (delim_string_to_char_ptr_vec): New function.
15042 (dirnames_to_char_ptr_vec_append): Rewrite.
15043 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15045 2014-01-17 Doug Evans <dje@google.com>
15047 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15049 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15050 #include "common-utils.h".
15051 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15052 * common/vec.h (VEC_ASSERT_PASS): Update.
15053 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15054 (MACH_CHECK_ERROR): Update.
15056 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15058 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15060 * gdbarch.h: Regenerate.
15062 2014-01-16 Tom Tromey <tromey@redhat.com>
15064 * value.c (struct value) <regnum>: Move earlier.
15066 2014-01-16 Tom Tromey <tromey@redhat.com>
15068 * remote.c (extended_remote_create_inferior): Rename from
15069 extended_remote_create_inferior_1. Add "ops" argument. Remove
15070 old implementation.
15072 2014-01-16 Pedro Alves <palves@redhat.com>
15074 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15075 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15078 2014-01-16 Doug Evans <dje@google.com>
15080 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15084 * btrace.h (btrace_thread_flag): New.
15085 (struct btrace_thread_info) <flags>: New.
15086 * record-btrace.c (record_btrace_resume_thread)
15087 (record_btrace_find_thread_to_move, btrace_step_no_history)
15088 (btrace_step_stopped, record_btrace_start_replaying)
15089 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15090 (record_btrace_find_resume_thread): New.
15091 (record_btrace_resume, record_btrace_wait): Extend.
15092 (record_btrace_can_execute_reverse): New.
15093 (record_btrace_open): Fail in non-stop mode.
15094 (record_btrace_set_replay): Split into this, ...
15095 (record_btrace_stop_replaying): ... this, ...
15096 (record_btrace_clear_histories): ... and this.
15097 (init_record_btrace_ops): Init to_can_execute_reverse.
15098 * NEWS: Announce it.
15100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15102 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15103 (forward_target_decr_pc_after_break)
15104 (target_decr_pc_after_break): New.
15105 * target.c (forward_target_decr_pc_after_break)
15106 (target_decr_pc_after_break): New.
15107 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15108 instead of gdbarch_decr_pc_after_break.
15109 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15110 instead of gdbarch_decr_pc_after_break.
15111 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15112 instead of gdbarch_decr_pc_after_break.
15113 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15114 instead of gdbarch_decr_pc_after_break.
15115 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15116 instead of gdbarch_decr_pc_after_break.
15117 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15118 instead of gdbarch_decr_pc_after_break.
15120 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15122 * btrace.c: Include regcache.h.
15123 (btrace_add_pc): New.
15124 (btrace_enable): Call btrace_add_pc.
15125 (btrace_is_empty): New.
15126 * btrace.h (btrace_is_empty): New.
15127 * record-btrace.c (require_btrace, record_btrace_info): Call
15130 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15132 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15133 Support delta reads.
15134 (linux_disable_btrace): Change return type.
15135 * common/linux-btrace.h (linux_read_btrace): Change parameters
15136 and return type to allow error reporting. Update users.
15137 (linux_disable_btrace): Change return type. Update users.
15138 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15140 (btrace_error): New.
15141 (btrace_block) <begin>: Comment on BEGIN == 0.
15142 * btrace.c (btrace_compute_ftrace): Start from the end of
15144 (btrace_stitch_trace, btrace_clear_history): New.
15145 (btrace_fetch): Read delta trace, return if replaying.
15146 (btrace_clear): Move clear history code to btrace_clear_history.
15147 (parse_xml_btrace): Throw an error if parsing failed.
15148 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15149 and return type to allow error reporting.
15150 (target_read_btrace): Change parameters and return type to allow
15152 * target.c (target_read_btrace): Update.
15153 * remote.c (remote_read_btrace): Support delta reads. Pass
15155 * NEWS: Announce it.
15157 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15159 * record.h (record_btrace_frame_unwind)
15160 (record_btrace_tailcall_frame_unwind): New declarations.
15161 * dwarf2-frame: Include record.h
15162 (dwarf2_frame_cfa): Throw an error for btrace frames.
15163 * record-btrace.c: Include hashtab.h.
15164 (btrace_get_bfun_name): New.
15165 (btrace_call_history): Call btrace_get_bfun_name.
15166 (struct btrace_frame_cache): New.
15168 (bfcache_hash, bfcache_eq, bfcache_new): New.
15169 (btrace_get_frame_function): New.
15170 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15171 (record_btrace_frame_this_id): Compute own id.
15172 (record_btrace_frame_prev_register): Provide PC, throw_error
15173 for all other registers.
15174 (record_btrace_frame_sniffer): Detect btrace frames.
15175 (record_btrace_tailcall_frame_sniffer): New.
15176 (record_btrace_frame_dealloc_cache): New.
15177 (record_btrace_frame_unwind): Add new functions.
15178 (record_btrace_tailcall_frame_unwind): New.
15179 (_initialize_record_btrace): Allocate cache.
15180 * btrace.c (btrace_clear): Call reinit_frame_cache.
15181 * NEWS: Announce it.
15183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15185 * record-btrace.c (record_btrace_set_replay)
15186 (record_btrace_goto_begin, record_btrace_goto_end)
15187 (record_btrace_goto): New.
15188 (init_record_btrace_ops): Initialize them.
15189 * NEWS: Announce it.
15191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15193 * record-btrace.c (record_btrace_find_new_threads)
15194 (record_btrace_thread_alive): New.
15195 (init_record_btrace_ops): Initialize to_find_new_threads and
15198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15200 * record-btrace.c (record_btrace_resume): New.
15201 (record_btrace_wait): New.
15202 (init_record_btrace_ops): Initialize to_wait and to_resume.
15204 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15206 * record-btrace.c (record_btrace_xfer_partial)
15207 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15208 (record_btrace_allow_memory_access): New.
15209 (init_record_btrace_ops): Initialize new methods.
15210 * target.c (raw_memory_xfer_partial): Bail out if target reports
15211 that this memory is not available.
15213 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15215 * target.h (target_ops) <to_insert_breakpoint>
15216 <to_remove_breakpoint>: Add target_ops parameter.
15217 (forward_target_insert_breakpoint): New.
15218 (forward_target_remove_breakpoint): New.
15219 (memory_remove_breakpoint, memory_insert_breakpoint):
15220 Add target_ops parameter.
15221 * target.c (target_insert_breakpoint): Split into this and ...
15222 (forward_target_insert_breakpoint): ... this.
15223 (target_remove_breakpoint): Split into this and ...
15224 (forward_target_remove_breakpoint): ... this.
15225 (debug_to_insert_breakpoint): Add target_ops parameter.
15226 Call forward_target_insert_breakpoint.
15227 (debug_to_remove_breakpoint): Add target_ops parameter.
15228 Call forward_target_remove_breakpoint.
15229 (update_current_target): Do not inherit or default to_insert_breakpoint
15230 and to_remove_breakpoint.
15231 * corelow.c (ignore): Add target_ops parameter.
15232 * exec.c (ignore): Add target_ops parameter.
15233 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15234 Add target_ops parameter.
15235 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15236 Add target_ops parameter.
15237 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15238 Add target_ops parameter.
15239 * record-full.c (record_full_beneath_to_insert_breakpoint)
15240 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15241 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15242 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15243 (record_full_core_remove_breakpoint): Add target_ops parameter.
15245 (record_full_beneath_to_insert_breakpoint_ops)
15246 (record_full_beneath_to_remove_breakpoint_ops)
15247 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15248 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15249 tmp_to_remove_breakpoint_ops,
15250 record_full_beneath_to_insert_breakpoint_ops, and
15251 record_full_beneath_to_remove_breakpoint_ops.
15252 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15253 (m32r_remove_breakpoint): Add target_ops parameter.
15254 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15255 Add target_ops parameter.
15256 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15257 Add target_ops parameter.
15259 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15260 Markus Metzger <markus.t.metzger@intel.com>
15262 * record-btrace.c: Include frame-unwind.h.
15263 (record_btrace_frame_unwind_stop_reason)
15264 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15265 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15267 (init_record_btrace_ops): Install it.
15269 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15271 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15274 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15276 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15279 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15281 * frame-unwind.c: Include target.h.
15282 (frame_unwind_try_unwinder): New function with code from ...
15283 (frame_unwind_find_by_frame): ... here. New variable
15284 unwinder_from_target, call also target_get_unwinder)
15285 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15286 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15287 * target.h (struct target_ops): New fields to_get_unwinder and
15288 to_get_tailcall_unwinder.
15289 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15293 * record-btrace.c (record_btrace_fetch_registers)
15294 (record_btrace_store_registers)
15295 (record_btrace_to_prepare_to_store): New.
15296 (init_record_btrace_ops): Add the above.
15298 2014-01-16 Tom Tromey <tromey@redhat.com>
15300 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15301 * target.h (struct target_ops) <to_prepare_to_store>: Add
15303 (target_prepare_to_store): Add argument.
15304 * target.c (debug_to_prepare_to_store): Add argument.
15305 (update_current_target): Update.
15306 * remote.c (remote_prepare_to_store): Add 'self' argument.
15307 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15308 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15309 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15310 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15312 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15313 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15314 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15315 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15316 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15320 * btrace.h (replay) <replay>: New.
15321 (btrace_is_replaying): New.
15322 * btrace.c (btrace_clear): Free replay iterator.
15323 (btrace_is_replaying): New.
15324 * record-btrace.c (record_btrace_is_replaying): New.
15325 (record_btrace_info): Print insn number if replaying.
15326 (record_btrace_insn_history): Start at replay position.
15327 (record_btrace_call_history): Start at replay position.
15328 (init_record_btrace_ops): Init to_record_is_replaying.
15330 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15332 * record-btrace.c (record_btrace_insn_history_range): Include
15334 (record_btrace_insn_history_from): Adjust range.
15335 (record_btrace_call_history_range): Include
15337 (record_btrace_call_history_from): Adjust range.
15338 * NEWS: Announce changes.
15340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15342 * record.h (enum record_print_flag)
15343 <record_print_indent_calls>: New.
15344 * record.c (get_call_history_modifiers): Recognize /c modifier.
15345 (_initialize_record): Document /c modifier.
15346 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15347 Reorder fields. Optionally indent the function name. Update
15349 * NEWS: Announce changes.
15351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15353 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15357 * btrace.c (ftrace_new_function): Start counting at one.
15358 * record-btrace.c (record_btrace_info): Adjust number of calls
15360 * NEWS: Announce it.
15362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15364 * record-btrace.c (btrace_call_history_insn_range): Print
15365 insn range as [begin, end].
15367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15369 * btrace.h (struct btrace_func_link): New.
15370 (enum btrace_function_flag): New.
15371 (struct btrace_inst): Rename to ...
15372 (struct btrace_insn): ...this. Update all users.
15373 (struct btrace_func) <ibegin, iend>: Remove.
15374 (struct btrace_func_link): New.
15375 (struct btrace_func): Rename to ...
15376 (struct btrace_function): ...this. Update all users.
15377 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15378 (number, level, flags>: New.
15379 (struct btrace_insn_iterator): Rename to ...
15380 (struct btrace_insn_history): ...this.
15382 (struct btrace_insn_iterator, btrace_call_iterator): New.
15383 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15384 (struct btrace_target_info) <begin, end, level>
15385 <insn_history, call_history>: New.
15386 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15387 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15388 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15389 (btrace_call_number, btrace_call_begin, btrace_call_end)
15390 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15391 (btrace_find_function_by_number, btrace_set_insn_history)
15392 (btrace_set_call_history): New.
15393 * btrace.c (btrace_init_insn_iterator)
15394 (btrace_init_func_iterator, compute_itrace): Remove.
15395 (ftrace_print_function_name, ftrace_print_filename)
15396 (ftrace_skip_file): Change
15397 parameter to const.
15398 (ftrace_init_func): Remove.
15399 (ftrace_debug): Use new btrace_function fields.
15400 (ftrace_function_switched): Also consider gaining and
15401 losing symbol information).
15402 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15403 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15404 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15406 (ftrace_new_function): Move. Remove debug print.
15407 (ftrace_update_lines, ftrace_update_insns): New.
15408 (ftrace_update_function): Check for call, ret, and jump.
15409 (compute_ftrace): Renamed to ...
15410 (btrace_compute_ftrace): ...this. Rewritten to compute call
15412 (btrace_fetch, btrace_clear): Updated.
15413 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15414 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15415 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15416 (btrace_call_number, btrace_call_begin, btrace_call_end)
15417 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15418 (btrace_find_function_by_number, btrace_set_insn_history)
15419 (btrace_set_call_history): New.
15420 * record-btrace.c (require_btrace): Use new btrace thread
15422 (record_btrace_info, btrace_insn_history)
15423 (record_btrace_insn_history, record_btrace_insn_history_range):
15424 Use new btrace thread info fields and new iterator.
15425 (btrace_func_history_src_line): Rename to ...
15426 (btrace_call_history_src_line): ...this. Use new btrace
15427 thread info fields.
15428 (btrace_func_history): Rename to ...
15429 (btrace_call_history): ...this. Use new btrace thread info
15430 fields and new iterator.
15431 (record_btrace_call_history, record_btrace_call_history_range):
15432 Use new btrace thread info fields and new iterator.
15434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15436 * frame.h (frame_id_build_unavailable_stack_special): New.
15437 * frame.c (frame_id_build_unavailable_stack_special): New.
15439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15441 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15442 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15443 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15445 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15446 (i386_insn_is_jump, i386_jmp_p): New.
15447 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15448 insn_is_jump to gdbarch.
15449 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15450 * gdbarch.h: Regenerated.
15451 * gdbarch.c: Regenerated.
15452 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15453 (default_insn_is_jump): New.
15454 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15455 (default_insn_is_jump): New.
15457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15459 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15461 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15462 (btrace_read_type) <btrace_read_new>: Change to ...
15463 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15467 * common/linux-btrace.c (linux_read_btrace): Free trace from
15468 previous iteration.
15470 2014-01-15 Doug Evans <dje@google.com>
15472 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15475 2014-01-15 Tom Tromey <tromey@redhat.com>
15477 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15478 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15479 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15480 (set_objfile_main_name): New function.
15481 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15482 language_of_main>: New fields.
15483 (set_objfile_main_name): Declare.
15484 * symtab.c (find_main_name): Loop over objfiles to find the main
15486 (set_main_name): Now static.
15487 (get_main_info): Add comment.
15488 * symtab.h (set_main_name): Don't declare.
15490 2014-01-15 Tom Tromey <tromey@redhat.com>
15492 * symtab.c (main_progspace_key): New global.
15493 (struct main_info): New.
15494 (name_of_main, language_of_main): Remove.
15495 (get_main_info, main_info_cleanup): New function.
15496 (set_main_name, main_name, main_language): Use get_main_info.
15497 (_initialize_symtab): Initialize main_progspace_key.
15499 2014-01-15 Tom Tromey <tromey@redhat.com>
15501 * dbxread.c (process_one_symbol): Update.
15502 * dwarf2read.c (read_partial_die): Update.
15503 * symfile.c (set_initial_language): Call main_language.
15504 * symtab.c (language_of_main): Now static.
15505 (set_main_name): Add 'lang' parameter.
15506 (find_main_name): Update.
15507 (main_language): New function.
15508 (symtab_observer_executable_changed): Update.
15509 * symtab.h (set_main_name): Update.
15510 (language_of_main): Remove.
15511 (main_language): Declare.
15513 2014-01-15 Tom Tromey <tromey@redhat.com>
15515 * symfile.c (init_entry_point_info): Use new "initialized" field.
15517 * objfiles.h (struct entry_point) <initialized>: New field.
15518 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15519 (struct objfile) <ei>: ...here. Remove.
15520 * objfiles.c (entry_point_address_query): Update.
15522 2014-01-15 Tom Tromey <tromey@redhat.com>
15524 * objfiles.c (entry_point_address_query): Relocate entry point
15526 (objfile_relocate1): Do not relocate entry point address.
15527 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15528 <the_bfd_section_index>: New field.
15529 * symfile.c (init_entry_point_info): Find the entry point's
15532 2014-01-15 Tom Tromey <tromey@redhat.com>
15534 * solib-frv.c (enable_break): Use entry_point_address_query.
15536 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15538 * NEWS: Add note on improved process record-replay on
15539 arm*-linux* targets.
15541 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15543 * arm-tdep.c (enum arm_record_result): New enum.
15544 (arm_record_unsupported_insn): New function.
15545 (arm_record_coproc_data_proc): Removed.
15546 (thumb2_record_ld_st_multiple): New function.
15547 (thumb2_record_ld_st_dual_ex_tbb): New function.
15548 (thumb2_record_data_proc_sreg_mimm): New function.
15549 (thumb2_record_ps_dest_generic): New function.
15550 (thumb2_record_branch_misc_cntrl): New function.
15551 (thumb2_record_str_single_data): New function.
15552 (thumb2_record_ld_mem_hints): New function.
15553 (thumb2_record_ld_word): New function.
15554 (thumb2_record_lmul_lmla_div): New function.
15555 (thumb2_record_decode_insn_handler): New function.
15556 (decode_insn): Add thumb32 instruction handlers.
15558 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15560 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15561 (struct arm_linux_record_tdep): Declare.
15562 (arm_canonicalize_syscall): New function.
15563 (arm_all_but_pc_registers_record): New function.
15564 (arm_linux_syscall_record): New function.
15565 (arm_linux_init_abi): Add syscall recording constructs.
15566 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15567 decoding. (arm_record_coproc_data_proc): Update arm syscall
15569 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15570 <arm_syscall_record>: New field.
15571 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15574 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15576 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15577 register for push instruction recording.
15579 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15581 * arm-tdep.c (thumb_record_misc): Update to correct logical
15582 error while recording ldm, ldmia and pop instructions.
15584 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15586 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15588 2014-01-15 Pedro Alves <palves@redhat.com>
15590 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15591 (go32_resume, go32_fetch_registers, store_register)
15592 (go32_store_registers, go32_prepare_to_store)
15593 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15594 (go32_create_inferior, go32_can_run, go32_terminal_init)
15595 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15598 2014-01-15 Tom Tromey <tromey@redhat.com>
15600 * target.h (async_callback_ftype): New typedef.
15601 (struct target_ops) <to_async>: Use it.
15603 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15605 * python/py-value.c (get_field_type): Remove unnecessary curly
15606 braces for single-statement if block.
15608 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15610 * python/py-type.c (convert_field): Add missing empty line
15611 after declarations.
15613 2014-01-14 Doug Evans <dje@google.com>
15615 * symfile.h (expand_symtabs_matching): Renamed from
15616 expand_partial_symbol_names. Update prototype.
15617 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15618 * symfile.c (expand_symtabs_matching): Renamed from
15619 expand_partial_symbol_names. New args file_matcher, kind.
15620 Rename arg fun to symbol_matcher.
15621 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15622 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15623 ada_expand_partial_symbol_name.
15624 (ada_make_symbol_completion_list): Update to call
15625 expand_symtabs_matching.
15626 (ada_add_global_exceptions): Call expand_symtabs_matching.
15627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15628 call map_symbol_filenames.
15629 * symtab.c (sources_info): Update to call map_symbol_filenames.
15630 (search_symbols): Call expand_symtabs_matching.
15631 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15632 (default_make_symbol_completion_list_break_on): Update to call
15633 expand_symtabs_matching.
15634 (make_source_files_completion_list): Update to call
15635 map_symbol_filenames.
15637 2014-01-14 Doug Evans <dje@google.com>
15639 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15640 (expand_symtabs_symbol_matcher_ftype): New typedef.
15641 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15642 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15643 * symfile.c (expand_partial_symbol_names): Update to use
15644 expand_symtabs_symbol_matcher_ftype.
15645 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15646 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15647 Arg name_matcher renamed to symbol_matcher.
15648 * psymtab.c (recursively_search_psymtabs): Update to use
15649 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15651 (expand_symtabs_matching_via_partial): Update to use
15652 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15653 Arg name_matcher renamed to symbol_matcher.
15655 2014-01-14 Doug Evans <dje@google.com>
15657 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15658 (map_partial_symbol_filenames): Ditto.
15659 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15660 (map_partial_symbol_filenames): Ditto.
15661 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15662 (map_partial_symbol_filenames): Ditto.
15663 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15664 (map_partial_symbol_filenames): Ditto.
15665 * symtab.c: Delete #include "psymtab.h".
15667 2014-01-14 Pedro Alves <palves@redhat.com>
15668 Tom Tromey <tromey@redhat.com>
15670 * infrun.c (use_displaced_stepping): Use find_record_target
15671 instead of RECORD_IS_USED.
15672 (adjust_pc_after_break): Use record_full_is_used instead of
15674 * record-btrace.c (record_btrace_open): Call record_preopen
15675 instead of checking RECORD_IS_USED.
15676 * record-full.c (record_full_shortname)
15677 (record_full_core_shortname): New globals.
15678 (record_full_is_used): New function.
15679 (find_full_open): Call record_preopen instead of checking
15681 (init_record_full_ops): Set the target's shortname to
15682 record_full_shortname.
15683 (init_record_full_core_ops): Set the target's shortname to
15684 record_full_core_shortname.
15685 * record-full.h (record_full_is_used): Declare.
15686 * record.c (find_record_target): Make extern.
15687 (record_preopen): New function.
15688 * record.h (RECORD_IS_USED): Delete macro.
15689 (find_record_target, record_preopen): Declare functions.
15691 2014-01-14 Yao Qi <yao@codesourcery.com>
15693 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15694 'len''s type to ULONGEST.
15695 (core_xfer_shared_libraries_aix): Likewise.
15696 * gdbarch.c, gdbarch.h: Regenerated.
15697 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15698 Change type of 'len' to ULONGEST.
15699 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15700 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15702 2014-01-14 Yao Qi <yao@codesourcery.com>
15704 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15705 type of 'len' to ULONGEST.
15706 (linux_xfer_osdata_processgroups): Likewise.
15707 (linux_xfer_osdata_threads): Likewise.
15708 (linux_xfer_osdata_fds): Likewise.
15709 (linux_xfer_osdata_isockets): Likewise.
15710 (linux_xfer_osdata_shm): Likewise.
15711 (linux_xfer_osdata_sem): Likewise.
15712 (linux_xfer_osdata_msg): Likewise.
15713 (linux_common_xfer_osdata): Likewise.
15714 (struct osdata_type) <getter>: Likewise.
15715 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15718 2014-01-14 Yao Qi <yao@codesourcery.com>
15720 * target.h (target_xfer_partial_ftype): Update.
15721 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15723 * aix-thread.c (aix_thread_xfer_partial): Change type of
15724 argument 'len' to ULONGEST.
15725 * auxv.c (procfs_xfer_auxv): Likewise.
15726 (ld_so_xfer_auxv): Likewise.
15727 (memory_xfer_auxv): Likewise.
15728 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15729 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15730 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15731 * corelow.c (core_xfer_partial): Likewise.
15732 * ctf.c (ctf_xfer_partial): Likewise.
15733 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15735 (darwin_read_dyld_info): Likewise.
15736 (darwin_xfer_partial): Likewise.
15737 * exec.c (section_table_xfer_memory_partial): Likewise.
15738 (exec_xfer_partial): Likewise.
15739 * exec.h (section_table_xfer_memory_partial): Update
15741 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15742 instead of plongest.
15743 (gnu_xfer_partial): Likewise.
15744 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15745 (ia64_hpux_xfer_solib_got): Likewise.
15746 (ia64_hpux_xfer_partial): Likewise.
15747 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15748 * inf-ptrace.c (inf_ptrace_xfer_partial):
15749 * inf-ttrace.c (inf_ttrace_xfer_partial):
15750 * linux-nat.c (linux_xfer_siginfo): Likewise.
15751 (linux_nat_xfer_partial): Likewise.
15752 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15753 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15754 * monitor.c (monitor_xfer_memory): Likewise.
15755 (monitor_xfer_partial): Likewise.
15756 * procfs.c (procfs_xfer_partial): Likewise.
15757 * record-full.c (record_full_xfer_partial): Likewise.
15758 (record_full_core_xfer_partial): Likewise.
15759 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15760 instead of plongest.
15761 (gdbsim_xfer_partial): Likewise.
15762 * remote.c (remote_xfer_partial): Likewise.
15763 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15764 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15766 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15767 (rs6000_xfer_shared_libraries): Likewise.
15768 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15769 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15770 (sparc_xfer_partial): Likewise.
15771 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15772 (spu_xfer_partial): Likewise.
15773 * spu-multiarch.c (spu_xfer_partial): Likewise.
15774 * target.c (target_read_live_memory): Likewise.
15775 (memory_xfer_live_readonly_partial): Likewise.
15776 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15777 (target_xfer_partial, default_xfer_partial): Likewise.
15778 (current_xfer_partial): Likewise.
15779 * tracepoint.c (tfile_xfer_partial): Likewise.
15780 * windows-nat.c (windows_xfer_memory): Likewise. Call
15781 pulongest instead of plongest.
15782 (windows_xfer_partial): Likewise.
15783 (windows_xfer_shared_libraries): Likewise.
15785 2014-01-14 Yao Qi <yao@codesourcery.com>
15787 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15788 target_xfer_partial_ftype.
15790 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15794 * valops.c (value_struct_elt_bitpos): New function
15795 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15796 object to 'None' if the field name is an empty string ("").
15797 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15798 attribute to look for a field when 'name' is 'None'.
15799 (get_field_type): New function
15801 2014-01-13 Doug Evans <dje@google.com>
15804 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15805 (try_open_dwop_file): Ditto.
15806 * gdb_bfd.c: #include "vec.h".
15807 (bfdp): New typedef.
15808 (struct gdb_bfd_data): New member included_bfds.
15809 (gdb_bfd_unref): Unref all included bfds.
15810 (gdb_bfd_record_inclusion): New function.
15811 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15813 2014-01-13 Tom Tromey <tromey@redhat.com>
15815 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15817 2014-01-13 Tom Tromey <tromey@redhat.com>
15819 * defs.h (use_windows): Remove.
15820 * gdb.c (main): Update.
15821 * main.c (captured_main, gdb_main): Update.
15822 * main.h (struct captured_main_args) <use_windows>: Remove.
15823 * top.c (use_windows): Remove.
15825 2014-01-13 Tom Tromey <tromey@redhat.com>
15827 * defs.h (deprecated_flush_hook): Remove.
15829 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15832 * linux-thread-db.c (try_thread_db_load): Add parameter
15833 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15834 (try_thread_db_load_from_pdir_1): Move it there from here.
15835 (try_thread_db_load_from_sdir): Update caller.
15836 (try_thread_db_load_from_dir): Move it there from here.
15838 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15840 * regformats/regdat.sh: Always rewrite the register file.
15842 2014-01-13 Pedro Alves <palves@redhat.com>
15844 * Makefile.in (CHECK_HEADERS): New variable.
15845 (check-headers:): New rule.
15847 2014-01-13 Tom Tromey <tromey@redhat.com>
15849 * cli/cli-setshow.c (do_set_command): Update.
15850 * defs.h (deprecated_set_hook): Remove.
15851 * top.c (deprecated_set_hook): Remove.
15853 2014-01-13 Pedro Alves <palves@redhat.com>
15855 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15856 the tracepoint if the PC is a pseudo-register.
15858 2014-01-13 Tom Tromey <tromey@redhat.com>
15860 * defs.h (XCALLOC): Remove.
15861 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15862 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15863 * dwarf2loc.c (allocate_piece_closure): Likewise.
15864 * elfread.c (elf_symfile_segments): Likewise.
15865 (elf_symfile_segments): Likewise.
15866 * gdbtypes.c (copy_type_recursive): Likewise.
15867 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15868 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15869 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15871 * mt-tdep.c (mt_gdbarch_init): Likewise.
15872 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15874 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15875 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15876 * registry.c (registry_alloc_data): Likewise.
15877 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15878 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15879 * serial.c (serial_fdopen_ops): Likewise.
15880 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15882 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15883 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15886 2014-01-13 Tom Tromey <tromey@redhat.com>
15888 * defs.h (XMALLOC): Remove.
15889 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15890 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15891 * cli-out.c (struct ui_out *): Likewise.
15892 * cli/cli-dump.c (add_dump_command): Likewise.
15893 (add_dump_command): Likewise.
15894 * complaints.c (get_complaints): Likewise.
15895 (find_complaint): Likewise.
15896 * dwarf2-frame.c (execute_cfa_program): Likewise.
15897 * dwarf2read.c (abbrev_table_read_table): Likewise.
15898 * gdbarch.sh: Likewise.
15899 * gdbarch.c: Rebuild.
15900 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15901 * interps.c (interp_new): Likewise.
15902 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15903 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15904 * mi/mi-console.c (mi_console_file_new): Likewise.
15905 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15906 * mi/mi-out.c (mi_out_new): Likewise.
15907 * mi/mi-parse.c (mi_parse): Likewise.
15908 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15909 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15910 * observer.c (xalloc_observer_list_node): Likewise.
15911 * regcache.c (regcache_xmalloc_1): Likewise.
15912 * reggroups.c (reggroup_new): Likewise.
15913 (_initialize_reggroup): Likewise.
15914 * registry.c (register_data_with_cleanup): Likewise.
15915 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15916 * ser-base.c (serial_ttystate): Likewise.
15917 * ser-mingw.c (make_pipe_state): Likewise.
15918 * ser-pipe.c (pipe_open): Likewise.
15919 * serial.c (serial_open): Likewise.
15920 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15921 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15922 (tui_alloc_win_info): Likewise.
15923 (tui_add_content_elements): Likewise.
15924 * tui/tui-file.c (tui_file_new): Likewise.
15925 * tui/tui-out.c (tui_out_new): Likewise.
15926 * ui-file.c (mem_file_new): Likewise.
15927 * ui-out.c (push_level): Likewise.
15928 (make_cleanup_ui_out_end): Likewise.
15929 (append_header_to_list): Likewise.
15930 (ui_out_new): Likewise.
15931 * user-regs.c (user_reg_add_builtin): Likewise.
15933 2014-01-13 Tom Tromey <tromey@redhat.com>
15935 * defs.h (XZALLOC): Remove.
15936 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15937 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15938 (get_ada_tasks_inferior_data): Likewise.
15939 * auto-load.c (get_auto_load_pspace_data): Likewise.
15940 * auxv.c (get_auxv_inferior_data): Likewise.
15941 * bfd-target.c (target_bfd_reopen): Likewise.
15942 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15943 (deprecated_insert_raw_breakpoint): Likewise.
15944 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15945 * corelow.c (core_open): Likewise.
15946 * darwin-nat.c (darwin_check_new_threads): Likewise.
15947 (darwin_attach_pid): Likewise.
15948 * dummy-frame.c (dummy_frame_push): Likewise.
15949 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15950 * dwarf2loc.c (allocate_piece_closure): Likewise.
15951 * elfread.c (elf_symfile_segments): Likewise.
15952 * eval.c (ptrmath_type_p): Likewise.
15953 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15954 * gdbtypes.c (alloc_type_arch): Likewise.
15955 (alloc_type_instance): Likewise.
15956 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15957 * inf-child.c (inf_child_can_use_agent): Likewise.
15958 * inflow.c (get_inflow_inferior_data): Likewise.
15959 * infrun.c (save_infcall_suspend_state): Likewise.
15960 * jit.c (jit_reader_load): Likewise.
15961 (get_jit_objfile_data): Likewise.
15962 (get_jit_program_space_data): Likewise.
15963 (jit_object_open_impl): Likewise.
15964 (jit_symtab_open_impl): Likewise.
15965 (jit_block_open_impl): Likewise.
15966 (jit_frame_sniffer): Likewise.
15967 * linux-fork.c (add_fork): Likewise.
15968 * maint.c (make_command_stats_cleanup): Likewise.
15969 * objfiles.c (get_objfile_pspace_data): Likewise.
15970 * opencl-lang.c (struct lval_closure): Likewise.
15971 * osdata.c (osdata_start_osdata): Likewise.
15972 * progspace.c (new_address_space): Likewise.
15973 (add_program_space): Likewise.
15974 * remote-sim.c (get_sim_inferior_data): Likewise.
15975 * sh-tdep.c (sh_gdbarch_init): Likewise.
15976 * skip.c (Ignore): Likewise.
15977 (skip_delete_command): Likewise.
15978 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15979 (library_list_start_library): Likewise.
15980 (solib_aix_current_sos): Likewise.
15981 * solib-darwin.c (get_darwin_info): Likewise.
15982 (darwin_current_sos): Likewise.
15983 * solib-dsbt.c (get_dsbt_info): Likewise.
15984 * solib-ia64-hpux.c (new_so_list): Likewise.
15985 (ia64_hpux_get_solib_linkage_addr): Likewise.
15986 * solib-spu.c (append_ocl_sos): Likewise.
15987 (spu_current_sos): Likewise.
15988 * solib-svr4.c (get_svr4_info): Likewise.
15989 (svr4_keep_data_in_core): Likewise.
15990 (library_list_start_library): Likewise.
15991 (svr4_default_sos): Likewise.
15992 (svr4_read_so_list): Likewise.
15993 * solib-target.c (library_list_start_library): Likewise.
15994 (solib_target_current_sos): Likewise.
15995 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15996 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15997 * symfile.c (default_symfile_segments): Likewise.
15998 * target-descriptions.c (tdesc_data_init): Likewise.
15999 (tdesc_create_reg): Likewise.
16000 (struct tdesc_type *): Likewise.
16001 (tdesc_create_vector): Likewise.
16002 (tdesc_set_struct_size): Likewise.
16003 (struct tdesc_type *): Likewise.
16004 (tdesc_free_feature): Likewise.
16005 (tdesc_create_feature): Likewise.
16006 * windows-nat.c (windows_add_thread): Likewise.
16007 (windows_make_so): Likewise.
16008 * xml-support.c (gdb_xml_body_text): Likewise.
16009 (gdb_xml_create_parser_and_cleanup): Likewise.
16010 (xml_process_xincludes): Likewise.
16011 * xml-syscall.c (allocate_syscalls_info): Likewise.
16012 (syscall_create_syscall_desc): Likewise.
16014 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16016 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16017 function, with code from i386_stap_parse_special_token.
16018 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16019 (i386_stap_parse_special_token): Move code to the two functions
16020 above; simplify it.
16022 2014-01-09 Pedro Alves <palves@redhat.com>
16023 Hui Zhu <hui@codesourcery.com>
16026 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16027 bp_err_string. Don't mark the location shlib_disabled if the
16028 error thrown wasn't a generic or memory error. Catch errors
16029 thrown while inserting breakpoints in overlayed code. Output
16030 error message of software breakpoints.
16031 * remote.c (remote_insert_breakpoint): If this breakpoint has
16032 target-side commands but this stub doesn't support Z0 packets,
16033 throw NOT_SUPPORTED_ERROR error.
16034 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16035 * target.h (target_insert_breakpoint): Extend comment.
16036 (target_insert_hw_breakpoint): Add comment.
16038 2014-01-08 Pedro Alves <palves@redhat.com>
16040 * remote.c (remote_add_thread): Add threads silently if starting
16042 (remote_notice_new_inferior): If in all-stop, and starting up,
16043 don't call notice_new_inferior.
16044 (get_current_thread): New function, factored out from ...
16045 (add_current_inferior_and_thread): ... this. Adjust.
16046 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16047 found any thread, then select the remote's current thread as GDB's
16048 current thread too.
16050 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16052 * NEWS: Create a new section for the next release branch.
16053 Rename the section of the current branch, now that it has
16056 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16058 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16059 * version.in: Bump version to 7.7.50.DATE-cvs.
16061 2014-01-08 Yao Qi <yao@codesourcery.com>
16063 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16064 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16065 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16067 2014-01-08 Yao Qi <yao@codesourcery.com>
16069 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16070 return value of bfd_get_filename to symbol_file_add_from_bfd.
16072 2014-01-08 Pierre Muller <muller@sourceware.org>
16075 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16076 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16077 to prim_record_mininal_symbol_and_info.
16078 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16079 in call to prim_record_minimal_symbol_and_info.
16080 (read_pe_exported_syms): Set index field of section_data.
16082 2014-01-07 Andrew Pinski <apinski@cavium.com>
16084 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16085 * features/aarch64.c: Regenerate.
16087 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16089 * target.c (return_null): Define.
16090 (update_current_target): Use it instead of return_zero for
16091 functions that return a pointer.
16093 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16095 * source.c (add_path): Fix check for duplicated paths in the previously
16098 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16100 * ada-lang.c: Remove duplicated include statements.
16101 * alphabsd-nat.c: Ditto.
16102 * amd64-darwin-tdep.c: Ditto.
16103 * amd64fbsd-nat.c: Ditto.
16104 * auto-load.c: Ditto.
16106 * breakpoint.c: Ditto.
16107 * dbxread.c: Ditto.
16108 * fork-child.c: Ditto.
16109 * gdb_usleep.c: Ditto.
16110 * i386-darwin-tdep.c: Ditto.
16111 * i386fbsd-nat.c: Ditto.
16113 * inferior.c: Ditto.
16114 * jv-lang.c: Ditto.
16115 * linux-nat.c: Ditto.
16116 * linux-tdep.c: Ditto.
16117 * m68kbsd-nat.c: Ditto.
16118 * m68klinux-nat.c: Ditto.
16119 * microblaze-tdep.c: Ditto.
16120 * mips-linux-tdep.c: Ditto.
16121 * mn10300-tdep.c: Ditto.
16122 * nto-tdep.c: Ditto.
16123 * opencl-lang.c: Ditto.
16125 * printcmd.c: Ditto.
16126 * regcache.c: Ditto.
16127 * remote-m32r-sdi.c: Ditto.
16129 * symfile.c: Ditto.
16131 * tilegx-linux-nat.c: Ditto.
16132 * tilegx-tdep.c: Ditto.
16133 * tracepoint.c: Ditto.
16135 * vaxbsd-nat.c: Ditto.
16136 * windows-nat.c: Ditto.
16137 * xtensa-tdep.c: Ditto.
16139 2014-01-07 Yao Qi <yao@codesourcery.com>
16141 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16143 2014-01-07 Yao Qi <yao@codesourcery.com>
16144 Joel Brobecker <brobecker@adacore.com>
16146 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16147 (pdc_write_regs): Likewise.
16148 (fetch_regs_kernel_thread): Likewise.
16149 (store_regs_kernel_thread): Likewise.
16151 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16153 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16154 tagged type objects to their actual type.
16156 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16158 * ada-valprint.c (print_field_values): Add "language" parameter.
16159 Update calls to print_field_values and print_variant_part.
16160 Pass new parameter "language" in call to val_print instead
16161 of "current_language". Replace call to ada_val_print by call
16163 (print_variant_part): Add "language" parameter.
16164 (ada_val_print_struct_union): Update call to print_field_values.
16166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16168 * ada-valprint.c (ui_memcpy): Delete.
16169 (ada_print_floating): Update documentation. Add empty line
16170 between between function documentation and implementation.
16171 Delete variable "buffer". Use ui_file_xstrdup in place of
16172 ui_file_put. Minor adjustments following this change.
16174 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16176 * ada-valprint.c (ada_val_print_string): New function,
16177 extracted from ada_val_print_array.
16178 (ada_val_print_array): Replace extracted code by call
16179 to ada_val_print_string followed by a return. Move
16180 "else" branch to the function's top block.
16182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16184 * ada-valprint.c (ada_val_print_array): Move implementation
16185 down. Rename parameter "offset" and "val" into "offset_aligned"
16186 and "original_value" respectively. Add parameter "offset".
16188 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16190 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16191 re-organizing the code. Change the "???" message printed
16192 when target type is a TYPE_CODE_UNDEF into
16193 "<ref to undefined type>".
16195 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16197 * ada-valprint.c (print_record): Delete, implementation inlined...
16198 (ada_val_print_struct_union): ... here. Remove call to
16199 ada_check_typedef in inlined implementation.
16201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16203 * ada-valprint.c (ada_val_print_gnat_array): New function,
16204 extracted from ada_val_print_1;
16205 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16206 (ada_val_print_flt, ada_val_print_struct_union)
16207 (ada_val_print_ref): Likewise.
16208 (ada_val_print_1): Delete variables i and elttype.
16209 Replace extracted-out code by call to corresponding
16212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16214 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16218 * ada-valprint.c (ada_val_print_1): Replace calls to
16219 ada_val_print_1 by calls to val_print.
16221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16223 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16224 Update calls to self accordingly. Replace calls to c_val_print
16225 by calls to val_print.
16227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16229 * ada-valprint.c (print_record): Delete declaration.
16230 (adjust_type_signedness, ada_val_print_1): Likewise.
16231 (ada_val_print): Move function implementation down.
16232 (print_variant_part, print_field_values, print_record):
16233 Move function implementation up.
16235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16237 * python/py-type.c (typy_get_name): New function.
16238 (type_object_getset): Add entry for attribute "name".
16239 * NEWS: Add entry mentioning this new attribute.
16241 2014-01-07 Yao Qi <yao@codesourcery.com>
16243 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16246 2014-01-07 Yao Qi <yao@codesourcery.com>
16248 * gnu-nat.c (info_port_rights): Add qualifier const to
16251 2014-01-07 Yao Qi <yao@codesourcery.com>
16253 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16255 2014-01-07 Yao Qi <yao@codesourcery.com>
16257 * gnu-nat.c (make_inf) Update declaration.
16258 (make_inf): Make it static.
16259 (inf_set_traced): Likewise.
16260 (inf_port_to_thread, inf_task_died_status): Likewise.
16262 2014-01-07 Yao Qi <yao@codesourcery.com>
16264 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16266 2014-01-07 Yao Qi <yao@codesourcery.com>
16268 * gnu-nat.c (_initialize_gnu_nat): Declare.
16270 2014-01-07 Yao Qi <yao@codesourcery.com>
16272 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16274 (struct gdbarch_info) <byte_order>: Change type to
16276 <byte_order_for_code>: Likewise.
16277 * gdbarch.c, gdbarch.h: Regenerated.
16279 2014-01-06 Sasha Smundak <asmundak@google.com>
16281 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16283 2014-01-06 Tom Tromey <tromey@redhat.com>
16285 * doublest.c (convert_doublest_to_floatformat): Use const, not
16287 * somread.c (som_symtab_read): Likewise.
16289 2014-01-07 Hui Zhu <hui@codesourcery.com>
16291 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16292 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16293 (gdb_bfd_fopen): Ditto.
16294 (gdb_bfd_openr): Ditto.
16295 (gdb_bfd_openw): Ditto.
16296 (gdb_bfd_openr_iovec): Ditto.
16297 (gdb_bfd_fdopenr): Ditto.
16298 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16299 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16301 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16303 * symfile-mem.c (symbol_file_add_from_memory): Removed
16304 gdb_bfd_stash_filename.
16306 2014-01-03 Doug Evans <dje@google.com>
16308 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16311 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16313 Update year range in copyright notice of all files.
16315 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16317 * top.c (print_gdb_version): Set copyright year to 2014.
16319 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16321 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16323 For older changes see ChangeLog-2013.
16329 version-control: never