1 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
3 * elfread.c (elf_symfile_init): Remove stale comment.
4 (elf_symfile_read): Same.
5 * symfile.h (struct sym_fns): Same.
7 2014-12-18 Nigel Stephens <nigel@mips.com>
8 Maciej W. Rozycki <macro@codesourcery.com>
10 * mips-tdep.c (print_fpu_flags): New function.
11 (mips_print_float_info): Likewise.
12 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
13 print_float_info routine.
15 2014-12-18 Yao Qi <yao@codesourcery.com>
17 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
18 * gdbarch.c: Re-generated.
19 * gdbarch.h: Likewise.
20 * infcmd.c (default_print_float_info): New function.
21 (print_float_info): Removed. Move code to
22 default_print_float_info.
23 (float_info): Adjust to call gdbarch_print_float_info.
24 * inferior.h (default_print_float_info): Declare it.
26 2014-12-18 Yao Qi <yao@codesourcery.com>
28 * h8300-tdep.c (h8300_print_float_info): Remove.
29 (h8300_gdbarch_init): Remove the call to
30 set_gdbarch_print_float_info.
32 2014-12-18 Doug Evans <xdje42@gmail.com>
34 * infcmd.c (jump_command): Minor simplification.
36 2014-12-18 Doug Evans <xdje42@gmail.com>
38 * language.c (language_lookup_primitive_type): Renamed from
39 language_lookup_primitive_type_by_name. All callers updated.
41 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
43 Fix MinGW compilation.
44 * compile/compile.c (get_compile_file_tempdir): Call error if
46 * config.in: Regenerate.
47 * configure: Regenerate.
48 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
50 2014-12-17 Doug Evans <xdje42@gmail.com>
52 * valops.c (value_maybe_namespace_elt): Remove redundant call to
55 2014-12-17 Doug Evans <xdje42@gmail.com>
57 New parameter "debug symbol-lookup".
59 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
61 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
62 (cp_lookup_nested_symbol): Ditto.
63 * language.c (language_lookup_primitive_type_by_name): Add debug
65 * minsyms.c (lookup_minimal_symbol): Add debug output.
66 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
67 * symfile-debug.c (debug_objfile_name): ... from here. All callers
69 * objfiles.h (objfile_debug_name): Declare.
70 * symtab.h (symbol_lookup_debug): Declare.
71 * symtab.c (symbol_lookup_debug): New global.
72 (lookup_language_this): Add debug output.
73 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
74 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
75 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
76 (_initialize_symtab): Add new parameter "debug symbol-lookup".
78 2014-12-16 Doug Evans <xdje42@gmail.com>
80 * buildsym.c: Add comments describing how the buildsym machinery
81 is used by the various file formats.
82 (really_free_pendings): Enhance function comment.
83 See pending_macros to NULL. Simplify resetting pending_addrmap.
84 Call free_buildsym_compunit.
85 (free_buildsym_compunit): Set current_subfile to NULL.
86 (prepare_for_building): New function.
87 (start_symtab): Call it. Remove call to set_last_source_file.
88 (restart_symtab): New arg "cust". All callers updated.
89 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
90 (reset_symtab_globals): Enhance function comment.
91 Set local_symbols, file_symbols, global_symbols to NULL.
92 Set pending_macros to NULL. Simplify resetting pending_addrmap.
93 Call free_buildysym_compunit.
94 (end_symtab_without_blockvector): Delete. All callers updated.
95 (end_symtab_with_blockvector): Remove redundant call to
96 free_buildsym_compunit.
97 (augment_type_symtab): Remove arg "cust". All callers updated.
98 (buildsym_init): Remove resetting of free_pendings, file_symbols,
99 global_symbols, pending_blocks, pending_macros. Instead make
100 handling consistent with pending_addrmap: Assert value was reset
101 at end of previous symtab building. Initialize context_stack here.
103 2014-12-16 Doug Evans <xdje42@gmail.com>
105 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
106 cp_lookup_symbol_imports. All callers updated.
108 2014-12-16 Doug Evans <xdje42@gmail.com>
110 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
111 find_type_baseclass_by_name. All callers updated.
113 2014-12-16 Doug Evans <xdje42@gmail.com>
115 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
116 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
117 (print_symbol_info): Delete arg symtab. All callers updated.
118 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
120 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
122 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
123 "Name" columns. Assure that the output is always indented.
125 2014-12-16 Joel Brobecker <brobecker@adacore.com>
127 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
129 (linux_enable_event_reporting): Add parameter "attached".
130 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
131 declaration. New function.
132 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
133 (linux_enable_event_reporting): Add new parameter "attached".
134 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
136 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
137 Use it. Update function description.
138 (linux_child_post_attach, linux_child_post_startup_inferior):
139 Update call to linux_enable_event_reporting.
141 2014-12-16 Yao Qi <yao@codesourcery.com>
143 * NEWS: Move some entries to "Changes since GDB 7.8" section.
145 2014-12-16 Yao Qi <yao@codesourcery.com>
147 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
150 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
152 * inferior.c (find_inferior_ptid): New function.
153 * inferior.h (find_inferior_ptid): New declaration.
154 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
155 * corelow.c (core_pid_to_str): Same.
156 * darwin-nat.c (darwin_resume): Same.
157 * infrun.c (fetch_inferior_event): Same.
158 (get_inferior_stop_soon): Same.
159 (handle_inferior_event): Same.
160 (handle_signal_stop): Same.
161 * linux-nat.c (resume_lwp): Same.
162 (stop_wait_callback): Same.
163 * mi/mi-interp.c (mi_new_thread): Same.
164 (mi_thread_exit): Same.
165 * proc-service.c (ps_pglobal_lookup): Same.
166 * record-btrace.c (record_btrace_step_thread): Same.
167 * remote-sim.c (gdbsim_close_inferior): Same.
168 (gdbsim_resume): Same.
170 * sol2-tdep.c (sol2_core_pid_to_str): Same.
171 * target.c (memory_xfer_partial_1): Same.
172 (default_thread_address_space): Same.
173 * thread.c (thread_change_ptid): Same.
174 (switch_to_thread): Same.
175 (do_restore_current_thread_cleanup): Same.
177 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
179 * defs.h (gdb_readline): Constify argument.
180 (gdb_readline_wrapper): Same.
181 (command_line_input): Same.
182 (deprecated_readline_hook): Same.
183 * top.c (deprecated_readline_hook): Same.
184 (gdb_readline): Same.
185 (gdb_readline_wrapper): Same.
186 (command_line_input): Constify argument. Pass prompt_arg to called
187 functions instead of local_prompt, overwriting prompt_arg if necessary.
188 * event-top.h (display_gdb_prompt): Constify argument.
189 * event-top.c (display_gdb_prompt): Same.
190 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
191 if building with Python 3.4 and up.
193 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
195 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
198 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
201 * memattr.c (mem_info_command): Remove "unsigned long" casts.
203 2014-12-13 Doug Evans <xdje42@gmail.com>
205 * utils.c (make_hex_string): Fix off-by-one error.
207 2014-12-13 Joel Brobecker <brobecker@adacore.com>
209 * ada-lang.h (ada_ensure_varsize_limit): Declare.
210 * ada-lang.c (check_size): Remove advance declaration.
211 (ada_ensure_varsize_limit): Renames check_size.
212 Replace calls to check_size by calls to ada_ensure_varsize_limit
214 * ada-valprint.c (ada_val_print_ref): Add call to
215 ada_ensure_varsize_limit. Add comment explaining why.
217 2014-12-13 Joel Brobecker <brobecker@adacore.com>
219 * utils.c (make_hex_string): Replace use of sprintf by use of
222 2014-12-13 Joel Brobecker <brobecker@adacore.com>
224 * compile/compile-object-load.c (link_callbacks_multiple_definition)
225 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
226 newline at end of warning message.
228 2014-12-13 Joel Brobecker <brobecker@adacore.com>
230 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
231 new "EXTRA-ARGS" parameter.
232 * configure.ac: If large-file support is disabled in GDB,
233 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
234 * configure: Regenerate.
236 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
239 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
240 TYPE if not TYPE_CODE_TYPEDEF.
242 2014-12-13 Joel Brobecker <brobecker@adacore.com>
245 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
246 the frame unwinder must either be the dwarf2_frame_unwind
247 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
248 stack_addr is valid before calling get_frame_base. Throw
249 an error if not valid.
251 2014-12-12 Doug Evans <xdje42@gmail.com>
253 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
256 2014-12-12 Doug Evans <xdje42@gmail.com>
258 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
259 All callers updated. Rename arg "namespace" to "symbol_name".
261 2014-12-12 Doug Evans <xdje42@gmail.com>
263 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
264 partial_map_symtabs_matching_filename. All uses updated.
265 (psym_find_pc_sect_compunit_symtab): Renamed from
266 find_pc_sect_compunit_symtab_from_partial. All uses updated.
267 Add function comment.
268 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
269 All uses updated. Add function comment.
270 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
271 Add function comment.
272 (psym_find_last_source_symtab): Renamed from
273 find_last_source_symtab_from_partial. All uses updated.
274 Add function comment.
275 (psym_forget_cached_source_info): Renamed from
276 forget_cached_source_info_partial. All uses updated.
277 Add function comment.
278 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
279 All uses updated. Add function comment.
280 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
281 updated. Add function comment.
282 (psym_expand_symtabs_for_function): Renamed from
283 read_symtabs_for_function. All uses updated. Update function comment.
284 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
285 All uses updated. Add function comment.
286 (psym_expand_symtabs_with_fullname): Renamed from
287 read_psymtabs_with_fullname. All uses updated. Add function comment.
288 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
289 All uses updated. Add function comment.
290 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
292 (psym_expand_symtabs_matching): Renamed from
293 expand_symtabs_matching_via_partial. All uses updated.
294 Add function comment.
295 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
296 Add function comment.
298 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
299 Jan Kratochvil <jan.kratochvil@redhat.com>
300 Tom Tromey <tromey@redhat.com>
303 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
305 * p-lang.c (pascal_language_defn): Update.
306 * opencl-lang.c (opencl_language_defn): Update.
307 * objc-lang.c (objc_language_defn): Update.
308 * m2-lang.c (m2_language_defn): Update.
309 * language.h (struct language_defn) <la_get_compile_instance,
310 la_compute_program>: New fields.
311 * language.c (unknown_language_defn, auto_language_defn)
312 (local_language_defn): Update.
313 * jv-lang.c (java_language_defn): Update.
314 * go-lang.c (go_language_defn): Update.
315 * f-lang.c (f_language_defn): Update.
316 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
317 * dwarf2loc.c (dwarf2_compile_property_to_c)
318 (locexpr_generate_c_location, loclist_generate_c_location): New
320 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
321 * defs.h (enum compile_i_scope_types): New.
322 (enum command_control_type) <compile_control>: New constant.
323 (struct command_line) <control_u>: New field.
324 * d-lang.c (d_language_defn): Update.
325 * compile/compile.c: New file.
326 * compile/compile-c-support.c: New file.
327 * compile/compile-c-symbols.c: New file.
328 * compile/compile-c-types.c: New file.
329 * compile/compile.h: New file.
330 * compile/compile-internal.h: New file.
331 * compile/compile-loc2c.c: New file.
332 * compile/compile-object-load.c: New file.
333 * compile/compile-object-load.h: New file.
334 * compile/compile-object-run.c: New file.
335 * compile/compile-object-run.h: New file.
336 * cli/cli-script.c (multi_line_command_p, print_command_lines)
337 (execute_control_command, process_next_line)
338 (recurse_read_control_structure): Handle compile_control.
339 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
340 * c-lang.c (c_language_defn, cplus_language_defn)
341 (asm_language_defn, minimal_language_defn): Update.
342 * ada-lang.c (ada_language_defn): Update.
343 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
345 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
346 (HFILES_NO_SRCDIR): Add compile.h.
347 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
348 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
349 (compile.o, compile-c-types.o, compile-c-symbols.o)
350 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
351 (compile-c-support.o): New targets.
353 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
355 * s390-linux-tdep.c (s390_gcc_target_options): New function.
356 (s390_gdbarch_init): Add it to gdbarch.
358 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
360 * linux-tdep.c: Include objfiles.h and infcall.h.
361 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
363 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
365 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
367 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
368 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
369 translate_register. Now public.
370 (dwarf2_compile_expr_to_ax): Update.
372 2014-12-12 Tom Tromey <tromey@redhat.com>
373 Jan Kratochvil <jan.kratochvil@redhat.com>
375 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
376 (dwarf_expr_frame_base): Update caller.
377 (dwarf_expr_frame_base_1): Rename to ...
378 (func_get_frame_base_dwarf_block): ... this and make it public.
379 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
381 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
383 2014-12-12 Tom Tromey <tromey@redhat.com>
385 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
387 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
388 dwarf2_compile_cfa_to_ax.
389 (dwarf2_compile_cfa_to_ax): Remove.
390 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
391 (dwarf2_compile_cfa_to_ax): Remove.
393 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
395 * infcall.h (call_function_by_hand_dummy): Declare.
396 * infcall.c (call_function_by_hand): Use
397 call_function_by_hand_dummy.
398 (call_function_by_hand_dummy): Rename from call_function_by_hand.
399 Add arguments. Register a destructor.
401 2014-12-12 Tom Tromey <tromey@redhat.com>
402 Jan Kratochvil <jan.kratochvil@redhat.com>
404 * osabi.h (osabi_triplet_regexp): Declare.
405 * osabi.c (struct osabi_names): New.
406 (gdb_osabi_names): Change type to struct osabi_names. Update
408 (gdbarch_osabi_name): Update.
409 (osabi_triplet_regexp): New function.
410 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
411 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
412 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
413 set_gdbarch_gnu_triplet_regexp.
414 * gdbarch.sh (gnu_triplet_regexp): New method.
415 * gdbarch.c, gdbarch.h: Rebuild.
416 * arch-utils.h (default_gnu_triplet_regexp): Declare.
417 * arch-utils.c (default_gnu_triplet_regexp): New function.
419 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
421 * arch-utils.c (default_infcall_mmap)
422 (default_gcc_target_options): New functions.
423 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
424 (GDB_MMAP_PROT_EXEC): Define.
425 (default_infcall_mmap, default_gcc_target_options): Declare.
426 * gdbarch.h: Rebuild.
427 * gdbarch.c: Rebuild.
428 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
430 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
432 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
434 (pop_dummy_frame): Call the destructor if it exists.
435 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
437 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
438 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
440 2014-12-12 Tom Tromey <tromey@redhat.com>
442 * gdbtypes.h (make_unqualified_type): Declare.
443 * gdbtypes.c (make_unqualified_type): New function.
445 2014-12-12 Tom Tromey <tromey@redhat.com>
447 * ui-file.h (ui_file_write_for_put): Declare.
448 * ui-file.c (ui_file_write_for_put): New function.
449 * mi/mi-out.c (do_write): Remove.
450 (mi_out_put): Use ui_file_write_for_put.
452 2014-12-12 Doug Evans <dje@google.com>
454 * NEWS: Mention gdb.lookup_objfile.
455 * python/python.c (GdbMethods): Add lookup_objfile.
456 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
457 * python/py-objfile.c: #include "symtab.h".
458 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
459 (objfpy_lookup_objfile_by_name): New function.
460 (objfpy_lookup_objfile_by_build_id): New function.
461 (gdbpy_lookup_objfile): New function.
463 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
465 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
466 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
467 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
469 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
472 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
474 * completer.c: Include "target.h", "reggroups.h", and
476 (reg_or_group_completer): New.
477 * completer.h (reg_or_group_completer): Declare.
478 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
479 the "info registers" and "info all-registers" commands and the
480 dbx-mode "lr" command.
482 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
484 * user-regs.c: Include "arch-utils.h", "command.h", and
486 (maintenance_print_user_registers): New.
487 (_initialize_user_regs): Register new "maint print user-registers"
489 * NEWS: Mention new GDB command "maint print user-registers".
491 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
492 Maciej W. Rozycki <macro@mips.com>
493 Pedro Alves <pedro@codesourcery.com>
495 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
496 remove `predefault' and `invalid_p' initializers.
497 (make_symbol_special): New architecture method.
498 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
499 (objfile, symbol): New declarations.
500 * arch-utils.h (default_elf_make_msymbol_special): Remove
502 (default_make_symbol_special): New prototype.
503 (default_adjust_dwarf2_addr): Likewise.
504 (default_adjust_dwarf2_line): Likewise.
505 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
506 * arch-utils.c (default_elf_make_msymbol_special): Remove
508 (default_make_symbol_special): New function.
509 (default_adjust_dwarf2_addr): Likewise.
510 (default_adjust_dwarf2_line): Likewise.
511 * dwarf2-frame.c (decode_frame_entry_1): Call
512 `gdbarch_adjust_dwarf2_addr'.
513 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
514 * dwarf2read.c (create_addrmap_from_index): Likewise.
515 (process_psymtab_comp_unit_reader): Likewise.
516 (add_partial_symbol): Likewise.
517 (add_partial_subprogram): Likewise.
518 (process_full_comp_unit): Likewise.
519 (read_file_scope): Likewise.
520 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
521 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
522 (read_call_site_scope): Likewise.
523 (dwarf2_ranges_read): Likewise.
524 (dwarf2_record_block_ranges): Likewise.
525 (read_attribute_value): Likewise.
526 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
527 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
528 * elfread.c (elf_symtab_read): Don't call
529 `gdbarch_elf_make_msymbol_special' if unset.
530 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
531 the ISA bit from the PC.
532 * mips-tdep.c (mips_unmake_compact_addr): New function.
533 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
534 address appropriately.
535 (mips_make_symbol_special): New function.
536 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
537 (mips_pc_is_mips16): Likewise.
538 (mips_pc_is_micromips): Likewise.
539 (mips_pc_isa): Likewise.
540 (mips_adjust_dwarf2_addr): New function.
541 (mips_adjust_dwarf2_line): Likewise.
542 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
543 (mips_addr_bits_remove): Likewise.
544 (mips_skip_trampoline_code): Likewise.
545 (mips_write_pc): Don't set the ISA bit.
546 (mips_eabi_push_dummy_call): Likewise.
547 (mips_o64_push_dummy_call): Likewise.
548 (mips_gdbarch_init): Install `mips_make_symbol_special',
549 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
551 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
552 target-specific symbol address adjustments.
553 * gdbarch.h: Regenerate.
554 * gdbarch.c: Regenerate.
556 2014-12-12 Yao Qi <yao@codesourcery.com>
559 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
560 'skip_pc'. Remove code skipping prologue instructions, use
561 arm_analyze_prologue instead.
562 (arm_analyze_prologue): Stop the scanning for unrecognized
563 instruction when skipping prologue.
565 2014-12-12 Yao Qi <yao@codesourcery.com>
567 * arm-tdep.c (arm_instruction_restores_sp): New function.
568 (arm_analyze_prologue): Call arm_instruction_restores_sp.
569 (arm_in_function_epilogue_p): Move code to
570 arm_instruction_restores_sp.
572 2014-12-11 Doug Evans <xdje42@gmail.com>
574 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
576 2014-12-11 Doug Evans <xdje42@gmail.com>
578 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
579 (symbol *lookup_symbol_via_quick_fns): Ditto.
580 (lookup_symbol_in_objfile): Add forward decl.
581 (lookup_global_symbol_from_objfile): Simplify, call
582 lookup_symbol_in_objfile.
584 2014-12-11 Doug Evans <xdje42@gmail.com>
586 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
588 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
591 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
592 it is marked as persistent.
594 2014-12-10 Doug Evans <xdje42@gmail.com>
596 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
597 closer to its subroutines.
599 2014-12-10 Doug Evans <xdje42@gmail.com>
601 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
603 2014-12-10 Doug Evans <xdje42@gmail.com>
605 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
606 * cp-support.h (cp_lookup_symbol_imports): Delete.
608 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
611 * target.c (cleanup_restore_target_terminal): New function.
612 (make_cleanup_restore_target_terminal): New function.
613 * target.h (make_cleanup_restore_target_terminal): New declaration.
614 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
616 2014-12-08 Doug Evans <dje@google.com>
618 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
620 2014-12-08 Doug Evans <dje@google.com>
622 * NEWS: Mention gdb.Objfile.owner.
623 * python/py-objfile.c (objfpy_get_owner): New function.
624 (objfile_getset): Add "owner".
626 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
628 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
629 (lookup_global_symbol_from_objfile): Call it.
631 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
633 Remove const from struct objfile *.
634 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
635 symtab.c, symtab.h: In these files.
637 2014-12-05 Andreas From <andreas.from@ericsson.com>
639 * MAINTAINERS (Write After Approval): Add "Andreas From"
641 2014-12-05 Doug Evans <xdje42@gmail.com>
645 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
647 2014-12-04 Doug Evans <dje@google.com>
649 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
650 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
651 (objfile_getset): Add "add_separate_debug_file".
653 2014-12-04 Doug Evans <dje@google.com>
655 * NEWS: Mention gdb.Objfile.build_id.
656 * build-id.c (build_id_bfd_get): Make non-static.
657 * build-id.h (build_id_bfd_get): Add declaration.
658 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
659 (OBJFPY_REQUIRE_VALID): New macro.
660 (objfpy_get_build_id): New function.
661 (objfile_getset): Add "build_id".
662 * utils.c (make_hex_string): New function.
663 * utils.h (make_hex_string): Add declaration.
665 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
667 * block.c (block_lookup_symbol_primary): New function.
668 * block.h (block_lookup_symbol_primary): New declaration.
669 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
670 Call block_lookup_symbol_primary.
672 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
674 * tramp-frame.h (tramp_frame): Add `validate' member.
675 * tramp-frame.c (tramp_frame_start): Validate trampoline before
677 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
678 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
679 (mips_linux_o32_sigframe): Initialize `validate' member.
680 (mips_linux_o32_rt_sigframe): Likewise.
681 (mips_linux_n32_rt_sigframe): Likewise.
682 (mips_linux_n64_rt_sigframe): Likewise.
683 (micromips_linux_o32_sigframe): New variable.
684 (micromips_linux_o32_rt_sigframe): Likewise.
685 (micromips_linux_n32_rt_sigframe): Likewise.
686 (micromips_linux_n64_rt_sigframe): Likewise.
687 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
688 (mips_linux_n32n64_sigframe_init): Likewise.
689 (mips_linux_sigframe_validate): New function.
690 (micromips_linux_sigframe_validate): Likewise.
691 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
693 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
695 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
696 * sparc-sol2-tdep.c: Include "regset.h".
697 (sparc32_sol2_supply_core_gregset): New function.
698 (sparc32_sol2_collect_core_gregset): Likewise.
699 (sparc32_sol2_supply_core_fpregset): Likewise.
700 (sparc32_sol2_collect_core_fpregset): Likewise.
701 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
702 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
703 tdep->fpregset/sizeof_fpregset.
704 * sparc64-sol2-tdep.c: Include "regset.h".
705 (sparc64_sol2_supply_core_gregset): New function.
706 (sparc64_sol2_collect_core_gregset): Likewise.
707 (sparc64_sol2_supply_core_fpregset): Likewise.
708 (sparc64_sol2_collect_core_fpregset): Likewise.
709 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
710 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
711 tdep->fpregset/sizeof_fpregset.
713 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
715 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
718 2014-12-02 Doug Evans <dje@google.com>
720 * symtab.c (symbol_init_cplus_specific): Delete.
721 (symbol_set_demangled_name): Remove special c++ support.
722 (symbol_get_demangled_name, symbol_set_language): Ditto.
723 * symtab.h (struct cplus_specific): Delete.
724 (struct general_symbol_info) <language_specific>: Remove
727 2014-12-02 Doug Evans <dje@google.com>
730 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
732 2014-12-02 Doug Evans <dje@google.com>
735 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
738 2014-12-02 Doug Evans <dje@google.com>
740 * dwarf2read.c (peek_die_abbrev): Improve error message text.
742 2014-12-02 Doug Evans <dje@google.com>
744 * valops.c (do_search_struct_field): Remove remnant of Chill support.
745 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
747 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
749 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
751 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
753 * NEWS: Mention new Python events.
754 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
755 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
756 (py-infevents.o): New rule.
757 * doc/observer.texi (inferior_call_pre, inferior_call_post)
758 (memory_changed, register_changed): New observers.
759 * infcall.c (call_function_by_hand): Notify observer before and
761 * python/py-event.h (inferior_call_kind): New enum.
762 (emit_inferior_call_event): New prototype.
763 (emit_register_changed_event): New prototype.
764 (emit_memory_changed_event): New prototype.
765 * python/py-events.h (events_object): New registries
766 inferior_call, memory_changed and register_changed.
767 * python/py-evts.c (gdbpy_initialize_py_events): Add the
768 inferior_call, memory_changed and register_changed registries.
769 * python/py-infevents.c: New.
770 * python/py-inferior.c (python_on_inferior_call_pre)
771 (python_on_inferior_call_post, python_on_register_change)
772 (python_on_memory_change): New functions.
773 (gdbpy_initialize_inferior): Attach python handler to new
775 * python/py-infthread.c(gdbpy_create_ptid_object): New.
776 (thpy_get_ptid) Use gdbpy_create_ptid_object.
777 * python/python-internal.h:
778 (gdbpy_create_ptid_object)
779 (gdbpy_initialize_inferior_call_pre_event)
780 (gdbpy_initialize_inferior_call_post_event)
781 (gdbpy_initialize_register_changed_event)
782 (gdbpy_initialize_memory_changed_event): New prototypes.
783 * python/python.c (_initialize_python): Initialize new events.
784 * valops.c (value_assign): Notify register_changed observer.
786 2014-12-02 Doug Evans <dje@google.com>
788 * python/py-infthread.c: Whitespace fixes.
790 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
792 * features/Makefile (s390-te-linux64-expedite): Replace
793 non-existant r14 and r15 by r14l and r15l, respectively.
794 * regformats/s390-te-linux64.dat: Regenerate.
796 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
798 * objfiles.c (allocate_objfile): Remove duplicate comment.
800 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
802 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
803 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
804 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
805 (supply_gregset, supply_fpregset): Remove.
806 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
807 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
810 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
812 Add add-auto-load-scripts-directory.
813 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
814 * auto-load.c (add_auto_load_dir): New function.
815 (_initialize_auto_load): Install it.
817 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
819 Pushed by Joel Brobecker <brobecker@adacore.com>.
820 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
822 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
824 * eval.c (evaluate_subexp): Check that the thread stack temporaries
825 are not already enabled before enabling them.
827 2014-11-29 Yao Qi <yao@codesourcery.com>
829 * arm-tdep.c (arm_analyze_prologue): Move local variables
830 'framereg' and 'framesize' to inner block. Move code to
833 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
835 * eval.c: Include gdbthread.h.
836 (evaluate_subexp): Enable thread stack temporaries before
837 evaluating a complete expression and clean them up after the
838 evaluation is complete.
839 * gdbthread.h: Include common/vec.h.
840 (value_ptr): New typedef.
841 (VEC (value_ptr)): New vector type.
842 (value_vec): New typedef.
843 (struct thread_info): Add new fields stack_temporaries_enabled
844 and stack_temporaries.
845 (enable_thread_stack_temporaries)
846 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
847 (get_last_thread_stack_temporary)
848 (value_in_thread_stack_temporaries): Declare.
849 * gdbtypes.c (class_or_union_p): New function.
850 * gdbtypes.h (class_or_union_p): Declare.
851 * infcall.c (call_function_by_hand): Store return values of class
852 type as temporaries on stack.
853 * thread.c (enable_thread_stack_temporaries): New function.
854 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
855 (get_last_thread_stack_temporary): Likewise.
856 (value_in_thread_stack_temporaries): Likewise.
857 * value.c (value_force_lval): New function.
858 * value.h (value_force_lval): Declare.
860 2014-11-28 Pierre Muller <muller@sourceware.org>
862 Pushed by Joel Brobecker <brobecker@adacore.com>.
863 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
866 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
868 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
869 * config/sparc/linux.mh (NATDEPFILES): Likewise.
870 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
871 * m68klinux-nat.c (fetch_core_registers): Remove.
872 (linux_elf_core_fns): Remove.
873 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
875 2014-11-28 Joel Brobecker <brobecker@adacore.com>
877 * utils.c (gdb_realpath): Rework comment about handling on
880 2014-11-28 Yao Qi <yao@codesourcery.com>
882 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
884 * gnulib/aclocal.m4: Re-generated.
885 * gnulib/config.in: Re-generated.
886 * gnulib/configure: Re-generated.
887 * gnulib/import/Makefile.am: Re-generated.
888 * gnulib/import/Makefile.in: Re-generated.
889 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
890 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
891 * import/basename-lgpl.c: New file.
892 * import/dirname-lgpl.c: New file.
893 * import/dirname.h: New file.
894 * import/m4/dirname.m4: New file.
895 * import/m4/malloc.m4: New file.
896 * import/m4/rename.m4: New file.
897 * import/m4/rmdir.m4: New file.
898 * import/m4/stdio_h.m4: New file.
899 * import/malloc.c: New file.
900 * import/rename.c: New file.
901 * import/rmdir.c: New file.
902 * import/same-inode.h: New file.
903 * import/stdio.c: New file.
904 * import/stdio.in.h: New file.
905 * import/stripslash.c: New file.
907 2014-11-28 Yao Qi <yao@codesourcery.com>
909 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
911 * config.in: Re-generated.
912 * configure: Re-generated.
913 * utils.c (gdb_realpath): Remove code calling realpath,
914 canonicalize_file_name and pathconf.
915 [!_WIN32]: Call canonicalize_file_name.
917 2014-11-28 Yao Qi <yao@codesourcery.com>
919 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
921 * aclocal.m4: Re-generated.
922 * config.in: Re-generated.
923 * configure: Re-generated.
924 * import/Makefile.am: Re-generated.
925 * import/Makefile.in: Re-generated.
926 * import/m4/gnulib-cache.m4: Re-generated.
927 * import/m4/gnulib-comp.m4: Re-generated.
928 * import/canonicalize-lgpl.c: New file.
929 * import/extra/snippet/_Noreturn.h: New file.
930 * import/m4/canonicalize.m4: New file.
931 * import/m4/double-slash-root.m4: New file.
932 * import/m4/eealloc.m4: New file.
933 * import/m4/malloca.m4: New file.
934 * import/m4/nocrash.m4: New file.
935 * import/m4/stdlib_h.m4: New file.
936 * import/malloca.c: New file.
937 * import/malloca.h: New file.
938 * import/malloca.valgrind: New file.
940 2014-11-28 Yao Qi <yao@codesourcery.com>
942 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
943 * config.in, configure: Regenerate.
944 * symfile.c (find_separate_debug_file_by_debuglink): Remove
945 code checking HAVE_LSTAT is defined.
947 2014-11-28 Yao Qi <yao@codesourcery.com>
949 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
951 * gnulib/aclocal.m4: Re-generated.
952 * gnulib/config.in: Re-generated.
953 * gnulib/configure: Re-generated.
954 * gnulib/import/Makefile.am: Re-generated.
955 * gnulib/import/Makefile.in: Re-generated.
956 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
957 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
958 * gnulib/import/lstat.c: New file.
959 * gnulib/import/m4/lstat.m4: New file.
961 2014-11-28 Yao Qi <yao@codesourcery.com>
963 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
964 * config.in, configure: Re-generate.
965 * inf-child.c (inf_child_fileio_readlink): Don't check
966 HAVE_READLINK is defined.
968 2014-11-28 Yao Qi <yao@codesourcery.com>
970 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
971 * gnulib/aclocal.m4: Re-generated.
972 * gnulib/config.in: Likewise.
973 * gnulib/configure: Likewise.
974 * gnulib/import/Makefile.am: Likewise.
975 * gnulib/import/Makefile.in: Likewise.
976 * gnulib/import/m4/gnulib-cache.m4: Likewise.
977 * gnulib/import/m4/gnulib-comp.m4: Likewise.
978 * gnulib/import/dosname.h: New file
979 * gnulib/import/m4/largefile.m4: New file.
980 * gnulib/import/m4/readlink.m4: New file.
981 * gnulib/import/m4/stat.m4: New file.
982 * gnulib/import/readlink.c: New file.
983 * gnulib/import/stat.c: New file.
985 2014-11-26 Mark Wielaard <mjw@redhat.com>
987 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
988 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
990 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
992 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
993 that there can be only one stack adjustment in the prologue
994 with tests to detect specific disallowed stack adjustments.
996 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
998 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1001 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1003 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1004 the instruction as well as reading it from memory.
1005 (nios2_match_add): New.
1006 (nios2_match_sub): New.
1007 (nios2_match_addi): New.
1008 (nios2_match_orhi): New.
1009 (nios2_match_stw): New.
1010 (nios2_match_ldw): New.
1011 (nios2_match_rdctl): New.
1012 (enum branch_condition): New.
1013 (nios2_match_branch): New.
1014 (nios2_match_jmpi): New.
1015 (nios2_match_calli): New.
1016 (nios2_match_jmpr): New.
1017 (nios2_match_callr): New.
1018 (nios2_match_break): New.
1019 (nios2_match_trap): New.
1020 (nios2_in_epilogue_p): Rewrite to use new functions.
1021 (nios2_analyze_prologue): Likewise.
1022 (nios2_skip_prologue): Delete unused local limit_pc.
1023 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1024 (nios2_get_next_pc): Rewrite to use new functions.
1026 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1028 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1030 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1032 Pushed by Joel Brobecker <brobecker@adacore.com>
1033 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1034 elements pi_len by the size of the elements before calling
1036 (inf_validate_task_sc): Likewise, and properly deallocate the
1039 2014-11-23 Doug Evans <xdje42@gmail.com>
1041 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1042 number and name if present. All callers updated.
1043 (dump_fn_fieldlists): Fix indentation of args.
1045 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1047 * MAINTAINERS (Write After Approval): Add myself.
1049 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1051 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1052 to a bp_call_dummy breakpoint type.
1054 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1056 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1057 registering the signal handler.
1059 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1061 * event-top.h (call_stdin_event_handler_again_p): Declare.
1062 * event-top.c (call_stdin_event_handler_again_p): Define.
1063 (stdin_event_handler): Use it.
1064 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1065 handler again if there is pending input following a
1068 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1070 Pushed by Joel Brobecker <brobecker@adacore.com>
1071 * linux-fork.c (checkpoint_command): Print index of new
1072 checkpoint in response message.
1074 2014-11-23 Yao Qi <yao@codesourcery.com>
1076 * valprint.c (read_string): Move local variables 'found_nul',
1077 'chunksize' and 'limit' to inner scope. Update comments.
1079 2014-11-22 Doug Evans <xdje42@gmail.com>
1081 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1083 (search_symbols): Fix comments and whitespace.
1085 2014-11-22 Doug Evans <xdje42@gmail.com>
1087 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1089 2014-11-21 Doug Evans <dje@google.com>
1091 * psymtab.c (psymtab_search_name): Fix whitespace.
1093 2014-11-21 Yao Qi <yao@codesourcery.com>
1095 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1097 * gnulib/import/Makefile.am: Re-generated.
1098 * gnulib/import/Makefile.in: Likewise.
1099 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1101 2014-11-21 Yao Qi <yao@codesourcery.com>
1103 * gdb_wchar.h: Include wchar.h and wctype.h.
1104 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1105 include wchar.h and wctype.h.
1106 Don't check HAVE_WCHAR_H.
1108 2014-11-21 Yao Qi <yao@codesourcery.com>
1110 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1112 * gnulib/import/Makefile.am: Re-generated.
1113 * gnulib/import/Makefile.in: Likewise.
1114 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1116 2014-11-21 Yao Qi <yao@codesourcery.com>
1118 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1120 * gnulib/import/Makefile.am: Re-generated.
1121 * gnulib/import/Makefile.in: Likewise.
1122 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1124 2014-11-21 Yao Qi <yao@codesourcery.com>
1126 * common/common-defs.h: Include alloca.h
1127 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1128 * configure: Re-generated.
1129 * defs.h: Remove code handling alloca.
1130 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1133 2014-11-21 Yao Qi <yao@codesourcery.com>
1135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1137 * gnulib/import/Makefile.am: Re-generated.
1138 * gnulib/import/Makefile.in: Likewise..
1139 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1141 2014-11-21 Yao Qi <yao@codesourcery.com>
1143 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1146 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1148 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1149 flag_unsigned if HIGH_BOUND is constant and negative.
1151 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1153 PR breakpoints/10737
1154 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1155 modifier from "struct gdbarch" when compiling without Expat (XML)
1157 (get_syscall_by_number): Likewise.
1158 (get_syscall_by_name): Likewise.
1159 (get_syscall_names): Likewise.
1161 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1163 PR breakpoints/10737
1164 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1165 set_xml_syscall_file_name to provide gdbarch.
1166 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1167 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1168 * breakpoint.c (print_it_catch_syscall): Adjust call to
1169 get_syscall_by_number to provide gdbarch.
1170 (print_one_catch_syscall): Likewise.
1171 (print_mention_catch_syscall): Likewise.
1172 (print_recreate_catch_syscall): Likewise.
1173 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1174 and get_syscall_by_name to provide gdbarch.
1175 (catch_syscall_completer): Adjust call to get_syscall_names to
1177 * gdbarch.c: Regenerate.
1178 * gdbarch.h: Likewise.
1179 * gdbarch.sh: Forward declare "struct syscalls_info".
1180 (xml_syscall_file): New variable.
1181 (syscalls_info): Likewise.
1182 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1183 set_xml_syscall_file_name to provide gdbarch.
1184 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1185 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1186 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1187 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1188 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1189 * xml-syscall.c: Include gdbarch.h.
1190 (set_xml_syscall_file_name): Accept gdbarch parameter.
1191 (get_syscall_by_number): Likewise.
1192 (get_syscall_by_name): Likewise.
1193 (get_syscall_names): Likewise.
1194 (my_gdb_datadir): Delete global variable.
1195 (struct syscalls_info) <my_gdb_datadir>: New variable.
1196 (struct syscalls_info) <sysinfo>: Rename variable to
1198 (sysinfo): Delete global variable.
1199 (have_initialized_sysinfo): Likewise.
1200 (xml_syscall_file): Likewise.
1201 (sysinfo_free_syscalls_desc): Rename to...
1202 (syscalls_info_free_syscalls_desc): ... this.
1203 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1204 code to the new layout of "struct syscalls_info".
1205 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1207 (syscall_create_syscall_desc): Likewise.
1208 (syscall_start_syscall): Likewise.
1209 (syscall_parse_xml): Likewise.
1210 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1211 (init_sysinfo): Rename to...
1212 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1213 Adjust function to deal with gdbarch.
1214 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1215 gdbarch as a parameter. Adjust code.
1216 (xml_get_syscall_name): Likewise.
1217 (xml_list_of_syscalls): Likewise.
1218 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1219 (get_syscall_by_number): Likewise.
1220 (get_syscall_by_name): Likewise.
1221 (get_syscall_names): Likewise.
1222 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1223 (get_syscall_by_number): Likewise.
1224 (get_syscall_by_name): Likewise.
1225 (get_syscall_names): Likewise.
1227 2014-11-20 Doug Evans <xdje42@gmail.com>
1229 Split struct symtab into two: struct symtab and compunit_symtab.
1230 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1231 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1232 to "struct compunit_symtab *". All callers updated.
1233 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1234 "struct symtab *" argument to "struct compunit_symtab *".
1235 All callers updated.
1236 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1237 result to "struct compunit_symtab *". All callers updated.
1238 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1239 Change result to "struct compunit_symtab *". All callers updated.
1240 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1241 hange type to "struct compunit_symtab *". All uses updated.
1242 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1243 Change type to "struct compunit_symtab *". All uses updated.
1244 * buildsym.c (struct buildsym_compunit): New struct.
1245 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1246 (buildsym_compunit): New static global.
1247 (finish_block_internal): Update to fetch objfile from
1249 (make_blockvector): Delete objfile argument.
1250 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1251 debugformat, producer.
1252 (start_buildsym_compunit): New function.
1253 (free_buildsym_compunit): Renamed from free_subfiles_list.
1254 All callers updated.
1255 (patch_subfile_names): Rewrite to use buildsym_compunit.
1256 (get_compunit_symtab): New function.
1257 (get_macro_table): Delete argument comp_dir. All callers updated.
1258 (start_symtab): Change result to "struct compunit_symtab *".
1259 All callers updated. Create the subfile of the main source file.
1260 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1261 (reset_symtab_globals): Update.
1262 (end_symtab_get_static_block): Update to use buildsym_compunit.
1263 (end_symtab_without_blockvector): Rewrite.
1264 (end_symtab_with_blockvector): Change result to
1265 "struct compunit_symtab *". All callers updated.
1266 Update to use buildsym_compunit. Don't set symtab->dirname,
1267 instead set it in the compunit.
1268 Explicitly make sure main symtab is first in its list.
1269 Set debugformat, producer, blockvector, block_line_section, and
1270 macrotable in the compunit.
1271 (end_symtab_from_static_block): Change result to
1272 "struct compunit_symtab *". All callers updated.
1273 (end_symtab, end_expandable_symtab): Ditto.
1274 (set_missing_symtab): Change symtab argument to
1275 "struct compunit_symtab *". All callers updated.
1276 (augment_type_symtab): Ditto.
1277 (record_debugformat): Update to use buildsym_compunit.
1278 (record_producer): Update to use buildsym_compunit.
1279 * buildsym.h (struct subfile) <dirname>: Delete.
1280 <producer, debugformat>: Delete.
1281 <buildsym_compunit>: New member.
1282 (get_compunit_symtab): Declare.
1283 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1284 from primary_symtab. Change type to "struct compunit_symtab *".
1286 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1287 All callers updated.
1288 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1289 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1290 symtab. Change type to "struct compunit_symtab *". All uses updated.
1291 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1292 All callers updated.
1293 (dw2_find_last_source_symtab): Ditto.
1294 (dw2_lookup_symbol): Ditto.
1295 (recursively_find_pc_sect_compunit_symtab): Renamed from
1296 recursively_find_pc_sect_symtab. Change result to
1297 "struct compunit_symtab *". All callers updated.
1298 (dw2_find_pc_sect_compunit_symtab): Renamed from
1299 dw2_find_pc_sect_symtab. Change result to
1300 "struct compunit_symtab *". All callers updated.
1301 (get_compunit_symtab): Renamed from get_symtab. Change result to
1302 "struct compunit_symtab *". All callers updated.
1303 (recursively_compute_inclusions): Change type of immediate_parent
1304 argument to "struct compunit_symtab *". All callers updated.
1305 (compute_compunit_symtab_includes): Renamed from
1306 compute_symtab_includes. All callers updated. Rewrite to compute
1307 includes of compunit_symtabs and not symtabs.
1308 (process_full_comp_unit): Update to work with struct compunit_symtab.
1309 (process_full_type_unit): Ditto.
1310 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1311 (dwarf_decode_lines): Remove special case handling of main subfile.
1312 (macro_start_file): Delete argument comp_dir. All callers updated.
1313 (dwarf_decode_macro_bytes): Ditto.
1314 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1315 use struct compunit_symtab.
1316 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1317 * jit.c (finalize_symtab): Build compunit_symtab.
1318 * jv-lang.c (get_java_class_symtab): Change result to
1319 "struct compunit_symtab *". All callers updated.
1320 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1321 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1322 comp_dir. Change type to "struct compunit_symtab *".
1324 (new_macro_table): Change comp_dir argument to cust,
1325 "struct compunit_symtab *". All callers updated.
1326 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1327 nr_primary_symtabs. All uses updated.
1328 (count_symtabs_and_blocks): Update to handle compunits.
1329 (report_command_stats): Update output, "primary symtabs" renamed to
1331 * mdebugread.c (new_symtab): Change result to
1332 "struct compunit_symtab *". All callers updated.
1333 (parse_procedure): Change type of search_symtab argument to
1334 "struct compunit_symtab *". All callers updated.
1335 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1337 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1338 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1339 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1341 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1343 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1344 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1345 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1346 symtab. Change type to "struct compunit_symtab *". All uses updated.
1347 * psymtab.c (psymtab_to_symtab): Change result type to
1348 "struct compunit_symtab *". All callers updated.
1349 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1350 find_pc_sect_symtab_from_partial. Change result type to
1351 "struct compunit_symtab *". All callers updated.
1352 (lookup_symbol_aux_psymtabs): Change result type to
1353 "struct compunit_symtab *". All callers updated.
1354 (find_last_source_symtab_from_partial): Ditto.
1355 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1356 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1357 and macro_table from compunit.
1358 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1359 type to "struct compunit_symtab *". All callers updated.
1360 (debug_qf_lookup_symbol): Ditto.
1361 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1362 debug_qf_find_pc_sect_symtab, change result type to
1363 "struct compunit_symtab *". All callers updated.
1364 * symfile.c (allocate_symtab): Delete objfile argument.
1366 (allocate_compunit_symtab): New function.
1367 (add_compunit_symtab_to_objfile): New function.
1368 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1369 Change result type to "struct compunit_symtab *". All uses updated.
1370 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1371 Change result type to "struct compunit_symtab *". All uses updated.
1372 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1374 (dump_symtab_1): Update test for primary source symtab.
1375 (maintenance_info_symtabs): Update to handle compunit symtabs.
1376 (maintenance_check_symtabs): Ditto.
1377 * symtab.c (set_primary_symtab): Delete.
1378 (compunit_primary_filetab): New function.
1379 (compunit_language): New function.
1380 (iterate_over_some_symtabs): Change type of arguments "first",
1381 "after_last" to "struct compunit_symtab *". All callers updated.
1382 Update to loop over symtabs in each compunit.
1383 (error_in_psymtab_expansion): Rename symtab argument to cust,
1384 and change type to "struct compunit_symtab *". All callers updated.
1385 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1386 Change result type to "struct compunit_symtab *". All callers updated.
1387 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1388 Change result type to "struct compunit_symtab *". All callers updated.
1389 (find_pc_sect_line): Only loop over symtabs within selected compunit
1390 instead of all symtabs in the objfile.
1391 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1392 <compunit_symtab> New member.
1393 <block_line_section>: Moved to compunit_symtab.
1394 <locations_valid>: Ditto.
1395 <epilogue_unwind_valid>: Ditto.
1396 <macro_table>: Ditto.
1398 <debugformat>: Ditto.
1401 <call_site_htab>: Ditto.
1405 (SYMTAB_COMPUNIT): New macro.
1406 (SYMTAB_BLOCKVECTOR): Update definition.
1407 (SYMTAB_OBJFILE): Update definition.
1408 (SYMTAB_DIRNAME): Update definition.
1409 (struct compunit_symtab): New type. Common members among all source
1410 symtabs within a compilation unit moved here. All uses updated.
1411 (COMPUNIT_OBJFILE): New macro.
1412 (COMPUNIT_FILETABS): New macro.
1413 (COMPUNIT_DEBUGFORMAT): New macro.
1414 (COMPUNIT_PRODUCER): New macro.
1415 (COMPUNIT_DIRNAME): New macro.
1416 (COMPUNIT_BLOCKVECTOR): New macro.
1417 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1418 (COMPUNIT_LOCATIONS_VALID): New macro.
1419 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1420 (COMPUNIT_CALL_SITE_HTAB): New macro.
1421 (COMPUNIT_MACRO_TABLE): New macro.
1422 (ALL_COMPUNIT_FILETABS): New macro.
1423 (compunit_symtab_ptr): New typedef.
1424 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1426 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1428 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1429 if the TYPE_CODE of range_type's base type does not match
1430 the TYPE_CODE of encoding_type's base type.
1432 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1434 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1437 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1439 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1440 (ada_is_redundant_index_type_desc): New function.
1441 (to_fixed_array_type): Ignore parallel XA type if redundant.
1443 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1445 * ada-lang.c (constrained_packed_array_type): Set the length
1446 of the return array as if both bounds where zero if that
1447 returned array's index type is dynamic.
1449 2014-11-19 Yao Qi <yao@codesourcery.com>
1451 * config/i386/go32.mh (CC): Remove.
1453 2014-11-18 Doug Evans <xdje42@gmail.com>
1455 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1458 2014-11-18 Doug Evans <xdje42@gmail.com>
1460 * buildsym.c (buildsym_objfile): New static global.
1461 (buildsym_comp_dir): New static global.
1462 (finish_block_internal): Delete arg objfile. All callers updated.
1463 (finish_block): Delete arg objfile. All callers updated.
1464 (start_subfile): Delete arg dirname. All callers updated.
1465 (patch_subfile_names): Update buildsym_comp_dir.
1466 (get_macro_table): Delete arg objfile. All callers updated.
1467 (start_symtab): New arg objfile. All callers updated.
1468 Rename arg dirname to comp_dir.
1469 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1470 (end_symtab_get_static_block): Delete arg objfile. All callers
1472 (end_symtab_without_blockvector): Ditto.
1473 (end_symtab_with_blockvector): Ditto.
1474 (end_symtab_from_static_block): Ditto.
1475 (end_symtab): Ditto.
1476 (end_expandable_symtab): Ditto.
1477 (augment_type_symtab): Ditto.
1478 * coffread.c (coff_start_symtab): New arg objfile. All callers
1481 2014-11-18 Doug Evans <xdje42@gmail.com>
1483 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1486 2014-11-18 Doug Evans <xdje42@gmail.com>
1488 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1489 symtab.dirname updated to use it.
1491 2014-11-18 Doug Evans <xdje42@gmail.com>
1493 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1494 symtab.objfile updated to use it.
1496 2014-11-18 Doug Evans <xdje42@gmail.com>
1498 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1500 2014-11-18 Doug Evans <xdje42@gmail.com>
1502 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1504 * findvar.c (default_read_var_value): Ditto.
1505 * jv-lang.c (add_class_symtab_symbol): Ditto.
1506 * parse.c (operator_check_standard): Ditto.
1507 * printcmd.c (address_info): Ditto.
1508 * symtab.c (fixup_symbol_section): Ditto.
1509 (skip_prologue_sal): Ditto.
1510 * tracepoint.c (scope_info): Ditto.
1511 * valops.c (find_function_in_inferior): Ditto.
1512 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1513 * python/py-symbol.c (set_symbol): Ditto.
1515 2014-11-18 Doug Evans <xdje42@gmail.com>
1517 * buildsym.c (main_subfile): New static global.
1518 (free_subfiles_list): New function.
1519 (start_symtab): Set main_subfile.
1520 (restart_symtab): Replace init of subfiles, current_subfile with
1521 call to free_subfiles_list.
1522 (watch_main_source_file_lossage): Use main_subfile.
1523 (reset_symtab_globals): Replace init of current_subfile with call
1524 to free_subfiles_list.
1525 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1526 functions, split out from ...
1527 (end_symtab_from_static_block): ... here. Rewrite to call them.
1529 2014-11-18 Doug Evans <xdje42@gmail.com>
1531 The result of symtab expansion is always a primary symtab.
1532 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1533 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1534 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1535 (psymtab_to_symtab): Add comment and assert.
1536 (map_matching_symbols_psymtab): Remove unnecessary test for
1539 2014-11-15 Doug Evans <xdje42@gmail.com>
1542 * symtab.c (find_pc_line_symtab): New function.
1543 * symtab.h (find_pc_line_symtab): Declare.
1544 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1546 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1547 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1548 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1549 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1550 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1551 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1553 2014-11-15 Doug Evans <xdje42@gmail.com>
1555 * symtab.c (expand_symtab_containing_pc): Renamed from
1556 find_pc_sect_symtab_via_partial. All callers updated.
1558 2014-11-15 Yao Qi <yao@codesourcery.com>
1560 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1562 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1564 * common/common-defs.h: Move <stdarg.h> #include ahead of
1567 2014-11-14 Pedro Alves <palves@redhat.com>
1569 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1570 [!PHONY_ICONV] (gdb_iconv): New function.
1571 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1573 2014-11-13 Doug Evans <dje@google.com>
1576 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1577 "(anonymous namespace)".
1579 2014-11-13 Doug Evans <dje@google.com>
1581 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1584 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1586 * NEWS (maint set target-async): Fix typo.
1588 2014-11-12 Pedro Alves <palves@redhat.com>
1590 * infrun.c (enum infwait_states, infwait_state): Delete.
1592 2014-11-12 Pedro Alves <palves@redhat.com>
1594 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1595 Rewrite stepping over a permanent breakpoint.
1596 (thread_still_needs_step_over, proceed): Don't set
1597 stepping_over_breakpoint for permanent breakpoints.
1598 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1599 single-step breakpoints out of the target on hardware step
1601 (process_event_stop_test): If stepping a permanent breakpoint
1602 doesn't hit the step-resume breakpoint, delete the step-resume
1604 (switch_back_to_stepped_thread): Also check if the stepped thread
1605 has advanced already on hardware step targets.
1606 (currently_stepping): Return true if the thread stepped a
1609 2014-11-12 Pedro Alves <palves@redhat.com>
1611 Mark locations as permanent, not the whole breakpoint.
1612 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1613 (mark_breakpoints_out): Don't mark permanent breakpoints as
1615 (breakpoint_init_inferior): Use mark_breakpoints_out.
1616 (breakpoint_here_p): Adjust.
1617 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1618 of permanent breakpoints.
1619 (make_breakpoint_permanent): Mark each location as permanent,
1620 instead of marking the breakpoint.
1621 (add_location_to_breakpoint): If the location is permanent, mark
1622 it as such, and as inserted.
1623 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1624 (bp_location_compare, update_global_location_list): Adjust.
1625 (update_breakpoint_locations): Don't make the breakpoint permanent
1627 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1629 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1630 (struct bp_location) <permanent>: New field.
1631 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1632 reference to bp_permanent.
1634 2014-11-12 Pedro Alves <palves@redhat.com>
1636 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1637 * arch-utils.h (default_skip_permanent_breakpoint): New
1639 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1640 Install default_skip_permanent_breakpoint as default method.
1641 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1642 (i386_gdbarch_init): Don't install it.
1643 * infrun.c (resume): Assume there's always a
1644 gdbarch_skip_permanent_breakpoint implementation.
1645 * gdbarch.h, gdbarch.c: Regenerate.
1647 2014-11-11 Daniel Colascione <dancol@dancol.org>
1649 Warn about cross-PID-namespace debugging.
1650 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1651 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1652 * linux-thread-db.c (check_pid_namespace_match): New function.
1653 (thread_db_inferior_created): Call it.
1655 2014-11-10 Doug Evans <xdje42@gmail.com>
1657 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1658 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1660 2014-11-10 Doug Evans <xdje42@gmail.com>
1662 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1664 2014-11-10 Doug Evans <xdje42@gmail.com>
1667 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1668 (lookup_static_symbol): Move definition to new location and rewrite.
1669 (lookup_symbol_in_objfile): New function.
1670 (lookup_symbol_global_iterator_cb): Call it.
1672 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1674 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1676 2014-11-07 Pedro Alves <palves@redhat.com>
1678 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1679 check if we did a "nexti" inside a prologue.
1680 * symtab.c (in_prologue): Delete function.
1681 * symtab.h (in_prologue): Delete declaration.
1683 2014-11-06 Doug Evans <xdje42@gmail.com>
1685 * symtab.h (lookup_global_symbol): Improve function comment.
1687 2014-11-06 Doug Evans <xdje42@gmail.com>
1689 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1690 All callers updated.
1691 * symtab.h (lookup_global_symbol): Update decl.
1692 (lookup_static_symbol): Move decl to better location.
1694 2014-11-06 Doug Evans <xdje42@gmail.com>
1696 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1698 2014-11-06 Doug Evans <xdje42@gmail.com>
1700 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1701 All callers updated.
1702 (lookup_symbol_in_all_objfiles): Renamed from
1703 lookup_symbol_aux_symtabs. All callers updated.
1704 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1705 All callers updated.
1706 (lookup_symbol_in_objfile_symtabs): Renamed from
1707 lookup_symbol_aux_objfile. All callers updated.
1709 2014-11-06 Doug Evans <xdje42@gmail.com>
1711 * symtab.c (lookup_symbol_in_block): Renamed from
1712 lookup_symbol_aux_block. All callers updated.
1714 2014-11-06 Doug Evans <xdje42@gmail.com>
1716 * symtab.c (lookup_static_symbol): Renamed from
1717 lookup_static_symbol_aux. All callers updated.
1718 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1719 All callers updated.
1721 2014-11-06 Doug Evans <xdje42@gmail.com>
1723 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1724 * block.c (block_lookup_symbol): Use it.
1725 * cp-support.c (make_symbol_overload_list_block): Use it.
1726 * symtab.c (iterate_over_symbols): Use it.
1728 2014-11-06 Doug Evans <xdje42@gmail.com>
1730 * symtab.c (lookup_block_symbol): Moved to ...
1731 * block.c (block_lookup_symbol): ... here and renamed.
1732 All callers updated.
1733 * block.h (block_lookup_symbol): Declare.
1734 * symtab.h (lookup_block_symbol): Delete.
1736 2014-11-06 Doug Evans <xdje42@gmail.com>
1738 * ada-lang.c (ada_make_symbol_completion_list): Use
1739 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1740 * symtab.c (lookup_objfile_from_block): Ditto.
1742 2014-11-06 Doug Evans <xdje42@gmail.com>
1744 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1747 2014-11-06 Doug Evans <xdje42@gmail.com>
1749 * objfiles.c (get_objfile_arch): Constify.
1750 * objfiles.h (get_objfile_arch): Update prototype.
1751 * solib.c (solib_global_lookup): Fetch arch from objfile,
1754 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1756 * nios2-tdep.c (wild_insn): Delete.
1757 (profiler_insn, irqentry_insn): Delete.
1758 (nios2_match_sequence): Delete.
1759 (nios2_analyze_prologue): Update comments. Remove matching
1760 of obsolete profiler_insn and irqentry_insn sequences.
1762 2014-11-05 Alan Modra <amodra@gmail.com>
1764 * charset.c (convert_between_encodings): Shrink obstack using
1766 * minsyms.c (install_minimal_symbols): Likewise.
1767 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1768 to char* before doing pointer arithmetic.
1770 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1772 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1774 2014-11-04 Pedro Alves <palves@redhat.com>
1776 * breakpoint.c (breakpoint_thread_match): Delete function.
1777 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1779 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1782 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1783 the method args also under EVAL_SKIP when evaluating method
1784 calls under EVAL_SKIP.
1786 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1788 * dwarf2loc.c (read_pieced_value): Do big endian
1789 processing only if gdb_regnum is not -1.
1790 (write_pieced_value): Ditto.
1792 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1794 * arm-linux-tdep.c (arm_linux_init_abi): Use
1795 info.byte_order_for_code to choose endianity of breakpoint
1796 instructions snippets.
1798 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1800 * arm-tdep.c (extract_arm_insn): Use
1801 gdbarch_byte_order_for_code to read arm instruction.
1803 2014-11-02 Doug Evans <xdje42@gmail.com>
1805 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1807 2014-11-02 Doug Evans <xdje42@gmail.com>
1809 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1810 main_subfile before returning.
1812 2014-10-31 Doug Evans <xdje42@gmail.com>
1814 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1815 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1817 2014-10-31 Doug Evans <xdje42@gmail.com>
1819 * valops.c (value_cast_pointers): Fix whitespace.
1820 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1823 2014-10-30 Doug Evans <dje@google.com>
1825 * NEWS: Mention ability add attributes to gdb.Objfile and
1826 gdb.Progspace objects.
1827 * python/py-objfile.c (objfile_object): New member dict.
1828 (objfpy_dealloc): Py_XDECREF dict.
1829 (objfpy_initialize): Initialize dict.
1830 (objfile_getset): Add __dict__.
1831 (objfile_object_type): Set tp_dictoffset member.
1832 * python/py-progspace.c (progspace_object): New member dict.
1833 (pspy_dealloc): Py_XDECREF dict.
1834 (pspy_initialize): Initialize dict.
1835 (pspace_getset): Add __dict__.
1836 (pspace_object_type): Set tp_dictoffset member.
1838 2014-10-30 Yao Qi <yao@codesourcery.com>
1840 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1841 replace '\\' with '\\\\'.
1843 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1847 2014-10-29 Pedro Alves <palves@redhat.com>
1850 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1851 instead of assuming a thread with a stepping range is always
1854 2014-10-29 Pedro Alves <palves@redhat.com>
1857 * event-top.c (change_line_handler): Call
1858 gdb_rl_callback_handler_remove instead of
1859 rl_callback_handler_remove.
1860 (callback_handler_installed): New global.
1861 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1862 (gdb_rl_callback_handler_reinstall): New functions.
1863 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1864 gdb_rl_callback_handler_install instead of
1865 rl_callback_handler_remove and rl_callback_handler_install.
1866 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1867 instead of rl_callback_handler_remove.
1868 * event-top.h (gdb_rl_callback_handler_remove)
1869 (gdb_rl_callback_handler_install)
1870 (gdb_rl_callback_handler_reinstall): New declarations.
1871 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1873 (fetch_inferior_event): Install it.
1874 * top.c (gdb_readline_wrapper_line) Call
1875 gdb_rl_callback_handler_remove instead of
1876 rl_callback_handler_remove.
1877 (gdb_readline_wrapper_cleanup): Don't call
1878 rl_callback_handler_install.
1880 2014-10-29 Pedro Alves <palves@redhat.com>
1882 * event-top.c (command_line_handler): Clear the first byte of
1883 linebuffer, when it is first allocated.
1885 2014-10-29 Pedro Alves <palves@redhat.com>
1887 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1890 2014-10-29 Pedro Alves <palves@redhat.com>
1894 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1895 (tui_allowed_p): Delete function.
1896 * tui/tui.c: Include "interps.h".
1897 (tui_enable): Don't use tui_allowed_p. Error out here with
1898 detailed error messages if the TUI is the top level interpreter,
1899 or if output is not a terminal. Use newterm instead of initscr,
1900 and error out if initializing the terminal fails. Also error out if
1901 the terminal doesn't support cursor addressing.
1902 * tui/tui.h (tui_allowed_p): Delete declaration.
1904 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1906 * arm-tdep.c (arm_skip_stack_protector): Return early if
1907 address loaded by first "ldr" instruction does not have
1908 a corresponding minimal symbol. Update comment.
1910 2014-10-29 Yao Qi <yao@codesourcery.com>
1912 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1913 loaded address correctly of ldr instruction.
1915 2014-10-28 Pedro Alves <palves@redhat.com>
1918 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1920 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1921 thread's stepped_breakpoint field. Skip if reverse debugging.
1923 (init_thread_stepping_state, handle_signal_stop): Clear the
1924 thread's stepped_breakpoint field.
1926 2014-10-27 Pedro Alves <palves@redhat.com>
1928 * remote.c (remote_thread_alive): New, factored out from ...
1929 (remote_thread_alive): ... this.
1930 (remote_update_thread_list): Bail out before deleting threads if
1931 the target returned an empty list, and, the current thread has a
1934 2014-10-27 Pedro Alves <palves@redhat.com>
1936 * infrun.c (handle_signal_stop): Also skip handlers when a random
1937 signal arrives while handling a "stepi" or a "nexti". Set the
1938 thread's 'step_after_step_resume_breakpoint' flag.
1940 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1942 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1943 (arm_record_ld_st_imm_offset): Reimplement to cover all
1944 load/store cases for ARM opcode 010.
1945 (arm_record_ld_st_multiple): Reimplement to cover all
1946 load/store cases for ARM opcode 100.
1948 2014-10-26 Doug Evans <xdje42@gmail.com>
1950 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1952 2014-10-26 Doug Evans <xdje42@gmail.com>
1954 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1955 parameter "kind" to "block_index".
1956 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1958 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1960 2014-10-26 Doug Evans <xdje42@gmail.com>
1962 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1964 2014-10-26 Doug Evans <xdje42@gmail.com>
1966 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1969 2014-10-26 Doug Evans <xdje42@gmail.com>
1971 * parser-defs.h (block_found): Move decl from here ...
1972 * symtab.h (block_found): ... to here.
1974 2014-10-26 Doug Evans <xdje42@gmail.com>
1976 * symtab.h (struct field_of_this_result): Fix typo in comment.
1977 (lookup_symbol_in_language): Move function comment here.
1978 (lookup_symbol): Improve function comment.
1979 (basic_lookup_symbol_nonlocal): Ditto.
1980 (lookup_symbol_static, lookup_symbol_global): Ditto.
1981 (lookup_symbol_aux_block): Ditto.
1982 (lookup_language_this): Add function comment.
1983 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1985 (lookup_block_symbol): Improve function comment.
1986 (lookup_struct): Fix capitalization in function comment.
1987 (lookup_transparent_type): Add function comment.
1988 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1989 Improve function comment.
1990 (lookup_objfile_from_block): Add function comment.
1991 * symtab.c (lookup_symbol_in_language): Update function comment.
1992 (lookup_symbol, lookup_language_this): Ditto.
1993 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1994 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1995 (basic_lookup_symbol_nonlocal): Ditto.
1996 (lookup_symbol_static, lookup_symbol_global): Ditto.
1997 (lookup_transparent_type, lookup_block_symbol): Ditto.
1999 2014-10-25 Doug Evans <xdje42@gmail.com>
2001 * symtab.c (types_info): Delete forward decl.
2002 (functions_info, variables_info, sources_info): Ditto.
2003 (_initialize_symtab): Rewrite forward decl to use
2004 initialize_file_ftype.
2006 2014-10-25 Doug Evans <xdje42@gmail.com>
2008 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2010 2014-10-25 Doug Evans <xdje42@gmail.com>
2012 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2013 of local var child_die.
2015 2014-10-24 Don Breazeal <donb@codesourcery.com>
2017 * infrun.c (follow_fork_inferior): Update fork message printing
2018 to use target_terminal_ours_for_output instead of
2019 target_terminal_ours, to use _() for all format strings, to print
2020 "vfork" instead of "fork" for vforks, and to add a detach message.
2021 (handle_vfork_child_exec_or_exit): Update message printing to use
2022 target_terminal_ours_for_output instead of target_terminal_ours, to
2023 use _() for all format strings, and to fix some formatting.
2025 2014-10-24 Pedro Alves <palves@redhat.com>
2027 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2028 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2029 * config/vax/vax.mh: Delete.
2030 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2031 obsolete configurations section.
2032 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2033 * vax-nat.c: Delete file.
2035 2014-10-24 Pedro Alves <palves@redhat.com>
2037 * NEWS (Removed targets): Add OS/arch column.
2039 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2041 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2042 on the arg type of a constructor only if it is of reference type.
2044 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2046 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2047 accessors and constants from nios2 opcodes update.
2048 (nios2_get_next_pc): Likewise.
2050 2014-10-19 Doug Evans <xdje42@gmail.com>
2052 * gdbthread.h (set_running): Fix comment.
2053 (set_executing, finish_thread_state): Fix comment.
2055 2014-10-18 Doug Evans <xdje42@gmail.com>
2057 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2059 2014-10-17 Doug Evans <dje@google.com>
2061 * NEWS: Mention new event gdb.clear_objfiles.
2062 * python/py-event.h (emit_clear_objfiles_event): Clear
2063 * python/py-events.h (events_object): New member clear_objfiles.
2064 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2066 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2067 emit clear_objfiles event.
2068 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2070 (emit_clear_objfiles_event): New function.
2071 (clear_objfiles): New event.
2072 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2074 * python/python.c (_initialize_python): Call
2075 gdbpy_initialize_clear_objfiles_event.
2077 2014-10-17 Doug Evans <dje@google.com>
2079 * NEWS: Mention new gdb.Objfile.progspace attribute.
2080 * python/py-objfile.c (objfpy_get_progspace): New function.
2081 (objfile_getset): New entry for "progspace".
2083 2014-10-17 Pedro Alves <palves@redhat.com>
2086 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2087 returns a copy of the input.
2088 (run_command_1, continue_command, step_1, jump_command)
2089 (signal_command, until_command, advance_command, finish_command)
2090 (attach_command): Adjust and install a cleanup to free the
2093 2014-10-17 Pedro Alves <palves@redhat.com>
2096 * infcmd.c (continue_1): If continuing all threads in the
2097 foreground, make sure the inferior's terminal settings are put in
2100 2014-10-17 Pedro Alves <palves@redhat.com>
2103 * annotate.c (annotate_breakpoints_invalid): Use
2104 target_terminal_our_for_output instead of target_terminal_ours.
2105 Give back the terminal to the target.
2106 (annotate_frames_invalid): Likewise.
2108 2014-10-17 Pedro Alves <palves@redhat.com>
2110 * target.c (enum terminal_state): New enum.
2111 (terminal_state): New global.
2112 (target_terminal_init): New function.
2113 (target_terminal_inferior): Skip if inferior already owns the
2115 (target_terminal_ours, target_terminal_ours_for_output): New
2117 * target.h (target_terminal_init): Convert to function prototype.
2118 (target_terminal_ours_for_output): Convert to function prototype
2120 (target_terminal_ours): Convert to function prototype and tweak
2122 * windows-nat.c (do_initial_windows_stuff): Call
2123 target_terminal_init instead of child_terminal_init_with_pgrp.
2125 2014-10-17 Pedro Alves <palves@redhat.com>
2127 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2128 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2129 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2131 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2132 * ada-lang.h [__alpha__ && __osf__]
2133 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2134 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2135 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2137 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2139 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2140 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2141 * configure: Regenerate.
2142 * configure.ac: Remove references to osf.
2143 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2144 section. Remove all other references to osf.
2145 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2146 Remove all other references to osf.
2147 * dec-thread.c: Delete file.
2148 * defs.h (GDB_OSABI_OSF1): Delete.
2149 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2151 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2152 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2154 (unconditionally_kill_inferior)
2155 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2156 * solib-osf.c: Delete file.
2158 2014-10-17 Pedro Alves <palves@redhat.com>
2160 * remote.c (clear_threads_listing_context): Move higher up, out of
2161 the HAVE_LIBEXPAT guard.
2163 2014-10-16 Tristan Gingold <gingold@adacore.com>
2165 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2166 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2169 2014-10-15 Pedro Alves <palves@redhat.com>
2171 * dec-thread.c (dec_thread_count_gdb_threads)
2172 (dec_thread_add_gdb_thread): Delete.
2173 (dec_thread_update_thread_list): Delete.
2174 (dec_thread_find_new_threads): Rename to ...
2175 (dec_thread_update_thread_list): ... this. Delete GDB-size
2176 threads that are no longer found in dec_thread_list.
2177 (resync_thread_list): Delete.
2178 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2181 2014-10-15 Pedro Alves <palves@redhat.com>
2183 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2184 * remote.c (remote_update_thread_list): Skip calling prune_threads
2185 if any thread listing method is supported, and instead walk over
2186 the set of remote threads listed, deleting those that are not
2187 found in GDB's thread list.
2189 2014-10-15 Pedro Alves <palves@redhat.com>
2191 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2192 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2193 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2194 (bsd_uthread_target): Adjust.
2195 * corelow.c (core_open): Adjust.
2196 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2197 (dec_thread_update_thread_list): New function.
2198 (init_dec_thread_ops): Adjust.
2199 * gdbthread.h (prune_threads): New declaration.
2200 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2201 (thread_db_update_thread_list): ... this. Call prune_threads.
2202 (init_thread_db_ops): Adjust.
2203 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2204 (procfs_update_thread_list): ... this. Call prune_threads.
2205 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2207 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2208 (obsd_update_thread_list): ... this. Call prune_threads.
2209 (obsd_add_target): Adjust.
2210 * procfs.c (procfs_target): Adjust.
2211 (procfs_notice_thread): Update comment.
2212 (procfs_find_new_threads): Rename to ...
2213 (procfs_update_thread_list): ... this. Call prune_threads.
2214 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2216 (ravenscar_wait): Adjust.
2217 (ravenscar_find_new_threads): Rename to ...
2218 (ravenscar_update_thread_list): ... this. Call prune_threads.
2219 (init_ravenscar_thread_ops): Adjust.
2220 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2221 (record_btrace_update_thread_list): ... this. Adjust comment.
2222 (init_record_btrace_ops): Adjust.
2223 * remote.c (remote_threads_info): Rename to ...
2224 (remote_update_thread_list): ... this. Call prune_threads.
2225 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2227 * sol-thread.c (check_for_thread_db): Adjust.
2228 (sol_find_new_threads_callback): Rename to ...
2229 (sol_update_thread_list_callback): ... this.
2230 (sol_find_new_threads): Rename to ...
2231 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2232 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2233 * target-delegates.c: Regenerate.
2234 * target.c (target_find_new_threads): Rename to ...
2235 (target_update_thread_list): ... this.
2236 * target.h (struct target_ops): Rename to_find_new_threads field
2237 to to_update_thread_list.
2238 (target_find_new_threads): Rename to ...
2239 (target_update_thread_list): ... this.
2240 * thread.c (prune_threads): Make extern.
2241 (update_thread_list): Adjust.
2243 2014-10-15 Pedro Alves <palves@redhat.com>
2245 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2246 Add describing comment. Return -1 if the qL packet is not
2248 (struct thread_item, thread_item_t): Move higher up in
2249 the file. Add comments.
2250 (struct threads_parsing_context): Move higher up in
2251 the file, add comments, and remote to ...
2252 (struct threads_listing_context): ... this.
2253 (remote_newthread_step): Don't add the thread to GDB's thread
2254 database here. Instead push it to the thread_listing_context
2256 (remote_find_new_threads): Rename to ...
2257 (remote_get_threads_with_ql): ... this. Add target_ops and
2258 targets_listing_context parameters. Pass down context.
2259 (start_thread): Adjust.
2260 (clear_threads_parsing_context): Rename to ...
2261 (clear_threads_listing_context): ... this.
2262 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2263 remote_threads_info.
2264 (remote_get_threads_with_qthreadinfo): Ditto.
2265 (remote_threads_info): Reimplement.
2267 2014-10-15 Pedro Alves <palves@redhat.com>
2269 * infrun.c (resume): Don't force displaced-stepping for all
2270 single-steps on software single-stepping archs.
2272 2014-10-15 Pedro Alves <palves@redhat.com>
2274 * breakpoint.c (single_step_breakpoints): Delete global.
2275 (insert_single_step_breakpoint): Adjust to store the breakpoint
2276 pointer in the current thread.
2277 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2278 (cancel_single_step_breakpoints): Delete functions.
2279 (breakpoint_has_location_inserted_here): Make extern.
2280 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2282 * breakpoint.h (breakpoint_has_location_inserted_here): New
2284 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2285 (cancel_single_step_breakpoints): Remove declarations.
2286 * gdbthread.h (struct thread_control_state)
2287 <single_step_breakpoints>: New field.
2288 (delete_single_step_breakpoints)
2289 (thread_has_single_step_breakpoints_set)
2290 (thread_has_single_step_breakpoint_here): New declarations.
2291 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2292 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2293 (singlestep_pc): Delete globals.
2294 (infrun_thread_ptid_changed): Remove references to removed
2296 (resume_cleanups): Delete the current thread's single-step
2298 (maybe_software_singlestep): Remove references to removed globals.
2299 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2300 delete_single_step_breakpoints.
2301 (init_wait_for_inferior): Remove references to removed globals.
2302 (delete_thread_infrun_breakpoints): Delete the thread's
2303 single-step breakpoints too.
2304 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2305 single-step breakpoints here.
2306 (delete_stopped_threads_single_step_breakpoints): New function.
2307 (adjust_pc_after_break): Adjust to use
2308 thread_has_single_step_breakpoints_set.
2309 (handle_inferior_event): Remove references to removed globals.
2310 Use delete_stopped_threads_single_step_breakpoints.
2311 (handle_signal_stop): Adjust to per-thread single-step
2312 breakpoints. Swap test order to do cheaper tests first.
2313 (switch_back_to_stepped_thread): Extend debug output. Remove
2314 references to removed globals.
2315 * record-full.c (record_full_wait_1): Adjust to per-thread
2316 single-step breakpoints.
2317 * thread.c (delete_single_step_breakpoints)
2318 (thread_has_single_step_breakpoints_set)
2319 (thread_has_single_step_breakpoint_here): New functions.
2320 (clear_thread_inferior_resources): Also delete the thread's
2321 single-step breakpoints.
2323 2014-10-15 Pedro Alves <palves@redhat.com>
2325 * thread.c (delete_thread_breakpoint): New function.
2326 (delete_step_resume_breakpoint)
2327 (delete_exception_resume_breakpoint): Use it.
2328 (delete_at_next_stop): New function.
2329 (clear_thread_inferior_resources): Use delete_at_next_stop.
2331 2014-10-15 Pedro Alves <palves@redhat.com>
2333 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2334 (breakpoint_inserted_here_p): ... here. Remove special case for
2335 software single-step breakpoints.
2336 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2337 (software_breakpoint_inserted_here_p): ... here. Remove special
2338 case for software single-step breakpoints.
2339 (bp_target_info_copy_insertion_state)
2340 (deprecated_insert_raw_breakpoint)
2341 (deprecated_remove_raw_breakpoint): Delete functions.
2342 * breakpoint.h (deprecated_insert_raw_breakpoint)
2343 (deprecated_remove_raw_breakpoint): Remove declarations.
2345 2014-10-15 Pedro Alves <palves@redhat.com>
2348 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2349 Delete array globals.
2350 (single_step_breakpoints): New global.
2351 (breakpoint_xfer_memory): Remove special handling for single-step
2353 (update_breakpoints_after_exec): Delete bp_single_step
2355 (detach_breakpoints): Remove special handling for single-step
2357 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2358 (bpstat_stop_status): Add comment.
2359 (bpstat_what, bptype_string, print_one_breakpoint_location)
2360 (adjust_breakpoint_address, init_bp_location): Handle
2362 (new_single_step_breakpoint): New function.
2363 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2364 handling for single-step breakpoints.
2365 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2366 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2368 (detach_single_step_breakpoints, find_single_step_breakpoint):
2370 (breakpoint_has_location_inserted_here): New function.
2371 (single_step_breakpoint_inserted_here_p): Rewrite.
2372 * breakpoint.h: Remove FIXME.
2373 (enum bptype) <bp_single_step>: New enum value.
2374 (insert_single_step_breakpoint): Update comment.
2375 * infrun.c (resume_cleanups)
2376 (delete_step_thread_step_resume_breakpoint): Remove single-step
2378 (fetch_inferior_event): Install a cleanup that removes infrun
2380 (switch_back_to_stepped_thread) <expect thread advanced also>:
2381 Clear step-over info.
2383 2014-10-15 Pedro Alves <palves@redhat.com>
2385 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2386 (delete_thread_infrun_breakpoints): New function, with parts
2387 salvaged from delete_step_resume_breakpoint_callback.
2388 (delete_step_thread_step_resume_breakpoint): Delete.
2389 (for_each_just_stopped_thread_callback_func): New typedef.
2390 (for_each_just_stopped_thread): New function.
2391 (delete_just_stopped_threads_infrun_breakpoints): New function.
2392 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2393 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2395 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2397 2014-10-15 Pedro Alves <palves@redhat.com>
2399 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2400 trying to step past a non-steppable watchpoint.
2401 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2403 * infrun.c (struct step_over_info): Add new field
2404 'nonsteppable_watchpoint_p' and adjust comments.
2405 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2407 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2408 (stepping_past_nonsteppable_watchpoint): New function.
2409 (step_over_info_valid_p): Also return true if stepping past a
2410 nonsteppable watchpoint.
2411 (proceed): Adjust call to set_step_over_info. Remove reference to
2413 (init_wait_for_inferior): Remove reference to init_infwait_state.
2414 (waiton_ptid): Delete global.
2415 (struct execution_control_state)
2416 <stepped_after_stopped_by_watchpoint>: Delete field.
2417 (wait_for_inferior, fetch_inferior_event): Always pass
2418 minus_one_ptid to target_wait.
2419 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2421 (init_infwait_state): Delete function.
2422 (handle_inferior_event): Remove infwait_state handling.
2423 (handle_signal_stop) <watchpoints handling>: Adjust after
2424 stepped_after_stopped_by_watchpoint removal. Don't remove
2425 breakpoints here nor set infwait_state. Set the thread's
2426 stepping_over_watchpoint flag, and call keep_going instead.
2427 (keep_going): Handle stepping_over_watchpoint. Adjust
2428 set_step_over_info calls.
2429 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2432 2014-10-15 Pedro Alves <palves@redhat.com>
2434 * infrun.c (step_over_info_valid_p): New function.
2435 (resume): Use step_over_info_valid_p instead of checking the
2436 threads's trap_expected flag.
2438 2014-10-15 Doug Evans <dje@google.com>
2439 Walfred Tedeschi <walfred.tedeschi@intel.com>
2442 * python/lib/gdb/__init__.py (packages): Add "printer".
2443 * python/lib/gdb/command/bound_registers.py: Moved to ...
2444 * python/lib/gdb/printer/bound_registers.py: ... here.
2445 Add printer to global set of builtin printers. Rename printer from
2446 "bound" to "mpx_bound128".
2447 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2448 registered as global "builtin" printer.
2449 (add_builtin_pretty_printer): New function.
2450 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2451 gdb/printer/__init__.py.
2453 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2455 * Makefile.in (SFILES): Remove d-support.c.
2456 (COMMON_OBS): Remove d-support.o.
2457 * d-lang.h (d_parse_symbol): Remove declaration.
2458 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2459 * d-support.c: Remove file.
2461 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2463 * gdb/infrun.c (process_event_stop_test): Apply
2464 gdbarch_addr_bits_remove to longjmp resume address.
2466 2014-10-15 Pedro Alves <palves@redhat.com>
2468 * regformats/microblaze.dat: Delete file.
2470 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2472 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2473 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2475 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2477 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2480 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2485 with qualified args.
2487 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2489 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2490 of the case where the second operand is a pointer.
2491 <BINOP_SUB>: Likewise.
2493 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2495 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2496 only if it is not NULL.
2497 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2498 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2499 (struct probe_ops) <clear_semaphore>: Likewise.
2500 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2502 (stop_tracing): Likewise, for clear_semaphore.
2504 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2506 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2507 using language_c, instead of current_language.
2509 2014-10-13 Doug Evans <dje@google.com>
2511 * python/py-objfile.c (objfpy_initialize): New function.
2512 (objfpy_new, objfile_to_objfile_object): Call it.
2513 * python/py-progspace.c (pspy_initialize): New function.
2514 (pspy_new, pspace_to_pspace_object): Call it.
2516 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2517 Jan Kratochvil <jan.kratochvil@redhat.com>
2519 Fix "save breakpoints" for "catch" command.
2520 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2523 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2525 Fix "save breakpoints" for "disable $bpnum" command.
2526 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2528 2014-10-10 Pedro Alves <palves@redhat.com>
2530 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2531 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2532 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2533 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2535 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2536 * configure.ac: Remove references to IRIX.
2537 * configure.host: Add *-*-irix* to the obsolete hosts section.
2538 Remove all other references to irix.
2539 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2542 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2544 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2545 isn't valid, release the tdesc arch data and return NULL.
2547 2014-10-10 Pedro Alves <palves@redhat.com>
2549 * linux-tdep.c: Include observer.h.
2550 (linux_inferior_data): New global.
2551 (struct linux_info): New structure.
2552 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2553 (get_linux_inferior_data): New functions.
2554 (linux_vsyscall_range): Rename to ...
2555 (linux_vsyscall_range_raw): ... this.
2556 (linux_vsyscall_range): New function; handles caching.
2557 (_initialize_linux_tdep): Register linux_inferior_data. Install
2558 inferior_exit and inferior_appeared observers.
2560 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2561 Pedro Alves <palves@redhat.com>
2564 * solib-svr4.c (svr4_read_so_list): Rename to ...
2565 (svr4_current_sos_1): ... this and change the function comment.
2566 (svr4_current_sos): New function.
2568 2014-10-10 Pedro Alves <palves@redhat.com>
2570 * arch-utils.c (default_vsyscall_range): New function.
2571 * arch-utils.h (default_vsyscall_range): New declaration.
2572 * gdbarch.sh (vsyscall_range): New hook.
2573 * gdbarch.h, gdbarch.c: Regenerate.
2574 * linux-tdep.c (linux_vsyscall_range): New function.
2575 (linux_init_abi): Install linux_vsyscall_range as
2576 vsyscall_range gdbarch hook.
2577 * memrange.c (address_in_mem_range): New function.
2578 * memrange.h (address_in_mem_range): New declaration.
2579 * symfile-mem.c (find_vdso_size): Delete function.
2580 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2582 2014-10-10 Pedro Alves <palves@redhat.com>
2584 * infrun.c (normal_stop): Fix typo in comment.
2586 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2589 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2590 typo when using logical AND to determine instruction type.
2592 2014-10-09 Yao Qi <yao@codesourcery.com>
2594 * infrun.c (handle_signal_stop): Remove local variable
2597 2014-10-08 Stan Shebs <stan@codesourcery.com>
2599 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2601 2014-10-08 Gary Benson <gbenson@redhat.com>
2603 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2605 2014-10-08 Gary Benson <gbenson@redhat.com>
2607 * common/common-defs.h: Include common-exceptions.h.
2608 * exceptions.h: Do not include common-exceptions.h.
2610 2014-10-08 Gary Benson <gbenson@redhat.com>
2612 * common/common-defs.h: Include cleanups.h.
2613 * common/common-exceptions.c: Do not include cleanups.h.
2614 * utils.h: Likewise.
2616 2014-10-08 Gary Benson <gbenson@redhat.com>
2618 * ada-lang.c: Do not include exceptions.h.
2619 * ada-valprint.c: Likewise.
2620 * amd64-tdep.c: Likewise.
2621 * auto-load.c: Likewise.
2622 * block.c: Likewise.
2623 * break-catch-throw.c: Likewise.
2624 * breakpoint.c: Likewise.
2625 * btrace.c: Likewise.
2626 * c-lang.c: Likewise.
2627 * cli/cli-cmds.c: Likewise.
2628 * cli/cli-interp.c: Likewise.
2629 * cli/cli-script.c: Likewise.
2630 * completer.c: Likewise.
2631 * corefile.c: Likewise.
2632 * corelow.c: Likewise.
2633 * cp-abi.c: Likewise.
2634 * cp-support.c: Likewise.
2635 * cp-valprint.c: Likewise.
2636 * darwin-nat.c: Likewise.
2637 * dwarf2-frame-tailcall.c: Likewise.
2638 * dwarf2-frame.c: Likewise.
2639 * dwarf2loc.c: Likewise.
2640 * dwarf2read.c: Likewise.
2642 * event-loop.c: Likewise.
2643 * event-top.c: Likewise.
2644 * f-valprint.c: Likewise.
2645 * frame-unwind.c: Likewise.
2646 * frame.c: Likewise.
2647 * gdbtypes.c: Likewise.
2648 * gnu-v2-abi.c: Likewise.
2649 * gnu-v3-abi.c: Likewise.
2650 * guile/scm-auto-load.c: Likewise.
2651 * guile/scm-breakpoint.c: Likewise.
2652 * guile/scm-cmd.c: Likewise.
2653 * guile/scm-frame.c: Likewise.
2654 * guile/scm-lazy-string.c: Likewise.
2655 * guile/scm-param.c: Likewise.
2656 * guile/scm-symbol.c: Likewise.
2657 * guile/scm-type.c: Likewise.
2658 * hppa-hpux-tdep.c: Likewise.
2659 * i386-tdep.c: Likewise.
2660 * inf-loop.c: Likewise.
2661 * infcall.c: Likewise.
2662 * infcmd.c: Likewise.
2663 * infrun.c: Likewise.
2664 * interps.c: Likewise.
2665 * interps.h: Likewise.
2667 * linespec.c: Likewise.
2668 * linux-nat.c: Likewise.
2669 * linux-thread-db.c: Likewise.
2670 * m32r-rom.c: Likewise.
2672 * memory-map.c: Likewise.
2673 * mi/mi-cmd-break.c: Likewise.
2674 * mi/mi-cmd-stack.c: Likewise.
2675 * mi/mi-interp.c: Likewise.
2676 * mi/mi-main.c: Likewise.
2677 * monitor.c: Likewise.
2678 * nto-procfs.c: Likewise.
2679 * objc-lang.c: Likewise.
2680 * p-valprint.c: Likewise.
2681 * parse.c: Likewise.
2682 * ppc-linux-tdep.c: Likewise.
2683 * printcmd.c: Likewise.
2684 * probe.c: Likewise.
2685 * python/py-auto-load.c: Likewise.
2686 * python/py-breakpoint.c: Likewise.
2687 * python/py-cmd.c: Likewise.
2688 * python/py-finishbreakpoint.c: Likewise.
2689 * python/py-frame.c: Likewise.
2690 * python/py-framefilter.c: Likewise.
2691 * python/py-function.c: Likewise.
2692 * python/py-gdb-readline.c: Likewise.
2693 * python/py-inferior.c: Likewise.
2694 * python/py-infthread.c: Likewise.
2695 * python/py-lazy-string.c: Likewise.
2696 * python/py-linetable.c: Likewise.
2697 * python/py-param.c: Likewise.
2698 * python/py-prettyprint.c: Likewise.
2699 * python/py-symbol.c: Likewise.
2700 * python/py-type.c: Likewise.
2701 * python/py-value.c: Likewise.
2702 * python/python-internal.h: Likewise.
2703 * python/python.c: Likewise.
2704 * record-btrace.c: Likewise.
2705 * record-full.c: Likewise.
2706 * regcache.c: Likewise.
2707 * remote-fileio.c: Likewise.
2708 * remote-mips.c: Likewise.
2709 * remote.c: Likewise.
2710 * rs6000-aix-tdep.c: Likewise.
2711 * rs6000-nat.c: Likewise.
2713 * solib-darwin.c: Likewise.
2714 * solib-dsbt.c: Likewise.
2715 * solib-frv.c: Likewise.
2716 * solib-ia64-hpux.c: Likewise.
2717 * solib-spu.c: Likewise.
2718 * solib-svr4.c: Likewise.
2719 * solib.c: Likewise.
2720 * spu-tdep.c: Likewise.
2721 * stack.c: Likewise.
2722 * stap-probe.c: Likewise.
2723 * symfile-mem.c: Likewise.
2724 * symmisc.c: Likewise.
2725 * target.c: Likewise.
2726 * thread.c: Likewise.
2728 * tracepoint.c: Likewise.
2729 * tui/tui-interp.c: Likewise.
2730 * typeprint.c: Likewise.
2731 * utils.c: Likewise.
2732 * valarith.c: Likewise.
2733 * valops.c: Likewise.
2734 * valprint.c: Likewise.
2735 * value.c: Likewise.
2736 * varobj.c: Likewise.
2737 * windows-nat.c: Likewise.
2738 * xml-support.c: Likewise.
2740 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2742 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2744 (extended_mips16_next_pc): Update accordingly.
2746 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2748 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2750 (micromips_instruction_is_compact_branch): Likewise.
2751 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2752 or a compact jump, reaching a jump delay slot, or seeing a
2753 second non-prologue instruction.
2754 (micromips_scan_prologue): Also terminate scanning upon seeing a
2755 compact branch or jump, or reaching a branch or jump delay slot.
2756 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2757 or jump delay slot, or seeing a second non-prologue instruction.
2758 (mips32_instruction_has_delay_slot): Retain instruction
2759 examination code only, update arguments accordingly and move
2760 instruction fetch pieces to...
2761 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2762 (micromips_instruction_has_delay_slot): Likewise and to...
2763 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2764 (mips16_instruction_has_delay_slot): Likewise and to...
2765 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2766 (mips_single_step_through_delay): Update accordingly.
2767 (mips_adjust_breakpoint_address): Likewise.
2769 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2771 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2772 !mustbe32 also return 1 for 32-bit instructions.
2773 (mips16_instruction_has_delay_slot): Likewise. Add an
2774 explanatory comment.
2776 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2778 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2781 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2783 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2785 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2786 for the breakpoint's address. Don't preinitialize `placed_size'.
2787 (insert_bp_location): Set `reqstd_address' rather than
2789 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2790 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2792 (bkpt_remove_location): Likewise.
2793 (deprecated_insert_raw_breakpoint): Likewise.
2794 (deprecated_remove_raw_breakpoint): Likewise.
2795 (find_single_step_breakpoint): Likewise.
2796 * mem-break.c (default_memory_insert_breakpoint): Use
2797 `reqstd_address' for the breakpoint's address. Don't set
2798 `placed_address' or `placed_size' if breakpoint contents couldn't
2799 have been determined.
2800 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2801 the breakpoint's address.
2802 (remote_insert_hw_breakpoint): Likewise. Don't set
2803 `placed_address' or `placed_size' if breakpoint couldn't have been
2805 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2806 `reqstd_address' for the breakpoint's address.
2807 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2808 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2809 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2810 * microblaze-linux-tdep.c
2811 (microblaze_linux_memory_remove_breakpoint): Likewise.
2812 * monitor.c (monitor_insert_breakpoint): Likewise.
2813 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2814 (procfs_insert_hw_breakpoint): Likewise.
2815 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2816 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2817 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2818 * remote-mips.c (mips_insert_breakpoint): Likewise.
2819 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2821 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2823 * valops.c (value_assign): Check for bit field assignments
2824 before calling architecture-specific register value
2825 conversion functions.
2827 2014-10-03 Pierre Muller <muller@sourceware.org>
2829 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2831 2014-10-02 Pedro Alves <palves@redhat.com>
2833 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2834 threads_are_executing.
2835 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2837 * gdbthread.h (threads_are_executing): Declare.
2838 (handle_signal_stop) <random signals>: Don't print about the
2839 signal here if stopping.
2840 (end_stepping_range): Don't notify observers here.
2841 (normal_stop): Update the thread list. If stopped by a random
2842 signal or a stepping range ended, notify observers.
2843 * thread.c (threads_executing): New global.
2844 (init_thread_list): Clear 'threads_executing'.
2845 (set_executing): Set or clear 'threads_executing'.
2846 (threads_are_executing): New function.
2847 (update_threads_executing): New function.
2848 (update_thread_list): Use it.
2850 2014-10-02 Pedro Alves <palves@redhat.com>
2852 PR breakpoints/17431
2853 * breakpoint.c (update_breakpoints_after_exec): Don't create
2854 overlay, longjmp, std terminate nor exception breakpoints here.
2856 2014-10-02 Pedro Alves <palves@redhat.com>
2858 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2860 * inferior.c (find_inferior_for_program_space): Give preference to
2861 the current inferior.
2862 * inferior.h (find_inferior_for_program_space): Update comment.
2863 * progspace.c (switch_to_program_space_and_thread): Prefer the
2864 current inferior if it's bound to the program space requested. If
2865 the inferior found doesn't have a PID yet, don't bother looking up
2867 * progspace.h (switch_to_program_space_and_thread): Adjust
2869 * thread.c (any_thread_of_process, any_live_thread_of_process):
2870 Give preference to the current thread.
2872 2014-10-01 Pedro Alves <palves@redhat.com>
2874 * breakpoint.c (insert_bp_location): Error out if inserting a
2875 software breakpoint at a read-only address.
2876 * target.c (memory_xfer_check_region): New function, factored out
2878 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2880 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2881 against the memory region attributes.
2883 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2885 * NEWS: Announce new exit-code field in -list-thread-groups
2887 * inferior.c (exit_inferior_1): Don't clear exit code.
2888 (inferior_appeared): Clear exit code.
2889 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2892 2014-10-01 Pedro Alves <palves@redhat.com>
2894 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2895 GENERATED" along with emacs/vi read-only markers.
2896 * regformats/aarch64.dat: Regenerate.
2897 * regformats/arm-with-iwmmxt.dat: Regenerate.
2898 * regformats/arm-with-neon.dat: Regenerate.
2899 * regformats/arm-with-vfpv2.dat: Regenerate.
2900 * regformats/arm-with-vfpv3.dat: Regenerate.
2901 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2902 * regformats/i386/amd64-avx.dat: Regenerate.
2903 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2904 * regformats/i386/amd64-avx512.dat: Regenerate.
2905 * regformats/i386/amd64-linux.dat: Regenerate.
2906 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2907 * regformats/i386/amd64-mpx.dat: Regenerate.
2908 * regformats/i386/amd64.dat: Regenerate.
2909 * regformats/i386/i386-avx-linux.dat: Regenerate.
2910 * regformats/i386/i386-avx.dat: Regenerate.
2911 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2912 * regformats/i386/i386-avx512.dat: Regenerate.
2913 * regformats/i386/i386-linux.dat: Regenerate.
2914 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2915 * regformats/i386/i386-mmx.dat: Regenerate.
2916 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2917 * regformats/i386/i386-mpx.dat: Regenerate.
2918 * regformats/i386/i386.dat: Regenerate.
2919 * regformats/i386/x32-avx-linux.dat: Regenerate.
2920 * regformats/i386/x32-avx.dat: Regenerate.
2921 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2922 * regformats/i386/x32-avx512.dat: Regenerate.
2923 * regformats/i386/x32-linux.dat: Regenerate.
2924 * regformats/i386/x32.dat: Regenerate.
2925 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2926 * regformats/mips-dsp-linux.dat: Regenerate.
2927 * regformats/mips-linux.dat: Regenerate.
2928 * regformats/mips64-dsp-linux.dat: Regenerate.
2929 * regformats/mips64-linux.dat: Regenerate.
2930 * regformats/nios2-linux.dat: Regenerate.
2931 * regformats/rs6000/powerpc-32.dat: Regenerate.
2932 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2933 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2934 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2935 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2936 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2937 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2938 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2939 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2940 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2941 * regformats/s390-linux32.dat: Regenerate.
2942 * regformats/s390-linux32v1.dat: Regenerate.
2943 * regformats/s390-linux32v2.dat: Regenerate.
2944 * regformats/s390-linux64.dat: Regenerate.
2945 * regformats/s390-linux64v1.dat: Regenerate.
2946 * regformats/s390-linux64v2.dat: Regenerate.
2947 * regformats/s390-te-linux64.dat: Regenerate.
2948 * regformats/s390x-linux64.dat: Regenerate.
2949 * regformats/s390x-linux64v1.dat: Regenerate.
2950 * regformats/s390x-linux64v2.dat: Regenerate.
2951 * regformats/s390x-te-linux64.dat: Regenerate.
2952 * regformats/tic6x-c62x-linux.dat: Regenerate.
2953 * regformats/tic6x-c62x.dat: Regenerate.
2954 * regformats/tic6x-c64x-linux.dat: Regenerate.
2955 * regformats/tic6x-c64x.dat: Regenerate.
2956 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2957 * regformats/tic6x-c64xp.dat: Regenerate.
2959 2014-10-01 Pedro Alves <palves@redhat.com>
2961 * features/Makefile: Update comments.
2962 (XMLTOC): List all xml files we build C files from.
2963 (clean-cfiles): New rule.
2965 2014-10-01 Pedro Alves <palves@redhat.com>
2967 * features/i386/amd64-avx512-linux.c: Regenerate.
2968 * features/i386/amd64-avx512.c: Regenerate.
2969 * features/i386/x32-avx512-linux.c: Regenerate.
2970 * features/i386/x32-avx512.c: Regenerate.
2972 2014-10-01 Pedro Alves <palves@redhat.com>
2974 * features/Makefile (WHICH): Remove arm-with-m,
2975 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2977 2014-10-01 Pedro Alves <palves@redhat.com>
2979 * features/Makefile (clean): New rule.
2981 2014-10-01 Pedro Alves <palves@redhat.com>
2983 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2984 (zmm14h): Add missing end quotes.
2986 2014-10-01 Pedro Alves <palves@redhat.com>
2988 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2989 * features/aarch64.c: Regenerate.
2991 2014-09-30 Don Breazeal <donb@codesourcery.com>
2993 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2994 code so as to work with follow_fork_inferior.
2995 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2996 (inf_ttrace_create_inferior): Remove reference to
2997 inf_ttrace_vfork_ppid.
2998 (inf_ttrace_attach): Ditto.
2999 (inf_ttrace_detach): Ditto.
3000 (inf_ttrace_kill): Use current_inferior instead of
3001 inf_ttrace_vfork_ppid.
3002 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3003 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3004 inferior away from the parent.
3005 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3007 (follow_fork_inferior): New function.
3008 (follow_inferior_reset_breakpoints): Make function static.
3009 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3010 * linux-nat.c (linux_child_follow_fork): Move target-independent
3011 code to infrun.c:follow_fork_inferior.
3013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3015 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3016 * gdbarch.c: Regenerate.
3017 * gdbarch.h: Likewise.
3018 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3019 gdbarch method 'regset_from_core_section'.
3020 (get_core_register_section): Remove handling for the case that
3021 regset == NULL and regset_from_core_section is defined.
3022 (get_core_registers): Drop check for deleted method.
3023 * procfs.c (procfs_do_thread_registers): Adjust comment.
3025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3028 (linux_nat_make_corefile_notes): Remove.
3029 (linux_target_install_ops): Do not set target method
3030 'make_corefile_notes'.
3031 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3033 (linux_corefile_thread_callback): Instead of args->collect, call
3034 linux_collect_thread_registers.
3035 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3036 NULL unless there is a regset iterator.
3037 (linux_make_corefile_notes_1): Remove.
3038 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3039 by linux_make_corefile_notes.
3040 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3042 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3044 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3045 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3047 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3049 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3052 (xtensa_iterate_over_regset_sections): New.
3053 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3055 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3057 * vax-tdep.c (vax_regset_from_core_section): Remove.
3058 (vax_iterate_over_regset_sections): New.
3059 (vax_gdbarch_init): Adjust gdbarch initialization.
3061 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3064 (tilegx_regset_from_core_section): Remove.
3065 (tilegx_iterate_over_regset_sections): New.
3066 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3068 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3070 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3071 (sparc_iterate_over_regset_sections): New.
3072 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3073 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3075 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3076 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3077 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3078 target method 'make_corefile_notes'.
3080 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3083 'sizeof_gregset' and 'sizeof_fpregset'.
3084 * sh-tdep.c (sh_regset_from_core_section): Remove.
3085 (sh_iterate_over_regset_sections): New.
3086 (sh_gdbarch_init): Adjust gdbarch initialization.
3087 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3089 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3092 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3094 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3095 (score7_linux_iterate_over_regset_sections): New.
3096 (score_gdbarch_init): Adjust gdbarch initialization.
3098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3100 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3102 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3103 method 'make_corefile_notes'.
3104 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3105 (ppcfbsd_regset_from_core_section): Remove.
3106 (ppcfbsd_iterate_over_regset_sections): New.
3107 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3109 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3110 (ppcnbsd_iterate_over_regset_sections): New.
3111 (ppcnbsd_init_abi): Adjust.
3112 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3113 (ppcobsd_iterate_over_regset_sections): New.
3114 (ppcobsd_init_abi): Adjust.
3115 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3116 (rs6000_aix_iterate_over_regset_sections): New.
3117 (rs6000_aix_init_osabi): Adjust.
3119 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3122 (nios2_regset_from_core_section): Remove.
3123 (nios2_iterate_over_regset_sections): New.
3124 (nios2_linux_init_abi): Adjust gdbarch initialization.
3126 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3128 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3129 (am33_iterate_over_regset_sections): New.
3130 (am33_linux_init_osabi): Adjust gdbarch initialization.
3132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3134 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3135 (mips_linux_iterate_over_regset_sections): New.
3136 (mips_linux_init_abi): Adjust gdbarch initialization.
3137 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3138 (mips64obsd_iterate_over_regset_sections): New.
3139 (mips64obsd_init_abi): Adjust.
3140 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3141 (mipsnbsd_iterate_over_regset_sections): New.
3142 (mipsnbsd_init_abi): Adjust.
3144 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3146 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3147 (m88k_iterate_over_regset_sections): New.
3148 (m88k_gdbarch_init): Adjust gdbarch initialization.
3150 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3153 (ia64_linux_iterate_over_regset_sections): New.
3154 (ia64_linux_init_abi): Adjust gdbarch initialization.
3156 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3159 (m68kbsd_iterate_over_regset_sections): New.
3160 (m68kbsd_init_abi): Adjust gdbarch initialization.
3161 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3162 (m68k_linux_iterate_over_regset_sections): New.
3163 (m68k_linux_init_abi): Adjust gdbarch initialization.
3165 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3167 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3168 (m32r_linux_regset_from_core_section): Remove.
3169 (m32r_linux_iterate_over_regset_sections): New.
3170 (m32r_linux_init_abi): Adjust gdbarch initialization.
3172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3174 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3175 (amd64obsd_iterate_over_regset_sections): New.
3176 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3177 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3179 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3180 regset_from_core_section initialization.
3181 * i386-tdep.c (i386_regset_from_core_section): Remove.
3182 (i386_iterate_over_regset_sections): New.
3183 (i386_gdbarch_init): Adjust gdbarch initialization.
3184 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3185 (i386_iterate_over_regset_sections): New prototype.
3186 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3188 (i386obsd_aout_iterate_over_regset_sections): New.
3189 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3190 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3192 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3193 (amd64fbsd_init_abi): Call fbsd_init_abi.
3194 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3195 (i386fbsd4_init_abi): Call fbsd_init_abi.
3196 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3197 target method 'make_corefile_notes'.
3198 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3202 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3203 (hppa_hpux_iterate_over_regset_sections): New.
3204 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3205 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3206 (hppa_linux_iterate_over_regset_sections): New.
3207 (hppa_linux_init_abi): Adjust.
3208 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3209 (hppanbsd_iterate_over_regset_sections): New.
3210 (hppanbsd_init_abi): Adjust.
3211 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3212 (hppaobsd_iterate_over_regset_sections): New.
3213 (hppaobsd_init_abi): Adjust.
3215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3217 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3218 (frv_linux_iterate_over_regset_sections): New.
3219 (frv_linux_init_abi): Adjust gdbarch initialization.
3221 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3223 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3224 (armbsd_iterate_over_regset_sections): New prototype.
3225 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3226 (armbsd_iterate_over_regset_sections): New.
3227 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3232 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3233 (alpha_linux_iterate_over_regset_sections): New.
3234 (alpha_linux_init_abi): Adjust gdbarch initialization.
3235 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3237 (alphanbsd_iterate_over_regset_sections): New prototype.
3239 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3241 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3243 (aarch64_linux_iterate_over_regset_sections): New.
3244 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3248 * fbsd-tdep.c: New file.
3249 * fbsd-tdep.h: New file.
3250 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3251 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3252 (ALLDEPFILES): Add fbsd-tdep.c.
3254 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3256 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3258 * gdbarch.h: Regenerate.
3259 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3261 (get_core_register_section): Add parameter 'regset' and use it, if
3262 set. Add parameter 'min_size' and verify the bfd section size
3264 (get_core_registers_cb): Add parameter 'regset' and pass it to
3265 get_core_register section. For the "standard" register sections
3266 ".reg" and ".reg2", set an appropriate default for human_name.
3267 (get_core_registers): Don't abort when the gdbarch has an iterator
3268 but no regset_from_core_section. Add NULL/0 for parameters
3269 'regset'/'min_size' in calls to get_core_register_section.
3270 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3271 'regset' and use it instead of calling the
3272 regset_from_core_section gdbarch method.
3273 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3274 * i386-tdep.c (i386_supply_xstateregset)
3275 (i386_collect_xstateregset, i386_xstateregset): Moved to
3277 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3279 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3280 core file support only if the regset iterator hasn't been set.
3281 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3282 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3283 Moved from i386-tdep.c and renamed to *_linux*.
3284 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3285 each callback invocation. Allow any .reg-xstate size when reading
3287 * amd64-tdep.c (amd64_supply_xstateregset)
3288 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3290 (amd64_regset_from_core_section): Remove.
3291 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3292 install an amd64-specific regset_from_core_section gdbarch method.
3293 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3294 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3295 Moved from amd64-tdep.c and renamed to *_linux*.
3296 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3297 to each callback invocation. Allow any .reg-xstate size when
3298 reading from a core file.
3299 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3300 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3301 each callback invocation.
3302 (arm_linux_init_abi): No longer set the regset_from_core_section
3304 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3305 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3306 each callback invocation.
3307 (ppc_linux_init_abi): No longer set the regset_from_core_section
3309 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3310 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3311 (s390_regset_from_core_section): Remove.
3312 (s390_iterate_over_regset_sections): Add regset parameter to each
3313 callback invocation.
3314 (s390_gdbarch_init): No longer set the regset_from_core_section
3315 gdbarch method. Drop initialization of deleted tdep fields.
3317 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3319 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3320 (amd64_linux_iterate_over_regset_sections): New.
3321 (amd64_linux_init_abi_common): Don't install the regset section
3322 list, but the new iterator in gdbarch.
3323 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3324 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3325 (arm_linux_iterate_over_regset_sections): ...here. New function.
3326 (arm_linux_init_abi): Set iterator instead of section list.
3327 * corelow.c (get_core_registers_cb): New function, logic moved
3329 (get_core_registers): ...loop body here. Use new iterator method
3330 instead of walking through the regset section list.
3331 * gdbarch.sh: Remove 'core_regset_sections'. New method
3332 'iterate_over_regset_sections'. New typedef
3333 'iterate_over_regset_sections_cb'.
3334 * gdbarch.c: Regenerate.
3335 * gdbarch.h: Likewise.
3336 * i386-linux-tdep.c (i386_linux_regset_sections)
3337 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3339 (i386_linux_iterate_over_regset_sections): New.
3340 (i386_linux_init_abi): Don't choose a regset section list, but
3341 install new iterator in gdbarch.
3342 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3343 (linux_collect_regset_section_cb): New function, logic moved
3345 (linux_collect_thread_registers): ...loop body here. Use iterator
3346 method instead of walking through list.
3347 (linux_make_corefile_notes_1): Check for presence of iterator
3348 method instead of regset section list.
3349 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3350 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3351 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3352 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3353 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3354 (ppc_linux_init_abi): Don't choose from above regset section
3355 lists, but install new iterator in gdbarch.
3356 * regset.h (struct core_regset_section): Remove.
3357 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3358 have_linux_v1, have_linux_v2, and have_tdb.
3359 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3360 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3361 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3362 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3363 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3364 (s390_iterate_over_regset_sections): ...here. New function. Use
3366 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3367 regset section lists, but install new iterator.
3369 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3373 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3375 * progspace.c (print_program_space): Don't prune program spaces
3376 before printing them.
3378 2014-09-25 Pedro Alves <palves@redhat.com>
3380 * infrun.c (user_visible_resume_ptid): Don't check
3381 singlestep_breakpoints_inserted_p.
3383 2014-09-25 Pedro Alves <palves@redhat.com>
3385 * breakpoint.c (should_be_inserted): Add debug output.
3387 2014-09-25 Pedro Alves <palves@redhat.com>
3389 * infrun.c (stepping_past_instruction_at)
3390 (clear_exit_convenience_vars): Point at infrun.h instead of
3392 (handle_signal_stop): Fix typo.
3394 2014-09-24 Yao Qi <yao@codesourcery.com>
3396 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3399 2014-09-22 Gary Benson <gbenson@redhat.com>
3401 * target.c (target_stop): Updated comment.
3403 2014-09-22 Gary Benson <gbenson@redhat.com>
3405 * target/target.h (target_stop_ptid): Renamed as...
3406 (target_stop_and_wait): New function. Updated comment.
3408 (target_continue_ptid): Renamed as...
3409 (target_continue_no_signal): New function. Updated comment.
3412 2014-09-22 Pedro Alves <palves@redhat.com>
3414 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3416 * breakpoint.c (enum ugll_insert_mode): New enum.
3417 (always_inserted_mode): Now a plain boolean.
3418 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3419 (breakpoints_always_inserted_mode): Delete.
3420 (breakpoints_should_be_inserted_now): New function.
3421 (insert_breakpoints): Pass UGLL_INSERT to
3422 update_global_location_list instead of calling
3423 insert_breakpoint_locations manually.
3424 (create_solib_event_breakpoint_1): New, factored out from ...
3425 (create_solib_event_breakpoint): ... this.
3426 (create_and_insert_solib_event_breakpoint): Use
3427 create_solib_event_breakpoint_1 instead of calling
3428 insert_breakpoint_locations manually.
3429 (update_global_location_list): Change parameter type from boolean
3430 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3431 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3432 (update_global_location_list_nothrow): Change parameter type from
3433 boolean to enum ugll_insert_mode.
3434 (_initialize_breakpoint): "breakpoint always-inserted" option is
3435 now a boolean command. Update help text.
3436 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3437 (breakpoints_should_be_inserted_now): New declaration.
3438 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3439 Remove breakpoints_always_inserted_mode check.
3440 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3441 * remote.c (remote_start_remote): Likewise.
3443 2014-09-22 Pedro Alves <palves@redhat.com>
3445 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3446 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3447 Instead, pass UGLL_INSERT to update_global_location_list.
3448 (update_global_location_list): Change parameter type from boolean
3449 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3450 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3451 (create_solib_event_breakpoint_1): New, factored out from ...
3452 (create_solib_event_breakpoint): ... this.
3453 (create_and_insert_solib_event_breakpoint): Use
3454 create_solib_event_breakpoint_1 instead of calling
3455 insert_breakpoint_locations manually.
3456 (update_global_location_list): Handle UGLL_INSERT.
3458 2014-09-22 Pedro Alves <palves@redhat.com>
3460 * breakpoint.c (enum ugll_insert_mode): New enum.
3461 (update_global_location_list)
3462 (update_global_location_list_nothrow): Change parameter type from
3463 boolean to enum ugll_insert_mode. All callers adjusted.
3465 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3467 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3468 SystemTap support in GDB.
3470 2014-09-19 Don Breazeal <donb@codesourcery.com>
3472 * linux-nat.c (linux_handle_extended_wait): Call
3473 linux_ptrace_get_extended_event.
3474 (wait_lwp): Call linux_is_extended_waitstatus.
3475 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3476 and linux_is_extended_waitstatus.
3477 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3478 linux_ptrace_get_extended_event.
3479 (linux_ptrace_get_extended_event): New function.
3480 (linux_is_extended_waitstatus): New function.
3481 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3482 (linux_is_extended_waitstatus): New declarations.
3484 2014-09-19 Yao Qi <yao@codesourcery.com>
3486 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3487 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3488 comments. Callers update.
3489 (dwarf_decode_lines): Likewise.
3490 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3491 comments. Skip the line table if 'lowpc' is greater than
3492 'address'. Don't check
3493 dwarf2_per_objfile->has_section_at_zero.
3495 2014-09-18 Doug Evans <dje@google.com>
3497 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3498 * python/py-symtab.c (stpy_get_producer): New function.
3499 (symtab_object_getset): Add "producer" attribute.
3501 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3504 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3505 (do_captured_read_memory_integer): Remove.
3506 (safe_read_memory_integer): Use target_read_memory directly instead
3507 of catching errors in do_captured_read_memory_integer.
3509 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3511 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3514 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3516 * objc-lang.c (find_implementation_from_class): Remove dead code.
3518 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3521 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3522 "fprintf_unfiltered (gdb_stdlog...)".
3524 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3526 PR breakpoints/12526
3527 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3529 * breakpoint.c (watch_command_1): Use these fields to retain
3530 bitfield information.
3531 (extract_bitfield_from_watchpoint_value): New function.
3532 (watchpoint_check): Use it.
3533 (update_watchpoint): Use it. Optimize the address and length of a
3534 HW watchpoint pointing to a bitfield.
3535 * value.h (unpack_value_bitfield): New prototype.
3536 * value.c (unpack_value_bitfield): Make extern.
3538 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3540 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3542 * gnu-nat.c (inf_threads): New function.
3543 * gnu-nat.h (inf_threads_ftype): New typedef.
3544 (inf_threads): New declaration.
3545 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3546 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3547 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3548 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3549 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3550 (i386_gnu_dr_get_control): New functions.
3551 (reg_addr): New structure.
3552 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3553 i386 debugging register hooks.
3554 * NEWS: Mention this.
3556 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3558 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3559 vector data transfer instructions.
3560 (arm_record_coproc_data_proc): Updated.
3562 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3564 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3565 arm_record_exreg_ld_st_insn.
3566 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3569 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3571 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3572 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3573 processing instructions.
3575 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3577 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3578 for advance SIMD struct ld/st insn.
3579 (thumb2_record_decode_insn_handler): Replace stub handler with
3580 thumb2_record_asimd_struct_ld_st.
3582 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3584 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3585 for asimd, vfp and coprocessor insns.
3586 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3587 and coprocessor insns.
3588 (thumb2_record_coproc_insn): New function.
3589 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3591 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3594 2014-09-13 Doug Evans <xdje42@gmail.com>
3596 * NEWS: Mention new "queue-signal" command.
3597 * infcmd.c (queue_signal_command): New function.
3598 (_initialize_infcmd): Add new queue-signal command.
3600 2014-09-13 Doug Evans <xdje42@gmail.com>
3602 * linux-nat.c (wait_lwp): Add debugging printf.
3603 (linux_nat_wait_1): Ditto.
3605 2014-09-12 Pedro Alves <palves@redhat.com>
3607 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3608 (create_and_insert_solib_event_breakpoint): New functions.
3609 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3610 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3611 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3612 (remove_dbx_link_breakpoint): Delete function.
3613 (insert_dbx_link_bpt_in_file): Use
3614 create_and_insert_solib_event_breakpoint instead of
3615 deprecated_insert_raw_breakpoint.
3616 (procfs_wait): Don't check whether we hit __dbx_link here.
3617 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3619 * solib-irix.c (base_breakpoint): Delete global.
3620 (disable_break): Delete function.
3621 (enable_break): Use create_solib_event_breakpoint
3622 instead of deprecated_insert_raw_breakpoint.
3623 (irix_solib_handle_event): New function.
3624 (irix_solib_create_inferior_hook): Don't run the target or disable
3625 the mapping-complete breakpoint here.
3626 (_initialize_irix_solib): Install irix_solib_handle_event as
3627 so_ops->handle_event hook.
3629 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3630 Ulrich Weigand <uweigand@de.ibm.com>
3633 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3634 instead of read_memory_unsigned_integer.
3636 2014-09-12 Gary Benson <gbenson@redhat.com>
3638 * nat/linux-waitpid.c: Include common-defs.h.
3639 [GDBSERVER]: Add FIXME comment.
3640 [!GDBSERVER]: Don't include defs.h or signal.h.
3641 (linux_debug) [!GDBSERVER]: Remove empty block.
3643 2014-09-12 Gary Benson <gbenson@redhat.com>
3645 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3646 Don't include defs.h or server.h.
3648 2014-09-12 Gary Benson <gbenson@redhat.com>
3650 * nat/linux-btrace.c: Include common-defs.h.
3651 Don't include defs.h, server.h or gdbthread.h.
3652 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3654 2014-09-12 Gary Benson <gbenson@redhat.com>
3656 * common/agent.c: Include common-defs.h.
3657 Don't include defs.h or server.h.
3658 * common/buffer.c: Likewise.
3659 * common/common-debug.c: Likewise.
3660 * common/common-utils.c: Likewise.
3661 * common/errors.c: Likewise.
3662 * common/filestuff.c: Likewise.
3663 * common/format.c: Likewise.
3664 * common/gdb_vecs.c: Likewise.
3665 * common/print-utils.c: Likewise.
3666 * common/ptid.c: Likewise.
3667 * common/rsp-low.c: Likewise.
3668 * common/signals.c: Likewise.
3669 * common/vec.c: Likewise.
3670 * common/xml-utils.c: Likewise.
3671 * nat/linux-osdata.c: Likewise.
3672 * nat/linux-procfs.c: Likewise.
3673 * nat/linux-ptrace.c: Likewise.
3674 * nat/mips-linux-watch.c: Likewise.
3675 * target/waitstatus.c: Likewise.
3677 2014-09-12 Tom Tromey <tromey@redhat.com>
3678 Gary Benson <gbenson@redhat.com>
3680 * common/common-regcache.h: New file.
3681 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3682 * regcache.h: Include common-regcache.h.
3683 (regcache_read_pc): Don't declare.
3684 * regcache.c (get_thread_regcache_for_ptid): New function.
3685 * nat/linux-btrace.c: Don't include regcache.h.
3686 Include common-regcache.h.
3687 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3689 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3691 * regcache.h (struct regset): Declare.
3693 2014-09-11 Pedro Alves <palves@redhat.com>
3696 * main.c: Include "infrun.h".
3697 (catch_command_errors, catch_command_errors_const): Wait for the
3698 foreground command to complete.
3699 * top.c (maybe_wait_sync_command_done): New function, factored out
3701 (maybe_wait_sync_command_done): ... here.
3702 * top.h (maybe_wait_sync_command_done): New declaration.
3704 2014-09-11 Tom Tromey <tromey@redhat.com>
3705 Gary Benson <gbenson@redhat.com>
3707 * common/symbol.h: New file.
3708 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3709 * minsyms.c (find_minimal_symbol_address): New function.
3710 * common/agent.c: Include common/symbol.h.
3711 [!GDBSERVER]: Don't include objfiles.h.
3712 (agent_look_up_symbols): Use find_minimal_symbol_address.
3714 2014-09-11 Gary Benson <gbenson@redhat.com>
3716 * target/target.h (target_stop_ptid, target_continue_ptid):
3718 * target.c (target_stop_ptid, target_continue_ptid): New
3720 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3721 (agent_run_command): Always use target_stop_ptid and
3722 target_continue_ptid.
3724 2014-09-11 Tom Tromey <tromey@redhat.com>
3725 Gary Benson <gbenson@redhat.com>
3727 * target/target.h: New file.
3728 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3729 * target.h: Include target/target.h.
3730 (target_read_memory, target_write_memory): Don't declare.
3731 * target.c (target_read_uint32): New function.
3732 * common/agent.c: Include target/target.h.
3733 [!GDBSERVER]: Don't include target.h.
3734 (helper_thread_id): Type changed to uint32_t.
3735 (agent_get_helper_thread_id): Use target_read_uint32.
3736 (agent_run_command): Always use target_read_memory and
3737 target_write_memory.
3738 (agent_capability): Type changed to uint32_t.
3739 (agent_capability_check): Use target_read_uint32.
3741 2014-09-11 Gary Benson <gbenson@redhat.com>
3743 * common/common-debug.h (show_debug_regs): Declare.
3744 * common/common-debug.c (show_debug_regs): Define.
3745 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3746 all uses with show_debug_regs. Replace all uses that considered
3747 debug_hw_points as a multi-value integer with straight boolean
3749 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3750 with show_debug_regs.
3751 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3752 all uses with show_debug_regs.
3753 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3754 uses with show_debug_regs.
3756 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3758 * findvar.c (address_from_register): Handle targets requiring
3759 a special conversion routine even for plain pointer types.
3761 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3763 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3764 (store_register): Do not call exec_one_dummy_insn.
3766 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3768 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3769 dereference it first. Use value_enclosing_type instead of
3771 (ada_array_length): Likewise.
3773 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3775 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3776 Adjust function implementation and documentation accordingly.
3777 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3778 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3779 Update call to ada_value_ptr_subscript.
3781 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3783 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3784 instead of VAL's type.
3786 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3788 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3790 2014-09-09 Doug Evans <xdje42@gmail.com>
3793 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3794 last parameter to pkg-config, not first.
3795 * configure.ac: Pass --with-guile provided pkg-config path to
3796 GDB_GUILE_PROGRAM_NAMES.
3797 * configure: Regenerate.
3799 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3801 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3804 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3806 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3807 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3808 the list of sections determining GDB_OSABI_IRIX.
3810 2014-09-09 James Hogan <james.hogan@imgtec.com>
3812 * MAINTAINERS (Write After Approval): Add "James Hogan".
3814 2014-09-09 James Hogan <james.hogan@imgtec.com>
3816 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3818 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3820 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3822 2014-09-08 Doug Evans <xdje42@gmail.com>
3825 * guile.c: #include <signal.h>.
3826 (_initialize_guile): Block SIGCHLD while initializing Guile.
3828 Replaces the following, which is reverted.
3830 2014-07-26 Doug Evans <xdje42@gmail.com>
3833 * configure.ac: Add check for header gc/gc.h.
3834 Add check for function setenv.
3835 * configure: Regenerate.
3836 * config.in: Regenerate.
3837 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3839 2014-09-08 Doug Evans <xdje42@gmail.com>
3841 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3842 with named constant. Fix style of pointer comparison.
3843 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3845 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3848 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3849 decide whether we display the command on "show user".
3850 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3851 printing command name.
3852 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3853 * cli/cli-decode.c (cli_user_command_p): Create helper function
3854 to verify whether cmd_list_element is a user-defined command.
3856 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3859 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3860 Fix goto out of TRY_CATCH.
3862 2014-09-06 Doug Evans <xdje42@gmail.com>
3863 Tom Tromey <tromey@redhat.com>
3866 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3867 $_any_caller_matches.
3868 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3869 * python/lib/gdb/function/caller_is.py: New file.
3871 2014-09-06 Doug Evans <xdje42@gmail.com>
3873 * infcmd.c (program_info): Fix typo.
3875 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3878 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3879 'number'. New variable 'has_digit'. Rewrite code to deal with
3880 subexpressions on SDT probes.
3882 2014-09-04 Pedro Alves <palves@redhat.com>
3884 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3885 the input is only one character long.
3887 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3890 * f-valprint.c (f_val_print): Specify the correct print option to
3891 use when printing integer values.
3893 2014-09-04 Gary Benson <gbenson@redhat.com>
3895 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3896 Remove code to cope with LWPs wrapped as PIDs.
3897 Add assertions to ensure no wrapped LWPs are passed.
3899 2014-09-04 Pedro Alves <palves@redhat.com>
3901 * value.c (value_ranges_copy_adjusted): New function, factored out
3903 (value_contents_copy_raw): ... here.
3904 (unpack_value_bits_as_long_1): Rename back to ...
3905 (unpack_bits_as_long): ... this. Remove 'original_value' and
3906 'result' parameters. Change return type to LONGEST.
3907 (unpack_value_bits_as_long): Delete.
3908 (unpack_value_field_as_long_1): Delete.
3909 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3910 (unpack_value_bitfield): New function.
3911 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3912 (value_fetch_lazy): Use unpack_value_bitfield.
3913 * value.h (unpack_value_bits_as_long): Delete declaration.
3915 2014-09-03 Sasha Smundak <asmundak@google.com>
3917 * python/py-frame.c (frapy_read_register): New function.
3919 2014-09-03 James Hogan <james.hogan@imgtec.com>
3921 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3922 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3924 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3927 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3929 (add_cmd): Set "completer_handle_brkchars" to NULL.
3930 * cli/cli-decode.h (struct cmd_list_element)
3931 <completer_handle_brkchars>: New field.
3932 * command.h (completer_ftype_void): New typedef.
3933 (set_cmd_completer_handle_brkchars): New prototype.
3934 * completer.c (set_gdb_completion_word_break_characters): New
3936 (complete_line_internal): Call "completer_handle_brkchars"
3937 callback from command.
3938 * completer.h: Include "command.h".
3939 (set_gdb_completion_word_break_characters): New prototype.
3940 * python/py-cmd.c (cmdpy_completer_helper): New function.
3941 (cmdpy_completer_handle_brkchars): New function.
3942 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3943 (cmdpy_init): Set completer_handle_brkchars to
3944 cmdpy_completer_handle_brkchars.
3946 2014-09-03 Gary Benson <gbenson@redhat.com>
3948 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3949 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3950 Loop conditions changed to equivalent form.
3951 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3952 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3953 ALL_DEBUG_ADDRESS_REGISTERS.
3955 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3957 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3960 2014-09-02 Doug Evans <dje@google.com>
3962 * typeprint.c (find_global_typedef): Fix comment.
3964 2014-09-02 Gary Benson <gbenson@redhat.com>
3966 * i386-nat.h: Renamed as...
3967 * x86-nat.h: New file. All type, function and variable name
3968 prefixes changed from "i386_" to "x86_". All references updated.
3969 * i386-nat.c: Renamed as...
3970 * x86-nat.c: New file. All type, function and variable name
3971 prefixes changed from "i386_" to "x86_". All references updated.
3972 * common/i386-xstate.h: Renamed as...
3973 * common/x86-xstate.h: New file. All type, function and variable
3974 name prefixes changed from "i386_" to "x86_". All references
3976 * nat/i386-cpuid.h: Renamed as...
3977 * nat/x86-cpuid.h: New file. All type, function and variable name
3978 prefixes changed from "i386_" to "x86_". All references updated.
3979 * nat/i386-gcc-cpuid.h: Renamed as...
3980 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3981 name prefixes changed from "i386_" to "x86_". All references
3983 * nat/i386-dregs.h: Renamed as...
3984 * nat/x86-dregs.h: New file. All type, function and variable name
3985 prefixes changed from "i386_" to "x86_". All references updated.
3986 * nat/i386-dregs.c: Renamed as...
3987 * nat/x86-dregs.c: New file. All type, function and variable name
3988 prefixes changed from "i386_" to "x86_". All references updated.
3990 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3992 * varobj.c (_initialize_varobj): Move to the end of file.
3994 2014-08-29 Gary Benson <gbenson@redhat.com>
3996 * common/common-exceptions.h: New file.
3997 * common/common-exceptions.c: Likewise.
3998 * Makefile.in (SFILES): Add common/common-exceptions.c.
3999 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4000 (COMMON_OBS): Add common-exceptions.o.
4001 (common-exceptions.o): New rule.
4002 * exceptions.h (common-exceptions.h): Include.
4003 (gdb_setjmp.h): Do not include.
4004 (return_reason): Moved to common-exceptions.h.
4005 (enum return_reason): Likewise.
4006 (RETURN_MASK): Likewise.
4007 (typedef return_mask): Likewise.
4008 (enum errors): Likewise.
4009 (struct gdb_exception): Likewise.
4010 (exceptions_state_mc_init): Likewise.
4011 (exceptions_state_mc_action_iter): Likewise.
4012 (exceptions_state_mc_action_iter_1): Likewise.
4013 (TRY_CATCH): Likewise.
4014 (throw_exception): Likewise.
4015 (throw_verror): Likewise.
4016 (throw_vquit): Likewise.
4017 (throw_error): Likewise.
4018 (throw_quit): Likewise.
4019 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4020 (enum catcher_action): Likewise.
4021 (struct catcher): Likewise.
4022 (current_catcher): Likewise.
4023 (catcher_list_size): Likewise.
4024 (exceptions_state_mc_init): Likewise.
4025 (catcher_pop): Likewise.
4026 (exceptions_state_mc): Likewise.
4027 (exceptions_state_mc_action_iter): Likewise.
4028 (exceptions_state_mc_action_iter_1): Likewise.
4029 (throw_exception): Likewise.
4030 (exception_messages): Likewise.
4031 (exception_messages_size): Likewise.
4032 (throw_it): Likewise.
4033 (throw_verror): Likewise.
4034 (throw_vquit): Likewise.
4035 (throw_error): Likewise.
4036 (throw_quit): Likewise.
4037 (prepare_to_throw_exception): New function.
4039 2014-08-29 Gary Benson <gbenson@redhat.com>
4041 * common/gdb_setjmp.h: New file.
4042 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4043 * configure.ac: Move sigsetjmp check...
4044 * common/common.m4: ...here.
4045 * configure: Regenerate.
4046 * cp-support.c (SIGJMP_BUF): Delete.
4047 (SIGSETJMP): Likewise.
4048 (SIGLONGJMP): Likewise.
4049 * exceptions.h (gdb_setjmp.h): Include.
4050 (setjmp.h): Do not include.
4051 (EXCEPTIONS_SIGJMP_BUF): Delete.
4052 (EXCEPTIONS_SIGSETJMP): Likewise.
4053 (EXCEPTIONS_SIGLONGJMP): Likewise.
4054 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4056 * exceptions.c: Likewise.
4058 2014-08-29 Gary Benson <gbenson@redhat.com>
4060 * cleanups.h: Moved to...
4061 * common/cleanups.h: New file.
4062 * cleanups.c: Moved to...
4063 * common/cleanups.c: New file. Include common-defs.h and
4064 cleanups.h. Do not include defs.h.
4065 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4066 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4067 (cleanups.o): New rule.
4069 2014-08-29 Gary Benson <gbenson@redhat.com>
4071 * common/errors.h (internal_warning): New declaration.
4072 (internal_vwarning): Likewise.
4073 * common/errors.c (internal_warning): New function.
4074 * utils.h (internal_warning): Don't declare.
4075 (internal_vwarning): Likewise.
4076 * utils.c (internal_warning): Removed.
4078 2014-08-29 Gary Benson <gbenson@redhat.com>
4080 * main.c (captured_main): Use warning during startup.
4081 Prefix startup warning messages with command name.
4083 2014-08-29 Gary Benson <gbenson@redhat.com>
4085 * main.c (captured_main): Handle usage errors with error.
4087 2014-08-29 Gary Benson <gbenson@redhat.com>
4089 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4090 exit pair with a call to error. Wrap the message with _().
4092 2014-08-29 Gary Benson <gbenson@redhat.com>
4094 * main.c (captured_main): Replace a fprintf/exit
4095 pair with a call to error. Wrap the message with _().
4097 2014-08-29 Gary Benson <gbenson@redhat.com>
4099 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4100 pairs with calls to error. Wrap the message with _().
4102 2014-08-29 Gary Benson <gbenson@redhat.com>
4104 * utils.c (vwarning): Protect calls to target_terminal_ours
4107 2014-08-29 Gary Benson <gbenson@redhat.com>
4109 * exceptions.c (print_flush): Protect calls to
4110 target_terminal_ours and wrap_here.
4112 2014-08-29 Gary Benson <gbenson@redhat.com>
4114 * utils.h (filtered_printing_initialized): New declaration.
4115 * utils.c (abort_with_message): New function.
4116 (internal_vproblem): Use abort_with_message for first level
4117 recursive internal problems, and if gdb_stderr is not set up.
4118 Protect calls to target_terminal_ours, begin_line and query.
4120 2014-08-28 Doug Evans <dje@google.com>
4122 * symtab.c (in_prologue): Move definition to better spot.
4123 (skip_prologue_using_sal): Ditto.
4125 2014-08-28 Doug Evans <dje@google.com>
4127 * symtab.c (find_function_start_sal): Move definition to better spot.
4129 2014-08-28 Yao Qi <yao@codesourcery.com>
4131 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4132 found_stack_adjust in forward scan. Remove condition check
4133 on found_stack_adjust which is always true. Indent the code.
4135 2014-08-28 Yao Qi <yao@codesourcery.com>
4137 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4138 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4139 (dwarf_decode_lines): Remove argument
4140 want_line_info. Remove condition check on want_line_info.
4143 2014-08-27 Doug Evans <dje@google.com>
4145 * dwarf2read.c (dwarf_record_line): Fix typo.
4147 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4149 * target.h (struct target_ops::to_terminal_save_ours): Remove
4151 (target_terminal_save_ours): Remove macro.
4152 * target-delegates.c: Regenerate.
4153 * inf-child.c (inf_child_target): Don't set the nonexistent
4154 field to_terminal_save_ours.
4155 * inferior.h (child_terminal_save_ours): Remove declaration.
4156 * terminal.h (gdb_save_tty_state): New declaration.
4157 * inflow.c (child_terminal_save_ours): Rename to ...
4158 (gdb_save_tty_state): ... this.
4159 * tui/tui.c: Include terminal.h.
4160 (tui_enable): Use gdb_save_tty_state instead of
4161 target_terminal_save_ours.
4162 (tui_disable): Likewise.
4164 2014-08-25 Doug Evans <dje@google.com>
4166 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4167 Pass NULL instead of 0 for context pointer.
4169 2014-08-25 Yao Qi <yao@codesourcery.com>
4171 * dwarf2read.c: Fix grammatical error.
4173 2014-08-24 Yao Qi <yao@codesourcery.com>
4175 * dwarf2read.c (scan_partial_symbols): Update comments.
4176 Rename argument 'need_pc' with 'set_addrmap'.
4177 (add_partial_namespace): Rename argument 'need_pc' with
4179 (add_partial_module): Likewise.
4180 (add_partial_subprogram): Likewise. Update comments.
4181 (dwarf2_name): Fix typo.
4183 2014-08-22 Doug Evans <dje@google.com>
4186 * dwarf2read.c (dwarf_record_line_p): New function.
4187 (dwarf_decode_lines_1): Ignore subsequent line number entries
4188 for the same line if any entry had a non-zero discriminator.
4190 2014-08-22 Doug Evans <dje@google.com>
4192 * buildsym.h (record_line_ftype): New typedef.
4193 (record_line): Use it.
4194 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4195 (dwarf_decode_lines_1): Call them.
4197 2014-08-22 Yao Qi <yao@codesourcery.com>
4199 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4200 (ctf_end): Remove code.
4202 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4204 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4205 (linux_make_corefile_notes): call update_thread_list, protected against
4208 2014-08-21 Pedro Alves <palves@redhat.com>
4210 * infcmd.c (attach_command): Remove comment.
4212 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4214 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4215 unsigned LONGEST to ULONGEST.
4217 2014-08-20 Pedro Alves <palves@redhat.com>
4219 * Makefile.in (check-read1): New rule.
4221 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4223 * value.c (value_from_contents_and_address): Strip resolved_type's
4224 typedef layers before checking its TYPE_DATA_LOCATION.
4226 2014-08-20 Pedro Alves <palves@redhat.com>
4228 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4230 2014-08-20 Yao Qi <yao@codesourcery.com>
4232 * amd64-tdep.c (amd64_classify): Add a blank line after the
4233 example. Move "*/" to a new line.
4234 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4235 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4236 * dwarf2read.c (psymtab_include_file_name): Likewise.
4238 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4239 Pedro Alves <palves@redhat.com>
4243 * ada-lang.c (coerce_unspec_val_to_type): Use
4244 value_contents_copy_raw.
4245 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4246 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4247 * cp-valprint.c (cp_print_value_fields): Let the common printing
4248 code handle optimized out values.
4249 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4250 * d-valprint.c (dynamic_array_type): Use
4251 value_bits_any_optimized_out.
4252 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4253 check_any_valid fields.
4254 (check_pieced_value_bits): Delete and inline ...
4255 (check_pieced_synthetic_pointer): ... here.
4256 (check_pieced_value_validity): Delete.
4257 (check_pieced_value_invalid): Delete.
4258 (pieced_value_funcs): Remove check_validity and check_any_valid
4260 (read_pieced_value): Use mark_value_bits_optimized_out.
4261 (write_pieced_value): Switch to use
4262 mark_value_bytes_optimized_out.
4263 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4264 of assuming the whole value is optimized out.
4265 * findvar.c (read_frame_register_value): Remove special handling
4266 of optimized out registers.
4267 (value_from_register): Use mark_value_bytes_optimized_out.
4268 * frame-unwind.c (frame_unwind_got_optimized): Use
4269 mark_value_bytes_optimized_out.
4270 * jv-valprint.c (java_value_print): Adjust.
4271 (java_print_value_fields): Let the common printing code handle
4272 optimized out values.
4273 * mips-tdep.c (mips_print_register): Remove special handling of
4274 optimized out registers.
4275 * opencl-lang.c (lval_func_check_validity): Delete.
4276 (lval_func_check_any_valid): Delete.
4277 (opencl_value_funcs): Remove check_validity and check_any_valid
4279 * p-valprint.c (pascal_object_print_value_fields): Let the common
4280 printing code handle optimized out values.
4281 * stack.c (read_frame_arg): Remove special handling of optimized
4282 out values. Fetch both VAL and ENTRYVAL before comparing
4283 contents. Adjust to value_available_contents_eq rename.
4284 * valprint.c (valprint_check_validity)
4285 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4286 (val_print_array_elements): Adjust.
4287 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4288 (value_bits_any_optimized_out): New function.
4289 (value_entirely_covered_by_range_vector): New function, factored
4290 out from value_entirely_unavailable.
4291 (value_entirely_unavailable): Reimplement.
4292 (value_entirely_optimized_out): New function.
4293 (insert_into_bit_range_vector): New function, factored out from
4294 mark_value_bits_unavailable.
4295 (mark_value_bits_unavailable): Reimplement.
4296 (struct ranges_and_idx): New struct.
4297 (find_first_range_overlap_and_match): New function, factored out
4298 from value_available_contents_bits_eq.
4299 (value_available_contents_bits_eq): Rename to ...
4300 (value_contents_bits_eq): ... this. Check both unavailable
4301 contents and optimized out contents.
4302 (value_available_contents_eq): Rename to ...
4303 (value_contents_eq): ... this.
4304 (allocate_value_lazy): Remove reference to the old optimized_out
4306 (allocate_optimized_out_value): Use
4307 mark_value_bytes_optimized_out.
4308 (require_not_optimized_out): Adjust to check whether the
4309 optimized_out vec is empty.
4310 (ranges_copy_adjusted): New function, factored out from
4311 value_contents_copy_raw.
4312 (value_contents_copy_raw): Also copy the optimized out ranges.
4313 Assert the destination ranges aren't optimized out.
4314 (value_contents_copy): Update comment, remove call to
4315 require_not_optimized_out.
4316 (value_contents_equal): Adjust to check whether the optimized_out
4318 (set_value_optimized_out, value_optimized_out_const): Delete.
4319 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4321 (value_entirely_optimized_out, value_bits_valid): Delete.
4322 (value_copy): Take a VEC copy of the 'optimized_out' field.
4323 (value_primitive_field): Remove special handling of optimized out.
4324 (value_fetch_lazy): Assert that lazy values have no unavailable
4325 regions. Use value_bits_any_optimized_out. Remove some special
4326 handling for optimized out values.
4327 * value.h: Add intro comment about <optimized out> and
4329 (struct lval_funcs): Remove check_validity and check_any_valid
4331 (set_value_optimized_out, value_optimized_out_const): Remove.
4332 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4334 (value_bits_any_optimized_out): New declaration.
4335 (value_bits_valid): Delete declaration.
4336 (value_available_contents_eq): Rename to ...
4337 (value_contents_eq): ... this, and extend comments.
4339 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4341 Fix -fsanitize=address on unreadable inferior strings.
4342 * valprint.c (val_print_string): Fix access before BUFFER.
4344 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4346 * target.c (target_struct_size): Remove.
4347 (target_struct_allocsize): Remove.
4348 (DEFAULT_ALLOCSIZE): Remove.
4349 (target_ops_p): New typedef.
4350 (DEF_VEC_P (target_ops_p)): New vector type.
4351 (target_structs): Change type to VEC (target_ops_p).
4352 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4353 (find_default_run_target): Rewrite for loop following changes to
4356 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4358 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4359 Adjust code accordingly. Adjust function description comment.
4361 2014-08-19 Yao Qi <yao@codesourcery.com>
4363 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4366 2014-08-19 Alan Modra <amodra@gmail.com>
4368 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4369 * config.in: Regenerate.
4370 * configure: Regenerate.
4372 2014-08-19 Tom Tromey <tromey@redhat.com>
4373 Gary Benson <gbenson@redhat.com>
4375 * common/common-debug.h: New file.
4376 * common/common-debug.c: Likewise.
4377 * debug.c: Likewise.
4378 * Makefile.in (SFILES): Add common/common-debug.c.
4379 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4380 (COMMON_OBS): Add common-debug.o and debug.o.
4381 (common-debug.o): New rule.
4382 * common/common-defs.h: Include common-debug.h.
4383 * common/agent.c (debug_agent_printf): New function.
4384 (DEBUG_AGENT): Redefine.
4385 * nat/i386-dregs.c (debug_printf): Undefine.
4387 2014-08-19 Gary Benson <gbenson@redhat.com>
4389 * common/common-defs.h: Include print-utils.h.
4390 * utils.h: Do not include print-utils.h.
4392 2014-08-19 Tom Tromey <tromey@redhat.com>
4393 Gary Benson <gbenson@redhat.com>
4395 * common/common-types.h: New file.
4396 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4397 * common/common-defs.h: Include common-types.h.
4398 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4401 2014-08-19 Tom Tromey <tromey@redhat.com>
4402 Gary Benson <gbenson@redhat.com>
4404 * common/errors.h: New file.
4405 * common/errors.c: Likewise.
4406 * Makefile.in (SFILES): Add common/errors.c.
4407 (HFILES_NO_SRCDIR): Add common/errors.h.
4408 (COMMON_OBS): Add errors.o.
4409 (errors.o): New rule.
4410 * common/common-defs.h: Include errors.h.
4411 * utils.h (perror_with_name, error, verror, warning, vwarning):
4413 * common/common-utils.h: (malloc_failure, internal_error):
4416 2014-08-19 Gary Benson <gbenson@redhat.com>
4418 * utils.c (internal_vproblem): Always print the message.
4420 2014-08-18 Doug Evans <dje@google.com>
4422 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4424 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4426 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4427 Return 0 if TYPE is dynamic.
4428 (print_range): Add handling of dynamic ranges.
4430 2014-08-18 Keven Boell <keven.boell@intel.com>
4431 Joel Brobecker <brobecker@adacore.com>
4433 * gdbtypes.h (struct main_type): Add field "data_location".
4434 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4435 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4436 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4437 a dynamic data location.
4438 (resolve_dynamic_type): Add DW_AT_data_location handling.
4439 (copy_recursive, copy_type): Copy the data_location information
4441 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4442 * value.c (value_from_contents_and_address): Add
4443 DW_AT_data_location handling.
4445 2014-08-18 Keven Boell <keven.boell@intel.com>
4446 Joel Brobecker <brobecker@adacore.com>
4448 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4449 field "get_object_address".
4450 * dwarf2expr.c (execute_stack_op): Add handling for
4451 DW_OP_push_object_address.
4452 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4453 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4454 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4455 (dwarf_expr_get_obj_addr): New function.
4456 (dwarf_expr_ctx_funcs): Add get_object_address field.
4457 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4458 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4459 (dwarf2_evaluate_property): Add parameter "address". Use it.
4460 (needs_get_obj_addr): New function.
4461 (needs_frame_ctx_funcs): Add get_object_address field.
4462 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4463 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4464 (resolve_dynamic_array): Likewise.
4466 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4468 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4469 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4470 fixed value for records and unions for which some GNAT encodings
4473 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4475 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4476 rewrite to avoid "else if" and "else" constructs. Should be
4477 a no-op in practice.
4479 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4481 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4484 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4487 * eval.c: Update all calls to find_overload_match.
4488 * valarith.c: Likewise.
4489 (value_user_defined_cpp_op, value_user_defined_op): New
4490 argument NOSIDE. Update all callers.
4491 * valops.c (find_overload_match): New argument NOSIDE.
4492 * value.h (find_overload_match): Update signature.
4494 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4496 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4497 'items' methods instead of 'iteritems' method on dictionaries.
4499 2014-08-15 Doug Evans <dje@google.com>
4501 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4504 2014-08-15 Doug Evans <dje@google.com>
4506 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4508 2014-08-15 Doug Evans <dje@google.com>
4510 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4512 2014-08-15 Doug Evans <dje@google.com>
4514 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4517 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4519 * dcache.h: Include target.h, to avoid compile time warnings.
4521 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4523 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4524 frame_info" partial declaration.
4525 * gdbarch.h: Regenerate.
4527 2014-08-15 Yao Qi <yao@codesourcery.com>
4529 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4530 Add parameter 'decode_for_pst_p'. Callers update.
4532 2014-08-13 Yao Qi <yao@codesourcery.com>
4535 * configure.ac: Use local variable 'pos'.
4536 * configure: Regenerated.
4538 2014-08-11 Doug Evans <dje@google.com>
4540 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4541 message, it is redundant with "Reading symbols from ..." message.
4543 2014-08-10 Doug Evans <xdje42@gmail.com>
4545 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4547 2014-08-09 Yao Qi <yao@codesourcery.com>
4550 * remote.c (remote_xfer_partial): Remove dead code.
4552 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4554 * ia64-linux-tdep.c: Include "regset.h".
4555 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4556 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4557 (ia64_linux_supply_fpregset): New function.
4558 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4559 (ia64_linux_regset_from_core_section): New function.
4560 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4563 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4565 * m68klinux-tdep.c: Include "regset.h".
4566 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4567 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4568 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4569 (m68k_linux_regset_from_core_section): New function.
4570 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4573 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4575 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4576 function. Move logic to...
4577 (tilegx_linux_regmap): ... this new register map.
4578 (tilegx_linux_regset): Refer to register map, replace supply
4579 method by regcache_supply_regset, and add collect method.
4580 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4581 TILEGX_FIRST_EASY_REGNUM.
4583 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4586 that calls regcache_supply_regset and handles the EPC register
4587 separately. Move main logic to...
4588 (score7_linux_gregmap): ... this new register map.
4589 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4590 (score7_linux_gregset): Refer to register map. Add collect method.
4591 (score7_linux_regset_from_core_section): Replace
4592 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4593 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4594 (struct regset): Delete unused forward declaraction.
4595 (struct pt_regs): Delete structure definition.
4596 (elf_gregset_t): Delete typedef.
4598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4600 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4601 (nios2_core_regset): Add collect method.
4603 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4605 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4606 platform-independent and don't write to read-only input buffer.
4607 (m32r_linux_collect_gregset): New function.
4608 (m32r_linux_gregset): Add collect method.
4610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4612 * hppa-linux-tdep.c (greg_map): Rename to...
4613 (hppa_linux_gregmap): ... this. Also convert to
4614 regcache_map_entry format.
4615 (hppa_linux_supply_regset): Delete function.
4616 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4617 (hppa_linux_fpregmap): ... this new register map.
4618 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4619 register map, replace supply method by regcache_supply_regset, and
4620 add collect method regcache_collect_regset.
4622 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4624 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4625 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4626 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4627 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4628 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4629 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4630 (frv_linux_supply_gregset): Replace main logic by call to
4631 regcache_supply_regset, but keep clearing gr32-gr63.
4632 (frv_linux_supply_fpregset): Delete function.
4633 (frv_linux_gregset): Refer to appropriate register map and add
4634 regcache_collect_regset as the collect method.
4635 (frv_linux_fpregset): Likewise. Also exchange the supply method
4636 by regcache_supply_regset.
4638 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4641 by call to alpha_supply_int_regs.
4642 (alpha_linux_collect_gregset): New function.
4643 (alpha_linux_supply_fpregset): Replace logic by call to
4644 alpha_supply_fp_regs.
4645 (alpha_linux_collect_fpregset): New function.
4646 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4648 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4650 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4651 by call to regcache_collect_regset.
4652 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4653 instead of aarch64_linux_supply_gregset/_fpregset.
4654 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4655 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4656 header file instead.
4657 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4658 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4659 functions. Move logic to ...
4660 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4662 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4663 refer to new register maps, replace *_regset_from_core by
4664 regcache_supply_regset, and also use regcache_collect_regset.
4665 * aarch64-linux-tdep.h: Include "regset.h".
4666 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4668 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4669 macros, moved from C source file.
4670 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4671 variable declarations.
4673 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4675 * s390-linux-nat.c: Include "regset.h".
4676 (regmap_gregset): Delete macro.
4677 (s390_64_regmap_gregset): New register map for
4678 regcache_supply/_collect_regset.
4679 (s390_64_gregset): New regset.
4680 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4681 (regmap_fpregset): Delete macro.
4682 (s390_native_supply, s390_native_collect): Delete functions.
4683 (supply_gregset, fill_gregset): Replace s390-specific regmap
4684 handling by a call to regcache_supply/_collect_regset.
4685 (supply_fpregset, fill_fpregset): Call regcache_supply/
4686 _collect_regset instead of s390_native_supply/_collect.
4687 (fetch_regset, store_regset): Likewise. Also change the last
4688 parameter to a regset instead of a regmap.
4689 (s390_linux_fetch_inferior_registers)
4690 (390_linux_store_inferior_registers): Adjust last parameter in
4691 calls to fetch_regset and store_regset.
4692 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4693 (s390_gregmap): ... this. Also make static const and convert to
4694 regcache_map_entry format.
4695 (s390x_regmap_gregset): Delete.
4696 (s390_regmap_fpregset): Rename to...
4697 (s390_fpregmap): ... this. Make static const and convert to
4698 regcache_map_entry format.
4699 (s390_regmap_upper, s390_regmap_last_break)
4700 (s390x_regmap_last_break, s390_regmap_system_call)
4701 (s390_regmap_tdb): Likewise.
4702 (s390_supply_regset, s390_collect_regset): Remove functions.
4703 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4705 (s390_gregset, s390_fpregset, s390_upper_regset)
4706 (s390_last_break_regset, s390x_last_break_regset)
4707 (s390_system_call_regset, s390_tdb_regset): Make global and
4708 replace s390_supply/_collect_regset by regcache_supply/
4710 (s390x_gregset): Delete.
4711 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4712 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4713 (s390_regmap_fpregset, s390_regmap_last_break)
4714 (s390x_regmap_last_break, s390_regmap_system_call)
4715 (s390_regmap_tdb): Delete global variable declarations.
4716 (s390_gregset, s390_fpregset, s390_last_break_regset)
4717 (s390x_last_break_regset, s390_system_call_regset)
4718 (s390_tdb_regset): New global variable declarations.
4720 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4722 * regcache.c: Include "regset.h".
4723 (regcache_transfer_regset): New local function.
4724 (regcache_supply_regset, regcache_collect_regset): New functions.
4725 * regcache.h (struct regcache_map_entry): New structure.
4726 (REGCACHE_MAP_SKIP): New enum value.
4727 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4729 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4732 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4733 (ppc_linux_collect_gregset ): Likewise.
4734 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4735 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4736 (ppc_collect_vrregset): Likewise.
4737 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4740 2014-08-07 Yao Qi <yao@codesourcery.com>
4742 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4743 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4744 * remote.c (remote_read_bytes): Likewise.
4746 2014-08-07 Yao Qi <yao@codesourcery.com>
4748 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4750 2014-08-07 Yao Qi <yao@codesourcery.com>
4753 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4754 TARGET_XFER_OK instead of 0.
4756 2014-08-07 Gary Benson <gbenson@redhat.com>
4758 * common/common-defs.h: Include errno.h.
4759 * defs.h: Do not include errno.h.
4760 * ada-typeprint.c: Likewise.
4761 * c-typeprint.c: Likewise.
4762 * core-regset.c: Likewise.
4763 * corefile.c: Likewise.
4764 * corelow.c: Likewise.
4765 * event-loop.c: Likewise.
4766 * f-typeprint.c: Likewise.
4767 * gnu-nat.c: Likewise.
4768 * go32-nat.c: Likewise.
4769 * i386gnu-nat.c: Likewise.
4770 * m2-typeprint.c: Likewise.
4771 * nat/linux-btrace.c: Likewise.
4772 * p-typeprint.c: Likewise.
4773 * procfs.c: Likewise.
4774 * remote-sim.c: Likewise.
4775 * rs6000-nat.c: Likewise.
4776 * target.c: Likewise.
4777 * typeprint.c: Likewise.
4778 * ui-file.c: Likewise.
4779 * valops.c: Likewise.
4780 * valprint.c: Likewise.
4782 2014-08-07 Gary Benson <gbenson@redhat.com>
4784 * common/common-defs.h: Include string.h.
4785 * aarch64-tdep.c: Do not include string.h.
4786 * ada-exp.y: Likewise.
4787 * ada-lang.c: Likewise.
4788 * ada-lex.l: Likewise.
4789 * ada-typeprint.c: Likewise.
4790 * ada-valprint.c: Likewise.
4791 * aix-thread.c: Likewise.
4792 * alpha-linux-tdep.c: Likewise.
4793 * alpha-mdebug-tdep.c: Likewise.
4794 * alpha-nat.c: Likewise.
4795 * alpha-osf1-tdep.c: Likewise.
4796 * alpha-tdep.c: Likewise.
4797 * alphanbsd-tdep.c: Likewise.
4798 * amd64-dicos-tdep.c: Likewise.
4799 * amd64-linux-tdep.c: Likewise.
4800 * amd64-nat.c: Likewise.
4801 * amd64-sol2-tdep.c: Likewise.
4802 * amd64fbsd-tdep.c: Likewise.
4803 * amd64obsd-tdep.c: Likewise.
4804 * arch-utils.c: Likewise.
4805 * arm-linux-nat.c: Likewise.
4806 * arm-linux-tdep.c: Likewise.
4807 * arm-tdep.c: Likewise.
4808 * arm-wince-tdep.c: Likewise.
4809 * armbsd-tdep.c: Likewise.
4810 * armnbsd-nat.c: Likewise.
4811 * armnbsd-tdep.c: Likewise.
4812 * armobsd-tdep.c: Likewise.
4813 * avr-tdep.c: Likewise.
4814 * ax-gdb.c: Likewise.
4815 * ax-general.c: Likewise.
4816 * bcache.c: Likewise.
4817 * bfin-tdep.c: Likewise.
4818 * breakpoint.c: Likewise.
4819 * build-id.c: Likewise.
4820 * buildsym.c: Likewise.
4821 * c-exp.y: Likewise.
4822 * c-lang.c: Likewise.
4823 * c-typeprint.c: Likewise.
4824 * c-valprint.c: Likewise.
4825 * charset.c: Likewise.
4826 * cli-out.c: Likewise.
4827 * cli/cli-cmds.c: Likewise.
4828 * cli/cli-decode.c: Likewise.
4829 * cli/cli-dump.c: Likewise.
4830 * cli/cli-interp.c: Likewise.
4831 * cli/cli-logging.c: Likewise.
4832 * cli/cli-script.c: Likewise.
4833 * cli/cli-setshow.c: Likewise.
4834 * cli/cli-utils.c: Likewise.
4835 * coffread.c: Likewise.
4836 * common/agent.c: Likewise.
4837 * common/buffer.c: Likewise.
4838 * common/buffer.h: Likewise.
4839 * common/common-utils.c: Likewise.
4840 * common/filestuff.c: Likewise.
4841 * common/filestuff.c: Likewise.
4842 * common/format.c: Likewise.
4843 * common/print-utils.c: Likewise.
4844 * common/rsp-low.c: Likewise.
4845 * common/signals.c: Likewise.
4846 * common/vec.h: Likewise.
4847 * common/xml-utils.c: Likewise.
4848 * core-regset.c: Likewise.
4849 * corefile.c: Likewise.
4850 * corelow.c: Likewise.
4851 * cp-abi.c: Likewise.
4852 * cp-name-parser.y: Likewise.
4853 * cp-support.c: Likewise.
4854 * cp-valprint.c: Likewise.
4855 * cris-tdep.c: Likewise.
4856 * d-exp.y: Likewise.
4857 * darwin-nat.c: Likewise.
4858 * dbxread.c: Likewise.
4859 * dcache.c: Likewise.
4860 * demangle.c: Likewise.
4861 * dicos-tdep.c: Likewise.
4862 * disasm.c: Likewise.
4863 * doublest.c: Likewise.
4864 * dsrec.c: Likewise.
4865 * dummy-frame.c: Likewise.
4866 * dwarf2-frame.c: Likewise.
4867 * dwarf2loc.c: Likewise.
4868 * dwarf2read.c: Likewise.
4869 * elfread.c: Likewise.
4870 * environ.c: Likewise.
4872 * event-loop.c: Likewise.
4873 * exceptions.c: Likewise.
4875 * expprint.c: Likewise.
4876 * f-exp.y: Likewise.
4877 * f-lang.c: Likewise.
4878 * f-typeprint.c: Likewise.
4879 * f-valprint.c: Likewise.
4880 * fbsd-nat.c: Likewise.
4881 * findcmd.c: Likewise.
4882 * findvar.c: Likewise.
4883 * fork-child.c: Likewise.
4884 * frame.c: Likewise.
4885 * frv-linux-tdep.c: Likewise.
4886 * frv-tdep.c: Likewise.
4888 * gdb_bfd.c: Likewise.
4889 * gdbarch.c: Likewise.
4890 * gdbarch.sh: Likewise.
4891 * gdbtypes.c: Likewise.
4892 * gnu-nat.c: Likewise.
4893 * gnu-v2-abi.c: Likewise.
4894 * gnu-v3-abi.c: Likewise.
4895 * go-exp.y: Likewise.
4896 * go-lang.c: Likewise.
4897 * go32-nat.c: Likewise.
4898 * guile/guile.c: Likewise.
4899 * guile/scm-auto-load.c: Likewise.
4900 * hppa-hpux-tdep.c: Likewise.
4901 * hppa-linux-nat.c: Likewise.
4902 * hppanbsd-tdep.c: Likewise.
4903 * hppaobsd-tdep.c: Likewise.
4904 * i386-cygwin-tdep.c: Likewise.
4905 * i386-dicos-tdep.c: Likewise.
4906 * i386-linux-tdep.c: Likewise.
4907 * i386-nto-tdep.c: Likewise.
4908 * i386-sol2-tdep.c: Likewise.
4909 * i386-tdep.c: Likewise.
4910 * i386bsd-tdep.c: Likewise.
4911 * i386gnu-nat.c: Likewise.
4912 * i386nbsd-tdep.c: Likewise.
4913 * i386obsd-tdep.c: Likewise.
4914 * i387-tdep.c: Likewise.
4915 * ia64-libunwind-tdep.c: Likewise.
4916 * ia64-linux-nat.c: Likewise.
4917 * inf-child.c: Likewise.
4918 * inf-ptrace.c: Likewise.
4919 * inf-ttrace.c: Likewise.
4920 * infcall.c: Likewise.
4921 * infcmd.c: Likewise.
4922 * inflow.c: Likewise.
4923 * infrun.c: Likewise.
4924 * interps.c: Likewise.
4925 * iq2000-tdep.c: Likewise.
4926 * irix5-nat.c: Likewise.
4927 * jv-exp.y: Likewise.
4928 * jv-lang.c: Likewise.
4929 * jv-typeprint.c: Likewise.
4930 * jv-valprint.c: Likewise.
4931 * language.c: Likewise.
4932 * linux-fork.c: Likewise.
4933 * linux-nat.c: Likewise.
4934 * lm32-tdep.c: Likewise.
4935 * m2-exp.y: Likewise.
4936 * m2-typeprint.c: Likewise.
4937 * m32c-tdep.c: Likewise.
4938 * m32r-linux-nat.c: Likewise.
4939 * m32r-linux-tdep.c: Likewise.
4940 * m32r-rom.c: Likewise.
4941 * m32r-tdep.c: Likewise.
4942 * m68hc11-tdep.c: Likewise.
4943 * m68k-tdep.c: Likewise.
4944 * m68kbsd-tdep.c: Likewise.
4945 * m68klinux-nat.c: Likewise.
4946 * m68klinux-tdep.c: Likewise.
4947 * m88k-tdep.c: Likewise.
4948 * machoread.c: Likewise.
4949 * macrocmd.c: Likewise.
4951 * mdebugread.c: Likewise.
4952 * mem-break.c: Likewise.
4953 * memattr.c: Likewise.
4954 * memory-map.c: Likewise.
4955 * mep-tdep.c: Likewise.
4956 * mi/mi-cmd-break.c: Likewise.
4957 * mi/mi-cmd-disas.c: Likewise.
4958 * mi/mi-cmd-env.c: Likewise.
4959 * mi/mi-cmd-stack.c: Likewise.
4960 * mi/mi-cmd-var.c: Likewise.
4961 * mi/mi-cmds.c: Likewise.
4962 * mi/mi-console.c: Likewise.
4963 * mi/mi-getopt.c: Likewise.
4964 * mi/mi-interp.c: Likewise.
4965 * mi/mi-main.c: Likewise.
4966 * mi/mi-parse.c: Likewise.
4967 * microblaze-rom.c: Likewise.
4968 * microblaze-tdep.c: Likewise.
4969 * mingw-hdep.c: Likewise.
4970 * minidebug.c: Likewise.
4971 * minsyms.c: Likewise.
4972 * mips-irix-tdep.c: Likewise.
4973 * mips-linux-tdep.c: Likewise.
4974 * mips-tdep.c: Likewise.
4975 * mips64obsd-tdep.c: Likewise.
4976 * mipsnbsd-tdep.c: Likewise.
4977 * mipsread.c: Likewise.
4978 * mn10300-linux-tdep.c: Likewise.
4979 * mn10300-tdep.c: Likewise.
4980 * monitor.c: Likewise.
4981 * moxie-tdep.c: Likewise.
4982 * mt-tdep.c: Likewise.
4983 * nat/linux-btrace.c: Likewise.
4984 * nat/linux-osdata.c: Likewise.
4985 * nat/linux-procfs.c: Likewise.
4986 * nat/linux-ptrace.c: Likewise.
4987 * nat/linux-waitpid.c: Likewise.
4988 * nbsd-tdep.c: Likewise.
4989 * nios2-linux-tdep.c: Likewise.
4990 * nto-procfs.c: Likewise.
4991 * nto-tdep.c: Likewise.
4992 * objc-lang.c: Likewise.
4993 * objfiles.c: Likewise.
4994 * opencl-lang.c: Likewise.
4995 * osabi.c: Likewise.
4996 * osdata.c: Likewise.
4997 * p-exp.y: Likewise.
4998 * p-lang.c: Likewise.
4999 * p-typeprint.c: Likewise.
5000 * parse.c: Likewise.
5001 * posix-hdep.c: Likewise.
5002 * ppc-linux-nat.c: Likewise.
5003 * ppc-sysv-tdep.c: Likewise.
5004 * ppcfbsd-tdep.c: Likewise.
5005 * ppcnbsd-tdep.c: Likewise.
5006 * ppcobsd-tdep.c: Likewise.
5007 * printcmd.c: Likewise.
5008 * procfs.c: Likewise.
5009 * prologue-value.c: Likewise.
5010 * python/py-auto-load.c: Likewise.
5011 * python/py-gdb-readline.c: Likewise.
5012 * ravenscar-thread.c: Likewise.
5013 * regcache.c: Likewise.
5014 * registry.c: Likewise.
5015 * remote-fileio.c: Likewise.
5016 * remote-m32r-sdi.c: Likewise.
5017 * remote-mips.c: Likewise.
5018 * remote-notif.c: Likewise.
5019 * remote-sim.c: Likewise.
5020 * remote.c: Likewise.
5021 * reverse.c: Likewise.
5022 * rs6000-aix-tdep.c: Likewise.
5023 * ser-base.c: Likewise.
5024 * ser-go32.c: Likewise.
5025 * ser-mingw.c: Likewise.
5026 * ser-pipe.c: Likewise.
5027 * ser-tcp.c: Likewise.
5028 * ser-unix.c: Likewise.
5029 * serial.c: Likewise.
5030 * sh-tdep.c: Likewise.
5031 * sh64-tdep.c: Likewise.
5032 * shnbsd-tdep.c: Likewise.
5034 * sol-thread.c: Likewise.
5035 * solib-dsbt.c: Likewise.
5036 * solib-frv.c: Likewise.
5037 * solib-osf.c: Likewise.
5038 * solib-som.c: Likewise.
5039 * solib-spu.c: Likewise.
5040 * solib-target.c: Likewise.
5041 * solib.c: Likewise.
5042 * somread.c: Likewise.
5043 * source.c: Likewise.
5044 * sparc-nat.c: Likewise.
5045 * sparc-sol2-tdep.c: Likewise.
5046 * sparc-tdep.c: Likewise.
5047 * sparc64-tdep.c: Likewise.
5048 * sparc64fbsd-tdep.c: Likewise.
5049 * sparc64nbsd-tdep.c: Likewise.
5050 * sparcnbsd-tdep.c: Likewise.
5051 * spu-linux-nat.c: Likewise.
5052 * spu-multiarch.c: Likewise.
5053 * spu-tdep.c: Likewise.
5054 * stabsread.c: Likewise.
5055 * stack.c: Likewise.
5056 * std-regs.c: Likewise.
5057 * symfile.c: Likewise.
5058 * symmisc.c: Likewise.
5059 * symtab.c: Likewise.
5060 * target.c: Likewise.
5061 * thread.c: Likewise.
5062 * tilegx-linux-nat.c: Likewise.
5063 * tilegx-tdep.c: Likewise.
5065 * tracepoint.c: Likewise.
5066 * tui/tui-command.c: Likewise.
5067 * tui/tui-data.c: Likewise.
5068 * tui/tui-disasm.c: Likewise.
5069 * tui/tui-file.c: Likewise.
5070 * tui/tui-layout.c: Likewise.
5071 * tui/tui-out.c: Likewise.
5072 * tui/tui-regs.c: Likewise.
5073 * tui/tui-source.c: Likewise.
5074 * tui/tui-stack.c: Likewise.
5075 * tui/tui-win.c: Likewise.
5076 * tui/tui-windata.c: Likewise.
5077 * tui/tui-winsource.c: Likewise.
5078 * typeprint.c: Likewise.
5079 * ui-file.c: Likewise.
5080 * ui-out.c: Likewise.
5081 * user-regs.c: Likewise.
5082 * utils.c: Likewise.
5083 * v850-tdep.c: Likewise.
5084 * valarith.c: Likewise.
5085 * valops.c: Likewise.
5086 * valprint.c: Likewise.
5087 * value.c: Likewise.
5088 * varobj.c: Likewise.
5089 * vax-tdep.c: Likewise.
5090 * vaxnbsd-tdep.c: Likewise.
5091 * vaxobsd-tdep.c: Likewise.
5092 * windows-nat.c: Likewise.
5093 * xcoffread.c: Likewise.
5094 * xml-support.c: Likewise.
5095 * xstormy16-tdep.c: Likewise.
5096 * xtensa-linux-nat.c: Likewise.
5098 2014-08-07 Gary Benson <gbenson@redhat.com>
5100 * common/common-defs.h: Include gdb_assert.h.
5101 * aarch64-tdep.c: Do not include gdb_assert.h.
5102 * addrmap.c: Likewise.
5103 * aix-thread.c: Likewise.
5104 * alpha-linux-tdep.c: Likewise.
5105 * alpha-mdebug-tdep.c: Likewise.
5106 * alphanbsd-tdep.c: Likewise.
5107 * amd64-nat.c: Likewise.
5108 * amd64-tdep.c: Likewise.
5109 * amd64bsd-nat.c: Likewise.
5110 * amd64fbsd-nat.c: Likewise.
5111 * amd64fbsd-tdep.c: Likewise.
5112 * amd64nbsd-nat.c: Likewise.
5113 * amd64nbsd-tdep.c: Likewise.
5114 * amd64obsd-nat.c: Likewise.
5115 * amd64obsd-tdep.c: Likewise.
5116 * arch-utils.c: Likewise.
5117 * arm-tdep.c: Likewise.
5118 * armbsd-tdep.c: Likewise.
5120 * bcache.c: Likewise.
5121 * bfin-tdep.c: Likewise.
5122 * blockframe.c: Likewise.
5123 * breakpoint.c: Likewise.
5124 * bsd-kvm.c: Likewise.
5125 * bsd-uthread.c: Likewise.
5126 * buildsym.c: Likewise.
5127 * c-exp.y: Likewise.
5128 * c-lang.c: Likewise.
5129 * charset.c: Likewise.
5130 * cleanups.c: Likewise.
5131 * cli-out.c: Likewise.
5132 * cli/cli-decode.c: Likewise.
5133 * cli/cli-dump.c: Likewise.
5134 * cli/cli-logging.c: Likewise.
5135 * cli/cli-script.c: Likewise.
5136 * cli/cli-utils.c: Likewise.
5137 * coffread.c: Likewise.
5138 * common/common-utils.c: Likewise.
5139 * common/queue.h: Likewise.
5140 * common/signals.c: Likewise.
5141 * common/vec.h: Likewise.
5142 * complaints.c: Likewise.
5143 * completer.c: Likewise.
5144 * corelow.c: Likewise.
5145 * cp-abi.c: Likewise.
5146 * cp-name-parser.y: Likewise.
5147 * cp-namespace.c: Likewise.
5148 * cp-support.c: Likewise.
5149 * cris-tdep.c: Likewise.
5150 * dbxread.c: Likewise.
5151 * dictionary.c: Likewise.
5152 * doublest.c: Likewise.
5153 * dsrec.c: Likewise.
5154 * dummy-frame.c: Likewise.
5155 * dwarf2-frame-tailcall.c: Likewise.
5156 * dwarf2-frame.c: Likewise.
5157 * dwarf2expr.c: Likewise.
5158 * dwarf2loc.c: Likewise.
5159 * dwarf2read.c: Likewise.
5161 * event-loop.c: Likewise.
5162 * exceptions.c: Likewise.
5163 * expprint.c: Likewise.
5164 * f-valprint.c: Likewise.
5165 * fbsd-nat.c: Likewise.
5166 * findvar.c: Likewise.
5167 * frame-unwind.c: Likewise.
5168 * frame.c: Likewise.
5169 * frv-tdep.c: Likewise.
5170 * gcore.c: Likewise.
5171 * gdb-dlfcn.c: Likewise.
5172 * gdb_bfd.c: Likewise.
5173 * gdbarch.c: Likewise.
5174 * gdbarch.sh: Likewise.
5175 * gdbtypes.c: Likewise.
5176 * gnu-nat.c: Likewise.
5177 * gnu-v3-abi.c: Likewise.
5178 * go-lang.c: Likewise.
5179 * guile/scm-exception.c: Likewise.
5180 * guile/scm-gsmob.c: Likewise.
5181 * guile/scm-lazy-string.c: Likewise.
5182 * guile/scm-math.c: Likewise.
5183 * guile/scm-pretty-print.c: Likewise.
5184 * guile/scm-safe-call.c: Likewise.
5185 * guile/scm-utils.c: Likewise.
5186 * guile/scm-value.c: Likewise.
5187 * h8300-tdep.c: Likewise.
5188 * hppa-hpux-nat.c: Likewise.
5189 * hppa-tdep.c: Likewise.
5190 * hppanbsd-tdep.c: Likewise.
5191 * hppaobsd-tdep.c: Likewise.
5192 * i386-darwin-nat.c: Likewise.
5193 * i386-darwin-tdep.c: Likewise.
5194 * i386-nto-tdep.c: Likewise.
5195 * i386-tdep.c: Likewise.
5196 * i386bsd-nat.c: Likewise.
5197 * i386fbsd-tdep.c: Likewise.
5198 * i386gnu-nat.c: Likewise.
5199 * i386nbsd-tdep.c: Likewise.
5200 * i386obsd-tdep.c: Likewise.
5201 * i387-tdep.c: Likewise.
5202 * ia64-libunwind-tdep.c: Likewise.
5203 * ia64-tdep.c: Likewise.
5204 * inf-ptrace.c: Likewise.
5205 * inf-ttrace.c: Likewise.
5206 * infcall.c: Likewise.
5207 * infcmd.c: Likewise.
5208 * infrun.c: Likewise.
5209 * inline-frame.c: Likewise.
5210 * interps.c: Likewise.
5211 * jv-lang.c: Likewise.
5212 * jv-typeprint.c: Likewise.
5213 * linux-fork.c: Likewise.
5214 * linux-nat.c: Likewise.
5215 * linux-thread-db.c: Likewise.
5216 * m32c-tdep.c: Likewise.
5217 * m32r-linux-nat.c: Likewise.
5218 * m32r-tdep.c: Likewise.
5219 * m68k-tdep.c: Likewise.
5220 * m68kbsd-nat.c: Likewise.
5221 * m68kbsd-tdep.c: Likewise.
5222 * m88k-tdep.c: Likewise.
5223 * machoread.c: Likewise.
5224 * macroexp.c: Likewise.
5225 * macrotab.c: Likewise.
5226 * maint.c: Likewise.
5227 * mdebugread.c: Likewise.
5228 * memory-map.c: Likewise.
5229 * mep-tdep.c: Likewise.
5230 * mi/mi-common.c: Likewise.
5231 * microblaze-tdep.c: Likewise.
5232 * mingw-hdep.c: Likewise.
5233 * mips-linux-nat.c: Likewise.
5234 * mips-linux-tdep.c: Likewise.
5235 * mips-tdep.c: Likewise.
5236 * mips64obsd-tdep.c: Likewise.
5237 * mipsnbsd-tdep.c: Likewise.
5238 * mn10300-linux-tdep.c: Likewise.
5239 * mn10300-tdep.c: Likewise.
5240 * moxie-tdep.c: Likewise.
5241 * mt-tdep.c: Likewise.
5242 * nat/linux-btrace.c: Likewise.
5243 * nat/linux-osdata.c: Likewise.
5244 * nat/linux-ptrace.c: Likewise.
5245 * nat/mips-linux-watch.c: Likewise.
5246 * nios2-linux-tdep.c: Likewise.
5247 * nios2-tdep.c: Likewise.
5248 * objc-lang.c: Likewise.
5249 * objfiles.c: Likewise.
5250 * obsd-nat.c: Likewise.
5251 * opencl-lang.c: Likewise.
5252 * osabi.c: Likewise.
5253 * parse.c: Likewise.
5254 * ppc-linux-nat.c: Likewise.
5255 * ppc-sysv-tdep.c: Likewise.
5256 * ppcfbsd-nat.c: Likewise.
5257 * ppcfbsd-tdep.c: Likewise.
5258 * ppcnbsd-nat.c: Likewise.
5259 * ppcnbsd-tdep.c: Likewise.
5260 * ppcobsd-nat.c: Likewise.
5261 * ppcobsd-tdep.c: Likewise.
5262 * printcmd.c: Likewise.
5263 * procfs.c: Likewise.
5264 * prologue-value.c: Likewise.
5265 * psymtab.c: Likewise.
5266 * python/py-lazy-string.c: Likewise.
5267 * python/py-value.c: Likewise.
5268 * regcache.c: Likewise.
5269 * reggroups.c: Likewise.
5270 * registry.c: Likewise.
5271 * remote-sim.c: Likewise.
5272 * remote.c: Likewise.
5273 * rs6000-aix-tdep.c: Likewise.
5274 * rs6000-tdep.c: Likewise.
5275 * s390-linux-tdep.c: Likewise.
5276 * score-tdep.c: Likewise.
5277 * ser-base.c: Likewise.
5278 * ser-mingw.c: Likewise.
5279 * sh-tdep.c: Likewise.
5280 * sh64-tdep.c: Likewise.
5281 * solib-darwin.c: Likewise.
5282 * solib-spu.c: Likewise.
5283 * solib-svr4.c: Likewise.
5284 * source.c: Likewise.
5285 * sparc-nat.c: Likewise.
5286 * sparc-sol2-tdep.c: Likewise.
5287 * sparc-tdep.c: Likewise.
5288 * sparc64-sol2-tdep.c: Likewise.
5289 * sparc64-tdep.c: Likewise.
5290 * sparc64fbsd-tdep.c: Likewise.
5291 * sparc64nbsd-tdep.c: Likewise.
5292 * sparc64obsd-tdep.c: Likewise.
5293 * sparcnbsd-tdep.c: Likewise.
5294 * sparcobsd-tdep.c: Likewise.
5295 * spu-multiarch.c: Likewise.
5296 * spu-tdep.c: Likewise.
5297 * stabsread.c: Likewise.
5298 * stack.c: Likewise.
5299 * symfile.c: Likewise.
5300 * symtab.c: Likewise.
5301 * target-descriptions.c: Likewise.
5302 * target-memory.c: Likewise.
5303 * target.c: Likewise.
5304 * tic6x-linux-tdep.c: Likewise.
5305 * tic6x-tdep.c: Likewise.
5306 * tilegx-linux-nat.c: Likewise.
5307 * tilegx-tdep.c: Likewise.
5309 * tramp-frame.c: Likewise.
5310 * tui/tui-out.c: Likewise.
5311 * tui/tui-winsource.c: Likewise.
5312 * ui-out.c: Likewise.
5313 * user-regs.c: Likewise.
5314 * utils.c: Likewise.
5315 * v850-tdep.c: Likewise.
5316 * valops.c: Likewise.
5317 * value.c: Likewise.
5318 * varobj.c: Likewise.
5319 * vax-nat.c: Likewise.
5320 * xml-syscall.c: Likewise.
5321 * xml-tdesc.c: Likewise.
5322 * xstormy16-tdep.c: Likewise.
5323 * xtensa-linux-nat.c: Likewise.
5324 * xtensa-tdep.c: Likewise.
5326 2014-08-07 Gary Benson <gbenson@redhat.com>
5328 * common/common-defs.h: Include common-utils.h.
5329 * defs.h: Do not include common-utils.h.
5330 * common/gdb_assert.h: Likewise.
5331 * darwin-nat.h: Likewise.
5332 * nat/linux-btrace.c: Likewise.
5333 * target/waitstatus.h: Likewise.
5335 2014-08-07 Gary Benson <gbenson@redhat.com>
5337 * common/common-defs.h: Include ptid.h.
5338 * defs.h: Do not include ptid.h.
5339 * inferior.h: Likewise.
5340 * infrun.h: Likewise.
5341 * nat/linux-btrace.h: Likewise.
5342 * nat/linux-osdata.h: Likewise.
5343 * target/waitstatus.h: Likewise.
5345 2014-08-07 Gary Benson <gbenson@redhat.com>
5347 * common/common-defs.h: Include gdb_locale.h.
5348 * defs.h: Do not include gdb_locale.h.
5350 2014-08-07 Gary Benson <gbenson@redhat.com>
5352 * common/common-defs.h: Include gdb/signals.h.
5353 * defs.h: Do not include gdb/signals.h.
5355 2014-08-07 Gary Benson <gbenson@redhat.com>
5357 * common/common-defs.h: Include pathmax.h.
5358 * defs.h: Do not include pathmax.h.
5360 2014-08-07 Gary Benson <gbenson@redhat.com>
5362 * common/common-defs.h: Include libiberty.h.
5363 * defs.h: Do not include libiberty.h.
5364 * common/queue.h: Likewise.
5365 * cp-name-parser.y: Likewise.
5366 * mi/mi-cmd-catch.c: Likewise.
5367 * python/python.c: Likewise.
5369 2014-08-07 Gary Benson <gbenson@redhat.com>
5371 * common/common-defs.h: Include ansidecl.h.
5372 * defs.h: Do not include ansidecl.h.
5373 * common/buffer.h: Likewise.
5374 * common/common-utils.h: Likewise.
5376 2014-08-07 Gary Benson <gbenson@redhat.com>
5378 * common/common-defs.h: Include stddef.h.
5379 * defs.h: Do not include stddef.h.
5380 * common/common-utils.h: Likewise.
5381 * amd64fbsd-nat.c: Likewise.
5382 * bcache.c: Likewise.
5383 * charset.c: Likewise.
5384 * common/buffer.h: Likewise.
5385 * common/vec.h: Likewise.
5386 * i386bsd-nat.c: Likewise.
5387 * nat/linux-btrace.h: Likewise.
5388 * ppcfbsd-nat.c: Likewise.
5389 * ppcnbsd-tdep.h: Likewise.
5390 * ppcobsd-nat.c: Likewise.
5391 * ppcobsd-tdep.h: Likewise.
5392 * python/py-gdb-readline.c: Likewise.
5394 2014-08-07 Gary Benson <gbenson@redhat.com>
5396 * common/common-defs.h: Include stdarg.h.
5397 * defs.h: Do not include stdarg.h.
5398 * ada-lang.c: Likewise.
5399 * common/common-utils.h: Likewise.
5400 * guile/scm-string.c: Likewise.
5401 * guile/scm-utils.c: Likewise.
5402 * m32c-tdep.c: Likewise.
5404 2014-08-07 Gary Benson <gbenson@redhat.com>
5406 * common/common-defs.h: Include stdlib.h.
5407 * defs.h: Do not include stdlib.h.
5408 * addrmap.c: Likewise.
5409 * bcache.c: Likewise.
5410 * common/buffer.c: Likewise.
5411 * common/common-utils.c: Likewise.
5412 * cp-name-parser.y: Likewise.
5413 * go32-nat.c: Likewise.
5414 * mn10300-linux-tdep.c: Likewise.
5415 * nat/linux-osdata.c: Likewise.
5416 * tui/tui.c: Likewise.
5417 * windows-nat.c: Likewise.
5419 2014-08-07 Gary Benson <gbenson@redhat.com>
5421 * common/common-defs.h: Include stdio.h.
5422 * defs.h: Do not include stdio.h.
5423 * ada-lang.c: Likewise.
5424 * common/buffer.c: Likewise.
5425 * common/common-utils.c: Likewise.
5426 * cp-name-parser.y: Likewise.
5427 * gnu-nat.c: Likewise.
5428 * go32-nat.c: Likewise.
5429 * i386gnu-nat.c: Likewise.
5430 * proc-api.c: Likewise.
5431 * proc-events.c: Likewise.
5432 * proc-flags.c: Likewise.
5433 * proc-why.c: Likewise.
5434 * python/python-internal.h: Likewise.
5435 * target-memory.c: Likewise.
5436 * tui/tui-io.c: Likewise.
5437 * tui/tui.c: Likewise.
5439 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5441 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5442 (scan_dyntag_auxv): Same.
5444 2014-08-06 Yao Qi <yao@codesourcery.com>
5446 * amd64-linux-nat.c: Remove duplicated include
5448 * i386-linux-nat.c: Likewise.
5450 2014-08-06 Yao Qi <yao@codesourcery.com>
5452 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5453 operand" with "Special opcode" in comments.
5455 2014-08-05 Gary Benson <gbenson@redhat.com>
5457 * interps.c (initialize_interps): Remove prototype.
5458 (interpreter_initialized): Remove static global.
5459 (interp_add): Do not call initialize_interps.
5460 (initialize_interps): Remove function.
5462 2014-08-05 Gary Benson <gbenson@redhat.com>
5464 * utils.c (vwarning): Remove spurious va_end.
5466 2014-08-05 Alan Modra <amodra@gmail.com>
5468 * charset.c (convert_between_encodings): Cast result of obstack_base.
5469 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5470 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5471 (read_unwind_info): Use size_t for some locals.
5472 * jit.c (finalize_symtab): Likewise.
5473 * utils.c (hashtab_obstack_allocate): Likewise.
5474 * symmisc.c (print_objfile_statistics): Update format strings.
5476 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5478 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5479 (Changes in GDB 7.8): ... here.
5481 2014-08-04 Tom Tromey <tromey@redhat.com>
5483 * target.c (set_targetdebug): New function.
5484 (initialize_targets): Pass set_targetdebug when creating "set
5487 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5489 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5490 if detecting a variable-sized field that is not the last field.
5491 Fix struct type length computation.
5493 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5495 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5498 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5500 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5501 Remove "+ 8" offset in computation of CHAIN_VMA.
5503 2014-07-31 Doug Evans <dje@google.com>
5505 * inflow.c (child_terminal_inferior): Add comment.
5506 (child_terminal_ours_for_output): Add comment.
5507 (child_terminal_ours): Add comment.
5508 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5509 (linux_nat_terminal_ours): Add comment.
5511 2014-07-31 Gary Benson <gbenson@redhat.com>
5513 * common/btrace-common.h: Do not include defs.h or server.h.
5514 * nat/mips-linux-watch.h: Likewise.
5515 * gdb-dlfcn.h: Do not include defs.h.
5516 * tracefile.h: Likewise.
5518 2014-07-30 Roland McGrath <mcgrathr@google.com>
5520 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5522 2014-07-30 Tom Tromey <tromey@redhat.com>
5524 * bsd-kvm.c (bsd_kvm_open): Constify.
5525 * corelow.c (core_open): Constify.
5526 * ctf.c (ctf_open): Constify.
5527 * dbug-rom.c (dbug_open): Constify.
5528 * exec.c (exec_open): Constify.
5529 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5530 * microblaze-rom.c (picobug_open): Constify.
5531 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5533 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5534 * record-btrace.c (record_btrace_open): Constify.
5535 * record-full.c (record_full_core_open_1, record_full_open_1)
5536 (record_full_open): Constify.
5537 * remote-m32r-sdi.c (m32r_open): Constify.
5538 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5539 (rockhopper_open, lsi_open): Constify.
5540 * remote-sim.c (gdbsim_open): Constify.
5541 * remote.c (remote_open, extended_remote_open, remote_open_1):
5543 * target.h (struct target_ops) <to_open>: Make "arg" const.
5544 * tracefile-tfile.c (tfile_open): Constify.
5546 2014-07-30 Tom Tromey <tromey@redhat.com>
5548 * breakpoint.c (map_breakpoint_numbers): Update.
5549 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5550 (get_number_const): New function.
5551 (get_number): Rewrite using get_number_const.
5552 (init_number_or_range): Make "string" const.
5553 (number_is_in_list): Make "list" const.
5554 * cli/cli-utils.h (get_number_const): Declare.
5555 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5556 (init_number_or_range, number_is_in_list): Update.
5557 * printcmd.c (map_display_numbers): Update.
5558 * value.c (value_from_history_ref): Constify.
5559 * value.h (value_from_history_ref): Update.
5561 2014-07-30 Tom Tromey <tromey@redhat.com>
5563 * corefile.c (hook_type, call_extra_exec_file_hooks)
5564 (specify_exec_file_hook): Constify.
5565 * exec.c (exec_file_attach): Make "filename" const.
5566 * gdbcore.h (deprecated_exec_file_display_hook)
5567 (specify_exec_file_hook, exec_file_attach): Constify.
5568 * main.c (captured_main): Use catch_command_errors_const.
5570 2014-07-30 Tom Tromey <tromey@redhat.com>
5572 * target.c (open_target): New function.
5573 (add_target_with_completer, add_deprecated_target_alias): Use
5574 set_cmd_sfunc, set_cmd_context.
5575 (debug_to_open): Remove.
5576 (setup_target_debug): Update.
5578 2014-07-30 Yao Qi <yao@codesourcery.com>
5580 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5582 * parse.c (exp_iterate): Update comments.
5584 2014-07-30 Gary Benson <gbenson@redhat.com>
5586 * common/common-defs.h: New file.
5587 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5588 * defs.h: Include common-defs.h.
5589 Do not include config.h or build-gnulib/config.h.
5591 2014-07-30 Gary Benson <gbenson@redhat.com>
5593 * common/common-utils.h: Do not include config.h.
5594 * nat/linux-btrace.h: Likewise.
5596 2014-07-30 Gary Benson <gbenson@redhat.com>
5598 * btrace.c: Include defs.h.
5599 * common/ptid.c: Include defs.h or server.h as appropriate.
5600 * nat/mips-linux-watch.c: Likewise.
5602 2014-07-29 Tom Tromey <tromey@redhat.com>
5604 * target.c (target_is_pushed): Simplify.
5606 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5610 2014-07-29 Yao Qi <yao@codesourcery.com>
5613 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5615 2014-07-28 Doug Evans <xdje42@gmail.com>
5618 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5619 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5622 2014-07-28 Will Newton <will.newton@linaro.org>
5624 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5625 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5626 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5627 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5628 (THUMB2_EABI_SYSCALL): Likewise.
5629 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5631 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5632 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5634 2014-07-27 Doug Evans <xdje42@gmail.com>
5636 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5638 2014-07-27 Doug Evans <xdje42@gmail.com>
5640 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5642 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5643 Doug Evans <xdje42@gmail.com>
5646 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5647 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5648 * configure.ac: Try to use guild to compile an scm file, if it fails
5649 then disable guile support.
5650 * configure: Regenerate.
5651 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5653 (GUILE_COMPILED_FILES): New variable.
5654 (GUILE_FILES) Update.
5655 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5656 (stamp-guile): Compile scm files.
5657 * guile/guile.c (boot_guile_support): New function.
5658 (standard_throw_args_p): New function.
5659 (print_standard_throw_error, print_throw_error): New functions.
5660 (handle_boot_error): New function.
5661 (initialize_scheme_side): Rewrite to call boot_guile_support.
5662 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5663 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5665 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5666 Doug Evans <xdje42@gmail.com>
5669 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5670 * guile/lib/gdb/support.scm: New file.
5671 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5672 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5674 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5676 (%assert-type): Ditto, and renamed to assert-type.
5677 (%exception-print-style): Delete.
5679 2014-07-26 Doug Evans <xdje42@gmail.com>
5682 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5683 * configure: Regenerate.
5684 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5686 (PYTHON_FILES): New variable.
5687 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5688 (GUILE_FILES): New variable.
5689 (stamp-python, install-python, uninstall-python): Handle empty
5691 (stamp-guile, install-guile, uninstall-guile): Ditto.
5693 2014-07-26 Doug Evans <xdje42@gmail.com>
5696 * guile/lib/gdb.scm (pretty-printers): Export.
5697 (set-pretty-printers!): Export.
5698 * guile/lib/gdb/printing.scm (gdb module): Update.
5699 (prepend-pretty-printer!, append-pretty-printer!): Update.
5700 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5701 (pretty_printer_list_var): Delete.
5702 (pretty_printer_list): New static global.
5703 (gdbscm_pretty_printers): New function.
5704 (gdbscm_set_pretty_printers_x): New function.
5705 (ppscm_find_pretty_printer_from_gdb): Update.
5706 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5707 (gdbscm_initialize_pretty_printers): Update.
5709 2014-07-26 Doug Evans <xdje42@gmail.com>
5712 * configure.ac: Add check for header gc/gc.h.
5713 Add check for function setenv.
5714 * configure: Regenerate.
5715 * config.in: Regenerate.
5716 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5718 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5720 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5721 variation in gdbarch matching.
5723 2014-07-25 Tom Tromey <tromey@redhat.com>
5725 * exec.c (using_exec_ops): Remove.
5726 (exec_close_1): Update. Remove extraneous block, reindent.
5727 (add_target_sections): Use target_is_pushed.
5729 2014-07-25 Pedro Alves <palves@redhat.com>
5731 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5732 * monitor.c (monitor_create_inferior): Likewise.
5733 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5734 * remote-sim.c (gdbsim_create_inferior): Likewise.
5735 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5736 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5737 * windows-nat.c (do_initial_windows_stuff): Likewise.
5739 2014-07-25 Pedro Alves <palves@redhat.com>
5741 * NEWS: Mention signal passing and "signal" command changes.
5742 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5744 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5746 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5747 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5748 (jump_command): Adjust clear_proceed_status call.
5749 (signal_command): Warn if other thread that are resumed have
5750 signals that will be delivered. Adjust clear_proceed_status call.
5751 (until_next_command, finish_command)
5752 (proceed_after_attach_callback, attach_command_post_wait)
5753 (attach_command): Adjust clear_proceed_status call.
5754 * infrun.c (proceed_after_vfork_done): Likewise.
5755 (proceed_after_attach_callback): Adjust comment.
5756 (clear_proceed_status_thread): Clear stop_signal if not in pass
5758 (clear_proceed_status_callback): Delete.
5759 (clear_proceed_status): New 'step' parameter. Only clear the
5760 proceed status of threads the command being prepared is about to
5762 (proceed): If passed in an explicit signal, override stop_signal
5763 with it. Don't pass the last stop signal to the thread we're
5765 (init_wait_for_inferior): Adjust clear_proceed_status call.
5766 (switch_back_to_stepped_thread): Clear the signal if it should not
5768 * infrun.h (clear_proceed_status): New 'step' parameter.
5769 (user_visible_resume_ptid): Add comment.
5770 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5771 signal is in pass state.
5772 * remote.c (append_pending_thread_resumptions): Likewise.
5773 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5775 2014-07-25 Tom Tromey <tromey@redhat.com>
5777 * target.h (target_stopped_data_address)
5778 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5781 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5783 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5785 (avr_pointer_to_address): Likewise.
5787 2014-07-24 Tom Tromey <tromey@redhat.com>
5789 * monitor.c (compile_pattern): Update.
5790 * target.h (struct target_ops) <to_shortname, to_longname,
5793 2014-07-24 Tom Tromey <tromey@redhat.com>
5795 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5796 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5797 (add_info_alias, add_com): Make "doc" const.
5798 (print_doc_line): Make "str" const.
5799 (delete_cmd): Update.
5800 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5801 (print_doc_line): Update.
5802 * cli/cli-script.c (document_command): Update.
5803 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5804 (add_com, add_info, add_info_alias): Update.
5805 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5806 * python/py-cmd.c (cmdpy_destroyer): Update.
5808 2014-07-24 Tom Tromey <tromey@redhat.com>
5810 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5811 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5812 (help_cmd_list): Constify.
5813 (lookup_cmd): Update.
5814 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5816 (help_cmd_list, apropos_cmd): Update.
5817 * cli/cli-script.c (show_user): Update.
5818 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5819 * cli/cli-setshow.h (cmd_show_list): Update.
5820 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5821 (cmd_show_list): Update.
5822 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5823 * python/py-cmd.c (cmdpy_destroyer): Update.
5825 2014-07-24 Tom Tromey <tromey@redhat.com>
5827 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5828 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5830 * command.h (deprecate_cmd): Update.
5831 * maint.c (maintenance_do_deprecate): Add casts.
5833 2014-07-24 Tom Tromey <tromey@redhat.com>
5835 * cli/cli-decode.c (help_cmd): Make parameter "const".
5836 * cli/cli-decode.h (help_cmd): Update.
5838 2014-07-24 Tom Tromey <tromey@redhat.com>
5840 * stack.c (up_silently_base, down_silently_base): Make argument
5843 2014-07-24 Tom Tromey <tromey@redhat.com>
5845 * solib.c (solib_add): Make "pattern" const.
5846 * solib.h (solib_add): Update.
5848 2014-07-24 Tom Tromey <tromey@redhat.com>
5850 * remote.c (remote_serial_open, print_packet, putpkt)
5851 (putpkt_binary): Constify.
5852 * remote.h (putpkt): Update.
5854 2014-07-24 Tom Tromey <tromey@redhat.com>
5856 * monitor.c (monitor_open): Make "args" const.
5857 * monitor.h (monitor_open): Update.
5859 2014-07-24 Tom Tromey <tromey@redhat.com>
5861 * maint.c (match_bfd_flags): Make "string" const.
5862 (print_bfd_section_info): Remove casts.
5863 (print_objfile_section_info): Make "string" const.
5865 2014-07-24 Tom Tromey <tromey@redhat.com>
5867 * inf-child.c (inf_child_open_target): Make "arg" const.
5868 * inf-child.h (inf_child_open_target): Update.
5870 2014-07-24 Tom Tromey <tromey@redhat.com>
5872 * environ.c (unset_in_environ): Make "var" const.
5873 * environ.h (unset_in_environ): Update.
5875 2014-07-24 Tom Tromey <tromey@redhat.com>
5877 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5879 (scan_filename_with_cleanup): Likewise.
5880 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5881 Make arguments const.
5882 (restore_command): Update.
5884 2014-07-24 Pedro Alves <palves@redhat.com>
5886 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5888 2014-07-24 Tom Tromey <tromey@redhat.com>
5889 Gary Benson <gbenson@redhat.com>
5891 * nat/linux-ptrace.c (additional_flags): New global.
5892 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5893 additional_flags; don't check GDBSERVER.
5894 (linux_ptrace_set_additional_flags): New function.
5895 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5897 * linux-nat.c (_initialize_linux_nat): Call
5898 linux_ptrace_set_additional_flags.
5900 2014-07-24 Tom Tromey <tromey@redhat.com>
5902 * make-target-delegates (munge_type, write_debugmethod): New
5904 (debug_names): New global.
5905 ($TARGET_DEBUG_PRINTER): New global.
5906 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5908 Write debug methods. Generate init_debug_target.
5909 * target-debug.h: New file.
5910 * target-delegates.c: Rebuild.
5911 * target.c: Include target-debug.h.
5912 (debug_target): Hoist definition.
5913 (target_kill, target_get_section_table, target_memory_map)
5914 (target_flash_erase, target_flash_done, target_detach)
5915 (target_disconnect, target_wait, target_resume)
5916 (target_pass_signals, target_program_signals, target_follow_fork)
5917 (target_mourn_inferior, target_search_memory)
5918 (target_thread_address_space, target_close)
5919 (target_find_new_threads, target_core_of_thread)
5920 (target_verify_memory, target_insert_mask_watchpoint)
5921 (target_remove_mask_watchpoint): Remove targetdebug code.
5922 (debug_to_post_attach, debug_to_prepare_to_store)
5923 (debug_to_files_info, debug_to_insert_breakpoint)
5924 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5925 (debug_to_region_ok_for_hw_watchpoint)
5926 (debug_to_can_accel_watchpoint_condition)
5927 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5928 (debug_to_watchpoint_addr_within_range)
5929 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5930 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5931 (debug_to_terminal_init, debug_to_terminal_inferior)
5932 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5933 (debug_to_terminal_save_ours, debug_to_terminal_info)
5934 (debug_to_load, debug_to_post_startup_inferior)
5935 (debug_to_insert_fork_catchpoint)
5936 (debug_to_remove_fork_catchpoint)
5937 (debug_to_insert_vfork_catchpoint)
5938 (debug_to_remove_vfork_catchpoint)
5939 (debug_to_insert_exec_catchpoint)
5940 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5941 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5942 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5943 (setup_target_debug): Call init_debug_target.
5944 * target.h (TARGET_DEBUG_PRINTER): New macro.
5945 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5946 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5948 2014-07-24 Gary Benson <gbenson@redhat.com>
5950 * exceptions.h (throw_vfatal): Renamed to...
5951 (throw_vquit): New declaration.
5952 (throw_quit): Likewise.
5953 * exceptions.c (throw_vfatal): Renamed to...
5954 (throw_vquit): New function.
5955 (throw_quit): Likewise.
5956 (throw_error): Call throw_verror rather than throw_it.
5957 * utils.h (vfatal): Removed.
5959 * utils.c (vfatal): Removed.
5961 (internal_verror): Replaced call to fatal with call to throw_quit.
5962 (quit): Replaced calls to fatal with calls to throw_quit.
5964 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5966 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5969 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5971 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5972 less than zero in conditional expression.
5974 2014-07-23 Tom Tromey <tromey@redhat.com>
5976 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5977 ($INTRO_PART): Don't match whitespace.
5978 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5980 ($METHOD): Add $METHOD_TRAILER.
5982 (scan_target_h): New sub.
5983 Change main loop not to collect state.
5984 * target-delegates.c: Rebuild.
5986 2014-07-23 Gary Benson <gbenson@redhat.com>
5988 * cp-support.c (gdb_demangle): Fix build on systems without
5991 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5993 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5994 for reference entry value target data value.
5996 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5998 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5999 value_available_contents_eq.
6001 2014-07-22 Pedro Alves <palves@redhat.com>
6003 * value.c (allocate_optimized_out_value): Don't mark value as
6006 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6008 * MAINTAINERS (Write After Approval): Update my email address.
6010 2014-07-20 Doug Evans <dje@google.com>
6013 * remote.c (putpkt_binary): Add text to error message.
6015 2014-07-20 Yao Qi <yao@codesourcery.com>
6017 * eval.c: Remove "Chill" from comments.
6018 * gdbtypes.h: Likewise.
6019 * symtab.h: Likewise.
6021 2014-07-20 Yao Qi <yao@codesourcery.com>
6023 * std-operator.def: Update comments to TERNOP_SLICE.
6025 2014-07-20 Yao Qi <yao@codesourcery.com>
6027 * std-operator.def: Remove BINOP_RANGE.
6028 * breakpoint.c (watchpoint_exp_is_const): Update.
6029 * expprint.c (dump_subexp_body_standard): Likewise.
6030 * eval.c (init_array_element): Remove dead code.
6031 (evaluate_subexp_standard): Likewise.
6033 2014-07-20 Yao Qi <yao@codesourcery.com>
6035 * std-operator.def: Remove BINOP_IN.
6036 * breakpoint.c (watchpoint_exp_is_const): Update.
6037 * eval.c (evaluate_subexp_standard): Likewise.
6038 * expprint.c (dump_subexp_body_standard): Likewise.
6040 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6042 * microblaze-tdep.c (microblaze_register_names): Add
6043 the rshr and rslr register names.
6044 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6045 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6046 Use of tdesc_numbered_register. Use of
6047 microblaze_register_g_packet_guesses. Use of
6048 tdesc_use_registers. Use of set_gdbarch_register_type.
6049 (microblaze_register_g_packet_guesses): New.
6050 * microblaze-tdep.h (microblaze_reg_num): Add
6051 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6052 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6053 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6054 * features/microblaze-core.xml: New file.
6055 * features/microblaze-stack-protect.xml: New file.
6056 * features/microblaze-with-stack-protect.c: New file.
6057 * features/microblaze-with-stack-protect.xml: New file.
6058 * features/microblaze.xml: New file.
6059 * features/microblaze.c: New file.
6060 * features/Makefile (microblaze-with-stack-protect): Add
6061 microblaze-with-stack-protect microblaze and microblaze-expedite.
6062 * regformats/microblaze-with-stack-protect.dat: New file.
6063 * regformats/microblaze.dat: New file.
6064 * doc/gdb.texinfo (MicroBlaze Features): Added.
6066 2014-07-18 Tom Tromey <tromey@redhat.com>
6068 * exec.c (exec_ops): Now static.
6069 * exec.h (exec_ops): Don't declare.
6071 2014-07-18 Tom Tromey <tromey@redhat.com>
6073 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6074 to find_target_beneath.
6075 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6076 find_target_beneath.
6077 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6079 2014-07-18 Tom Tromey <tromey@redhat.com>
6082 * utils.c (quit): Use target_supports_terminal_ours.
6083 * target.h (target_supports_terminal_ours): Declare.
6084 * target.c (target_supports_delete_record): Don't check
6085 to_delete_record against NULL.
6086 (target_supports_terminal_ours): New function.
6088 2014-07-18 Tom Tromey <tromey@redhat.com>
6091 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6092 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6093 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6094 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6095 * windows-nat.c (windows_xfer_partial): Always delegate.
6096 * record-btrace.c (record_btrace_xfer_partial): Simplify
6098 (record_btrace_fetch_registers, record_btrace_store_registers)
6099 (record_btrace_prepare_to_store, record_btrace_resume)
6100 (record_btrace_wait, record_btrace_find_new_threads)
6101 (record_btrace_thread_alive): Likewise.
6102 * procfs.c (procfs_xfer_partial): Always delegate.
6103 * corelow.c (core_xfer_partial): Always delegate.
6104 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6106 2014-07-18 Tom Tromey <tromey@redhat.com>
6108 * exec.c (exec_make_note_section): Move earlier.
6110 2014-07-17 Doug Evans <dje@google.com>
6113 * maint.c (count_symtabs_and_blocks): Handle NULL
6114 current_program_space.
6115 (report_command_stats): Check global enabled flag in addition to
6116 recorded enabled flag.
6117 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6119 2014-07-16 Pedro Alves <palves@redhat.com>
6121 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6123 2014-07-16 Tom Tromey <tromey@redhat.com>
6125 * target.h (struct target_ops) <to_delete_record>: Reformat
6128 2014-07-16 Tom Tromey <tromey@redhat.com>
6130 * target-delegates.c: Rebuild.
6132 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6134 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6135 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6136 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6137 (avr_pointer_to_address): Likewise.
6138 (avr_address_class_type_flags): New function.
6139 (avr_address_class_type_flags_to_name): Likewise.
6140 (avr_address_class_name_to_type_flags): Likewise.
6141 (avr_gdbarch_init): Set address_class_type_flags,
6142 address_class_type_flags_to_name and
6143 address_class_name_to_type_flags.
6145 2014-07-15 Pedro Alves <palves@redhat.com>
6147 * linux-nat.c (kill_callback): Save errno and work with saved
6150 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6152 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6154 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6156 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6157 breakpoint support correctly.
6159 2014-07-14 Pedro Alves <palves@redhat.com>
6161 * utils.c (prompt_for_continue): Call target_terminal_ours.
6163 2014-07-14 Pedro Alves <palves@redhat.com>
6165 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6166 catch_errors. Don't re-enable stdin or notify observers where,
6168 (fetch_inferior_event_wrapper): Delete.
6170 2014-07-14 Pedro Alves <palves@redhat.com>
6173 * top.c: Include "inf-loop.h".
6174 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6176 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6178 (gdb_readline_wrapper): Store whether the target is async, and
6181 2014-07-14 Pedro Alves <palves@redhat.com>
6184 * top.c (gdb_readline_wrapper_line): Tweak comment.
6185 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6186 the input handler callback.
6188 2014-07-14 Pedro Alves <palves@redhat.com>
6191 * main.c: Include event-top.h.
6192 (handle_command_errors): New function.
6193 (catch_command_errors, catch_command_errors_const): Use it.
6195 2014-07-14 Pedro Alves <palves@redhat.com>
6197 * exceptions.c (catch_command_errors, catch_command_errors_const):
6199 * exceptions.h (catch_command_errors_ftype)
6200 (catch_command_errors_const_ftype): Moved to main.c.
6201 (catch_command_errors, catch_command_errors_const): Delete
6203 * main.c (catch_command_errors_ftype)
6204 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6205 (catch_command_errors, catch_command_errors_const)): Moved here
6206 from exceptions.c and make static.
6208 2014-07-14 Pedro Alves <palves@redhat.com>
6210 * exceptions.c (print_any_exception): Delete.
6211 (catch_exceptions_with_msg): Use exception_print instead of
6212 print_any_exception.
6213 (catch_errors): Use exception_fprintf instead of
6214 print_any_exception.
6215 (catch_command_errors, catch_command_errors_const): Use
6216 exception_print instead of print_any_exception.
6218 2014-07-14 Pedro Alves <palves@redhat.com>
6220 * infcall.c (run_inferior_call): Set 'sync_execution' while
6221 running the inferior call.
6223 2014-07-14 Pedro Alves <palves@redhat.com>
6225 * value.c (value_contents_equal): Delete function.
6226 * value.h (value_contents_equal): Delete declaration.
6228 2014-07-14 Tom Tromey <tromey@redhat.com>
6231 * gdbtypes.c (is_dynamic_type_internal): New function, from
6233 (is_dynamic_type): Rewrite.
6234 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6235 (resolve_dynamic_struct): Likewise.
6236 (resolve_dynamic_type_internal): New function, from
6237 resolve_dynamic_type.
6238 (resolve_dynamic_type): Rewrite.
6240 2014-07-14 Tom Tromey <tromey@redhat.com>
6242 * target.c (target_require_runnable): Also check record_stratum.
6245 2014-07-11 Yao Qi <yao@codesourcery.com>
6247 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6248 thumb_instruction_restores_sp return true.
6250 2014-07-11 Yao Qi <yao@codesourcery.com>
6252 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6253 (thumb_in_function_epilogue_p): Call
6254 thumb_instruction_restores_sp.
6256 2014-07-11 Yao Qi <yao@codesourcery.com>
6258 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6260 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6262 2014-07-11 Gary Benson <gbenson@redhat.com>
6264 * amd64-linux-nat.c (gdbcore.h): Remove include.
6265 (regset.h): Likewise.
6266 (nat/linux-btrace.h): Likewise.
6267 (btrace.h): Likewise.
6268 (gdb_assert.h): Likewise.
6269 (string.h): Likewise.
6270 (sys/uio.h): Likewise.
6271 (sys/debugreg.h): Likewise.
6272 (sys/syscall.h): Likewise.
6273 (sys/procfs.h): Likewise.
6274 (sys/user.h): Likewise.
6275 (asm/ptrace.h): Likewise.
6276 (i386-nat.h): Likewise.
6277 * i386-linux-nat.c (i386-nat.h): Likewise.
6278 (regset.h): Likewise.
6279 (target.h): Likewise.
6280 (linux-nat.h): Likewise.
6281 (nat/linux-btrace.h): Likewise.
6282 (btrace.h): Likewise.
6283 (gdb_assert.h): Likewise.
6284 (string.h): Likewise.
6285 (sys/uio.h): Likewise.
6286 (sys/user.h): Likewise.
6287 (sys/procfs.h): Likewise.
6288 (sys/reg.h): Likewise.
6289 (sys/debugreg.h): Likewise.
6290 (ORIG_EAX): Remove definition.
6292 2014-07-11 Gary Benson <gbenson@redhat.com>
6294 * i386-linux-nat.h: New file.
6295 * x86-linux-nat.h: Likewise.
6296 * x86-linux-nat.c: Likewise.
6297 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6298 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6299 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6300 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6301 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6302 (PTRACE_SETREGSET): Likewise.
6303 (arch_lwp_info): Now in x86-linux-nat.c.
6304 (have_ptrace_getregset): Now in x86-linux-nat.h.
6305 (x86_linux_dr_get): Now in x86-linux-nat.c.
6306 (x86_linux_dr_set): Likewise.
6307 (x86_linux_dr_get_addr): Likewise.
6308 (x86_linux_dr_get_control): Likewise.
6309 (x86_linux_dr_get_status): Likewise.
6310 (update_debug_registers_callback): Likewise.
6311 (x86_linux_dr_set_control): Likewise.
6312 (x86_linux_dr_set_addr): Likewise.
6313 (x86_linux_prepare_to_resume): Likewise.
6314 (x86_linux_new_thread): Likewise.
6315 (x86_linux_new_fork): Likewise.
6316 (x86_linux_get_thread_area): Likewise.
6317 (super_post_startup_inferior): Likewise.
6318 (x86_linux_child_post_startup_inferior): Likewise.
6319 (AMD64_LINUX_USER64_CS): Likewise.
6320 (AMD64_LINUX_X32_DS): Likewise.
6321 (x86_linux_read_description): Likewise.
6322 (x86_linux_enable_btrace): Likewise.
6323 (x86_linux_disable_btrace): Likewise.
6324 (x86_linux_teardown_btrace): Likewise.
6325 (x86_linux_read_btrace): Likewise.
6326 (x86_linux_create_target): Likewise.
6327 (x86_linux_add_target): Likewise.
6328 * i386-linux-nat.c (x86-linux-nat.h): New include.
6329 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6330 (PTRACE_SETREGSET): Likewise.
6331 (arch_lwp_info): Now in x86-linux-nat.c.
6332 (have_ptrace_getregset): Now in x86-linux-nat.h.
6333 (x86_linux_dr_get): Now in x86-linux-nat.c.
6334 (x86_linux_dr_set): Likewise.
6335 (x86_linux_dr_get_addr): Likewise.
6336 (x86_linux_dr_get_control): Likewise.
6337 (x86_linux_dr_get_status): Likewise.
6338 (update_debug_registers_callback): Likewise.
6339 (x86_linux_dr_set_control): Likewise.
6340 (x86_linux_dr_set_addr): Likewise.
6341 (x86_linux_prepare_to_resume): Likewise.
6342 (x86_linux_new_thread): Likewise.
6343 (x86_linux_new_fork): Likewise.
6344 (x86_linux_get_thread_area): Likewise.
6345 (super_post_startup_inferior): Likewise.
6346 (x86_linux_child_post_startup_inferior): Likewise.
6347 (AMD64_LINUX_USER64_CS): Likewise.
6348 (AMD64_LINUX_X32_DS): Likewise.
6349 (x86_linux_read_description): Likewise.
6350 (x86_linux_enable_btrace): Likewise.
6351 (x86_linux_disable_btrace): Likewise.
6352 (x86_linux_teardown_btrace): Likewise.
6353 (x86_linux_read_btrace): Likewise.
6354 (x86_linux_create_target): Likewise.
6355 (x86_linux_add_target): Likewise.
6357 2014-07-11 Gary Benson <gbenson@redhat.com>
6359 * amd64-linux-nat.c: Comment and whitespace changes.
6360 * i386-linux-nat.c: Comment and whitespace changes.
6362 2014-07-11 Gary Benson <gbenson@redhat.com>
6364 * amd64-linux-nat.c (x86_linux_create_target): New function.
6365 (x86_linux_add_target): Likewise.
6366 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6367 * i386-linux-nat.c (x86_linux_create_target): New function.
6368 (x86_linux_add_target): Likewise.
6369 (_initialize_i386_linux_nat): Delegate to the above new functions.
6371 2014-07-11 Gary Benson <gbenson@redhat.com>
6373 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6374 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6375 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6376 (ps_get_thread_area): Delegate to the above.
6378 2014-07-11 Gary Benson <gbenson@redhat.com>
6380 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6381 x86_linux_read_description. All uses updated. amd64-specific
6382 code conditionalized. Conditionalized i386-specific code added.
6383 Redundant cast removed.
6384 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6385 x86_linux_read_description. All uses updated. i386-specific
6386 code conditionalized. Conditionalized amd64-specific code added.
6387 One sizeof replaced with the actual type it is describing.
6389 2014-07-11 Gary Benson <gbenson@redhat.com>
6391 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6392 x86_linux_dr_get. All uses updated.
6393 (amd64_linux_dr_set): Renamed to
6394 x86_linux_dr_set. All uses updated.
6395 (amd64_linux_dr_get_addr): Renamed to
6396 x86_linux_dr_get_addr. All uses updated.
6397 (amd64_linux_dr_get_control): Renamed to
6398 x86_linux_dr_get_control. All uses updated.
6399 (amd64_linux_dr_get_status): Renamed to
6400 x86_linux_dr_get_status. All uses updated.
6401 (amd64_linux_dr_set_control): Renamed to
6402 x86_linux_dr_set_control. All uses updated.
6403 (amd64_linux_dr_set_addr): Renamed to
6404 x86_linux_dr_set_addr. All uses updated.
6405 (amd64_linux_prepare_to_resume): Renamed to
6406 x86_linux_prepare_to_resume. All uses updated.
6407 (amd64_linux_new_thread): Renamed to
6408 x86_linux_new_thread. All uses updated.
6409 (amd64_linux_new_fork): Renamed to
6410 x86_linux_new_fork. All uses updated.
6411 (amd64_linux_child_post_startup_inferior): Renamed to
6412 x86_linux_child_post_startup_inferior. All uses updated.
6413 (amd64_linux_enable_btrace): Renamed to
6414 x86_linux_enable_btrace. All uses updated.
6415 (amd64_linux_disable_btrace): Renamed to
6416 x86_linux_disable_btrace. All uses updated.
6417 (amd64_linux_teardown_btrace): Renamed to
6418 x86_linux_teardown_btrace. All uses updated.
6419 (amd64_linux_read_btrace): Renamed to
6420 x86_linux_read_btrace. All uses updated.
6421 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6422 x86_linux_dr_get. All uses updated.
6423 (i386_linux_dr_set): Renamed to
6424 x86_linux_dr_set. All uses updated.
6425 (i386_linux_dr_get_addr): Renamed to
6426 x86_linux_dr_get_addr. All uses updated.
6427 (i386_linux_dr_get_control): Renamed to
6428 x86_linux_dr_get_control. All uses updated.
6429 (i386_linux_dr_get_status): Renamed to
6430 x86_linux_dr_get_status. All uses updated.
6431 (i386_linux_dr_set_control): Renamed to
6432 x86_linux_dr_set_control. All uses updated.
6433 (i386_linux_dr_set_addr): Renamed to
6434 x86_linux_dr_set_addr. All uses updated.
6435 (i386_linux_prepare_to_resume): Renamed to
6436 x86_linux_prepare_to_resume. All uses updated.
6437 (i386_linux_new_thread): Renamed to
6438 x86_linux_new_thread. All uses updated.
6439 (i386_linux_new_fork): Renamed to
6440 x86_linux_new_fork. All uses updated.
6441 (i386_linux_child_post_startup_inferior): Renamed to
6442 x86_linux_child_post_startup_inferior. All uses updated.
6443 (i386_linux_enable_btrace): Renamed to
6444 x86_linux_enable_btrace. All uses updated.
6445 (i386_linux_disable_btrace): Renamed to
6446 x86_linux_disable_btrace. All uses updated.
6447 (i386_linux_teardown_btrace): Renamed to
6448 x86_linux_teardown_btrace. All uses updated.
6449 (i386_linux_read_btrace): Renamed to
6450 x86_linux_read_btrace. All uses updated.
6452 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6454 * remote.c (extended_remote_post_attach): New function.
6455 (init_extended_remote_ops): Install it as to_post_attach method.
6457 2014-07-09 Pedro Alves <palves@redhat.com>
6459 * infcmd.c (attach_command_post_wait): Don't call
6460 target_terminal_inferior here.
6461 (attach_command): Call it here instead.
6463 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6465 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6467 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6468 from varobj.c, with additional checks.
6469 (c_varobj_ops): Fill in is_path_expr_parent field.
6470 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6471 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6473 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6475 (varobj_default_is_path_expr_parent): New function.
6476 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6477 (varobj_default_is_path_expr_parent): Declare new function.
6479 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6481 * infcmd.c (finish_backward): Turn internal error into normal error.
6483 2014-07-07 Pedro Alves <palves@redhat.com>
6486 * remote.c (async_handle_remote_sigint)
6487 (async_handle_remote_sigint_twice): Call
6488 gdb_call_async_signal_handler instead of
6489 mark_async_signal_handler.
6491 2014-07-07 Tom Tromey <tromey@redhat.com>
6493 * target-delegates.c: Rebuild.
6494 * target.c (target_info_record): Remove.
6495 * record.c (info_record_command): Unconditionally call
6497 * target.h (struct target_ops) <to_info_record>: Use
6498 TARGET_DEFAULT_IGNORE.
6499 (target_info_record): Remove.
6501 2014-07-07 Tom Tromey <tromey@redhat.com>
6503 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6504 TARGET_DEFAULT_NORETURN.
6505 * target.c (generic_tls_error): New function.
6506 (target_translate_tls_address): Don't search target stack.
6507 * target-delegates.c: Rebuild.
6508 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6510 * linux-thread-db.c (thread_db_get_thread_local_address):
6511 Unconditionally call beneath target.
6513 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6515 * cli/cli-logging.c (pop_output_files): Assign targerr to
6518 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6520 * MAINTAINERS (Write After Approval): Update my email address.
6522 2014-07-02 Gary Benson <gbenson@redhat.com>
6524 * proc-service.c (ps_xfer_memory): Update comment.
6525 (ps_pstop): Remove unused function.
6526 (ps_pcontinue): Likewise.
6527 (ps_lstop): Likewise.
6528 (ps_lcontinue): Likewise.
6529 (ps_lgetxregsize): Likewise.
6530 (ps_lgetxregs): Likewise.
6531 (ps_lsetxregs): Likewise.
6532 (ps_plog): Likewise.
6533 (ps_ptread): Likewise.
6534 (ps_ptwrite): Likewise.
6536 2014-07-01 Mark Wielaard <mjw@redhat.com>
6538 * dwarf2read.c (add_array_cv_type): New function.
6539 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6540 (read_tag_volatile_type): Likewise.
6542 2014-07-01 Tom Tromey <tromey@redhat.com>
6544 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6545 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6546 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6547 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6548 * command.h (cmd_cfunc_ftype): Move earlier.
6549 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6550 (add_com, add_info): Use cmd_cfunc_ftype.
6552 2014-06-30 Tom Tromey <tromey@redhat.com>
6554 * symtab.c (operator_chars): Make parameters and return type
6556 (file_matches): Make "files" const.
6557 (struct search_symbols_data) <files>: Now const.
6558 (search_symbols): Make "regexp" and "files" parameters const.
6560 (symtab_symbol_info): Remove cast.
6561 (rbreak_command): Update.
6562 * symtab.h (search_symbols): Update.
6564 2014-06-27 Yao Qi <yao@codesourcery.com>
6566 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6567 Change parameter type to 'struct thread_info *'. Caller
6569 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6571 * dummy-frame.c (struct dummy_frame_id): New.
6572 (dummy_frame_id_eq): New function.
6573 (struct dummy_frame) <id>: Change its type to 'struct
6575 (dummy_frame_push): Add parameter ptid and save it in
6577 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6579 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6581 (lookup_dummy_frame): Change parameter type to 'struct
6582 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6583 instead of frame_id_eq.
6584 (dummy_frame_pop): Add parameter ptid. Callers updated.
6585 Update comments. Compose dummy_frame_id and pass it to
6587 (dummy_frame_discard): Add parameter ptid.
6588 (dummy_frame_sniffer): Compose dummy_frame_id and call
6589 dummy_frame_id_eq instead of frame_id_eq.
6590 (fprint_dummy_frames): Print ptid.
6591 * dummy-frame.h: Remove comments.
6592 (dummy_frame_push): Add ptid in declaration.
6593 (dummy_frame_pop, dummy_frame_discard): Likewise.
6595 2014-06-26 Tom Tromey <tromey@redhat.com>
6597 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6598 * command.h (error_no_arg): Update.
6600 2014-06-26 Tom Tromey <tromey@redhat.com>
6602 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6603 (do_show_command): Make "arg" const.
6604 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6606 2014-06-26 Tom Tromey <tromey@redhat.com>
6608 * record-full.c (record_full_get_bookmark): Make "args" const.
6609 (record_full_goto_bookmark): Make "raw_bookmark" const.
6610 * record.c (record_goto): New function.
6611 (cmd_record_goto): Use it. Now static.
6612 * record.h (record_goto): Declare.
6613 (cmd_record_goto): Remove declaration.
6614 * target-delegates.c: Rebuild.
6615 * target.h (struct target_ops) <to_get_bookmark,
6616 to_goto_bookmark>: Make parameter const.
6618 2014-06-26 Tom Tromey <tromey@redhat.com>
6620 * defs.h (generic_load): Update.
6621 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6622 * monitor.c (monitor_load): Make "args" const.
6623 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6624 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6626 (mips_load): Make "file" const.
6627 * remote-sim.c (gdbsim_load): Make "args" const.
6628 * remote.c (remote_load): Make "name" const.
6629 * symfile.c (generic_load): Make "args" const.
6630 * target-delegates.c: Rebuild.
6631 * target.c (target_load): Make "arg" const.
6632 (debug_to_load): Make "args" const.
6633 * target.h (struct target_ops) <to_load>: Make parameter const.
6634 (target_load): Update.
6636 2014-06-26 Tom Tromey <tromey@redhat.com>
6639 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6640 (dwarf2_physname, read_partial_die)
6641 (guess_partial_die_structure_name, fixup_partial_die)
6642 (guess_full_die_structure_name, anonymous_struct_prefix)
6643 (dwarf2_name): Use per-BFD obstack.
6645 2014-06-26 Yao Qi <yao@codesourcery.com>
6647 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6648 dummyframe and this_id into inner block below.
6650 2014-06-26 Yao Qi <yao@codesourcery.com>
6652 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6653 with "signal_pass[0]" in the initialization of signal_pass.
6655 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6657 * record-btrace.c (record_btrace_generating_corefile)
6658 (record_btrace_prepare_to_generate_core)
6659 (record_btrace_done_generating_core): New.
6660 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6661 (record_btrace_store_registers, record_btrace_prepare_to_store):
6662 Forward request when generating a core file.
6663 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6664 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6665 to_done_generating_core.
6667 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6669 * target.h (target_ops) <to_prepare_to_generate_core>
6670 <to_done_generating_core>: New.
6671 (target_prepare_to_generate_core, target_done_generating_core): New.
6672 * target.c (target_prepare_to_generate_core)
6673 (target_done_generating_core): New.
6674 * target-delegates.c: Regenerate.
6675 * gcore.c: (write_gcore_file): Rename to ...
6676 (write_gcore_file_1): ...this.
6677 (write_gcore_file): Call target_prepare_to_generate_core
6678 and target_done_generating_core.
6680 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6682 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6683 * gcore.c (write_gcore_file): Free memory returned from
6684 make_corefile_notes.
6685 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6686 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6688 2014-06-24 Yao Qi <yao@codesourcery.com>
6690 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6691 (arm_linux_init_abi): Set skip_trampoline_code with
6692 gdbarch_skip_trampoline_code instead of
6693 find_solib_trampoline_target.
6695 2014-06-24 Yao Qi <yao@codesourcery.com>
6697 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6698 arm_skip_bx_reg returns non-zero.
6700 2014-06-24 Yao Qi <yao@codesourcery.com>
6702 * arm-tdep.c (arm_skip_bx_reg): New function.
6703 (arm_skip_stub): Call arm_skip_bx_reg.
6705 2014-06-23 Don Breazeal <donb@codesourcery.com>
6707 * MAINTAINERS: Add myself as write-after-approval maintainer.
6709 2014-06-23 Pedro Alves <palves@redhat.com>
6711 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6712 DR_CONTROL before setting DR0..DR3.
6713 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6714 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6715 bits of DR_CONTROL related to the debug register slot being
6716 disabled. If all slots are vacant, clear local slowdown as well,
6717 and assert DR_CONTROL is 0.
6719 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6721 * python/lib/gdb/command/xmethods.py
6722 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6723 current progspace only if the string "progspace" matches LOCUS_RE.
6725 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6727 Fix --with-system-readline with readline-6.3 patch 5.
6728 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6729 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6732 2014-06-20 Tom Tromey <tromey@redhat.com>
6734 * dwarf2read.c (dw2_get_real_path): Use correct type in
6736 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6738 2014-06-20 Gary Benson <gbenson@redhat.com>
6740 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6741 * common/glibc_thread_db.h: Likewise.
6742 * common/i386-cpuid.h: Likewise.
6743 * common/i386-gcc-cpuid.h: Likewise.
6744 * common/linux-btrace.h: Likewise.
6745 * common/linux-osdata.h: Likewise.
6746 * common/linux-procfs.h: Likewise.
6747 * common/linux-ptrace.h: Likewise.
6748 * common/mips-linux-watch.h: Likewise.
6749 * common/linux-btrace.c: Moved to nat.
6750 * common/linux-osdata.c: Likewise.
6751 * common/linux-procfs.c: Likewise.
6752 * common/linux-ptrace.c: Likewise.
6753 * common/mips-linux-watch.c: Likewise.
6754 * nat/gdb_thread_db.h: Moved from common.
6755 * nat/glibc_thread_db.h: Likewise.
6756 * nat/i386-cpuid.h: Likewise.
6757 * nat/i386-gcc-cpuid.h: Likewise.
6758 * nat/linux-btrace.c: Likewise.
6759 * nat/linux-btrace.h: Likewise.
6760 * nat/linux-osdata.c: Likewise.
6761 * nat/linux-osdata.h: Likewise.
6762 * nat/linux-procfs.c: Likewise.
6763 * nat/linux-procfs.h: Likewise.
6764 * nat/linux-ptrace.c: Likewise.
6765 * nat/linux-ptrace.h: Likewise.
6766 * nat/mips-linux-watch.c: Likewise.
6767 * nat/mips-linux-watch.h: Likewise.
6768 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6769 (object file files): Reordered.
6770 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6771 of glibc_thread_db.h.
6773 2014-06-20 Gary Benson <gbenson@redhat.com>
6775 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6776 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6777 (i386_dr_low): Likewise.
6778 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6779 (i386_dr_low_set_addr): Likewise.
6780 (i386_dr_low_get_addr): Likewise.
6781 (i386_dr_low_can_set_control): Likewise.
6782 (i386_dr_low_set_control): Likewise.
6783 (i386_dr_low_get_control): Likewise.
6784 (i386_dr_low_get_status): Likewise.
6785 (i386_get_debug_register_length): Likewise.
6786 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6787 (i386_dr_low): Likewise.
6788 * nat/i386-dregs.c (i386-low.h): Remove include.
6789 (i386-nat.h): Likewise.
6790 (nat/i386-dregs.h): New include.
6791 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6792 (i386_dr_low_set_addr): Likewise.
6793 (i386_dr_low_get_addr): Likewise.
6794 (i386_dr_low_can_set_control): Likewise.
6795 (i386_dr_low_set_control): Likewise.
6796 (i386_dr_low_get_control): Likewise.
6797 (i386_dr_low_get_status): Likewise.
6798 (i386_get_debug_register_length): Likewise.
6799 (debug_hw_points): Likewise.
6801 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6803 * Makefile.in (SFILES): Add d-exp.y.
6804 (YYFILES): Add d-exp.c.
6805 (YYOBJ): Add d-exp.o.
6806 (local-maintainer-clean): Delete d-exp.c.
6807 * d-exp.y: New file.
6808 * d-lang.h (d_parse): New declaration.
6809 (d_error): New declaration.
6810 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6811 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6812 PREC_ORDER operators.
6813 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6815 2014-06-19 Yao Qi <yao@codesourcery.com>
6817 * gdbthread.h (any_running): Remove the declaration.
6818 * thread.c (any_running): Remove.
6820 2014-06-19 Yao Qi <yao@codesourcery.com>
6822 * gdbthread.h (struct thread_info) <state>: Change its type to
6823 'enum thread_state'. Update comments.
6825 2014-06-19 Pedro Alves <palves@redhat.com>
6827 * gdbthread.h (ALL_THREADS): Delete.
6828 (ALL_NON_EXITED_THREADS): New macro.
6829 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6830 instead of ALL_THREADS.
6831 * infrun.c (find_thread_needs_step_over)
6832 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6833 instead of ALL_THREADS.
6834 * record-btrace.c (record_btrace_open)
6835 (record_btrace_stop_recording, record_btrace_close)
6836 (record_btrace_is_replaying, record_btrace_resume)
6837 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6838 * remote.c (append_pending_thread_resumptions): Likewise.
6839 * thread.c (thread_apply_all_command): Likewise.
6841 2014-06-19 Gary Benson <gbenson@redhat.com>
6843 * i386-nat.c (i386_stopped_by_watchpoint):
6844 Use i386_dr_stopped_by_watchpoint.
6845 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6846 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6848 2014-06-19 Gary Benson <gbenson@redhat.com>
6850 * nat/i386-dregs.c: New file.
6851 * Makefile.in (i386-dregs.o): New rule.
6852 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6853 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6854 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6855 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6856 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6857 * config/i386/go32.mh (NATDEPFILES): Likewise.
6858 * config/i386/linux.mh (NATDEPFILES): Likewise.
6859 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6860 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6861 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6862 * i386-nat.h (debug_hw_points): New declaration.
6863 * i386-nat.c (breakpoint.h): Remove include.
6864 (command.h): Likewise.
6865 (target.h): Likewise.
6866 (gdb_assert.h): Likewise.
6867 (debug_hw_points): Made nonstatic.
6868 (debug_printf): Now in i386-dregs.c.
6869 (TARGET_HAS_DR_LEN_8): Likewise.
6870 (DR_CONTROL_SHIFT): Likewise.
6871 (DR_CONTROL_SIZE): Likewise.
6872 (DR_RW_EXECUTE): Likewise.
6873 (DR_RW_WRITE): Likewise.
6874 (DR_RW_READ): Likewise.
6875 (DR_RW_IORW): Likewise.
6876 (DR_LEN_1): Likewise.
6877 (DR_LEN_2): Likewise.
6878 (DR_LEN_4): Likewise.
6879 (DR_LEN_8): Likewise.
6880 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6881 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6882 (DR_ENABLE_SIZE): Likewise.
6883 (DR_LOCAL_SLOWDOWN): Likewise.
6884 (DR_GLOBAL_SLOWDOWN): Likewise.
6885 (DR_CONTROL_RESERVED): Likewise.
6886 (I386_DR_CONTROL_MASK): Likewise.
6887 (I386_DR_VACANT): Likewise.
6888 (I386_DR_LOCAL_ENABLE): Likewise.
6889 (I386_DR_GLOBAL_ENABLE): Likewise.
6890 (I386_DR_DISABLE): Likewise.
6891 (I386_DR_SET_RW_LEN): Likewise.
6892 (I386_DR_GET_RW_LEN): Likewise.
6893 (I386_DR_WATCH_HIT): Likewise.
6894 (i386_wp_op_t): Likewise.
6895 (i386_show_dr): Likewise.
6896 (i386_length_and_rw_bits): Likewise.
6897 (i386_insert_aligned_watchpoint): Likewise.
6898 (i386_remove_aligned_watchpoint): Likewise.
6899 (i386_handle_nonaligned_watchpoint): Likewise.
6900 (i386_update_inferior_debug_regs): Likewise.
6901 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6902 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6903 (i386_region_ok_for_watchpoint):
6904 Use i386_dr_region_ok_for_watchpoint.
6905 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6907 2014-06-19 Gary Benson <gbenson@redhat.com>
6909 * i386-nat.c (i386_insert_hw_breakpoint): Use
6910 i386_insert_watchpoint.
6911 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6913 2014-06-19 Gary Benson <gbenson@redhat.com>
6915 * i386-nat.c (i386_dr_show): Renamed to
6916 i386_show_dr and made static. All uses updated.
6917 (i386_dr_length_and_rw_bits): Renamed to
6918 i386_length_and_rw_bits and made static.
6920 (i386_dr_insert_aligned_watchpoint): Renamed to
6921 i386_insert_aligned_watchpoint and made static.
6923 (i386_dr_remove_aligned_watchpoint): Renamed to
6924 i386_remove_aligned_watchpoint and made static.
6926 (i386_dr_update_inferior_debug_regs): Renamed to
6927 i386_update_inferior_debug_regs and made static.
6929 * nat/i386-dregs.h (i386_dr_show): Removed.
6930 (i386_dr_length_and_rw_bits): Likewise.
6931 (i386_dr_insert_aligned_watchpoint): Likewise.
6932 (i386_dr_remove_aligned_watchpoint): Likewise.
6933 (i386_dr_update_inferior_debug_regs): Likewise.
6935 2014-06-19 Gary Benson <gbenson@redhat.com>
6937 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6938 * configure: Regenerate.
6939 * config.in: Likewise.
6940 * main.c (signal.h): New include.
6941 (setup_alternate_signal_stack): New function.
6942 (captured_main): Call the above.
6943 * cp-support.c (signal.h): New include.
6944 (catch_demangler_crashes): New flag.
6945 (SIGJMP_BUF): New define.
6946 (SIGSETJMP): Likewise.
6947 (SIGLONGJMP): Likewise.
6948 (gdb_demangle_jmp_buf): New static global.
6949 (gdb_demangle_attempt_core_dump): Likewise.
6950 (gdb_demangle_signal_handler): New function.
6951 (gdb_demangle): If catch_demangler_crashes is set, install the
6952 above signal handler before calling bfd_demangle, and restore
6953 the original signal handler afterwards. Display the offending
6954 symbol and call demangler_warning the first time a segmentation
6956 (_initialize_cp_support): New maint set/show command.
6958 2014-06-19 Gary Benson <gbenson@redhat.com>
6960 * utils.h (resource_limit_kind): New enum.
6961 (can_dump_core): New declaration.
6962 (warn_cant_dump_core): Likewise.
6963 (dump_core): Likewise.
6964 * utils.c (dump_core): Made nonstatic. Added new
6965 parameter "limit_kind".
6966 (can_dump_core): Made nonstatic. Moved printing code to...
6967 (warn_cant_dump_core): New function.
6968 (can_dump_core_warn): Likewise.
6969 (internal_vproblem): Replace calls to can_dump_core with
6970 calls to can_dump_core_warn. Supply new argument to each.
6972 2014-06-19 Gary Benson <gbenson@redhat.com>
6974 * utils.h (demangler_vwarning): New declaration.
6975 (demangler_warning): Likewise.
6976 * utils.c (struct internal_problem)
6977 <user_settable_should_quit>: New field.
6978 <user_settable_should_dump_core>: Likewise
6979 (internal_error_problem): Add values for above new fields.
6980 (internal_warning_problem): Likewise.
6981 (demangler_warning_problem): New static global.
6982 (demangler_vwarning): New function.
6983 (demangler_warning): Likewise.
6984 (add_internal_problem_command): Selectively add commands.
6985 (_initialize_utils): New internal problem command.
6986 * maint.c (maintenance_demangler_warning): New function.
6987 (_initialize_maint_cmds): New command.
6989 2014-06-18 Tom Tromey <tromey@redhat.com>
6991 * f-valprint.c (info_common_command_for_block): Update.
6992 * symtab.h (struct general_symbol_info) <common_block>: Now
6995 2014-06-18 Tom Tromey <tromey@redhat.com>
6997 * symtab.h (struct symtab) <blockvector>: Now const.
6998 * ada-lang.c (ada_add_global_exceptions): Update.
6999 * buildsym.c (augment_type_symtab): Update.
7000 * dwarf2read.c (dw2_lookup_symbol): Update.
7001 * jit.c (finalize_symtab): Update.
7002 * jv-lang.c (add_class_symtab_symbol): Update.
7003 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7005 * objfiles.c (objfile_relocate1): Update.
7006 * psymtab.c (lookup_symbol_aux_psymtabs)
7007 (maintenance_check_psymtabs): Update.
7008 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7010 * spu-tdep.c (spu_catch_start): Update.
7011 * symmisc.c (dump_symtab_1): Update.
7012 * symtab.c (lookup_global_symbol_from_objfile)
7013 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7014 (basic_lookup_transparent_type_quick)
7015 (basic_lookup_transparent_type, find_pc_sect_symtab)
7016 (find_pc_sect_line, search_symbols): Update.
7017 * block.c (find_block_in_blockvector): Make "bl" const.
7018 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7020 (blockvector_contains_pc): Make "bv" const.
7021 (block_for_pc_sect): Update.
7022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7023 (blockvector_contains_pc): Update.
7024 * breakpoint.c (resolve_sal_pc): Update.
7025 * inline-frame.c (block_starting_point_at): Update.
7027 2014-06-18 Tom Tromey <tromey@redhat.com>
7029 * completer.c (complete_line): Make "line_buffer" const.
7030 * completer.h (complete_line): Update.
7032 2014-06-18 Tom Tromey <tromey@redhat.com>
7034 * symtab.c (add_macro_name): Remove unneeded cast.
7036 2014-06-18 Tom Tromey <tromey@redhat.com>
7038 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7039 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7041 2014-06-18 Tom Tromey <tromey@redhat.com>
7043 * probe.c (info_probes_for_ops): Make "arg" const.
7044 * probe.h (info_probes_for_ops): Update.
7046 2014-06-18 Tom Tromey <tromey@redhat.com>
7048 * varobj.c (varobj_create): Update.
7049 * valops.c (value_of_this): Update.
7050 * tracepoint.c (add_local_symbols, scope_info): Update.
7051 * symtab.h (struct general_symbol_info) <block>: Now const.
7052 * symtab.c (skip_prologue_sal)
7053 (default_make_symbol_completion_list_break_on)
7054 (skip_prologue_using_sal): Update.
7055 * stack.h (iterate_over_block_locals)
7056 (iterate_over_block_local_vars): Update.
7057 * stack.c (print_frame_args): Update.
7058 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7060 (get_selected_block): Make return type const.
7061 * python/py-frame.c (frapy_block): Update.
7062 * python/py-block.c (gdbpy_block_for_pc): Update.
7063 * p-exp.y (%union) <bval>: Now const.
7064 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7065 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7066 * m2-exp.y (%union) <bval>: Now const.
7067 * linespec.c (get_current_search_block): Make return type const.
7068 (create_sals_line_offset, find_label_symbols): Update.
7069 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7071 (block_starting_point_at): Make "block" const.
7072 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7073 (check_exception_resume): Update.
7074 * guile/scm-frame.c (gdbscm_frame_block): Update.
7075 * guile/scm-block.c (gdbscm_lookup_block): Update.
7076 * frame.h (get_frame_block): Update.
7077 (get_selected_block): Make return type const.
7078 * frame.c (frame_id_inner): Update.
7079 * f-valprint.c (info_common_command_for_block)
7080 (info_common_command): Update.
7081 * dwarf2loc.c (dwarf2_find_location_expression)
7082 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7083 (locexpr_describe_location_piece): Update.
7084 * c-exp.y (%union) <bval>: Now const.
7085 * breakpoint.c (resolve_sal_pc): Update.
7086 * blockframe.c (get_frame_block):Make return type const.
7087 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7088 (block_innermost_frame): Update.
7089 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7090 (block_for_pc, block_for_pc_sect): Update.
7091 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7093 (block_for_pc_sect, block_for_pc): Make return type const.
7094 * ax-gdb.c (gen_expr): Update.
7095 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7096 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7097 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7098 (ada_read_var_value): Update.
7099 * ada-exp.y (struct name_info) <block>: Now const.
7101 (block_lookup): Constify.
7103 2014-06-18 Gary Benson <gbenson@redhat.com>
7105 * nat/i386-dregs.h: New file.
7106 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7107 * i386-nat.h (i386-dregs.h): New include.
7108 (DR_FIRSTADDR): Now in i386-dregs.h.
7109 (DR_LASTADDR): Likewise.
7110 (DR_NADDR): Likewise.
7111 (DR_STATUS): Likewise.
7112 (DR_CONTROL): Likewise.
7113 (i386_debug_reg_state): Likewise.
7114 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7116 2014-06-18 Don Breazeal <donb@codesourcery.com>
7118 * breakpoint.c (set_longjmp_breakpoint): Call
7119 momentary_breakpoint_from_master with additional argument.
7120 (set_longjmp_breakpoint_for_call_dummy): Call
7121 momentary_breakpoint_from_master with additional argument.
7122 (set_std_terminate_breakpoint): Call
7123 momentary_breakpoint_from_master with additional argument.
7124 (momentary_breakpoint_from_master): Add argument to function
7125 definition and use it to initialize structure member flag.
7126 (clone_momentary_breakpoint): Call
7127 momentary_breakpoint_from_master with additional argument.
7128 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7129 member flags set in momentary_breakpoint_from_master.
7131 2014-06-18 Gary Benson <gbenson@redhat.com>
7133 * i386-nat.c (i386_show_dr): Renamed to
7134 i386_dr_show and made nonstatic. All uses updated.
7135 (i386_length_and_rw_bits): Renamed to
7136 i386_dr_length_and_rw_bits and made nonstatic.
7138 (i386_insert_aligned_watchpoint): Renamed to
7139 i386_dr_insert_aligned_watchpoint and made nonstatic.
7141 (i386_remove_aligned_watchpoint): Renamed to
7142 i386_dr_remove_aligned_watchpoint and made nonstatic.
7144 (i386_update_inferior_debug_regs): Renamed to
7145 i386_dr_update_inferior_debug_regs and made nonstatic.
7148 2014-06-18 Gary Benson <gbenson@redhat.com>
7150 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7151 (i386_dr_low_can_set_control): Likewise.
7152 (i386_dr_low_set_addr): Likewise.
7153 (i386_dr_low_set_control): Likewise.
7154 (i386_dr_low_get_addr): Likewise.
7155 (i386_dr_low_get_status): Likewise.
7156 (i386_dr_low_get_control): Likewise.
7157 (i386_insert_aligned_watchpoint): Use new macros.
7158 (i386_update_inferior_debug_regs): Likewise.
7159 (i386_stopped_data_address): Likewise.
7161 2014-06-18 Gary Benson <gbenson@redhat.com>
7163 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7164 New parameter. All uses updated.
7166 2014-06-18 Gary Benson <gbenson@redhat.com>
7168 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7171 2014-06-18 Gary Benson <gbenson@redhat.com>
7173 * i386-nat.c (debug_printf): New macro.
7174 (i386_get_debug_register_length): Likewise.
7175 (TARGET_HAS_DR_LEN_8): Use above macro.
7176 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7177 and printf_unfiltered. Use phex to format values.
7179 2014-06-18 Gary Benson <gbenson@redhat.com>
7181 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7184 2014-06-18 Gary Benson <gbenson@redhat.com>
7186 * i386-nat.c: Comment changes.
7188 2014-06-18 Gary Benson <gbenson@redhat.com>
7190 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7192 2014-06-18 Gary Benson <gbenson@redhat.com>
7194 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7195 (i386_insert_aligned_watchpoint): Likewise.
7196 (i386_remove_aligned_watchpoint): Likewise.
7197 (i386_handle_nonaligned_watchpoint): Likewise.
7199 2014-06-18 Gary Benson <gbenson@redhat.com>
7201 * i386-nat.c: Whitespace changes.
7203 2014-06-17 Samuel Bronson <naesten@gmail.com>
7205 * MAINTAINERS: Update Roland McGrath's email address.
7206 Thanks to Sergio Durigan Junior for pointing out that he left
7207 Red Hat a while ago, and giving me a current address.
7209 2014-06-17 Tom Tromey <tromey@redhat.com>
7211 * utils.h (savestring): Remove declaration.
7213 2014-06-17 Tom Tromey <tromey@redhat.com>
7215 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7217 2014-06-16 Keith Seitz <keiths@redhat.com>
7220 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7221 to update the varobj if inferior_ptid is null_ptid.
7223 2014-06-16 Tom Tromey <tromey@redhat.com>
7225 * target.h (struct target_ops) <to_info_proc>: Make parameter
7227 (target_info_proc): Update.
7228 * target.c (target_info_proc): Make "args" const.
7229 * procfs.c (procfs_info_proc): Update.
7230 * linux-tdep.c (linux_info_proc): Update.
7231 (linux_core_info_proc_mappings): Make "args" const.
7232 (linux_core_info_proc): Update.
7233 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7234 * gdbarch.c: Rebuild.
7235 * gdbarch.h: Rebuild.
7236 * corelow.c (core_info_proc): Update.
7238 2014-06-16 Tom Tromey <tromey@redhat.com>
7240 * target.h (struct target_ops) <to_disconnect>: Make parameter
7242 (target_disconnect): Update.
7243 * target.c (target_disconnect): Make "args" const.
7244 * target-delegates.c: Rebuild.
7245 * remote.c (remote_disconnect): Update.
7246 * record.h (record_disconnect): Update.
7247 * record.c (record_disconnect): Update.
7248 * inf-child.c (inf_child_disconnect): Update.
7250 2014-06-16 Tom Tromey <tromey@redhat.com>
7252 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7253 * target.c (debug_to_rcmd, default_rcmd): Update.
7254 * target-delegates.c: Rebuild.
7255 * remote.c (remote_rcmd): Update.
7256 * monitor.c (monitor_rcmd): Update.
7258 2014-06-16 Pedro Alves <palves@redhat.com>
7260 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7261 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7262 have OBJF_SHARED set.
7263 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7264 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7265 instead of OBJF_USERLOADED.
7266 * objfiles.h (OBJF_SHARED): Update comment.
7267 (userloaded_objfile_contains_address_p): Rename to ...
7268 (shared_objfile_contains_address_p): ... this, and update
7270 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7272 (remove_symbol_file_command): Skip objfiles that don't have
7275 2014-06-16 Tom Tromey <tromey@redhat.com>
7277 * minsyms.h (prim_record_minimal_symbol)
7278 (prim_record_minimal_symbol_and_info): Update comments.
7280 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7282 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7283 or --without-guile, according to how GDB was built.
7285 2014-06-13 Tom Tromey <tromey@redhat.com>
7287 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7289 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7291 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7293 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7294 help_list.Pass all_commands, not -1, to help_list.
7295 * cli/cli-dump.c (dump_command, append_command)
7296 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7297 (binary_dump_command, binary_append_command): Pass all_commands,
7298 not -1, to help_list.
7299 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7301 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7303 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7305 * top.c (set_history): Pass all_commands, not -1, to help_list.
7306 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7307 all_commands, not -1, to help_list.
7308 * symfile.c (overlay_command): Pass all_commands, not -1, to
7310 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7312 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7314 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7316 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7317 not -1, to help_list.
7318 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7319 not -1, to help_list.
7320 * maint.c (maintenance_command, maintenance_info_command)
7321 (maintenance_print_command, maintenance_set_cmd): Pass
7322 all_commands, not -1, to help_list.
7323 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7325 * language.c (set_check): Pass all_commands, not -1, to help_list.
7326 * infcmd.c (unset_command): Pass all_commands, not -1, to
7328 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7330 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7332 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7334 * breakpoint.c (save_command): Pass all_commands, not -1, to
7336 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7337 all_commands, not -1, to help_list.
7339 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7341 * regcache.c (struct register_to_invalidate): New structure.
7342 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7344 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7346 2014-06-12 Yao Qi <yao@codesourcery.com>
7348 * varobj.c (varobj_get_num_children): Call
7349 varobj_is_dynamic_p.
7350 (varobj_list_children): Likewise.
7351 (varobj_update): Likewise. Update comments.
7353 2014-06-12 Yao Qi <yao@codesourcery.com>
7355 * varobj.c (varobj_pretty_printed_p): Rename to ...
7356 (varobj_is_dynamic_p): ... this. New function.
7357 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7358 (varobj_is_dynamic_p): Declare.
7359 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7360 (mi_print_value_p, varobj_update_one): Likewise.
7362 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7363 Yao Qi <yao@codesourcery.com>
7365 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7366 (varobj_get_iterator): Wrap up code for pretty-printer by
7367 "#if HAVE_PYTHON" and "#endif".
7368 (update_dynamic_varobj_children): Likewise.
7370 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7371 Yao Qi <yao@codesourcery.com>
7373 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7374 gdb_python_initialized is false. Move some code from varobj.c.
7375 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7376 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7377 (struct varobj_item): Moved to varobj-iter.h".
7378 (varobj_clear_saved_item): New function.
7379 (update_dynamic_varobj_children): Move python-related code to
7381 (free_variable): Call varobj_clear_saved_item and
7384 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7385 Yao Qi <yao@codesourcery.com>
7387 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7388 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7389 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7390 (py-varobj.o): New rule.
7391 * python/py-varobj.c: New file.
7392 * python/python-internal.h (py_varobj_get_iterator): Declare.
7393 * varobj-iter.h: New file.
7394 * varobj.c: Include "varobj-iter.h"
7395 (struct varobj) <child_iter>: Change its type from "PyObject *"
7396 to "struct varobj_iter *".
7397 <saved_item>: Likewise.
7398 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7399 [HAVE_PYTHON] (varobj_get_iterator): New function.
7400 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7401 python-specific code to python/py-varobj.c.
7402 (install_visualizer): Call varobj_iter_delete instead of
7404 * varobj.h (varobj_ensure_python_env): Declare.
7406 2014-06-12 Yao Qi <yao@codesourcery.com>
7408 * varobj.c (struct varobj_item): New structure.
7409 (create_child_with_value): Update declaration.
7410 (varobj_add_child): Replace arguments 'name' and 'value' with
7411 'item'. All callers updated.
7412 (install_dynamic_child): Likewise.
7413 (update_dynamic_varobj_children): Likewise.
7414 (varobj_add_child): Likewise.
7415 (create_child_with_value): Likewise.
7417 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7419 * NEWS: Create a new section for the next release branch.
7420 Rename the section of the current branch, now that it has
7423 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7425 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7426 * version.in: Bump version to 7.8.50.DATE-cvs.
7428 2014-06-11 Pedro Alves <palves@redhat.com>
7431 * ser-mingw.c (net_windows_socket_check_pending): New function.
7432 (net_windows_select_thread): Ignore spurious wakeups. Use
7433 net_windows_socket_check_pending.
7434 (net_windows_wait_handle): Check for pending events with
7435 ioctlsocket, through net_windows_socket_check_pending, instead of
7436 checking the socket's event.
7438 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7440 * python/python-internal.h (gdb_PyObject_GetAttrString)
7441 (gdb_PyObject_HasAttrString): New inline function definitions.
7442 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7443 char * of the second argument to PyObject_GetAttrString.
7445 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7447 * serial.c (serial_write): Fix index of character to be printed
7448 in call to serial_logchar when serial debug traces are enabled.
7450 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7452 * gdbtypes (resolve_dynamic_range): Add function description.
7454 2014-06-09 Pedro Alves <palves@redhat.com>
7456 * linux-nat.c (linux_child_follow_fork): Initialize status with
7457 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7458 inner block. Only pass the signal to PTRACE_DETACH if in pass
7461 2014-06-09 Gary Benson <gbenson@redhat.com>
7463 * common/signals.c (gdb_signal_from_host): Reorder to separate
7464 the always-available ANSI-standard signals from the signals that
7466 (do_gdb_signal_to_host): Likewise.
7467 * proc-events.c (signal_table): Likewise.
7469 2014-06-08 Hui Zhu <hui@codesourcery.com>
7471 * common/linux-ptrace.c (linux_disable_event_reporting): New
7473 * common/linux-ptrace.h (linux_disable_event_reporting): New
7475 * linux-nat.c (linux_child_follow_fork): Do a single step before
7478 2014-06-07 Keith Seitz <keiths@redhat.com>
7482 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7483 from symbol_matches_domain in symtab.c. All local callers
7484 of symbol_matches_domain updated.
7485 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7486 search STRUCT_DOMAIN.
7487 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7488 independently. standard_lookup will do that automatically.
7489 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7490 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7491 (cp_lookup_symbol_in_namespace): Likewise.
7492 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7493 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7494 may return a STRUCT_DOMAIN match.
7495 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7496 * cp-support.c: Include language.h.
7497 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7499 * psymtab.c (match_partial_symbol): Compare the requested
7500 domain with the symbol's domain directly.
7501 (lookup_partial_symbol): Likewise.
7502 * symtab.c (lookup_symbol_in_language): Explain when/why
7503 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7504 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7505 appropriate languages.
7506 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7507 and moved to ada-lang.c
7508 (lookup_block_symbol): Explain that this function only returns
7509 symbol matching the requested DOMAIN.
7510 Compare the requested domain with the symbol's domain directly.
7511 (iterate_over_symbols): Compare the requested domain with the
7512 symbol's domain directly.
7513 * symtab.h (symbol_matches_domain): Remove.
7515 2014-06-06 Doug Evans <xdje42@gmail.com>
7517 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7518 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7519 (gdbscm_guile_version_is_at_least): Declare.
7520 (gdbscm_scm_string_to_int): Declare.
7521 * guile/guile.c (gdbscm_guile_major_version): New global.
7522 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7523 (guile_datadir): New static global.
7524 (gdbscm_guile_data_directory): New function.
7525 (initialize_scheme_side): Update.
7526 (misc_guile_functions): Add guile-data-directory.
7527 (initialize_gdb_module): Fetch guile version number.
7528 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7529 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7530 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7531 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7533 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7534 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7535 * guile/scm-value.c (gdbscm_value_to_string): Only call
7536 scm_port_conversion_strategy if Guile version >= 2.0.6.
7538 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7540 * main.c (print_gdb_help): Add -q and --silent.
7542 2014-06-06 Gary Benson <gbenson@redhat.com>
7544 * common/signals.c: Remove preprocessor conditionals for
7545 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7546 SIGSEGV and SIGTERM.
7547 * proc-events.c: Likewise.
7549 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7551 * symfile.c (symfile_free_objfile): Remove restriction to
7553 * symfile-mem.c (symbol_file_add_from_memory): Call
7554 add_target_sections_of_objfile.
7556 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7558 * guile/scm-value.c (gdbscm_history_append_x): Use
7559 'vlscm_get_value_smob_arg_unsafe' instead of
7560 'vlscm_scm_to_value'.
7562 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7565 * utils.c (printchar): Don't escape at all if quoter is NUL.
7566 Update function documentation to clarify effect of parameter
7568 * remote.c (escape_buffer): Pass '\\' as the quoter to
7569 fputstrn_unfiltered.
7570 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7571 generate the output.
7572 (mi_solib_unloaded): Same.
7574 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7576 * development.sh: Delete.
7577 * Makefile.in (config.status): Adjust dependency on development.sh.
7578 * configure.ac: Adjust development.sh source call.
7579 * configure: Regenerate.
7581 2014-06-04 Doug Evans <xdje42@gmail.com>
7583 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7584 is_scheme_bkpt, spec.
7585 (bpscm_make_breakpoint_smob): Initialize new members.
7586 (gdbscm_create_breakpoint_x): Split into two ...
7587 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7588 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7589 (scheme_function breakpoint_functions): Update.
7590 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7591 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7592 register-breakpoint!.
7594 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7597 * mem-break.c (z_type_supported): Return zero if
7598 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7600 2014-06-04 Tom Tromey <tromey@redhat.com>
7602 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7603 value_from_contents_and_address_unresolved.
7604 (ada_template_to_fixed_record_type_1): Likewise.
7605 (ada_which_variant_applies): Likewise.
7606 * value.h (value_from_contents_and_address_unresolved): Declare.
7607 * value.c (value_from_contents_and_address_unresolved): New
7609 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7610 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7611 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7613 2014-06-04 Tom Tromey <tromey@redhat.com>
7615 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7617 2014-06-04 Tom Tromey <tromey@redhat.com>
7619 * procfs.c (procfs_attach): Make "args" const.
7620 * windows-nat.c (windows_attach): Make "args" const.
7621 * nto-procfs.c (procfs_attach): Make "args" const.
7622 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7623 * go32-nat.c (go32_attach): Make "args" const.
7624 * gnu-nat.c (gnu_attach): Make "args" const.
7625 * darwin-nat.c (darwin_attach): Make "args" const.
7626 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7627 * linux-nat.c (linux_nat_attach): Make "args" const.
7628 * remote.c (extended_remote_attach_1, extended_remote_attach):
7630 * target.h (struct target_ops) <to_attach>: Make "args" const.
7631 (find_default_attach): Likewise.
7632 * utils.c (parse_pid_to_attach): Make "args" const.
7633 * utils.h (parse_pid_to_attach): Update.
7635 2014-06-04 Tom Tromey <tromey@redhat.com>
7637 * target-delegates.c: Rebuild.
7638 * target.c (default_thread_address_space): New function.
7639 (target_thread_address_space): Simplify.
7640 * target.h (struct target_ops) <to_thread_address_space>: Add
7641 TARGET_DEFAULT_FUNC.
7643 2014-06-04 Doug Evans <xdje42@gmail.com>
7645 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7647 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7649 * record-btrace.c: Include event-loop.h and inf-loop.h.
7650 (record_btrace_resume_exec_dir)
7651 (record_btrace_async_inferior_event_handler)
7652 (record_btrace_handle_async_inferior_event): New.
7653 (record_btrace_open): Create async event handler.
7654 (record_btrace_close): Delete async event handler.
7655 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7656 Mark async event handler.
7657 (record_btrace_execution_direction): New.
7658 (init_record_btrace_ops): Initialize to_execution_direction.
7660 2014-06-03 Doug Evans <xdje42@gmail.com>
7662 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7663 (gdbscm_make_parameter): Ditto.
7665 2014-06-03 Doug Evans <dje@google.com>
7667 * exec.c (exec_close_1): Call clear_section_table instead of
7668 resize_section_table.
7669 (clear_section_table): New function.
7670 (resize_section_table): Make static. Rename arg num_added to
7672 * exec.h (clear_section_table): Declare.
7673 (resize_section_table): Delete.
7674 * progspace.c (release_program_space): Call clear_section_table
7675 instead of resize_section_table.
7677 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7679 * NEWS (Python Scripting): Add entry about the new xmethods
7682 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7684 * python/py-xmethods.c: New file.
7685 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7686 (objfpy_dealloc): XDECREF on the new xmethods field.
7687 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7689 (objfpy_get_xmethods): New function.
7690 (objfile_getset): New entry 'xmethods'.
7691 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7692 (pspy_dealloc): XDECREF on the new xmethods field.
7693 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7695 (pspy_get_xmethods): New function.
7696 (pspace_getset): New entry 'xmethods'.
7697 * python/python-internal.h: Add declarations for new functions.
7698 * python/python.c (_initialize_python): Invoke
7699 gdbpy_initialize_xmethods.
7700 * python/lib/gdb/__init__.py (xmethods): New
7702 * python/lib/gdb/xmethod.py: New file.
7703 * python/lib/gdb/command/xmethods.py: New file.
7705 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7707 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7708 best match method returned by find_overload_match is an xmethod.
7709 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7710 the best matching operator returned by find_overload_match is an
7712 * valops.c: #include "extension.h".
7713 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7714 Return void. The list of matching source methods is returned in
7715 "fn_list" and a vector of matching debug method workers is
7716 returned in "xm_worker_vec". Update all callers.
7717 (value_find_oload_method_list): Likewise.
7718 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7719 non-NULL, then the index of the best matching method in this
7720 vector is returned. Update all callers.
7721 (find_overload_match): Include xmethods while performing overload
7724 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7726 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7727 * extension-priv.h (struct extension_language_ops): Add the
7729 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7730 get_matching_xmethod_workers, get_xmethod_argtypes,
7731 invoke_xmethod, free_xmethod_worker,
7732 free_xmethod_worker_vec): New functions.
7733 * extension.h: #include "common/vec.h".
7734 New function declarations.
7735 (struct xmethod_worker): New struct.
7736 (VEC (xmethod_worker_ptr)): New vector type.
7737 (xmethod_worker_ptr): New typedef.
7738 (xmethod_worker_vec): Likewise.
7739 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7741 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7742 (struct builtin_type): New field "xmethod".
7743 * valarith.c (value_ptradd): Assert that the value argument is not
7745 * valops.c (value_must_coerce_to_target): Return 0 for
7746 lval_xcallable values.
7747 * value.c (struct value): New field XM_WORKER in the field
7749 (value_address, value_raw_address): Return 0 for lval_xcallable
7751 (set_value_address): Assert that the value is not an
7753 (value_free): Free the associated xmethod worker when freeing
7754 lval_xcallable values.
7755 (set_value_component_location): Assert that the WHOLE value is not
7757 (value_of_xmethod, call_xmethod): New functions.
7758 * value.h: Declare "struct xmethod_worker".
7759 Declare new functions value_of_xmethod, call_xmethod.
7761 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7762 Pedro Alves <palves@redhat.com>
7764 PR breakpoints/17000
7765 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7766 New function, extracted from software_breakpoint_inserted_here_p.
7767 (software_breakpoint_inserted_here_p): Replace factored out code
7768 by call to find_non_raw_software_breakpoint_inserted_here.
7769 (bp_target_info_copy_insertion_state): New function.
7770 (bkpt_insert_location): Handle the case of a single-step
7771 breakpoint already inserted at the same address.
7772 (bkpt_remove_location): Handle the case of a single-step
7773 breakpoint still inserted at the same address.
7774 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7775 breakpoint already inserted at the same address.
7776 (deprecated_remove_raw_breakpoint): Handle the case of a
7777 non-raw breakpoint still inserted at the same address.
7778 (find_single_step_breakpoint): New function, extracted from
7779 single_step_breakpoint_inserted_here_p.
7780 (find_single_step_breakpoint): New function,
7781 factored out from single_step_breakpoint_inserted_here_p.
7782 (single_step_breakpoint_inserted_here_p): Reimplement.
7784 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7786 Pushed by Joel Brobecker <brobecker@adacore.com>
7787 * source.c (show_substitute_path_command): Fix display of matching
7790 2014-06-03 Gary Benson <gbenson@redhat.com>
7792 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7794 2014-06-02 Doug Evans <xdje42@gmail.com>
7796 Add parameter support for Guile.
7797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7798 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7799 (scm-param.o): New rule.
7800 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7801 (gdbscm_misc_error): Declare.
7802 (gdbscm_canonicalize_command_name): Declare.
7803 (gdbscm_scm_to_host_string): Declare.
7804 (gdbscm_scm_from_host_string): Declare.
7805 (gdbscm_initialize_parameters): Declare.
7806 * guile/guile.c (initialize_gdb_module): Call
7807 gdbscm_initialize_parameters.
7808 * guile/lib/gdb.scm: Export parameter symbols.
7809 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7810 cmdscm_canonicalize_name and made public. All callers updated.
7811 * guile/scm-exception.c (gdbscm_misc_error): New function.
7812 * guile/scm-param.c: New file.
7813 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7814 (gdbscm_scm_to_host_string): New function.
7815 (gdbscm_scm_from_host_string): New function.
7816 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7818 2014-06-02 Doug Evans <xdje42@gmail.com>
7820 Add command support for Guile.
7821 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7822 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7823 (scm-cmd.o): New rule.
7824 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7825 (gdbscm_user_error_p): Declare.
7826 (gdbscm_parse_command_name): Declare.
7827 (gdbscm_valid_command_class_p): Declare.
7828 (gdbscm_initialize_commands): Declare.
7829 * guile/guile.c (initialize_gdb_module): Call
7830 gdbscm_initialize_commands.
7831 * guile/lib/gdb.scm: Export command symbols.
7832 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7833 (throw-user-error): New function.
7834 * guile/scm-cmd.c: New file.
7835 * guile/scm-exception.c (user_error_symbol): New static global.
7836 (gdbscm_user_error_p): New function.
7837 (gdbscm_initialize_exceptions): Set user_error_symbol.
7838 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7840 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7842 * top.c (command_loop): Handle comments here...
7843 (command_line_input): ... not here.
7845 2014-06-02 Doug Evans <xdje42@gmail.com>
7847 Add progspace support for Guile.
7848 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7849 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7850 (scm-progspace.o): New rule.
7851 * guile/guile-internal.h (pspace_smob): New typedef.
7852 (psscm_pspace_smob_pretty_printers): Declare.
7853 (psscm_pspace_smob_from_pspace): Declare.
7854 (psscm_scm_from_pspace): Declare.
7855 * guile/guile.c (initialize_gdb_module): Call
7856 gdbscm_initialize_pspaces.
7857 * guile/lib/gdb.scm: Export progspace symbols.
7858 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7860 (append-pretty-printer!): Ditto.
7861 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7863 * guile/scm-progspace.c: New file.
7865 2014-06-03 Alan Modra <amodra@gmail.com>
7867 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7868 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7870 2014-06-02 Doug Evans <dje@google.com>
7872 Add support for skeletonless type units.
7873 * dwarf2read.c (struct dwarf2_per_objfile): New member
7874 n_allocated_type_units.
7875 (struct dwarf2_per_objfile) <tu_stats>: New member
7876 nr_all_type_units_reallocs.
7877 (create_signatured_type_table_from_index): Initialize
7878 n_allocated_type_units
7879 (create_all_type_units): Ditto.
7880 (add_type_unit): Move up in file. New arg slot.
7881 All callers updated. Increase space for all_type_units more
7883 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7884 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7885 (lookup_dwp_signatured_type): Ditto.
7886 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7887 All callers updated.
7888 (build_type_psymtabs_1): Leave type_unit_groups as
7889 NULL if no TUs present.
7890 (print_tu_stats): New function.
7891 (process_skeletonless_type_unit): New function.
7892 (process_dwo_file_for_skeletonless_type_units): New
7894 (process_skeletonless_type_units): New function.
7895 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7896 Call print tu_stats if debugging enabled.
7898 2014-06-02 Pedro Alves <palves@redhat.com>
7900 * breakpoint.c (build_target_command_list): Don't build a command
7901 list if we have any duplicate location that isn't a dprintf.
7903 2014-06-02 Pedro Alves <palves@redhat.com>
7905 * breakpoint.c (dprintf_breakpoint_hit): New function.
7906 (initialize_breakpoint_ops): Install it as dprintf's
7907 breakpoint_hit method.
7909 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7911 * source.c (substitute_path_rule_matches): Simplify using
7912 filename_ncmp instead of FILENAME_CMP.
7914 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7916 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7918 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7920 * configure.ac: When Guile is available, check for the
7921 availability of 'scm_new_smob'.
7922 * configure, config.h.in: Regenerate.
7923 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7926 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7928 * frame.c (struct frame_info): Add stop_string field.
7929 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7930 (get_prev_frame_always): Old content moved into
7931 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7932 TRY_CATCH, handle MEMORY_ERROR exceptions.
7933 (frame_stop_reason_string): New function definition.
7934 * frame.h (unwind_stop_reason_to_string): Extend comment to
7935 mention frame_stop_reason_string.
7936 (frame_stop_reason_string): New function declaration.
7937 * stack.c (frame_info): Switch to frame_stop_reason_string.
7938 (backtrace_command_1): Switch to frame_stop_reason_string.
7939 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7940 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7941 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7943 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7945 * frame.c (frame_stop_reason_string): Rename to ...
7946 (unwind_stop_reason_to_string): this.
7947 * frame.h (frame_stop_reason_string): Rename to ...
7948 (unwind_stop_reason_to_string): this.
7949 * stack.c (frame_info): Update call to frame_stop_reason_string.
7950 (backtrace_command_1): Likewise.
7951 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7952 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7954 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7956 * frame.c (remove_prev_frame): New function.
7957 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7960 2014-05-29 Pedro Alves <palves@redhat.com>
7962 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7963 and make it const. When a single-step decays to a continue,
7964 clear 'step', not 'hw_step'. Pass whether the caller wanted
7965 to step to user_visible_resume_ptid, not what we ask the
7968 2014-05-29 Pedro Alves <palves@redhat.com>
7970 * infrun.c (process_event_stop_test, handle_step_into_function)
7971 (handle_step_into_function_backward): Adjust.
7972 Don't set the even thread's stop_step and call stop_waiting before
7973 calling end_stepping_range. Instead do that ...
7974 (end_stepping_range): ... here. Take an ecs pointer parameter.
7976 2014-05-29 Pedro Alves <palves@redhat.com>
7978 * infrun.c (stop_stepping): Rename to ...
7979 (stop_waiting): ... this.
7980 (proceed): Update comment.
7981 (process_event_stop_test, handle_inferior_event)
7982 (handle_signal_stop, handle_step_into_function)
7983 (handle_step_into_function_backward): Update.
7985 2014-05-29 Pedro Alves <palves@redhat.com>
7987 * infcall.c (run_inferior_call): Don't check whether the current
7988 thread is running after the proceed call.
7990 2014-05-29 Pedro Alves <palves@redhat.com>
7991 Tom Tromey <tromey@redhat.com>
7993 * NEWS: Mention "maint set target-async", "set mi-async", and that
7994 background execution commands are now always available.
7995 * target.h (target_async_permitted): Update comment.
7996 * target.c (target_async_permitted, target_async_permitted_1):
7998 (set_target_async_command): Rename to ...
7999 (maint_set_target_async_command): ... this.
8000 (show_target_async_command): Rename to ...
8001 (maint_show_target_async_command): ... this.
8002 (_initialize_target): Adjust.
8003 * infcmd.c (prepare_execution_command): Make extern.
8004 * inferior.h (prepare_execution_command): Declare.
8005 * infrun.c (set_observer_mode): Leave target async alone.
8006 * mi/mi-interp.c (mi_interpreter_init): Install
8007 mi_on_sync_execution_done as sync_execution_done observer.
8008 (mi_on_sync_execution_done): New function.
8009 (mi_execute_command_input_handler): Don't print the prompt if we
8010 just started a synchronous command with an async target.
8011 (mi_on_resume): Check sync_execution before printing prompt.
8012 * mi/mi-main.h (mi_async_p): Declare.
8013 * mi/mi-main.c: Include gdbcmd.h.
8014 (mi_async_p): New function.
8015 (mi_async, mi_async_1): New globals.
8016 (set_mi_async_command, show_mi_async_command, mi_async): New
8018 (exec_continue): Call prepare_execution_command.
8019 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8020 (mi_execute_async_cli_command): Use mi_async_p.
8021 (_initialize_mi_main): Install "set mi-async". Make
8022 "target-async" a deprecated alias.
8024 2014-05-29 Pedro Alves <palves@redhat.com>
8026 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8027 (_initialize_cli_interp): Adjust.
8028 * event-loop.c: Include "observer.h".
8029 (start_event_loop): Notify 'command_error' observers instead of
8030 calling display_gdb_prompt. Remove FIXME comment.
8031 * event-top.c (display_gdb_prompt): Remove call into the
8033 * inf-loop.c: Include "observer.h".
8034 (inferior_event_handler): Notify 'command_error' observers instead
8035 of calling display_gdb_prompt.
8036 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8037 observers instead of calling display_gdb_prompt.
8038 * interps.c (interp_set): Don't call display_gdb_prompt.
8039 (current_interp_display_prompt_p): Delete.
8040 * interps.h (interp_prompt_p): Delete declaration.
8041 (interp_prompt_p_ftype): Delete.
8042 (struct interp_procs) <prompt_proc_p>: Delete field.
8043 (current_interp_display_prompt_p): Delete declaration.
8044 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8045 (_initialize_mi_interp): Adjust.
8046 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8047 'command_error' observers.
8048 (tui_on_sync_execution_done, tui_on_command_error): New
8050 (tui_display_prompt_p): Delete.
8051 (_initialize_tui_interp): Adjust.
8053 2014-05-29 Pedro Alves <palves@redhat.com>
8056 * cli/cli-interp.c: Include infrun.h and observer.h.
8057 (cli_uiout, cli_interp): New globals.
8058 (cli_on_signal_received, cli_on_end_stepping_range)
8059 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8061 (cli_interpreter_init): Install them as 'end_stepping_range',
8062 'signal_received' 'signal_exited', 'exited' and 'no_history'
8064 (_initialize_cli_interp): Remove cli_interp local.
8065 * infrun.c (handle_inferior_event): Call the several stop reason
8066 observers instead of printing the stop reason directly.
8067 (end_stepping_range): New function.
8068 (print_end_stepping_range_reason, print_signal_exited_reason)
8069 (print_exited_reason, print_signal_received_reason)
8070 (print_no_history_reason): Make static, and add an uiout
8071 parameter. Print to that instead of to CURRENT_UIOUT.
8072 * infrun.h (print_end_stepping_range_reason)
8073 (print_signal_exited_reason, print_exited_reason)
8074 (print_signal_received_reason print_no_history_reason): New
8076 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8078 <cli_uiout>: New field.
8079 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8080 uiout for CLI output. Install 'signal_received',
8081 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8083 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8084 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8085 (mi_on_no_history): New functions.
8086 (ui_out_free_cleanup): Delete function.
8087 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8088 instead use the one already stored in the MI interpreter data.
8089 (mi_ui_out): Adjust.
8090 * tui/tui-interp.c: Include infrun.h and observer.h.
8091 (tui_interp): New global.
8092 (tui_on_signal_received, tui_on_end_stepping_range)
8093 (tui_on_signal_exited, tui_on_exited)
8094 (tui_on_no_history): New functions.
8095 (tui_init): Install them as 'end_stepping_range',
8096 'signal_received' 'signal_exited', 'exited' and 'no_history'
8098 (_initialize_tui_interp): Delete tui_interp local.
8100 2014-05-29 Pedro Alves <palves@redhat.com>
8103 * linux-nat.c (linux_nat_resume_callback): Rename the second
8104 parameter to 'except'. Skip LP if it points to EXCEPT.
8105 (linux_nat_resume): Don't mark the event lwp as not stopped
8106 before resuming sibling lwps. Instead ask
8107 linux_nat_resume_callback to skip the event lwp. Mark it as not
8108 stopped after actually resuming it.
8109 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8111 (wait_lwp): Mark the lwp as stopped here.
8112 (stop_wait_callback): Mark the lwp as not stopped right after
8113 resuming it. Don't mark lwps as stopped here.
8114 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8115 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8117 2014-05-29 Pedro Alves <palves@redhat.com>
8120 * infrun.c (resume): Determine how much to resume depending on
8121 whether the caller wanted a step, not whether we can hardware step
8122 the target. Mark all threads that we intend to run as running,
8123 unless we're calling an inferior function.
8124 (normal_stop): If the thread is running an infcall, don't finish
8126 * target.c (target_resume): Don't mark threads as running here.
8128 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8130 * serial.c (_initialize_serial): Remove support for
8131 the "set remotebaud" and "show remotebaud" commands.
8132 * NEWS: Add entry documenting the removal of that command.
8134 2014-05-28 Yao Qi <yao@codesourcery.com>
8136 * charset.c: Fix typo in comments.
8138 2014-05-27 Gary Benson <gbenson@redhat.com>
8140 * utils.c (internal_vproblem): Prompt for a bug report.
8142 2014-05-26 Andy Wingo <wingo@igalia.com>
8144 * guile/scm-arch.c (arscm_mark_arch_smob):
8145 * guile/scm-block.c (bkscm_mark_block_smob)
8146 (bkscm_mark_block_syms_progress_smob):
8147 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8148 * guile/scm-exception.c (exscm_mark_exception_smob):
8149 * guile/scm-frame.c (frscm_mark_frame_smob):
8150 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8151 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8152 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8153 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8154 (ppscm_mark_pretty_printer_worker_smob):
8155 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8156 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8157 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8158 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8160 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8163 2014-05-26 Andy Wingo <wingo@igalia.com>
8164 Doug Evans <xdje42@gmail.com>
8166 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8167 empty_base_class. All uses updated.
8168 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8169 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8171 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8172 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8173 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8174 (gdbscm_gsmob_has_property_p, add_property_name)
8175 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8176 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8177 (gdb-object-has-property?, gdb-object-properties): Remove.
8178 (gdb-object-kind): Renamed from gsmob-kind.
8180 2014-05-26 Andy Wingo <wingo@igalia.com>
8182 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8183 * configure: Regenerate.
8185 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8187 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8189 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8191 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8192 (replay_memory_access_read_only, replay_memory_access_read_write)
8193 (replay_memory_access_types, replay_memory_access)
8194 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8195 (cmd_set_record_btrace, cmd_show_record_btrace)
8196 (cmd_show_replay_memory_access): New.
8197 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8198 (record_btrace_remove_breakpoint): Replace
8199 record_btrace_allow_memory_access with replay_memory_access.
8200 (_initialize_record_btrace): Add commands.
8201 * NEWS: Announce it.
8203 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8205 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8207 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8209 * MAINTAINERS (Write After Approval): Move self back from
8212 2014-05-22 Pedro Alves <palves@redhat.com>
8214 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8215 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8216 (disable_randomization, enum exec_direction_kind)
8217 (execution_direction, stop_registers, start_remote)
8218 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8219 (wait_for_inferior, normal_stop, get_last_target_status)
8220 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8221 (insert_step_resume_breakpoint_at_sal)
8222 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8223 (set_step_info, print_stop_event, signal_stop_state)
8224 (signal_print_state, signal_pass_state, signal_stop_update)
8225 (signal_print_update, signal_pass_update)
8226 (update_signals_program_target, clear_exit_convenience_vars)
8227 (displaced_step_dump_bytes, update_observer_mode)
8228 (signal_catch_update, gdb_signal_from_command): Move
8230 * infrun.h: ... to this new file.
8231 * amd64-tdep.c: Include infrun.h.
8232 * annotate.c: Include infrun.h.
8233 * arch-utils.c: Include infrun.h.
8234 * arm-linux-tdep.c: Include infrun.h.
8235 * arm-tdep.c: Include infrun.h.
8236 * break-catch-sig.c: Include infrun.h.
8237 * breakpoint.c: Include infrun.h.
8238 * common/agent.c: Include infrun.h instead of inferior.h.
8239 * corelow.c: Include infrun.h.
8240 * event-top.c: Include infrun.h.
8241 * go32-nat.c: Include infrun.h.
8242 * i386-tdep.c: Include infrun.h.
8243 * inf-loop.c: Include infrun.h.
8244 * infcall.c: Include infrun.h.
8245 * infcmd.c: Include infrun.h.
8246 * infrun.c: Include infrun.h.
8247 * linux-fork.c: Include infrun.h.
8248 * linux-nat.c: Include infrun.h.
8249 * linux-thread-db.c: Include infrun.h.
8250 * monitor.c: Include infrun.h.
8251 * nto-tdep.c: Include infrun.h.
8252 * procfs.c: Include infrun.h.
8253 * record-btrace.c: Include infrun.h.
8254 * record-full.c: Include infrun.h.
8255 * remote-m32r-sdi.c: Include infrun.h.
8256 * remote-mips.c: Include infrun.h.
8257 * remote-notif.c: Include infrun.h.
8258 * remote-sim.c: Include infrun.h.
8259 * remote.c: Include infrun.h.
8260 * reverse.c: Include infrun.h.
8261 * rs6000-tdep.c: Include infrun.h.
8262 * s390-linux-tdep.c: Include infrun.h.
8263 * solib-irix.c: Include infrun.h.
8264 * solib-osf.c: Include infrun.h.
8265 * solib-svr4.c: Include infrun.h.
8266 * target.c: Include infrun.h.
8267 * top.c: Include infrun.h.
8268 * windows-nat.c: Include infrun.h.
8269 * mi/mi-interp.c: Include infrun.h.
8270 * mi/mi-main.c: Include infrun.h.
8271 * python/py-threadevent.c: Include infrun.h.
8273 2014-05-22 Pedro Alves <palves@redhat.com>
8275 * infrun.c (handle_inferior_event): Store the exit code for
8276 --return-child-result here, instead of ...
8277 (print_exited_reason): ... here.
8279 2014-05-21 Pedro Alves <palves@redhat.com>
8282 * gdbthread.h (struct thread_control_state): New field
8284 * infrun.c (follow_fork): Copy the new thread control field to the
8286 (clear_proceed_status_thread): Clear the new thread control field.
8287 (proceed): Set the new thread control field.
8288 * interps.h (command_interp): Declare.
8289 * interps.c (command_interpreter): New global.
8290 (command_interp): New function.
8291 (interp_exec): Set `command_interpreter' while here.
8292 * cli-out.c (cli_uiout_dtor): New function.
8293 (cli_ui_out_impl): Install it.
8294 * mi/mi-interp.c: Include cli-out.h.
8295 (mi_cmd_interpreter_exec): Add comment.
8296 (restore_current_uiout_cleanup): New function.
8297 (ui_out_free_cleanup): New function.
8298 (mi_on_normal_stop): If finishing an execution command started by
8299 a CLI command, or any kind of breakpoint-like event triggered,
8300 print the stop event to the output (CLI) stream.
8301 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8303 2014-05-21 Pedro Alves <palves@redhat.com>
8305 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8306 current source line having changed.
8307 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8308 * infrun.c (normal_stop): Adjust call to
8309 set_current_sal_from_frame.
8310 * source.c (clear_lines_listed_range): New function.
8311 (set_current_source_symtab_and_line, identify_source_line): Clear
8312 the lines listed range.
8313 (line_info): Handle the first "info line" after the current source
8314 line having changed.
8315 * stack.c (print_stack_frame): Remove center handling.
8316 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8319 2014-05-21 Pedro Alves <palves@redhat.com>
8321 * inf-child.c (inf_child_mourn_inferior): New function.
8322 * inf-child.h (inf_child_mourn_inferior): New declaration.
8323 * darwin-nat.c (darwin_mourn_inferior): Use
8324 inf_child_mourn_inferior.
8325 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8326 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8327 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8328 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8329 * windows-nat.c (windows_mourn_inferior): Likewise.
8331 2014-05-21 Doug Evans <xdje42@gmail.com>
8333 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8335 2014-05-21 Doug Evans <xdje42@gmail.com>
8337 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8338 (gdbscm_out_of_range_error): Ditto.
8339 (gdbscm_memory_error): Ditto.
8340 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8341 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8342 (gdbscm_out_of_range_error): Update.
8343 (gdbscm_memory_error): Update.
8344 (gdbscm_scm_to_target_string_unsafe): Delete.
8346 2014-05-21 Pedro Alves <palves@redhat.com>
8348 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8350 (inf_child_open_target): New function.
8351 (inf_child_open): Use inf_child_open_target to push the target
8352 instead of erroring out.
8353 (inf_child_disconnect, inf_child_close)
8354 (inf_child_maybe_unpush_target): New functions.
8355 (inf_child_target): Install inf_child_disconnect and
8356 inf_child_close. Store a pointer to the returned object.
8357 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8359 * target.c (auto_connect_native_target): New global.
8360 (show_default_run_target): New function.
8361 (find_default_run_target): Return NULL if automatically connecting
8362 to the native target is disabled.
8363 (_initialize_target): Install set/show auto-connect-native-target.
8364 * NEWS: Mention "set auto-connect-native-target", and "target
8366 * linux-nat.c (super_close): New global.
8367 (linux_nat_close): Call super_close.
8368 (linux_nat_add_target): Store a pointer to the base class's
8370 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8371 inf_child_maybe_unpush.
8372 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8374 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8375 the inferior. Use inf_child_maybe_unpush_target.
8376 (inf_ttrace_attach): Don't push the target if it is already
8378 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8379 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8380 after mourning the inferior. Use inf_child_maybe_unpush_target.
8381 (darwin_attach_pid): Don't push the target if it is already
8383 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8384 mourning the inferior. Use inf_child_maybe_unpush_target.
8385 (gnu_detach): Use inf_child_maybe_unpush_target.
8386 * go32-nat.c (go32_create_inferior): Don't push the target if it
8388 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8389 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8390 (procfs_open): Rename to ...
8391 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8392 comments. Can target_preopen before changing node. Call
8393 inf_child_open_target to push the target explicitly.
8394 (procfs_attach): Don't push the target if it is already pushed.
8395 (procfs_detach): Use inf_child_maybe_unpush_target.
8396 (procfs_create_inferior): Don't push the target if it is already
8398 (nto_native_ops): New global.
8399 (procfs_open): Reimplement.
8400 (procfs_native_open): New function.
8401 (init_procfs_targets): Install procfs_native_open as to_open of
8402 "target native". Store a pointer to the "native" target in
8404 * procfs.c (procfs_attach): Don't push the target if it is already
8406 (procfs_detach): Use inf_child_maybe_unpush_target.
8407 (procfs_mourn_inferior): Only unpush the target after mourning the
8408 inferior. Use inf_child_maybe_unpush_target.
8409 (procfs_init_inferior): Don't push the target if it is already
8411 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8412 if it is already pushed.
8414 2014-05-21 Pedro Alves <palves@redhat.com>
8416 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8417 and "procfs" targets are now called "native" instead.
8419 2014-05-21 Pedro Alves <palves@redhat.com>
8421 * go32-nat.c (go32_open): Delete.
8422 (go32_target): Don't override the to_open method.
8424 2014-05-21 Pedro Alves <palves@redhat.com>
8426 * nto-procfs.c (procfs_can_run): New function.
8427 (nto_procfs_ops): New global.
8428 (init_procfs_targets): New, based on procfs_target. Install
8429 "target native" in addition to "target procfs".
8430 (_initialize_procfs): Call init_procfs_targets instead of adding
8433 2014-05-21 Pedro Alves <palves@redhat.com>
8435 * windows-nat.c (windows_target): Don't override to_shortname,
8436 to_longname or to_doc.
8438 2014-05-21 Pedro Alves <palves@redhat.com>
8440 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8443 2014-05-21 Pedro Alves <palves@redhat.com>
8445 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8446 to_shortname, to_longname or to_doc.
8448 2014-05-21 Pedro Alves <palves@redhat.com>
8450 * go32-nat.c (go32_target): Don't override to_shortname,
8451 to_longname or to_doc.
8453 2014-05-21 Pedro Alves <palves@redhat.com>
8455 * inf-child.c (inf_child_open): Remove mention of "child".
8456 (inf_child_target): Rename target to "native" instead of "child".
8458 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8460 * Makefile.in (SFILES): Delete "regset.c".
8461 (COMMON_OBS): Delete "regset.o".
8463 * regset.h (regset_alloc): Delete prototype.
8465 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8467 * sparc-linux-tdep.c (sparc32_linux_gregset)
8468 (sparc32_linux_fpregset): New static regset structures.
8469 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8470 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8472 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8473 (sparc64_linux_fpregset): New static regset structures.
8474 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8475 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8476 New static regset structures.
8477 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8479 New static regset structures.
8480 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8481 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8482 New static regset structures.
8483 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8484 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8485 New static regset structures.
8486 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8488 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8490 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8491 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8492 register maps ("regmaps") from "*regset" to "*regmap". Do this
8493 for all regmap types and variables.
8494 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8495 (sparc32_linux_supply_core_gregset)
8496 (sparc32_linux_collect_core_gregset)
8497 (sparc32_linux_supply_core_fpregset)
8498 (sparc32_linux_collect_core_fpregset): Likewise.
8499 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8500 (sparc_gregmap, sparc_fpregmap): ... these.
8501 (sparc_supply_gregset, sparc_collect_gregset)
8502 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8503 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8504 (_initialize_sparc_nat): Rename regmaps.
8505 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8506 (sparc_gregmap, sparc_fpregmap): ... these.
8507 (sparc_supply_gregset, sparc_collect_gregset)
8508 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8509 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8511 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8512 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8514 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8516 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8517 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8518 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8520 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8521 (sparc32_bsd_fpregset): Rename to...
8522 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8523 (sparc32_bsd_fpregmap): ... these.
8524 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8525 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8526 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8527 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8528 (struct sparc_gregmap, struct sparc_fpregmap)
8529 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8530 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8531 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8532 (sparc32_supply_regset, sparc32_collect_gregset)
8533 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8535 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8536 (sparc64_linux_ptrace_gregmap): ... this.
8537 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8538 (_initialize_sparc64_linux_nat): Rename regmaps.
8539 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8540 (sparc64_linux_core_gregmap): ... this.
8541 (sparc64_linux_supply_core_gregset)
8542 (sparc64_linux_collect_core_gregset)
8543 (sparc64_linux_supply_core_fpregset)
8544 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8545 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8546 (sparc64_sol2_fpregset): Rename to...
8547 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8548 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8549 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8551 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8552 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8553 (sparc64_bsd_fpregset): Rename to...
8554 (struct sparc_gregmap, sparc64_sol2_gregmap)
8555 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8556 (sparc64_bsd_fpregmap): ... these.
8557 (sparc64_supply_gregset, sparc64_collect_gregset)
8558 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8560 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8561 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8562 (sparc64fbsd_gregmap): ... this.
8563 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8564 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8566 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8567 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8568 (sparc64nbsd_collect_fpregset): Likewise.
8569 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8570 (sparc64nbsd_gregmap): ... this.
8571 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8573 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8574 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8575 (sparc64obsd_gregmap): ... this.
8576 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8578 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8579 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8580 (sparc32nbsd_gregmap): ... this.
8581 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8586 * score-tdep.c (score7_linux_gregset): New static regset
8588 (score7_linux_regset_from_core_section): Remove dynamic regset
8590 (score_gdbarch_init): Drop allocation of tdep structure.
8591 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8595 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8597 (am33_regset_from_core_section): Remove dynamic regset
8600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8602 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8603 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8605 (mips_linux_regset_from_core_section): Remove dynamic regset
8607 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8608 'gregset64', 'fpregset', and 'fpregset64'.
8609 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8610 deleted tdep fields.
8612 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8614 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8616 (amd64_regset_from_core_section): Remove dynamic regset
8618 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8620 (amd64obsd_regset_from_core_section): Remove dynamic regset
8622 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8624 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8625 x86-common regset supply function.
8626 * i386-tdep.c (i386_collect_gregset): Make static.
8627 (i386_gregset): New global regset structure.
8628 (i386_fpregset, i386_xstateregset): New static regset structures.
8629 (i386_regset_from_core_section): Remove dynamic regset
8631 (i386_gdbarch_init): Remove initialization of tdep fields
8632 'gregset', 'fpregset', and 'xstateregset'.
8633 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8634 'fpregset', and 'xstateregset'.
8635 (i386_collect_gregset): Remove prototype.
8636 (i386_gregset): New declaration.
8637 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8639 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8644 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8645 (arm_linux_vfpregset): New static regset structures.
8646 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8648 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8649 and 'vfpregset' fields.
8651 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8653 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8654 (aarch64_linux_fpregset): New static regset structures.
8655 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8656 of regset structures.
8657 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8660 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8662 * regset.h (struct regset): Remove gdbarch field.
8663 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8664 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8665 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8667 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8668 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8669 (ppc32_linux_vsxregset): Likewise.
8670 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8671 via the regcache instead of the regset.
8672 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8673 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8674 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8675 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8678 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8680 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8681 Constify structures.
8682 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8683 (alphanbsd_aout_gregset): Likewise.
8684 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8685 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8687 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8688 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8690 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8691 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8692 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8693 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8694 * m88k-tdep.c (m88k_gregset): Likewise.
8695 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8696 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8697 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8698 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8699 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8700 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8701 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8702 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8703 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8705 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8706 * sh-tdep.h (sh_corefile_gregset): Likewise.
8707 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8708 * vax-tdep.c (vax_gregset): Likewise.
8710 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8712 Fix TLS access for -static -pthread.
8713 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8714 (try_thread_db_load_1): Initialize it.
8715 (thread_db_get_thread_local_address): Call it if LM is zero.
8716 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8717 * target.h (struct target_ops) (to_get_thread_local_address): Add
8718 load_module_addr comment.
8720 2014-05-21 Pedro Alves <palves@redhat.com>
8722 * dcache.c (dcache_read_memory_partial): If reading the cache line
8723 fails, fallback to reading just the memory the caller wanted.
8725 2014-05-20 Doug Evans <dje@google.com>
8727 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8728 instead of get_current_arch.
8730 2014-05-20 Pedro Alves <palves@redhat.com>
8732 * NEWS: Mention that compare-sections now works with all targets.
8734 * remote.c (PACKET_qCRC): New enum value.
8735 (remote_verify_memory): Don't send qCRC if the target has no
8736 execution. Use packet_support/packet_ok. If the target doesn't
8737 support the qCRC packet, fallback to a deep memory copy.
8738 (compare_sections_command): Say "target image" instead of "remote
8740 (_initialize_remote): Add PACKET_qCRC to the list of config
8741 packets that have no associated command. Extend comment.
8742 * target.c (simple_verify_memory, default_verify_memory): New
8744 * target.h (struct target_ops) <to_verify_memory>: Default to
8745 default_verify_memory.
8746 (simple_verify_memory): New declaration.
8747 * target-delegates.c: Regenerate.
8749 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8751 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8753 2014-05-20 Hui Zhu <hui@codesourcery.com>
8754 Yao Qi <yao@codesourcery.com>
8757 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8758 and change address of sp and pc.
8760 2014-05-19 Tom Tromey <tromey@redhat.com>
8762 * gdbtypes.c (rank_function): Use XNEWVEC.
8763 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8765 2014-05-19 Doug Evans <dje@google.com>
8767 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8768 build_type_unit_groups and moved closer to only caller. Remove
8769 arguments. All references updated. Remove outdated .gdb_index
8771 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8772 build_type_psymtabs_1.
8774 2014-05-19 Doug Evans <dje@google.com>
8776 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8777 n_type_unit_groups, all_type_unit_groups. All uses removed.
8778 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8779 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8780 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8781 (add_type_unit_group_to_table): Delete.
8783 2014-05-19 Doug Evans <dje@google.com>
8785 * eval.c (evaluate_subexp_standard): Add some comments.
8787 2014-05-17 Doug Evans <xdje42@gmail.com>
8789 * progspace.c (remove_program_space): Delete, unused.
8790 * progspace.h (remove_program_space): Ditto.
8792 2014-05-17 Doug Evans <xdje42@gmail.com>
8794 * inferior.c (prune_inferiors): Fix comment.
8795 (remove_inferior_command): Call prune_program_spaces.
8797 2014-05-16 Doug Evans <dje@google.com>
8799 New command line option -D.
8801 * main.c (set_gdb_data_directory): New function.
8802 (captured_main): Recognize -D. Flag error for --data-directory "".
8803 Call set_gdb_data_directory.
8804 (print_gdb_help): Print --data-directory, -D.
8805 * main.h (set_gdb_data_directory): Declare.
8806 * top.c (staged_gdb_datadir): New static global.
8807 (set_gdb_datadir): Call set_gdb_data_directory
8808 (show_gdb_datadir): New function.
8809 (init_main): Update init of data-directory parameter.
8811 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8813 Import the "dirfd" gnulib module.
8814 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8815 * gnulib/aclocal.m4: Update.
8816 * gnulib/config.in: Update.
8817 * gnulib/configure: Update.
8818 * gnulib/import/Makefile.am: Update.
8819 * gnulib/import/Makefile.in: Update.
8820 * gnulib/import/dirfd.c: New.
8821 * gnulib/import/m4/dirfd.m4: New.
8822 * gnulib/import/m4/gnulib-cache.m4: Update.
8823 * gnulib/import/m4/gnulib-comp.m4: Update.
8825 2014-05-16 Pierre Muller <muller@sourceware.org>
8826 Yao Qi <yao@codesourcery.com>
8828 * valprint.c (print_wchar): Move the code on checking whether
8829 W is a printable wide char to the default branch of switch
8830 statement below. Call wchar_printable instead of gdb_iswprint.
8832 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8834 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8835 ldr.w and ldrd instructions.
8837 2014-05-15 Doug Evans <dje@google.com>
8839 * dwarf2read.c (read_structure_type): Delete outdated comments.
8841 2014-05-14 Tom Tromey <tromey@redhat.com>
8843 * macrocmd.c (print_macro_definition): Reindent.
8845 2014-05-13 Doug Evans <xdje42@gmail.com>
8847 * python/py-cmd.c (cmdpy_completer): Add comment.
8848 (completers): Make const.
8850 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8852 * infrun.c (resume): Remove should_resume (unused). Move up
8853 declaration of resume_ptid.
8855 2014-05-13 Tom Tromey <tromey@redhat.com>
8857 * language.h (unop_type_check): Remove.
8858 (binop_type_check): Don't declare.
8860 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8862 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8863 call to regcache_raw_collect.
8865 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8867 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8868 mi_console->quote as the quoting character.
8870 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8872 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8874 2014-04-29 Tom Tromey <tromey@redhat.com>
8876 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8877 "show debug varobj".
8879 2014-05-07 Kyle McMartin <kyle@redhat.com>
8881 Pushed by Joel Brobecker <brobecker@adacore.com>.
8882 * aarch64-tdep.c (aarch64_software_single_step): New function.
8883 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8884 with aarch64_software_single_step.
8886 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8890 2014-05-05 Keith Seitz <keiths@redhat.com>
8892 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8893 variable or history value is successfully parsed.
8895 2014-05-05 Yao Qi <yao@codesourcery.com>
8896 Pedro Alves <palves@redhat.com>
8898 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8899 address of blocks that intersects the requested range. Trim
8900 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8902 * ctf.c (ctf_xfer_partial): Likewise.
8904 2014-05-05 Yao Qi <yao@codesourcery.com>
8906 * printcmd.c (display_command): Remove the check to
8907 target_has_execution.
8909 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8911 * ppcobsd-nat.c: Include "obsd-nat.h".
8912 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8914 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8916 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8918 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8919 and 16-bit signed and unsigned arguments. Update comment.
8920 (stap_parse_probe_arguments): Extend code to handle such
8921 arguments. Use warning instead of complaint to notify about
8922 unrecognized bitness.
8924 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8926 PR breakpoints/16889
8927 * stap-probe.c (stap_parse_probe_arguments): Simplify
8928 check for non-prefixed probes (i.e., probes whose
8929 arguments do not start with "N@"). Always set the
8930 argument type to a sane value.
8932 2014-05-01 David Taylor <dtaylor@emc.com>
8934 * remote.c (compare_sections_command): Add -r option to compare
8935 all loadable read-only sections.
8937 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8939 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8940 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8942 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8943 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8944 Remove unused CORE_ADDR argument. Update all callers.
8946 2014-04-29 Pedro Alves <palves@redhat.com>
8948 * remote.c (struct packet_config) <detect>: Extend comment.
8949 (add_packet_config_cmd): Don't set the config's detect or support
8951 (init_all_packet_configs): Also initialize the config's 'detect'
8953 (reset_all_packet_configs_support): New function.
8954 (remote_open_1): Call reset_all_packet_configs_support instead of
8955 init_all_packet_configs.
8956 (_initialize_remote): Initialize all packet configs. Assert that
8957 all packets have an associated command, except a few known
8960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8962 * dwarf2read.c (read_subrange_type): Handle dynamic
8963 DW_AT_lower_bound attributes.
8965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8967 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8968 dynamic bounds before computing its upper bound.
8969 (ada_discrete_type_low_bound): Same as above with the lower bound.
8971 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8973 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8974 range types. Adjust the array handling implementation to
8975 take advantage of this change.
8976 (resolve_dynamic_range): New function, mostly extracted from
8977 resolve_dynamic_bounds.
8978 (resolve_dynamic_array): New function, mostly extracted from
8979 resolve_dynamic_bounds.
8980 (resolve_dynamic_bounds): Delete.
8981 (resolve_dynamic_type): Reimplement. Add handling of
8982 TYPE_CODE_RANGE types.
8984 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8986 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8987 handling of parallel ___XA types.
8989 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8991 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8992 unnecessary second call to static_unwrap_type.
8994 2014-04-27 Hui Zhu <hui@codesourcery.com>
8996 * stack.c (print_frame_info): Call do_gdb_disassembly with
8997 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8999 2014-04-26 Doug Evans <xdje42@gmail.com>
9001 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9003 2014-04-25 Pedro Alves <palves@redhat.com>
9006 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9007 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9008 and newline from built string.
9009 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9010 (linux_ptrace_attach_fail_reason): ... this.
9011 * linux-nat.c (linux_nat_attach): Adjust to use
9012 linux_ptrace_attach_fail_reason.
9014 2014-04-25 Pedro Alves <palves@redhat.com>
9016 * remote.c (struct remote_state): Remove multi_process_aware,
9017 non_stop_aware, cond_tracepoints, cond_breakpoints,
9018 breakpoint_commands, fast_tracepoints, static_tracepoints,
9019 install_in_trace, disconnected_tracing,
9020 enable_disable_tracepoints, string_tracing, and
9021 augmented_libraries_svr4_read fields.
9022 (remote_multi_process_p): Move further below in the file.
9023 (struct packet_config): Add comments.
9024 (update_packet_config): Delete function.
9025 (show_packet_config_cmd): Use packet_config_support.
9026 (add_packet_config_cmd): Use NULL as set callback.
9027 (packet_ok): "set remote foo-packet"-style commands no longer
9028 change config->supported -- adjust.
9029 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9030 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9031 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9032 (PACKET_QNonStop, PACKET_multiprocess_feature)
9033 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9034 (PACKET_DisconnectedTracing_feature)
9035 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9036 (set_remote_protocol_packet_cmd): Delete function.
9037 (packet_config_support, packet_support): New functions.
9038 (set_remote_protocol_Z_packet_cmd): Don't call
9039 update_packet_config.
9040 (remote_query_attached, remote_pass_signals)
9041 (remote_program_signals, remote_threads_info)
9042 (remote_threads_extra_info, remote_start_remote): Use
9044 (remote_start_remote): Use packet_config_support and
9046 (init_all_packet_configs): Set all packets to unknown support,
9047 instead of calling update_packet_config.
9048 (remote_check_symbols): Use packet_support.
9049 (remote_supported_packet): Unconditionally set the packet config's
9051 (remote_multi_process_feature, remote_non_stop_feature)
9052 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9053 (remote_breakpoint_commands_feature)
9054 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9055 (remote_install_in_trace_feature)
9056 (remote_disconnected_tracing_feature)
9057 (remote_enable_disable_tracepoint_feature)
9058 (remote_string_tracing_feature)
9059 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9060 (remote_protocol_features): Adjust to use remote_supported_packet
9061 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9062 "ConditionalTracepoints", "ConditionalBreakpoints",
9063 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9064 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9065 "EnableDisableTracepoints", and "tracenz".
9066 (remote_query_supported): Use packet_support.
9067 (remote_open_1): Adjust.
9068 (extended_remote_attach_1): Use packet_support. Switch on the
9069 result of packet_ok instead of checking whether the packet ended
9071 (remote_vcont_resume): Use packet_support.
9072 (remote_resume, remote_stop_ns, fetch_register_using_p)
9073 (remote_prepare_to_store, store_register_using_P)
9074 (check_binary_download, remote_write_bytes): Use packet_support.
9075 (remote_vkill): Use packet_support. Switch on the result of
9076 packet_ok instead of checking whether the packet ended up
9078 (extended_remote_supports_disable_randomization): Use
9080 (extended_remote_run): Switch on the result of packet_ok instead
9081 of checking whether the packet ended up disabled.
9082 (remote_insert_breakpoint, remote_remove_breakpoint)
9083 (remote_insert_watchpoint, remote_remove_watchpoint)
9084 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9086 (remote_search_memory): Use packet_config_support.
9087 (remote_get_thread_local_address, remote_get_tib_address)
9088 (remote_hostio_send_command, remote_can_execute_reverse): Use
9090 (remote_supports_cond_tracepoints)
9091 (remote_supports_cond_breakpoints)
9092 (remote_supports_fast_tracepoints)
9093 (remote_supports_static_tracepoints)
9094 (remote_supports_install_in_trace)
9095 (remote_supports_enable_disable_tracepoint)
9096 (remote_supports_string_tracing)
9097 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9098 the packet config says the feature is enabled or disabled.
9099 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9100 (remote_get_trace_status): Use packet_support.
9101 (remote_set_disconnected_tracing): Adjust to check whether the
9102 feature is enabled with packet_support.
9103 (remote_set_trace_buffer_size, remote_use_agent)
9104 (remote_can_use_agent, remote_supports_btrace): Use
9106 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9107 Use packet_config_support.
9108 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9109 the packet config says the feature is enabled or disabled.
9110 (set_range_stepping): Use packet_support.
9112 2014-04-25 Tom Tromey <tromey@redhat.com>
9114 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9117 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9119 * NEWS: Mention support for C99 variable length arrays.
9121 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9123 * ada-lang.c (standard_exc): Expand introductory comment.
9125 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9126 Walfred Tedeschi <walfred.tedeschi@intel.com>
9128 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9130 (amd64_linux_read_description): Add code to handle AVX512 xstate
9131 mask and return respective tdesc.
9132 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9133 and features/i386/x32-avx512-linux.c.
9134 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9135 (amd64_linux_core_read_description): Add code to handle AVX512
9136 xstate mask and return respective tdesc.
9137 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9138 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9140 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9141 (tdesc_amd64_avx512_linux): New prototype.
9142 (tdesc_x32_avx512_linux): Likewise.
9143 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9144 features/i386/x32-avx512.c.
9145 (amd64_ymm_avx512_names): New register names for pseudo
9147 (amd64_ymmh_avx512_names): New register names for raw registers
9149 (amd64_k_names): New register names for K registers.
9150 (amd64_zmmh_names): New register names for ZMM raw registers.
9151 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9152 (amd64_xmm_avx512_names): New register names for XMM16-31
9154 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9156 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9157 if feature is present.
9158 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9159 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9160 (AMD64_NUM_REGS): Adjust to new number of registers.
9161 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9162 registers supplied via XSTATE by AVX512 registers.
9163 (i386_linux_read_description): Add case for AVX512.
9164 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9165 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9166 (i386_linux_core_read_description): Add case for AVX512.
9167 (i386_linux_init_abi): Install supported register note section
9169 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9171 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9172 registers to be number of zmm7h + 1.
9173 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9174 * i386-tdep.c: Include features/i386/i386-avx512.c.
9175 (i386_zmm_names): Add ZMM pseudo register names array.
9176 (i386_zmmh_names): Add ZMM raw register names array.
9177 (i386_k_names): Add K raw register names array.
9178 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9179 registers. AVX512 has 16 more ZMM registers than there are YMM
9181 (i386_zmmh_regnum_p): Add function to look up register number of
9183 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9184 (i386_k_regnum_p): Likewise for K raw registers.
9185 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9186 registers added by AVX512.
9187 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9188 registers added by AVX512.
9189 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9191 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9192 (i386_pseudo_register_name): Add ZMM pseudo registers.
9193 (i386_zmm_type): Construct and return vector registers type for ZMM
9195 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9196 ZMM0-31 pseudo registers and K registers.
9197 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9198 and YMM16-31 registers from register cache.
9199 (i386_pseudo_register_write): Add code to write K, ZMM and
9201 (i386_register_reggroup_p): Add code to include/exclude AVX512
9202 registers in/from respective register groups.
9203 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9204 registers if feature is present in xcr0.
9205 (i386_gdbarch_init): Add code to initialize AVX512 feature
9206 variables in tdep structure, wire in pseudo registers and call
9207 initialize_tdesc_i386_avx512.
9208 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9210 (i386_regnum): Add AVX512 registers.
9211 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9212 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9213 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9214 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9216 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9217 (i386_ymm_avx512_regnum_p): Likewise.
9218 (i386_k_regnum_p): Likewise.
9219 (i386_zmm_regnum_p): Likewise.
9220 (i386_zmmh_regnum_p): Likewise.
9221 * i387-tdep.c : Update year in copyright notice.
9222 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9224 (XSAVE_YMM_AVX512_ADDR): New macro.
9225 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9227 (XSAVE_XMM_AVX512_ADDR): New macro.
9228 (xsave_avx512_k_offset): New table for K register offsets in
9230 (XSAVE_AVX512_K_ADDR): New macro.
9231 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9233 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9234 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9236 (i387_collect_xsave): Add code to collect AVX512 registers from
9238 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9239 of XMM16-31 registers.
9240 (I387_NUM_K_REGS): New define for number of K registers.
9241 (I387_K0_REGNUM): New define for K0 register number.
9242 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9243 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9244 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9246 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9247 (I387_XMM16_REGNUM): New define for XMM16 register number.
9248 (I387_YMM0_REGNUM): New define for YMM0 register number.
9249 (I387_KEND_REGNUM): New define for last K register number.
9250 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9251 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9253 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9255 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9257 * features/Makefile: Add AVX512 related files.
9258 * features/i386/32bit-avx512.xml: New file.
9259 * features/i386/64bit-avx512.xml: Likewise.
9260 * features/i386/amd64-avx512-linux.c: Likewise.
9261 * features/i386/amd64-avx512-linux.xml: Likewise.
9262 * features/i386/amd64-avx512.c: Likewise.
9263 * features/i386/amd64-avx512.xml: Likewise.
9264 * features/i386/i386-avx512-linux.c: Likewise.
9265 * features/i386/i386-avx512-linux.xml: Likewise.
9266 * features/i386/i386-avx512.c: Likewise.
9267 * features/i386/i386-avx512.xml: Likewise.
9268 * features/i386/x32-avx512-linux.c: Likewise.
9269 * features/i386/x32-avx512-linux.xml: Likewise.
9270 * features/i386/x32-avx512.c: Likewise.
9271 * features/i386/x32-avx512.xml: Likewise.
9272 * regformats/i386/amd64-avx512-linux.dat: New file.
9273 * regformats/i386/amd64-avx512.dat: Likewise.
9274 * regformats/i386/i386-avx512-linux.dat: Likewise.
9275 * regformats/i386/i386-avx512.dat: Likewise.
9276 * regformats/i386/x32-avx512-linux.dat: Likewise.
9277 * regformats/i386/x32-avx512.dat: Likewise.
9278 * NEWS: Add note about new support for AVX512.
9281 2014-04-23 Pedro Alves <palves@redhat.com>
9283 * breakpoint.c (insert_bp_location): Tolerate errors if the
9284 breakpoint is set in a user-loaded objfile.
9285 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9286 location is marked shlib_disabled. If the breakpoint is set in a
9287 user-loaded objfile is a GDB-side memory breakpoint, validate it
9288 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9289 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9291 * mem-break.c (memory_validate_breakpoint): New function.
9292 * objfiles.c (userloaded_objfile_contains_address_p): New
9294 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9295 * target.h (memory_validate_breakpoint): New declaration.
9297 2014-04-23 Pedro Alves <palves@redhat.com>
9299 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9300 the breakpoint is set in a shared library, only suppress
9301 errors for software breakpoints, not hardware breakpoints.
9303 2014-04-22 Pedro Alves <palves@redhat.com>
9305 * infrun.c (schedlock_applies): New function, factored out from
9306 find_thread_needs_step_over.
9307 (find_thread_needs_step_over): Use it.
9308 (switch_back_to_stepped_thread): Always clear trap_expected if the
9309 step over is finished. Return early if scheduler locking applies.
9310 Look for the stepping thread and a potential step-over thread with
9312 (currently_stepping_or_nexting_callback): Delete.
9314 2014-04-22 Nick Clifton <nickc@redhat.com>
9316 * NEWS: Mention that ARM sim now supports tracing.
9318 2014-04-22 Yao Qi <yao@codesourcery.com>
9320 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9322 * tracefile.c (tracefile_fetch_registers): ... it. New
9324 * tracefile.h (tracefile_fetch_registers): Declare.
9325 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9326 tracefile_fetch_registers.
9328 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9331 * windows-nat.c (thread_rec): Don't display a warning when
9332 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9333 fails for any reason, set th->suspended to -1, so that we don't
9334 try to resume such a thread. Also, don't return NULL in these
9335 cases, to avoid completely ruin the session due to "PC register is
9336 not available" error.
9337 (do_windows_fetch_inferior_registers): Check errors in
9338 GetThreadContext call.
9339 (windows_continue): Accept an additional argument KILLED; if not
9340 zero, ignore errors in the SetThreadContext call, since the
9341 inferior was killed and is shutting down.
9342 (windows_resume, get_windows_debug_event)
9343 (windows_create_inferior, windows_mourn_inferior)
9344 (windows_kill_inferior): All callers of windows_continue changed
9345 to adjust to its new calling sequence.
9347 2014-04-19 Yao Qi <yao@codesourcery.com>
9349 * ctf.c (ctf_open): Call post_create_inferior.
9351 2014-04-19 Yao Qi <yao@codesourcery.com>
9353 * ctf.c (handle_id): New static variable.
9354 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9355 value. Get the declaration of event "register" and get length
9356 of field "contents".
9358 2014-04-19 Yao Qi <yao@codesourcery.com>
9360 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9362 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9364 * valops.c (oload_method_static): Remove unnecessary argument
9365 METHOD. Update all callers.
9367 2014-04-18 Pedro alves <palves@redhat.com>
9368 Tom Tromey <tromey@redhat.com>
9371 * frame.c (get_prev_frame_1): Rename to ...
9372 (get_prev_frame_always): ... this, and make extern. Adjust.
9373 (skip_artificial_frames): Use get_prev_frame_always.
9374 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9375 (get_frame_unwind_stop_reason): Adjust to rename.
9376 * frame.h (get_prev_frame_always): Declare.
9377 * inline-frame.c: Include frame.h.
9378 (inline_frame_this_id): Use get_prev_frame_always.
9380 2014-04-18 Tristan Gingold <gingold@adacore.com>
9382 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9383 code by using bfd_mach_o_get_base_address.
9385 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9387 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9388 (spu_ax_pseudo_register_collect): New function.
9389 (spu_ax_pseudo_register_push_stack): Likewise.
9390 (spu_dwarf_reg_to_regnum): Likewise.
9391 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9393 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9395 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9396 Replace FRAME argument with FRAME_ID.
9397 * gdbarch.c, gdbarch.h: Regenerate.
9398 * findvar.c (default_value_from_register): Add GDBARCH argument;
9399 replace FRAME by FRAME_ID. No longer call get_frame_id.
9400 (value_from_register): Update call to gdbarch_value_from_register.
9401 * value.h (default_value_from_register): Update prototype.
9402 * s390-linux-tdep.c (s390_value_from_register): Update interface
9403 and call to default_value_from_register.
9404 * spu-tdep.c (spu_value_from_register): Likewise.
9406 * findvar.c (address_from_register): Remove TYPE argument.
9407 Do not call value_from_register; use gdbarch_value_from_register
9408 with null_frame_id instead.
9409 * value.h (address_from_register): Update prototype.
9410 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9411 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9412 address_from_register interface change.
9414 2014-04-17 Yao Qi <yao@codesourcery.com>
9416 * gdbtypes.h: Update comments to link to types and macros'
9419 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9421 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9423 2014-04-16 Keith Seitz <keiths@redhat.com>
9426 * dwarf2read.c (skip_one_die): Check that all relative-offset
9427 sibling DIEs fall within range of the current reader's buffer.
9428 (read_partial_die): Likewise.
9430 2014-04-16 Keith Seitz <keiths@redhat.com>
9433 * cp-namespace.c (lookup_symbol_file): If the type name of
9434 `this' is NULL, return immediately.
9436 2014-04-14 Keith Seitz <keiths@redhat.com>
9439 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9440 from symbol_matches_domain in symtab.c. All local callers
9441 of symbol_matches_domain updated.
9442 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9443 search STRUCT_DOMAIN.
9444 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9445 independently. standard_lookup will do that automatically.
9446 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9447 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9448 (cp_lookup_symbol_in_namespace): Likewise.
9449 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9450 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9451 may return a STRUCT_DOMAIN match.
9452 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9453 * cp-support.c: Include language.h.
9454 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9456 * psymtab.c (match_partial_symbol): Compare the requested
9457 domain with the symbol's domain directly.
9458 (lookup_partial_symbol): Likewise.
9459 * symtab.c (lookup_symbol_in_language): Explain when/why
9460 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9461 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9462 appropriate languages.
9463 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9464 and moved to ada-lang.c
9465 (lookup_block_symbol): Explain that this function only returns
9466 symbol matching the requested DOMAIN.
9467 Compare the requested domain with the symbol's domain directly.
9468 (iterate_over_symbols): Compare the requested domain with the
9469 symbol's domain directly.
9470 * symtab.h (symbol_matches_domain): Remove.
9472 2014-04-14 Tom Tromey <tromey@redhat.com>
9475 * c-exp.y (type_aggregate_p): New function.
9476 (qualified_name, classify_inner_name): Use it.
9477 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9478 and TYPE_TARGET_TYPE of an enum type.
9479 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9481 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9482 handle TYPE_DECLARED_CLASS.
9483 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9485 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9486 * valops.c (enum_constant_from_type): New function.
9487 (value_aggregate_elt): Use it.
9488 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9491 2014-04-14 Tom Tromey <tromey@redhat.com>
9493 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9494 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9496 * value.h (value_aggregate_elt): Update.
9498 2014-04-14 Tom Tromey <tromey@redhat.com>
9500 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9502 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9504 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9505 (evaluate_subexp_standard): Pass noside argument.
9506 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9507 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9508 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9509 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9510 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9514 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9515 points to a constant blob.
9517 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9519 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9520 property and store it as the high bound and flag the range accordingly.
9521 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9522 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9523 * gdbtypes.h (enum range_flags): New enum.
9524 (struct range_bounds): Add flags member.
9526 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9528 * c-typeprint.c (c_type_print_varspec_suffix): Added
9529 check for not yet resolved high bound. If unresolved, print
9530 "variable length" string to the console instead of random
9533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9535 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9537 (ada_template_to_fixed_record_type_1): Likewise.
9538 (ada_to_fixed_type_1): Likewise.
9539 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9540 (cp_print_value): Likewise.
9541 * d-valprint.c (dynamic_array_type): Likewise.
9542 * findvar.c (address_of_variable): Likewise.
9543 * jv-valprint.c (java_value_print): Likewise.
9544 * valops.c (value_ind): Likewise.
9545 * value.c (coerce_ref): Likewise.
9547 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9549 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9550 value and retrieve the dynamic type size.
9552 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9554 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9555 passed to sizeof is dynamic evaluate the argument to compute the length.
9557 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9558 Joel Brobecker <brobecker@adacore.com>
9560 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9561 (dwarf2_evaluate_property): New function.
9562 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9563 * dwarf2read.c (attr_to_dynamic_prop): New function.
9564 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9566 * gdbtypes.c: Include dwarf2loc.h.
9567 (is_dynamic_type): New function.
9568 (resolve_dynamic_type): New function.
9569 (resolve_dynamic_bounds): New function.
9570 (get_type_length): New function.
9571 (check_typedef): Use get_type_length to compute type length.
9572 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9573 (TYPE_LOW_BOUND_KIND): New macro.
9574 (is_dynamic_type): New function prototype.
9575 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9576 to resolve dynamic properties of the type. Update comment.
9577 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9579 2014-04-14 Richard Henderson <rth@redhat.com>
9581 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9583 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9584 Doug Evans <xdje42@gmail.com>
9586 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9587 dereference TYPE_CODE_REF values.
9589 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9591 Revert the following changes due to regressions:
9593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9594 (dwarf2_evaluate_property): New function.
9595 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9596 * dwarf2read.c (attr_to_dynamic_prop): New function.
9597 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9599 * gdbtypes.c: Include dwarf2loc.h.
9600 (is_dynamic_type): New function.
9601 (resolve_dynamic_type): New function.
9602 (resolve_dynamic_bounds): New function.
9603 (get_type_length): New function.
9604 (check_typedef): Use get_type_length to compute type length.
9605 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9606 (TYPE_LOW_BOUND_KIND): New macro.
9607 (is_dynamic_type): New function prototype.
9608 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9609 to resolve dynamic properties of the type. Update comment.
9610 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9612 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9613 passed to sizeof is dynamic evaluate the argument to compute the length.
9615 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9616 value and retrieve the dynamic type size.
9618 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9619 (ada_template_to_fixed_record_type_1): Likewise.
9620 (ada_to_fixed_type_1): Likewise.
9621 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9622 (cp_print_value): Likewise.
9623 * d-valprint.c (dynamic_array_type): Likewise.
9624 * eval.c (evaluate_subexp_with_coercion): Likewise.
9625 * findvar.c (address_of_variable): Likewise.
9626 * jv-valprint.c (java_value_print): Likewise.
9627 * valops.c (value_ind): Likewise.
9628 * value.c (coerce_ref): Likewise.
9630 * c-typeprint.c (c_type_print_varspec_suffix): Added
9631 check for not yet resolved high bound. If unresolved, print
9632 "variable length" string to the console instead of random
9635 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9636 property and store it as the high bound and flag the range accordingly.
9637 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9638 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9639 * gdbtypes.h (enum range_flags): New enum.
9640 (struct range_bounds): Add flags member.
9642 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9643 points to a constant blob.
9645 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9646 (evaluate_subexp_standard): Pass noside argument.
9647 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9648 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9649 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9650 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9651 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9653 2014-04-11 Keith Seitz <keiths@redhat.com>
9656 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9657 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9660 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9662 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9663 (evaluate_subexp_standard): Pass noside argument.
9664 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9665 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9666 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9667 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9668 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9672 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9673 points to a constant blob.
9675 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9677 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9678 property and store it as the high bound and flag the range accordingly.
9679 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9680 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9681 * gdbtypes.h (enum range_flags): New enum.
9682 (struct range_bounds): Add flags member.
9684 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9686 * c-typeprint.c (c_type_print_varspec_suffix): Added
9687 check for not yet resolved high bound. If unresolved, print
9688 "variable length" string to the console instead of random
9691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9693 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9694 (ada_template_to_fixed_record_type_1): Likewise.
9695 (ada_to_fixed_type_1): Likewise.
9696 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9697 (cp_print_value): Likewise.
9698 * d-valprint.c (dynamic_array_type): Likewise.
9699 * eval.c (evaluate_subexp_with_coercion): Likewise.
9700 * findvar.c (address_of_variable): Likewise.
9701 * jv-valprint.c (java_value_print): Likewise.
9702 * valops.c (value_ind): Likewise.
9703 * value.c (coerce_ref): Likewise.
9705 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9707 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9708 value and retrieve the dynamic type size.
9710 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9712 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9713 passed to sizeof is dynamic evaluate the argument to compute the length.
9715 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9717 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9718 (dwarf2_evaluate_property): New function.
9719 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9720 * dwarf2read.c (attr_to_dynamic_prop): New function.
9721 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9723 * gdbtypes.c: Include dwarf2loc.h.
9724 (is_dynamic_type): New function.
9725 (resolve_dynamic_type): New function.
9726 (resolve_dynamic_bounds): New function.
9727 (get_type_length): New function.
9728 (check_typedef): Use get_type_length to compute type length.
9729 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9730 (TYPE_LOW_BOUND_KIND): New macro.
9731 (is_dynamic_type): New function prototype.
9732 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9733 to resolve dynamic properties of the type. Update comment.
9734 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9736 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9738 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9739 declaring high/low bounds and change uses accordingly. Call
9740 create_range_type instead of create_static_range_type.
9741 * gdbtypes.c (create_range_type): New function.
9742 (create_range_type): Convert bounds into struct bound_prop and pass
9743 them to create_range_type.
9744 * gdbtypes.h (struct bound_prop): New struct.
9745 (create_range_type): New function prototype.
9746 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9747 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9748 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9750 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9754 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9755 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9756 * ada-lang.c: All uses of create_range_type updated.
9757 * coffread.c: All uses of create_range_type updated.
9758 * dwarf2read.c: All uses of create_range_type updated.
9759 * f-exp.y: All uses of create_range_type updated.
9760 * m2-valprint.c: All uses of create_range_type updated.
9761 * mdebugread.c: All uses of create_range_type updated.
9762 * stabsread.c: All uses of create_range_type updated.
9763 * valops.c: All uses of create_range_type updated.
9764 * valprint.c: All uses of create_range_type updated.
9766 2014-04-10 Pedro Alves <palves@redhat.com>
9768 * breakpoint.c (single_step_breakpoints)
9769 (single_step_gdbarch): Move up in the file.
9770 (one_breakpoint_xfer_memory): New function, factored out from ...
9771 (breakpoint_xfer_memory): ... here. Also process single-step
9774 2014-04-09 Tristan Gingold <gingold@adacore.com>
9776 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9778 (darwin_decode_exception_message): Free port only after use.
9780 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9782 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9783 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9784 when setting the size of call_length.
9786 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9788 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9789 dereference TYPE_CODE_REF values.
9791 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9793 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9794 end of warning message.
9796 2014-04-03 Doug Evans <dje@google.com>
9798 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9799 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9801 2014-04-02 Alan Modra <amodra@gmail.com>
9803 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9804 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9805 (struct symbol_file_add_from_memory_args): Add size field.
9806 (find_vdso_size): New function.
9807 (add_vsyscall_page): Attempt to find vdso size.
9809 2014-04-01 Doug Evans <dje@google.com>
9811 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9813 2014-04-01 Tristan Gingold <gingold@adacore.com>
9815 * darwin-nat.c (darwin_encode_reply): Add prototype.
9816 (darwin_decode_exception_message): Reply to unknown inferiors.
9817 (darwin_decode_message): Handle message by id. Ignore message
9818 to unknown inferior.
9819 (darwin_wait): Discard unknown messages, add debug trace.
9821 2014-03-31 Doug Evans <dje@google.com>
9823 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9826 2014-03-31 Doug Evans <dje@google.com>
9828 New option "set print symbol-loading".
9830 * solib.c (solib_read_symbols): Only print symbol loading messages
9832 (solib_add): If symbol loading is in "brief" mode, notify user
9833 symbols are being loaded.
9834 (reload_shared_libraries_1): Ditto.
9835 * symfile.c (print_symbol_loading_off): New static global.
9836 (print_symbol_loading_brief): New static global.
9837 (print_symbol_loading_full): New static global.
9838 (print_symbol_loading_enums): New static global.
9839 (print_symbol_loading): New static global.
9840 (print_symbol_loading_p): New function.
9841 (symbol_file_add_with_addrs): Only print symbol loading messages
9843 (_initialize_symfile): Register "print symbol-loading" set/show
9845 * symfile.h (print_symbol_loading_p): Declare.
9847 2014-03-30 Doug Evans <xdje42@gmail.com>
9849 * infrun.c (set_last_target_status): New function.
9850 (handle_inferior_event): Call it.
9852 2014-03-30 Doug Evans <xdje42@gmail.com>
9854 * inferior.h (enum stop_kind): Improve comment.
9856 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9858 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9859 a reference, strip the reference layer before calling
9860 the lang_ops value_has_mutated callback.
9862 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9864 Remove some globals from our parser.
9865 * language.c (unk_lang_parser): Add "struct parser_state"
9867 * language.h (struct language_defn) <la_parser>: Likewise.
9868 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9869 (initialize_expout): Add "struct parser_state" argument.
9870 Rewrite function to use the parser state.
9871 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9872 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9873 write_exp_elt_longcst, write_exp_elt_dblcst,
9874 write_exp_elt_decfloatcst, write_exp_elt_type,
9875 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9876 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9877 write_dollar_variable): Likewise.
9878 (parse_exp_in_context_1): Use parser state.
9879 (insert_type_address_space): Add "struct parser_state" argument.
9881 (increase_expout_size): New function.
9882 * parser-defs.h: Forward declare "struct language_defn" and
9883 "struct parser_state".
9884 (expout, expout_size, expout_ptr): Remove extern declarations.
9885 (parse_gdbarch, parse_language): Rewrite macro declarations to
9886 accept the parser state.
9887 (struct parser_state): New struct.
9888 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9889 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9890 write_exp_elt_decfloatcst, write_exp_elt_type,
9891 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9892 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9893 write_exp_msymbol, write_dollar_variable,
9894 mark_struct_expression, insert_type_address_space): Add "struct
9895 parser_state" argument.
9896 (increase_expout_size): New function.
9897 * utils.c (do_clear_parser_state): New function.
9898 (make_cleanup_clear_parser_state): Likewise.
9899 * utils.h (make_cleanup_clear_parser_state): New function
9901 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9902 Update calls to write_exp* in order to pass the parser state.
9903 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9904 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9905 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9906 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9907 * stap-probe.c (stap_parse_register_operand): Likewise.
9908 (stap_parse_single_operand): Likewise.
9909 (stap_parse_argument_1): Likewise.
9910 (stap_parse_argument): Use parser state.
9911 * stap-probe.h: Include "parser-defs.h".
9912 (struct stap_parse_info) <pstate>: New field.
9913 * c-exp.y (parse_type): Rewrite to use parser state.
9914 (yyparse): Redefine to c_parse_internal.
9915 (pstate): New global variable.
9916 (parse_number): Add "struct parser_state" argument.
9917 (write_destructor_name): Likewise.
9918 (type_exp): Update calls to write_exp* and similars in order to
9920 (exp1, exp, variable, qualified_name, space_identifier,
9921 typename, typebase): Likewise.
9922 (write_destructor_name, parse_number, lex_one_token,
9923 classify_name, classify_inner_name, c_parse): Add "struct
9924 parser_state" argument. Update function to use parser state.
9925 * c-lang.h: Forward declare "struct parser_state".
9926 (c_parse): Add "struct parser_state" argument.
9927 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9928 (yyparse): Redefine macro to ada_parse_internal.
9929 (pstate): New variable.
9930 (write_int, write_object_renaming, write_var_or_type,
9931 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9932 type_int, type_long, type_long_long, type_float, type_double,
9933 type_long_double, type_char, type_boolean, type_system_address):
9934 Add "struct parser_state" argument.
9935 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9936 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9937 var_or_type, aggregate, aggregate_component_list,
9938 positional_list, others, component_group,
9939 component_associations): Update calls to write_exp* and similar
9940 functions in order to use parser state.
9941 (ada_parse, write_var_from_sym, write_int,
9942 write_exp_op_with_string, write_object_renaming,
9943 find_primitive_type, write_selectors, write_ambiguous_var,
9944 write_var_or_type, write_name_assoc, type_int, type_long,
9945 type_long_long, type_float, type_double, type_long_double,
9946 type_char, type_boolean, type_system_address): Add "struct
9947 parser_state" argument. Adjust function to use parser state.
9948 * ada-lang.c (parse): Likewise.
9949 * ada-lang.h: Forward declare "struct parser_state".
9950 (ada_parse): Add "struct parser_state" argument.
9951 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9952 calls to both functions.
9953 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9955 (yyparse): Redefine macro to f_parse_internal.
9956 (pstate): New variable.
9957 (parse_number): Add "struct parser_state" argument.
9958 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9959 and similars in order to use parser state.
9960 (parse_number): Adjust code to use parser state.
9962 (f_parse): New function.
9963 * f-lang.h: Forward declare "struct parser_state".
9964 (f_parse): Add "struct parser_state" argument.
9965 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9967 (yyparse): Redefine macro for java_parse_internal.
9968 (pstate): New variable.
9969 (push_expression_name, push_expression_name, insert_exp): Add
9970 "struct parser_state" argument.
9971 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9972 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9973 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9974 PostIncrementExpression, PostDecrementExpression,
9975 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9976 UnaryExpressionNotPlusMinus, CastExpression,
9977 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9978 RelationalExpression, EqualityExpression, AndExpression,
9979 ExclusiveOrExpression, InclusiveOrExpression,
9980 ConditionalAndExpression, ConditionalOrExpression,
9981 ConditionalExpression, Assignment, LeftHandSide): Update
9982 calls to write_exp* and similars in order to use parser state.
9983 (parse_number): Ajust code to use parser state.
9985 (java_parse): New function.
9986 (push_variable): Add "struct parser_state" argument. Adjust
9987 code to user parser state.
9988 (push_fieldnames, push_qualified_expression_name,
9989 push_expression_name, insert_exp): Likewise.
9990 * jv-lang.h: Forward declare "struct parser_state".
9991 (java_parse): Add "struct parser_state" argument.
9992 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9994 (yyparse): Redefine macro to m2_parse_internal.
9995 (pstate): New variable.
9996 (type_exp, exp, fblock, variable, type): Update calls to
9997 write_exp* and similars to use parser state.
9999 (m2_parse): New function.
10000 * m2-lang.h: Forward declare "struct parser_state".
10001 (m2_parse): Add "struct parser_state" argument.
10002 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10003 * objc-lang.h: Forward declare "struct parser_state".
10004 (end_msglist): Add "struct parser_state" argument.
10005 * p-exp.y (parse_type): Rewrite macro to use parser state.
10006 (yyparse): Redefine macro to pascal_parse_internal.
10007 (pstate): New variable.
10008 (parse_number): Add "struct parser_state" argument.
10009 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10010 write_exp* and similars in order to use parser state.
10011 (parse_number, yylex): Adjust code to use parser state.
10012 (pascal_parse): New function.
10013 * p-lang.h: Forward declare "struct parser_state".
10014 (pascal_parse): Add "struct parser_state" argument.
10015 * go-exp.y (parse_type): Rewrite macro to use parser state.
10016 (yyparse): Redefine macro to go_parse_internal.
10017 (pstate): New variable.
10018 (parse_number): Add "struct parser_state" argument.
10019 (type_exp, exp1, exp, variable, type): Update calls to
10020 write_exp* and similars in order to use parser state.
10021 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10022 to use parser state.
10023 (go_parse): Likewise.
10024 * go-lang.h: Forward declare "struct parser_state".
10025 (go_parse): Add "struct parser_state" argument.
10027 2014-03-27 Doug Evans <dje@google.com>
10029 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10031 2014-03-27 Doug Evans <dje@google.com>
10033 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10034 Remove argument abbrev_section. All callers updated.
10036 2014-03-27 Doug Evans <dje@google.com>
10038 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10039 addr_base, ranges_base.
10041 2014-03-26 Keith Seitz <keiths@redhat.com>
10043 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10044 types, not VAR_DOMAIN.
10046 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10048 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10050 * features/nios2-linux.c: Regenerated.
10051 * features/nios2.c: Regenerated.
10053 2014-03-25 Pedro Alves <palves@redhat.com>
10055 * cli/cli-script.c (script_from_file): Force the interpreter to
10058 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10060 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10061 small stack allocation.
10063 2014-03-24 Tristan Gingold <gingold@adacore.com>
10065 * darwin-nat.c (exc_server): Remove unused prototype.
10066 (darwin_dump_message): Correctly display data on x86_64.
10067 (darwin_encode_reply): Fix style.
10068 Add comments and fix indentation.
10070 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10072 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10074 2014-03-22 Doug Evans <xdje42@gmail.com>
10076 * infcmd.c: Whitespace fixes.
10077 (interrupt_command): Merge two function comments into one.
10079 2014-03-22 Doug Evans <xdje42@gmail.com>
10081 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10084 2014-03-22 Yao Qi <yao@codesourcery.com>
10086 * remote.c (target_read_live_memory): Remove.
10087 (memory_xfer_live_readonly_partial): Rename it to
10088 remote_xfer_live_readonly_partial. Remove argument 'object'.
10089 All callers updated. Call remote_read_bytes_1
10090 instead of target_read_live_memory.
10091 * tracepoint.c (set_traceframe_number): Remove.
10092 (make_cleanup_restore_traceframe_number): Likewise .
10093 * tracepoint.h (set_traceframe_number): Remove declaration.
10094 (make_cleanup_restore_traceframe_number): Likewise.
10096 2014-03-22 Yao Qi <yao@codesourcery.com>
10098 * remote.c (remote_read_bytes): Move code on reading from the
10100 (remote_read_bytes_1): ... here. New function.
10102 2014-03-22 Yao Qi <yao@codesourcery.com>
10104 * ctf.c (ctf_xfer_partial): Check the return value of
10105 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10106 return TARGET_XFER_UNAVAILABLE.
10107 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10108 * target.c (target_read_live_memory): Move it to remote.c.
10109 (memory_xfer_live_readonly_partial): Likewise.
10110 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10111 * remote.c (target_read_live_memory): Moved from target.c.
10112 (memory_xfer_live_readonly_partial): Likewise.
10113 (remote_read_bytes): Factored out from
10114 memory_xfer_partial_1.
10116 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10118 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10121 2014-03-21 Pedro Alves <palves@redhat.com>
10123 * infrun.c (normal_stop): Extend comment.
10125 2014-03-21 Hui Zhu <hui@codesourcery.com>
10126 Pedro Alves <palves@redhat.com>
10128 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10130 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10131 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10132 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10134 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10136 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10137 `z' formatted output modifier.
10139 2014-03-20 Tom Tromey <tromey@redhat.com>
10140 Sergio Durigan Junior <sergiodj@redhat.com>
10142 * probe.c (parse_probes): Turn assert into an ordinary error.
10143 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10144 exceptions when parsing probes. Rearrange the code for clarity.
10146 2014-03-20 Tom Tromey <tromey@redhat.com>
10149 * top.c (execute_command): Only dispatch events if the command
10150 started the target.
10152 2014-03-20 Tom Tromey <tromey@redhat.com>
10155 * infcall.c: Include event-top.h.
10156 (run_inferior_call): Call async_disable_stdin if needed.
10158 2014-03-20 Pedro Alves <palves@redhat.com>
10160 * infrun.c (prepare_to_proceed): Delete.
10161 (thread_still_needs_step_over): New function.
10162 (find_thread_needs_step_over): New function.
10163 (proceed): If the current thread needs a step-over, set its
10164 steping_over_breakpoint flag. Adjust to use
10165 find_thread_needs_step_over instead of prepare_to_proceed.
10166 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10167 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10169 (switch_back_to_stepped_thread): Step over breakpoints of all
10170 threads not the stepping thread, before switching back to the
10173 2014-03-20 Pedro Alves <palves@redhat.com>
10175 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10177 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10178 * infrun.c (saved_singlestep_ptid)
10179 (stepping_past_singlestep_breakpoint): Delete.
10180 (resume): Remove stepping_past_singlestep_breakpoint handling.
10181 (proceed): Store the prev_pc of the stepping thread too.
10182 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10184 (enum infwait_states): Delete infwait_thread_hop_state.
10185 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10187 (handle_inferior_event): Adjust.
10188 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10189 handling and the thread-hop code. Before removing single-step
10190 breakpoints, check whether the thread hit a single-step breakpoint
10191 of another thread. If it did, the trap is not a random signal.
10192 (switch_back_to_stepped_thread): If the event thread hit a
10193 single-step breakpoint, unblock it before switching to the
10194 stepping thread. Handle the case of the stepped thread having
10196 (keep_going): Handle the case of the current thread moving past a
10197 single-step breakpoint.
10199 2014-03-20 Pedro Alves <palves@redhat.com>
10201 PR breakpoints/7143
10202 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10203 are being stepped over.
10204 (breakpoint_address_match): Make extern.
10205 * breakpoint.h (breakpoint_address_match): New declaration.
10206 * inferior.h (stepping_past_instruction_at): New declaration.
10207 * infrun.c (struct step_over_info): New type.
10208 (step_over_info): New global.
10209 (set_step_over_info, clear_step_over_info)
10210 (stepping_past_instruction_at): New functions.
10211 (handle_inferior_event): Clear the step-over info when
10212 trap_expected is cleared.
10213 (resume): Remove now stale comment.
10214 (clear_proceed_status): Clear step-over info.
10215 (proceed): Adjust step-over handling to set or clear the step-over
10216 info instead of removing all breakpoints.
10217 (handle_signal_stop): When setting up a thread-hop, don't remove
10219 (stop_stepping): Clear step-over info.
10220 (keep_going): Adjust step-over handling to set or clear step-over
10221 info and then always inserting breakpoints, instead of removing
10222 all breakpoints when stepping over one.
10224 2014-03-20 Pedro Alves <palves@redhat.com>
10226 * infrun.c (previous_inferior_ptid): Adjust comment.
10227 (deferred_step_ptid): Delete.
10228 (infrun_thread_ptid_changed, prepare_to_proceed)
10229 (init_wait_for_inferior): Adjust.
10230 (handle_signal_stop): Delete deferred_step_ptid handling.
10232 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10235 * defs.h (sync_quit_force_run): New declaration.
10236 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10237 * event-top.c (async_sigterm_handler): New declaration.
10238 (async_sigterm_token): New variable.
10239 (async_init_signals): Create also async_sigterm_token.
10240 (async_sigterm_handler): New function.
10241 (sync_quit_force_run): New variable.
10242 (handle_sigterm): Replace quit_force call by other calls.
10243 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10245 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10247 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10248 offset into SPE pseudo registers.
10250 2014-03-18 Pedro Alves <palves@redhat.com>
10253 * inferior.h (print_stop_event): Declare.
10254 * infrun.c (print_stop_event): New, factored out from ...
10255 (normal_stop): ... this.
10256 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10257 of bpstat_print/print_stack_frame.
10259 2014-03-17 Tom Tromey <tromey@redhat.com>
10261 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10263 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10265 * ada-lang.c (decode_constrained_packed_array): Perform a
10266 minimal coercion for reference with coerce_ref instead of
10269 2014-03-17 Tristan Gingold <gingold@adacore.com>
10271 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10272 (darwin_solib_create_inferior_hook): Emit a warning if version
10275 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10277 * python/py-value.c (get_field_flag): Cast flag_name argument to
10278 PyObject_GetAttrString to support Python 2.4.
10280 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10282 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10283 (Global Maintainers): Remove Jan Kratochvil.
10285 2014-03-14 Pedro Alves <palves@redhat.com>
10287 * inferior.h (terminal_ours_for_output): Rename to ...
10288 (child_terminal_ours_for_output): ... this.
10289 (terminal_save_ours): Rename to ...
10290 (child_terminal_save_ours): ... this.
10291 (terminal_ours): Rename to ...
10292 (child_terminal_ours): ... this.
10293 (terminal_inferior): Rename to ...
10294 (child_terminal_inferior): ... this.
10295 (terminal_init_inferior): Rename to ...
10296 (child_terminal_init_inferior): ... this.
10297 (terminal_init_inferior_with_pgrp): Rename to ...
10298 (child_terminal_init_inferior_with_pgrp): ... this.
10299 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10300 (child_terminal_init_with_pgrp): ... this.
10301 (terminal_save_ours): Rename to ...
10302 (child_terminal_save_ours): ... this.
10303 (terminal_init_inferior): Rename to ...
10304 (child_terminal_init): ... this. Adjust.
10305 (terminal_inferior): Rename to ...
10306 (child_terminal_inferior): ... this.
10307 (terminal_ours_for_output): Rename to ...
10308 (child_terminal_ours_for_output): ... this. Adjust.
10309 (terminal_ours): Rename to ...
10310 (child_terminal_ours): ... this.
10311 (terminal_ours_1): Rename to ...
10312 (child_terminal_ours_1): ... this. Adjust.
10313 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10314 * windows-nat.c (do_initial_windows_stuff): Adjust.
10315 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10316 (gnu_terminal_init): ... this. Adjust.
10317 (gnu_target): Adjust.
10318 * inf-child.c (inf_child_target): Adjust.
10320 2014-03-13 Doug Evans <xdje42@gmail.com>
10323 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10326 2014-03-13 Doug Evans <xdje42@gmail.com>
10328 * value.c (record_latest_value): Call release_value_or_incref
10329 instead of release_value.
10331 2014-03-13 Pedro Alves <palves@redhat.com>
10333 * procfs.c (procfs_target): Don't override to_shortname,
10334 to_longname or to_doc.
10336 2014-03-13 Pedro Alves <palves@redhat.com>
10338 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10339 Unix in user visible strings.
10341 2014-03-12 Stan Shebs <stan@codesourcery.com>
10343 * gdbtypes.h: Annotate comments for Doxygen, add a page
10344 block comment with some general info.
10346 2014-03-12 Pedro Alves <palves@redhat.com>
10348 * infcmd.c (prepare_execution_command): New function, factored out
10349 from several execution commands.
10350 (run_command_1, continue_command, step_1, jump_command)
10351 (signal_command, until_command, advance_command, finish_command)
10352 (attach_command): Use prepare_execution_command.
10354 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10356 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10357 (MAX_BPTS): Define.
10358 (MAX_WPTS): Define.
10359 (struct arm_linux_thread_points): Removed.
10360 (struct arm_linux_process_info): New.
10361 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10362 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10363 (arm_linux_find_breakpoints_by_tid): Removed.
10364 (struct arch_lwp_info): New.
10365 (arm_linux_find_process_pid): New functions.
10366 (arm_linux_add_process): New functions.
10367 (arm_linux_process_info_get): New functions.
10368 (arm_linux_forget_process): New function.
10369 (arm_linux_get_debug_reg_state): New function.
10370 (struct update_registers_data): New.
10371 (update_registers_callback): New function.
10372 (arm_linux_insert_hw_breakpoint1): Updated.
10373 (arm_linux_remove_hw_breakpoint1): Updated.
10374 (arm_linux_insert_hw_breakpoint): Updated.
10375 (arm_linux_remove_hw_breakpoint): Updated.
10376 (arm_linux_insert_watchpoint): Updated.
10377 (arm_linux_remove_watchpoint): Updated.
10378 (arm_linux_new_thread): Updated.
10379 (arm_linux_prepare_to_resume): New function.
10380 (arm_linux_new_fork): New function.
10381 (_initialize_arm_linux_nat): Updated.
10383 2014-03-12 Pedro Alves <palves@redhat.com>
10385 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10387 2014-03-12 Tom Tromey <tromey@redhat.com>
10389 * inf-child.c (return_zero): New function.
10390 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10391 * aix-thread.c (aix_thread_inferior_created): New function.
10392 (aix_thread_attach): Remove.
10393 (init_aix_thread_ops): Don't set to_attach.
10394 (_initialize_aix_thread): Register inferior_created observer.
10395 * corelow.c (init_core_ops): Don't set to_attach or
10396 to_create_inferior.
10397 * exec.c (init_exec_ops): Don't set to_attach or
10398 to_create_inferior.
10399 * infcmd.c (run_command_1): Use find_run_target. Make direct
10401 (attach_command): Use find_attach_target. Make direct target
10403 * record-btrace.c (init_record_btrace_ops): Don't set
10404 to_create_inferior.
10405 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10407 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10408 set to_create_inferior.
10409 * target.c (complete_target_initialization): Add assertion.
10410 (target_create_inferior): Remove.
10411 (find_default_attach, find_default_create_inferior): Remove.
10412 (find_attach_target, find_run_target): New functions.
10413 (find_default_is_async_p, find_default_can_async_p)
10414 (target_supports_non_stop, target_attach): Remove.
10415 (init_dummy_target): Don't set to_create_inferior or
10416 to_supports_non_stop.
10417 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10418 TARGET_DEFAULT_FUNC.
10419 <to_create_inferior>: Add comment.
10420 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10421 TARGET_DEFAULT_RETURN.
10422 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10423 (find_attach_target, find_run_target): Declare.
10424 (target_create_inferior): Remove.
10425 (target_has_execution_1): Update comment.
10426 (target_supports_non_stop): Remove.
10427 * target-delegates.c: Rebuild.
10429 2014-03-12 Pedro Alves <palves@redhat.com>
10431 * inf-child.h: Update comment to not mention Unix.
10433 2014-03-12 Pedro Alves <palves@redhat.com>
10435 * inf-child.c: Update top comment to not mention Unix. Add
10436 generic comment describing how this target is meant to be used.
10437 (inf_child_post_attach, inf_child_post_startup_inferior)
10438 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10441 2014-03-12 Pedro Alves <palves@redhat.com>
10443 * nto-procfs.c: Include inf-child.h.
10444 (procfs_ops): Delete global.
10445 (procfs_can_run): Delete method.
10446 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10447 target pointer instead of referencing procfs_ops.
10448 (procfs_prepare_to_store): Delete.
10449 (init_procfs_ops): Delete function.
10450 (procfs_target): New function, based on init_procfs_ops, but
10451 inherit inf_child_target.
10452 (_initialize_procfs): Use procfs_target.
10454 2014-03-12 Pedro Alves <palves@redhat.com>
10456 * windows-nat.c: Include inf-child.h.
10457 (windows_ops): Delete global.
10458 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10460 (init_windows_ops): Delete function.
10461 (windows_target): New function, based on init_windows_ops, but
10462 inherit inf_child_target.
10463 (_initialize_windows_nat): Use windows_target. Install x86
10464 specific target methods here.
10466 2014-03-10 Doug Evans <xdje42@gmail.com>
10468 * guile/guile.c (call_initialize_gdb_module): New function.
10469 (initialize_guile): Replace call to scm_init_guile with call to
10472 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10474 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10475 in call to TYPE_CODE macro.
10477 2014-03-10 Jerome Guitton <guitton@adacore.com>
10479 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10480 Resolve tagged types to full view.
10482 2014-03-10 Hui Zhu <hui@codesourcery.com>
10484 * target.h (target_insert_breakpoint): Remove "hardware" from its
10487 2014-03-07 Doug Evans <dje@google.com>
10489 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10491 2014-03-07 Doug Evans <dje@google.com>
10493 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10494 Remove unused local comp_dir_attr. Assert exactly one of
10495 stub_comp_unit_die, stub_comp_dir is non-NULL.
10497 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10499 * target.h (complete_target_initialization, add_target):
10502 2014-03-07 Pedro Alves <palves@redhat.com>
10504 * go32-nat.c: Include inf-child.h.
10505 (go32_ops): Delete global.
10506 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10508 (go32_create_inferior): Push the passed in target pointer instead
10509 of referencing go32_ops.
10510 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10511 (go32_target): New function, based on init_go32_ops, but inherit
10513 (_initialize_go32_nat): Use go32_target. Move parts of
10514 init_go32_ops here.
10516 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10518 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10519 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10520 SYMBOL_VALUE_ADDRESS.
10521 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10523 2014-03-06 Yao Qi <yao@codesourcery.com>
10525 * breakpoint.c (get_tracepoint_by_number): Remove argument
10526 optional_p. All callers updated. Adjust comments. Update
10528 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10530 2014-03-06 Yao Qi <yao@codesourcery.com>
10532 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10533 early if get_number returns zero. Use 'p' instead of 'args'.
10535 2014-03-06 Yao Qi <yao@codesourcery.com>
10537 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10540 2014-03-06 Yao Qi <yao@codesourcery.com>
10542 PR breakpoints/16508
10543 * tracepoint.c (check_trace_running): New function.
10544 (trace_find_command): Move code to check_trace_running and
10545 call check_trace_running.
10546 (trace_find_pc_command): Likewise.
10547 (trace_find_tracepoint_command): Likewise.
10548 (trace_find_line_command): Likewise.
10549 (trace_find_range_command): Likewise.
10550 * tracepoint.h (check_trace_running): Likewise.
10551 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10553 2014-03-06 Yao Qi <yao@codesourcery.com>
10555 * target.h (struct target_ops) <to_traceframe_info>: Use
10556 TARGET_DEFAULT_NORETURN (tcomplain ()).
10557 * target-delegates.c: Regenerated.
10559 2014-03-05 Pedro Alves <palves@redhat.com>
10562 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10563 void. Update comment.
10564 (dcache_xfer_memory): Delete.
10565 (dcache_read_memory_partial): New, based on the read bits of
10566 dcache_xfer_memory.
10567 (dcache_update): Add status parameter. Use ULONGEST for len, and
10568 adjust. Discard cache lines if the reason for the update was
10570 * dcache.h (dcache_xfer_memory): Delete declaration.
10571 (dcache_read_memory_partial): New declaration.
10572 (dcache_update): Update prototype.
10573 * target.c (raw_memory_xfer_partial): Update the dcache here.
10574 (memory_xfer_partial_1): Don't handle dcache writes here.
10576 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10578 * remote-sim.c (gdbsim_load): Add const to prog.
10580 2014-03-03 Tom Tromey <tromey@redhat.com>
10582 * elfread.c (probe_key): Change to bfd_data.
10583 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10584 now per-BFD, not per-objfile.
10585 * stap-probe.c (stap_probe_destroy): Update comment.
10586 (handle_stap_probe): Allocate on the per-BFD obstack.
10588 2014-03-03 Tom Tromey <tromey@redhat.com>
10590 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10591 * breakpoint.c (create_longjmp_master_breakpoint): Use
10593 (add_location_to_breakpoint, bkpt_probe_insert_location)
10594 (bkpt_probe_remove_location): Update.
10595 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10596 * elfread.c (elf_symfile_relocate_probe): Remove.
10597 (elf_probe_fns): Update.
10598 (insert_exception_resume_breakpoint): Change type of "probe"
10599 parameter to bound_probe.
10600 (check_exception_resume): Update.
10601 * objfiles.c (objfile_relocate1): Don't relocate probes.
10602 * probe.c (bound_probe_s): New typedef.
10603 (parse_probes): Use get_probe_address. Set sal's objfile.
10604 (find_probe_by_pc): Return a bound_probe.
10605 (collect_probes): Return a VEC(bound_probe_s).
10606 (compare_probes): Update.
10607 (gen_ui_out_table_header_info): Change type of "probes"
10609 (info_probes_for_ops): Update.
10610 (get_probe_address): New function.
10611 (probe_safe_evaluate_at_pc): Update.
10612 * probe.h (struct probe_ops) <get_probe_address>: New field.
10613 <set_semaphore, clear_semaphore>: Add objfile parameter.
10614 (struct probe) <objfile>: Remove field.
10616 <address>: Update comment.
10617 (struct bound_probe): New.
10618 (find_probe_by_pc): Return a bound_probe.
10619 (get_probe_address): Declare.
10620 * solib-svr4.c (struct probe_and_action) <address>: New field.
10621 (hash_probe_and_action, equal_probe_and_action): Update.
10622 (register_solib_event_probe): Add address parameter.
10623 (solib_event_probe_at): Update.
10624 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10626 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10627 (stap_get_probe_address): New function.
10628 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10629 (compile_probe_arg): Update.
10630 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10632 (handle_stap_probe): Don't relocate the probe.
10633 (stap_relocate): Remove.
10634 (stap_gen_info_probes_table_values): Update.
10635 (stap_probe_ops): Remove stap_relocate.
10636 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10637 (debug_sym_probe_fns): Update.
10638 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10639 * symtab.c (init_sal): Use memset.
10640 * symtab.h (struct symtab_and_line) <objfile>: New field.
10641 * tracepoint.c (start_tracing, stop_tracing): Update.
10643 2014-03-03 Tom Tromey <tromey@redhat.com>
10645 * probe.h (parse_probes, find_probe_by_pc)
10646 (find_probes_in_objfile): Fix comments.
10648 2014-03-02 Doug Evans <xdje42@gmail.com>
10650 * infrun.c (handle_signal_stop): Replace test for
10651 TARGET_WAITKIND_STOPPED with an assert.
10653 2014-03-02 Doug Evans <xdje42@gmail.com>
10655 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10657 2014-03-02 Doug Evans <xdje42@gmail.com>
10659 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10661 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10663 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10665 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10667 * i386obsd-nat.c: Include "obsd-nat.h".
10668 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10670 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10672 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10674 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10676 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10678 * mips64obsd-nat.c: Include "obsd-nath".
10679 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10681 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10683 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10685 * amd64obsd-nat.c: Include "obsd-nat,h.
10686 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10688 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10690 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10692 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10693 (find_overload_match): Update call to find_oload_champ.
10694 (find_oload_champ_namespace_loop): Likewise
10696 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10698 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10700 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10701 * config/sparc/obsd64.mh: New file.
10702 * sparc64obsd-nat.c: New file.
10704 * obsd-nat.h: New file.
10705 * obsd-nat.c: New file.
10706 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10707 (ALLDEPFILES): Add obsd-nat.c.
10709 2014-02-28 Tom Tromey <tromey@redhat.com>
10711 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10712 * cli-out.h (cli_ui_out_impl): Now const.
10713 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10714 * ui-out.c (struct ui_out) <impl>: Now const.
10715 (default_ui_out_impl): Now const.
10716 (ui_out_new): Make 'impl' parameter const.
10717 * ui-out.h (ui_out_new): Update.
10719 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10721 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10723 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10725 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10727 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10729 Additional PR 8882 fix.
10730 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10732 2014-02-27 Pedro Alves <palves@redhat.com>
10734 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10737 2014-02-27 Pedro Alves <palves@redhat.com>
10740 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10741 * nat/linux-waitpid.c: Include string.h.
10742 (status_to_str): Moved here and made extern.
10743 * nat/linux-waitpid.h (status_to_str): New declaration.
10745 2014-02-27 Hui Zhu <hui@codesourcery.com>
10748 * infrun.c (ptid_match): Move ...
10749 * common/ptid.c (ptid_match): ... here.
10750 * inferior.h (ptid_match): Move ...
10751 * common/ptid.h (ptid_match): ... here.
10753 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10755 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10756 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10759 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10761 * obsd-tdep.c (obsd_auxv_parse): New function.
10762 (obsd_init_abi): Set auxv_parse.
10764 * gdbarch.sh (auxv_parse): New.
10765 * gdbarch.h: Regenerated.
10766 * gdbarch.c: Regenerated.
10767 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10769 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10771 * guile/scm-value.c (gdbscm_history_append_x): New function.
10772 (value_functions): Add it.
10774 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10776 * dwarf2read.c (attr_value_as_address): New function.
10777 (dwarf2_find_base_address, read_call_site_scope): Use
10778 attr_value_as_address in place of DW_ADDR.
10779 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10780 the low and high addresses. Slight rework of the handling
10781 of the high pc being a constant form, and limit it to
10782 DWARF verson 4 or higher.
10783 (dwarf2_record_block_ranges): Likewise.
10784 (read_partial_die): Likewise.
10785 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10787 2014-02-26 Tom Tromey <tromey@redhat.com>
10789 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10791 2014-02-26 Tom Tromey <tromey@redhat.com>
10793 * elfread.c (elf_read_minimal_symbols): Return early if
10794 minimal symbols have already been read. Add "ei" parameter.
10795 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10796 * minsyms.c (prim_record_minimal_symbol_full): Update.
10797 * objfiles.h (struct objstats) <n_minsyms>: Move...
10798 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10799 * symmisc.c (print_objfile_statistics): Update.
10801 2014-02-26 Tom Tromey <tromey@redhat.com>
10803 * elfread.c (elf_read_minimal_symbols): New function, from
10805 (elf_symfile_read): Call it.
10807 2014-02-26 Tom Tromey <tromey@redhat.com>
10809 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10810 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10811 (lookup_minimal_symbol_solib_trampoline)
10812 (lookup_minimal_symbol_by_pc_section_1)
10813 (lookup_minimal_symbol_and_objfile): Update.
10814 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10815 Don't allocate a minimal symbol if minsyms have already been read.
10816 (build_minimal_symbol_hash_tables): Update.
10817 (install_minimal_symbols): Do nothing if minsyms already read.
10818 Use the per-BFD obstack.
10819 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10820 * objfiles.c (allocate_objfile): Call
10821 terminate_minimal_symbol_table later.
10822 (have_minimal_symbols): Update.
10823 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10824 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10825 Move from struct objfile.
10826 <minsyms_read>: New field.
10827 (struct objfile) <msymbols, minimal_symbol_count,
10828 msymbol_hash, msymbol_demangled_hash>: Move.
10829 (ALL_OBJFILE_MSYMBOLS): Update.
10830 * symfile.c (read_symbols): Set minsyms_read.
10831 (reread_symbols): Update.
10832 * symmisc.c (dump_objfile, dump_msymbols): Update.
10834 2014-02-26 Tom Tromey <tromey@redhat.com>
10836 * minsyms.c (msymbols_sort): Remove.
10837 * minsyms.h (msymbols_sort): Remove.
10838 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10839 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10840 * elfread.c (elf_symtab_read): Don't add section offsets.
10841 * xcoffread.c (record_minimal_symbol): Don't add section offset
10842 to minimal symbol address.
10843 * somread.c (text_offset, data_offset): Remove.
10844 (som_symtab_read): Don't add section offsets to minimal symbol
10846 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10847 Don't add section offsets to minimal symbols.
10848 * coffread.c (coff_symtab_read): Don't add section offsets
10849 to minimal symbol addresses.
10850 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10851 to minimal symbol addresses.
10852 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10853 section offset to minimal symbol addresses.
10854 * mdebugread.c (parse_partial_symbols): Don't add section
10855 offset to minimal symbol addresses.
10856 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10857 offset to minimal symbol addresses.
10859 2014-02-26 Tom Tromey <tromey@redhat.com>
10861 * ada-lang.c (ada_main_name): Update.
10862 (ada_add_standard_exceptions): Update.
10863 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10864 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10865 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10866 * auxv.c (ld_so_xfer_auxv): Update.
10867 * avr-tdep.c (avr_scan_prologue): Update.
10868 * ax-gdb.c (gen_var_ref): Update.
10869 * blockframe.c (get_pc_function_start)
10870 (find_pc_partial_function_gnu_ifunc): Update.
10871 * breakpoint.c (create_overlay_event_breakpoint)
10872 (create_longjmp_master_breakpoint)
10873 (create_std_terminate_master_breakpoint)
10874 (create_exception_master_breakpoint): Update.
10875 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10876 * c-valprint.c (c_val_print): Update.
10877 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10878 * common/agent.c (agent_look_up_symbols): Update.
10879 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10880 * dwarf2loc.c (call_site_to_target_addr): Update.
10881 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10882 * elfread.c (elf_gnu_ifunc_record_cache)
10883 (elf_gnu_ifunc_resolve_by_got): Update.
10884 * findvar.c (default_read_var_value): Update.
10885 * frame.c (inside_main_func): Update.
10886 * frv-tdep.c (frv_frame_this_id): Update.
10887 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10888 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10890 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10891 (hppa_hpux_find_dummy_bpaddr): Update.
10892 * hppa-tdep.c (hppa_symbol_address): Update.
10893 * infcmd.c (until_next_command): Update.
10894 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10896 * linespec.c (minsym_found, add_minsym): Update.
10897 * linux-nat.c (get_signo): Update.
10898 * linux-thread-db.c (inferior_has_bug): Update.
10899 * m32c-tdep.c (m32c_return_value)
10900 (m32c_m16c_address_to_pointer): Update.
10901 * m32r-tdep.c (m32r_frame_this_id): Update.
10902 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10903 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10904 * maint.c (maintenance_translate_address): Update.
10905 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10906 (frob_address): New function.
10907 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10908 frob_address. Rename parameter to "pc_in".
10909 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10911 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10913 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10914 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10915 * objc-lang.c (find_objc_msgsend): Update.
10916 * objfiles.c (objfile_relocate1): Update.
10917 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10918 * p-valprint.c (pascal_val_print): Update.
10919 * parse.c (write_exp_msymbol): Update.
10920 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10921 (ppc_elfv2_skip_entrypoint): Update.
10922 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10923 * printcmd.c (build_address_symbolic, msym_info)
10924 (address_info): Update.
10925 * proc-service.c (ps_pglobal_lookup): Update.
10926 * psymtab.c (find_pc_sect_psymtab_closer)
10927 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10928 Change msymbol parameter to bound_minimal_symbol.
10929 * ravenscar-thread.c (get_running_thread_id): Update.
10930 * remote.c (remote_check_symbols): Update.
10931 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10933 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10934 * solib-dsbt.c (lm_base): Update.
10935 * solib-frv.c (lm_base, main_got): Update.
10936 * solib-irix.c (locate_base): Update.
10937 * solib-som.c (som_solib_create_inferior_hook)
10938 (link_map_start): Update.
10939 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10940 * solib-svr4.c (elf_locate_base, enable_break): Update.
10941 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10942 (flush_ea_cache): Update.
10943 * stabsread.c (define_symbol, scan_file_globals): Update.
10944 * stack.c (find_frame_funname): Update.
10945 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10946 (debug_qf_find_pc_sect_symtab): Update.
10947 * symfile.c (simple_read_overlay_table)
10948 (simple_overlay_update): Update.
10949 * symfile.h (struct quick_symbol_functions)
10950 <find_pc_sect_symtab>: Change type of msymbol to
10951 bound_minimal_symbol.
10952 * symmisc.c (dump_msymbols): Update.
10953 * symtab.c (find_pc_sect_symtab_via_partial)
10954 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10955 (search_symbols, print_msymbol_info): Update.
10956 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10957 (MSYMBOL_VALUE_ADDRESS): Redefine.
10958 (BMSYMBOL_VALUE_ADDRESS): New macro.
10959 * tracepoint.c (scope_info): Update.
10960 * tui/tui-disasm.c (tui_find_disassembly_address)
10961 (tui_get_begin_asm_address): Update.
10962 * valops.c (find_function_in_inferior): Update.
10963 * value.c (value_static_field, value_fn_field): Update.
10965 2014-02-26 Tom Tromey <tromey@redhat.com>
10967 * ada-lang.c (ada_update_initial_language): Update.
10968 (ada_main_name, ada_has_this_exception_support): Update.
10969 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10970 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10971 * arm-tdep.c (arm_skip_stub): Update.
10972 * auxv.c (ld_so_xfer_auxv): Update.
10973 * avr-tdep.c (avr_scan_prologue): Update.
10974 * ax-gdb.c (gen_var_ref): Update.
10975 * breakpoint.c (struct breakpoint_objfile_data)
10976 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10977 type to bound_minimal_symbol.
10978 (create_overlay_event_breakpoint)
10979 (create_longjmp_master_breakpoint)
10980 (create_std_terminate_master_breakpoint)
10981 (create_exception_master_breakpoint): Update.
10982 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10983 * c-exp.y (classify_name): Update.
10984 * coffread.c (coff_symfile_read): Update.
10985 * common/agent.c (agent_look_up_symbols): Update.
10986 * d-lang.c (d_main_name): Update.
10987 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10988 * dec-thread.c (enable_dec_thread): Update.
10989 * dwarf2loc.c (call_site_to_target_addr): Update.
10990 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10991 * eval.c (evaluate_subexp_standard): Update.
10992 * findvar.c (struct minsym_lookup_data) <result>: Change type
10993 to bound_minimal_symbol.
10995 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10996 * frame.c (inside_main_func): Update.
10997 * frv-tdep.c (frv_frame_this_id): Update.
10998 * gcore.c (call_target_sbrk): Update.
10999 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11000 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11002 * go-lang.c (go_main_name): Update.
11003 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11004 (hppa_hpux_find_import_stub_for_addr): Update.
11005 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11006 Update. Change return type.
11007 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11009 * jit.c (jit_breakpoint_re_set_internal): Update.
11010 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11012 * linux-nat.c (get_signo): Update.
11013 * linux-thread-db.c (inferior_has_bug): Update
11014 * m32c-tdep.c (m32c_return_value)
11015 (m32c_m16c_address_to_pointer): Update.
11016 * m32r-tdep.c (m32r_frame_this_id): Update.
11017 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11018 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11019 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11020 lookup_minimal_symbol. Change return type.
11021 (lookup_minimal_symbol): Remove.
11022 (lookup_bound_minimal_symbol): Update.
11023 (lookup_minimal_symbol_text): Change return type.
11024 (lookup_minimal_symbol_solib_trampoline): Change return type.
11025 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11026 (lookup_minimal_symbol_solib_trampoline): Change return type.
11027 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11028 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11029 (value_nsstring, find_imps): Update.
11030 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11031 * p-lang.c (pascal_main_name): Update.
11032 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11033 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11034 * proc-service.c (ps_pglobal_lookup): Update.
11035 * ravenscar-thread.c (get_running_thread_msymbol): Change
11037 (has_ravenscar_runtime, get_running_thread_id): Update.
11038 * remote.c (remote_check_symbols): Update.
11039 * sol-thread.c (ps_pglobal_lookup): Update.
11040 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11041 * solib-dsbt.c (lm_base): Update.
11042 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11044 * solib-irix.c (locate_base): Update.
11045 * solib-som.c (som_solib_create_inferior_hook)
11046 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11048 * solib-spu.c (spu_enable_break): Update.
11049 * solib-svr4.c (elf_locate_base, enable_break): Update.
11050 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11051 (flush_ea_cache): Update.
11052 * stabsread.c (define_symbol): Update.
11053 * symfile.c (simple_read_overlay_table): Update.
11054 * symtab.c (find_pc_sect_line): Update.
11055 * tracepoint.c (scope_info): Update.
11056 * tui-disasm.c (tui_get_begin_asm_address): Update.
11057 * value.c (value_static_field): Update.
11059 2014-02-26 Tom Tromey <tromey@redhat.com>
11061 * minsyms.c (prim_record_minimal_symbol_full): Use
11062 SET_MSYMBOL_VALUE_ADDRESS.
11063 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11064 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11065 SET_MSYMBOL_VALUE_ADDRESS.
11066 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11067 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11069 2014-02-26 Tom Tromey <tromey@redhat.com>
11071 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11072 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11073 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11074 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11075 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11076 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11077 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11078 * ada-lang.c (ada_main_name): Update.
11079 (ada_lookup_simple_minsym): Update.
11080 (ada_make_symbol_completion_list): Update.
11081 (ada_add_standard_exceptions): Update.
11082 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11083 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11084 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11085 * arm-tdep.c (skip_prologue_function): Update.
11086 (arm_skip_stack_protector, arm_skip_stub): Update.
11087 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11088 (arm_wince_skip_main_prologue): Update.
11089 * auxv.c (ld_so_xfer_auxv): Update.
11090 * avr-tdep.c (avr_scan_prologue): Update.
11091 * ax-gdb.c (gen_var_ref): Update.
11092 * block.c (call_site_for_pc): Update.
11093 * blockframe.c (get_pc_function_start): Update.
11094 (find_pc_partial_function_gnu_ifunc): Update.
11095 * breakpoint.c (create_overlay_event_breakpoint): Update.
11096 (create_longjmp_master_breakpoint): Update.
11097 (create_std_terminate_master_breakpoint): Update.
11098 (create_exception_master_breakpoint): Update.
11099 (resolve_sal_pc): Update.
11100 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11101 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11103 * c-valprint.c (c_val_print): Update.
11104 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11105 * coffread.c (coff_symfile_read): Update.
11106 * common/agent.c (agent_look_up_symbols): Update.
11107 * dbxread.c (find_stab_function_addr): Update.
11108 (end_psymtab): Update.
11109 * dwarf2loc.c (call_site_to_target_addr): Update.
11110 (func_verify_no_selftailcall): Update.
11111 (tailcall_dump): Update.
11112 (call_site_find_chain_1): Update.
11113 (dwarf_expr_reg_to_entry_parameter): Update.
11114 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11115 (elf_gnu_ifunc_resolve_by_got): Update.
11116 * f-valprint.c (info_common_command): Update.
11117 * findvar.c (read_var_value): Update.
11118 * frame.c (get_prev_frame_1): Update.
11119 (inside_main_func): Update.
11120 * frv-tdep.c (frv_skip_main_prologue): Update.
11121 (frv_frame_this_id): Update.
11122 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11123 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11124 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11125 (gnuv3_skip_trampoline): Update.
11126 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11127 (hppa64_hpux_in_solib_call_trampoline): Update.
11128 (hppa_hpux_skip_trampoline_code): Update.
11129 (hppa64_hpux_search_dummy_call_sequence): Update.
11130 (hppa_hpux_find_import_stub_for_addr): Update.
11131 (hppa_hpux_find_dummy_bpaddr): Update.
11132 * hppa-tdep.c (hppa_symbol_address)
11133 (hppa_lookup_stub_minimal_symbol): Update.
11134 * i386-tdep.c (i386_skip_main_prologue): Update.
11135 (i386_pe_skip_trampoline_code): Update.
11136 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11137 * infcall.c (get_function_name): Update.
11138 * infcmd.c (until_next_command): Update.
11139 * jit.c (jit_breakpoint_re_set_internal): Update.
11140 (jit_inferior_init): Update.
11141 * linespec.c (minsym_found): Update.
11142 (add_minsym): Update.
11143 * linux-fork.c (info_checkpoints_command): Update.
11144 * linux-nat.c (get_signo): Update.
11145 * linux-thread-db.c (inferior_has_bug): Update.
11146 * m32c-tdep.c (m32c_return_value): Update.
11147 (m32c_m16c_address_to_pointer): Update.
11148 (m32c_m16c_pointer_to_address): Update.
11149 * m32r-tdep.c (m32r_frame_this_id): Update.
11150 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11151 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11152 * maint.c (maintenance_translate_address): Update.
11153 * minsyms.c (add_minsym_to_hash_table): Update.
11154 (add_minsym_to_demangled_hash_table): Update.
11155 (msymbol_objfile): Update.
11156 (lookup_minimal_symbol): Update.
11157 (iterate_over_minimal_symbols): Update.
11158 (lookup_minimal_symbol_text): Update.
11159 (lookup_minimal_symbol_by_pc_name): Update.
11160 (lookup_minimal_symbol_solib_trampoline): Update.
11161 (lookup_minimal_symbol_by_pc_section_1): Update.
11162 (lookup_minimal_symbol_and_objfile): Update.
11163 (prim_record_minimal_symbol_full): Update.
11164 (compare_minimal_symbols): Update.
11165 (compact_minimal_symbols): Update.
11166 (build_minimal_symbol_hash_tables): Update.
11167 (install_minimal_symbols): Update.
11168 (terminate_minimal_symbol_table): Update.
11169 (find_solib_trampoline_target): Update.
11170 (minimal_symbol_upper_bound): Update.
11171 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11172 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11173 (mips_skip_pic_trampoline_code): Update.
11174 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11175 * objc-lang.c (selectors_info): Update.
11176 (classes_info): Update.
11177 (find_methods): Update.
11178 (find_imps): Update.
11179 (find_objc_msgsend): Update.
11180 * objfiles.c (objfile_relocate1): Update.
11181 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11182 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11183 * p-valprint.c (pascal_val_print): Update.
11184 * parse.c (write_exp_msymbol): Update.
11185 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11186 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11187 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11188 * printcmd.c (build_address_symbolic): Update.
11189 (sym_info): Update.
11190 (address_info): Update.
11191 * proc-service.c (ps_pglobal_lookup): Update.
11192 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11193 (find_pc_sect_psymtab): Update.
11194 * python/py-framefilter.c (py_print_frame): Update.
11195 * ravenscar-thread.c (get_running_thread_id): Update.
11196 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11198 * remote.c (remote_check_symbols): Update.
11199 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11200 (rs6000_skip_trampoline_code): Update.
11201 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11202 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11203 * solib-dsbt.c (lm_base): Update.
11204 * solib-frv.c (lm_base): Update.
11205 (main_got): Update.
11206 * solib-irix.c (locate_base): Update.
11207 * solib-som.c (som_solib_create_inferior_hook): Update.
11208 (som_solib_desire_dynamic_linker_symbols): Update.
11209 (link_map_start): Update.
11210 * solib-spu.c (spu_enable_break): Update.
11211 (ocl_enable_break): Update.
11212 * solib-svr4.c (elf_locate_base): Update.
11213 (enable_break): Update.
11214 * spu-tdep.c (spu_get_overlay_table): Update.
11215 (spu_catch_start): Update.
11216 (flush_ea_cache): Update.
11217 * stabsread.c (define_symbol): Update.
11218 (scan_file_globals): Update.
11219 * stack.c (find_frame_funname): Update.
11220 (frame_info): Update.
11221 * symfile.c (simple_read_overlay_table): Update.
11222 (simple_overlay_update): Update.
11223 * symmisc.c (dump_msymbols): Update.
11224 * symtab.c (fixup_section): Update.
11225 (find_pc_sect_line): Update.
11226 (skip_prologue_sal): Update.
11227 (search_symbols): Update.
11228 (print_msymbol_info): Update.
11229 (rbreak_command): Update.
11230 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11231 (completion_list_objc_symbol): Update.
11232 (default_make_symbol_completion_list_break_on): Update.
11233 * tracepoint.c (scope_info): Update.
11234 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11235 (tui_get_begin_asm_address): Update.
11236 * valops.c (find_function_in_inferior): Update.
11237 * value.c (value_static_field): Update.
11238 (value_fn_field): Update.
11240 2014-02-26 Tom Tromey <tromey@redhat.com>
11242 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11243 bound minimal symbols. Move code that knows about minsym
11245 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11247 * minsyms.h (minimal_symbol_upper_bound): Declare.
11248 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11249 minimal_symbol_upper_bound.
11251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11253 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11254 Use the type's name if its basic type does not have a tag.
11256 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11258 * dwarf2read.c (read_subrange_type): Add comment.
11260 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11262 * dwarf2read.c (update_enumeration_type_from_children): New
11263 function, mostly extracted from process_structure_scope.
11264 (read_enumeration_type): Call update_enumeration_type_from_children.
11265 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11266 and flag_flag_enum fields.
11268 2014-02-26 Pedro Alves <palves@redhat.com>
11270 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11271 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11272 to_xfer_partial method.
11274 2014-02-26 Pedro Alves <palves@redhat.com>
11276 * target.c (complete_target_initialization): Don't install
11277 default_xfer_partial as to_xfer_partial hook.
11278 (nomemory): Delete.
11279 (update_current_target): Don't INHERIT nor de_fault
11280 deprecated_xfer_memory. Delete de_fault macro.
11281 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11282 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11283 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11286 2014-02-26 Pedro Alves <palves@redhat.com>
11288 * go32-nat.c (my_write_child): New function.
11289 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11290 (go32_xfer_partial): New function.
11291 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11292 Instead install a to_xfer_partial hook.
11294 2014-02-26 Pedro Alves <palves@redhat.com>
11296 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11297 to_xfer_partial helper. Rewrite.
11298 (procfs_xfer_partial): New function.
11299 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11300 Install a to_xfer_partial hook.
11302 2014-02-26 Pedro Alves <palves@redhat.com>
11304 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11305 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11306 (m32r_xfer_partial): New function.
11307 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11308 Install a to_xfer_partial hook.
11310 2014-02-26 Pedro Alves <palves@redhat.com>
11312 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11314 (mips_xfer_partial): New function.
11315 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11316 hook. Install a to_xfer_partial hook.
11318 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11320 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11321 * gdbtypes.c (create_array_type_with_stride): New function,
11322 renaming create_array_type, but with an added parameter
11323 called "bit_stride".
11324 (create_array_type): Re-implement using
11325 create_array_type_with_stride.
11326 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11327 and DW_AT_bit_stride attributes.
11329 2014-02-26 Pedro Alves <palves@redhat.com>
11331 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11332 task-specific breakpoints.
11334 2014-02-25 Pedro Alves <palves@redhat.com>
11336 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11337 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11339 2014-02-25 Stan Shebs <stan@codesourcery.com>
11341 * defs.h: Annotate comments for Doxygen.
11343 2014-02-25 Tom Tromey <tromey@redhat.com>
11345 * target.h (target_ignore): Don't declare.
11346 * target.c (target_ignore): Remove.
11348 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11351 * auto-load.c (auto_load_objfile_script_1): Change filename to
11354 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11356 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11357 documentation. Adjust prototype to match the target_ops
11358 to_xfer_partial method. Adjust implementation accordingly.
11360 2014-02-25 Hui Zhu <hui@codesourcery.com>
11362 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11363 to_traceframe_info.
11365 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11367 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11368 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11369 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11370 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11371 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11372 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11373 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11374 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11376 (rl78_register_type): Use a data pointer type for SP and
11377 new pseudo registers mentioned above. Use a 16 bit integer
11378 type for all other register pairs.
11379 (rl78_register_name, rl78_g10_register_name): Update for
11380 new pseudo registers.
11381 (rl78_pseudo_register_read): Likewise.
11382 (rl78_pseudo_register_write): Likewise.
11383 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11384 to the newly added pseudo registers.
11386 2014-02-24 Doug Evans <dje@google.com>
11388 * value.c (record_latest_value): Fix comment.
11389 * printcmd.c (print_command_1): Remove code to handle -1 return from
11390 record_latest_value.
11392 2014-02-24 Pedro Alves <palves@redhat.com>
11394 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11395 deprecated_xfer_memory hook.
11396 (procfs_xfer_partial): Call procfs_xfer_memory instead
11397 of the deprecated_xfer_memory target hook.
11398 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11401 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11403 * windows-nat.c (windows_xfer_shared_libraries): Return
11404 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11405 requested object is TARGET_OBJECT_LIBRARIES.
11407 2014-02-24 Yao Qi <yao@codesourcery.com>
11409 * target.h (enum target_xfer_status)
11410 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11411 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11413 * corefile.c (memory_error_message): User updated.
11414 * exec.c (section_table_read_available_memory): Likewise.
11415 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11416 * target.c (target_xfer_status_to_string): Likewise.
11417 (raw_memory_xfer_partial): Likewise.
11418 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11419 * valops.c (read_value_memory): Likewise.
11420 * exec.h: Update comments.
11422 2014-02-24 Yao Qi <yao@codesourcery.com>
11424 * target.c (target_xfer_status_to_string): Rename argument err
11426 * target.h (target_xfer_status_to_string): Update declaration.
11427 Replace target_xfer_error_to_string with
11428 target_xfer_status_to_string in comment.
11430 2014-02-24 Yao Qi <yao@codesourcery.com>
11432 * mips-linux-nat.c (super_close): Update its type.
11433 (mips_linux_close): Pass 'self' to super_close.
11435 2014-02-24 Yao Qi <yao@codesourcery.com>
11437 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11438 * corefile.c (read_memory): Adjusted.
11439 * target.c (target_write_with_progress): Adjusted.
11441 2014-02-23 Yao Qi <yao@codesourcery.com>
11443 Revert two patches:
11445 2013-10-25 Yao Qi <yao@codesourcery.com>
11447 * remote.c (remote_traceframe_info): Return early if
11448 traceframe is not selected.
11450 2013-07-19 Yao Qi <yao@codesourcery.com>
11452 * target.c (update_current_target): Change the default action
11453 of 'to_traceframe_info' from tcomplain to return_zero.
11454 * target.h (struct target_ops) <to_traceframe_info>: Add more
11457 2014-02-23 Yao Qi <yao@codesourcery.com>
11459 * valops.c (read_value_memory): Rewrite it. Call
11460 target_xfer_partial in a loop.
11461 * exec.h (section_table_available_memory): Remove declaration.
11462 Move comments to ...
11463 * exec.c (section_table_available_memory): ... here. Make it
11466 2014-02-23 Yao Qi <yao@codesourcery.com>
11468 * exec.c (section_table_read_available_memory): New function.
11469 * exec.h (section_table_read_available_memory): Declare.
11470 * ctf.c (ctf_xfer_partial): Call
11471 section_table_read_available_memory.
11472 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11474 2014-02-23 Yao Qi <yao@codesourcery.com>
11476 * ctf.c (ctf_xfer_partial): Move code to ...
11477 * exec.c (exec_read_partial_read_only): ... it. New function.
11478 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11479 * tracefile.c: Include "exec.h".
11480 * exec.h (exec_read_partial_read_only): Declare.
11482 2014-02-23 Yao Qi <yao@codesourcery.com>
11484 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11485 (tfile_has_memory): Remove.
11486 (init_tfile_ops): Don't set fields to_has_all_memory and
11487 to_has_memory of tfile_ops.
11488 * tracefile.c (tracefile_has_all_memory): New function.
11489 (tracefile_has_memory): New function.
11490 (init_tracefile_ops): Initialize fields to_has_all_memory and
11491 to_has_memory of 'ops'.
11493 2014-02-23 Yao Qi <yao@codesourcery.com>
11495 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11496 (ctf_thread_alive, ctf_get_trace_status): Remove.
11497 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11498 init_tracefile_ops.
11499 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11500 (tfile_has_stack, tfile_has_registers): Remove.
11501 (tfile_thread_alive): Remove.
11502 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11503 init_tracefile_ops.
11504 * tracefile.c (tracefile_has_stack): New function.
11505 (tracefile_has_registers): New function.
11506 (tracefile_thread_alive): New function.
11507 (tracefile_get_trace_status): New function.
11508 (init_tracefile_ops): New function.
11509 * tracefile.h (init_tracefile_ops): Declare.
11511 2014-02-23 Yao Qi <yao@codesourcery.com>
11513 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11514 (O_LARGEFILE): Likewise.
11515 (tfile_ops): Likewise.
11516 (TRACE_HEADER_SIZE): Likewise.
11517 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11518 (cur_data_size): Likewise.
11519 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11520 (tfile_close, tfile_files_info): Likewise.
11521 (tfile_get_trace_status): Likewise.
11522 (tfile_get_tracepoint_status): Likewise.
11523 (tfile_get_traceframe_address): Likewise.
11524 (tfile_trace_find, match_blocktype): Likewise.
11525 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11526 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11527 (tfile_get_trace_state_variable_value): Likewise.
11528 (tfile_has_all_memory, tfile_has_memory): Likewise.
11529 (tfile_has_stack, tfile_has_registers): Likewise.
11530 (tfile_thread_alive, build_traceframe_info): Likewise.
11531 (tfile_traceframe_info, init_tfile_ops): Likewise.
11532 (_initialize_tracepoint): Don't call init_tfile_ops
11533 and add_target_with_completer.
11534 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11535 exec.h, completer.h and filenames.h.
11536 (_initialize_tracefile_tfile): New function.
11538 2014-02-23 Yao Qi <yao@codesourcery.com>
11540 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11542 (HFILES_NO_SRCDIR): Add tracefile.h.
11543 * ctf.c: Include "tracefile.h".
11544 * tracefile.h: New file.
11545 * tracefile.c: New file
11546 * tracefile-tfile.c: New file.
11547 * tracepoint.c: Include "tracefile.h".
11548 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11549 (stop_reason_names): Add const.
11550 (trace_file_writer_xfree): Move it to tracefile.c.
11551 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11552 (trace_save_ctf): Likewise.
11553 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11554 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11555 (tfile_write_header, tfile_write_regblock_type): Likewise.
11556 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11557 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11558 (tfile_write_raw_data, tfile_end): Likewise.
11559 (tfile_trace_file_writer_new): Likewise.
11560 (free_uploaded_tp): Make it extern.
11561 (free_uploaded_tsv): Make it extern.
11562 (_initialize_tracepoint): Move code to register command 'tsave'
11564 * tracepoint.h (stop_reason_names): Declare.
11565 (struct trace_frame_write_ops): Move it to tracefile.h.
11566 (struct trace_file_write_ops): Likewise.
11567 (struct trace_file_writer): Likewise.
11568 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11570 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11573 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11575 (get_cores_used_by_process): New parameter num_cores, use it.
11576 (linux_xfer_osdata_processes): Pass num_cores to it.
11577 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11580 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11582 * target.c (memory_xfer_partial): Fix length arg in call to
11583 breakpoint_xfer_memory.
11585 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11588 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11589 number comes after the + or - signs. Adjust length of register
11590 name to be extracted.
11592 2014-02-20 Tom Tromey <tromey@redhat.com>
11594 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11595 (ada_varobj_ops): Mark "extern".
11597 2014-02-20 Tom Tromey <tromey@redhat.com>
11599 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11601 2014-02-20 Doug Evans <xdje42@gmail.com>
11603 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11604 All callers updated.
11605 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11606 All callers updated.
11607 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11608 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11610 2014-02-20 lin zuojian <manjian2006@gmail.com>
11611 Joel Brobecker <brobecker@adacore.com>
11612 Doug Evans <xdje42@gmail.com>
11615 * dwarf2read.c (struct die_info): New member in_process.
11616 (reset_die_in_process): New function.
11617 (process_die): Set it at the start, reset when returning.
11618 (inherit_abstract_dies): Only call process_die if origin_child_die
11619 not already being processed.
11621 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11623 * windows-nat.c (handle_unload_dll): Add function documentation.
11624 (do_initial_windows_stuff): Add comment explaining why we wait
11625 until after inferior initialization has finished before
11626 processing all DLLs.
11628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11630 * windows-nat.c (get_module_name): Delete.
11631 (windows_get_exec_module_filename): New function, mostly
11632 inspired from get_module_name.
11633 (windows_pid_to_exec_file): Replace call to get_module_name
11634 by call to windows_get_exec_module_filename.
11636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11638 * windows-nat.c (handle_load_dll): Rewrite this function's
11639 introductory comment. Remove code using get_module_name
11640 to get the DLL's name.
11642 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11644 * windows-nat.c (get_windows_debug_event): Ignore
11645 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11646 if windows_initialization_done == 0.
11647 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11648 Adjust implementation to always load all DLLs.
11649 (do_initial_windows_stuff): Replace call to
11650 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11652 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11654 * windows-nat.c (_initialize_windows_nat): Deprecate the
11655 "dll-symbols" command. Turn the "add-shared-symbol-files"
11656 and "assf" aliases into commands, and deprecate them as well.
11657 * NEWS: Add entry explaining that "dll-symbols" and its two
11658 aliases are now deprecated.
11660 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11662 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11663 new-line in debug string. Remove trailing spaces.
11665 2014-02-19 Stan Shebs <stan@codesourcery.com>
11667 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11669 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11671 * NEWS: Add entry for the new feature
11672 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11675 2014-02-19 Stan Shebs <stan@codesourcery.com>
11677 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11679 2014-02-19 Pedro Alves <palves@redhat.com>
11681 * common/ptid.h (struct ptid): Mention that process_stratum
11682 targets should prefer ptid.lwp.
11684 2014-02-19 Pedro Alves <palves@redhat.com>
11686 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11687 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11688 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11689 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11690 store remote thread ids rather than ptid.tid.
11691 (_initialize_remote): Adjust.
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11695 * target.c (target_get_unwinder): Rewrite.
11696 (target_get_tailcall_unwinder): Rewrite.
11697 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11698 (record_btrace_to_get_tailcall_unwinder): New function.
11699 (init_record_btrace_ops): Update.
11700 * target.h (struct target_ops) <to_get_unwinder,
11701 to_get_tailcall_unwinder>: Now function pointers. Use
11702 TARGET_DEFAULT_RETURN.
11704 2014-02-19 Tom Tromey <tromey@redhat.com>
11706 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11708 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11710 2014-02-19 Tom Tromey <tromey@redhat.com>
11712 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11714 * target-delegates.c: Rebuild.
11715 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11716 TARGET_DEFAULT_FUNC.
11717 * target.c (default_target_decr_pc_after_break): Rename from
11718 forward_target_decr_pc_after_break. Simplify.
11719 (target_decr_pc_after_break): Rely on delegation.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.c (update_current_target): Do not INHERIT to_doc or
11724 to_magic. Do not de_fault to_open or to_close.
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11728 * gcore.h (objfile_find_memory_regions): Declare.
11729 * gcore.c (objfile_find_memory_regions): No longer static. Add
11731 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11732 * exec.c: Include gcore.h.
11733 (exec_set_find_memory_regions): Remove.
11734 (exec_find_memory_regions): Remove.
11735 (exec_do_find_memory_regions): Remove.
11736 (init_exec_ops): Update.
11737 * defs.h (exec_set_find_memory_regions): Remove.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * target-delegates.c: Rebuild.
11742 * target.h (struct target_ops) <to_extra_thread_info,
11743 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11744 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11745 not 0, in TARGET_DEFAULT_RETURN.
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11749 * target.c (complete_target_initialization): Remove casts. Use
11750 return_zero_has_execution.
11751 (return_zero): Add "ignore" argument.
11752 (return_zero_has_execution): New function.
11753 (init_dummy_target): Remove casts. Use
11754 return_zero_has_execution.
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11758 * target.c (update_current_target): Update comments. Do not
11759 INHERIT to_stratum.
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11765 * corelow.c (core_read_description): Delegate when needed.
11766 * remote.c (remote_read_description): Delegate when needed.
11767 * target-delegates.c: Rebuild.
11768 * target.c (target_read_description): Rewrite.
11769 * target.h (struct target_ops) <to_read_description>: Update
11770 comment. Use TARGET_DEFAULT_RETURN.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11777 (find_default_run_target): Check against delegate_can_run.
11778 * target.h (struct target_ops) <to_can_run>: Use
11779 TARGET_DEFAULT_RETURN.
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11783 * target-delegates.c: Rebuild.
11784 * target.c (target_disconnect): Unconditionally delegate.
11785 * target.h (struct target_ops) <to_disconnect>: Use
11786 TARGET_DEFAULT_NORETURN.
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11790 * record.c (record_stop): Unconditionally delegate.
11791 * target-delegates.c: Rebuild.
11792 * target.c (target_stop_recording): Unconditionally delegate.
11793 * target.h (struct target_ops) <to_stop_recording>: Use
11794 TARGET_DEFAULT_IGNORE.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target-delegates.c: Rebuild.
11799 * target.c (target_enable_btrace): Unconditionally delegate.
11800 * target.h (struct target_ops) <to_enable_btrace>: Use
11801 TARGET_DEFAULT_NORETURN.
11803 2014-02-19 Tom Tromey <tromey@redhat.com>
11805 * target-delegates.c: Rebuild.
11806 * target.c (target_read_btrace): Unconditionally delegate.
11807 * target.h (struct target_ops) <to_read_btrace>: Use
11808 TARGET_DEFAULT_NORETURN.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_teardown_btrace): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_teardown_btrace>: Use
11815 TARGET_DEFAULT_NORETURN.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_disable_btrace): Unconditionally delegate.
11821 * target.h (struct target_ops) <to_disable_btrace>: Use
11822 TARGET_DEFAULT_NORETURN.
11824 2014-02-19 Tom Tromey <tromey@redhat.com>
11826 * target-delegates.c: Rebuild.
11827 * target.c (default_search_memory): New function.
11828 (simple_search_memory): Update comment.
11829 (target_search_memory): Unconditionally delegate.
11830 * target.h (struct target_ops) <to_search_memory>: Use
11831 TARGET_DEFAULT_FUNC.
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11835 * auxv.c (default_auxv_parse): No longer static.
11836 (target_auxv_parse): Unconditionally delegate.
11837 * auxv.h (default_auxv_parse): Declare.
11838 * target-delegates.c: Rebuild.
11839 * target.c: Include auxv.h.
11840 * target.h (struct target_ops) <to_auxv_parse>: Use
11841 TARGET_DEFAULT_FUNC.
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11845 * target-delegates.c: Rebuild.
11846 * target.c (target_memory_map): Unconditionally delegate.
11847 * target.h (struct target_ops) <to_memory_map>: Use
11848 TARGET_DEFAULT_RETURN.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * target-delegates.c: Rebuild.
11853 * target.c (target_thread_alive): Unconditionally delegate.
11854 * target.h (struct target_ops) <to_thread_alive>: Use
11855 TARGET_DEFAULT_RETURN.
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11859 * target-delegates.c: Rebuild.
11860 * target.c (target_save_record): Unconditionally delegate.
11861 * target.h (struct target_ops) <to_save_record>: Use
11862 TARGET_DEFAULT_NORETURN.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target-delegates.c: Rebuild.
11867 * target.c (target_delete_record): Unconditionally delegate.
11868 * target.h (struct target_ops) <to_delete_record>: Use
11869 TARGET_DEFAULT_NORETURN.
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target-delegates.c: Rebuild.
11874 * target.c (target_record_is_replaying): Unconditionally
11876 * target.h (struct target_ops) <to_record_is_replaying>: Use
11877 TARGET_DEFAULT_RETURN.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_goto_record_begin): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_goto_record_begin>: Use
11884 TARGET_DEFAULT_NORETURN.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_goto_record_end): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_goto_record_end>: Use
11891 TARGET_DEFAULT_NORETURN.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_goto_record): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_goto_record>: Use
11898 TARGET_DEFAULT_NORETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_insn_history): Unconditionally delegate.
11904 * target.h (struct target_ops) <to_insn_history>: Use
11905 TARGET_DEFAULT_NORETURN.
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target-delegates.c: Rebuild.
11910 * target.c (target_insn_history_from): Unconditionally delegate.
11911 * target.h (struct target_ops) <to_insn_history_from>: Use
11912 TARGET_DEFAULT_NORETURN.
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_insn_history_range): Unconditionally delegate.
11918 * target.h (struct target_ops) <to_insn_history_range>: Use
11919 TARGET_DEFAULT_NORETURN.
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11923 * target-delegates.c: Rebuild.
11924 * target.c (target_call_history): Unconditionally delegate.
11925 * target.h (struct target_ops) <to_call_history>: Use
11926 TARGET_DEFAULT_NORETURN.
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11930 * target-delegates.c: Rebuild.
11931 * target.c (target_call_history_from): Unconditionally delegate.
11932 * target.h (struct target_ops) <to_call_history_from>: Use
11933 TARGET_DEFAULT_NORETURN.
11935 2014-02-19 Tom Tromey <tromey@redhat.com>
11937 * target-delegates.c: Rebuild.
11938 * target.c (target_call_history_range): Unconditionally delegate.
11939 * target.h (struct target_ops) <to_call_history_range>: Use
11940 TARGET_DEFAULT_NORETURN.
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11944 * target-delegates.c: Rebuild.
11945 * target.c (target_verify_memory): Unconditionally delegate.
11946 * target.h (struct target_ops) <to_verify_memory>: Use
11947 TARGET_DEFAULT_NORETURN.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target-delegates.c: Rebuild.
11952 * target.c (target_core_of_thread): Unconditionally delegate.
11953 * target.h (struct target_ops) <to_core_of_thread>: Use
11954 TARGET_DEFAULT_RETURN.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (target_flash_done): Unconditionally delegate.
11960 * target.h (struct target_ops) <to_flash_done>: Use
11961 TARGET_DEFAULT_NORETURN.
11963 2014-02-19 Tom Tromey <tromey@redhat.com>
11965 * target-delegates.c: Rebuild.
11966 * target.c (target_flash_erase): Unconditionally delegate.
11967 * target.h (struct target_ops) <to_flash_erase>: Use
11968 TARGET_DEFAULT_NORETURN.
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11972 * target-delegates.c: Rebuild.
11973 * target.c (target_get_section_table): Unconditionally delegate.
11974 * target.h (struct target_ops) <to_get_section_table>: Use
11975 TARGET_DEFAULT_RETURN.
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11979 * target-delegates.c: Rebuild.
11980 * target.c (target_pid_to_str): Unconditionally delegate.
11981 (init_dummy_target): Don't initialize to_pid_to_str.
11982 (default_pid_to_str): Rename from dummy_pid_to_str.
11983 * target.h (struct target_ops) <to_pid_to_str>: Use
11984 TARGET_DEFAULT_FUNC.
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11988 * target-delegates.c: Rebuild.
11989 * target.c (target_find_new_threads): Unconditionally delegate.
11990 * target.h (struct target_ops) <to_find_new_threads>: Use
11991 TARGET_DEFAULT_RETURN.
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11995 * target-delegates.c: Rebuild.
11996 * target.c (target_program_signals): Unconditionally delegate.
11997 * target.h (struct target_ops) <to_program_signals>: Use
11998 TARGET_DEFAULT_IGNORE.
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12002 * target-delegates.c: Rebuild.
12003 * target.c (target_pass_signals): Unconditionally delegate.
12004 * target.h (struct target_ops) <to_pass_signals>: Use
12005 TARGET_DEFAULT_IGNORE.
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12009 * target-delegates.c: Rebuild.
12010 * target.c (default_mourn_inferior): New function.
12011 (target_mourn_inferior): Unconditionally delegate.
12012 * target.h (struct target_ops) <to_mourn_inferior>: Use
12013 TARGET_DEFAULT_FUNC.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target-delegates.c: Rebuild.
12018 * target.c (default_follow_fork): New function.
12019 (target_follow_fork): Unconditionally delegate.
12020 * target.h (struct target_ops) <to_follow_fork>: Use
12021 TARGET_DEFAULT_FUNC.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target-delegates.c: Rebuild.
12026 * target.c (target_kill): Unconditionally delegate.
12027 * target.h (struct target_ops) <to_kill>: Use
12028 TARGET_DEFAULT_NORETURN.
12030 2014-02-19 Tom Tromey <tromey@redhat.com>
12032 * target-delegates.c: Rebuild.
12033 * target.c (target_masked_watch_num_registers): Unconditionally
12035 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12036 Use TARGET_DEFAULT_RETURN.
12038 2014-02-19 Tom Tromey <tromey@redhat.com>
12040 * target-delegates.c: Rebuild.
12041 * target.c (target_remove_mask_watchpoint): Unconditionally
12043 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12044 TARGET_DEFAULT_RETURN.
12046 2014-02-19 Tom Tromey <tromey@redhat.com>
12048 * target-delegates.c: Rebuild.
12049 * target.c (target_insert_mask_watchpoint): Unconditionally
12051 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12052 TARGET_DEFAULT_RETURN.
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * target-delegates.c: Rebuild.
12057 * target.c (target_ranged_break_num_registers): Unconditionally
12059 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12060 Use TARGET_DEFAULT_RETURN.
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12064 * target-delegates.c: Rebuild.
12065 * target.c (target_fetch_registers): Unconditionally delegate.
12066 * target.h (struct target_ops) <to_fetch_registers>: Use
12067 TARGET_DEFAULT_NORETURN.
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12071 * target-delegates.c: Rebuild.
12072 * target.c (update_current_target): Don't inherit or default
12074 * target.h (struct target_ops) <to_stop>: Use
12075 TARGET_DEFAULT_IGNORE.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target-delegates.c: Rebuild.
12080 * target.c (update_current_target): Don't inherit or default
12081 to_can_run_breakpoint_commands.
12082 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12083 Use TARGET_DEFAULT_RETURN.
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12087 * target-delegates.c: Rebuild.
12088 * target.c (update_current_target): Don't inherit or default
12089 to_supports_evaluation_of_breakpoint_conditions.
12090 * target.h (struct target_ops)
12091 <to_supports_evaluation_of_breakpoint_conditions>: Use
12092 TARGET_DEFAULT_RETURN.
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_augmented_libraries_svr4_read.
12099 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12100 Use TARGET_DEFAULT_RETURN.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12107 * target.h (struct target_ops) <to_can_use_agent>: Use
12108 TARGET_DEFAULT_RETURN.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12115 * target.h (struct target_ops) <to_use_agent>: Use
12116 TARGET_DEFAULT_NORETURN.
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target-delegates.c: Rebuild.
12121 * target.c (update_current_target): Don't inherit or default
12122 to_traceframe_info.
12123 (return_null): Remove.
12124 * target.h (struct target_ops) <to_traceframe_info>: Use
12125 TARGET_DEFAULT_RETURN.
12127 2014-02-19 Tom Tromey <tromey@redhat.com>
12129 * target-delegates.c: Rebuild.
12130 * target.c (update_current_target): Don't inherit or default
12131 to_static_tracepoint_markers_by_strid.
12132 * target.h (struct target_ops)
12133 <to_static_tracepoint_markers_by_strid>: Use
12134 TARGET_DEFAULT_NORETURN.
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target-delegates.c: Rebuild.
12139 * target.c (update_current_target): Don't inherit or default
12140 to_static_tracepoint_marker_at.
12141 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12142 Use TARGET_DEFAULT_RETURN.
12144 2014-02-19 Tom Tromey <tromey@redhat.com>
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12148 to_set_permissions.
12149 * target.h (struct target_ops) <to_set_permissions>: Use
12150 TARGET_DEFAULT_IGNORE.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_get_tib_address.
12157 * target.h (struct target_ops) <to_get_tib_address>: Use
12158 TARGET_DEFAULT_NORETURN.
12160 2014-02-19 Tom Tromey <tromey@redhat.com>
12162 * target-delegates.c: Rebuild.
12163 * target.c (update_current_target): Don't inherit or default
12164 to_set_trace_notes.
12165 * target.h (struct target_ops) <to_set_trace_notes>: Use
12166 TARGET_DEFAULT_RETURN.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't initialize
12172 to_set_trace_buffer_size.
12173 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12174 TARGET_DEFAULT_IGNORE.
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12178 * target-delegates.c: Rebuild.
12179 * target.c (update_current_target): Don't inherit or default
12180 to_set_circular_trace_buffer.
12181 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12182 TARGET_DEFAULT_IGNORE.
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12186 * target-delegates.c: Rebuild.
12187 * target.c (update_current_target): Don't inherit or default
12188 to_set_disconnected_tracing.
12189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12190 TARGET_DEFAULT_IGNORE.
12192 2014-02-19 Tom Tromey <tromey@redhat.com>
12194 * target-delegates.c: Rebuild.
12195 * target.c (update_current_target): Don't inherit or default
12196 to_get_min_fast_tracepoint_insn_len.
12197 (return_minus_one): Remove.
12198 * target.h (struct target_ops)
12199 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12201 2014-02-19 Tom Tromey <tromey@redhat.com>
12203 * target-delegates.c: Rebuild.
12204 * target.c (update_current_target): Don't inherit or default
12205 to_get_raw_trace_data.
12206 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12207 TARGET_DEFAULT_NORETURN.
12209 2014-02-19 Tom Tromey <tromey@redhat.com>
12211 * target-delegates.c: Rebuild.
12212 * target.c (update_current_target): Don't inherit or default
12213 to_upload_trace_state_variables.
12214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12215 Use TARGET_DEFAULT_RETURN.
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_upload_tracepoints.
12222 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12223 TARGET_DEFAULT_RETURN.
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12227 * target-delegates.c: Rebuild.
12228 * target.c (update_current_target): Don't inherit or default
12229 to_save_trace_data.
12230 * target.h (struct target_ops) <to_save_trace_data>: Use
12231 TARGET_DEFAULT_NORETURN.
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12235 * target-delegates.c: Rebuild.
12236 * target.c (update_current_target): Don't inherit or default
12237 to_get_trace_state_variable_value.
12238 * target.h (struct target_ops)
12239 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * target-delegates.c: Rebuild.
12244 * target.c (update_current_target): Don't inherit or default
12246 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12250 * target-delegates.c: Rebuild.
12251 * target.c (update_current_target): Don't inherit or default
12253 * target.h (struct target_ops) <to_trace_stop>: Use
12254 TARGET_DEFAULT_NORETURN.
12256 2014-02-19 Tom Tromey <tromey@redhat.com>
12258 * target-delegates.c: Rebuild.
12259 * target.c (update_current_target): Don't inherit or default
12260 to_get_tracepoint_status.
12261 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12262 TARGET_DEFAULT_NORETURN.
12264 2014-02-19 Tom Tromey <tromey@redhat.com>
12266 * target-delegates.c: Rebuild.
12267 * target.c (update_current_target): Don't inherit or default
12268 to_get_trace_status.
12269 * target.h (struct target_ops) <to_get_trace_status>: Use
12270 TARGET_DEFAULT_RETURN.
12272 2014-02-19 Tom Tromey <tromey@redhat.com>
12274 * target-delegates.c: Rebuild.
12275 * target.c (update_current_target): Don't inherit or default
12277 * target.h (struct target_ops) <to_trace_start>: Use
12278 TARGET_DEFAULT_NORETURN.
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * target-delegates.c: Rebuild.
12283 * target.c (update_current_target): Don't inherit or default
12284 to_trace_set_readonly_regions.
12285 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12286 Use TARGET_DEFAULT_NORETURN.
12288 2014-02-19 Tom Tromey <tromey@redhat.com>
12290 * target-delegates.c: Rebuild.
12291 * target.c (update_current_target): Don't inherit or default
12292 to_disable_tracepoint.
12293 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12294 TARGET_DEFAULT_NORETURN.
12296 2014-02-19 Tom Tromey <tromey@redhat.com>
12298 * target-delegates.c: Rebuild.
12299 * target.c (update_current_target): Don't inherit or default
12300 to_enable_tracepoint.
12301 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12302 TARGET_DEFAULT_NORETURN.
12304 2014-02-19 Tom Tromey <tromey@redhat.com>
12306 * target-delegates.c: Rebuild.
12307 * target.c (update_current_target): Don't inherit or default
12308 to_download_trace_state_variable.
12309 * target.h (struct target_ops) <to_download_trace_state_variable>:
12310 Use TARGET_DEFAULT_NORETURN.
12312 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target-delegates.c: Rebuild.
12315 * target.c (update_current_target): Don't inherit or default
12316 to_can_download_tracepoint.
12317 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12318 TARGET_DEFAULT_RETURN.
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12322 * target-delegates.c: Rebuild.
12323 * target.c (update_current_target): Don't inherit or default
12324 to_download_tracepoint.
12325 * target.h (struct target_ops) <to_download_tracepoint>: Use
12326 TARGET_DEFAULT_NORETURN.
12328 2014-02-19 Tom Tromey <tromey@redhat.com>
12330 * target-delegates.c: Rebuild.
12331 * target.c (update_current_target): Don't inherit or default
12333 * target.h (struct target_ops) <to_trace_init>: Use
12334 TARGET_DEFAULT_RETURN.
12336 2014-02-19 Tom Tromey <tromey@redhat.com>
12338 * target-delegates.c: Rebuild.
12339 * target.c (update_current_target): Don't inherit or default
12340 to_supports_string_tracing.
12341 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12342 TARGET_DEFAULT_RETURN.
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12346 * target-delegates.c: Rebuild.
12347 * target.c (update_current_target): Don't inherit or default
12348 to_supports_enable_disable_tracepoint.
12349 * target.h (struct target_ops)
12350 <to_supports_enable_disable_tracepoint>: Use
12351 TARGET_DEFAULT_RETURN.
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12355 * target-delegates.c: Rebuild.
12356 * target.c (update_current_target): Don't inherit or default
12357 to_supports_multi_process.
12358 * target.h (struct target_ops) <to_supports_multi_process>: Use
12359 TARGET_DEFAULT_RETURN.
12361 2014-02-19 Tom Tromey <tromey@redhat.com>
12363 * target-delegates.c: Rebuild.
12364 * target.c (update_current_target): Don't inherit or default
12365 to_get_ada_task_ptid.
12366 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12367 TARGET_DEFAULT_FUNC.
12369 2014-02-19 Tom Tromey <tromey@redhat.com>
12371 * target-delegates.c: Rebuild.
12372 * target.c (update_current_target): Don't inherit or default
12373 to_thread_architecture.
12374 * target.h (struct target_ops) <to_thread_architecture>: Use
12375 TARGET_DEFAULT_FUNC.
12377 2014-02-19 Tom Tromey <tromey@redhat.com>
12379 * target-delegates.c: Rebuild.
12380 * target.c (update_current_target): Don't inherit or default
12381 to_execution_direction.
12382 * target.h (struct target_ops) <to_execution_direction>: Use
12383 TARGET_DEFAULT_FUNC.
12385 2014-02-19 Tom Tromey <tromey@redhat.com>
12387 * target-delegates.c: Rebuild.
12388 * target.c (update_current_target): Don't inherit or default
12389 to_can_execute_reverse.
12390 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12391 TARGET_DEFAULT_RETURN.
12392 (target_can_execute_reverse): Unconditionally delegate.
12394 2014-02-19 Tom Tromey <tromey@redhat.com>
12396 * target-delegates.c: Rebuild.
12397 * target.c (update_current_target): Don't inherit or default
12399 (dummy_goto_bookmark): Remove.
12400 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12401 * target.h (struct target_ops) <to_goto_bookmark>: Use
12402 TARGET_DEFAULT_NORETURN.
12404 2014-02-19 Tom Tromey <tromey@redhat.com>
12406 * target-delegates.c: Rebuild.
12407 * target.c (update_current_target): Don't inherit or default
12409 (dummy_get_bookmark): Remove.
12410 (init_dummy_target): Don't inherit or default to_get_bookmark.
12411 * target.h (struct target_ops) <to_get_bookmark>: Use
12412 TARGET_DEFAULT_NORETURN
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
12418 to_make_corefile_notes.
12419 (init_dummy_target): Don't initialize to_make_corefile_notes.
12420 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12421 TARGET_DEFAULT_FUNC.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12427 to_find_memory_regions.
12428 (init_dummy_target): Don't initialize to_find_memory_regions.
12429 * target.h (struct target_ops) <to_find_memory_regions>: Use
12430 TARGET_DEFAULT_FUNC.
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12434 * target-delegates.c: Rebuild.
12435 * target.c (update_current_target): Don't inherit or default
12437 * target.h (struct target_ops) <to_log_command>: Use
12438 TARGET_DEFAULT_IGNORE.
12439 (target_log_command): Unconditionally delegate.
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12443 * target-delegates.c: Rebuild.
12444 * target.c (update_current_target): Don't inherit or default
12445 to_pid_to_exec_file.
12446 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12447 TARGET_DEFAULT_RETURN.
12449 2014-02-19 Tom Tromey <tromey@redhat.com>
12451 * target-delegates.c: Rebuild.
12452 * target.c (update_current_target): Don't inherit or default
12454 (target_thread_name): Unconditionally delegate.
12455 * target.h (struct target_ops) <to_thread_name>: Use
12456 TARGET_DEFAULT_RETURN.
12458 2014-02-19 Tom Tromey <tromey@redhat.com>
12460 * target-delegates.c: Rebuild.
12461 * target.c (update_current_target): Don't inherit or default
12462 to_extra_thread_info.
12463 * target.h (struct target_ops) <to_extra_thread_info>: Use
12464 TARGET_DEFAULT_RETURN.
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12468 * target-delegates.c: Rebuild.
12469 * target.c (update_current_target): Don't inherit or default
12471 * target.h (struct target_ops) <to_has_exited>: Use
12472 TARGET_DEFAULT_RETURN..
12474 2014-02-19 Tom Tromey <tromey@redhat.com>
12476 * target-delegates.c: Rebuild.
12477 * target.c (update_current_target): Don't inherit or default
12478 to_set_syscall_catchpoint.
12479 (return_one): Remove.
12480 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12481 TARGET_DEFAULT_RETURN.
12483 2014-02-19 Tom Tromey <tromey@redhat.com>
12485 * target-delegates.c: Rebuild.
12486 * target.c (update_current_target): Don't inherit or default
12487 to_insert_exec_catchpoint.
12488 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12489 TARGET_DEFAULT_RETURN.
12491 2014-01-08 Tom Tromey <tromey@redhat.com>
12493 * target-delegates.c: Rebuild.
12494 * target.c (update_current_target): Don't inherit or default
12495 to_insert_exec_catchpoint.
12496 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12497 TARGET_DEFAULT_RETURN.
12499 2014-02-19 Tom Tromey <tromey@redhat.com>
12501 * target-delegates.c: Rebuild.
12502 * target.c (update_current_target): Don't inherit or default
12503 to_remove_vfork_catchpoint.
12504 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12505 TARGET_DEFAULT_RETURN.
12507 2014-02-19 Tom Tromey <tromey@redhat.com>
12509 * target-delegates.c: Rebuild.
12510 * target.c (update_current_target): Don't inherit or default
12511 to_insert_vfork_catchpoint.
12512 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12513 TARGET_DEFAULT_RETURN.
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12517 * target-delegates.c: Rebuild.
12518 * target.c (update_current_target): Don't inherit or default
12519 to_remove_fork_catchpoint.
12520 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12521 TARGET_DEFAULT_RETURN.
12523 2014-02-19 Tom Tromey <tromey@redhat.com>
12525 * target-delegates.c: Rebuild.
12526 * target.c (update_current_target): Don't inherit or default
12527 to_insert_fork_catchpoint.
12528 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12529 TARGET_DEFAULT_RETURN.
12531 2014-02-19 Tom Tromey <tromey@redhat.com>
12533 * target-delegates.c: Rebuild.
12534 * target.c (update_current_target): Don't inherit or default
12535 to_post_startup_inferior.
12536 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12537 TARGET_DEFAULT_IGNORE.
12539 2014-02-19 Tom Tromey <tromey@redhat.com>
12541 * target-delegates.c: Rebuild.
12542 * target.c (update_current_target): Don't inherit or default
12544 * target.h (struct target_ops) <to_load>: Use
12545 TARGET_DEFAULT_NORETURN.
12547 2014-02-19 Tom Tromey <tromey@redhat.com>
12549 * target-delegates.c: Rebuild.
12550 * target.c (update_current_target): Don't inherit or default
12552 * target.h (struct target_ops) <to_terminal_info>: Use
12553 TARGET_DEFAULT_FUNC.
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12557 * target-delegates.c: Rebuild.
12558 * target.c (update_current_target): Don't inherit or default
12559 to_terminal_save_ours.
12560 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12561 TARGET_DEFAULT_IGNORE.
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12565 * target-delegates.c: Rebuild.
12566 * target.c (update_current_target): Don't inherit or default
12568 * target.h (struct target_ops) <to_terminal_ours>: Use
12569 TARGET_DEFAULT_IGNORE.
12571 2014-02-19 Tom Tromey <tromey@redhat.com>
12573 * target-delegates.c: Rebuild.
12574 * target.c (update_current_target): Don't inherit or default
12575 to_terminal_ours_for_output.
12576 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12577 TARGET_DEFAULT_IGNORE.
12579 2014-02-19 Tom Tromey <tromey@redhat.com>
12581 * target-delegates.c: Rebuild.
12582 * target.c (update_current_target): Don't inherit or default
12583 to_terminal_inferior.
12584 * target.h (struct target_ops) <to_terminal_inferior>: Use
12585 TARGET_DEFAULT_IGNORE.
12587 2014-02-19 Tom Tromey <tromey@redhat.com>
12589 * target-delegates.c: Rebuild.
12590 * target.c (update_current_target): Don't inherit or default
12592 * target.h (struct target_ops) <to_terminal_init>: Use
12593 TARGET_DEFAULT_IGNORE.
12595 2014-02-19 Tom Tromey <tromey@redhat.com>
12597 * target-delegates.c: Rebuild.
12598 * target.c (update_current_target): Don't inherit or default
12599 to_can_accel_watchpoint_condition.
12600 * target.h (struct target_ops)
12601 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12605 * target-delegates.c: Rebuild.
12606 * target.c (update_current_target): Don't inherit or default
12607 to_region_ok_for_hw_watchpoint.
12608 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12609 Use TARGET_DEFAULT_FUNC.
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12613 * target-delegates.c: Rebuild.
12614 * target.c (update_current_target): Don't inherit or default
12615 to_watchpoint_addr_within_range.
12616 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12617 Use TARGET_DEFAULT_FUNC.
12619 2014-02-19 Tom Tromey <tromey@redhat.com>
12621 * target-delegates.c: Rebuild.
12622 * target.c (update_current_target): Don't inherit or default
12623 to_remove_watchpoint.
12624 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12625 TARGET_DEFAULT_NORETURN.
12627 2014-02-19 Tom Tromey <tromey@redhat.com>
12629 * target-delegates.c: Rebuild.
12630 * target.c (update_current_target): Don't inherit or default
12631 to_insert_watchpoint.
12632 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12633 TARGET_DEFAULT_RETURN.
12635 2014-02-19 Tom Tromey <tromey@redhat.com>
12637 * target-delegates.c: Rebuild.
12638 * target.c (update_current_target): Don't inherit or default
12639 to_remove_hw_breakpoint.
12640 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12641 TARGET_DEFAULT_RETURN.
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12645 * target-delegates.c: Rebuild.
12646 * target.c (update_current_target): Don't inherit or default
12647 to_insert_hw_breakpoint.
12648 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12649 TARGET_DEFAULT_RETURN.
12651 2014-02-19 Tom Tromey <tromey@redhat.com>
12653 * target-delegates.c: Rebuild.
12654 * target.c (update_current_target): Don't inherit or default
12655 to_can_use_hw_breakpoint.
12656 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12657 TARGET_DEFAULT_RETURN.
12659 2014-02-19 Tom Tromey <tromey@redhat.com>
12661 * target-delegates.c: Rebuild.
12662 * target.c (update_current_target): Don't inherit or default
12664 * target.h (struct target_ops) <to_files_info>: Use
12665 TARGET_DEFAULT_IGNORE.
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12669 * target-delegates.c: Rebuild.
12670 * target.c (update_current_target): Don't inherit or default
12672 * target.h (struct target_ops) <to_store>: Use
12673 TARGET_DEFAULT_NORETURN.
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12677 * target-delegates.c: Rebuild.
12678 * target.c (update_current_target): Don't inherit or default
12680 * target.h (struct target_ops) <to_post_attach>: Use
12681 TARGET_DEFAULT_IGNORE.
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12685 * target-delegates.c: Rebuild.
12686 * target.c (update_current_target): Don't inherit or default
12688 (default_rcmd): New function.
12689 (do_monitor_command): Unconditionally delegate.
12690 * target.h (struct target_ops) <to_rmcd>: Use
12691 TARGET_DEFAULT_FUNC.
12693 2014-02-19 Tom Tromey <tromey@redhat.com>
12695 * target-delegates.c: Rebuild.
12696 * target.c (init_dummy_target): Don't initialize to_attach.
12697 (target_attach): Unconditionally delegate.
12698 * target.h (struct target_ops) <to_attach>: Use
12699 TARGET_DEFAULT_FUNC.
12701 2014-02-19 Tom Tromey <tromey@redhat.com>
12703 * target-delegates.c: Rebuild.
12704 * target.c (target_detach): Unconditionally delegate.
12705 (init_dummy_target): Don't initialize to_detach.
12706 * target.h (struct target_ops) <to_detach>: Use
12707 TARGET_DEFAULT_IGNORE.
12709 2014-02-19 Tom Tromey <tromey@redhat.com>
12711 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12713 (target_augmented_libraries_svr4_read): Add argument.
12714 * target.c (update_current_target): Update.
12715 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12718 2014-02-19 Tom Tromey <tromey@redhat.com>
12720 * target.h (struct target_ops) <to_call_history_range>: Add
12722 * target.c (target_call_history_range): Add argument.
12723 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12725 (record_btrace_call_history_from): Update.
12727 2014-02-19 Tom Tromey <tromey@redhat.com>
12729 * target.h (struct target_ops) <to_call_history_from>: Add
12731 * target.c (target_call_history_from): Add argument.
12732 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12737 * target.h (struct target_ops) <to_call_history>: Add argument.
12738 * target.c (target_call_history): Add argument.
12739 * record-btrace.c (record_btrace_call_history): Add 'self'
12742 2014-02-19 Tom Tromey <tromey@redhat.com>
12744 * target.h (struct target_ops) <to_insn_history_range>: Add
12746 * target.c (target_insn_history_range): Add argument.
12747 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12749 (record_btrace_insn_history_from): Update.
12751 2014-02-19 Tom Tromey <tromey@redhat.com>
12753 * target.h (struct target_ops) <to_insn_history_from>: Add
12755 * target.c (target_insn_history_from): Add argument.
12756 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12759 2014-02-19 Tom Tromey <tromey@redhat.com>
12761 * target.h (struct target_ops) <to_insn_history>: Add argument.
12762 * target.c (target_insn_history): Add argument.
12763 * record-btrace.c (record_btrace_insn_history): Add 'self'
12766 2014-02-19 Tom Tromey <tromey@redhat.com>
12768 * target.h (struct target_ops) <to_goto_record>: Add argument.
12769 * target.c (target_goto_record): Add argument.
12770 * record-full.c (record_full_goto): Add 'self' argument.
12771 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12775 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12776 * target.c (target_goto_record_end): Add argument.
12777 * record-full.c (record_full_goto_end): Add 'self' argument.
12778 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12780 2014-02-19 Tom Tromey <tromey@redhat.com>
12782 * target.h (struct target_ops) <to_goto_record_begin>: Add
12784 * target.c (target_goto_record_begin): Add argument.
12785 * record-full.c (record_full_goto_begin): Add 'self' argument.
12786 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12789 2014-02-19 Tom Tromey <tromey@redhat.com>
12791 * target.h (struct target_ops) <to_record_is_replaying>: Add
12793 * target.c (target_record_is_replaying): Add argument.
12794 * record-full.c (record_full_is_replaying): Add 'self' argument.
12795 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12797 (record_btrace_xfer_partial, record_btrace_store_registers)
12798 (record_btrace_prepare_to_store, record_btrace_resume)
12799 (record_btrace_wait, record_btrace_decr_pc_after_break)
12800 (record_btrace_find_new_threads, record_btrace_thread_alive):
12803 2014-02-19 Tom Tromey <tromey@redhat.com>
12805 * target.h (struct target_ops) <to_delete_record>: Add argument.
12806 * target.c (target_delete_record): Add argument.
12807 * record-full.c (record_full_delete): Add 'self' argument.
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12811 * target.h (struct target_ops) <to_save_record>: Add argument.
12812 * target.c (target_save_record): Add argument.
12813 * record-full.c (record_full_save): Add 'self' argument.
12814 (record_full_save): Add 'self' argument.
12816 2014-02-19 Tom Tromey <tromey@redhat.com>
12818 * target.h (struct target_ops) <to_info_record>: Add argument.
12819 * target.c (target_info_record): Add argument.
12820 * record.c (info_record_command): Add argument.
12821 * record-full.c (record_full_info): Add 'self' argument.
12822 * record-btrace.c (record_btrace_info): Add 'self' argument.
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12826 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12827 * target.c (target_stop_recording): Add argument.
12828 * record.c (record_stop): Add argument.
12829 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12835 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12836 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12838 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12839 (_initialize_amd64_linux_nat): Use it.
12840 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12841 (_initialize_i386_linux_nat): Use it.
12843 2014-02-19 Tom Tromey <tromey@redhat.com>
12845 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12846 * target.c (target_teardown_btrace): Add argument.
12847 * remote.c (remote_teardown_btrace): Add 'self' argument.
12848 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12850 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12853 2014-02-19 Tom Tromey <tromey@redhat.com>
12855 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12856 * target.c (target_disable_btrace): Add argument.
12857 * remote.c (remote_disable_btrace): Add 'self' argument.
12858 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12860 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12863 2014-02-19 Tom Tromey <tromey@redhat.com>
12865 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12866 * target.c (target_enable_btrace): Add argument.
12867 * remote.c (remote_enable_btrace): Add 'self' argument.
12868 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12870 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12873 2014-02-19 Tom Tromey <tromey@redhat.com>
12875 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12876 (target_can_use_agent): Add argument.
12877 * target.c (update_current_target): Update.
12878 * remote.c (remote_can_use_agent): Add 'self' argument.
12879 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12881 2014-02-19 Tom Tromey <tromey@redhat.com>
12883 * target.h (struct target_ops) <to_use_agent>: Add argument.
12884 (target_use_agent): Add argument.
12885 * target.c (update_current_target): Update.
12886 * remote.c (remote_use_agent): Add 'self' argument.
12887 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12889 2014-02-19 Tom Tromey <tromey@redhat.com>
12891 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12892 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12893 (target_traceframe_info): Add argument.
12894 * target.c (update_current_target): Update.
12895 * remote.c (remote_traceframe_info): Add 'self' argument.
12896 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12898 2014-02-19 Tom Tromey <tromey@redhat.com>
12900 * target.h (target_static_tracepoint_markers_by_strid): Add
12902 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12904 * target.c (update_current_target): Update.
12905 * remote.c (struct target_ops)
12906 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12907 * linux-nat.c (struct target_ops)
12908 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12912 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12914 (target_static_tracepoint_marker_at): Add argument.
12915 * target.c (update_current_target): Update.
12916 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12919 2014-02-19 Tom Tromey <tromey@redhat.com>
12921 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12922 (target_set_permissions): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_set_permissions): Add 'self' argument.
12925 (remote_start_remote): Update.
12927 2014-02-19 Tom Tromey <tromey@redhat.com>
12929 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12930 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12931 (target_get_tib_address): Add argument.
12932 * target.c (update_current_target): Update.
12933 * remote.c (remote_get_tib_address): Add 'self' argument.
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12937 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12938 (target_set_trace_notes): Add argument.
12939 * target.c (update_current_target): Update.
12940 * remote.c (remote_set_trace_notes): Add 'self' argument.
12942 2014-02-19 Tom Tromey <tromey@redhat.com>
12944 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12946 (target_set_trace_buffer_size): Add argument.
12947 * target.c (update_current_target): Update.
12948 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12950 2014-02-19 Tom Tromey <tromey@redhat.com>
12952 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12954 (target_set_circular_trace_buffer): Add argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12959 2014-02-19 Tom Tromey <tromey@redhat.com>
12961 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12963 (target_set_disconnected_tracing): Add argument.
12964 * target.c (update_current_target): Update.
12965 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops)
12970 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12971 (target_get_min_fast_tracepoint_insn_len): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12976 2014-02-19 Tom Tromey <tromey@redhat.com>
12978 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12980 (target_get_raw_trace_data): Add argument.
12981 * target.c (update_current_target): Update.
12982 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12986 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12988 (target_upload_trace_state_variables): Add argument.
12989 * target.c (update_current_target): Update.
12990 * remote.c (remote_upload_trace_state_variables): Add 'self'
12992 (remote_start_remote): Update.
12994 2014-02-19 Tom Tromey <tromey@redhat.com>
12996 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12998 (target_upload_tracepoints): Add argument.
12999 * target.c (update_current_target): Update.
13000 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13001 (remote_start_remote): Update.
13003 2014-02-19 Tom Tromey <tromey@redhat.com>
13005 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13006 (target_save_trace_data): Add argument.
13007 * target.c (update_current_target): Update.
13008 * remote.c (remote_save_trace_data): Add 'self' argument.
13010 2014-02-19 Tom Tromey <tromey@redhat.com>
13012 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13014 * target.h (struct target_ops)
13015 <to_get_trace_state_variable_value>: Add argument.
13016 (target_get_trace_state_variable_value): Add argument.
13017 * target.c (update_current_target): Update.
13018 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13020 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13022 2014-02-19 Tom Tromey <tromey@redhat.com>
13024 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13025 * target.h (struct target_ops) <to_trace_find>: Add argument.
13026 (target_trace_find): Add argument.
13027 * target.c (update_current_target): Update.
13028 * remote.c (remote_trace_find): Add 'self' argument.
13029 * ctf.c (ctf_trace_find): Add 'self' argument.
13031 2014-02-19 Tom Tromey <tromey@redhat.com>
13033 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13034 (target_trace_stop): Add argument.
13035 * target.c (update_current_target): Update.
13036 * remote.c (remote_trace_stop): Add 'self' argument.
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13040 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13041 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13043 (target_get_tracepoint_status): Add argument.
13044 * target.c (update_current_target): Update.
13045 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13050 * target.h (struct target_ops) <to_get_trace_status>: Add
13052 (target_get_trace_status): Add argument.
13053 * target.c (update_current_target): Update.
13054 * remote.c (remote_get_trace_status): Add 'self' argument.
13055 (remote_start_remote, remote_can_download_tracepoint): Update.
13056 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13058 2014-02-19 Tom Tromey <tromey@redhat.com>
13060 * target.h (struct target_ops) <to_trace_start>: Add argument.
13061 (target_trace_start): Add argument.
13062 * target.c (update_current_target): Update.
13063 * remote.c (remote_trace_start): Add 'self' argument.
13065 2014-02-19 Tom Tromey <tromey@redhat.com>
13067 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13069 (target_trace_set_readonly_regions): Add argument.
13070 * target.c (update_current_target): Update.
13071 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13074 2014-02-19 Tom Tromey <tromey@redhat.com>
13076 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13078 (target_disable_tracepoint): Add argument.
13079 * target.c (update_current_target): Update.
13080 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13084 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13086 (target_enable_tracepoint): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13090 2014-02-19 Tom Tromey <tromey@redhat.com>
13092 * target.h (struct target_ops) <to_download_trace_state_variable>:
13094 (target_download_trace_state_variable): Add argument.
13095 * target.c (update_current_target): Update.
13096 * remote.c (remote_download_trace_state_variable): Add 'self'
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13103 (target_can_download_tracepoint): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13107 2014-02-19 Tom Tromey <tromey@redhat.com>
13109 * target.h (struct target_ops) <to_download_tracepoint>: Add
13111 (target_download_tracepoint): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_download_tracepoint): Add 'self' argument.
13115 2014-02-19 Tom Tromey <tromey@redhat.com>
13117 * target.h (struct target_ops) <to_trace_init>: Add argument.
13118 (target_trace_init): Add argument.
13119 * target.c (update_current_target): Update.
13120 * remote.c (remote_trace_init): Add 'self' argument.
13122 2014-02-19 Tom Tromey <tromey@redhat.com>
13124 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13125 * target.c (target_fileio_readlink): Add argument.
13126 * remote.c (remote_hostio_readlink): Add 'self' argument.
13127 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13129 2014-02-19 Tom Tromey <tromey@redhat.com>
13131 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13132 * target.c (target_fileio_unlink): Add argument.
13133 * remote.c (remote_hostio_unlink): Add 'self' argument.
13134 (remote_file_delete): Update.
13135 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13137 2014-02-19 Tom Tromey <tromey@redhat.com>
13139 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13140 * target.c (target_fileio_close): Add argument.
13141 * remote.c (remote_hostio_close): Add 'self' argument.
13142 (remote_hostio_close_cleanup): Update.
13143 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13145 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13147 2014-02-19 Tom Tromey <tromey@redhat.com>
13149 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13150 * target.c (target_fileio_pread): Add argument.
13151 * remote.c (remote_hostio_pread): Add 'self' argument.
13152 (remote_bfd_iovec_pread, remote_file_get): Update.
13153 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13155 2014-02-19 Tom Tromey <tromey@redhat.com>
13157 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13158 * target.c (target_fileio_pwrite): Add argument.
13159 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13160 (remote_file_put): Update.
13161 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13163 2014-02-19 Tom Tromey <tromey@redhat.com>
13165 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13166 * target.c (target_fileio_open): Add argument.
13167 * remote.c (remote_hostio_open): Add 'self' argument.
13168 (remote_bfd_iovec_open): Add 'self' argument.
13169 (remote_file_put): Add 'self' argument.
13170 (remote_file_get): Add 'self' argument.
13171 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13173 2014-02-19 Tom Tromey <tromey@redhat.com>
13175 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13177 (target_can_run_breakpoint_commands): Add argument.
13178 * target.c (update_current_target): Update.
13179 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13181 (remote_insert_breakpoint): Add 'self' argument.
13182 (remote_insert_hw_breakpoint): Add 'self' argument.
13183 (remote_can_run_breakpoint_commands): Add 'self' argument.
13185 2014-02-19 Tom Tromey <tromey@redhat.com>
13187 * target.h (struct target_ops)
13188 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13189 (target_supports_evaluation_of_breakpoint_conditions): Add
13191 * target.c (update_current_target): Update.
13192 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13194 (remote_insert_breakpoint): Add 'self' argument.
13195 (remote_insert_hw_breakpoint): Add 'self' argument.
13196 (remote_supports_cond_breakpoints): Add 'self' argument.
13198 2014-02-19 Tom Tromey <tromey@redhat.com>
13200 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13202 (target_supports_string_tracing): Add argument.
13203 * target.c (update_current_target): Update.
13204 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13206 2014-02-19 Tom Tromey <tromey@redhat.com>
13208 * target.h (struct target_ops)
13209 <to_supports_disable_randomization>: Add argument.
13210 * target.c (find_default_supports_disable_randomization): Add
13212 (target_supports_disable_randomization): Add argument.
13213 (find_default_supports_disable_randomization): Add 'self'
13215 * remote.c (extended_remote_supports_disable_randomization): Add
13217 (remote_supports_disable_randomization): Add 'self' argument.
13218 (extended_remote_create_inferior): Update.
13219 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13222 2014-02-19 Tom Tromey <tromey@redhat.com>
13224 * target.h (struct target_ops)
13225 <to_supports_enable_disable_tracepoint>: Add argument.
13226 (target_supports_enable_disable_tracepoint): Add argument.
13227 * target.c (update_current_target): Update.
13228 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops) <to_supports_multi_process>: Add
13235 (target_supports_multi_process): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_supports_multi_process): Add 'self' argument.
13238 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13240 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13243 2014-02-19 Tom Tromey <tromey@redhat.com>
13245 * target.h (struct target_ops) <to_execution_direction>: Add
13247 (target_execution_direction): Add argument.
13248 * target.c (default_execution_direction): Add 'self' argument.
13249 * record-full.c (record_full_execution_direction): Add 'self'
13252 2014-02-19 Tom Tromey <tromey@redhat.com>
13254 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13256 (target_can_execute_reverse): Add argument.
13257 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13258 * record-full.c (record_full_can_execute_reverse): Add 'self'
13260 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13263 2014-02-19 Tom Tromey <tromey@redhat.com>
13265 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13266 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13268 (target_get_ada_task_ptid): Add argument.
13269 * target.c (update_current_target): Update.
13270 (default_get_ada_task_ptid): Add 'self' argument.
13271 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13272 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13273 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13275 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13277 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13279 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13281 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13282 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13285 2014-02-19 Tom Tromey <tromey@redhat.com>
13287 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13288 (target_goto_bookmark): Add argument.
13289 * target.c (dummy_goto_bookmark): Add 'self' argument.
13290 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13292 2014-02-19 Tom Tromey <tromey@redhat.com>
13294 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13295 (target_get_bookmark): Add argument.
13296 * target.c (dummy_get_bookmark): Add 'self' argument.
13297 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13299 2014-02-19 Tom Tromey <tromey@redhat.com>
13301 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13303 (target_make_corefile_notes): Add argument.
13304 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13305 * procfs.c (procfs_make_note_section): Add 'self' argument.
13306 (procfs_make_note_section): Add 'self' argument.
13307 (procfs_make_note_section): Add 'self' argument.
13308 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13310 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13311 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13312 * exec.c (exec_make_note_section): Add 'self' argument.
13313 (exec_make_note_section): Add 'self' argument.
13315 2014-02-19 Tom Tromey <tromey@redhat.com>
13317 * target.h (struct target_ops) <to_find_memory_regions>: Add
13319 (target_find_memory_regions): Add argument.
13320 * target.c (dummy_find_memory_regions): Add 'self' argument.
13321 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13322 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13323 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13324 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13325 * exec. (exec_do_find_memory_regions): New global.
13326 (exec_set_find_memory_regions): Rewrite.
13327 (exec_find_memory_regions): New function.
13328 (init_exec_ops): Use exec_find_memory_regions.
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13332 * target.h (struct target_ops) <to_supports_non_stop>: Add
13334 * target.c (find_default_supports_non_stop): Add argument.
13335 (target_supports_non_stop): Add argument.
13336 (find_default_supports_non_stop): Add 'self' argument.
13337 * remote.c (remote_supports_non_stop): Add 'self' argument.
13338 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13340 2014-02-19 Tom Tromey <tromey@redhat.com>
13342 * target.h (struct target_ops) <to_log_command>: Add argument.
13343 (target_log_command): Add argument.
13344 * serial.h (serial_log_command): Add 'self' argument.
13345 * serial.c (serial_log_command): Add 'self' argument.
13347 2014-02-19 Tom Tromey <tromey@redhat.com>
13349 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13350 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13352 (target_pid_to_exec_file): Add argument.
13353 * target.c (debug_to_pid_to_exec_file): Add argument.
13354 (update_current_target): Update.
13355 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13356 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13357 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13358 (linux_handle_extended_wait): Update.
13359 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13360 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13361 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13362 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13366 * target.h (struct target_ops) <to_rcmd>: Add argument.
13367 (target_rcmd): Add argument.
13368 * target.c (debug_to_rcmd): Add argument.
13369 (update_current_target, do_monitor_command): Update.
13370 * remote.c (remote_rcmd): Add 'self' argument.
13371 * monitor.c (monitor_rcmd): Add 'self' argument.
13373 2014-02-19 Tom Tromey <tromey@redhat.com>
13375 * windows-nat.c (windows_stop): Add 'self' argument.
13376 * target.h (struct target_ops) <to_stop>: Add argument.
13377 * target.c (target_stop): Add argument.
13378 (debug_to_stop): Add argument.
13379 (update_current_target): Update.
13380 * remote.c (remote_stop): Add 'self' argument.
13381 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13382 (gdbsim_cntrl_c): Update.
13383 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13384 * procfs.c (procfs_stop): Add 'self' argument.
13385 * nto-procfs.c (procfs_stop): Add 'self' argument.
13386 * monitor.c (monitor_stop): Add 'self' argument.
13387 (monitor_open): Update.
13388 * linux-nat.c (linux_nat_stop): Add argument.
13389 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13390 * gnu-nat.c (gnu_stop): Add 'self' argument.
13391 * darwin-nat.c (darwin_stop): Add 'self' argument.
13393 2014-02-19 Tom Tromey <tromey@redhat.com>
13395 * target.h (struct target_ops) <to_thread_name>: Add argument.
13396 * target.c (target_thread_name): Add argument.
13397 (update_current_target): Update.
13398 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13400 2014-02-19 Tom Tromey <tromey@redhat.com>
13402 * target.h (struct target_ops) <to_extra_thread_info>: Add
13404 (target_extra_thread_info): Add argument.
13405 * target.c (update_current_target): Update.
13406 * remote.c (remote_threads_extra_info): Add 'self' argument.
13407 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13409 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13410 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13411 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13413 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13415 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13417 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13420 2014-02-19 Tom Tromey <tromey@redhat.com>
13422 * target.h (struct target_ops) <to_program_signals>: Add argument.
13423 * target.c (target_program_signals): Add argument.
13424 * remote.c (remote_program_signals): Add 'self' argument.
13426 2014-02-19 Tom Tromey <tromey@redhat.com>
13428 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13429 * target.c (target_pass_signals): Add argument.
13430 * remote.c (remote_pass_signals): Add 'self' argument.
13431 (remote_start_remote): Update.
13432 * procfs.c (procfs_pass_signals): Add 'self' argument.
13433 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13434 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13435 (linux_nat_create_inferior, linux_nat_attach): Update.
13437 2014-02-19 Tom Tromey <tromey@redhat.com>
13439 * windows-nat.c (windows_can_run): Add 'self' argument.
13440 * target.h (struct target_ops) <to_can_run>: Add argument.
13441 (target_can_run): Add argument.
13442 * target.c (debug_to_can_run): Add argument.
13443 (update_current_target): Update.
13444 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13445 * inf-child.c (inf_child_can_run): Add 'self' argument.
13446 * go32-nat.c (go32_can_run): Add 'self' argument.
13448 2014-02-19 Tom Tromey <tromey@redhat.com>
13450 * target.h (struct target_ops) <to_has_exited>: Add argument.
13451 (target_has_exited): Add argument.
13452 * target.c (debug_to_has_exited): Add argument.
13453 (update_current_target): Update.
13455 2014-02-19 Tom Tromey <tromey@redhat.com>
13457 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13459 (target_set_syscall_catchpoint): Add argument.
13460 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13462 * target.c (update_current_target): Update.
13464 2014-02-19 Tom Tromey <tromey@redhat.com>
13466 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13468 (target_remove_exec_catchpoint): Add argument.
13469 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13470 (update_current_target): Update.
13471 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13474 2014-02-19 Tom Tromey <tromey@redhat.com>
13476 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13478 (target_insert_exec_catchpoint): Add argument.
13479 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13480 (update_current_target): Update.
13481 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13484 2014-02-19 Tom Tromey <tromey@redhat.com>
13486 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13488 (target_remove_vfork_catchpoint): Add argument.
13489 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13490 (update_current_target): Update.
13491 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13494 2014-02-19 Tom Tromey <tromey@redhat.com>
13496 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13498 (target_insert_vfork_catchpoint): Add argument.
13499 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13500 (update_current_target): Update.
13501 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13504 2014-02-19 Tom Tromey <tromey@redhat.com>
13506 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13508 (target_remove_fork_catchpoint): Add argument.
13509 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13510 (update_current_target): Update.
13511 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13514 2014-02-19 Tom Tromey <tromey@redhat.com>
13516 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13518 (target_insert_fork_catchpoint): Add argument.
13519 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13520 (update_current_target): Update.
13521 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13524 2014-02-19 Tom Tromey <tromey@redhat.com>
13526 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13528 (target_post_startup_inferior): Add argument.
13529 * target.c (debug_to_post_startup_inferior): Add argument.
13530 (update_current_target): Update.
13531 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13533 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13535 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13537 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13539 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13541 (super_post_startup_inferior): Likewise.
13542 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13544 (super_post_startup_inferior): Likewise.
13545 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13546 Add 'self' argument.
13547 (super_post_startup_inferior): Likewise.
13549 2014-02-19 Tom Tromey <tromey@redhat.com>
13551 * target.h (struct target_ops) <to_load>: Add argument.
13552 * target.c (target_load): Add argument.
13553 (debug_to_load): Add argument.
13554 (update_current_target): Update.
13555 * remote.c (remote_load): Add 'self' argument.
13556 * remote-sim.c (gdbsim_load): Add 'self' argument.
13557 * remote-mips.c (mips_load): Add 'self' argument.
13558 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13559 * monitor.c (monitor_load): Add 'self' argument.
13560 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13562 2014-02-19 Tom Tromey <tromey@redhat.com>
13564 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13565 (target_terminal_info): Add argument.
13566 * target.c (debug_to_terminal_info): Add argument.
13567 (default_terminal_info): Likewise.
13568 * inflow.c (child_terminal_info): Add 'self' argument.
13569 * inferior.h (child_terminal_info): Add 'self' argument.
13570 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13572 2014-02-19 Tom Tromey <tromey@redhat.com>
13574 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13576 (target_terminal_save_ours): Add argument.
13577 * target.c (debug_to_terminal_save_ours): Add argument.
13578 (update_current_target): Update.
13579 * inflow.c (terminal_save_ours): Add 'self' argument.
13580 * inferior.h (terminal_save_ours): Add 'self' argument.
13582 2014-02-19 Tom Tromey <tromey@redhat.com>
13584 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13585 (target_terminal_ours): Add argument.
13586 * target.c (debug_to_terminal_ours): Add argument.
13587 (update_current_target): Update.
13588 * remote.c (remote_terminal_ours): Add 'self' argument.
13589 (remote_close): Update.
13590 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13591 * inflow.c (terminal_ours): Add 'self' argument.
13592 * inferior.h (terminal_ours): Add 'self' argument.
13593 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13595 2014-02-19 Pedro Alves <palves@redhat.com>
13596 Tom Tromey <tromey@redhat.com>
13598 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13600 (target_terminal_ours_for_output): Add argument.
13601 * target.c (debug_to_terminal_ours_for_output): Add argument.
13602 (update_current_target): Update.
13603 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13604 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13605 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13607 2014-02-19 Tom Tromey <tromey@redhat.com>
13609 * target.h (struct target_ops) <to_terminal_inferior>: Add
13611 * target.c (target_terminal_inferior): Add argument.
13612 (update_current_target): Update.
13613 * remote.c (remote_terminal_inferior): Add 'self' argument.
13614 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13615 * inflow.c (terminal_inferior): Add 'self' argument.
13616 * inferior.h (terminal_inferior): Add 'self' argument.
13617 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13618 (go32_terminal_inferior): Add 'self' argument.
13620 2014-02-19 Tom Tromey <tromey@redhat.com>
13622 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13623 (target_terminal_init): Add argument.
13624 * target.c (debug_to_terminal_init): Add argument.
13625 (update_current_target): Update.
13626 * inflow.c (terminal_init_inferior): Add 'self' argument.
13627 * inferior.h (terminal_init_inferior): Add 'self' argument.
13628 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13629 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13631 2014-02-19 Tom Tromey <tromey@redhat.com>
13633 * target.h (struct target_ops)
13634 <to_can_accel_watchpoint_condition>: Add argument.
13635 (target_can_accel_watchpoint_condition): Add argument.
13636 * target.c (debug_to_can_accel_watchpoint_condition): Add
13638 (update_current_target): Update.
13639 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13642 2014-02-19 Tom Tromey <tromey@redhat.com>
13644 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13646 (target_region_ok_for_hw_watchpoint): Add argument.
13647 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13648 (default_region_ok_for_hw_watchpoint): Add argument.
13649 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13650 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13652 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13654 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13656 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13658 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13660 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13662 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13663 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13665 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13666 Add 'self' argument.
13668 2014-02-19 Tom Tromey <tromey@redhat.com>
13670 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13672 (target_insert_watchpoint): Add argument.
13673 * target.c (debug_to_insert_watchpoint): Add argument.
13674 (update_current_target): Update.
13675 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13676 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13677 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13678 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13679 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13680 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13682 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13683 (procfs_insert_hw_watchpoint): Add 'self' argument.
13684 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13686 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13688 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13690 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13691 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13693 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13696 2014-02-19 Tom Tromey <tromey@redhat.com>
13698 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13700 (target_remove_watchpoint): Add argument.
13701 * target.c (debug_to_remove_watchpoint): Add argument.
13702 (update_current_target): Update.
13703 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13704 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13705 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13706 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13707 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13708 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13710 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13711 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13713 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13715 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13717 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13718 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13720 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13723 2014-02-19 Tom Tromey <tromey@redhat.com>
13725 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13727 (target_remove_hw_breakpoint): Add argument.
13728 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13729 (update_current_target): Update.
13730 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13731 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13733 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13734 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13736 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13739 2014-02-19 Tom Tromey <tromey@redhat.com>
13741 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13743 (target_insert_hw_breakpoint): Add argument.
13744 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13745 (update_current_target): Update.
13746 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13747 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13749 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13750 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13751 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13753 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13756 2014-02-19 Tom Tromey <tromey@redhat.com>
13758 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13760 (target_can_use_hardware_watchpoint): Add argument.
13761 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13762 (update_current_target): Update.
13763 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13765 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13767 * remote.c (remote_check_watch_resources): Add 'self' argument.
13768 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13769 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13771 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13772 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13774 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13776 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13778 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13780 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13782 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13784 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13785 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13787 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13790 2014-02-19 Tom Tromey <tromey@redhat.com>
13792 * target.h (struct target_ops) <to_post_attach>: Add argument.
13793 (target_post_attach): Add argument.
13794 * target.c (debug_to_post_attach): Add argument.
13795 (update_current_target): Update.
13796 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13797 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13798 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13799 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13800 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13802 2014-02-19 Tom Tromey <tromey@redhat.com>
13804 * windows-nat.c (windows_close): Add 'self' argument.
13805 * tracepoint.c (tfile_close): Add 'self' argument.
13806 * target.h (struct target_ops) <to_close>: Add argument.
13807 * target.c (target_close): Add argument.
13808 (update_current_target): Update.
13809 * remote.c (remote_close): Add 'self' argument.
13810 * remote-sim.c (gdbsim_close): Add 'self' argument.
13811 * remote-mips.c (mips_close): Add 'self' argument.
13812 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13813 * record-full.c (record_full_close): Add 'self' argument.
13814 * record-btrace.c (record_btrace_close): Add 'self' argument.
13815 * monitor.h (monitor_close): Add 'self' argument.
13816 * monitor.c (monitor_close): Add 'self' argument.
13817 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13818 * linux-nat.c (linux_nat_close): Add argument.
13819 * go32-nat.c (go32_close): Add 'self' argument.
13820 * exec.c (exec_close_1): Add 'self' argument.
13821 * ctf.c (ctf_close): Add 'self' argument.
13822 * corelow.c (core_close): Add 'self' argument.
13823 (core_close_cleanup): Update.
13824 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13825 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13827 2014-02-19 Tom Tromey <tromey@redhat.com>
13829 * remote.c (remote_load): New function.
13830 (init_remote_ops): Use it.
13832 2014-02-19 Tom Tromey <tromey@redhat.com>
13834 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13836 * common/linux-btrace.h (linux_supports_btrace): Update.
13837 * remote.c (remote_supports_btrace): Add "self" argument.
13838 * target-delegates.c: Rebuild.
13839 * target.c (target_supports_btrace): Remove.
13840 * target.h (struct target_ops) <to_supports_btrace>: Add
13841 target_ops argument.
13842 (target_supports_btrace): New define.
13844 2014-02-19 Tom Tromey <tromey@redhat.com>
13846 * record-full.c (record_full_beneath_to_resume_ops)
13847 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13848 (record_full_beneath_to_wait)
13849 (record_full_beneath_to_store_registers_ops)
13850 (record_full_beneath_to_store_registers)
13851 (record_full_beneath_to_xfer_partial_ops)
13852 (record_full_beneath_to_xfer_partial)
13853 (record_full_beneath_to_insert_breakpoint_ops)
13854 (record_full_beneath_to_insert_breakpoint)
13855 (record_full_beneath_to_remove_breakpoint_ops)
13856 (record_full_beneath_to_remove_breakpoint)
13857 (record_full_beneath_to_stopped_by_watchpoint)
13858 (record_full_beneath_to_stopped_data_address)
13859 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13860 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13861 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13862 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13863 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13864 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13865 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13866 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13867 (record_full_resume, record_full_wait_1)
13868 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13869 (record_full_store_registers, record_full_xfer_partial)
13870 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13871 (record_full_async, record_full_core_xfer_partial): Use target
13873 * target-delegates.c: Rebuild.
13874 * target.c (current_xfer_partial): Remove.
13875 (update_current_target): Do not INHERIT or de_fault
13876 to_insert_breakpoint, to_remove_breakpoint,
13877 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13878 to_is_async_p, to_async. Do not set to_xfer_partial field.
13879 (default_xfer_partial): Simplify.
13880 (current_xfer_partial): Remove.
13881 (target_wait, target_resume): Simplify.
13882 (find_default_can_async_p, find_default_is_async_p): Update.
13883 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13884 to_xfer_partial, to_stopped_by_watchpoint,
13885 to_stopped_data_address.
13886 (target_store_registers): Simplify.
13887 (forward_target_remove_breakpoint)
13888 (forward_target_insert_breakpoint): Remove.
13889 (target_remove_breakpoint, target_insert_breakpoint)
13890 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13891 * target.h (struct target_ops) <to_resume, to_wait,
13892 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13893 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13894 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13896 (forward_target_remove_breakpoint)
13897 (forward_target_insert_breakpoint): Remove.
13898 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13900 (record_btrace_insert_breakpoint): Delegate directly.
13902 2014-02-19 Tom Tromey <tromey@redhat.com>
13905 * target-delegates.c: New file.
13906 * target.c: Include target-delegates.c.
13907 (init_dummy_target): Call install_dummy_methods.
13908 (complete_target_initialization): Call install_delegators.
13909 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13910 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13911 * make-target-delegates: New file.
13913 2014-02-19 Tom Tromey <tromey@redhat.com>
13915 * record.c (find_record_target): Use find_target_at.
13916 * target.c (find_target_at): New function.
13917 * target.h (find_target_at): Declare.
13919 2014-02-19 Tom Tromey <tromey@redhat.com>
13921 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13922 Add 'ops' argument.
13923 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13925 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13928 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13930 * linux-nat.c (save_sigtrap): Update.
13931 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13932 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13933 (linux_nat_close): Update.
13934 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13936 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13938 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13939 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13940 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13941 (tmp_to_async): Add 'ops' argument.
13942 (record_full_stopped_by_watchpoint, record_full_async)
13943 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13945 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13946 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13947 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13948 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13949 (remote_is_async_p, remote_async): Add 'ops' argument.
13950 (remote_stopped_data_address): Update.
13951 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13952 * target.c (update_current_target)
13953 (find_default_can_async_p, find_default_is_async_p): Update.
13954 (init_dummy_target): Update.
13955 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13956 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13957 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13958 (target_can_async_p, target_is_async_p, target_async)
13959 (target_stopped_by_watchpoint): Update.
13961 2014-02-19 Yao Qi <yao@codesourcery.com>
13964 * gdbarch.sh: Remove startup_gdbarch.
13965 * gdbarch.c: Regenerated.
13966 * gdbarch.h: Likewise.
13968 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13970 * rl78-tdep.c (rl78_g10_register_name): New function.
13971 (rl78_return_value): Add g10 support.
13972 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13975 2014-02-17 Doug Evans <xdje42@gmail.com>
13977 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13978 (SUBDIR_GUILE_SRCS): Ditto.
13979 (scm-gsmob.o): Ditto.
13981 2014-02-17 Yao Qi <yao@codesourcery.com>
13983 * gnu-nat.c (ILL_RPC): Declare defined function.
13985 2014-02-17 Yao Qi <yao@codesourcery.com>
13987 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13988 mach_msg_type_number_t.
13989 (gnu_write_inferior): Likewise.
13991 2014-02-17 Yao Qi <yao@codesourcery.com>
13993 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13995 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13996 (inf_validate_procs, inf_signal): Likewise.
13997 (S_exception_raise_request): Likewise.
13998 (do_mach_notify_dead_name): Likewise.
13999 (steal_exc_port): Likewise.
14000 (gnu_read_inferior): Change 'copy_count''s type to
14001 mach_msg_type_number_t.
14002 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14005 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14007 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14008 flag. Adjust all users; in particular...
14009 (gnu_wait): ..., don't decrement its value in here...
14010 (gnu_create_inferior): ..., and instead set the flag in here,
14011 around the startup_inferior call, and call that one with
14012 START_INFERIOR_TRAPS_EXPECTED.
14014 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14015 (ILL_RPC): ... new macro.
14016 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14017 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14018 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14019 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14020 functions with ILL_RPC macro.
14021 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14022 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14023 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14024 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14025 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14026 (S_proc_getlogin_reply, S_proc_getsid_reply)
14027 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14028 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14029 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14030 (S_proc_getnports_reply, S_proc_is_important_reply)
14031 (S_proc_get_code_reply): New stub functions, generated with
14034 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14035 collected the type check structures.
14037 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14039 2014-02-14 Doug Evans <dje@google.com>
14041 * target.c (target_write_partial): Fix result type.
14043 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14045 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14046 the proper offsets to access fpregset_t.
14048 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14050 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14051 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14052 * h8300-tdep.c (setmachinelist): Remove global.
14053 * hppa-tdep.c (hppa_sigtramp): Remove global.
14054 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14055 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14056 * ravenscar-thread.c (update_target_observer): Remove global.
14057 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14059 2014-02-12 Tom Tromey <tromey@redhat.com>
14061 * common/rsp-low.c: Update comments.
14062 * common/rsp-low.h: Update comments.
14064 2014-02-12 Tom Tromey <tromey@redhat.com>
14066 * common/rsp-low.c (convert_ascii_to_int): Remove.
14067 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14069 2014-02-12 Tom Tromey <tromey@redhat.com>
14071 * common/rsp-low.h (unhexify): Don't declare.
14072 * common/rsp-low.c (unhexify): Remove.
14074 2014-02-12 Tom Tromey <tromey@redhat.com>
14076 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14077 * common/rsp-low.c (convert_int_to_ascii): Remove.
14079 2014-02-12 Tom Tromey <tromey@redhat.com>
14081 * common/rsp-low.h (hexify): Don't declare.
14082 * common/rsp-low.c (hexify): Remove.
14084 2014-02-12 Tom Tromey <tromey@redhat.com>
14086 * common/rsp-low.c (hexify): Never take strlen of argument.
14088 2014-02-12 Tom Tromey <tromey@redhat.com>
14090 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14091 * remote.c (extended_remote_run, remote_rcmd)
14092 (remote_download_trace_state_variable, remote_save_trace_data)
14093 (remote_set_trace_notes): Update.
14094 * tracepoint.c (encode_source_string, tfile_write_status)
14095 (tfile_write_uploaded_tsv): Update.
14097 2014-02-12 Tom Tromey <tromey@redhat.com>
14099 * tracepoint.c: Include rsp-low.h.
14100 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14101 * remote.c: Include rsp-low.h.
14102 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14103 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14104 (remote_unescape_input): Move to common/rsp-low.c.
14105 * common/rsp-low.h: New file.
14106 * common/rsp-low.c: New file.
14107 * Makefile.in (SFILES): Add common/rsp-low.c.
14108 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14109 (COMMON_OBS): Add rsp-low.o.
14110 (rsp-low.o): New target.
14112 2014-02-12 Tom Tromey <tromey@redhat.com>
14114 * utils.h: Include print-utils.h.
14115 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14116 (int_string, core_addr_to_string, core_addr_to_string_nz)
14117 (hex_string, hex_string_custom): Don't declare.
14118 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14119 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14120 (hex_string_custom, int_string, core_addr_to_string)
14121 (core_addr_to_string_nz, host_address_to_string): Move to
14122 common/print-utils.c.
14123 * common/print-utils.h: New file.
14124 * common/print-utils.c: New file
14125 * Makefile.in (SFILES): Add common/print-utils.c.
14126 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14127 (COMMON_OBS): Add print-utils.o.
14128 (print-utils.o): New target.
14130 2014-02-12 Tom Tromey <tromey@redhat.com>
14132 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14134 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14136 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14138 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14140 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14141 if a PT_IO ptrace request returns sucessfully but indicates that 0
14142 bytes were transferred.
14144 2014-02-12 Pedro Alves <palves@redhat.com>
14145 Kevin Buettner <kevinb@redhat.com>
14147 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14148 TYPE_INSTANCE_FLAG_CODE_SPACE.
14150 2014-02-12 Pedro Alves <palves@redhat.com>
14152 * h8300-tdep.c (pseudo_from_raw_register)
14153 (raw_from_pseudo_register): New functions.
14154 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14157 2014-02-12 Pedro Alves <palves@redhat.com>
14159 * h8300-tdep.c (h8300_register_sim_regno): New function.
14160 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14161 gdbarch_register_sim_regno hook.
14163 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14165 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14167 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14169 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14171 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14173 * obsd-tdep.h (obsd_init_abi): New prototype.
14174 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14175 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14176 (obsd_init_abi): New functions.
14177 * i386obsd-tdep.c: Include "obsd-tdep.h".
14178 (i386obsd_init_abi): Call obsd_init_abi.
14179 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14180 (amd64obsd_init_abi): Call obsd_init_abi.
14181 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14182 obsd-tdep.c to gdb_target_obs.
14184 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14186 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14187 double float arguments to 16-byte in the argument slots.
14189 2014-02-11 Doug Evans <xdje42@gmail.com>
14191 * configure.ac: Don't crash if pkg-config is not found and guile
14192 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14194 * configure: Regenerate.
14196 2014-02-11 Yao Qi <yao@codesourcery.com>
14198 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14199 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14200 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14201 * gnu-nat.c (gnu_xfer_memory): Likewise.
14202 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14203 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14204 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14205 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14207 2014-02-11 Yao Qi <yao@codesourcery.com>
14209 * target.h (enum target_xfer_error): Rename to ...
14210 (enum target_xfer_status): ... it. New. All users updated.
14211 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14213 (TARGET_XFER_STATUS_ERROR_P): New macro.
14214 (target_xfer_error_to_string): Remove declaration.
14215 (target_xfer_status_to_string): Declare.
14216 (target_xfer_partial_ftype): Adjust it.
14217 (struct target_ops) <to_xfer_partial>: Return
14218 target_xfer_status. Add argument xfered_len. Update
14220 * target.c (target_xfer_error_to_string): Rename to ...
14221 (target_xfer_status_to_string): ... it. New. All callers
14223 (target_read_live_memory): Likewise. Call target_xfer_partial
14224 instead of target_read.
14225 (memory_xfer_live_readonly_partial): Return
14226 target_xfer_status. Add argument xfered_len.
14227 (raw_memory_xfer_partial): Likewise.
14228 (memory_xfer_partial_1): Likewise.
14229 (memory_xfer_partial): Likewise.
14230 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14231 properly. Update debug message.
14232 (default_xfer_partial, current_xfer_partial): Likewise.
14233 (target_write_partial): Likewise.
14234 (target_read_partial): Likewise. All callers updated.
14235 (read_whatever_is_readable): Likewise.
14236 (target_write_with_progress): Likewise.
14237 (target_read_alloc_1): Likewise.
14239 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14240 * auxv.c (procfs_xfer_auxv): Likewise.
14241 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14242 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14243 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14244 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14245 * corefile.c (read_memory): Adjust.
14246 * corelow.c (core_xfer_partial): Likewise.
14247 * ctf.c (ctf_xfer_partial): Likewise.
14248 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14250 (darwin_xfer_partial): Likewise.
14251 * exec.c (section_table_xfer_memory_partial): Likewise. All
14253 (exec_xfer_partial): Likewise.
14254 * exec.h (section_table_xfer_memory_partial): Update
14256 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14258 (gnu_xfer_partial): Likewise.
14259 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14260 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14261 (ia64_hpux_xfer_solib_got): Likewise.
14262 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14263 type of 'partial_len' to ULONGEST.
14264 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14265 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14266 (linux_nat_xfer_partial): Likewise.
14267 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14268 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14269 * monitor.c (monitor_xfer_memory): Likewise.
14270 (monitor_xfer_partial): Likewise.
14271 * procfs.c (procfs_xfer_partial): Likewise.
14272 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14273 * record-full.c (record_full_xfer_partial): Likewise.
14274 (record_full_core_xfer_partial): Likewise.
14275 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14276 (gdbsim_xfer_partial): Likewise.
14277 * remote.c (remote_write_bytes_aux): Likewise. All callers
14279 (remote_write_bytes, remote_read_bytes): Likewise. All
14281 (remote_flash_erase): Likewise. All callers updated.
14282 (remote_write_qxfer): Likewise. All callers updated.
14283 (remote_read_qxfer): Likewise. All callers updated.
14284 (remote_xfer_partial): Likewise.
14285 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14286 (rs6000_xfer_shared_libraries): Likewise.
14287 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14288 (sol_thread_xfer_partial): Likewise.
14289 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14290 (sparc_xfer_partial): Likewise.
14291 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14293 (spu_xfer_partial): Likewise.
14294 * spu-multiarch.c (spu_xfer_partial): Likewise.
14295 * tracepoint.c (tfile_xfer_partial): Likewise.
14296 * windows-nat.c (windows_xfer_memory): Likewise.
14297 (windows_xfer_shared_libraries): Likewise.
14298 (windows_xfer_partial): Likewise.
14299 * valprint.c: Replace 'target_xfer_error' with
14300 'target_xfer_status' in comments.
14302 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14304 Checked in by Joel Brobecker <brobecker@adacore.com>.
14305 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14307 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14309 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14310 function parameters.
14312 2014-02-10 Will Newton <will.newton@linaro.org>
14314 * elfread.c (elf_rel_plt_read): Look for a .got section if
14315 looking up .got.plt fails.
14316 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14317 on address passed to elf_gnu_ifunc_record_cache.
14318 (elf_gnu_ifunc_resolve_addr): Likewise.
14319 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14321 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14323 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14324 (X_RETTURN): New macro.
14325 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14327 * sparc64-tdep.c (sparc64_init_abi): Hook
14328 sparc_in_function_epilogue_p.
14330 2014-02-10 Gary Benson <gbenson@redhat.com>
14332 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14333 Rename name_matcher to symbol_matcher.
14335 2014-02-10 Gary Benson <gbenson@redhat.com>
14337 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14338 Use expand_symtabs_file_matcher_ftype and
14339 expand_symtabs_symbol_matcher_ftype.
14341 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14343 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14344 (struct ada_symbol_cache): New.
14345 (ada_free_symbol_cache): Forward declare.
14346 (struct ada_pspace_data): New.
14347 (ada_pspace_data_handle): New static global.
14348 (get_ada_pspace_data, ada_pspace_data_cleanup)
14349 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14350 (cache_space, cache): Delete, now folded inside struct
14352 (ada_get_symbol_cache): New function.
14353 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14355 (_initialize_ada_language): Remove initialization of cache_space.
14356 Move call to observer_attach_inferior_exit up, grouping it
14357 with the other observer registrations inside this function.
14358 Rename command to be more general. Add call to
14359 register_program_space_data_with_cleanup.
14361 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14363 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14364 ada_new_objfile_observer.
14365 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14366 (_initialize_tasks): Update uses of ada_new_objfile_observer
14367 and ada_tasks_normal_stop_observer.
14369 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14371 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14372 returned by the 'Length attribute to integer.
14374 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14376 * ada-lang.c (_initialize_ada_language): Initialize
14377 cache_space obstack.
14379 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14381 * ada-lang.c (HASH_SIZE): New macro.
14382 (struct cache_entry): New type.
14383 (cache_space, cache): New static globals.
14384 (ada_clear_symbol_cache, find_entry): New functions.
14385 (lookup_cached_symbol, cache_symbol): Implement.
14386 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14387 (_initialize_ada_language): Attach ada_new_objfile_observer
14388 and ada_free_objfile_observer.
14390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14392 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14393 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14394 struct block * parameter.
14395 (ada_lookup_symbol_list_worker): Constify local variable "block".
14396 Remove cast which is no longer necessary.
14398 2014-02-10 Doug Evans <xdje42@gmail.com>
14400 Add Guile as an extension language.
14401 * NEWS: Mention Guile scripting.
14402 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14403 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14404 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14405 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14406 (CLIBS): Add GUILE_LIBS.
14407 (install-guile): New rule.
14408 (guile.o): New rule.
14409 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14410 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14411 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14412 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14413 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14414 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14415 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14416 * configure.ac: New option --with-guile.
14417 * configure: Regenerate.
14418 * config.in: Regenerate.
14419 * auto-load.c: Remove #include "python/python.h". Add #include
14420 "gdb/section-scripts.h".
14421 (source_section_scripts): Handle Guile scripts.
14422 (_initialize_auto_load): Add name of Guile objfile script to
14423 scripts-directory help text.
14424 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14425 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14426 (struct breakpoint): New member scm_bp_object.
14427 * defs.h (enum command_control_type): New value guile_control.
14428 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14430 (show_user): Update comment.
14431 (_initialize_cli_cmds): Update help text for "show user". Update help
14432 text for max-user-call-depth.
14433 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14435 (multi_line_command_p): Add guile_control.
14436 (print_command_lines): Handle guile_control.
14437 (execute_control_command, recurse_read_control_structure): Ditto.
14438 (process_next_line): Recognize "guile" commands.
14439 * disasm.c (gdb_disassemble_info): Make non-static.
14440 * disasm.h: #include "dis-asm.h".
14441 (struct gdbarch): Add forward decl.
14442 (gdb_disassemble_info): Declare.
14443 * extension.c: #include "guile/guile.h".
14444 (extension_languages): Add guile.
14445 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14446 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14447 * gdbtypes.c (get_unsigned_type_max): New function.
14448 (get_signed_type_minmax): New function.
14449 * gdbtypes.h (get_unsigned_type_max): Declare.
14450 (get_signed_type_minmax): Declare.
14451 * guile/README: New file.
14452 * guile/guile-internal.h: New file.
14453 * guile/guile.c: New file.
14454 * guile/guile.h: New file.
14455 * guile/scm-arch.c: New file.
14456 * guile/scm-auto-load.c: New file.
14457 * guile/scm-block.c: New file.
14458 * guile/scm-breakpoint.c: New file.
14459 * guile/scm-disasm.c: New file.
14460 * guile/scm-exception.c: New file.
14461 * guile/scm-frame.c: New file.
14462 * guile/scm-gsmob.c: New file.
14463 * guile/scm-iterator.c: New file.
14464 * guile/scm-lazy-string.c: New file.
14465 * guile/scm-math.c: New file.
14466 * guile/scm-objfile.c: New file.
14467 * guile/scm-ports.c: New file.
14468 * guile/scm-pretty-print.c: New file.
14469 * guile/scm-safe-call.c: New file.
14470 * guile/scm-string.c: New file.
14471 * guile/scm-symbol.c: New file.
14472 * guile/scm-symtab.c: New file.
14473 * guile/scm-type.c: New file.
14474 * guile/scm-utils.c: New file.
14475 * guile/scm-value.c: New file.
14476 * guile/lib/gdb.scm: New file.
14477 * guile/lib/gdb/boot.scm: New file.
14478 * guile/lib/gdb/experimental.scm: New file.
14479 * guile/lib/gdb/init.scm: New file.
14480 * guile/lib/gdb/iterator.scm: New file.
14481 * guile/lib/gdb/printing.scm: New file.
14482 * guile/lib/gdb/types.scm: New file.
14483 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14484 (VPATH): Add $(GUILE_SRCDIR).
14485 (GUILE_DIR): New variable.
14486 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14487 (all): Add stamp-guile dependency.
14488 (stamp-guile): New rule.
14489 (clean-guile, install-guile, uninstall-guile): New rules.
14490 (install-only): Add install-guile dependency.
14491 (uninstall): Add uninstall-guile dependency.
14492 (clean): Add clean-guile dependency.
14494 2014-02-09 Doug Evans <xdje42@gmail.com>
14496 Revert this patch (which I approved, mea culpa).
14498 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14500 * Makefile.in (all-lib): Remove.
14501 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14503 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14505 Fix Python stack corruption.
14506 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14509 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14511 * Makefile.in (all-lib): Remove.
14512 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14514 2014-02-07 Doug Evans <dje@google.com>
14516 * extension-priv.h (extension_language_script_ops): Add comment.
14517 (extension_language_ops): Add comment.
14518 (active_ext_lang_state): Fix typo in comment.
14520 2014-02-07 Pedro Alves <palves@redhat.com>
14522 PR breakpoints/16292
14523 * infrun.c (handle_signal_stop) <signal arrives while stepping
14524 over a breakpoint>: Switch back to the stepping thread.
14526 2014-02-07 Yao Qi <yao@codesourcery.com>
14528 * target.c (target_xfer_partial): Return zero if LEN is zero.
14530 2014-02-07 Yao Qi <yao@codesourcery.com>
14532 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14533 (ld_so_xfer_auxv): Likewise.
14534 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14535 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14536 * corelow.c (core_xfer_partial): Likewise.
14537 * ctf.c (ctf_xfer_partial): Likewise.
14538 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14539 (darwin_xfer_partial): Likewise.
14540 * exec.c (exec_xfer_partial): Likewise.
14541 * gnu-nat.c (gnu_xfer_partial): Likewise.
14542 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14544 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14545 * linux-nat.c (linux_xfer_siginfo): Likewise.
14546 (linux_proc_xfer_spu): Likewise.
14547 * procfs.c (procfs_xfer_partial): Likewise.
14548 * record-full.c (record_full_xfer_partial): Likewise.
14549 (record_full_core_xfer_partial): Likewise.
14550 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14551 * remote.c (remote_write_qxfer): Likewise.
14552 (remote_write_qxfer, remote_read_qxfer): Likewise.
14553 (remote_xfer_partial): Likewise.
14554 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14555 (rs6000_xfer_shared_libraries): Likewise.
14556 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14557 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14558 (spu_xfer_partial): Likewise.
14559 * target.c (memory_xfer_partial_1): Likewise.
14560 * tracepoint.c (tfile_xfer_partial): Likewise.
14561 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14562 (windows_xfer_partial): Likewise.
14564 2014-02-07 Yao Qi <yao@codesourcery.com>
14566 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14568 (core_xfer_shared_libraries_aix): Likewise.
14569 * gdbarch.c, gdbarch.h: Regenerated.
14570 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14571 ULONGEST. Change 'len_avail' type to ULONGEST.
14572 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14573 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14575 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14577 2014-02-07 Yao Qi <yao@codesourcery.com>
14579 * corefile.c (memory_error): Get 'exception' from ERR and pass
14580 'exception' to throw_error.
14582 2014-02-06 Doug Evans <xdje42@gmail.com>
14584 * configure.ac (libpython checking): Remove all but python.o from
14585 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14586 * configure: Regenerate.
14588 * Makefile.in (SFILES): Add extension.c.
14589 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14590 (COMMON_OBS): Add extension.o.
14591 * extension.h: New file.
14592 * extension-priv.h: New file.
14593 * extension.c: New file.
14595 * python/python-internal.h: #include "extension.h".
14596 (gdbpy_auto_load_enabled): Declare.
14597 (gdbpy_apply_val_pretty_printer): Declare.
14598 (gdbpy_apply_frame_filter): Declare.
14599 (gdbpy_preserve_values): Declare.
14600 (gdbpy_breakpoint_cond_says_stop): Declare.
14601 (gdbpy_breakpoint_has_cond): Declare.
14602 (void source_python_script_for_objfile): Delete.
14603 * python/python.c: #include "extension-priv.h".
14604 Delete inclusion of "observer.h".
14605 (extension_language_python): Moved here and renamed from
14606 script_language_python in py-auto-load.c.
14607 Redefined to be of type extension_language_defn.
14608 (python_extension_script_ops): New global.
14609 (python_extension_ops): New global.
14610 (struct python_env): New member previous_active.
14611 (restore_python_env): Call restore_active_ext_lang.
14612 (ensure_python_env): Call set_active_ext_lang.
14613 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14615 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14617 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14619 (gdbpy_eval_from_control_command): Renamed from
14620 eval_python_from_control_command, made static. New arg extlang.
14621 (gdbpy_source_script) Renamed from source_python_script, made static.
14623 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14624 result to int. New arg extlang.
14625 (gdbpy_source_objfile_script): Renamed from
14626 source_python_script_for_objfile, made static. New arg extlang.
14627 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14628 static. New args extlang, extlang_printers. Change result type to
14630 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14631 static. New arg extlang. Rename arg printers to extlang_printers
14632 and change type to ext_lang_type_printers *.
14633 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14634 static. Replace argument arg with extlang, extlang_printers.
14635 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14636 (!HAVE_PYTHON, source_python_script): Delete.
14637 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14638 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14639 (!HAVE_PYTHON, start_type_printers): Delete.
14640 (!HAVE_PYTHON, apply_type_printers): Delete.
14641 (!HAVE_PYTHON, free_type_printers): Delete.
14642 (_initialize_python): Delete call to observer_attach_before_prompt.
14643 (finalize_python): Set/restore active extension language.
14644 (gdbpy_finish_initialization) Renamed from
14645 finish_python_initialization, made static. New arg extlang.
14646 (gdbpy_initialized): New function.
14647 * python/python.h: #include "extension.h". Delete #include
14648 "value.h", "mi/mi-cmds.h".
14649 (extension_language_python): Declare.
14650 (GDBPY_AUTO_FILE_NAME): Delete.
14651 (enum py_bt_status): Moved to extension.h and renamed to
14652 ext_lang_bt_status.
14653 (enum frame_filter_flags): Moved to extension.h.
14654 (enum py_frame_args): Moved to extension.h and renamed to
14655 ext_lang_frame_args.
14656 (finish_python_initialization): Delete.
14657 (eval_python_from_control_command): Delete.
14658 (source_python_script): Delete.
14659 (apply_val_pretty_printer): Delete.
14660 (apply_frame_filter): Delete.
14661 (preserve_python_values): Delete.
14662 (gdbpy_script_language_defn): Delete.
14663 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14664 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14666 * auto-load.c: #include "extension.h".
14667 (GDB_AUTO_FILE_NAME): Delete.
14668 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14669 (script_language_gdb): Delete, moved to extension.c and renamed to
14670 extension_language_gdb.
14671 (source_gdb_script_for_objfile): Delete.
14672 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14673 (loaded_script): Change type of language member to
14674 struct extension_language_defn *.
14675 (init_loaded_scripts_info): Initialize
14676 unsupported_script_warning_printed.
14677 (maybe_add_script): Make static. Change type of language arg to
14678 struct extension_language_defn *.
14679 (clear_section_scripts): Reset unsupported_script_warning_printed.
14680 (auto_load_objfile_script_1): Rewrite to use extension language API.
14681 (auto_load_objfile_script): Make public. Remove support-compiled-in
14682 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14683 (source_section_scripts): Rewrite to use extension language API.
14684 (load_auto_scripts_for_objfile): Rewrite to use
14685 auto_load_scripts_for_objfile.
14686 (collect_matching_scripts_data): Change type of language member to
14687 struct extension_language_defn *.
14688 (auto_load_info_scripts): Change type of language arg to
14689 struct extension_language_defn *.
14690 (unsupported_script_warning_print): New function.
14691 (script_not_found_warning_print): Make static.
14692 (_initialize_auto_load): Rewrite construction of scripts-directory
14694 * auto-load.h (struct objfile): Add forward decl.
14695 (struct script_language): Delete.
14696 (struct auto_load_pspace_info): Add forward decl.
14697 (struct extension_language_defn): Add forward decl.
14698 (maybe_add_script): Delete.
14699 (auto_load_objfile_script): Declare.
14700 (script_not_found_warning_print): Delete.
14701 (auto_load_info_scripts): Update prototype.
14702 (auto_load_gdb_scripts_enabled): Declare.
14703 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14704 auto_load_python_scripts_enabled and made public.
14705 (script_language_python): Delete, moved to python.c.
14706 (gdbpy_script_language_defn): Delete.
14707 (info_auto_load_python_scripts): Update to use
14708 extension_language_python.
14710 * breakpoint.c (condition_command): Replace call to
14711 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14712 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14713 with call to breakpoint_ext_lang_cond_says_stop.
14714 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14715 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14716 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14717 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14719 (local_setattro): Print name of extension language with existing
14722 * valprint.c (val_print, value_print): Update to call
14723 apply_ext_lang_val_pretty_printer.
14724 * cp-valprint.c (cp_print_value): Update call to
14725 apply_ext_lang_val_pretty_printer.
14726 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14727 (gdbpy_apply_val_pretty_printer): Renamed from
14728 apply_val_pretty_printer. New arg extlang.
14729 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14731 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14732 extension language API.
14733 * cli/cli-script.c (execute_control_command): Update to call
14734 eval_ext_lang_from_control_command.
14736 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14737 enum ext_lang_bt_status values. Update call to
14738 apply_ext_lang_frame_filter.
14739 (mi_cmd_stack_list_locals): Ditto.
14740 (mi_cmd_stack_list_args): Ditto.
14741 (mi_cmd_stack_list_variables): Ditto.
14742 * mi/mi-main.c: Delete #include "python/python-internal.h".
14743 Add #include "extension.h".
14744 (mi_cmd_list_features): Replace reference to python internal variable
14745 gdb_python_initialized with call to ext_lang_initialized_p.
14747 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14748 Update to use enum ext_lang_frame_args. Update to call
14749 apply_ext_lang_frame_filter.
14750 * python/py-framefilter.c (extract_sym): Update to use enum
14751 ext_lang_bt_status.
14752 (extract_value, py_print_type, py_print_value): Ditto.
14753 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14754 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14755 (py_print_frame): Ditto.
14756 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14757 New arg extlang. Update to use enum ext_lang_bt_status.
14759 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14760 finish_python_initialization. Replace with call to
14761 finish_ext_lang_initialization.
14763 * typeprint.c (do_free_global_table): Update to call
14764 free_ext_lang_type_printers.
14765 (create_global_typedef_table): Update to call
14766 start_ext_lang_type_printers.
14767 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14768 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14769 (type_print_options): Change type of global_printers from "void *"
14770 to "struct ext_lang_type_printers *".
14772 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14773 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14774 (gdbpy_preserve_values): Renamed from preserve_python_values.
14776 (!HAVE_PYTHON, preserve_python_values): Delete.
14778 * utils.c (quit_flag): Delete, moved to extension.c.
14779 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14782 * eval.c: Delete #include "python/python.h".
14783 * main.c: Delete #include "python/python.h".
14785 * defs.h: Update comment.
14787 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14791 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14793 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14796 2014-02-05 Yao Qi <yao@codesourcery.com>
14798 * remote.c (remote_pass_signals): Remove local 'buf' and use
14800 (remote_program_signals): Likewise.
14802 2014-02-05 Yao Qi <yao@codesourcery.com>
14804 * ctf.c: Include "inferior.h" and "gdbthread.h".
14805 (CTF_PID): A new macro.
14806 (ctf_open): Call inferior_appeared and add_thread_silent.
14807 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14808 (ctf_thread_alive): New function.
14809 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14811 2014-02-05 Yao Qi <yao@codesourcery.com>
14815 2013-05-24 Yao Qi <yao@codesourcery.com>
14817 * tracepoint.c (TFILE_PID): Remove.
14818 (tfile_open): Don't add thread and inferior.
14819 (tfile_close): Don't set 'inferior_ptid'. Don't call
14820 exit_inferior_silent.
14821 (tfile_thread_alive): Remove.
14822 (init_tfile_ops): Don't set field 'to_thread_alive' of
14825 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14827 * remote.c (remote_start_remote): Call remote_check_symbols even
14828 if only symbol-file (not file) has been given.
14830 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14832 * gdbarch.sh (skip_entrypoint): New callback.
14833 * gdbarch.c, gdbarch.h: Regenerate.
14834 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14835 * infrun.c (fill_in_stop_func): Likewise.
14836 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14837 (ppc_elfv2_elf_make_msymbol_special): New function.
14838 (ppc_elfv2_skip_entrypoint): Likewise.
14839 (ppc_linux_init_abi): Install them for ELFv2.
14841 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14843 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14844 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14845 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14846 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14847 structures returned in GPRs.
14849 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14851 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14852 offset to the stack parameter list for the ELFv2 ABI.
14854 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14856 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14857 set_gdbarch_convert_from_func_ptr_addr and
14858 set_gdbarch_elf_make_msymbol_special for ELFv1.
14859 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14860 function descriptors on ELFv1.
14861 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14862 set up r12 at function entry.
14864 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14866 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14867 (struct gdbarch_tdep): New member elf_abi.
14869 * rs6000-tdep.c: Include "elf/ppc64.h".
14870 (rs6000_gdbarch_init): Detect ELF ABI version.
14872 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14874 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14875 within a register pair holding a DFP 128-bit value on little-endian.
14876 (ppc64_sysv_abi_return_value_base): Likewise.
14877 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14878 (dfp_pseudo_register_write): Likewise.
14880 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14882 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14883 offset on little-endian when passing _Decimal32.
14884 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14888 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14889 of the overlapped FP register within the VSX register on little-
14891 (efpr_pseudo_register_write): Likewise.
14893 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14895 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14896 offset on little-endian when passing small structures.
14898 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14900 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14901 (struct ppc64_sysv_argpos): New data structure.
14902 (ppc64_sysv_abi_push_float): Remove.
14903 (ppc64_sysv_abi_push_val): New function.
14904 (ppc64_sysv_abi_push_integer): Likewise.
14905 (ppc64_sysv_abi_push_freg): Likewise.
14906 (ppc64_sysv_abi_push_vreg): Likewise.
14907 (ppc64_sysv_abi_push_param): Likewise.
14908 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14909 (ppc64_sysv_abi_return_value_base): New function.
14910 (ppc64_sysv_abi_return_value): Refactor to use it.
14912 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14914 * NEWS: Document new target powerpc64le-*-linux*.
14916 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14918 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14919 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14921 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14922 register set used in ELF core dumps. Add floating-point register set.
14924 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14926 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14927 dwarf2_to_gdb[] table using symbolic constants. Adjust
14928 penultimate entry from number representing the PC register
14929 to symbolic constant representing the MDR register. Add
14930 constant for the PC register to the end of the table.
14932 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14934 * bsd-kvm.c: Include <sys/param.h>
14936 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14938 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14940 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14942 * ada-lang.h (clear_ada_sym_cache): Delete.
14944 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14946 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14948 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14950 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14951 the sigreturn register save area only if the syscall is
14954 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14956 * valops.c (value_slice): Minor reformatting.
14958 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14960 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14962 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14964 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14965 New static globals.
14966 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14967 (ada_ignore_descriptive_types_p): New static global.
14968 (find_parallel_type_by_descriptive_type): Return immediately
14969 if ada_ignore_descriptive_types_p is set.
14970 (_initialize_ada_language): Register new commands "maintenance
14971 set ada", "maintenance show ada", "maintenance set ada
14972 ignore-descriptive-types" and "maintenance show ada
14973 ignore-descriptive-types".
14974 * NEWS: Add entry for new "maint ada set/show
14975 ignore-descriptive-types" commands.
14977 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14979 * record-btrace.c (record_btrace_close): Call btrace_teardown
14982 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14984 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14987 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14989 * ada-typeprint (type_is_full_subrange_of_target_type):
14991 (print_range): Add parameter bounds_prefered_p. If not set,
14992 try printing range types using the name of their base type.
14993 (print_range_type): Add parameter bounds_prefered_p.
14994 Use it in call to print_range.
14995 (print_array_type, ada_print_type): Update calls to print_range
14996 and print_range_type.
14998 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15000 * ada-typeprint.c (print_array_type, print_choices, print_range)
15001 (print_range_bound, print_dynamic_range_bound, print_range_type):
15002 Remove declaration.
15004 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15006 * ada-typeprint.c (print_range): Add missing empty line
15007 after local declaration.
15009 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15011 * ada-valprint.c (print_optional_low_bound): Get index_type's
15012 target type for as long as it is a TYPE_CODE_RANGE.
15014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15016 * procfs.c (procfs_make_note_section): Remove assertion and
15017 associated comment.
15019 2014-01-24 Yao Qi <yao@codesourcery.com>
15021 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15022 * corelow.c (get_core_siginfo): Likewise.
15024 2014-01-24 Yao Qi <yao@codesourcery.com>
15026 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15027 ULONGEST. Don't check 'len' is negative.
15028 (remote_write_bytes): Change type of 'len' to ULONGEST.
15030 2014-01-23 Tom Tromey <tromey@redhat.com>
15033 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15034 Handle exception from frame.block.
15035 (FrameVars.fetch_frame_locals): Likewise.
15037 2014-01-23 Tom Tromey <tromey@redhat.com>
15040 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15041 on a NULL pointer. Move "goto error" to correct place.
15043 2014-01-23 Tom Tromey <tromey@redhat.com>
15046 * python/py-framefilter.c (apply_frame_filter): Call
15047 ensure_python_env after computing gdbarch.
15049 2014-01-23 Yao Qi <yao@codesourcery.com>
15051 * target.c (raw_memory_xfer_partial): Change argument type
15052 from void * to gdb_byte *.
15053 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15055 2014-01-22 Doug Evans <dje@google.com>
15057 New gdbserver option --debug-format=timestamp.
15058 * NEWS: Mention it.
15060 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15062 * syscalls/s390x-linux.xml: New file.
15063 * syscalls/s390-linux.xml: New file.
15064 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15065 (XML_SYSCALL_FILENAME_S390X): Likewise.
15066 (op_svc): New enum value for SVC opcode.
15067 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15068 (s390_linux_get_syscall_number): New function.
15069 (s390_gdbarch_init): Register '*get_syscall_number' and the
15070 syscall xml file name.
15071 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15072 "s390-linux.xml" and "s390x-linux.xml".
15073 * NEWS: Announce new feature.
15075 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15077 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15079 2014-01-22 Pedro Alves <palves@redhat.com>
15081 * xtensa-config.c: Include defs.h.
15083 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15085 * common/common-utils.h: Add "ARI:" comment beside __func__
15088 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15090 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15091 documentation a bit.
15093 2014-01-21 Roland McGrath <mcgrathr@google.com>
15095 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15096 * configure: Regenerate.
15097 * aclocal.m4: Regenerate.
15098 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15099 New substituted variables.
15100 (install-strip): New target.
15101 (INSTALL_SCRIPT): New substituted variable.
15102 (FLAGS_TO_PASS): Add it.
15103 (install-only): Use $(INSTALL_SCRIPT) rather than
15104 $(INSTALL_PROGRAM) for gcore.
15106 2014-01-20 Tom Tromey <tromey@redhat.com>
15108 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15111 2014-01-20 Tom Tromey <tromey@redhat.com>
15113 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15114 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15115 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15116 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15117 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15118 (struct cmd_list_element) <flags>: Remove.
15119 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15120 doc_allocated>: New fields.
15121 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15123 * maint.c (maintenance_do_deprecate): Update.
15124 * top.c (execute_command): Update.
15126 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15128 * xtensa-linux-nat.c: Include asm/ptrace.h.
15130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15132 * Makefile.in (SFILES): Add d-support.c.
15133 (COMMON_OBS): Add d-support.o.
15134 * d-lang.h (d_parse_symbol): Add comment, now defined in
15136 * d-lang.c (parse_call_convention)
15137 (parse_attributes, parse_function_types)
15138 (parse_function_args, parse_type, parse_identifier)
15139 (call_convention_p, d_parse_symbol): Move functions to ...
15140 * d-support.c: ... New file.
15142 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15144 * d-lang.h (d_parse_symbol): Add declaration.
15145 * d-lang.c (extract_identifiers)
15146 (extract_type_info): Remove functions.
15147 (parse_call_convention, parse_attributes)
15148 (parse_function_types, parse_function_args)
15149 (parse_type, parse_identifier, call_convention_p)
15150 (d_parse_symbol): New functions.
15151 (d_demangle): Use d_parse_symbol to demangle D symbols.
15153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15155 * d-lang.h (struct builtin_d_type): New data type.
15156 (builtin_d_type): Add declaration.
15157 * d-lang.c (d_language_arch_info, build_d_types)
15158 (builtin_d_type): New functions.
15159 (enum d_primitive_types): New data type.
15160 (d_language_defn): Change c_language_arch_info to
15161 d_language_arch_info.
15162 (d_type_data): New static variable.
15163 (_initialize_d_language): Initialize d_type_data.
15165 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15167 * d-lang.h (d_main_name): Add declaration.
15168 * d-lang.c (d_main_name): New function.
15169 * symtab.c (find_main_name): Add call to d_main_name.
15171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15173 * d-lang.c (d_language_defn): Change macro_expansion_c to
15174 macro_expansion_no.
15176 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15178 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15180 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15182 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15183 gdb_exception" declaration.
15184 * remote.c (getpkt_or_notif_sane): Likewise.
15186 2014-01-17 Doug Evans <dje@google.com>
15188 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15189 function, contents of dirnames_to_char_ptr_vec_append moved here.
15190 (delim_string_to_char_ptr_vec): New function.
15191 (dirnames_to_char_ptr_vec_append): Rewrite.
15192 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15194 2014-01-17 Doug Evans <dje@google.com>
15196 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15198 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15199 #include "common-utils.h".
15200 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15201 * common/vec.h (VEC_ASSERT_PASS): Update.
15202 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15203 (MACH_CHECK_ERROR): Update.
15205 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15207 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15209 * gdbarch.h: Regenerate.
15211 2014-01-16 Tom Tromey <tromey@redhat.com>
15213 * value.c (struct value) <regnum>: Move earlier.
15215 2014-01-16 Tom Tromey <tromey@redhat.com>
15217 * remote.c (extended_remote_create_inferior): Rename from
15218 extended_remote_create_inferior_1. Add "ops" argument. Remove
15219 old implementation.
15221 2014-01-16 Pedro Alves <palves@redhat.com>
15223 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15224 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15227 2014-01-16 Doug Evans <dje@google.com>
15229 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15231 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15233 * btrace.h (btrace_thread_flag): New.
15234 (struct btrace_thread_info) <flags>: New.
15235 * record-btrace.c (record_btrace_resume_thread)
15236 (record_btrace_find_thread_to_move, btrace_step_no_history)
15237 (btrace_step_stopped, record_btrace_start_replaying)
15238 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15239 (record_btrace_find_resume_thread): New.
15240 (record_btrace_resume, record_btrace_wait): Extend.
15241 (record_btrace_can_execute_reverse): New.
15242 (record_btrace_open): Fail in non-stop mode.
15243 (record_btrace_set_replay): Split into this, ...
15244 (record_btrace_stop_replaying): ... this, ...
15245 (record_btrace_clear_histories): ... and this.
15246 (init_record_btrace_ops): Init to_can_execute_reverse.
15247 * NEWS: Announce it.
15249 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15251 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15252 (forward_target_decr_pc_after_break)
15253 (target_decr_pc_after_break): New.
15254 * target.c (forward_target_decr_pc_after_break)
15255 (target_decr_pc_after_break): New.
15256 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15257 instead of gdbarch_decr_pc_after_break.
15258 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15259 instead of gdbarch_decr_pc_after_break.
15260 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15261 instead of gdbarch_decr_pc_after_break.
15262 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15263 instead of gdbarch_decr_pc_after_break.
15264 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15265 instead of gdbarch_decr_pc_after_break.
15266 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15267 instead of gdbarch_decr_pc_after_break.
15269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15271 * btrace.c: Include regcache.h.
15272 (btrace_add_pc): New.
15273 (btrace_enable): Call btrace_add_pc.
15274 (btrace_is_empty): New.
15275 * btrace.h (btrace_is_empty): New.
15276 * record-btrace.c (require_btrace, record_btrace_info): Call
15279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15281 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15282 Support delta reads.
15283 (linux_disable_btrace): Change return type.
15284 * common/linux-btrace.h (linux_read_btrace): Change parameters
15285 and return type to allow error reporting. Update users.
15286 (linux_disable_btrace): Change return type. Update users.
15287 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15289 (btrace_error): New.
15290 (btrace_block) <begin>: Comment on BEGIN == 0.
15291 * btrace.c (btrace_compute_ftrace): Start from the end of
15293 (btrace_stitch_trace, btrace_clear_history): New.
15294 (btrace_fetch): Read delta trace, return if replaying.
15295 (btrace_clear): Move clear history code to btrace_clear_history.
15296 (parse_xml_btrace): Throw an error if parsing failed.
15297 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15298 and return type to allow error reporting.
15299 (target_read_btrace): Change parameters and return type to allow
15301 * target.c (target_read_btrace): Update.
15302 * remote.c (remote_read_btrace): Support delta reads. Pass
15304 * NEWS: Announce it.
15306 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15308 * record.h (record_btrace_frame_unwind)
15309 (record_btrace_tailcall_frame_unwind): New declarations.
15310 * dwarf2-frame: Include record.h
15311 (dwarf2_frame_cfa): Throw an error for btrace frames.
15312 * record-btrace.c: Include hashtab.h.
15313 (btrace_get_bfun_name): New.
15314 (btrace_call_history): Call btrace_get_bfun_name.
15315 (struct btrace_frame_cache): New.
15317 (bfcache_hash, bfcache_eq, bfcache_new): New.
15318 (btrace_get_frame_function): New.
15319 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15320 (record_btrace_frame_this_id): Compute own id.
15321 (record_btrace_frame_prev_register): Provide PC, throw_error
15322 for all other registers.
15323 (record_btrace_frame_sniffer): Detect btrace frames.
15324 (record_btrace_tailcall_frame_sniffer): New.
15325 (record_btrace_frame_dealloc_cache): New.
15326 (record_btrace_frame_unwind): Add new functions.
15327 (record_btrace_tailcall_frame_unwind): New.
15328 (_initialize_record_btrace): Allocate cache.
15329 * btrace.c (btrace_clear): Call reinit_frame_cache.
15330 * NEWS: Announce it.
15332 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15334 * record-btrace.c (record_btrace_set_replay)
15335 (record_btrace_goto_begin, record_btrace_goto_end)
15336 (record_btrace_goto): New.
15337 (init_record_btrace_ops): Initialize them.
15338 * NEWS: Announce it.
15340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15342 * record-btrace.c (record_btrace_find_new_threads)
15343 (record_btrace_thread_alive): New.
15344 (init_record_btrace_ops): Initialize to_find_new_threads and
15347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15349 * record-btrace.c (record_btrace_resume): New.
15350 (record_btrace_wait): New.
15351 (init_record_btrace_ops): Initialize to_wait and to_resume.
15353 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15355 * record-btrace.c (record_btrace_xfer_partial)
15356 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15357 (record_btrace_allow_memory_access): New.
15358 (init_record_btrace_ops): Initialize new methods.
15359 * target.c (raw_memory_xfer_partial): Bail out if target reports
15360 that this memory is not available.
15362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15364 * target.h (target_ops) <to_insert_breakpoint>
15365 <to_remove_breakpoint>: Add target_ops parameter.
15366 (forward_target_insert_breakpoint): New.
15367 (forward_target_remove_breakpoint): New.
15368 (memory_remove_breakpoint, memory_insert_breakpoint):
15369 Add target_ops parameter.
15370 * target.c (target_insert_breakpoint): Split into this and ...
15371 (forward_target_insert_breakpoint): ... this.
15372 (target_remove_breakpoint): Split into this and ...
15373 (forward_target_remove_breakpoint): ... this.
15374 (debug_to_insert_breakpoint): Add target_ops parameter.
15375 Call forward_target_insert_breakpoint.
15376 (debug_to_remove_breakpoint): Add target_ops parameter.
15377 Call forward_target_remove_breakpoint.
15378 (update_current_target): Do not inherit or default to_insert_breakpoint
15379 and to_remove_breakpoint.
15380 * corelow.c (ignore): Add target_ops parameter.
15381 * exec.c (ignore): Add target_ops parameter.
15382 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15383 Add target_ops parameter.
15384 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15385 Add target_ops parameter.
15386 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15387 Add target_ops parameter.
15388 * record-full.c (record_full_beneath_to_insert_breakpoint)
15389 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15390 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15391 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15392 (record_full_core_remove_breakpoint): Add target_ops parameter.
15394 (record_full_beneath_to_insert_breakpoint_ops)
15395 (record_full_beneath_to_remove_breakpoint_ops)
15396 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15397 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15398 tmp_to_remove_breakpoint_ops,
15399 record_full_beneath_to_insert_breakpoint_ops, and
15400 record_full_beneath_to_remove_breakpoint_ops.
15401 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15402 (m32r_remove_breakpoint): Add target_ops parameter.
15403 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15404 Add target_ops parameter.
15405 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15406 Add target_ops parameter.
15408 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15409 Markus Metzger <markus.t.metzger@intel.com>
15411 * record-btrace.c: Include frame-unwind.h.
15412 (record_btrace_frame_unwind_stop_reason)
15413 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15414 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15416 (init_record_btrace_ops): Install it.
15418 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15420 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15423 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15425 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15428 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15430 * frame-unwind.c: Include target.h.
15431 (frame_unwind_try_unwinder): New function with code from ...
15432 (frame_unwind_find_by_frame): ... here. New variable
15433 unwinder_from_target, call also target_get_unwinder)
15434 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15435 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15436 * target.h (struct target_ops): New fields to_get_unwinder and
15437 to_get_tailcall_unwinder.
15438 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15442 * record-btrace.c (record_btrace_fetch_registers)
15443 (record_btrace_store_registers)
15444 (record_btrace_to_prepare_to_store): New.
15445 (init_record_btrace_ops): Add the above.
15447 2014-01-16 Tom Tromey <tromey@redhat.com>
15449 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15450 * target.h (struct target_ops) <to_prepare_to_store>: Add
15452 (target_prepare_to_store): Add argument.
15453 * target.c (debug_to_prepare_to_store): Add argument.
15454 (update_current_target): Update.
15455 * remote.c (remote_prepare_to_store): Add 'self' argument.
15456 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15457 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15458 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15459 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15461 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15462 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15463 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15464 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15465 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15469 * btrace.h (replay) <replay>: New.
15470 (btrace_is_replaying): New.
15471 * btrace.c (btrace_clear): Free replay iterator.
15472 (btrace_is_replaying): New.
15473 * record-btrace.c (record_btrace_is_replaying): New.
15474 (record_btrace_info): Print insn number if replaying.
15475 (record_btrace_insn_history): Start at replay position.
15476 (record_btrace_call_history): Start at replay position.
15477 (init_record_btrace_ops): Init to_record_is_replaying.
15479 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15481 * record-btrace.c (record_btrace_insn_history_range): Include
15483 (record_btrace_insn_history_from): Adjust range.
15484 (record_btrace_call_history_range): Include
15486 (record_btrace_call_history_from): Adjust range.
15487 * NEWS: Announce changes.
15489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15491 * record.h (enum record_print_flag)
15492 <record_print_indent_calls>: New.
15493 * record.c (get_call_history_modifiers): Recognize /c modifier.
15494 (_initialize_record): Document /c modifier.
15495 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15496 Reorder fields. Optionally indent the function name. Update
15498 * NEWS: Announce changes.
15500 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15502 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15506 * btrace.c (ftrace_new_function): Start counting at one.
15507 * record-btrace.c (record_btrace_info): Adjust number of calls
15509 * NEWS: Announce it.
15511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15513 * record-btrace.c (btrace_call_history_insn_range): Print
15514 insn range as [begin, end].
15516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15518 * btrace.h (struct btrace_func_link): New.
15519 (enum btrace_function_flag): New.
15520 (struct btrace_inst): Rename to ...
15521 (struct btrace_insn): ...this. Update all users.
15522 (struct btrace_func) <ibegin, iend>: Remove.
15523 (struct btrace_func_link): New.
15524 (struct btrace_func): Rename to ...
15525 (struct btrace_function): ...this. Update all users.
15526 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15527 (number, level, flags>: New.
15528 (struct btrace_insn_iterator): Rename to ...
15529 (struct btrace_insn_history): ...this.
15531 (struct btrace_insn_iterator, btrace_call_iterator): New.
15532 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15533 (struct btrace_target_info) <begin, end, level>
15534 <insn_history, call_history>: New.
15535 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15536 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15537 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15538 (btrace_call_number, btrace_call_begin, btrace_call_end)
15539 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15540 (btrace_find_function_by_number, btrace_set_insn_history)
15541 (btrace_set_call_history): New.
15542 * btrace.c (btrace_init_insn_iterator)
15543 (btrace_init_func_iterator, compute_itrace): Remove.
15544 (ftrace_print_function_name, ftrace_print_filename)
15545 (ftrace_skip_file): Change
15546 parameter to const.
15547 (ftrace_init_func): Remove.
15548 (ftrace_debug): Use new btrace_function fields.
15549 (ftrace_function_switched): Also consider gaining and
15550 losing symbol information).
15551 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15552 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15553 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15555 (ftrace_new_function): Move. Remove debug print.
15556 (ftrace_update_lines, ftrace_update_insns): New.
15557 (ftrace_update_function): Check for call, ret, and jump.
15558 (compute_ftrace): Renamed to ...
15559 (btrace_compute_ftrace): ...this. Rewritten to compute call
15561 (btrace_fetch, btrace_clear): Updated.
15562 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15563 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15564 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15565 (btrace_call_number, btrace_call_begin, btrace_call_end)
15566 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15567 (btrace_find_function_by_number, btrace_set_insn_history)
15568 (btrace_set_call_history): New.
15569 * record-btrace.c (require_btrace): Use new btrace thread
15571 (record_btrace_info, btrace_insn_history)
15572 (record_btrace_insn_history, record_btrace_insn_history_range):
15573 Use new btrace thread info fields and new iterator.
15574 (btrace_func_history_src_line): Rename to ...
15575 (btrace_call_history_src_line): ...this. Use new btrace
15576 thread info fields.
15577 (btrace_func_history): Rename to ...
15578 (btrace_call_history): ...this. Use new btrace thread info
15579 fields and new iterator.
15580 (record_btrace_call_history, record_btrace_call_history_range):
15581 Use new btrace thread info fields and new iterator.
15583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15585 * frame.h (frame_id_build_unavailable_stack_special): New.
15586 * frame.c (frame_id_build_unavailable_stack_special): New.
15588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15590 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15591 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15592 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15594 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15595 (i386_insn_is_jump, i386_jmp_p): New.
15596 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15597 insn_is_jump to gdbarch.
15598 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15599 * gdbarch.h: Regenerated.
15600 * gdbarch.c: Regenerated.
15601 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15602 (default_insn_is_jump): New.
15603 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15604 (default_insn_is_jump): New.
15606 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15608 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15610 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15611 (btrace_read_type) <btrace_read_new>: Change to ...
15612 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15616 * common/linux-btrace.c (linux_read_btrace): Free trace from
15617 previous iteration.
15619 2014-01-15 Doug Evans <dje@google.com>
15621 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15624 2014-01-15 Tom Tromey <tromey@redhat.com>
15626 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15627 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15628 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15629 (set_objfile_main_name): New function.
15630 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15631 language_of_main>: New fields.
15632 (set_objfile_main_name): Declare.
15633 * symtab.c (find_main_name): Loop over objfiles to find the main
15635 (set_main_name): Now static.
15636 (get_main_info): Add comment.
15637 * symtab.h (set_main_name): Don't declare.
15639 2014-01-15 Tom Tromey <tromey@redhat.com>
15641 * symtab.c (main_progspace_key): New global.
15642 (struct main_info): New.
15643 (name_of_main, language_of_main): Remove.
15644 (get_main_info, main_info_cleanup): New function.
15645 (set_main_name, main_name, main_language): Use get_main_info.
15646 (_initialize_symtab): Initialize main_progspace_key.
15648 2014-01-15 Tom Tromey <tromey@redhat.com>
15650 * dbxread.c (process_one_symbol): Update.
15651 * dwarf2read.c (read_partial_die): Update.
15652 * symfile.c (set_initial_language): Call main_language.
15653 * symtab.c (language_of_main): Now static.
15654 (set_main_name): Add 'lang' parameter.
15655 (find_main_name): Update.
15656 (main_language): New function.
15657 (symtab_observer_executable_changed): Update.
15658 * symtab.h (set_main_name): Update.
15659 (language_of_main): Remove.
15660 (main_language): Declare.
15662 2014-01-15 Tom Tromey <tromey@redhat.com>
15664 * symfile.c (init_entry_point_info): Use new "initialized" field.
15666 * objfiles.h (struct entry_point) <initialized>: New field.
15667 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15668 (struct objfile) <ei>: ...here. Remove.
15669 * objfiles.c (entry_point_address_query): Update.
15671 2014-01-15 Tom Tromey <tromey@redhat.com>
15673 * objfiles.c (entry_point_address_query): Relocate entry point
15675 (objfile_relocate1): Do not relocate entry point address.
15676 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15677 <the_bfd_section_index>: New field.
15678 * symfile.c (init_entry_point_info): Find the entry point's
15681 2014-01-15 Tom Tromey <tromey@redhat.com>
15683 * solib-frv.c (enable_break): Use entry_point_address_query.
15685 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15687 * NEWS: Add note on improved process record-replay on
15688 arm*-linux* targets.
15690 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15692 * arm-tdep.c (enum arm_record_result): New enum.
15693 (arm_record_unsupported_insn): New function.
15694 (arm_record_coproc_data_proc): Removed.
15695 (thumb2_record_ld_st_multiple): New function.
15696 (thumb2_record_ld_st_dual_ex_tbb): New function.
15697 (thumb2_record_data_proc_sreg_mimm): New function.
15698 (thumb2_record_ps_dest_generic): New function.
15699 (thumb2_record_branch_misc_cntrl): New function.
15700 (thumb2_record_str_single_data): New function.
15701 (thumb2_record_ld_mem_hints): New function.
15702 (thumb2_record_ld_word): New function.
15703 (thumb2_record_lmul_lmla_div): New function.
15704 (thumb2_record_decode_insn_handler): New function.
15705 (decode_insn): Add thumb32 instruction handlers.
15707 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15709 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15710 (struct arm_linux_record_tdep): Declare.
15711 (arm_canonicalize_syscall): New function.
15712 (arm_all_but_pc_registers_record): New function.
15713 (arm_linux_syscall_record): New function.
15714 (arm_linux_init_abi): Add syscall recording constructs.
15715 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15716 decoding. (arm_record_coproc_data_proc): Update arm syscall
15718 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15719 <arm_syscall_record>: New field.
15720 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15723 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15725 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15726 register for push instruction recording.
15728 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15730 * arm-tdep.c (thumb_record_misc): Update to correct logical
15731 error while recording ldm, ldmia and pop instructions.
15733 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15735 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15737 2014-01-15 Pedro Alves <palves@redhat.com>
15739 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15740 (go32_resume, go32_fetch_registers, store_register)
15741 (go32_store_registers, go32_prepare_to_store)
15742 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15743 (go32_create_inferior, go32_can_run, go32_terminal_init)
15744 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15747 2014-01-15 Tom Tromey <tromey@redhat.com>
15749 * target.h (async_callback_ftype): New typedef.
15750 (struct target_ops) <to_async>: Use it.
15752 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15754 * python/py-value.c (get_field_type): Remove unnecessary curly
15755 braces for single-statement if block.
15757 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15759 * python/py-type.c (convert_field): Add missing empty line
15760 after declarations.
15762 2014-01-14 Doug Evans <dje@google.com>
15764 * symfile.h (expand_symtabs_matching): Renamed from
15765 expand_partial_symbol_names. Update prototype.
15766 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15767 * symfile.c (expand_symtabs_matching): Renamed from
15768 expand_partial_symbol_names. New args file_matcher, kind.
15769 Rename arg fun to symbol_matcher.
15770 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15771 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15772 ada_expand_partial_symbol_name.
15773 (ada_make_symbol_completion_list): Update to call
15774 expand_symtabs_matching.
15775 (ada_add_global_exceptions): Call expand_symtabs_matching.
15776 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15777 call map_symbol_filenames.
15778 * symtab.c (sources_info): Update to call map_symbol_filenames.
15779 (search_symbols): Call expand_symtabs_matching.
15780 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15781 (default_make_symbol_completion_list_break_on): Update to call
15782 expand_symtabs_matching.
15783 (make_source_files_completion_list): Update to call
15784 map_symbol_filenames.
15786 2014-01-14 Doug Evans <dje@google.com>
15788 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15789 (expand_symtabs_symbol_matcher_ftype): New typedef.
15790 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15791 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15792 * symfile.c (expand_partial_symbol_names): Update to use
15793 expand_symtabs_symbol_matcher_ftype.
15794 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15795 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15796 Arg name_matcher renamed to symbol_matcher.
15797 * psymtab.c (recursively_search_psymtabs): Update to use
15798 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15800 (expand_symtabs_matching_via_partial): Update to use
15801 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15802 Arg name_matcher renamed to symbol_matcher.
15804 2014-01-14 Doug Evans <dje@google.com>
15806 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15807 (map_partial_symbol_filenames): Ditto.
15808 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15809 (map_partial_symbol_filenames): Ditto.
15810 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15811 (map_partial_symbol_filenames): Ditto.
15812 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15813 (map_partial_symbol_filenames): Ditto.
15814 * symtab.c: Delete #include "psymtab.h".
15816 2014-01-14 Pedro Alves <palves@redhat.com>
15817 Tom Tromey <tromey@redhat.com>
15819 * infrun.c (use_displaced_stepping): Use find_record_target
15820 instead of RECORD_IS_USED.
15821 (adjust_pc_after_break): Use record_full_is_used instead of
15823 * record-btrace.c (record_btrace_open): Call record_preopen
15824 instead of checking RECORD_IS_USED.
15825 * record-full.c (record_full_shortname)
15826 (record_full_core_shortname): New globals.
15827 (record_full_is_used): New function.
15828 (find_full_open): Call record_preopen instead of checking
15830 (init_record_full_ops): Set the target's shortname to
15831 record_full_shortname.
15832 (init_record_full_core_ops): Set the target's shortname to
15833 record_full_core_shortname.
15834 * record-full.h (record_full_is_used): Declare.
15835 * record.c (find_record_target): Make extern.
15836 (record_preopen): New function.
15837 * record.h (RECORD_IS_USED): Delete macro.
15838 (find_record_target, record_preopen): Declare functions.
15840 2014-01-14 Yao Qi <yao@codesourcery.com>
15842 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15843 'len''s type to ULONGEST.
15844 (core_xfer_shared_libraries_aix): Likewise.
15845 * gdbarch.c, gdbarch.h: Regenerated.
15846 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15847 Change type of 'len' to ULONGEST.
15848 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15849 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15851 2014-01-14 Yao Qi <yao@codesourcery.com>
15853 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15854 type of 'len' to ULONGEST.
15855 (linux_xfer_osdata_processgroups): Likewise.
15856 (linux_xfer_osdata_threads): Likewise.
15857 (linux_xfer_osdata_fds): Likewise.
15858 (linux_xfer_osdata_isockets): Likewise.
15859 (linux_xfer_osdata_shm): Likewise.
15860 (linux_xfer_osdata_sem): Likewise.
15861 (linux_xfer_osdata_msg): Likewise.
15862 (linux_common_xfer_osdata): Likewise.
15863 (struct osdata_type) <getter>: Likewise.
15864 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15867 2014-01-14 Yao Qi <yao@codesourcery.com>
15869 * target.h (target_xfer_partial_ftype): Update.
15870 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15872 * aix-thread.c (aix_thread_xfer_partial): Change type of
15873 argument 'len' to ULONGEST.
15874 * auxv.c (procfs_xfer_auxv): Likewise.
15875 (ld_so_xfer_auxv): Likewise.
15876 (memory_xfer_auxv): Likewise.
15877 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15878 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15879 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15880 * corelow.c (core_xfer_partial): Likewise.
15881 * ctf.c (ctf_xfer_partial): Likewise.
15882 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15884 (darwin_read_dyld_info): Likewise.
15885 (darwin_xfer_partial): Likewise.
15886 * exec.c (section_table_xfer_memory_partial): Likewise.
15887 (exec_xfer_partial): Likewise.
15888 * exec.h (section_table_xfer_memory_partial): Update
15890 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15891 instead of plongest.
15892 (gnu_xfer_partial): Likewise.
15893 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15894 (ia64_hpux_xfer_solib_got): Likewise.
15895 (ia64_hpux_xfer_partial): Likewise.
15896 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15897 * inf-ptrace.c (inf_ptrace_xfer_partial):
15898 * inf-ttrace.c (inf_ttrace_xfer_partial):
15899 * linux-nat.c (linux_xfer_siginfo): Likewise.
15900 (linux_nat_xfer_partial): Likewise.
15901 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15902 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15903 * monitor.c (monitor_xfer_memory): Likewise.
15904 (monitor_xfer_partial): Likewise.
15905 * procfs.c (procfs_xfer_partial): Likewise.
15906 * record-full.c (record_full_xfer_partial): Likewise.
15907 (record_full_core_xfer_partial): Likewise.
15908 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15909 instead of plongest.
15910 (gdbsim_xfer_partial): Likewise.
15911 * remote.c (remote_xfer_partial): Likewise.
15912 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15913 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15915 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15916 (rs6000_xfer_shared_libraries): Likewise.
15917 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15918 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15919 (sparc_xfer_partial): Likewise.
15920 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15921 (spu_xfer_partial): Likewise.
15922 * spu-multiarch.c (spu_xfer_partial): Likewise.
15923 * target.c (target_read_live_memory): Likewise.
15924 (memory_xfer_live_readonly_partial): Likewise.
15925 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15926 (target_xfer_partial, default_xfer_partial): Likewise.
15927 (current_xfer_partial): Likewise.
15928 * tracepoint.c (tfile_xfer_partial): Likewise.
15929 * windows-nat.c (windows_xfer_memory): Likewise. Call
15930 pulongest instead of plongest.
15931 (windows_xfer_partial): Likewise.
15932 (windows_xfer_shared_libraries): Likewise.
15934 2014-01-14 Yao Qi <yao@codesourcery.com>
15936 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15937 target_xfer_partial_ftype.
15939 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15943 * valops.c (value_struct_elt_bitpos): New function
15944 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15945 object to 'None' if the field name is an empty string ("").
15946 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15947 attribute to look for a field when 'name' is 'None'.
15948 (get_field_type): New function
15950 2014-01-13 Doug Evans <dje@google.com>
15953 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15954 (try_open_dwop_file): Ditto.
15955 * gdb_bfd.c: #include "vec.h".
15956 (bfdp): New typedef.
15957 (struct gdb_bfd_data): New member included_bfds.
15958 (gdb_bfd_unref): Unref all included bfds.
15959 (gdb_bfd_record_inclusion): New function.
15960 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15962 2014-01-13 Tom Tromey <tromey@redhat.com>
15964 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15966 2014-01-13 Tom Tromey <tromey@redhat.com>
15968 * defs.h (use_windows): Remove.
15969 * gdb.c (main): Update.
15970 * main.c (captured_main, gdb_main): Update.
15971 * main.h (struct captured_main_args) <use_windows>: Remove.
15972 * top.c (use_windows): Remove.
15974 2014-01-13 Tom Tromey <tromey@redhat.com>
15976 * defs.h (deprecated_flush_hook): Remove.
15978 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15981 * linux-thread-db.c (try_thread_db_load): Add parameter
15982 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15983 (try_thread_db_load_from_pdir_1): Move it there from here.
15984 (try_thread_db_load_from_sdir): Update caller.
15985 (try_thread_db_load_from_dir): Move it there from here.
15987 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15989 * regformats/regdat.sh: Always rewrite the register file.
15991 2014-01-13 Pedro Alves <palves@redhat.com>
15993 * Makefile.in (CHECK_HEADERS): New variable.
15994 (check-headers:): New rule.
15996 2014-01-13 Tom Tromey <tromey@redhat.com>
15998 * cli/cli-setshow.c (do_set_command): Update.
15999 * defs.h (deprecated_set_hook): Remove.
16000 * top.c (deprecated_set_hook): Remove.
16002 2014-01-13 Pedro Alves <palves@redhat.com>
16004 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16005 the tracepoint if the PC is a pseudo-register.
16007 2014-01-13 Tom Tromey <tromey@redhat.com>
16009 * defs.h (XCALLOC): Remove.
16010 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16011 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16012 * dwarf2loc.c (allocate_piece_closure): Likewise.
16013 * elfread.c (elf_symfile_segments): Likewise.
16014 (elf_symfile_segments): Likewise.
16015 * gdbtypes.c (copy_type_recursive): Likewise.
16016 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16017 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16018 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16020 * mt-tdep.c (mt_gdbarch_init): Likewise.
16021 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16023 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16024 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16025 * registry.c (registry_alloc_data): Likewise.
16026 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16027 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16028 * serial.c (serial_fdopen_ops): Likewise.
16029 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16031 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16032 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16035 2014-01-13 Tom Tromey <tromey@redhat.com>
16037 * defs.h (XMALLOC): Remove.
16038 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16039 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16040 * cli-out.c (struct ui_out *): Likewise.
16041 * cli/cli-dump.c (add_dump_command): Likewise.
16042 (add_dump_command): Likewise.
16043 * complaints.c (get_complaints): Likewise.
16044 (find_complaint): Likewise.
16045 * dwarf2-frame.c (execute_cfa_program): Likewise.
16046 * dwarf2read.c (abbrev_table_read_table): Likewise.
16047 * gdbarch.sh: Likewise.
16048 * gdbarch.c: Rebuild.
16049 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16050 * interps.c (interp_new): Likewise.
16051 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16052 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16053 * mi/mi-console.c (mi_console_file_new): Likewise.
16054 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16055 * mi/mi-out.c (mi_out_new): Likewise.
16056 * mi/mi-parse.c (mi_parse): Likewise.
16057 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16058 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16059 * observer.c (xalloc_observer_list_node): Likewise.
16060 * regcache.c (regcache_xmalloc_1): Likewise.
16061 * reggroups.c (reggroup_new): Likewise.
16062 (_initialize_reggroup): Likewise.
16063 * registry.c (register_data_with_cleanup): Likewise.
16064 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16065 * ser-base.c (serial_ttystate): Likewise.
16066 * ser-mingw.c (make_pipe_state): Likewise.
16067 * ser-pipe.c (pipe_open): Likewise.
16068 * serial.c (serial_open): Likewise.
16069 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16070 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16071 (tui_alloc_win_info): Likewise.
16072 (tui_add_content_elements): Likewise.
16073 * tui/tui-file.c (tui_file_new): Likewise.
16074 * tui/tui-out.c (tui_out_new): Likewise.
16075 * ui-file.c (mem_file_new): Likewise.
16076 * ui-out.c (push_level): Likewise.
16077 (make_cleanup_ui_out_end): Likewise.
16078 (append_header_to_list): Likewise.
16079 (ui_out_new): Likewise.
16080 * user-regs.c (user_reg_add_builtin): Likewise.
16082 2014-01-13 Tom Tromey <tromey@redhat.com>
16084 * defs.h (XZALLOC): Remove.
16085 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16086 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16087 (get_ada_tasks_inferior_data): Likewise.
16088 * auto-load.c (get_auto_load_pspace_data): Likewise.
16089 * auxv.c (get_auxv_inferior_data): Likewise.
16090 * bfd-target.c (target_bfd_reopen): Likewise.
16091 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16092 (deprecated_insert_raw_breakpoint): Likewise.
16093 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16094 * corelow.c (core_open): Likewise.
16095 * darwin-nat.c (darwin_check_new_threads): Likewise.
16096 (darwin_attach_pid): Likewise.
16097 * dummy-frame.c (dummy_frame_push): Likewise.
16098 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16099 * dwarf2loc.c (allocate_piece_closure): Likewise.
16100 * elfread.c (elf_symfile_segments): Likewise.
16101 * eval.c (ptrmath_type_p): Likewise.
16102 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16103 * gdbtypes.c (alloc_type_arch): Likewise.
16104 (alloc_type_instance): Likewise.
16105 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16106 * inf-child.c (inf_child_can_use_agent): Likewise.
16107 * inflow.c (get_inflow_inferior_data): Likewise.
16108 * infrun.c (save_infcall_suspend_state): Likewise.
16109 * jit.c (jit_reader_load): Likewise.
16110 (get_jit_objfile_data): Likewise.
16111 (get_jit_program_space_data): Likewise.
16112 (jit_object_open_impl): Likewise.
16113 (jit_symtab_open_impl): Likewise.
16114 (jit_block_open_impl): Likewise.
16115 (jit_frame_sniffer): Likewise.
16116 * linux-fork.c (add_fork): Likewise.
16117 * maint.c (make_command_stats_cleanup): Likewise.
16118 * objfiles.c (get_objfile_pspace_data): Likewise.
16119 * opencl-lang.c (struct lval_closure): Likewise.
16120 * osdata.c (osdata_start_osdata): Likewise.
16121 * progspace.c (new_address_space): Likewise.
16122 (add_program_space): Likewise.
16123 * remote-sim.c (get_sim_inferior_data): Likewise.
16124 * sh-tdep.c (sh_gdbarch_init): Likewise.
16125 * skip.c (Ignore): Likewise.
16126 (skip_delete_command): Likewise.
16127 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16128 (library_list_start_library): Likewise.
16129 (solib_aix_current_sos): Likewise.
16130 * solib-darwin.c (get_darwin_info): Likewise.
16131 (darwin_current_sos): Likewise.
16132 * solib-dsbt.c (get_dsbt_info): Likewise.
16133 * solib-ia64-hpux.c (new_so_list): Likewise.
16134 (ia64_hpux_get_solib_linkage_addr): Likewise.
16135 * solib-spu.c (append_ocl_sos): Likewise.
16136 (spu_current_sos): Likewise.
16137 * solib-svr4.c (get_svr4_info): Likewise.
16138 (svr4_keep_data_in_core): Likewise.
16139 (library_list_start_library): Likewise.
16140 (svr4_default_sos): Likewise.
16141 (svr4_read_so_list): Likewise.
16142 * solib-target.c (library_list_start_library): Likewise.
16143 (solib_target_current_sos): Likewise.
16144 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16145 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16146 * symfile.c (default_symfile_segments): Likewise.
16147 * target-descriptions.c (tdesc_data_init): Likewise.
16148 (tdesc_create_reg): Likewise.
16149 (struct tdesc_type *): Likewise.
16150 (tdesc_create_vector): Likewise.
16151 (tdesc_set_struct_size): Likewise.
16152 (struct tdesc_type *): Likewise.
16153 (tdesc_free_feature): Likewise.
16154 (tdesc_create_feature): Likewise.
16155 * windows-nat.c (windows_add_thread): Likewise.
16156 (windows_make_so): Likewise.
16157 * xml-support.c (gdb_xml_body_text): Likewise.
16158 (gdb_xml_create_parser_and_cleanup): Likewise.
16159 (xml_process_xincludes): Likewise.
16160 * xml-syscall.c (allocate_syscalls_info): Likewise.
16161 (syscall_create_syscall_desc): Likewise.
16163 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16165 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16166 function, with code from i386_stap_parse_special_token.
16167 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16168 (i386_stap_parse_special_token): Move code to the two functions
16169 above; simplify it.
16171 2014-01-09 Pedro Alves <palves@redhat.com>
16172 Hui Zhu <hui@codesourcery.com>
16175 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16176 bp_err_string. Don't mark the location shlib_disabled if the
16177 error thrown wasn't a generic or memory error. Catch errors
16178 thrown while inserting breakpoints in overlayed code. Output
16179 error message of software breakpoints.
16180 * remote.c (remote_insert_breakpoint): If this breakpoint has
16181 target-side commands but this stub doesn't support Z0 packets,
16182 throw NOT_SUPPORTED_ERROR error.
16183 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16184 * target.h (target_insert_breakpoint): Extend comment.
16185 (target_insert_hw_breakpoint): Add comment.
16187 2014-01-08 Pedro Alves <palves@redhat.com>
16189 * remote.c (remote_add_thread): Add threads silently if starting
16191 (remote_notice_new_inferior): If in all-stop, and starting up,
16192 don't call notice_new_inferior.
16193 (get_current_thread): New function, factored out from ...
16194 (add_current_inferior_and_thread): ... this. Adjust.
16195 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16196 found any thread, then select the remote's current thread as GDB's
16197 current thread too.
16199 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16201 * NEWS: Create a new section for the next release branch.
16202 Rename the section of the current branch, now that it has
16205 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16207 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16208 * version.in: Bump version to 7.7.50.DATE-cvs.
16210 2014-01-08 Yao Qi <yao@codesourcery.com>
16212 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16213 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16214 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16216 2014-01-08 Yao Qi <yao@codesourcery.com>
16218 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16219 return value of bfd_get_filename to symbol_file_add_from_bfd.
16221 2014-01-08 Pierre Muller <muller@sourceware.org>
16224 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16225 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16226 to prim_record_mininal_symbol_and_info.
16227 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16228 in call to prim_record_minimal_symbol_and_info.
16229 (read_pe_exported_syms): Set index field of section_data.
16231 2014-01-07 Andrew Pinski <apinski@cavium.com>
16233 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16234 * features/aarch64.c: Regenerate.
16236 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16238 * target.c (return_null): Define.
16239 (update_current_target): Use it instead of return_zero for
16240 functions that return a pointer.
16242 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16244 * source.c (add_path): Fix check for duplicated paths in the previously
16247 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16249 * ada-lang.c: Remove duplicated include statements.
16250 * alphabsd-nat.c: Ditto.
16251 * amd64-darwin-tdep.c: Ditto.
16252 * amd64fbsd-nat.c: Ditto.
16253 * auto-load.c: Ditto.
16255 * breakpoint.c: Ditto.
16256 * dbxread.c: Ditto.
16257 * fork-child.c: Ditto.
16258 * gdb_usleep.c: Ditto.
16259 * i386-darwin-tdep.c: Ditto.
16260 * i386fbsd-nat.c: Ditto.
16262 * inferior.c: Ditto.
16263 * jv-lang.c: Ditto.
16264 * linux-nat.c: Ditto.
16265 * linux-tdep.c: Ditto.
16266 * m68kbsd-nat.c: Ditto.
16267 * m68klinux-nat.c: Ditto.
16268 * microblaze-tdep.c: Ditto.
16269 * mips-linux-tdep.c: Ditto.
16270 * mn10300-tdep.c: Ditto.
16271 * nto-tdep.c: Ditto.
16272 * opencl-lang.c: Ditto.
16274 * printcmd.c: Ditto.
16275 * regcache.c: Ditto.
16276 * remote-m32r-sdi.c: Ditto.
16278 * symfile.c: Ditto.
16280 * tilegx-linux-nat.c: Ditto.
16281 * tilegx-tdep.c: Ditto.
16282 * tracepoint.c: Ditto.
16284 * vaxbsd-nat.c: Ditto.
16285 * windows-nat.c: Ditto.
16286 * xtensa-tdep.c: Ditto.
16288 2014-01-07 Yao Qi <yao@codesourcery.com>
16290 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16292 2014-01-07 Yao Qi <yao@codesourcery.com>
16293 Joel Brobecker <brobecker@adacore.com>
16295 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16296 (pdc_write_regs): Likewise.
16297 (fetch_regs_kernel_thread): Likewise.
16298 (store_regs_kernel_thread): Likewise.
16300 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16302 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16303 tagged type objects to their actual type.
16305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16307 * ada-valprint.c (print_field_values): Add "language" parameter.
16308 Update calls to print_field_values and print_variant_part.
16309 Pass new parameter "language" in call to val_print instead
16310 of "current_language". Replace call to ada_val_print by call
16312 (print_variant_part): Add "language" parameter.
16313 (ada_val_print_struct_union): Update call to print_field_values.
16315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16317 * ada-valprint.c (ui_memcpy): Delete.
16318 (ada_print_floating): Update documentation. Add empty line
16319 between between function documentation and implementation.
16320 Delete variable "buffer". Use ui_file_xstrdup in place of
16321 ui_file_put. Minor adjustments following this change.
16323 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16325 * ada-valprint.c (ada_val_print_string): New function,
16326 extracted from ada_val_print_array.
16327 (ada_val_print_array): Replace extracted code by call
16328 to ada_val_print_string followed by a return. Move
16329 "else" branch to the function's top block.
16331 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16333 * ada-valprint.c (ada_val_print_array): Move implementation
16334 down. Rename parameter "offset" and "val" into "offset_aligned"
16335 and "original_value" respectively. Add parameter "offset".
16337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16339 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16340 re-organizing the code. Change the "???" message printed
16341 when target type is a TYPE_CODE_UNDEF into
16342 "<ref to undefined type>".
16344 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16346 * ada-valprint.c (print_record): Delete, implementation inlined...
16347 (ada_val_print_struct_union): ... here. Remove call to
16348 ada_check_typedef in inlined implementation.
16350 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16352 * ada-valprint.c (ada_val_print_gnat_array): New function,
16353 extracted from ada_val_print_1;
16354 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16355 (ada_val_print_flt, ada_val_print_struct_union)
16356 (ada_val_print_ref): Likewise.
16357 (ada_val_print_1): Delete variables i and elttype.
16358 Replace extracted-out code by call to corresponding
16361 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16363 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16365 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16367 * ada-valprint.c (ada_val_print_1): Replace calls to
16368 ada_val_print_1 by calls to val_print.
16370 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16372 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16373 Update calls to self accordingly. Replace calls to c_val_print
16374 by calls to val_print.
16376 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16378 * ada-valprint.c (print_record): Delete declaration.
16379 (adjust_type_signedness, ada_val_print_1): Likewise.
16380 (ada_val_print): Move function implementation down.
16381 (print_variant_part, print_field_values, print_record):
16382 Move function implementation up.
16384 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16386 * python/py-type.c (typy_get_name): New function.
16387 (type_object_getset): Add entry for attribute "name".
16388 * NEWS: Add entry mentioning this new attribute.
16390 2014-01-07 Yao Qi <yao@codesourcery.com>
16392 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16395 2014-01-07 Yao Qi <yao@codesourcery.com>
16397 * gnu-nat.c (info_port_rights): Add qualifier const to
16400 2014-01-07 Yao Qi <yao@codesourcery.com>
16402 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16404 2014-01-07 Yao Qi <yao@codesourcery.com>
16406 * gnu-nat.c (make_inf) Update declaration.
16407 (make_inf): Make it static.
16408 (inf_set_traced): Likewise.
16409 (inf_port_to_thread, inf_task_died_status): Likewise.
16411 2014-01-07 Yao Qi <yao@codesourcery.com>
16413 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16415 2014-01-07 Yao Qi <yao@codesourcery.com>
16417 * gnu-nat.c (_initialize_gnu_nat): Declare.
16419 2014-01-07 Yao Qi <yao@codesourcery.com>
16421 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16423 (struct gdbarch_info) <byte_order>: Change type to
16425 <byte_order_for_code>: Likewise.
16426 * gdbarch.c, gdbarch.h: Regenerated.
16428 2014-01-06 Sasha Smundak <asmundak@google.com>
16430 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16432 2014-01-06 Tom Tromey <tromey@redhat.com>
16434 * doublest.c (convert_doublest_to_floatformat): Use const, not
16436 * somread.c (som_symtab_read): Likewise.
16438 2014-01-07 Hui Zhu <hui@codesourcery.com>
16440 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16441 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16442 (gdb_bfd_fopen): Ditto.
16443 (gdb_bfd_openr): Ditto.
16444 (gdb_bfd_openw): Ditto.
16445 (gdb_bfd_openr_iovec): Ditto.
16446 (gdb_bfd_fdopenr): Ditto.
16447 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16448 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16450 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16452 * symfile-mem.c (symbol_file_add_from_memory): Removed
16453 gdb_bfd_stash_filename.
16455 2014-01-03 Doug Evans <dje@google.com>
16457 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16460 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16462 Update year range in copyright notice of all files.
16464 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16466 * top.c (print_gdb_version): Set copyright year to 2014.
16468 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16470 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16472 For older changes see ChangeLog-2013.
16478 version-control: never