1 2014-12-20 Keith Seitz <keiths@redhat.com>
2 Mihail-Marian Nistor <mihail.nistor@freescale.com>
5 * linespec.c (struct collect_minsyms): Add new member `symtab'.
6 (add_minsym): Handle cases where info.symtab is non-NULL.
7 (search_minsyms_for_name): Add new parameter `symtab'.
8 Handle limiting searches to a specific symtab.
9 (add_matching_symtabs_to_info): Search through minimal symbols
10 for language_asm files for which no new symbols are found.
12 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
13 Nigel Stephens <nigel@mips.com>
14 Chris Dearman <chris@mips.com>
15 Luis Machado <lgustavo@codesourcery.com>
17 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
18 (ALLDEPFILES): Add mips-sde-tdep.c.
19 * mips-sde-tdep.c: New file containg SDE specific code.
20 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
22 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
23 * osabi.c (gdb_osabi_names): Add SDE.
24 * NEWS: Mention the change.
26 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
28 * elfread.c (elf_symfile_init): Remove stale comment.
29 (elf_symfile_read): Same.
30 * symfile.h (struct sym_fns): Same.
32 2014-12-18 Nigel Stephens <nigel@mips.com>
33 Maciej W. Rozycki <macro@codesourcery.com>
35 * mips-tdep.c (print_fpu_flags): New function.
36 (mips_print_float_info): Likewise.
37 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
38 print_float_info routine.
40 2014-12-18 Yao Qi <yao@codesourcery.com>
42 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
43 * gdbarch.c: Re-generated.
44 * gdbarch.h: Likewise.
45 * infcmd.c (default_print_float_info): New function.
46 (print_float_info): Removed. Move code to
47 default_print_float_info.
48 (float_info): Adjust to call gdbarch_print_float_info.
49 * inferior.h (default_print_float_info): Declare it.
51 2014-12-18 Yao Qi <yao@codesourcery.com>
53 * h8300-tdep.c (h8300_print_float_info): Remove.
54 (h8300_gdbarch_init): Remove the call to
55 set_gdbarch_print_float_info.
57 2014-12-18 Doug Evans <xdje42@gmail.com>
59 * infcmd.c (jump_command): Minor simplification.
61 2014-12-18 Doug Evans <xdje42@gmail.com>
63 * language.c (language_lookup_primitive_type): Renamed from
64 language_lookup_primitive_type_by_name. All callers updated.
66 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
68 Fix MinGW compilation.
69 * compile/compile.c (get_compile_file_tempdir): Call error if
71 * config.in: Regenerate.
72 * configure: Regenerate.
73 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
75 2014-12-17 Doug Evans <xdje42@gmail.com>
77 * valops.c (value_maybe_namespace_elt): Remove redundant call to
80 2014-12-17 Doug Evans <xdje42@gmail.com>
82 New parameter "debug symbol-lookup".
84 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
86 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
87 (cp_lookup_nested_symbol): Ditto.
88 * language.c (language_lookup_primitive_type_by_name): Add debug
90 * minsyms.c (lookup_minimal_symbol): Add debug output.
91 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
92 * symfile-debug.c (debug_objfile_name): ... from here. All callers
94 * objfiles.h (objfile_debug_name): Declare.
95 * symtab.h (symbol_lookup_debug): Declare.
96 * symtab.c (symbol_lookup_debug): New global.
97 (lookup_language_this): Add debug output.
98 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
99 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
100 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
101 (_initialize_symtab): Add new parameter "debug symbol-lookup".
103 2014-12-16 Doug Evans <xdje42@gmail.com>
105 * buildsym.c: Add comments describing how the buildsym machinery
106 is used by the various file formats.
107 (really_free_pendings): Enhance function comment.
108 See pending_macros to NULL. Simplify resetting pending_addrmap.
109 Call free_buildsym_compunit.
110 (free_buildsym_compunit): Set current_subfile to NULL.
111 (prepare_for_building): New function.
112 (start_symtab): Call it. Remove call to set_last_source_file.
113 (restart_symtab): New arg "cust". All callers updated.
114 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
115 (reset_symtab_globals): Enhance function comment.
116 Set local_symbols, file_symbols, global_symbols to NULL.
117 Set pending_macros to NULL. Simplify resetting pending_addrmap.
118 Call free_buildysym_compunit.
119 (end_symtab_without_blockvector): Delete. All callers updated.
120 (end_symtab_with_blockvector): Remove redundant call to
121 free_buildsym_compunit.
122 (augment_type_symtab): Remove arg "cust". All callers updated.
123 (buildsym_init): Remove resetting of free_pendings, file_symbols,
124 global_symbols, pending_blocks, pending_macros. Instead make
125 handling consistent with pending_addrmap: Assert value was reset
126 at end of previous symtab building. Initialize context_stack here.
128 2014-12-16 Doug Evans <xdje42@gmail.com>
130 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
131 cp_lookup_symbol_imports. All callers updated.
133 2014-12-16 Doug Evans <xdje42@gmail.com>
135 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
136 find_type_baseclass_by_name. All callers updated.
138 2014-12-16 Doug Evans <xdje42@gmail.com>
140 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
141 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
142 (print_symbol_info): Delete arg symtab. All callers updated.
143 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
145 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
147 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
148 "Name" columns. Assure that the output is always indented.
150 2014-12-16 Joel Brobecker <brobecker@adacore.com>
152 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
154 (linux_enable_event_reporting): Add parameter "attached".
155 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
156 declaration. New function.
157 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
158 (linux_enable_event_reporting): Add new parameter "attached".
159 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
161 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
162 Use it. Update function description.
163 (linux_child_post_attach, linux_child_post_startup_inferior):
164 Update call to linux_enable_event_reporting.
166 2014-12-16 Yao Qi <yao@codesourcery.com>
168 * NEWS: Move some entries to "Changes since GDB 7.8" section.
170 2014-12-16 Yao Qi <yao@codesourcery.com>
172 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
175 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
177 * inferior.c (find_inferior_ptid): New function.
178 * inferior.h (find_inferior_ptid): New declaration.
179 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
180 * corelow.c (core_pid_to_str): Same.
181 * darwin-nat.c (darwin_resume): Same.
182 * infrun.c (fetch_inferior_event): Same.
183 (get_inferior_stop_soon): Same.
184 (handle_inferior_event): Same.
185 (handle_signal_stop): Same.
186 * linux-nat.c (resume_lwp): Same.
187 (stop_wait_callback): Same.
188 * mi/mi-interp.c (mi_new_thread): Same.
189 (mi_thread_exit): Same.
190 * proc-service.c (ps_pglobal_lookup): Same.
191 * record-btrace.c (record_btrace_step_thread): Same.
192 * remote-sim.c (gdbsim_close_inferior): Same.
193 (gdbsim_resume): Same.
195 * sol2-tdep.c (sol2_core_pid_to_str): Same.
196 * target.c (memory_xfer_partial_1): Same.
197 (default_thread_address_space): Same.
198 * thread.c (thread_change_ptid): Same.
199 (switch_to_thread): Same.
200 (do_restore_current_thread_cleanup): Same.
202 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
204 * defs.h (gdb_readline): Constify argument.
205 (gdb_readline_wrapper): Same.
206 (command_line_input): Same.
207 (deprecated_readline_hook): Same.
208 * top.c (deprecated_readline_hook): Same.
209 (gdb_readline): Same.
210 (gdb_readline_wrapper): Same.
211 (command_line_input): Constify argument. Pass prompt_arg to called
212 functions instead of local_prompt, overwriting prompt_arg if necessary.
213 * event-top.h (display_gdb_prompt): Constify argument.
214 * event-top.c (display_gdb_prompt): Same.
215 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
216 if building with Python 3.4 and up.
218 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
220 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
223 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
226 * memattr.c (mem_info_command): Remove "unsigned long" casts.
228 2014-12-13 Doug Evans <xdje42@gmail.com>
230 * utils.c (make_hex_string): Fix off-by-one error.
232 2014-12-13 Joel Brobecker <brobecker@adacore.com>
234 * ada-lang.h (ada_ensure_varsize_limit): Declare.
235 * ada-lang.c (check_size): Remove advance declaration.
236 (ada_ensure_varsize_limit): Renames check_size.
237 Replace calls to check_size by calls to ada_ensure_varsize_limit
239 * ada-valprint.c (ada_val_print_ref): Add call to
240 ada_ensure_varsize_limit. Add comment explaining why.
242 2014-12-13 Joel Brobecker <brobecker@adacore.com>
244 * utils.c (make_hex_string): Replace use of sprintf by use of
247 2014-12-13 Joel Brobecker <brobecker@adacore.com>
249 * compile/compile-object-load.c (link_callbacks_multiple_definition)
250 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
251 newline at end of warning message.
253 2014-12-13 Joel Brobecker <brobecker@adacore.com>
255 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
256 new "EXTRA-ARGS" parameter.
257 * configure.ac: If large-file support is disabled in GDB,
258 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
259 * configure: Regenerate.
261 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
264 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
265 TYPE if not TYPE_CODE_TYPEDEF.
267 2014-12-13 Joel Brobecker <brobecker@adacore.com>
270 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
271 the frame unwinder must either be the dwarf2_frame_unwind
272 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
273 stack_addr is valid before calling get_frame_base. Throw
274 an error if not valid.
276 2014-12-12 Doug Evans <xdje42@gmail.com>
278 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
281 2014-12-12 Doug Evans <xdje42@gmail.com>
283 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
284 All callers updated. Rename arg "namespace" to "symbol_name".
286 2014-12-12 Doug Evans <xdje42@gmail.com>
288 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
289 partial_map_symtabs_matching_filename. All uses updated.
290 (psym_find_pc_sect_compunit_symtab): Renamed from
291 find_pc_sect_compunit_symtab_from_partial. All uses updated.
292 Add function comment.
293 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
294 All uses updated. Add function comment.
295 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
296 Add function comment.
297 (psym_find_last_source_symtab): Renamed from
298 find_last_source_symtab_from_partial. All uses updated.
299 Add function comment.
300 (psym_forget_cached_source_info): Renamed from
301 forget_cached_source_info_partial. All uses updated.
302 Add function comment.
303 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
304 All uses updated. Add function comment.
305 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
306 updated. Add function comment.
307 (psym_expand_symtabs_for_function): Renamed from
308 read_symtabs_for_function. All uses updated. Update function comment.
309 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
310 All uses updated. Add function comment.
311 (psym_expand_symtabs_with_fullname): Renamed from
312 read_psymtabs_with_fullname. All uses updated. Add function comment.
313 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
314 All uses updated. Add function comment.
315 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
317 (psym_expand_symtabs_matching): Renamed from
318 expand_symtabs_matching_via_partial. All uses updated.
319 Add function comment.
320 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
321 Add function comment.
323 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
324 Jan Kratochvil <jan.kratochvil@redhat.com>
325 Tom Tromey <tromey@redhat.com>
328 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
330 * p-lang.c (pascal_language_defn): Update.
331 * opencl-lang.c (opencl_language_defn): Update.
332 * objc-lang.c (objc_language_defn): Update.
333 * m2-lang.c (m2_language_defn): Update.
334 * language.h (struct language_defn) <la_get_compile_instance,
335 la_compute_program>: New fields.
336 * language.c (unknown_language_defn, auto_language_defn)
337 (local_language_defn): Update.
338 * jv-lang.c (java_language_defn): Update.
339 * go-lang.c (go_language_defn): Update.
340 * f-lang.c (f_language_defn): Update.
341 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
342 * dwarf2loc.c (dwarf2_compile_property_to_c)
343 (locexpr_generate_c_location, loclist_generate_c_location): New
345 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
346 * defs.h (enum compile_i_scope_types): New.
347 (enum command_control_type) <compile_control>: New constant.
348 (struct command_line) <control_u>: New field.
349 * d-lang.c (d_language_defn): Update.
350 * compile/compile.c: New file.
351 * compile/compile-c-support.c: New file.
352 * compile/compile-c-symbols.c: New file.
353 * compile/compile-c-types.c: New file.
354 * compile/compile.h: New file.
355 * compile/compile-internal.h: New file.
356 * compile/compile-loc2c.c: New file.
357 * compile/compile-object-load.c: New file.
358 * compile/compile-object-load.h: New file.
359 * compile/compile-object-run.c: New file.
360 * compile/compile-object-run.h: New file.
361 * cli/cli-script.c (multi_line_command_p, print_command_lines)
362 (execute_control_command, process_next_line)
363 (recurse_read_control_structure): Handle compile_control.
364 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
365 * c-lang.c (c_language_defn, cplus_language_defn)
366 (asm_language_defn, minimal_language_defn): Update.
367 * ada-lang.c (ada_language_defn): Update.
368 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
370 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
371 (HFILES_NO_SRCDIR): Add compile.h.
372 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
373 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
374 (compile.o, compile-c-types.o, compile-c-symbols.o)
375 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
376 (compile-c-support.o): New targets.
378 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
380 * s390-linux-tdep.c (s390_gcc_target_options): New function.
381 (s390_gdbarch_init): Add it to gdbarch.
383 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
385 * linux-tdep.c: Include objfiles.h and infcall.h.
386 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
388 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
390 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
392 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
393 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
394 translate_register. Now public.
395 (dwarf2_compile_expr_to_ax): Update.
397 2014-12-12 Tom Tromey <tromey@redhat.com>
398 Jan Kratochvil <jan.kratochvil@redhat.com>
400 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
401 (dwarf_expr_frame_base): Update caller.
402 (dwarf_expr_frame_base_1): Rename to ...
403 (func_get_frame_base_dwarf_block): ... this and make it public.
404 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
406 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
408 2014-12-12 Tom Tromey <tromey@redhat.com>
410 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
412 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
413 dwarf2_compile_cfa_to_ax.
414 (dwarf2_compile_cfa_to_ax): Remove.
415 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
416 (dwarf2_compile_cfa_to_ax): Remove.
418 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
420 * infcall.h (call_function_by_hand_dummy): Declare.
421 * infcall.c (call_function_by_hand): Use
422 call_function_by_hand_dummy.
423 (call_function_by_hand_dummy): Rename from call_function_by_hand.
424 Add arguments. Register a destructor.
426 2014-12-12 Tom Tromey <tromey@redhat.com>
427 Jan Kratochvil <jan.kratochvil@redhat.com>
429 * osabi.h (osabi_triplet_regexp): Declare.
430 * osabi.c (struct osabi_names): New.
431 (gdb_osabi_names): Change type to struct osabi_names. Update
433 (gdbarch_osabi_name): Update.
434 (osabi_triplet_regexp): New function.
435 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
436 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
437 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
438 set_gdbarch_gnu_triplet_regexp.
439 * gdbarch.sh (gnu_triplet_regexp): New method.
440 * gdbarch.c, gdbarch.h: Rebuild.
441 * arch-utils.h (default_gnu_triplet_regexp): Declare.
442 * arch-utils.c (default_gnu_triplet_regexp): New function.
444 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
446 * arch-utils.c (default_infcall_mmap)
447 (default_gcc_target_options): New functions.
448 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
449 (GDB_MMAP_PROT_EXEC): Define.
450 (default_infcall_mmap, default_gcc_target_options): Declare.
451 * gdbarch.h: Rebuild.
452 * gdbarch.c: Rebuild.
453 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
455 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
457 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
459 (pop_dummy_frame): Call the destructor if it exists.
460 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
462 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
463 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
465 2014-12-12 Tom Tromey <tromey@redhat.com>
467 * gdbtypes.h (make_unqualified_type): Declare.
468 * gdbtypes.c (make_unqualified_type): New function.
470 2014-12-12 Tom Tromey <tromey@redhat.com>
472 * ui-file.h (ui_file_write_for_put): Declare.
473 * ui-file.c (ui_file_write_for_put): New function.
474 * mi/mi-out.c (do_write): Remove.
475 (mi_out_put): Use ui_file_write_for_put.
477 2014-12-12 Doug Evans <dje@google.com>
479 * NEWS: Mention gdb.lookup_objfile.
480 * python/python.c (GdbMethods): Add lookup_objfile.
481 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
482 * python/py-objfile.c: #include "symtab.h".
483 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
484 (objfpy_lookup_objfile_by_name): New function.
485 (objfpy_lookup_objfile_by_build_id): New function.
486 (gdbpy_lookup_objfile): New function.
488 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
490 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
491 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
492 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
494 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
497 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
499 * completer.c: Include "target.h", "reggroups.h", and
501 (reg_or_group_completer): New.
502 * completer.h (reg_or_group_completer): Declare.
503 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
504 the "info registers" and "info all-registers" commands and the
505 dbx-mode "lr" command.
507 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
509 * user-regs.c: Include "arch-utils.h", "command.h", and
511 (maintenance_print_user_registers): New.
512 (_initialize_user_regs): Register new "maint print user-registers"
514 * NEWS: Mention new GDB command "maint print user-registers".
516 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
517 Maciej W. Rozycki <macro@mips.com>
518 Pedro Alves <pedro@codesourcery.com>
520 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
521 remove `predefault' and `invalid_p' initializers.
522 (make_symbol_special): New architecture method.
523 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
524 (objfile, symbol): New declarations.
525 * arch-utils.h (default_elf_make_msymbol_special): Remove
527 (default_make_symbol_special): New prototype.
528 (default_adjust_dwarf2_addr): Likewise.
529 (default_adjust_dwarf2_line): Likewise.
530 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
531 * arch-utils.c (default_elf_make_msymbol_special): Remove
533 (default_make_symbol_special): New function.
534 (default_adjust_dwarf2_addr): Likewise.
535 (default_adjust_dwarf2_line): Likewise.
536 * dwarf2-frame.c (decode_frame_entry_1): Call
537 `gdbarch_adjust_dwarf2_addr'.
538 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
539 * dwarf2read.c (create_addrmap_from_index): Likewise.
540 (process_psymtab_comp_unit_reader): Likewise.
541 (add_partial_symbol): Likewise.
542 (add_partial_subprogram): Likewise.
543 (process_full_comp_unit): Likewise.
544 (read_file_scope): Likewise.
545 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
546 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
547 (read_call_site_scope): Likewise.
548 (dwarf2_ranges_read): Likewise.
549 (dwarf2_record_block_ranges): Likewise.
550 (read_attribute_value): Likewise.
551 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
552 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
553 * elfread.c (elf_symtab_read): Don't call
554 `gdbarch_elf_make_msymbol_special' if unset.
555 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
556 the ISA bit from the PC.
557 * mips-tdep.c (mips_unmake_compact_addr): New function.
558 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
559 address appropriately.
560 (mips_make_symbol_special): New function.
561 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
562 (mips_pc_is_mips16): Likewise.
563 (mips_pc_is_micromips): Likewise.
564 (mips_pc_isa): Likewise.
565 (mips_adjust_dwarf2_addr): New function.
566 (mips_adjust_dwarf2_line): Likewise.
567 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
568 (mips_addr_bits_remove): Likewise.
569 (mips_skip_trampoline_code): Likewise.
570 (mips_write_pc): Don't set the ISA bit.
571 (mips_eabi_push_dummy_call): Likewise.
572 (mips_o64_push_dummy_call): Likewise.
573 (mips_gdbarch_init): Install `mips_make_symbol_special',
574 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
576 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
577 target-specific symbol address adjustments.
578 * gdbarch.h: Regenerate.
579 * gdbarch.c: Regenerate.
581 2014-12-12 Yao Qi <yao@codesourcery.com>
584 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
585 'skip_pc'. Remove code skipping prologue instructions, use
586 arm_analyze_prologue instead.
587 (arm_analyze_prologue): Stop the scanning for unrecognized
588 instruction when skipping prologue.
590 2014-12-12 Yao Qi <yao@codesourcery.com>
592 * arm-tdep.c (arm_instruction_restores_sp): New function.
593 (arm_analyze_prologue): Call arm_instruction_restores_sp.
594 (arm_in_function_epilogue_p): Move code to
595 arm_instruction_restores_sp.
597 2014-12-11 Doug Evans <xdje42@gmail.com>
599 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
601 2014-12-11 Doug Evans <xdje42@gmail.com>
603 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
604 (symbol *lookup_symbol_via_quick_fns): Ditto.
605 (lookup_symbol_in_objfile): Add forward decl.
606 (lookup_global_symbol_from_objfile): Simplify, call
607 lookup_symbol_in_objfile.
609 2014-12-11 Doug Evans <xdje42@gmail.com>
611 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
613 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
616 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
617 it is marked as persistent.
619 2014-12-10 Doug Evans <xdje42@gmail.com>
621 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
622 closer to its subroutines.
624 2014-12-10 Doug Evans <xdje42@gmail.com>
626 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
628 2014-12-10 Doug Evans <xdje42@gmail.com>
630 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
631 * cp-support.h (cp_lookup_symbol_imports): Delete.
633 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
636 * target.c (cleanup_restore_target_terminal): New function.
637 (make_cleanup_restore_target_terminal): New function.
638 * target.h (make_cleanup_restore_target_terminal): New declaration.
639 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
641 2014-12-08 Doug Evans <dje@google.com>
643 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
645 2014-12-08 Doug Evans <dje@google.com>
647 * NEWS: Mention gdb.Objfile.owner.
648 * python/py-objfile.c (objfpy_get_owner): New function.
649 (objfile_getset): Add "owner".
651 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
653 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
654 (lookup_global_symbol_from_objfile): Call it.
656 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
658 Remove const from struct objfile *.
659 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
660 symtab.c, symtab.h: In these files.
662 2014-12-05 Andreas From <andreas.from@ericsson.com>
664 * MAINTAINERS (Write After Approval): Add "Andreas From"
666 2014-12-05 Doug Evans <xdje42@gmail.com>
670 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
672 2014-12-04 Doug Evans <dje@google.com>
674 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
675 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
676 (objfile_getset): Add "add_separate_debug_file".
678 2014-12-04 Doug Evans <dje@google.com>
680 * NEWS: Mention gdb.Objfile.build_id.
681 * build-id.c (build_id_bfd_get): Make non-static.
682 * build-id.h (build_id_bfd_get): Add declaration.
683 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
684 (OBJFPY_REQUIRE_VALID): New macro.
685 (objfpy_get_build_id): New function.
686 (objfile_getset): Add "build_id".
687 * utils.c (make_hex_string): New function.
688 * utils.h (make_hex_string): Add declaration.
690 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
692 * block.c (block_lookup_symbol_primary): New function.
693 * block.h (block_lookup_symbol_primary): New declaration.
694 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
695 Call block_lookup_symbol_primary.
697 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
699 * tramp-frame.h (tramp_frame): Add `validate' member.
700 * tramp-frame.c (tramp_frame_start): Validate trampoline before
702 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
703 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
704 (mips_linux_o32_sigframe): Initialize `validate' member.
705 (mips_linux_o32_rt_sigframe): Likewise.
706 (mips_linux_n32_rt_sigframe): Likewise.
707 (mips_linux_n64_rt_sigframe): Likewise.
708 (micromips_linux_o32_sigframe): New variable.
709 (micromips_linux_o32_rt_sigframe): Likewise.
710 (micromips_linux_n32_rt_sigframe): Likewise.
711 (micromips_linux_n64_rt_sigframe): Likewise.
712 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
713 (mips_linux_n32n64_sigframe_init): Likewise.
714 (mips_linux_sigframe_validate): New function.
715 (micromips_linux_sigframe_validate): Likewise.
716 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
718 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
720 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
721 * sparc-sol2-tdep.c: Include "regset.h".
722 (sparc32_sol2_supply_core_gregset): New function.
723 (sparc32_sol2_collect_core_gregset): Likewise.
724 (sparc32_sol2_supply_core_fpregset): Likewise.
725 (sparc32_sol2_collect_core_fpregset): Likewise.
726 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
727 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
728 tdep->fpregset/sizeof_fpregset.
729 * sparc64-sol2-tdep.c: Include "regset.h".
730 (sparc64_sol2_supply_core_gregset): New function.
731 (sparc64_sol2_collect_core_gregset): Likewise.
732 (sparc64_sol2_supply_core_fpregset): Likewise.
733 (sparc64_sol2_collect_core_fpregset): Likewise.
734 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
735 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
736 tdep->fpregset/sizeof_fpregset.
738 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
740 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
743 2014-12-02 Doug Evans <dje@google.com>
745 * symtab.c (symbol_init_cplus_specific): Delete.
746 (symbol_set_demangled_name): Remove special c++ support.
747 (symbol_get_demangled_name, symbol_set_language): Ditto.
748 * symtab.h (struct cplus_specific): Delete.
749 (struct general_symbol_info) <language_specific>: Remove
752 2014-12-02 Doug Evans <dje@google.com>
755 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
757 2014-12-02 Doug Evans <dje@google.com>
760 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
763 2014-12-02 Doug Evans <dje@google.com>
765 * dwarf2read.c (peek_die_abbrev): Improve error message text.
767 2014-12-02 Doug Evans <dje@google.com>
769 * valops.c (do_search_struct_field): Remove remnant of Chill support.
770 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
772 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
774 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
776 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
778 * NEWS: Mention new Python events.
779 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
780 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
781 (py-infevents.o): New rule.
782 * doc/observer.texi (inferior_call_pre, inferior_call_post)
783 (memory_changed, register_changed): New observers.
784 * infcall.c (call_function_by_hand): Notify observer before and
786 * python/py-event.h (inferior_call_kind): New enum.
787 (emit_inferior_call_event): New prototype.
788 (emit_register_changed_event): New prototype.
789 (emit_memory_changed_event): New prototype.
790 * python/py-events.h (events_object): New registries
791 inferior_call, memory_changed and register_changed.
792 * python/py-evts.c (gdbpy_initialize_py_events): Add the
793 inferior_call, memory_changed and register_changed registries.
794 * python/py-infevents.c: New.
795 * python/py-inferior.c (python_on_inferior_call_pre)
796 (python_on_inferior_call_post, python_on_register_change)
797 (python_on_memory_change): New functions.
798 (gdbpy_initialize_inferior): Attach python handler to new
800 * python/py-infthread.c(gdbpy_create_ptid_object): New.
801 (thpy_get_ptid) Use gdbpy_create_ptid_object.
802 * python/python-internal.h:
803 (gdbpy_create_ptid_object)
804 (gdbpy_initialize_inferior_call_pre_event)
805 (gdbpy_initialize_inferior_call_post_event)
806 (gdbpy_initialize_register_changed_event)
807 (gdbpy_initialize_memory_changed_event): New prototypes.
808 * python/python.c (_initialize_python): Initialize new events.
809 * valops.c (value_assign): Notify register_changed observer.
811 2014-12-02 Doug Evans <dje@google.com>
813 * python/py-infthread.c: Whitespace fixes.
815 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
817 * features/Makefile (s390-te-linux64-expedite): Replace
818 non-existant r14 and r15 by r14l and r15l, respectively.
819 * regformats/s390-te-linux64.dat: Regenerate.
821 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
823 * objfiles.c (allocate_objfile): Remove duplicate comment.
825 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
827 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
828 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
829 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
830 (supply_gregset, supply_fpregset): Remove.
831 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
832 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
835 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
837 Add add-auto-load-scripts-directory.
838 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
839 * auto-load.c (add_auto_load_dir): New function.
840 (_initialize_auto_load): Install it.
842 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
844 Pushed by Joel Brobecker <brobecker@adacore.com>.
845 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
847 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
849 * eval.c (evaluate_subexp): Check that the thread stack temporaries
850 are not already enabled before enabling them.
852 2014-11-29 Yao Qi <yao@codesourcery.com>
854 * arm-tdep.c (arm_analyze_prologue): Move local variables
855 'framereg' and 'framesize' to inner block. Move code to
858 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
860 * eval.c: Include gdbthread.h.
861 (evaluate_subexp): Enable thread stack temporaries before
862 evaluating a complete expression and clean them up after the
863 evaluation is complete.
864 * gdbthread.h: Include common/vec.h.
865 (value_ptr): New typedef.
866 (VEC (value_ptr)): New vector type.
867 (value_vec): New typedef.
868 (struct thread_info): Add new fields stack_temporaries_enabled
869 and stack_temporaries.
870 (enable_thread_stack_temporaries)
871 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
872 (get_last_thread_stack_temporary)
873 (value_in_thread_stack_temporaries): Declare.
874 * gdbtypes.c (class_or_union_p): New function.
875 * gdbtypes.h (class_or_union_p): Declare.
876 * infcall.c (call_function_by_hand): Store return values of class
877 type as temporaries on stack.
878 * thread.c (enable_thread_stack_temporaries): New function.
879 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
880 (get_last_thread_stack_temporary): Likewise.
881 (value_in_thread_stack_temporaries): Likewise.
882 * value.c (value_force_lval): New function.
883 * value.h (value_force_lval): Declare.
885 2014-11-28 Pierre Muller <muller@sourceware.org>
887 Pushed by Joel Brobecker <brobecker@adacore.com>.
888 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
891 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
893 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
894 * config/sparc/linux.mh (NATDEPFILES): Likewise.
895 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
896 * m68klinux-nat.c (fetch_core_registers): Remove.
897 (linux_elf_core_fns): Remove.
898 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
900 2014-11-28 Joel Brobecker <brobecker@adacore.com>
902 * utils.c (gdb_realpath): Rework comment about handling on
905 2014-11-28 Yao Qi <yao@codesourcery.com>
907 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
909 * gnulib/aclocal.m4: Re-generated.
910 * gnulib/config.in: Re-generated.
911 * gnulib/configure: Re-generated.
912 * gnulib/import/Makefile.am: Re-generated.
913 * gnulib/import/Makefile.in: Re-generated.
914 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
915 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
916 * import/basename-lgpl.c: New file.
917 * import/dirname-lgpl.c: New file.
918 * import/dirname.h: New file.
919 * import/m4/dirname.m4: New file.
920 * import/m4/malloc.m4: New file.
921 * import/m4/rename.m4: New file.
922 * import/m4/rmdir.m4: New file.
923 * import/m4/stdio_h.m4: New file.
924 * import/malloc.c: New file.
925 * import/rename.c: New file.
926 * import/rmdir.c: New file.
927 * import/same-inode.h: New file.
928 * import/stdio.c: New file.
929 * import/stdio.in.h: New file.
930 * import/stripslash.c: New file.
932 2014-11-28 Yao Qi <yao@codesourcery.com>
934 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
936 * config.in: Re-generated.
937 * configure: Re-generated.
938 * utils.c (gdb_realpath): Remove code calling realpath,
939 canonicalize_file_name and pathconf.
940 [!_WIN32]: Call canonicalize_file_name.
942 2014-11-28 Yao Qi <yao@codesourcery.com>
944 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
946 * aclocal.m4: Re-generated.
947 * config.in: Re-generated.
948 * configure: Re-generated.
949 * import/Makefile.am: Re-generated.
950 * import/Makefile.in: Re-generated.
951 * import/m4/gnulib-cache.m4: Re-generated.
952 * import/m4/gnulib-comp.m4: Re-generated.
953 * import/canonicalize-lgpl.c: New file.
954 * import/extra/snippet/_Noreturn.h: New file.
955 * import/m4/canonicalize.m4: New file.
956 * import/m4/double-slash-root.m4: New file.
957 * import/m4/eealloc.m4: New file.
958 * import/m4/malloca.m4: New file.
959 * import/m4/nocrash.m4: New file.
960 * import/m4/stdlib_h.m4: New file.
961 * import/malloca.c: New file.
962 * import/malloca.h: New file.
963 * import/malloca.valgrind: New file.
965 2014-11-28 Yao Qi <yao@codesourcery.com>
967 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
968 * config.in, configure: Regenerate.
969 * symfile.c (find_separate_debug_file_by_debuglink): Remove
970 code checking HAVE_LSTAT is defined.
972 2014-11-28 Yao Qi <yao@codesourcery.com>
974 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
976 * gnulib/aclocal.m4: Re-generated.
977 * gnulib/config.in: Re-generated.
978 * gnulib/configure: Re-generated.
979 * gnulib/import/Makefile.am: Re-generated.
980 * gnulib/import/Makefile.in: Re-generated.
981 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
982 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
983 * gnulib/import/lstat.c: New file.
984 * gnulib/import/m4/lstat.m4: New file.
986 2014-11-28 Yao Qi <yao@codesourcery.com>
988 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
989 * config.in, configure: Re-generate.
990 * inf-child.c (inf_child_fileio_readlink): Don't check
991 HAVE_READLINK is defined.
993 2014-11-28 Yao Qi <yao@codesourcery.com>
995 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
996 * gnulib/aclocal.m4: Re-generated.
997 * gnulib/config.in: Likewise.
998 * gnulib/configure: Likewise.
999 * gnulib/import/Makefile.am: Likewise.
1000 * gnulib/import/Makefile.in: Likewise.
1001 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1002 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1003 * gnulib/import/dosname.h: New file
1004 * gnulib/import/m4/largefile.m4: New file.
1005 * gnulib/import/m4/readlink.m4: New file.
1006 * gnulib/import/m4/stat.m4: New file.
1007 * gnulib/import/readlink.c: New file.
1008 * gnulib/import/stat.c: New file.
1010 2014-11-26 Mark Wielaard <mjw@redhat.com>
1012 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1013 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1015 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1017 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1018 that there can be only one stack adjustment in the prologue
1019 with tests to detect specific disallowed stack adjustments.
1021 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1023 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1026 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1028 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1029 the instruction as well as reading it from memory.
1030 (nios2_match_add): New.
1031 (nios2_match_sub): New.
1032 (nios2_match_addi): New.
1033 (nios2_match_orhi): New.
1034 (nios2_match_stw): New.
1035 (nios2_match_ldw): New.
1036 (nios2_match_rdctl): New.
1037 (enum branch_condition): New.
1038 (nios2_match_branch): New.
1039 (nios2_match_jmpi): New.
1040 (nios2_match_calli): New.
1041 (nios2_match_jmpr): New.
1042 (nios2_match_callr): New.
1043 (nios2_match_break): New.
1044 (nios2_match_trap): New.
1045 (nios2_in_epilogue_p): Rewrite to use new functions.
1046 (nios2_analyze_prologue): Likewise.
1047 (nios2_skip_prologue): Delete unused local limit_pc.
1048 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1049 (nios2_get_next_pc): Rewrite to use new functions.
1051 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1055 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1057 Pushed by Joel Brobecker <brobecker@adacore.com>
1058 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1059 elements pi_len by the size of the elements before calling
1061 (inf_validate_task_sc): Likewise, and properly deallocate the
1064 2014-11-23 Doug Evans <xdje42@gmail.com>
1066 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1067 number and name if present. All callers updated.
1068 (dump_fn_fieldlists): Fix indentation of args.
1070 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1072 * MAINTAINERS (Write After Approval): Add myself.
1074 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1076 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1077 to a bp_call_dummy breakpoint type.
1079 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1081 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1082 registering the signal handler.
1084 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1086 * event-top.h (call_stdin_event_handler_again_p): Declare.
1087 * event-top.c (call_stdin_event_handler_again_p): Define.
1088 (stdin_event_handler): Use it.
1089 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1090 handler again if there is pending input following a
1093 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1095 Pushed by Joel Brobecker <brobecker@adacore.com>
1096 * linux-fork.c (checkpoint_command): Print index of new
1097 checkpoint in response message.
1099 2014-11-23 Yao Qi <yao@codesourcery.com>
1101 * valprint.c (read_string): Move local variables 'found_nul',
1102 'chunksize' and 'limit' to inner scope. Update comments.
1104 2014-11-22 Doug Evans <xdje42@gmail.com>
1106 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1108 (search_symbols): Fix comments and whitespace.
1110 2014-11-22 Doug Evans <xdje42@gmail.com>
1112 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1114 2014-11-21 Doug Evans <dje@google.com>
1116 * psymtab.c (psymtab_search_name): Fix whitespace.
1118 2014-11-21 Yao Qi <yao@codesourcery.com>
1120 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1122 * gnulib/import/Makefile.am: Re-generated.
1123 * gnulib/import/Makefile.in: Likewise.
1124 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1126 2014-11-21 Yao Qi <yao@codesourcery.com>
1128 * gdb_wchar.h: Include wchar.h and wctype.h.
1129 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1130 include wchar.h and wctype.h.
1131 Don't check HAVE_WCHAR_H.
1133 2014-11-21 Yao Qi <yao@codesourcery.com>
1135 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
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 (IMPORTED_GNULIB_MODULES): Add
1145 * gnulib/import/Makefile.am: Re-generated.
1146 * gnulib/import/Makefile.in: Likewise.
1147 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1149 2014-11-21 Yao Qi <yao@codesourcery.com>
1151 * common/common-defs.h: Include alloca.h
1152 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1153 * configure: Re-generated.
1154 * defs.h: Remove code handling alloca.
1155 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1158 2014-11-21 Yao Qi <yao@codesourcery.com>
1160 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1162 * gnulib/import/Makefile.am: Re-generated.
1163 * gnulib/import/Makefile.in: Likewise..
1164 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1166 2014-11-21 Yao Qi <yao@codesourcery.com>
1168 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1171 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1173 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1174 flag_unsigned if HIGH_BOUND is constant and negative.
1176 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1178 PR breakpoints/10737
1179 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1180 modifier from "struct gdbarch" when compiling without Expat (XML)
1182 (get_syscall_by_number): Likewise.
1183 (get_syscall_by_name): Likewise.
1184 (get_syscall_names): Likewise.
1186 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1188 PR breakpoints/10737
1189 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1190 set_xml_syscall_file_name to provide gdbarch.
1191 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1192 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1193 * breakpoint.c (print_it_catch_syscall): Adjust call to
1194 get_syscall_by_number to provide gdbarch.
1195 (print_one_catch_syscall): Likewise.
1196 (print_mention_catch_syscall): Likewise.
1197 (print_recreate_catch_syscall): Likewise.
1198 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1199 and get_syscall_by_name to provide gdbarch.
1200 (catch_syscall_completer): Adjust call to get_syscall_names to
1202 * gdbarch.c: Regenerate.
1203 * gdbarch.h: Likewise.
1204 * gdbarch.sh: Forward declare "struct syscalls_info".
1205 (xml_syscall_file): New variable.
1206 (syscalls_info): Likewise.
1207 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1208 set_xml_syscall_file_name to provide gdbarch.
1209 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1210 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1211 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1212 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1213 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1214 * xml-syscall.c: Include gdbarch.h.
1215 (set_xml_syscall_file_name): Accept gdbarch parameter.
1216 (get_syscall_by_number): Likewise.
1217 (get_syscall_by_name): Likewise.
1218 (get_syscall_names): Likewise.
1219 (my_gdb_datadir): Delete global variable.
1220 (struct syscalls_info) <my_gdb_datadir>: New variable.
1221 (struct syscalls_info) <sysinfo>: Rename variable to
1223 (sysinfo): Delete global variable.
1224 (have_initialized_sysinfo): Likewise.
1225 (xml_syscall_file): Likewise.
1226 (sysinfo_free_syscalls_desc): Rename to...
1227 (syscalls_info_free_syscalls_desc): ... this.
1228 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1229 code to the new layout of "struct syscalls_info".
1230 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1232 (syscall_create_syscall_desc): Likewise.
1233 (syscall_start_syscall): Likewise.
1234 (syscall_parse_xml): Likewise.
1235 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1236 (init_sysinfo): Rename to...
1237 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1238 Adjust function to deal with gdbarch.
1239 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1240 gdbarch as a parameter. Adjust code.
1241 (xml_get_syscall_name): Likewise.
1242 (xml_list_of_syscalls): Likewise.
1243 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1244 (get_syscall_by_number): Likewise.
1245 (get_syscall_by_name): Likewise.
1246 (get_syscall_names): Likewise.
1247 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1248 (get_syscall_by_number): Likewise.
1249 (get_syscall_by_name): Likewise.
1250 (get_syscall_names): Likewise.
1252 2014-11-20 Doug Evans <xdje42@gmail.com>
1254 Split struct symtab into two: struct symtab and compunit_symtab.
1255 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1256 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1257 to "struct compunit_symtab *". All callers updated.
1258 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1259 "struct symtab *" argument to "struct compunit_symtab *".
1260 All callers updated.
1261 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1262 result to "struct compunit_symtab *". All callers updated.
1263 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1264 Change result to "struct compunit_symtab *". All callers updated.
1265 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1266 hange type to "struct compunit_symtab *". All uses updated.
1267 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1268 Change type to "struct compunit_symtab *". All uses updated.
1269 * buildsym.c (struct buildsym_compunit): New struct.
1270 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1271 (buildsym_compunit): New static global.
1272 (finish_block_internal): Update to fetch objfile from
1274 (make_blockvector): Delete objfile argument.
1275 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1276 debugformat, producer.
1277 (start_buildsym_compunit): New function.
1278 (free_buildsym_compunit): Renamed from free_subfiles_list.
1279 All callers updated.
1280 (patch_subfile_names): Rewrite to use buildsym_compunit.
1281 (get_compunit_symtab): New function.
1282 (get_macro_table): Delete argument comp_dir. All callers updated.
1283 (start_symtab): Change result to "struct compunit_symtab *".
1284 All callers updated. Create the subfile of the main source file.
1285 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1286 (reset_symtab_globals): Update.
1287 (end_symtab_get_static_block): Update to use buildsym_compunit.
1288 (end_symtab_without_blockvector): Rewrite.
1289 (end_symtab_with_blockvector): Change result to
1290 "struct compunit_symtab *". All callers updated.
1291 Update to use buildsym_compunit. Don't set symtab->dirname,
1292 instead set it in the compunit.
1293 Explicitly make sure main symtab is first in its list.
1294 Set debugformat, producer, blockvector, block_line_section, and
1295 macrotable in the compunit.
1296 (end_symtab_from_static_block): Change result to
1297 "struct compunit_symtab *". All callers updated.
1298 (end_symtab, end_expandable_symtab): Ditto.
1299 (set_missing_symtab): Change symtab argument to
1300 "struct compunit_symtab *". All callers updated.
1301 (augment_type_symtab): Ditto.
1302 (record_debugformat): Update to use buildsym_compunit.
1303 (record_producer): Update to use buildsym_compunit.
1304 * buildsym.h (struct subfile) <dirname>: Delete.
1305 <producer, debugformat>: Delete.
1306 <buildsym_compunit>: New member.
1307 (get_compunit_symtab): Declare.
1308 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1309 from primary_symtab. Change type to "struct compunit_symtab *".
1311 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1312 All callers updated.
1313 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1314 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1315 symtab. Change type to "struct compunit_symtab *". All uses updated.
1316 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1317 All callers updated.
1318 (dw2_find_last_source_symtab): Ditto.
1319 (dw2_lookup_symbol): Ditto.
1320 (recursively_find_pc_sect_compunit_symtab): Renamed from
1321 recursively_find_pc_sect_symtab. Change result to
1322 "struct compunit_symtab *". All callers updated.
1323 (dw2_find_pc_sect_compunit_symtab): Renamed from
1324 dw2_find_pc_sect_symtab. Change result to
1325 "struct compunit_symtab *". All callers updated.
1326 (get_compunit_symtab): Renamed from get_symtab. Change result to
1327 "struct compunit_symtab *". All callers updated.
1328 (recursively_compute_inclusions): Change type of immediate_parent
1329 argument to "struct compunit_symtab *". All callers updated.
1330 (compute_compunit_symtab_includes): Renamed from
1331 compute_symtab_includes. All callers updated. Rewrite to compute
1332 includes of compunit_symtabs and not symtabs.
1333 (process_full_comp_unit): Update to work with struct compunit_symtab.
1334 (process_full_type_unit): Ditto.
1335 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1336 (dwarf_decode_lines): Remove special case handling of main subfile.
1337 (macro_start_file): Delete argument comp_dir. All callers updated.
1338 (dwarf_decode_macro_bytes): Ditto.
1339 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1340 use struct compunit_symtab.
1341 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1342 * jit.c (finalize_symtab): Build compunit_symtab.
1343 * jv-lang.c (get_java_class_symtab): Change result to
1344 "struct compunit_symtab *". All callers updated.
1345 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1346 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1347 comp_dir. Change type to "struct compunit_symtab *".
1349 (new_macro_table): Change comp_dir argument to cust,
1350 "struct compunit_symtab *". All callers updated.
1351 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1352 nr_primary_symtabs. All uses updated.
1353 (count_symtabs_and_blocks): Update to handle compunits.
1354 (report_command_stats): Update output, "primary symtabs" renamed to
1356 * mdebugread.c (new_symtab): Change result to
1357 "struct compunit_symtab *". All callers updated.
1358 (parse_procedure): Change type of search_symtab argument to
1359 "struct compunit_symtab *". All callers updated.
1360 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1362 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1363 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1364 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1366 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1368 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1369 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1370 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1371 symtab. Change type to "struct compunit_symtab *". All uses updated.
1372 * psymtab.c (psymtab_to_symtab): Change result type to
1373 "struct compunit_symtab *". All callers updated.
1374 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1375 find_pc_sect_symtab_from_partial. Change result type to
1376 "struct compunit_symtab *". All callers updated.
1377 (lookup_symbol_aux_psymtabs): Change result type to
1378 "struct compunit_symtab *". All callers updated.
1379 (find_last_source_symtab_from_partial): Ditto.
1380 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1381 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1382 and macro_table from compunit.
1383 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1384 type to "struct compunit_symtab *". All callers updated.
1385 (debug_qf_lookup_symbol): Ditto.
1386 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1387 debug_qf_find_pc_sect_symtab, change result type to
1388 "struct compunit_symtab *". All callers updated.
1389 * symfile.c (allocate_symtab): Delete objfile argument.
1391 (allocate_compunit_symtab): New function.
1392 (add_compunit_symtab_to_objfile): New function.
1393 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1394 Change result type to "struct compunit_symtab *". All uses updated.
1395 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1396 Change result type to "struct compunit_symtab *". All uses updated.
1397 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1399 (dump_symtab_1): Update test for primary source symtab.
1400 (maintenance_info_symtabs): Update to handle compunit symtabs.
1401 (maintenance_check_symtabs): Ditto.
1402 * symtab.c (set_primary_symtab): Delete.
1403 (compunit_primary_filetab): New function.
1404 (compunit_language): New function.
1405 (iterate_over_some_symtabs): Change type of arguments "first",
1406 "after_last" to "struct compunit_symtab *". All callers updated.
1407 Update to loop over symtabs in each compunit.
1408 (error_in_psymtab_expansion): Rename symtab argument to cust,
1409 and change type to "struct compunit_symtab *". All callers updated.
1410 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1411 Change result type to "struct compunit_symtab *". All callers updated.
1412 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1413 Change result type to "struct compunit_symtab *". All callers updated.
1414 (find_pc_sect_line): Only loop over symtabs within selected compunit
1415 instead of all symtabs in the objfile.
1416 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1417 <compunit_symtab> New member.
1418 <block_line_section>: Moved to compunit_symtab.
1419 <locations_valid>: Ditto.
1420 <epilogue_unwind_valid>: Ditto.
1421 <macro_table>: Ditto.
1423 <debugformat>: Ditto.
1426 <call_site_htab>: Ditto.
1430 (SYMTAB_COMPUNIT): New macro.
1431 (SYMTAB_BLOCKVECTOR): Update definition.
1432 (SYMTAB_OBJFILE): Update definition.
1433 (SYMTAB_DIRNAME): Update definition.
1434 (struct compunit_symtab): New type. Common members among all source
1435 symtabs within a compilation unit moved here. All uses updated.
1436 (COMPUNIT_OBJFILE): New macro.
1437 (COMPUNIT_FILETABS): New macro.
1438 (COMPUNIT_DEBUGFORMAT): New macro.
1439 (COMPUNIT_PRODUCER): New macro.
1440 (COMPUNIT_DIRNAME): New macro.
1441 (COMPUNIT_BLOCKVECTOR): New macro.
1442 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1443 (COMPUNIT_LOCATIONS_VALID): New macro.
1444 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1445 (COMPUNIT_CALL_SITE_HTAB): New macro.
1446 (COMPUNIT_MACRO_TABLE): New macro.
1447 (ALL_COMPUNIT_FILETABS): New macro.
1448 (compunit_symtab_ptr): New typedef.
1449 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1451 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1453 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1454 if the TYPE_CODE of range_type's base type does not match
1455 the TYPE_CODE of encoding_type's base type.
1457 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1459 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1462 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1464 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1465 (ada_is_redundant_index_type_desc): New function.
1466 (to_fixed_array_type): Ignore parallel XA type if redundant.
1468 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1470 * ada-lang.c (constrained_packed_array_type): Set the length
1471 of the return array as if both bounds where zero if that
1472 returned array's index type is dynamic.
1474 2014-11-19 Yao Qi <yao@codesourcery.com>
1476 * config/i386/go32.mh (CC): Remove.
1478 2014-11-18 Doug Evans <xdje42@gmail.com>
1480 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1483 2014-11-18 Doug Evans <xdje42@gmail.com>
1485 * buildsym.c (buildsym_objfile): New static global.
1486 (buildsym_comp_dir): New static global.
1487 (finish_block_internal): Delete arg objfile. All callers updated.
1488 (finish_block): Delete arg objfile. All callers updated.
1489 (start_subfile): Delete arg dirname. All callers updated.
1490 (patch_subfile_names): Update buildsym_comp_dir.
1491 (get_macro_table): Delete arg objfile. All callers updated.
1492 (start_symtab): New arg objfile. All callers updated.
1493 Rename arg dirname to comp_dir.
1494 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1495 (end_symtab_get_static_block): Delete arg objfile. All callers
1497 (end_symtab_without_blockvector): Ditto.
1498 (end_symtab_with_blockvector): Ditto.
1499 (end_symtab_from_static_block): Ditto.
1500 (end_symtab): Ditto.
1501 (end_expandable_symtab): Ditto.
1502 (augment_type_symtab): Ditto.
1503 * coffread.c (coff_start_symtab): New arg objfile. All callers
1506 2014-11-18 Doug Evans <xdje42@gmail.com>
1508 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1511 2014-11-18 Doug Evans <xdje42@gmail.com>
1513 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1514 symtab.dirname updated to use it.
1516 2014-11-18 Doug Evans <xdje42@gmail.com>
1518 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1519 symtab.objfile updated to use it.
1521 2014-11-18 Doug Evans <xdje42@gmail.com>
1523 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1525 2014-11-18 Doug Evans <xdje42@gmail.com>
1527 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1529 * findvar.c (default_read_var_value): Ditto.
1530 * jv-lang.c (add_class_symtab_symbol): Ditto.
1531 * parse.c (operator_check_standard): Ditto.
1532 * printcmd.c (address_info): Ditto.
1533 * symtab.c (fixup_symbol_section): Ditto.
1534 (skip_prologue_sal): Ditto.
1535 * tracepoint.c (scope_info): Ditto.
1536 * valops.c (find_function_in_inferior): Ditto.
1537 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1538 * python/py-symbol.c (set_symbol): Ditto.
1540 2014-11-18 Doug Evans <xdje42@gmail.com>
1542 * buildsym.c (main_subfile): New static global.
1543 (free_subfiles_list): New function.
1544 (start_symtab): Set main_subfile.
1545 (restart_symtab): Replace init of subfiles, current_subfile with
1546 call to free_subfiles_list.
1547 (watch_main_source_file_lossage): Use main_subfile.
1548 (reset_symtab_globals): Replace init of current_subfile with call
1549 to free_subfiles_list.
1550 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1551 functions, split out from ...
1552 (end_symtab_from_static_block): ... here. Rewrite to call them.
1554 2014-11-18 Doug Evans <xdje42@gmail.com>
1556 The result of symtab expansion is always a primary symtab.
1557 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1558 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1559 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1560 (psymtab_to_symtab): Add comment and assert.
1561 (map_matching_symbols_psymtab): Remove unnecessary test for
1564 2014-11-15 Doug Evans <xdje42@gmail.com>
1567 * symtab.c (find_pc_line_symtab): New function.
1568 * symtab.h (find_pc_line_symtab): Declare.
1569 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1571 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1572 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1573 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1574 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1575 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1576 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1578 2014-11-15 Doug Evans <xdje42@gmail.com>
1580 * symtab.c (expand_symtab_containing_pc): Renamed from
1581 find_pc_sect_symtab_via_partial. All callers updated.
1583 2014-11-15 Yao Qi <yao@codesourcery.com>
1585 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1587 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1589 * common/common-defs.h: Move <stdarg.h> #include ahead of
1592 2014-11-14 Pedro Alves <palves@redhat.com>
1594 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1595 [!PHONY_ICONV] (gdb_iconv): New function.
1596 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1598 2014-11-13 Doug Evans <dje@google.com>
1601 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1602 "(anonymous namespace)".
1604 2014-11-13 Doug Evans <dje@google.com>
1606 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1609 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 * NEWS (maint set target-async): Fix typo.
1613 2014-11-12 Pedro Alves <palves@redhat.com>
1615 * infrun.c (enum infwait_states, infwait_state): Delete.
1617 2014-11-12 Pedro Alves <palves@redhat.com>
1619 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1620 Rewrite stepping over a permanent breakpoint.
1621 (thread_still_needs_step_over, proceed): Don't set
1622 stepping_over_breakpoint for permanent breakpoints.
1623 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1624 single-step breakpoints out of the target on hardware step
1626 (process_event_stop_test): If stepping a permanent breakpoint
1627 doesn't hit the step-resume breakpoint, delete the step-resume
1629 (switch_back_to_stepped_thread): Also check if the stepped thread
1630 has advanced already on hardware step targets.
1631 (currently_stepping): Return true if the thread stepped a
1634 2014-11-12 Pedro Alves <palves@redhat.com>
1636 Mark locations as permanent, not the whole breakpoint.
1637 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1638 (mark_breakpoints_out): Don't mark permanent breakpoints as
1640 (breakpoint_init_inferior): Use mark_breakpoints_out.
1641 (breakpoint_here_p): Adjust.
1642 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1643 of permanent breakpoints.
1644 (make_breakpoint_permanent): Mark each location as permanent,
1645 instead of marking the breakpoint.
1646 (add_location_to_breakpoint): If the location is permanent, mark
1647 it as such, and as inserted.
1648 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1649 (bp_location_compare, update_global_location_list): Adjust.
1650 (update_breakpoint_locations): Don't make the breakpoint permanent
1652 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1654 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1655 (struct bp_location) <permanent>: New field.
1656 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1657 reference to bp_permanent.
1659 2014-11-12 Pedro Alves <palves@redhat.com>
1661 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1662 * arch-utils.h (default_skip_permanent_breakpoint): New
1664 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1665 Install default_skip_permanent_breakpoint as default method.
1666 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1667 (i386_gdbarch_init): Don't install it.
1668 * infrun.c (resume): Assume there's always a
1669 gdbarch_skip_permanent_breakpoint implementation.
1670 * gdbarch.h, gdbarch.c: Regenerate.
1672 2014-11-11 Daniel Colascione <dancol@dancol.org>
1674 Warn about cross-PID-namespace debugging.
1675 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1676 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1677 * linux-thread-db.c (check_pid_namespace_match): New function.
1678 (thread_db_inferior_created): Call it.
1680 2014-11-10 Doug Evans <xdje42@gmail.com>
1682 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1683 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1685 2014-11-10 Doug Evans <xdje42@gmail.com>
1687 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1689 2014-11-10 Doug Evans <xdje42@gmail.com>
1692 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1693 (lookup_static_symbol): Move definition to new location and rewrite.
1694 (lookup_symbol_in_objfile): New function.
1695 (lookup_symbol_global_iterator_cb): Call it.
1697 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1699 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1701 2014-11-07 Pedro Alves <palves@redhat.com>
1703 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1704 check if we did a "nexti" inside a prologue.
1705 * symtab.c (in_prologue): Delete function.
1706 * symtab.h (in_prologue): Delete declaration.
1708 2014-11-06 Doug Evans <xdje42@gmail.com>
1710 * symtab.h (lookup_global_symbol): Improve function comment.
1712 2014-11-06 Doug Evans <xdje42@gmail.com>
1714 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1715 All callers updated.
1716 * symtab.h (lookup_global_symbol): Update decl.
1717 (lookup_static_symbol): Move decl to better location.
1719 2014-11-06 Doug Evans <xdje42@gmail.com>
1721 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1723 2014-11-06 Doug Evans <xdje42@gmail.com>
1725 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1726 All callers updated.
1727 (lookup_symbol_in_all_objfiles): Renamed from
1728 lookup_symbol_aux_symtabs. All callers updated.
1729 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1730 All callers updated.
1731 (lookup_symbol_in_objfile_symtabs): Renamed from
1732 lookup_symbol_aux_objfile. All callers updated.
1734 2014-11-06 Doug Evans <xdje42@gmail.com>
1736 * symtab.c (lookup_symbol_in_block): Renamed from
1737 lookup_symbol_aux_block. All callers updated.
1739 2014-11-06 Doug Evans <xdje42@gmail.com>
1741 * symtab.c (lookup_static_symbol): Renamed from
1742 lookup_static_symbol_aux. All callers updated.
1743 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1744 All callers updated.
1746 2014-11-06 Doug Evans <xdje42@gmail.com>
1748 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1749 * block.c (block_lookup_symbol): Use it.
1750 * cp-support.c (make_symbol_overload_list_block): Use it.
1751 * symtab.c (iterate_over_symbols): Use it.
1753 2014-11-06 Doug Evans <xdje42@gmail.com>
1755 * symtab.c (lookup_block_symbol): Moved to ...
1756 * block.c (block_lookup_symbol): ... here and renamed.
1757 All callers updated.
1758 * block.h (block_lookup_symbol): Declare.
1759 * symtab.h (lookup_block_symbol): Delete.
1761 2014-11-06 Doug Evans <xdje42@gmail.com>
1763 * ada-lang.c (ada_make_symbol_completion_list): Use
1764 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1765 * symtab.c (lookup_objfile_from_block): Ditto.
1767 2014-11-06 Doug Evans <xdje42@gmail.com>
1769 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1772 2014-11-06 Doug Evans <xdje42@gmail.com>
1774 * objfiles.c (get_objfile_arch): Constify.
1775 * objfiles.h (get_objfile_arch): Update prototype.
1776 * solib.c (solib_global_lookup): Fetch arch from objfile,
1779 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1781 * nios2-tdep.c (wild_insn): Delete.
1782 (profiler_insn, irqentry_insn): Delete.
1783 (nios2_match_sequence): Delete.
1784 (nios2_analyze_prologue): Update comments. Remove matching
1785 of obsolete profiler_insn and irqentry_insn sequences.
1787 2014-11-05 Alan Modra <amodra@gmail.com>
1789 * charset.c (convert_between_encodings): Shrink obstack using
1791 * minsyms.c (install_minimal_symbols): Likewise.
1792 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1793 to char* before doing pointer arithmetic.
1795 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1797 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1799 2014-11-04 Pedro Alves <palves@redhat.com>
1801 * breakpoint.c (breakpoint_thread_match): Delete function.
1802 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1804 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1807 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1808 the method args also under EVAL_SKIP when evaluating method
1809 calls under EVAL_SKIP.
1811 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1813 * dwarf2loc.c (read_pieced_value): Do big endian
1814 processing only if gdb_regnum is not -1.
1815 (write_pieced_value): Ditto.
1817 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1819 * arm-linux-tdep.c (arm_linux_init_abi): Use
1820 info.byte_order_for_code to choose endianity of breakpoint
1821 instructions snippets.
1823 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1825 * arm-tdep.c (extract_arm_insn): Use
1826 gdbarch_byte_order_for_code to read arm instruction.
1828 2014-11-02 Doug Evans <xdje42@gmail.com>
1830 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1832 2014-11-02 Doug Evans <xdje42@gmail.com>
1834 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1835 main_subfile before returning.
1837 2014-10-31 Doug Evans <xdje42@gmail.com>
1839 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1840 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1842 2014-10-31 Doug Evans <xdje42@gmail.com>
1844 * valops.c (value_cast_pointers): Fix whitespace.
1845 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1848 2014-10-30 Doug Evans <dje@google.com>
1850 * NEWS: Mention ability add attributes to gdb.Objfile and
1851 gdb.Progspace objects.
1852 * python/py-objfile.c (objfile_object): New member dict.
1853 (objfpy_dealloc): Py_XDECREF dict.
1854 (objfpy_initialize): Initialize dict.
1855 (objfile_getset): Add __dict__.
1856 (objfile_object_type): Set tp_dictoffset member.
1857 * python/py-progspace.c (progspace_object): New member dict.
1858 (pspy_dealloc): Py_XDECREF dict.
1859 (pspy_initialize): Initialize dict.
1860 (pspace_getset): Add __dict__.
1861 (pspace_object_type): Set tp_dictoffset member.
1863 2014-10-30 Yao Qi <yao@codesourcery.com>
1865 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1866 replace '\\' with '\\\\'.
1868 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1872 2014-10-29 Pedro Alves <palves@redhat.com>
1875 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1876 instead of assuming a thread with a stepping range is always
1879 2014-10-29 Pedro Alves <palves@redhat.com>
1882 * event-top.c (change_line_handler): Call
1883 gdb_rl_callback_handler_remove instead of
1884 rl_callback_handler_remove.
1885 (callback_handler_installed): New global.
1886 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1887 (gdb_rl_callback_handler_reinstall): New functions.
1888 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1889 gdb_rl_callback_handler_install instead of
1890 rl_callback_handler_remove and rl_callback_handler_install.
1891 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1892 instead of rl_callback_handler_remove.
1893 * event-top.h (gdb_rl_callback_handler_remove)
1894 (gdb_rl_callback_handler_install)
1895 (gdb_rl_callback_handler_reinstall): New declarations.
1896 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1898 (fetch_inferior_event): Install it.
1899 * top.c (gdb_readline_wrapper_line) Call
1900 gdb_rl_callback_handler_remove instead of
1901 rl_callback_handler_remove.
1902 (gdb_readline_wrapper_cleanup): Don't call
1903 rl_callback_handler_install.
1905 2014-10-29 Pedro Alves <palves@redhat.com>
1907 * event-top.c (command_line_handler): Clear the first byte of
1908 linebuffer, when it is first allocated.
1910 2014-10-29 Pedro Alves <palves@redhat.com>
1912 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1915 2014-10-29 Pedro Alves <palves@redhat.com>
1919 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1920 (tui_allowed_p): Delete function.
1921 * tui/tui.c: Include "interps.h".
1922 (tui_enable): Don't use tui_allowed_p. Error out here with
1923 detailed error messages if the TUI is the top level interpreter,
1924 or if output is not a terminal. Use newterm instead of initscr,
1925 and error out if initializing the terminal fails. Also error out if
1926 the terminal doesn't support cursor addressing.
1927 * tui/tui.h (tui_allowed_p): Delete declaration.
1929 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1931 * arm-tdep.c (arm_skip_stack_protector): Return early if
1932 address loaded by first "ldr" instruction does not have
1933 a corresponding minimal symbol. Update comment.
1935 2014-10-29 Yao Qi <yao@codesourcery.com>
1937 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1938 loaded address correctly of ldr instruction.
1940 2014-10-28 Pedro Alves <palves@redhat.com>
1943 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1945 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1946 thread's stepped_breakpoint field. Skip if reverse debugging.
1948 (init_thread_stepping_state, handle_signal_stop): Clear the
1949 thread's stepped_breakpoint field.
1951 2014-10-27 Pedro Alves <palves@redhat.com>
1953 * remote.c (remote_thread_alive): New, factored out from ...
1954 (remote_thread_alive): ... this.
1955 (remote_update_thread_list): Bail out before deleting threads if
1956 the target returned an empty list, and, the current thread has a
1959 2014-10-27 Pedro Alves <palves@redhat.com>
1961 * infrun.c (handle_signal_stop): Also skip handlers when a random
1962 signal arrives while handling a "stepi" or a "nexti". Set the
1963 thread's 'step_after_step_resume_breakpoint' flag.
1965 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1967 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1968 (arm_record_ld_st_imm_offset): Reimplement to cover all
1969 load/store cases for ARM opcode 010.
1970 (arm_record_ld_st_multiple): Reimplement to cover all
1971 load/store cases for ARM opcode 100.
1973 2014-10-26 Doug Evans <xdje42@gmail.com>
1975 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1977 2014-10-26 Doug Evans <xdje42@gmail.com>
1979 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1980 parameter "kind" to "block_index".
1981 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1983 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1985 2014-10-26 Doug Evans <xdje42@gmail.com>
1987 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1989 2014-10-26 Doug Evans <xdje42@gmail.com>
1991 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1994 2014-10-26 Doug Evans <xdje42@gmail.com>
1996 * parser-defs.h (block_found): Move decl from here ...
1997 * symtab.h (block_found): ... to here.
1999 2014-10-26 Doug Evans <xdje42@gmail.com>
2001 * symtab.h (struct field_of_this_result): Fix typo in comment.
2002 (lookup_symbol_in_language): Move function comment here.
2003 (lookup_symbol): Improve function comment.
2004 (basic_lookup_symbol_nonlocal): Ditto.
2005 (lookup_symbol_static, lookup_symbol_global): Ditto.
2006 (lookup_symbol_aux_block): Ditto.
2007 (lookup_language_this): Add function comment.
2008 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2010 (lookup_block_symbol): Improve function comment.
2011 (lookup_struct): Fix capitalization in function comment.
2012 (lookup_transparent_type): Add function comment.
2013 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2014 Improve function comment.
2015 (lookup_objfile_from_block): Add function comment.
2016 * symtab.c (lookup_symbol_in_language): Update function comment.
2017 (lookup_symbol, lookup_language_this): Ditto.
2018 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2019 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2020 (basic_lookup_symbol_nonlocal): Ditto.
2021 (lookup_symbol_static, lookup_symbol_global): Ditto.
2022 (lookup_transparent_type, lookup_block_symbol): Ditto.
2024 2014-10-25 Doug Evans <xdje42@gmail.com>
2026 * symtab.c (types_info): Delete forward decl.
2027 (functions_info, variables_info, sources_info): Ditto.
2028 (_initialize_symtab): Rewrite forward decl to use
2029 initialize_file_ftype.
2031 2014-10-25 Doug Evans <xdje42@gmail.com>
2033 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2035 2014-10-25 Doug Evans <xdje42@gmail.com>
2037 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2038 of local var child_die.
2040 2014-10-24 Don Breazeal <donb@codesourcery.com>
2042 * infrun.c (follow_fork_inferior): Update fork message printing
2043 to use target_terminal_ours_for_output instead of
2044 target_terminal_ours, to use _() for all format strings, to print
2045 "vfork" instead of "fork" for vforks, and to add a detach message.
2046 (handle_vfork_child_exec_or_exit): Update message printing to use
2047 target_terminal_ours_for_output instead of target_terminal_ours, to
2048 use _() for all format strings, and to fix some formatting.
2050 2014-10-24 Pedro Alves <palves@redhat.com>
2052 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2053 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2054 * config/vax/vax.mh: Delete.
2055 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2056 obsolete configurations section.
2057 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2058 * vax-nat.c: Delete file.
2060 2014-10-24 Pedro Alves <palves@redhat.com>
2062 * NEWS (Removed targets): Add OS/arch column.
2064 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2066 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2067 on the arg type of a constructor only if it is of reference type.
2069 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2071 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2072 accessors and constants from nios2 opcodes update.
2073 (nios2_get_next_pc): Likewise.
2075 2014-10-19 Doug Evans <xdje42@gmail.com>
2077 * gdbthread.h (set_running): Fix comment.
2078 (set_executing, finish_thread_state): Fix comment.
2080 2014-10-18 Doug Evans <xdje42@gmail.com>
2082 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2084 2014-10-17 Doug Evans <dje@google.com>
2086 * NEWS: Mention new event gdb.clear_objfiles.
2087 * python/py-event.h (emit_clear_objfiles_event): Clear
2088 * python/py-events.h (events_object): New member clear_objfiles.
2089 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2091 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2092 emit clear_objfiles event.
2093 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2095 (emit_clear_objfiles_event): New function.
2096 (clear_objfiles): New event.
2097 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2099 * python/python.c (_initialize_python): Call
2100 gdbpy_initialize_clear_objfiles_event.
2102 2014-10-17 Doug Evans <dje@google.com>
2104 * NEWS: Mention new gdb.Objfile.progspace attribute.
2105 * python/py-objfile.c (objfpy_get_progspace): New function.
2106 (objfile_getset): New entry for "progspace".
2108 2014-10-17 Pedro Alves <palves@redhat.com>
2111 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2112 returns a copy of the input.
2113 (run_command_1, continue_command, step_1, jump_command)
2114 (signal_command, until_command, advance_command, finish_command)
2115 (attach_command): Adjust and install a cleanup to free the
2118 2014-10-17 Pedro Alves <palves@redhat.com>
2121 * infcmd.c (continue_1): If continuing all threads in the
2122 foreground, make sure the inferior's terminal settings are put in
2125 2014-10-17 Pedro Alves <palves@redhat.com>
2128 * annotate.c (annotate_breakpoints_invalid): Use
2129 target_terminal_our_for_output instead of target_terminal_ours.
2130 Give back the terminal to the target.
2131 (annotate_frames_invalid): Likewise.
2133 2014-10-17 Pedro Alves <palves@redhat.com>
2135 * target.c (enum terminal_state): New enum.
2136 (terminal_state): New global.
2137 (target_terminal_init): New function.
2138 (target_terminal_inferior): Skip if inferior already owns the
2140 (target_terminal_ours, target_terminal_ours_for_output): New
2142 * target.h (target_terminal_init): Convert to function prototype.
2143 (target_terminal_ours_for_output): Convert to function prototype
2145 (target_terminal_ours): Convert to function prototype and tweak
2147 * windows-nat.c (do_initial_windows_stuff): Call
2148 target_terminal_init instead of child_terminal_init_with_pgrp.
2150 2014-10-17 Pedro Alves <palves@redhat.com>
2152 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2153 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2154 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2156 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2157 * ada-lang.h [__alpha__ && __osf__]
2158 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2159 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2160 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2162 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2164 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2165 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2166 * configure: Regenerate.
2167 * configure.ac: Remove references to osf.
2168 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2169 section. Remove all other references to osf.
2170 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2171 Remove all other references to osf.
2172 * dec-thread.c: Delete file.
2173 * defs.h (GDB_OSABI_OSF1): Delete.
2174 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2176 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2177 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2179 (unconditionally_kill_inferior)
2180 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2181 * solib-osf.c: Delete file.
2183 2014-10-17 Pedro Alves <palves@redhat.com>
2185 * remote.c (clear_threads_listing_context): Move higher up, out of
2186 the HAVE_LIBEXPAT guard.
2188 2014-10-16 Tristan Gingold <gingold@adacore.com>
2190 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2191 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2194 2014-10-15 Pedro Alves <palves@redhat.com>
2196 * dec-thread.c (dec_thread_count_gdb_threads)
2197 (dec_thread_add_gdb_thread): Delete.
2198 (dec_thread_update_thread_list): Delete.
2199 (dec_thread_find_new_threads): Rename to ...
2200 (dec_thread_update_thread_list): ... this. Delete GDB-size
2201 threads that are no longer found in dec_thread_list.
2202 (resync_thread_list): Delete.
2203 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2206 2014-10-15 Pedro Alves <palves@redhat.com>
2208 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2209 * remote.c (remote_update_thread_list): Skip calling prune_threads
2210 if any thread listing method is supported, and instead walk over
2211 the set of remote threads listed, deleting those that are not
2212 found in GDB's thread list.
2214 2014-10-15 Pedro Alves <palves@redhat.com>
2216 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2217 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2218 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2219 (bsd_uthread_target): Adjust.
2220 * corelow.c (core_open): Adjust.
2221 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2222 (dec_thread_update_thread_list): New function.
2223 (init_dec_thread_ops): Adjust.
2224 * gdbthread.h (prune_threads): New declaration.
2225 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2226 (thread_db_update_thread_list): ... this. Call prune_threads.
2227 (init_thread_db_ops): Adjust.
2228 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2229 (procfs_update_thread_list): ... this. Call prune_threads.
2230 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2232 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2233 (obsd_update_thread_list): ... this. Call prune_threads.
2234 (obsd_add_target): Adjust.
2235 * procfs.c (procfs_target): Adjust.
2236 (procfs_notice_thread): Update comment.
2237 (procfs_find_new_threads): Rename to ...
2238 (procfs_update_thread_list): ... this. Call prune_threads.
2239 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2241 (ravenscar_wait): Adjust.
2242 (ravenscar_find_new_threads): Rename to ...
2243 (ravenscar_update_thread_list): ... this. Call prune_threads.
2244 (init_ravenscar_thread_ops): Adjust.
2245 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2246 (record_btrace_update_thread_list): ... this. Adjust comment.
2247 (init_record_btrace_ops): Adjust.
2248 * remote.c (remote_threads_info): Rename to ...
2249 (remote_update_thread_list): ... this. Call prune_threads.
2250 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2252 * sol-thread.c (check_for_thread_db): Adjust.
2253 (sol_find_new_threads_callback): Rename to ...
2254 (sol_update_thread_list_callback): ... this.
2255 (sol_find_new_threads): Rename to ...
2256 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2257 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2258 * target-delegates.c: Regenerate.
2259 * target.c (target_find_new_threads): Rename to ...
2260 (target_update_thread_list): ... this.
2261 * target.h (struct target_ops): Rename to_find_new_threads field
2262 to to_update_thread_list.
2263 (target_find_new_threads): Rename to ...
2264 (target_update_thread_list): ... this.
2265 * thread.c (prune_threads): Make extern.
2266 (update_thread_list): Adjust.
2268 2014-10-15 Pedro Alves <palves@redhat.com>
2270 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2271 Add describing comment. Return -1 if the qL packet is not
2273 (struct thread_item, thread_item_t): Move higher up in
2274 the file. Add comments.
2275 (struct threads_parsing_context): Move higher up in
2276 the file, add comments, and remote to ...
2277 (struct threads_listing_context): ... this.
2278 (remote_newthread_step): Don't add the thread to GDB's thread
2279 database here. Instead push it to the thread_listing_context
2281 (remote_find_new_threads): Rename to ...
2282 (remote_get_threads_with_ql): ... this. Add target_ops and
2283 targets_listing_context parameters. Pass down context.
2284 (start_thread): Adjust.
2285 (clear_threads_parsing_context): Rename to ...
2286 (clear_threads_listing_context): ... this.
2287 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2288 remote_threads_info.
2289 (remote_get_threads_with_qthreadinfo): Ditto.
2290 (remote_threads_info): Reimplement.
2292 2014-10-15 Pedro Alves <palves@redhat.com>
2294 * infrun.c (resume): Don't force displaced-stepping for all
2295 single-steps on software single-stepping archs.
2297 2014-10-15 Pedro Alves <palves@redhat.com>
2299 * breakpoint.c (single_step_breakpoints): Delete global.
2300 (insert_single_step_breakpoint): Adjust to store the breakpoint
2301 pointer in the current thread.
2302 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2303 (cancel_single_step_breakpoints): Delete functions.
2304 (breakpoint_has_location_inserted_here): Make extern.
2305 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2307 * breakpoint.h (breakpoint_has_location_inserted_here): New
2309 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2310 (cancel_single_step_breakpoints): Remove declarations.
2311 * gdbthread.h (struct thread_control_state)
2312 <single_step_breakpoints>: New field.
2313 (delete_single_step_breakpoints)
2314 (thread_has_single_step_breakpoints_set)
2315 (thread_has_single_step_breakpoint_here): New declarations.
2316 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2317 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2318 (singlestep_pc): Delete globals.
2319 (infrun_thread_ptid_changed): Remove references to removed
2321 (resume_cleanups): Delete the current thread's single-step
2323 (maybe_software_singlestep): Remove references to removed globals.
2324 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2325 delete_single_step_breakpoints.
2326 (init_wait_for_inferior): Remove references to removed globals.
2327 (delete_thread_infrun_breakpoints): Delete the thread's
2328 single-step breakpoints too.
2329 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2330 single-step breakpoints here.
2331 (delete_stopped_threads_single_step_breakpoints): New function.
2332 (adjust_pc_after_break): Adjust to use
2333 thread_has_single_step_breakpoints_set.
2334 (handle_inferior_event): Remove references to removed globals.
2335 Use delete_stopped_threads_single_step_breakpoints.
2336 (handle_signal_stop): Adjust to per-thread single-step
2337 breakpoints. Swap test order to do cheaper tests first.
2338 (switch_back_to_stepped_thread): Extend debug output. Remove
2339 references to removed globals.
2340 * record-full.c (record_full_wait_1): Adjust to per-thread
2341 single-step breakpoints.
2342 * thread.c (delete_single_step_breakpoints)
2343 (thread_has_single_step_breakpoints_set)
2344 (thread_has_single_step_breakpoint_here): New functions.
2345 (clear_thread_inferior_resources): Also delete the thread's
2346 single-step breakpoints.
2348 2014-10-15 Pedro Alves <palves@redhat.com>
2350 * thread.c (delete_thread_breakpoint): New function.
2351 (delete_step_resume_breakpoint)
2352 (delete_exception_resume_breakpoint): Use it.
2353 (delete_at_next_stop): New function.
2354 (clear_thread_inferior_resources): Use delete_at_next_stop.
2356 2014-10-15 Pedro Alves <palves@redhat.com>
2358 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2359 (breakpoint_inserted_here_p): ... here. Remove special case for
2360 software single-step breakpoints.
2361 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2362 (software_breakpoint_inserted_here_p): ... here. Remove special
2363 case for software single-step breakpoints.
2364 (bp_target_info_copy_insertion_state)
2365 (deprecated_insert_raw_breakpoint)
2366 (deprecated_remove_raw_breakpoint): Delete functions.
2367 * breakpoint.h (deprecated_insert_raw_breakpoint)
2368 (deprecated_remove_raw_breakpoint): Remove declarations.
2370 2014-10-15 Pedro Alves <palves@redhat.com>
2373 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2374 Delete array globals.
2375 (single_step_breakpoints): New global.
2376 (breakpoint_xfer_memory): Remove special handling for single-step
2378 (update_breakpoints_after_exec): Delete bp_single_step
2380 (detach_breakpoints): Remove special handling for single-step
2382 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2383 (bpstat_stop_status): Add comment.
2384 (bpstat_what, bptype_string, print_one_breakpoint_location)
2385 (adjust_breakpoint_address, init_bp_location): Handle
2387 (new_single_step_breakpoint): New function.
2388 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2389 handling for single-step breakpoints.
2390 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2391 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2393 (detach_single_step_breakpoints, find_single_step_breakpoint):
2395 (breakpoint_has_location_inserted_here): New function.
2396 (single_step_breakpoint_inserted_here_p): Rewrite.
2397 * breakpoint.h: Remove FIXME.
2398 (enum bptype) <bp_single_step>: New enum value.
2399 (insert_single_step_breakpoint): Update comment.
2400 * infrun.c (resume_cleanups)
2401 (delete_step_thread_step_resume_breakpoint): Remove single-step
2403 (fetch_inferior_event): Install a cleanup that removes infrun
2405 (switch_back_to_stepped_thread) <expect thread advanced also>:
2406 Clear step-over info.
2408 2014-10-15 Pedro Alves <palves@redhat.com>
2410 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2411 (delete_thread_infrun_breakpoints): New function, with parts
2412 salvaged from delete_step_resume_breakpoint_callback.
2413 (delete_step_thread_step_resume_breakpoint): Delete.
2414 (for_each_just_stopped_thread_callback_func): New typedef.
2415 (for_each_just_stopped_thread): New function.
2416 (delete_just_stopped_threads_infrun_breakpoints): New function.
2417 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2418 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2420 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2422 2014-10-15 Pedro Alves <palves@redhat.com>
2424 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2425 trying to step past a non-steppable watchpoint.
2426 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2428 * infrun.c (struct step_over_info): Add new field
2429 'nonsteppable_watchpoint_p' and adjust comments.
2430 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2432 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2433 (stepping_past_nonsteppable_watchpoint): New function.
2434 (step_over_info_valid_p): Also return true if stepping past a
2435 nonsteppable watchpoint.
2436 (proceed): Adjust call to set_step_over_info. Remove reference to
2438 (init_wait_for_inferior): Remove reference to init_infwait_state.
2439 (waiton_ptid): Delete global.
2440 (struct execution_control_state)
2441 <stepped_after_stopped_by_watchpoint>: Delete field.
2442 (wait_for_inferior, fetch_inferior_event): Always pass
2443 minus_one_ptid to target_wait.
2444 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2446 (init_infwait_state): Delete function.
2447 (handle_inferior_event): Remove infwait_state handling.
2448 (handle_signal_stop) <watchpoints handling>: Adjust after
2449 stepped_after_stopped_by_watchpoint removal. Don't remove
2450 breakpoints here nor set infwait_state. Set the thread's
2451 stepping_over_watchpoint flag, and call keep_going instead.
2452 (keep_going): Handle stepping_over_watchpoint. Adjust
2453 set_step_over_info calls.
2454 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2457 2014-10-15 Pedro Alves <palves@redhat.com>
2459 * infrun.c (step_over_info_valid_p): New function.
2460 (resume): Use step_over_info_valid_p instead of checking the
2461 threads's trap_expected flag.
2463 2014-10-15 Doug Evans <dje@google.com>
2464 Walfred Tedeschi <walfred.tedeschi@intel.com>
2467 * python/lib/gdb/__init__.py (packages): Add "printer".
2468 * python/lib/gdb/command/bound_registers.py: Moved to ...
2469 * python/lib/gdb/printer/bound_registers.py: ... here.
2470 Add printer to global set of builtin printers. Rename printer from
2471 "bound" to "mpx_bound128".
2472 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2473 registered as global "builtin" printer.
2474 (add_builtin_pretty_printer): New function.
2475 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2476 gdb/printer/__init__.py.
2478 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2480 * Makefile.in (SFILES): Remove d-support.c.
2481 (COMMON_OBS): Remove d-support.o.
2482 * d-lang.h (d_parse_symbol): Remove declaration.
2483 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2484 * d-support.c: Remove file.
2486 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2488 * gdb/infrun.c (process_event_stop_test): Apply
2489 gdbarch_addr_bits_remove to longjmp resume address.
2491 2014-10-15 Pedro Alves <palves@redhat.com>
2493 * regformats/microblaze.dat: Delete file.
2495 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2497 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2498 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2500 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2502 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2505 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2509 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2510 with qualified args.
2512 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2514 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2515 of the case where the second operand is a pointer.
2516 <BINOP_SUB>: Likewise.
2518 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2520 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2521 only if it is not NULL.
2522 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2523 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2524 (struct probe_ops) <clear_semaphore>: Likewise.
2525 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2527 (stop_tracing): Likewise, for clear_semaphore.
2529 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2531 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2532 using language_c, instead of current_language.
2534 2014-10-13 Doug Evans <dje@google.com>
2536 * python/py-objfile.c (objfpy_initialize): New function.
2537 (objfpy_new, objfile_to_objfile_object): Call it.
2538 * python/py-progspace.c (pspy_initialize): New function.
2539 (pspy_new, pspace_to_pspace_object): Call it.
2541 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2542 Jan Kratochvil <jan.kratochvil@redhat.com>
2544 Fix "save breakpoints" for "catch" command.
2545 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2548 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2550 Fix "save breakpoints" for "disable $bpnum" command.
2551 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2553 2014-10-10 Pedro Alves <palves@redhat.com>
2555 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2556 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2557 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2558 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2560 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2561 * configure.ac: Remove references to IRIX.
2562 * configure.host: Add *-*-irix* to the obsolete hosts section.
2563 Remove all other references to irix.
2564 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2567 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2569 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2570 isn't valid, release the tdesc arch data and return NULL.
2572 2014-10-10 Pedro Alves <palves@redhat.com>
2574 * linux-tdep.c: Include observer.h.
2575 (linux_inferior_data): New global.
2576 (struct linux_info): New structure.
2577 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2578 (get_linux_inferior_data): New functions.
2579 (linux_vsyscall_range): Rename to ...
2580 (linux_vsyscall_range_raw): ... this.
2581 (linux_vsyscall_range): New function; handles caching.
2582 (_initialize_linux_tdep): Register linux_inferior_data. Install
2583 inferior_exit and inferior_appeared observers.
2585 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2586 Pedro Alves <palves@redhat.com>
2589 * solib-svr4.c (svr4_read_so_list): Rename to ...
2590 (svr4_current_sos_1): ... this and change the function comment.
2591 (svr4_current_sos): New function.
2593 2014-10-10 Pedro Alves <palves@redhat.com>
2595 * arch-utils.c (default_vsyscall_range): New function.
2596 * arch-utils.h (default_vsyscall_range): New declaration.
2597 * gdbarch.sh (vsyscall_range): New hook.
2598 * gdbarch.h, gdbarch.c: Regenerate.
2599 * linux-tdep.c (linux_vsyscall_range): New function.
2600 (linux_init_abi): Install linux_vsyscall_range as
2601 vsyscall_range gdbarch hook.
2602 * memrange.c (address_in_mem_range): New function.
2603 * memrange.h (address_in_mem_range): New declaration.
2604 * symfile-mem.c (find_vdso_size): Delete function.
2605 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2607 2014-10-10 Pedro Alves <palves@redhat.com>
2609 * infrun.c (normal_stop): Fix typo in comment.
2611 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2614 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2615 typo when using logical AND to determine instruction type.
2617 2014-10-09 Yao Qi <yao@codesourcery.com>
2619 * infrun.c (handle_signal_stop): Remove local variable
2622 2014-10-08 Stan Shebs <stan@codesourcery.com>
2624 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2626 2014-10-08 Gary Benson <gbenson@redhat.com>
2628 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2630 2014-10-08 Gary Benson <gbenson@redhat.com>
2632 * common/common-defs.h: Include common-exceptions.h.
2633 * exceptions.h: Do not include common-exceptions.h.
2635 2014-10-08 Gary Benson <gbenson@redhat.com>
2637 * common/common-defs.h: Include cleanups.h.
2638 * common/common-exceptions.c: Do not include cleanups.h.
2639 * utils.h: Likewise.
2641 2014-10-08 Gary Benson <gbenson@redhat.com>
2643 * ada-lang.c: Do not include exceptions.h.
2644 * ada-valprint.c: Likewise.
2645 * amd64-tdep.c: Likewise.
2646 * auto-load.c: Likewise.
2647 * block.c: Likewise.
2648 * break-catch-throw.c: Likewise.
2649 * breakpoint.c: Likewise.
2650 * btrace.c: Likewise.
2651 * c-lang.c: Likewise.
2652 * cli/cli-cmds.c: Likewise.
2653 * cli/cli-interp.c: Likewise.
2654 * cli/cli-script.c: Likewise.
2655 * completer.c: Likewise.
2656 * corefile.c: Likewise.
2657 * corelow.c: Likewise.
2658 * cp-abi.c: Likewise.
2659 * cp-support.c: Likewise.
2660 * cp-valprint.c: Likewise.
2661 * darwin-nat.c: Likewise.
2662 * dwarf2-frame-tailcall.c: Likewise.
2663 * dwarf2-frame.c: Likewise.
2664 * dwarf2loc.c: Likewise.
2665 * dwarf2read.c: Likewise.
2667 * event-loop.c: Likewise.
2668 * event-top.c: Likewise.
2669 * f-valprint.c: Likewise.
2670 * frame-unwind.c: Likewise.
2671 * frame.c: Likewise.
2672 * gdbtypes.c: Likewise.
2673 * gnu-v2-abi.c: Likewise.
2674 * gnu-v3-abi.c: Likewise.
2675 * guile/scm-auto-load.c: Likewise.
2676 * guile/scm-breakpoint.c: Likewise.
2677 * guile/scm-cmd.c: Likewise.
2678 * guile/scm-frame.c: Likewise.
2679 * guile/scm-lazy-string.c: Likewise.
2680 * guile/scm-param.c: Likewise.
2681 * guile/scm-symbol.c: Likewise.
2682 * guile/scm-type.c: Likewise.
2683 * hppa-hpux-tdep.c: Likewise.
2684 * i386-tdep.c: Likewise.
2685 * inf-loop.c: Likewise.
2686 * infcall.c: Likewise.
2687 * infcmd.c: Likewise.
2688 * infrun.c: Likewise.
2689 * interps.c: Likewise.
2690 * interps.h: Likewise.
2692 * linespec.c: Likewise.
2693 * linux-nat.c: Likewise.
2694 * linux-thread-db.c: Likewise.
2695 * m32r-rom.c: Likewise.
2697 * memory-map.c: Likewise.
2698 * mi/mi-cmd-break.c: Likewise.
2699 * mi/mi-cmd-stack.c: Likewise.
2700 * mi/mi-interp.c: Likewise.
2701 * mi/mi-main.c: Likewise.
2702 * monitor.c: Likewise.
2703 * nto-procfs.c: Likewise.
2704 * objc-lang.c: Likewise.
2705 * p-valprint.c: Likewise.
2706 * parse.c: Likewise.
2707 * ppc-linux-tdep.c: Likewise.
2708 * printcmd.c: Likewise.
2709 * probe.c: Likewise.
2710 * python/py-auto-load.c: Likewise.
2711 * python/py-breakpoint.c: Likewise.
2712 * python/py-cmd.c: Likewise.
2713 * python/py-finishbreakpoint.c: Likewise.
2714 * python/py-frame.c: Likewise.
2715 * python/py-framefilter.c: Likewise.
2716 * python/py-function.c: Likewise.
2717 * python/py-gdb-readline.c: Likewise.
2718 * python/py-inferior.c: Likewise.
2719 * python/py-infthread.c: Likewise.
2720 * python/py-lazy-string.c: Likewise.
2721 * python/py-linetable.c: Likewise.
2722 * python/py-param.c: Likewise.
2723 * python/py-prettyprint.c: Likewise.
2724 * python/py-symbol.c: Likewise.
2725 * python/py-type.c: Likewise.
2726 * python/py-value.c: Likewise.
2727 * python/python-internal.h: Likewise.
2728 * python/python.c: Likewise.
2729 * record-btrace.c: Likewise.
2730 * record-full.c: Likewise.
2731 * regcache.c: Likewise.
2732 * remote-fileio.c: Likewise.
2733 * remote-mips.c: Likewise.
2734 * remote.c: Likewise.
2735 * rs6000-aix-tdep.c: Likewise.
2736 * rs6000-nat.c: Likewise.
2738 * solib-darwin.c: Likewise.
2739 * solib-dsbt.c: Likewise.
2740 * solib-frv.c: Likewise.
2741 * solib-ia64-hpux.c: Likewise.
2742 * solib-spu.c: Likewise.
2743 * solib-svr4.c: Likewise.
2744 * solib.c: Likewise.
2745 * spu-tdep.c: Likewise.
2746 * stack.c: Likewise.
2747 * stap-probe.c: Likewise.
2748 * symfile-mem.c: Likewise.
2749 * symmisc.c: Likewise.
2750 * target.c: Likewise.
2751 * thread.c: Likewise.
2753 * tracepoint.c: Likewise.
2754 * tui/tui-interp.c: Likewise.
2755 * typeprint.c: Likewise.
2756 * utils.c: Likewise.
2757 * valarith.c: Likewise.
2758 * valops.c: Likewise.
2759 * valprint.c: Likewise.
2760 * value.c: Likewise.
2761 * varobj.c: Likewise.
2762 * windows-nat.c: Likewise.
2763 * xml-support.c: Likewise.
2765 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2767 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2769 (extended_mips16_next_pc): Update accordingly.
2771 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2773 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2775 (micromips_instruction_is_compact_branch): Likewise.
2776 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2777 or a compact jump, reaching a jump delay slot, or seeing a
2778 second non-prologue instruction.
2779 (micromips_scan_prologue): Also terminate scanning upon seeing a
2780 compact branch or jump, or reaching a branch or jump delay slot.
2781 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2782 or jump delay slot, or seeing a second non-prologue instruction.
2783 (mips32_instruction_has_delay_slot): Retain instruction
2784 examination code only, update arguments accordingly and move
2785 instruction fetch pieces to...
2786 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2787 (micromips_instruction_has_delay_slot): Likewise and to...
2788 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2789 (mips16_instruction_has_delay_slot): Likewise and to...
2790 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2791 (mips_single_step_through_delay): Update accordingly.
2792 (mips_adjust_breakpoint_address): Likewise.
2794 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2796 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2797 !mustbe32 also return 1 for 32-bit instructions.
2798 (mips16_instruction_has_delay_slot): Likewise. Add an
2799 explanatory comment.
2801 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2803 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2806 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2808 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2810 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2811 for the breakpoint's address. Don't preinitialize `placed_size'.
2812 (insert_bp_location): Set `reqstd_address' rather than
2814 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2815 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2817 (bkpt_remove_location): Likewise.
2818 (deprecated_insert_raw_breakpoint): Likewise.
2819 (deprecated_remove_raw_breakpoint): Likewise.
2820 (find_single_step_breakpoint): Likewise.
2821 * mem-break.c (default_memory_insert_breakpoint): Use
2822 `reqstd_address' for the breakpoint's address. Don't set
2823 `placed_address' or `placed_size' if breakpoint contents couldn't
2824 have been determined.
2825 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2826 the breakpoint's address.
2827 (remote_insert_hw_breakpoint): Likewise. Don't set
2828 `placed_address' or `placed_size' if breakpoint couldn't have been
2830 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2831 `reqstd_address' for the breakpoint's address.
2832 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2833 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2834 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2835 * microblaze-linux-tdep.c
2836 (microblaze_linux_memory_remove_breakpoint): Likewise.
2837 * monitor.c (monitor_insert_breakpoint): Likewise.
2838 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2839 (procfs_insert_hw_breakpoint): Likewise.
2840 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2841 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2842 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2843 * remote-mips.c (mips_insert_breakpoint): Likewise.
2844 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2846 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2848 * valops.c (value_assign): Check for bit field assignments
2849 before calling architecture-specific register value
2850 conversion functions.
2852 2014-10-03 Pierre Muller <muller@sourceware.org>
2854 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2856 2014-10-02 Pedro Alves <palves@redhat.com>
2858 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2859 threads_are_executing.
2860 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2862 * gdbthread.h (threads_are_executing): Declare.
2863 (handle_signal_stop) <random signals>: Don't print about the
2864 signal here if stopping.
2865 (end_stepping_range): Don't notify observers here.
2866 (normal_stop): Update the thread list. If stopped by a random
2867 signal or a stepping range ended, notify observers.
2868 * thread.c (threads_executing): New global.
2869 (init_thread_list): Clear 'threads_executing'.
2870 (set_executing): Set or clear 'threads_executing'.
2871 (threads_are_executing): New function.
2872 (update_threads_executing): New function.
2873 (update_thread_list): Use it.
2875 2014-10-02 Pedro Alves <palves@redhat.com>
2877 PR breakpoints/17431
2878 * breakpoint.c (update_breakpoints_after_exec): Don't create
2879 overlay, longjmp, std terminate nor exception breakpoints here.
2881 2014-10-02 Pedro Alves <palves@redhat.com>
2883 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2885 * inferior.c (find_inferior_for_program_space): Give preference to
2886 the current inferior.
2887 * inferior.h (find_inferior_for_program_space): Update comment.
2888 * progspace.c (switch_to_program_space_and_thread): Prefer the
2889 current inferior if it's bound to the program space requested. If
2890 the inferior found doesn't have a PID yet, don't bother looking up
2892 * progspace.h (switch_to_program_space_and_thread): Adjust
2894 * thread.c (any_thread_of_process, any_live_thread_of_process):
2895 Give preference to the current thread.
2897 2014-10-01 Pedro Alves <palves@redhat.com>
2899 * breakpoint.c (insert_bp_location): Error out if inserting a
2900 software breakpoint at a read-only address.
2901 * target.c (memory_xfer_check_region): New function, factored out
2903 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2905 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2906 against the memory region attributes.
2908 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2910 * NEWS: Announce new exit-code field in -list-thread-groups
2912 * inferior.c (exit_inferior_1): Don't clear exit code.
2913 (inferior_appeared): Clear exit code.
2914 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2917 2014-10-01 Pedro Alves <palves@redhat.com>
2919 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2920 GENERATED" along with emacs/vi read-only markers.
2921 * regformats/aarch64.dat: Regenerate.
2922 * regformats/arm-with-iwmmxt.dat: Regenerate.
2923 * regformats/arm-with-neon.dat: Regenerate.
2924 * regformats/arm-with-vfpv2.dat: Regenerate.
2925 * regformats/arm-with-vfpv3.dat: Regenerate.
2926 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2927 * regformats/i386/amd64-avx.dat: Regenerate.
2928 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2929 * regformats/i386/amd64-avx512.dat: Regenerate.
2930 * regformats/i386/amd64-linux.dat: Regenerate.
2931 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2932 * regformats/i386/amd64-mpx.dat: Regenerate.
2933 * regformats/i386/amd64.dat: Regenerate.
2934 * regformats/i386/i386-avx-linux.dat: Regenerate.
2935 * regformats/i386/i386-avx.dat: Regenerate.
2936 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2937 * regformats/i386/i386-avx512.dat: Regenerate.
2938 * regformats/i386/i386-linux.dat: Regenerate.
2939 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2940 * regformats/i386/i386-mmx.dat: Regenerate.
2941 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2942 * regformats/i386/i386-mpx.dat: Regenerate.
2943 * regformats/i386/i386.dat: Regenerate.
2944 * regformats/i386/x32-avx-linux.dat: Regenerate.
2945 * regformats/i386/x32-avx.dat: Regenerate.
2946 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2947 * regformats/i386/x32-avx512.dat: Regenerate.
2948 * regformats/i386/x32-linux.dat: Regenerate.
2949 * regformats/i386/x32.dat: Regenerate.
2950 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2951 * regformats/mips-dsp-linux.dat: Regenerate.
2952 * regformats/mips-linux.dat: Regenerate.
2953 * regformats/mips64-dsp-linux.dat: Regenerate.
2954 * regformats/mips64-linux.dat: Regenerate.
2955 * regformats/nios2-linux.dat: Regenerate.
2956 * regformats/rs6000/powerpc-32.dat: Regenerate.
2957 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2958 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2959 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2960 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2961 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2962 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2963 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2964 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2965 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2966 * regformats/s390-linux32.dat: Regenerate.
2967 * regformats/s390-linux32v1.dat: Regenerate.
2968 * regformats/s390-linux32v2.dat: Regenerate.
2969 * regformats/s390-linux64.dat: Regenerate.
2970 * regformats/s390-linux64v1.dat: Regenerate.
2971 * regformats/s390-linux64v2.dat: Regenerate.
2972 * regformats/s390-te-linux64.dat: Regenerate.
2973 * regformats/s390x-linux64.dat: Regenerate.
2974 * regformats/s390x-linux64v1.dat: Regenerate.
2975 * regformats/s390x-linux64v2.dat: Regenerate.
2976 * regformats/s390x-te-linux64.dat: Regenerate.
2977 * regformats/tic6x-c62x-linux.dat: Regenerate.
2978 * regformats/tic6x-c62x.dat: Regenerate.
2979 * regformats/tic6x-c64x-linux.dat: Regenerate.
2980 * regformats/tic6x-c64x.dat: Regenerate.
2981 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2982 * regformats/tic6x-c64xp.dat: Regenerate.
2984 2014-10-01 Pedro Alves <palves@redhat.com>
2986 * features/Makefile: Update comments.
2987 (XMLTOC): List all xml files we build C files from.
2988 (clean-cfiles): New rule.
2990 2014-10-01 Pedro Alves <palves@redhat.com>
2992 * features/i386/amd64-avx512-linux.c: Regenerate.
2993 * features/i386/amd64-avx512.c: Regenerate.
2994 * features/i386/x32-avx512-linux.c: Regenerate.
2995 * features/i386/x32-avx512.c: Regenerate.
2997 2014-10-01 Pedro Alves <palves@redhat.com>
2999 * features/Makefile (WHICH): Remove arm-with-m,
3000 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3002 2014-10-01 Pedro Alves <palves@redhat.com>
3004 * features/Makefile (clean): New rule.
3006 2014-10-01 Pedro Alves <palves@redhat.com>
3008 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3009 (zmm14h): Add missing end quotes.
3011 2014-10-01 Pedro Alves <palves@redhat.com>
3013 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3014 * features/aarch64.c: Regenerate.
3016 2014-09-30 Don Breazeal <donb@codesourcery.com>
3018 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3019 code so as to work with follow_fork_inferior.
3020 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3021 (inf_ttrace_create_inferior): Remove reference to
3022 inf_ttrace_vfork_ppid.
3023 (inf_ttrace_attach): Ditto.
3024 (inf_ttrace_detach): Ditto.
3025 (inf_ttrace_kill): Use current_inferior instead of
3026 inf_ttrace_vfork_ppid.
3027 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3028 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3029 inferior away from the parent.
3030 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3032 (follow_fork_inferior): New function.
3033 (follow_inferior_reset_breakpoints): Make function static.
3034 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3035 * linux-nat.c (linux_child_follow_fork): Move target-independent
3036 code to infrun.c:follow_fork_inferior.
3038 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3040 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3041 * gdbarch.c: Regenerate.
3042 * gdbarch.h: Likewise.
3043 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3044 gdbarch method 'regset_from_core_section'.
3045 (get_core_register_section): Remove handling for the case that
3046 regset == NULL and regset_from_core_section is defined.
3047 (get_core_registers): Drop check for deleted method.
3048 * procfs.c (procfs_do_thread_registers): Adjust comment.
3050 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3052 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3053 (linux_nat_make_corefile_notes): Remove.
3054 (linux_target_install_ops): Do not set target method
3055 'make_corefile_notes'.
3056 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3058 (linux_corefile_thread_callback): Instead of args->collect, call
3059 linux_collect_thread_registers.
3060 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3061 NULL unless there is a regset iterator.
3062 (linux_make_corefile_notes_1): Remove.
3063 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3064 by linux_make_corefile_notes.
3065 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3067 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3069 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3070 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3072 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3074 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3076 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3077 (xtensa_iterate_over_regset_sections): New.
3078 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3080 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082 * vax-tdep.c (vax_regset_from_core_section): Remove.
3083 (vax_iterate_over_regset_sections): New.
3084 (vax_gdbarch_init): Adjust gdbarch initialization.
3086 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3088 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3089 (tilegx_regset_from_core_section): Remove.
3090 (tilegx_iterate_over_regset_sections): New.
3091 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3093 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3095 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3096 (sparc_iterate_over_regset_sections): New.
3097 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3098 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3100 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3101 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3102 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3103 target method 'make_corefile_notes'.
3105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3107 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3108 'sizeof_gregset' and 'sizeof_fpregset'.
3109 * sh-tdep.c (sh_regset_from_core_section): Remove.
3110 (sh_iterate_over_regset_sections): New.
3111 (sh_gdbarch_init): Adjust gdbarch initialization.
3112 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3114 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3119 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3120 (score7_linux_iterate_over_regset_sections): New.
3121 (score_gdbarch_init): Adjust gdbarch initialization.
3123 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3125 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3127 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3128 method 'make_corefile_notes'.
3129 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3130 (ppcfbsd_regset_from_core_section): Remove.
3131 (ppcfbsd_iterate_over_regset_sections): New.
3132 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3134 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3135 (ppcnbsd_iterate_over_regset_sections): New.
3136 (ppcnbsd_init_abi): Adjust.
3137 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3138 (ppcobsd_iterate_over_regset_sections): New.
3139 (ppcobsd_init_abi): Adjust.
3140 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3141 (rs6000_aix_iterate_over_regset_sections): New.
3142 (rs6000_aix_init_osabi): Adjust.
3144 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3146 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3147 (nios2_regset_from_core_section): Remove.
3148 (nios2_iterate_over_regset_sections): New.
3149 (nios2_linux_init_abi): Adjust gdbarch initialization.
3151 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3153 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3154 (am33_iterate_over_regset_sections): New.
3155 (am33_linux_init_osabi): Adjust gdbarch initialization.
3157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3159 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3160 (mips_linux_iterate_over_regset_sections): New.
3161 (mips_linux_init_abi): Adjust gdbarch initialization.
3162 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3163 (mips64obsd_iterate_over_regset_sections): New.
3164 (mips64obsd_init_abi): Adjust.
3165 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3166 (mipsnbsd_iterate_over_regset_sections): New.
3167 (mipsnbsd_init_abi): Adjust.
3169 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3172 (m88k_iterate_over_regset_sections): New.
3173 (m88k_gdbarch_init): Adjust gdbarch initialization.
3175 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3177 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3178 (ia64_linux_iterate_over_regset_sections): New.
3179 (ia64_linux_init_abi): Adjust gdbarch initialization.
3181 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3183 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3184 (m68kbsd_iterate_over_regset_sections): New.
3185 (m68kbsd_init_abi): Adjust gdbarch initialization.
3186 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3187 (m68k_linux_iterate_over_regset_sections): New.
3188 (m68k_linux_init_abi): Adjust gdbarch initialization.
3190 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3192 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3193 (m32r_linux_regset_from_core_section): Remove.
3194 (m32r_linux_iterate_over_regset_sections): New.
3195 (m32r_linux_init_abi): Adjust gdbarch initialization.
3197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3199 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3200 (amd64obsd_iterate_over_regset_sections): New.
3201 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3202 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3204 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3205 regset_from_core_section initialization.
3206 * i386-tdep.c (i386_regset_from_core_section): Remove.
3207 (i386_iterate_over_regset_sections): New.
3208 (i386_gdbarch_init): Adjust gdbarch initialization.
3209 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3210 (i386_iterate_over_regset_sections): New prototype.
3211 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3213 (i386obsd_aout_iterate_over_regset_sections): New.
3214 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3215 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3217 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3218 (amd64fbsd_init_abi): Call fbsd_init_abi.
3219 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3220 (i386fbsd4_init_abi): Call fbsd_init_abi.
3221 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3222 target method 'make_corefile_notes'.
3223 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3227 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3228 (hppa_hpux_iterate_over_regset_sections): New.
3229 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3230 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3231 (hppa_linux_iterate_over_regset_sections): New.
3232 (hppa_linux_init_abi): Adjust.
3233 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3234 (hppanbsd_iterate_over_regset_sections): New.
3235 (hppanbsd_init_abi): Adjust.
3236 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3237 (hppaobsd_iterate_over_regset_sections): New.
3238 (hppaobsd_init_abi): Adjust.
3240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3243 (frv_linux_iterate_over_regset_sections): New.
3244 (frv_linux_init_abi): Adjust gdbarch initialization.
3246 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3248 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3249 (armbsd_iterate_over_regset_sections): New prototype.
3250 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3251 (armbsd_iterate_over_regset_sections): New.
3252 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3255 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3257 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3258 (alpha_linux_iterate_over_regset_sections): New.
3259 (alpha_linux_init_abi): Adjust gdbarch initialization.
3260 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3262 (alphanbsd_iterate_over_regset_sections): New prototype.
3264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3266 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3268 (aarch64_linux_iterate_over_regset_sections): New.
3269 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3271 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3273 * fbsd-tdep.c: New file.
3274 * fbsd-tdep.h: New file.
3275 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3276 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3277 (ALLDEPFILES): Add fbsd-tdep.c.
3279 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3281 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3283 * gdbarch.h: Regenerate.
3284 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3286 (get_core_register_section): Add parameter 'regset' and use it, if
3287 set. Add parameter 'min_size' and verify the bfd section size
3289 (get_core_registers_cb): Add parameter 'regset' and pass it to
3290 get_core_register section. For the "standard" register sections
3291 ".reg" and ".reg2", set an appropriate default for human_name.
3292 (get_core_registers): Don't abort when the gdbarch has an iterator
3293 but no regset_from_core_section. Add NULL/0 for parameters
3294 'regset'/'min_size' in calls to get_core_register_section.
3295 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3296 'regset' and use it instead of calling the
3297 regset_from_core_section gdbarch method.
3298 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3299 * i386-tdep.c (i386_supply_xstateregset)
3300 (i386_collect_xstateregset, i386_xstateregset): Moved to
3302 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3304 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3305 core file support only if the regset iterator hasn't been set.
3306 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3307 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3308 Moved from i386-tdep.c and renamed to *_linux*.
3309 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3310 each callback invocation. Allow any .reg-xstate size when reading
3312 * amd64-tdep.c (amd64_supply_xstateregset)
3313 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3315 (amd64_regset_from_core_section): Remove.
3316 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3317 install an amd64-specific regset_from_core_section gdbarch method.
3318 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3319 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3320 Moved from amd64-tdep.c and renamed to *_linux*.
3321 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3322 to each callback invocation. Allow any .reg-xstate size when
3323 reading from a core file.
3324 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3325 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3326 each callback invocation.
3327 (arm_linux_init_abi): No longer set the regset_from_core_section
3329 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3330 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3331 each callback invocation.
3332 (ppc_linux_init_abi): No longer set the regset_from_core_section
3334 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3335 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3336 (s390_regset_from_core_section): Remove.
3337 (s390_iterate_over_regset_sections): Add regset parameter to each
3338 callback invocation.
3339 (s390_gdbarch_init): No longer set the regset_from_core_section
3340 gdbarch method. Drop initialization of deleted tdep fields.
3342 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3344 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3345 (amd64_linux_iterate_over_regset_sections): New.
3346 (amd64_linux_init_abi_common): Don't install the regset section
3347 list, but the new iterator in gdbarch.
3348 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3349 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3350 (arm_linux_iterate_over_regset_sections): ...here. New function.
3351 (arm_linux_init_abi): Set iterator instead of section list.
3352 * corelow.c (get_core_registers_cb): New function, logic moved
3354 (get_core_registers): ...loop body here. Use new iterator method
3355 instead of walking through the regset section list.
3356 * gdbarch.sh: Remove 'core_regset_sections'. New method
3357 'iterate_over_regset_sections'. New typedef
3358 'iterate_over_regset_sections_cb'.
3359 * gdbarch.c: Regenerate.
3360 * gdbarch.h: Likewise.
3361 * i386-linux-tdep.c (i386_linux_regset_sections)
3362 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3364 (i386_linux_iterate_over_regset_sections): New.
3365 (i386_linux_init_abi): Don't choose a regset section list, but
3366 install new iterator in gdbarch.
3367 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3368 (linux_collect_regset_section_cb): New function, logic moved
3370 (linux_collect_thread_registers): ...loop body here. Use iterator
3371 method instead of walking through list.
3372 (linux_make_corefile_notes_1): Check for presence of iterator
3373 method instead of regset section list.
3374 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3375 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3376 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3377 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3378 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3379 (ppc_linux_init_abi): Don't choose from above regset section
3380 lists, but install new iterator in gdbarch.
3381 * regset.h (struct core_regset_section): Remove.
3382 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3383 have_linux_v1, have_linux_v2, and have_tdb.
3384 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3385 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3386 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3387 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3388 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3389 (s390_iterate_over_regset_sections): ...here. New function. Use
3391 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3392 regset section lists, but install new iterator.
3394 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3396 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3398 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3400 * progspace.c (print_program_space): Don't prune program spaces
3401 before printing them.
3403 2014-09-25 Pedro Alves <palves@redhat.com>
3405 * infrun.c (user_visible_resume_ptid): Don't check
3406 singlestep_breakpoints_inserted_p.
3408 2014-09-25 Pedro Alves <palves@redhat.com>
3410 * breakpoint.c (should_be_inserted): Add debug output.
3412 2014-09-25 Pedro Alves <palves@redhat.com>
3414 * infrun.c (stepping_past_instruction_at)
3415 (clear_exit_convenience_vars): Point at infrun.h instead of
3417 (handle_signal_stop): Fix typo.
3419 2014-09-24 Yao Qi <yao@codesourcery.com>
3421 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3424 2014-09-22 Gary Benson <gbenson@redhat.com>
3426 * target.c (target_stop): Updated comment.
3428 2014-09-22 Gary Benson <gbenson@redhat.com>
3430 * target/target.h (target_stop_ptid): Renamed as...
3431 (target_stop_and_wait): New function. Updated comment.
3433 (target_continue_ptid): Renamed as...
3434 (target_continue_no_signal): New function. Updated comment.
3437 2014-09-22 Pedro Alves <palves@redhat.com>
3439 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3441 * breakpoint.c (enum ugll_insert_mode): New enum.
3442 (always_inserted_mode): Now a plain boolean.
3443 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3444 (breakpoints_always_inserted_mode): Delete.
3445 (breakpoints_should_be_inserted_now): New function.
3446 (insert_breakpoints): Pass UGLL_INSERT to
3447 update_global_location_list instead of calling
3448 insert_breakpoint_locations manually.
3449 (create_solib_event_breakpoint_1): New, factored out from ...
3450 (create_solib_event_breakpoint): ... this.
3451 (create_and_insert_solib_event_breakpoint): Use
3452 create_solib_event_breakpoint_1 instead of calling
3453 insert_breakpoint_locations manually.
3454 (update_global_location_list): Change parameter type from boolean
3455 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3456 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3457 (update_global_location_list_nothrow): Change parameter type from
3458 boolean to enum ugll_insert_mode.
3459 (_initialize_breakpoint): "breakpoint always-inserted" option is
3460 now a boolean command. Update help text.
3461 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3462 (breakpoints_should_be_inserted_now): New declaration.
3463 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3464 Remove breakpoints_always_inserted_mode check.
3465 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3466 * remote.c (remote_start_remote): Likewise.
3468 2014-09-22 Pedro Alves <palves@redhat.com>
3470 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3471 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3472 Instead, pass UGLL_INSERT to update_global_location_list.
3473 (update_global_location_list): Change parameter type from boolean
3474 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3475 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3476 (create_solib_event_breakpoint_1): New, factored out from ...
3477 (create_solib_event_breakpoint): ... this.
3478 (create_and_insert_solib_event_breakpoint): Use
3479 create_solib_event_breakpoint_1 instead of calling
3480 insert_breakpoint_locations manually.
3481 (update_global_location_list): Handle UGLL_INSERT.
3483 2014-09-22 Pedro Alves <palves@redhat.com>
3485 * breakpoint.c (enum ugll_insert_mode): New enum.
3486 (update_global_location_list)
3487 (update_global_location_list_nothrow): Change parameter type from
3488 boolean to enum ugll_insert_mode. All callers adjusted.
3490 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3492 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3493 SystemTap support in GDB.
3495 2014-09-19 Don Breazeal <donb@codesourcery.com>
3497 * linux-nat.c (linux_handle_extended_wait): Call
3498 linux_ptrace_get_extended_event.
3499 (wait_lwp): Call linux_is_extended_waitstatus.
3500 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3501 and linux_is_extended_waitstatus.
3502 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3503 linux_ptrace_get_extended_event.
3504 (linux_ptrace_get_extended_event): New function.
3505 (linux_is_extended_waitstatus): New function.
3506 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3507 (linux_is_extended_waitstatus): New declarations.
3509 2014-09-19 Yao Qi <yao@codesourcery.com>
3511 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3512 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3513 comments. Callers update.
3514 (dwarf_decode_lines): Likewise.
3515 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3516 comments. Skip the line table if 'lowpc' is greater than
3517 'address'. Don't check
3518 dwarf2_per_objfile->has_section_at_zero.
3520 2014-09-18 Doug Evans <dje@google.com>
3522 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3523 * python/py-symtab.c (stpy_get_producer): New function.
3524 (symtab_object_getset): Add "producer" attribute.
3526 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3529 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3530 (do_captured_read_memory_integer): Remove.
3531 (safe_read_memory_integer): Use target_read_memory directly instead
3532 of catching errors in do_captured_read_memory_integer.
3534 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3536 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3539 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3541 * objc-lang.c (find_implementation_from_class): Remove dead code.
3543 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3546 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3547 "fprintf_unfiltered (gdb_stdlog...)".
3549 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3551 PR breakpoints/12526
3552 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3554 * breakpoint.c (watch_command_1): Use these fields to retain
3555 bitfield information.
3556 (extract_bitfield_from_watchpoint_value): New function.
3557 (watchpoint_check): Use it.
3558 (update_watchpoint): Use it. Optimize the address and length of a
3559 HW watchpoint pointing to a bitfield.
3560 * value.h (unpack_value_bitfield): New prototype.
3561 * value.c (unpack_value_bitfield): Make extern.
3563 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3565 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3567 * gnu-nat.c (inf_threads): New function.
3568 * gnu-nat.h (inf_threads_ftype): New typedef.
3569 (inf_threads): New declaration.
3570 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3571 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3572 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3573 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3574 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3575 (i386_gnu_dr_get_control): New functions.
3576 (reg_addr): New structure.
3577 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3578 i386 debugging register hooks.
3579 * NEWS: Mention this.
3581 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3583 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3584 vector data transfer instructions.
3585 (arm_record_coproc_data_proc): Updated.
3587 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3589 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3590 arm_record_exreg_ld_st_insn.
3591 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3594 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3596 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3597 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3598 processing instructions.
3600 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3602 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3603 for advance SIMD struct ld/st insn.
3604 (thumb2_record_decode_insn_handler): Replace stub handler with
3605 thumb2_record_asimd_struct_ld_st.
3607 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3609 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3610 for asimd, vfp and coprocessor insns.
3611 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3612 and coprocessor insns.
3613 (thumb2_record_coproc_insn): New function.
3614 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3616 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3619 2014-09-13 Doug Evans <xdje42@gmail.com>
3621 * NEWS: Mention new "queue-signal" command.
3622 * infcmd.c (queue_signal_command): New function.
3623 (_initialize_infcmd): Add new queue-signal command.
3625 2014-09-13 Doug Evans <xdje42@gmail.com>
3627 * linux-nat.c (wait_lwp): Add debugging printf.
3628 (linux_nat_wait_1): Ditto.
3630 2014-09-12 Pedro Alves <palves@redhat.com>
3632 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3633 (create_and_insert_solib_event_breakpoint): New functions.
3634 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3635 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3636 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3637 (remove_dbx_link_breakpoint): Delete function.
3638 (insert_dbx_link_bpt_in_file): Use
3639 create_and_insert_solib_event_breakpoint instead of
3640 deprecated_insert_raw_breakpoint.
3641 (procfs_wait): Don't check whether we hit __dbx_link here.
3642 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3644 * solib-irix.c (base_breakpoint): Delete global.
3645 (disable_break): Delete function.
3646 (enable_break): Use create_solib_event_breakpoint
3647 instead of deprecated_insert_raw_breakpoint.
3648 (irix_solib_handle_event): New function.
3649 (irix_solib_create_inferior_hook): Don't run the target or disable
3650 the mapping-complete breakpoint here.
3651 (_initialize_irix_solib): Install irix_solib_handle_event as
3652 so_ops->handle_event hook.
3654 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3655 Ulrich Weigand <uweigand@de.ibm.com>
3658 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3659 instead of read_memory_unsigned_integer.
3661 2014-09-12 Gary Benson <gbenson@redhat.com>
3663 * nat/linux-waitpid.c: Include common-defs.h.
3664 [GDBSERVER]: Add FIXME comment.
3665 [!GDBSERVER]: Don't include defs.h or signal.h.
3666 (linux_debug) [!GDBSERVER]: Remove empty block.
3668 2014-09-12 Gary Benson <gbenson@redhat.com>
3670 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3671 Don't include defs.h or server.h.
3673 2014-09-12 Gary Benson <gbenson@redhat.com>
3675 * nat/linux-btrace.c: Include common-defs.h.
3676 Don't include defs.h, server.h or gdbthread.h.
3677 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3679 2014-09-12 Gary Benson <gbenson@redhat.com>
3681 * common/agent.c: Include common-defs.h.
3682 Don't include defs.h or server.h.
3683 * common/buffer.c: Likewise.
3684 * common/common-debug.c: Likewise.
3685 * common/common-utils.c: Likewise.
3686 * common/errors.c: Likewise.
3687 * common/filestuff.c: Likewise.
3688 * common/format.c: Likewise.
3689 * common/gdb_vecs.c: Likewise.
3690 * common/print-utils.c: Likewise.
3691 * common/ptid.c: Likewise.
3692 * common/rsp-low.c: Likewise.
3693 * common/signals.c: Likewise.
3694 * common/vec.c: Likewise.
3695 * common/xml-utils.c: Likewise.
3696 * nat/linux-osdata.c: Likewise.
3697 * nat/linux-procfs.c: Likewise.
3698 * nat/linux-ptrace.c: Likewise.
3699 * nat/mips-linux-watch.c: Likewise.
3700 * target/waitstatus.c: Likewise.
3702 2014-09-12 Tom Tromey <tromey@redhat.com>
3703 Gary Benson <gbenson@redhat.com>
3705 * common/common-regcache.h: New file.
3706 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3707 * regcache.h: Include common-regcache.h.
3708 (regcache_read_pc): Don't declare.
3709 * regcache.c (get_thread_regcache_for_ptid): New function.
3710 * nat/linux-btrace.c: Don't include regcache.h.
3711 Include common-regcache.h.
3712 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3714 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3716 * regcache.h (struct regset): Declare.
3718 2014-09-11 Pedro Alves <palves@redhat.com>
3721 * main.c: Include "infrun.h".
3722 (catch_command_errors, catch_command_errors_const): Wait for the
3723 foreground command to complete.
3724 * top.c (maybe_wait_sync_command_done): New function, factored out
3726 (maybe_wait_sync_command_done): ... here.
3727 * top.h (maybe_wait_sync_command_done): New declaration.
3729 2014-09-11 Tom Tromey <tromey@redhat.com>
3730 Gary Benson <gbenson@redhat.com>
3732 * common/symbol.h: New file.
3733 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3734 * minsyms.c (find_minimal_symbol_address): New function.
3735 * common/agent.c: Include common/symbol.h.
3736 [!GDBSERVER]: Don't include objfiles.h.
3737 (agent_look_up_symbols): Use find_minimal_symbol_address.
3739 2014-09-11 Gary Benson <gbenson@redhat.com>
3741 * target/target.h (target_stop_ptid, target_continue_ptid):
3743 * target.c (target_stop_ptid, target_continue_ptid): New
3745 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3746 (agent_run_command): Always use target_stop_ptid and
3747 target_continue_ptid.
3749 2014-09-11 Tom Tromey <tromey@redhat.com>
3750 Gary Benson <gbenson@redhat.com>
3752 * target/target.h: New file.
3753 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3754 * target.h: Include target/target.h.
3755 (target_read_memory, target_write_memory): Don't declare.
3756 * target.c (target_read_uint32): New function.
3757 * common/agent.c: Include target/target.h.
3758 [!GDBSERVER]: Don't include target.h.
3759 (helper_thread_id): Type changed to uint32_t.
3760 (agent_get_helper_thread_id): Use target_read_uint32.
3761 (agent_run_command): Always use target_read_memory and
3762 target_write_memory.
3763 (agent_capability): Type changed to uint32_t.
3764 (agent_capability_check): Use target_read_uint32.
3766 2014-09-11 Gary Benson <gbenson@redhat.com>
3768 * common/common-debug.h (show_debug_regs): Declare.
3769 * common/common-debug.c (show_debug_regs): Define.
3770 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3771 all uses with show_debug_regs. Replace all uses that considered
3772 debug_hw_points as a multi-value integer with straight boolean
3774 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3775 with show_debug_regs.
3776 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3777 all uses with show_debug_regs.
3778 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3779 uses with show_debug_regs.
3781 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3783 * findvar.c (address_from_register): Handle targets requiring
3784 a special conversion routine even for plain pointer types.
3786 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3788 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3789 (store_register): Do not call exec_one_dummy_insn.
3791 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3793 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3794 dereference it first. Use value_enclosing_type instead of
3796 (ada_array_length): Likewise.
3798 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3800 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3801 Adjust function implementation and documentation accordingly.
3802 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3803 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3804 Update call to ada_value_ptr_subscript.
3806 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3808 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3809 instead of VAL's type.
3811 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3813 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3815 2014-09-09 Doug Evans <xdje42@gmail.com>
3818 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3819 last parameter to pkg-config, not first.
3820 * configure.ac: Pass --with-guile provided pkg-config path to
3821 GDB_GUILE_PROGRAM_NAMES.
3822 * configure: Regenerate.
3824 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3826 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3829 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3831 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3832 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3833 the list of sections determining GDB_OSABI_IRIX.
3835 2014-09-09 James Hogan <james.hogan@imgtec.com>
3837 * MAINTAINERS (Write After Approval): Add "James Hogan".
3839 2014-09-09 James Hogan <james.hogan@imgtec.com>
3841 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3843 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3845 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3847 2014-09-08 Doug Evans <xdje42@gmail.com>
3850 * guile.c: #include <signal.h>.
3851 (_initialize_guile): Block SIGCHLD while initializing Guile.
3853 Replaces the following, which is reverted.
3855 2014-07-26 Doug Evans <xdje42@gmail.com>
3858 * configure.ac: Add check for header gc/gc.h.
3859 Add check for function setenv.
3860 * configure: Regenerate.
3861 * config.in: Regenerate.
3862 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3864 2014-09-08 Doug Evans <xdje42@gmail.com>
3866 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3867 with named constant. Fix style of pointer comparison.
3868 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3870 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3873 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3874 decide whether we display the command on "show user".
3875 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3876 printing command name.
3877 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3878 * cli/cli-decode.c (cli_user_command_p): Create helper function
3879 to verify whether cmd_list_element is a user-defined command.
3881 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3884 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3885 Fix goto out of TRY_CATCH.
3887 2014-09-06 Doug Evans <xdje42@gmail.com>
3888 Tom Tromey <tromey@redhat.com>
3891 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3892 $_any_caller_matches.
3893 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3894 * python/lib/gdb/function/caller_is.py: New file.
3896 2014-09-06 Doug Evans <xdje42@gmail.com>
3898 * infcmd.c (program_info): Fix typo.
3900 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3903 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3904 'number'. New variable 'has_digit'. Rewrite code to deal with
3905 subexpressions on SDT probes.
3907 2014-09-04 Pedro Alves <palves@redhat.com>
3909 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3910 the input is only one character long.
3912 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3915 * f-valprint.c (f_val_print): Specify the correct print option to
3916 use when printing integer values.
3918 2014-09-04 Gary Benson <gbenson@redhat.com>
3920 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3921 Remove code to cope with LWPs wrapped as PIDs.
3922 Add assertions to ensure no wrapped LWPs are passed.
3924 2014-09-04 Pedro Alves <palves@redhat.com>
3926 * value.c (value_ranges_copy_adjusted): New function, factored out
3928 (value_contents_copy_raw): ... here.
3929 (unpack_value_bits_as_long_1): Rename back to ...
3930 (unpack_bits_as_long): ... this. Remove 'original_value' and
3931 'result' parameters. Change return type to LONGEST.
3932 (unpack_value_bits_as_long): Delete.
3933 (unpack_value_field_as_long_1): Delete.
3934 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3935 (unpack_value_bitfield): New function.
3936 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3937 (value_fetch_lazy): Use unpack_value_bitfield.
3938 * value.h (unpack_value_bits_as_long): Delete declaration.
3940 2014-09-03 Sasha Smundak <asmundak@google.com>
3942 * python/py-frame.c (frapy_read_register): New function.
3944 2014-09-03 James Hogan <james.hogan@imgtec.com>
3946 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3947 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3949 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3952 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3954 (add_cmd): Set "completer_handle_brkchars" to NULL.
3955 * cli/cli-decode.h (struct cmd_list_element)
3956 <completer_handle_brkchars>: New field.
3957 * command.h (completer_ftype_void): New typedef.
3958 (set_cmd_completer_handle_brkchars): New prototype.
3959 * completer.c (set_gdb_completion_word_break_characters): New
3961 (complete_line_internal): Call "completer_handle_brkchars"
3962 callback from command.
3963 * completer.h: Include "command.h".
3964 (set_gdb_completion_word_break_characters): New prototype.
3965 * python/py-cmd.c (cmdpy_completer_helper): New function.
3966 (cmdpy_completer_handle_brkchars): New function.
3967 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3968 (cmdpy_init): Set completer_handle_brkchars to
3969 cmdpy_completer_handle_brkchars.
3971 2014-09-03 Gary Benson <gbenson@redhat.com>
3973 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3974 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3975 Loop conditions changed to equivalent form.
3976 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3977 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3978 ALL_DEBUG_ADDRESS_REGISTERS.
3980 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3982 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3985 2014-09-02 Doug Evans <dje@google.com>
3987 * typeprint.c (find_global_typedef): Fix comment.
3989 2014-09-02 Gary Benson <gbenson@redhat.com>
3991 * i386-nat.h: Renamed as...
3992 * x86-nat.h: New file. All type, function and variable name
3993 prefixes changed from "i386_" to "x86_". All references updated.
3994 * i386-nat.c: Renamed as...
3995 * x86-nat.c: New file. All type, function and variable name
3996 prefixes changed from "i386_" to "x86_". All references updated.
3997 * common/i386-xstate.h: Renamed as...
3998 * common/x86-xstate.h: New file. All type, function and variable
3999 name prefixes changed from "i386_" to "x86_". All references
4001 * nat/i386-cpuid.h: Renamed as...
4002 * nat/x86-cpuid.h: New file. All type, function and variable name
4003 prefixes changed from "i386_" to "x86_". All references updated.
4004 * nat/i386-gcc-cpuid.h: Renamed as...
4005 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4006 name prefixes changed from "i386_" to "x86_". All references
4008 * nat/i386-dregs.h: Renamed as...
4009 * nat/x86-dregs.h: New file. All type, function and variable name
4010 prefixes changed from "i386_" to "x86_". All references updated.
4011 * nat/i386-dregs.c: Renamed as...
4012 * nat/x86-dregs.c: New file. All type, function and variable name
4013 prefixes changed from "i386_" to "x86_". All references updated.
4015 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4017 * varobj.c (_initialize_varobj): Move to the end of file.
4019 2014-08-29 Gary Benson <gbenson@redhat.com>
4021 * common/common-exceptions.h: New file.
4022 * common/common-exceptions.c: Likewise.
4023 * Makefile.in (SFILES): Add common/common-exceptions.c.
4024 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4025 (COMMON_OBS): Add common-exceptions.o.
4026 (common-exceptions.o): New rule.
4027 * exceptions.h (common-exceptions.h): Include.
4028 (gdb_setjmp.h): Do not include.
4029 (return_reason): Moved to common-exceptions.h.
4030 (enum return_reason): Likewise.
4031 (RETURN_MASK): Likewise.
4032 (typedef return_mask): Likewise.
4033 (enum errors): Likewise.
4034 (struct gdb_exception): Likewise.
4035 (exceptions_state_mc_init): Likewise.
4036 (exceptions_state_mc_action_iter): Likewise.
4037 (exceptions_state_mc_action_iter_1): Likewise.
4038 (TRY_CATCH): Likewise.
4039 (throw_exception): Likewise.
4040 (throw_verror): Likewise.
4041 (throw_vquit): Likewise.
4042 (throw_error): Likewise.
4043 (throw_quit): Likewise.
4044 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4045 (enum catcher_action): Likewise.
4046 (struct catcher): Likewise.
4047 (current_catcher): Likewise.
4048 (catcher_list_size): Likewise.
4049 (exceptions_state_mc_init): Likewise.
4050 (catcher_pop): Likewise.
4051 (exceptions_state_mc): Likewise.
4052 (exceptions_state_mc_action_iter): Likewise.
4053 (exceptions_state_mc_action_iter_1): Likewise.
4054 (throw_exception): Likewise.
4055 (exception_messages): Likewise.
4056 (exception_messages_size): Likewise.
4057 (throw_it): Likewise.
4058 (throw_verror): Likewise.
4059 (throw_vquit): Likewise.
4060 (throw_error): Likewise.
4061 (throw_quit): Likewise.
4062 (prepare_to_throw_exception): New function.
4064 2014-08-29 Gary Benson <gbenson@redhat.com>
4066 * common/gdb_setjmp.h: New file.
4067 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4068 * configure.ac: Move sigsetjmp check...
4069 * common/common.m4: ...here.
4070 * configure: Regenerate.
4071 * cp-support.c (SIGJMP_BUF): Delete.
4072 (SIGSETJMP): Likewise.
4073 (SIGLONGJMP): Likewise.
4074 * exceptions.h (gdb_setjmp.h): Include.
4075 (setjmp.h): Do not include.
4076 (EXCEPTIONS_SIGJMP_BUF): Delete.
4077 (EXCEPTIONS_SIGSETJMP): Likewise.
4078 (EXCEPTIONS_SIGLONGJMP): Likewise.
4079 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4081 * exceptions.c: Likewise.
4083 2014-08-29 Gary Benson <gbenson@redhat.com>
4085 * cleanups.h: Moved to...
4086 * common/cleanups.h: New file.
4087 * cleanups.c: Moved to...
4088 * common/cleanups.c: New file. Include common-defs.h and
4089 cleanups.h. Do not include defs.h.
4090 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4091 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4092 (cleanups.o): New rule.
4094 2014-08-29 Gary Benson <gbenson@redhat.com>
4096 * common/errors.h (internal_warning): New declaration.
4097 (internal_vwarning): Likewise.
4098 * common/errors.c (internal_warning): New function.
4099 * utils.h (internal_warning): Don't declare.
4100 (internal_vwarning): Likewise.
4101 * utils.c (internal_warning): Removed.
4103 2014-08-29 Gary Benson <gbenson@redhat.com>
4105 * main.c (captured_main): Use warning during startup.
4106 Prefix startup warning messages with command name.
4108 2014-08-29 Gary Benson <gbenson@redhat.com>
4110 * main.c (captured_main): Handle usage errors with error.
4112 2014-08-29 Gary Benson <gbenson@redhat.com>
4114 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4115 exit pair with a call to error. Wrap the message with _().
4117 2014-08-29 Gary Benson <gbenson@redhat.com>
4119 * main.c (captured_main): Replace a fprintf/exit
4120 pair with a call to error. Wrap the message with _().
4122 2014-08-29 Gary Benson <gbenson@redhat.com>
4124 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4125 pairs with calls to error. Wrap the message with _().
4127 2014-08-29 Gary Benson <gbenson@redhat.com>
4129 * utils.c (vwarning): Protect calls to target_terminal_ours
4132 2014-08-29 Gary Benson <gbenson@redhat.com>
4134 * exceptions.c (print_flush): Protect calls to
4135 target_terminal_ours and wrap_here.
4137 2014-08-29 Gary Benson <gbenson@redhat.com>
4139 * utils.h (filtered_printing_initialized): New declaration.
4140 * utils.c (abort_with_message): New function.
4141 (internal_vproblem): Use abort_with_message for first level
4142 recursive internal problems, and if gdb_stderr is not set up.
4143 Protect calls to target_terminal_ours, begin_line and query.
4145 2014-08-28 Doug Evans <dje@google.com>
4147 * symtab.c (in_prologue): Move definition to better spot.
4148 (skip_prologue_using_sal): Ditto.
4150 2014-08-28 Doug Evans <dje@google.com>
4152 * symtab.c (find_function_start_sal): Move definition to better spot.
4154 2014-08-28 Yao Qi <yao@codesourcery.com>
4156 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4157 found_stack_adjust in forward scan. Remove condition check
4158 on found_stack_adjust which is always true. Indent the code.
4160 2014-08-28 Yao Qi <yao@codesourcery.com>
4162 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4163 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4164 (dwarf_decode_lines): Remove argument
4165 want_line_info. Remove condition check on want_line_info.
4168 2014-08-27 Doug Evans <dje@google.com>
4170 * dwarf2read.c (dwarf_record_line): Fix typo.
4172 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4174 * target.h (struct target_ops::to_terminal_save_ours): Remove
4176 (target_terminal_save_ours): Remove macro.
4177 * target-delegates.c: Regenerate.
4178 * inf-child.c (inf_child_target): Don't set the nonexistent
4179 field to_terminal_save_ours.
4180 * inferior.h (child_terminal_save_ours): Remove declaration.
4181 * terminal.h (gdb_save_tty_state): New declaration.
4182 * inflow.c (child_terminal_save_ours): Rename to ...
4183 (gdb_save_tty_state): ... this.
4184 * tui/tui.c: Include terminal.h.
4185 (tui_enable): Use gdb_save_tty_state instead of
4186 target_terminal_save_ours.
4187 (tui_disable): Likewise.
4189 2014-08-25 Doug Evans <dje@google.com>
4191 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4192 Pass NULL instead of 0 for context pointer.
4194 2014-08-25 Yao Qi <yao@codesourcery.com>
4196 * dwarf2read.c: Fix grammatical error.
4198 2014-08-24 Yao Qi <yao@codesourcery.com>
4200 * dwarf2read.c (scan_partial_symbols): Update comments.
4201 Rename argument 'need_pc' with 'set_addrmap'.
4202 (add_partial_namespace): Rename argument 'need_pc' with
4204 (add_partial_module): Likewise.
4205 (add_partial_subprogram): Likewise. Update comments.
4206 (dwarf2_name): Fix typo.
4208 2014-08-22 Doug Evans <dje@google.com>
4211 * dwarf2read.c (dwarf_record_line_p): New function.
4212 (dwarf_decode_lines_1): Ignore subsequent line number entries
4213 for the same line if any entry had a non-zero discriminator.
4215 2014-08-22 Doug Evans <dje@google.com>
4217 * buildsym.h (record_line_ftype): New typedef.
4218 (record_line): Use it.
4219 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4220 (dwarf_decode_lines_1): Call them.
4222 2014-08-22 Yao Qi <yao@codesourcery.com>
4224 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4225 (ctf_end): Remove code.
4227 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4230 (linux_make_corefile_notes): call update_thread_list, protected against
4233 2014-08-21 Pedro Alves <palves@redhat.com>
4235 * infcmd.c (attach_command): Remove comment.
4237 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4239 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4240 unsigned LONGEST to ULONGEST.
4242 2014-08-20 Pedro Alves <palves@redhat.com>
4244 * Makefile.in (check-read1): New rule.
4246 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4248 * value.c (value_from_contents_and_address): Strip resolved_type's
4249 typedef layers before checking its TYPE_DATA_LOCATION.
4251 2014-08-20 Pedro Alves <palves@redhat.com>
4253 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4255 2014-08-20 Yao Qi <yao@codesourcery.com>
4257 * amd64-tdep.c (amd64_classify): Add a blank line after the
4258 example. Move "*/" to a new line.
4259 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4260 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4261 * dwarf2read.c (psymtab_include_file_name): Likewise.
4263 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4264 Pedro Alves <palves@redhat.com>
4268 * ada-lang.c (coerce_unspec_val_to_type): Use
4269 value_contents_copy_raw.
4270 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4271 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4272 * cp-valprint.c (cp_print_value_fields): Let the common printing
4273 code handle optimized out values.
4274 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4275 * d-valprint.c (dynamic_array_type): Use
4276 value_bits_any_optimized_out.
4277 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4278 check_any_valid fields.
4279 (check_pieced_value_bits): Delete and inline ...
4280 (check_pieced_synthetic_pointer): ... here.
4281 (check_pieced_value_validity): Delete.
4282 (check_pieced_value_invalid): Delete.
4283 (pieced_value_funcs): Remove check_validity and check_any_valid
4285 (read_pieced_value): Use mark_value_bits_optimized_out.
4286 (write_pieced_value): Switch to use
4287 mark_value_bytes_optimized_out.
4288 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4289 of assuming the whole value is optimized out.
4290 * findvar.c (read_frame_register_value): Remove special handling
4291 of optimized out registers.
4292 (value_from_register): Use mark_value_bytes_optimized_out.
4293 * frame-unwind.c (frame_unwind_got_optimized): Use
4294 mark_value_bytes_optimized_out.
4295 * jv-valprint.c (java_value_print): Adjust.
4296 (java_print_value_fields): Let the common printing code handle
4297 optimized out values.
4298 * mips-tdep.c (mips_print_register): Remove special handling of
4299 optimized out registers.
4300 * opencl-lang.c (lval_func_check_validity): Delete.
4301 (lval_func_check_any_valid): Delete.
4302 (opencl_value_funcs): Remove check_validity and check_any_valid
4304 * p-valprint.c (pascal_object_print_value_fields): Let the common
4305 printing code handle optimized out values.
4306 * stack.c (read_frame_arg): Remove special handling of optimized
4307 out values. Fetch both VAL and ENTRYVAL before comparing
4308 contents. Adjust to value_available_contents_eq rename.
4309 * valprint.c (valprint_check_validity)
4310 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4311 (val_print_array_elements): Adjust.
4312 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4313 (value_bits_any_optimized_out): New function.
4314 (value_entirely_covered_by_range_vector): New function, factored
4315 out from value_entirely_unavailable.
4316 (value_entirely_unavailable): Reimplement.
4317 (value_entirely_optimized_out): New function.
4318 (insert_into_bit_range_vector): New function, factored out from
4319 mark_value_bits_unavailable.
4320 (mark_value_bits_unavailable): Reimplement.
4321 (struct ranges_and_idx): New struct.
4322 (find_first_range_overlap_and_match): New function, factored out
4323 from value_available_contents_bits_eq.
4324 (value_available_contents_bits_eq): Rename to ...
4325 (value_contents_bits_eq): ... this. Check both unavailable
4326 contents and optimized out contents.
4327 (value_available_contents_eq): Rename to ...
4328 (value_contents_eq): ... this.
4329 (allocate_value_lazy): Remove reference to the old optimized_out
4331 (allocate_optimized_out_value): Use
4332 mark_value_bytes_optimized_out.
4333 (require_not_optimized_out): Adjust to check whether the
4334 optimized_out vec is empty.
4335 (ranges_copy_adjusted): New function, factored out from
4336 value_contents_copy_raw.
4337 (value_contents_copy_raw): Also copy the optimized out ranges.
4338 Assert the destination ranges aren't optimized out.
4339 (value_contents_copy): Update comment, remove call to
4340 require_not_optimized_out.
4341 (value_contents_equal): Adjust to check whether the optimized_out
4343 (set_value_optimized_out, value_optimized_out_const): Delete.
4344 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4346 (value_entirely_optimized_out, value_bits_valid): Delete.
4347 (value_copy): Take a VEC copy of the 'optimized_out' field.
4348 (value_primitive_field): Remove special handling of optimized out.
4349 (value_fetch_lazy): Assert that lazy values have no unavailable
4350 regions. Use value_bits_any_optimized_out. Remove some special
4351 handling for optimized out values.
4352 * value.h: Add intro comment about <optimized out> and
4354 (struct lval_funcs): Remove check_validity and check_any_valid
4356 (set_value_optimized_out, value_optimized_out_const): Remove.
4357 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4359 (value_bits_any_optimized_out): New declaration.
4360 (value_bits_valid): Delete declaration.
4361 (value_available_contents_eq): Rename to ...
4362 (value_contents_eq): ... this, and extend comments.
4364 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4366 Fix -fsanitize=address on unreadable inferior strings.
4367 * valprint.c (val_print_string): Fix access before BUFFER.
4369 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4371 * target.c (target_struct_size): Remove.
4372 (target_struct_allocsize): Remove.
4373 (DEFAULT_ALLOCSIZE): Remove.
4374 (target_ops_p): New typedef.
4375 (DEF_VEC_P (target_ops_p)): New vector type.
4376 (target_structs): Change type to VEC (target_ops_p).
4377 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4378 (find_default_run_target): Rewrite for loop following changes to
4381 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4383 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4384 Adjust code accordingly. Adjust function description comment.
4386 2014-08-19 Yao Qi <yao@codesourcery.com>
4388 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4391 2014-08-19 Alan Modra <amodra@gmail.com>
4393 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4394 * config.in: Regenerate.
4395 * configure: Regenerate.
4397 2014-08-19 Tom Tromey <tromey@redhat.com>
4398 Gary Benson <gbenson@redhat.com>
4400 * common/common-debug.h: New file.
4401 * common/common-debug.c: Likewise.
4402 * debug.c: Likewise.
4403 * Makefile.in (SFILES): Add common/common-debug.c.
4404 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4405 (COMMON_OBS): Add common-debug.o and debug.o.
4406 (common-debug.o): New rule.
4407 * common/common-defs.h: Include common-debug.h.
4408 * common/agent.c (debug_agent_printf): New function.
4409 (DEBUG_AGENT): Redefine.
4410 * nat/i386-dregs.c (debug_printf): Undefine.
4412 2014-08-19 Gary Benson <gbenson@redhat.com>
4414 * common/common-defs.h: Include print-utils.h.
4415 * utils.h: Do not include print-utils.h.
4417 2014-08-19 Tom Tromey <tromey@redhat.com>
4418 Gary Benson <gbenson@redhat.com>
4420 * common/common-types.h: New file.
4421 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4422 * common/common-defs.h: Include common-types.h.
4423 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4426 2014-08-19 Tom Tromey <tromey@redhat.com>
4427 Gary Benson <gbenson@redhat.com>
4429 * common/errors.h: New file.
4430 * common/errors.c: Likewise.
4431 * Makefile.in (SFILES): Add common/errors.c.
4432 (HFILES_NO_SRCDIR): Add common/errors.h.
4433 (COMMON_OBS): Add errors.o.
4434 (errors.o): New rule.
4435 * common/common-defs.h: Include errors.h.
4436 * utils.h (perror_with_name, error, verror, warning, vwarning):
4438 * common/common-utils.h: (malloc_failure, internal_error):
4441 2014-08-19 Gary Benson <gbenson@redhat.com>
4443 * utils.c (internal_vproblem): Always print the message.
4445 2014-08-18 Doug Evans <dje@google.com>
4447 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4449 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4451 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4452 Return 0 if TYPE is dynamic.
4453 (print_range): Add handling of dynamic ranges.
4455 2014-08-18 Keven Boell <keven.boell@intel.com>
4456 Joel Brobecker <brobecker@adacore.com>
4458 * gdbtypes.h (struct main_type): Add field "data_location".
4459 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4460 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4461 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4462 a dynamic data location.
4463 (resolve_dynamic_type): Add DW_AT_data_location handling.
4464 (copy_recursive, copy_type): Copy the data_location information
4466 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4467 * value.c (value_from_contents_and_address): Add
4468 DW_AT_data_location handling.
4470 2014-08-18 Keven Boell <keven.boell@intel.com>
4471 Joel Brobecker <brobecker@adacore.com>
4473 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4474 field "get_object_address".
4475 * dwarf2expr.c (execute_stack_op): Add handling for
4476 DW_OP_push_object_address.
4477 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4478 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4479 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4480 (dwarf_expr_get_obj_addr): New function.
4481 (dwarf_expr_ctx_funcs): Add get_object_address field.
4482 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4483 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4484 (dwarf2_evaluate_property): Add parameter "address". Use it.
4485 (needs_get_obj_addr): New function.
4486 (needs_frame_ctx_funcs): Add get_object_address field.
4487 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4488 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4489 (resolve_dynamic_array): Likewise.
4491 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4493 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4494 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4495 fixed value for records and unions for which some GNAT encodings
4498 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4500 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4501 rewrite to avoid "else if" and "else" constructs. Should be
4502 a no-op in practice.
4504 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4506 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4509 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4512 * eval.c: Update all calls to find_overload_match.
4513 * valarith.c: Likewise.
4514 (value_user_defined_cpp_op, value_user_defined_op): New
4515 argument NOSIDE. Update all callers.
4516 * valops.c (find_overload_match): New argument NOSIDE.
4517 * value.h (find_overload_match): Update signature.
4519 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4521 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4522 'items' methods instead of 'iteritems' method on dictionaries.
4524 2014-08-15 Doug Evans <dje@google.com>
4526 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4529 2014-08-15 Doug Evans <dje@google.com>
4531 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4533 2014-08-15 Doug Evans <dje@google.com>
4535 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4537 2014-08-15 Doug Evans <dje@google.com>
4539 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4542 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4544 * dcache.h: Include target.h, to avoid compile time warnings.
4546 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4548 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4549 frame_info" partial declaration.
4550 * gdbarch.h: Regenerate.
4552 2014-08-15 Yao Qi <yao@codesourcery.com>
4554 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4555 Add parameter 'decode_for_pst_p'. Callers update.
4557 2014-08-13 Yao Qi <yao@codesourcery.com>
4560 * configure.ac: Use local variable 'pos'.
4561 * configure: Regenerated.
4563 2014-08-11 Doug Evans <dje@google.com>
4565 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4566 message, it is redundant with "Reading symbols from ..." message.
4568 2014-08-10 Doug Evans <xdje42@gmail.com>
4570 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4572 2014-08-09 Yao Qi <yao@codesourcery.com>
4575 * remote.c (remote_xfer_partial): Remove dead code.
4577 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4579 * ia64-linux-tdep.c: Include "regset.h".
4580 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4581 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4582 (ia64_linux_supply_fpregset): New function.
4583 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4584 (ia64_linux_regset_from_core_section): New function.
4585 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4588 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4590 * m68klinux-tdep.c: Include "regset.h".
4591 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4592 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4593 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4594 (m68k_linux_regset_from_core_section): New function.
4595 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4600 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4601 function. Move logic to...
4602 (tilegx_linux_regmap): ... this new register map.
4603 (tilegx_linux_regset): Refer to register map, replace supply
4604 method by regcache_supply_regset, and add collect method.
4605 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4606 TILEGX_FIRST_EASY_REGNUM.
4608 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4610 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4611 that calls regcache_supply_regset and handles the EPC register
4612 separately. Move main logic to...
4613 (score7_linux_gregmap): ... this new register map.
4614 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4615 (score7_linux_gregset): Refer to register map. Add collect method.
4616 (score7_linux_regset_from_core_section): Replace
4617 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4618 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4619 (struct regset): Delete unused forward declaraction.
4620 (struct pt_regs): Delete structure definition.
4621 (elf_gregset_t): Delete typedef.
4623 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4625 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4626 (nios2_core_regset): Add collect method.
4628 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4630 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4631 platform-independent and don't write to read-only input buffer.
4632 (m32r_linux_collect_gregset): New function.
4633 (m32r_linux_gregset): Add collect method.
4635 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4637 * hppa-linux-tdep.c (greg_map): Rename to...
4638 (hppa_linux_gregmap): ... this. Also convert to
4639 regcache_map_entry format.
4640 (hppa_linux_supply_regset): Delete function.
4641 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4642 (hppa_linux_fpregmap): ... this new register map.
4643 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4644 register map, replace supply method by regcache_supply_regset, and
4645 add collect method regcache_collect_regset.
4647 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4649 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4650 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4651 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4652 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4653 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4654 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4655 (frv_linux_supply_gregset): Replace main logic by call to
4656 regcache_supply_regset, but keep clearing gr32-gr63.
4657 (frv_linux_supply_fpregset): Delete function.
4658 (frv_linux_gregset): Refer to appropriate register map and add
4659 regcache_collect_regset as the collect method.
4660 (frv_linux_fpregset): Likewise. Also exchange the supply method
4661 by regcache_supply_regset.
4663 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4665 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4666 by call to alpha_supply_int_regs.
4667 (alpha_linux_collect_gregset): New function.
4668 (alpha_linux_supply_fpregset): Replace logic by call to
4669 alpha_supply_fp_regs.
4670 (alpha_linux_collect_fpregset): New function.
4671 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4673 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4675 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4676 by call to regcache_collect_regset.
4677 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4678 instead of aarch64_linux_supply_gregset/_fpregset.
4679 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4680 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4681 header file instead.
4682 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4683 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4684 functions. Move logic to ...
4685 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4687 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4688 refer to new register maps, replace *_regset_from_core by
4689 regcache_supply_regset, and also use regcache_collect_regset.
4690 * aarch64-linux-tdep.h: Include "regset.h".
4691 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4693 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4694 macros, moved from C source file.
4695 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4696 variable declarations.
4698 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4700 * s390-linux-nat.c: Include "regset.h".
4701 (regmap_gregset): Delete macro.
4702 (s390_64_regmap_gregset): New register map for
4703 regcache_supply/_collect_regset.
4704 (s390_64_gregset): New regset.
4705 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4706 (regmap_fpregset): Delete macro.
4707 (s390_native_supply, s390_native_collect): Delete functions.
4708 (supply_gregset, fill_gregset): Replace s390-specific regmap
4709 handling by a call to regcache_supply/_collect_regset.
4710 (supply_fpregset, fill_fpregset): Call regcache_supply/
4711 _collect_regset instead of s390_native_supply/_collect.
4712 (fetch_regset, store_regset): Likewise. Also change the last
4713 parameter to a regset instead of a regmap.
4714 (s390_linux_fetch_inferior_registers)
4715 (390_linux_store_inferior_registers): Adjust last parameter in
4716 calls to fetch_regset and store_regset.
4717 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4718 (s390_gregmap): ... this. Also make static const and convert to
4719 regcache_map_entry format.
4720 (s390x_regmap_gregset): Delete.
4721 (s390_regmap_fpregset): Rename to...
4722 (s390_fpregmap): ... this. Make static const and convert to
4723 regcache_map_entry format.
4724 (s390_regmap_upper, s390_regmap_last_break)
4725 (s390x_regmap_last_break, s390_regmap_system_call)
4726 (s390_regmap_tdb): Likewise.
4727 (s390_supply_regset, s390_collect_regset): Remove functions.
4728 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4730 (s390_gregset, s390_fpregset, s390_upper_regset)
4731 (s390_last_break_regset, s390x_last_break_regset)
4732 (s390_system_call_regset, s390_tdb_regset): Make global and
4733 replace s390_supply/_collect_regset by regcache_supply/
4735 (s390x_gregset): Delete.
4736 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4737 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4738 (s390_regmap_fpregset, s390_regmap_last_break)
4739 (s390x_regmap_last_break, s390_regmap_system_call)
4740 (s390_regmap_tdb): Delete global variable declarations.
4741 (s390_gregset, s390_fpregset, s390_last_break_regset)
4742 (s390x_last_break_regset, s390_system_call_regset)
4743 (s390_tdb_regset): New global variable declarations.
4745 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4747 * regcache.c: Include "regset.h".
4748 (regcache_transfer_regset): New local function.
4749 (regcache_supply_regset, regcache_collect_regset): New functions.
4750 * regcache.h (struct regcache_map_entry): New structure.
4751 (REGCACHE_MAP_SKIP): New enum value.
4752 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4756 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4757 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4758 (ppc_linux_collect_gregset ): Likewise.
4759 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4760 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4761 (ppc_collect_vrregset): Likewise.
4762 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4765 2014-08-07 Yao Qi <yao@codesourcery.com>
4767 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4768 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4769 * remote.c (remote_read_bytes): Likewise.
4771 2014-08-07 Yao Qi <yao@codesourcery.com>
4773 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4775 2014-08-07 Yao Qi <yao@codesourcery.com>
4778 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4779 TARGET_XFER_OK instead of 0.
4781 2014-08-07 Gary Benson <gbenson@redhat.com>
4783 * common/common-defs.h: Include errno.h.
4784 * defs.h: Do not include errno.h.
4785 * ada-typeprint.c: Likewise.
4786 * c-typeprint.c: Likewise.
4787 * core-regset.c: Likewise.
4788 * corefile.c: Likewise.
4789 * corelow.c: Likewise.
4790 * event-loop.c: Likewise.
4791 * f-typeprint.c: Likewise.
4792 * gnu-nat.c: Likewise.
4793 * go32-nat.c: Likewise.
4794 * i386gnu-nat.c: Likewise.
4795 * m2-typeprint.c: Likewise.
4796 * nat/linux-btrace.c: Likewise.
4797 * p-typeprint.c: Likewise.
4798 * procfs.c: Likewise.
4799 * remote-sim.c: Likewise.
4800 * rs6000-nat.c: Likewise.
4801 * target.c: Likewise.
4802 * typeprint.c: Likewise.
4803 * ui-file.c: Likewise.
4804 * valops.c: Likewise.
4805 * valprint.c: Likewise.
4807 2014-08-07 Gary Benson <gbenson@redhat.com>
4809 * common/common-defs.h: Include string.h.
4810 * aarch64-tdep.c: Do not include string.h.
4811 * ada-exp.y: Likewise.
4812 * ada-lang.c: Likewise.
4813 * ada-lex.l: Likewise.
4814 * ada-typeprint.c: Likewise.
4815 * ada-valprint.c: Likewise.
4816 * aix-thread.c: Likewise.
4817 * alpha-linux-tdep.c: Likewise.
4818 * alpha-mdebug-tdep.c: Likewise.
4819 * alpha-nat.c: Likewise.
4820 * alpha-osf1-tdep.c: Likewise.
4821 * alpha-tdep.c: Likewise.
4822 * alphanbsd-tdep.c: Likewise.
4823 * amd64-dicos-tdep.c: Likewise.
4824 * amd64-linux-tdep.c: Likewise.
4825 * amd64-nat.c: Likewise.
4826 * amd64-sol2-tdep.c: Likewise.
4827 * amd64fbsd-tdep.c: Likewise.
4828 * amd64obsd-tdep.c: Likewise.
4829 * arch-utils.c: Likewise.
4830 * arm-linux-nat.c: Likewise.
4831 * arm-linux-tdep.c: Likewise.
4832 * arm-tdep.c: Likewise.
4833 * arm-wince-tdep.c: Likewise.
4834 * armbsd-tdep.c: Likewise.
4835 * armnbsd-nat.c: Likewise.
4836 * armnbsd-tdep.c: Likewise.
4837 * armobsd-tdep.c: Likewise.
4838 * avr-tdep.c: Likewise.
4839 * ax-gdb.c: Likewise.
4840 * ax-general.c: Likewise.
4841 * bcache.c: Likewise.
4842 * bfin-tdep.c: Likewise.
4843 * breakpoint.c: Likewise.
4844 * build-id.c: Likewise.
4845 * buildsym.c: Likewise.
4846 * c-exp.y: Likewise.
4847 * c-lang.c: Likewise.
4848 * c-typeprint.c: Likewise.
4849 * c-valprint.c: Likewise.
4850 * charset.c: Likewise.
4851 * cli-out.c: Likewise.
4852 * cli/cli-cmds.c: Likewise.
4853 * cli/cli-decode.c: Likewise.
4854 * cli/cli-dump.c: Likewise.
4855 * cli/cli-interp.c: Likewise.
4856 * cli/cli-logging.c: Likewise.
4857 * cli/cli-script.c: Likewise.
4858 * cli/cli-setshow.c: Likewise.
4859 * cli/cli-utils.c: Likewise.
4860 * coffread.c: Likewise.
4861 * common/agent.c: Likewise.
4862 * common/buffer.c: Likewise.
4863 * common/buffer.h: Likewise.
4864 * common/common-utils.c: Likewise.
4865 * common/filestuff.c: Likewise.
4866 * common/filestuff.c: Likewise.
4867 * common/format.c: Likewise.
4868 * common/print-utils.c: Likewise.
4869 * common/rsp-low.c: Likewise.
4870 * common/signals.c: Likewise.
4871 * common/vec.h: Likewise.
4872 * common/xml-utils.c: Likewise.
4873 * core-regset.c: Likewise.
4874 * corefile.c: Likewise.
4875 * corelow.c: Likewise.
4876 * cp-abi.c: Likewise.
4877 * cp-name-parser.y: Likewise.
4878 * cp-support.c: Likewise.
4879 * cp-valprint.c: Likewise.
4880 * cris-tdep.c: Likewise.
4881 * d-exp.y: Likewise.
4882 * darwin-nat.c: Likewise.
4883 * dbxread.c: Likewise.
4884 * dcache.c: Likewise.
4885 * demangle.c: Likewise.
4886 * dicos-tdep.c: Likewise.
4887 * disasm.c: Likewise.
4888 * doublest.c: Likewise.
4889 * dsrec.c: Likewise.
4890 * dummy-frame.c: Likewise.
4891 * dwarf2-frame.c: Likewise.
4892 * dwarf2loc.c: Likewise.
4893 * dwarf2read.c: Likewise.
4894 * elfread.c: Likewise.
4895 * environ.c: Likewise.
4897 * event-loop.c: Likewise.
4898 * exceptions.c: Likewise.
4900 * expprint.c: Likewise.
4901 * f-exp.y: Likewise.
4902 * f-lang.c: Likewise.
4903 * f-typeprint.c: Likewise.
4904 * f-valprint.c: Likewise.
4905 * fbsd-nat.c: Likewise.
4906 * findcmd.c: Likewise.
4907 * findvar.c: Likewise.
4908 * fork-child.c: Likewise.
4909 * frame.c: Likewise.
4910 * frv-linux-tdep.c: Likewise.
4911 * frv-tdep.c: Likewise.
4913 * gdb_bfd.c: Likewise.
4914 * gdbarch.c: Likewise.
4915 * gdbarch.sh: Likewise.
4916 * gdbtypes.c: Likewise.
4917 * gnu-nat.c: Likewise.
4918 * gnu-v2-abi.c: Likewise.
4919 * gnu-v3-abi.c: Likewise.
4920 * go-exp.y: Likewise.
4921 * go-lang.c: Likewise.
4922 * go32-nat.c: Likewise.
4923 * guile/guile.c: Likewise.
4924 * guile/scm-auto-load.c: Likewise.
4925 * hppa-hpux-tdep.c: Likewise.
4926 * hppa-linux-nat.c: Likewise.
4927 * hppanbsd-tdep.c: Likewise.
4928 * hppaobsd-tdep.c: Likewise.
4929 * i386-cygwin-tdep.c: Likewise.
4930 * i386-dicos-tdep.c: Likewise.
4931 * i386-linux-tdep.c: Likewise.
4932 * i386-nto-tdep.c: Likewise.
4933 * i386-sol2-tdep.c: Likewise.
4934 * i386-tdep.c: Likewise.
4935 * i386bsd-tdep.c: Likewise.
4936 * i386gnu-nat.c: Likewise.
4937 * i386nbsd-tdep.c: Likewise.
4938 * i386obsd-tdep.c: Likewise.
4939 * i387-tdep.c: Likewise.
4940 * ia64-libunwind-tdep.c: Likewise.
4941 * ia64-linux-nat.c: Likewise.
4942 * inf-child.c: Likewise.
4943 * inf-ptrace.c: Likewise.
4944 * inf-ttrace.c: Likewise.
4945 * infcall.c: Likewise.
4946 * infcmd.c: Likewise.
4947 * inflow.c: Likewise.
4948 * infrun.c: Likewise.
4949 * interps.c: Likewise.
4950 * iq2000-tdep.c: Likewise.
4951 * irix5-nat.c: Likewise.
4952 * jv-exp.y: Likewise.
4953 * jv-lang.c: Likewise.
4954 * jv-typeprint.c: Likewise.
4955 * jv-valprint.c: Likewise.
4956 * language.c: Likewise.
4957 * linux-fork.c: Likewise.
4958 * linux-nat.c: Likewise.
4959 * lm32-tdep.c: Likewise.
4960 * m2-exp.y: Likewise.
4961 * m2-typeprint.c: Likewise.
4962 * m32c-tdep.c: Likewise.
4963 * m32r-linux-nat.c: Likewise.
4964 * m32r-linux-tdep.c: Likewise.
4965 * m32r-rom.c: Likewise.
4966 * m32r-tdep.c: Likewise.
4967 * m68hc11-tdep.c: Likewise.
4968 * m68k-tdep.c: Likewise.
4969 * m68kbsd-tdep.c: Likewise.
4970 * m68klinux-nat.c: Likewise.
4971 * m68klinux-tdep.c: Likewise.
4972 * m88k-tdep.c: Likewise.
4973 * machoread.c: Likewise.
4974 * macrocmd.c: Likewise.
4976 * mdebugread.c: Likewise.
4977 * mem-break.c: Likewise.
4978 * memattr.c: Likewise.
4979 * memory-map.c: Likewise.
4980 * mep-tdep.c: Likewise.
4981 * mi/mi-cmd-break.c: Likewise.
4982 * mi/mi-cmd-disas.c: Likewise.
4983 * mi/mi-cmd-env.c: Likewise.
4984 * mi/mi-cmd-stack.c: Likewise.
4985 * mi/mi-cmd-var.c: Likewise.
4986 * mi/mi-cmds.c: Likewise.
4987 * mi/mi-console.c: Likewise.
4988 * mi/mi-getopt.c: Likewise.
4989 * mi/mi-interp.c: Likewise.
4990 * mi/mi-main.c: Likewise.
4991 * mi/mi-parse.c: Likewise.
4992 * microblaze-rom.c: Likewise.
4993 * microblaze-tdep.c: Likewise.
4994 * mingw-hdep.c: Likewise.
4995 * minidebug.c: Likewise.
4996 * minsyms.c: Likewise.
4997 * mips-irix-tdep.c: Likewise.
4998 * mips-linux-tdep.c: Likewise.
4999 * mips-tdep.c: Likewise.
5000 * mips64obsd-tdep.c: Likewise.
5001 * mipsnbsd-tdep.c: Likewise.
5002 * mipsread.c: Likewise.
5003 * mn10300-linux-tdep.c: Likewise.
5004 * mn10300-tdep.c: Likewise.
5005 * monitor.c: Likewise.
5006 * moxie-tdep.c: Likewise.
5007 * mt-tdep.c: Likewise.
5008 * nat/linux-btrace.c: Likewise.
5009 * nat/linux-osdata.c: Likewise.
5010 * nat/linux-procfs.c: Likewise.
5011 * nat/linux-ptrace.c: Likewise.
5012 * nat/linux-waitpid.c: Likewise.
5013 * nbsd-tdep.c: Likewise.
5014 * nios2-linux-tdep.c: Likewise.
5015 * nto-procfs.c: Likewise.
5016 * nto-tdep.c: Likewise.
5017 * objc-lang.c: Likewise.
5018 * objfiles.c: Likewise.
5019 * opencl-lang.c: Likewise.
5020 * osabi.c: Likewise.
5021 * osdata.c: Likewise.
5022 * p-exp.y: Likewise.
5023 * p-lang.c: Likewise.
5024 * p-typeprint.c: Likewise.
5025 * parse.c: Likewise.
5026 * posix-hdep.c: Likewise.
5027 * ppc-linux-nat.c: Likewise.
5028 * ppc-sysv-tdep.c: Likewise.
5029 * ppcfbsd-tdep.c: Likewise.
5030 * ppcnbsd-tdep.c: Likewise.
5031 * ppcobsd-tdep.c: Likewise.
5032 * printcmd.c: Likewise.
5033 * procfs.c: Likewise.
5034 * prologue-value.c: Likewise.
5035 * python/py-auto-load.c: Likewise.
5036 * python/py-gdb-readline.c: Likewise.
5037 * ravenscar-thread.c: Likewise.
5038 * regcache.c: Likewise.
5039 * registry.c: Likewise.
5040 * remote-fileio.c: Likewise.
5041 * remote-m32r-sdi.c: Likewise.
5042 * remote-mips.c: Likewise.
5043 * remote-notif.c: Likewise.
5044 * remote-sim.c: Likewise.
5045 * remote.c: Likewise.
5046 * reverse.c: Likewise.
5047 * rs6000-aix-tdep.c: Likewise.
5048 * ser-base.c: Likewise.
5049 * ser-go32.c: Likewise.
5050 * ser-mingw.c: Likewise.
5051 * ser-pipe.c: Likewise.
5052 * ser-tcp.c: Likewise.
5053 * ser-unix.c: Likewise.
5054 * serial.c: Likewise.
5055 * sh-tdep.c: Likewise.
5056 * sh64-tdep.c: Likewise.
5057 * shnbsd-tdep.c: Likewise.
5059 * sol-thread.c: Likewise.
5060 * solib-dsbt.c: Likewise.
5061 * solib-frv.c: Likewise.
5062 * solib-osf.c: Likewise.
5063 * solib-som.c: Likewise.
5064 * solib-spu.c: Likewise.
5065 * solib-target.c: Likewise.
5066 * solib.c: Likewise.
5067 * somread.c: Likewise.
5068 * source.c: Likewise.
5069 * sparc-nat.c: Likewise.
5070 * sparc-sol2-tdep.c: Likewise.
5071 * sparc-tdep.c: Likewise.
5072 * sparc64-tdep.c: Likewise.
5073 * sparc64fbsd-tdep.c: Likewise.
5074 * sparc64nbsd-tdep.c: Likewise.
5075 * sparcnbsd-tdep.c: Likewise.
5076 * spu-linux-nat.c: Likewise.
5077 * spu-multiarch.c: Likewise.
5078 * spu-tdep.c: Likewise.
5079 * stabsread.c: Likewise.
5080 * stack.c: Likewise.
5081 * std-regs.c: Likewise.
5082 * symfile.c: Likewise.
5083 * symmisc.c: Likewise.
5084 * symtab.c: Likewise.
5085 * target.c: Likewise.
5086 * thread.c: Likewise.
5087 * tilegx-linux-nat.c: Likewise.
5088 * tilegx-tdep.c: Likewise.
5090 * tracepoint.c: Likewise.
5091 * tui/tui-command.c: Likewise.
5092 * tui/tui-data.c: Likewise.
5093 * tui/tui-disasm.c: Likewise.
5094 * tui/tui-file.c: Likewise.
5095 * tui/tui-layout.c: Likewise.
5096 * tui/tui-out.c: Likewise.
5097 * tui/tui-regs.c: Likewise.
5098 * tui/tui-source.c: Likewise.
5099 * tui/tui-stack.c: Likewise.
5100 * tui/tui-win.c: Likewise.
5101 * tui/tui-windata.c: Likewise.
5102 * tui/tui-winsource.c: Likewise.
5103 * typeprint.c: Likewise.
5104 * ui-file.c: Likewise.
5105 * ui-out.c: Likewise.
5106 * user-regs.c: Likewise.
5107 * utils.c: Likewise.
5108 * v850-tdep.c: Likewise.
5109 * valarith.c: Likewise.
5110 * valops.c: Likewise.
5111 * valprint.c: Likewise.
5112 * value.c: Likewise.
5113 * varobj.c: Likewise.
5114 * vax-tdep.c: Likewise.
5115 * vaxnbsd-tdep.c: Likewise.
5116 * vaxobsd-tdep.c: Likewise.
5117 * windows-nat.c: Likewise.
5118 * xcoffread.c: Likewise.
5119 * xml-support.c: Likewise.
5120 * xstormy16-tdep.c: Likewise.
5121 * xtensa-linux-nat.c: Likewise.
5123 2014-08-07 Gary Benson <gbenson@redhat.com>
5125 * common/common-defs.h: Include gdb_assert.h.
5126 * aarch64-tdep.c: Do not include gdb_assert.h.
5127 * addrmap.c: Likewise.
5128 * aix-thread.c: Likewise.
5129 * alpha-linux-tdep.c: Likewise.
5130 * alpha-mdebug-tdep.c: Likewise.
5131 * alphanbsd-tdep.c: Likewise.
5132 * amd64-nat.c: Likewise.
5133 * amd64-tdep.c: Likewise.
5134 * amd64bsd-nat.c: Likewise.
5135 * amd64fbsd-nat.c: Likewise.
5136 * amd64fbsd-tdep.c: Likewise.
5137 * amd64nbsd-nat.c: Likewise.
5138 * amd64nbsd-tdep.c: Likewise.
5139 * amd64obsd-nat.c: Likewise.
5140 * amd64obsd-tdep.c: Likewise.
5141 * arch-utils.c: Likewise.
5142 * arm-tdep.c: Likewise.
5143 * armbsd-tdep.c: Likewise.
5145 * bcache.c: Likewise.
5146 * bfin-tdep.c: Likewise.
5147 * blockframe.c: Likewise.
5148 * breakpoint.c: Likewise.
5149 * bsd-kvm.c: Likewise.
5150 * bsd-uthread.c: Likewise.
5151 * buildsym.c: Likewise.
5152 * c-exp.y: Likewise.
5153 * c-lang.c: Likewise.
5154 * charset.c: Likewise.
5155 * cleanups.c: Likewise.
5156 * cli-out.c: Likewise.
5157 * cli/cli-decode.c: Likewise.
5158 * cli/cli-dump.c: Likewise.
5159 * cli/cli-logging.c: Likewise.
5160 * cli/cli-script.c: Likewise.
5161 * cli/cli-utils.c: Likewise.
5162 * coffread.c: Likewise.
5163 * common/common-utils.c: Likewise.
5164 * common/queue.h: Likewise.
5165 * common/signals.c: Likewise.
5166 * common/vec.h: Likewise.
5167 * complaints.c: Likewise.
5168 * completer.c: Likewise.
5169 * corelow.c: Likewise.
5170 * cp-abi.c: Likewise.
5171 * cp-name-parser.y: Likewise.
5172 * cp-namespace.c: Likewise.
5173 * cp-support.c: Likewise.
5174 * cris-tdep.c: Likewise.
5175 * dbxread.c: Likewise.
5176 * dictionary.c: Likewise.
5177 * doublest.c: Likewise.
5178 * dsrec.c: Likewise.
5179 * dummy-frame.c: Likewise.
5180 * dwarf2-frame-tailcall.c: Likewise.
5181 * dwarf2-frame.c: Likewise.
5182 * dwarf2expr.c: Likewise.
5183 * dwarf2loc.c: Likewise.
5184 * dwarf2read.c: Likewise.
5186 * event-loop.c: Likewise.
5187 * exceptions.c: Likewise.
5188 * expprint.c: Likewise.
5189 * f-valprint.c: Likewise.
5190 * fbsd-nat.c: Likewise.
5191 * findvar.c: Likewise.
5192 * frame-unwind.c: Likewise.
5193 * frame.c: Likewise.
5194 * frv-tdep.c: Likewise.
5195 * gcore.c: Likewise.
5196 * gdb-dlfcn.c: Likewise.
5197 * gdb_bfd.c: Likewise.
5198 * gdbarch.c: Likewise.
5199 * gdbarch.sh: Likewise.
5200 * gdbtypes.c: Likewise.
5201 * gnu-nat.c: Likewise.
5202 * gnu-v3-abi.c: Likewise.
5203 * go-lang.c: Likewise.
5204 * guile/scm-exception.c: Likewise.
5205 * guile/scm-gsmob.c: Likewise.
5206 * guile/scm-lazy-string.c: Likewise.
5207 * guile/scm-math.c: Likewise.
5208 * guile/scm-pretty-print.c: Likewise.
5209 * guile/scm-safe-call.c: Likewise.
5210 * guile/scm-utils.c: Likewise.
5211 * guile/scm-value.c: Likewise.
5212 * h8300-tdep.c: Likewise.
5213 * hppa-hpux-nat.c: Likewise.
5214 * hppa-tdep.c: Likewise.
5215 * hppanbsd-tdep.c: Likewise.
5216 * hppaobsd-tdep.c: Likewise.
5217 * i386-darwin-nat.c: Likewise.
5218 * i386-darwin-tdep.c: Likewise.
5219 * i386-nto-tdep.c: Likewise.
5220 * i386-tdep.c: Likewise.
5221 * i386bsd-nat.c: Likewise.
5222 * i386fbsd-tdep.c: Likewise.
5223 * i386gnu-nat.c: Likewise.
5224 * i386nbsd-tdep.c: Likewise.
5225 * i386obsd-tdep.c: Likewise.
5226 * i387-tdep.c: Likewise.
5227 * ia64-libunwind-tdep.c: Likewise.
5228 * ia64-tdep.c: Likewise.
5229 * inf-ptrace.c: Likewise.
5230 * inf-ttrace.c: Likewise.
5231 * infcall.c: Likewise.
5232 * infcmd.c: Likewise.
5233 * infrun.c: Likewise.
5234 * inline-frame.c: Likewise.
5235 * interps.c: Likewise.
5236 * jv-lang.c: Likewise.
5237 * jv-typeprint.c: Likewise.
5238 * linux-fork.c: Likewise.
5239 * linux-nat.c: Likewise.
5240 * linux-thread-db.c: Likewise.
5241 * m32c-tdep.c: Likewise.
5242 * m32r-linux-nat.c: Likewise.
5243 * m32r-tdep.c: Likewise.
5244 * m68k-tdep.c: Likewise.
5245 * m68kbsd-nat.c: Likewise.
5246 * m68kbsd-tdep.c: Likewise.
5247 * m88k-tdep.c: Likewise.
5248 * machoread.c: Likewise.
5249 * macroexp.c: Likewise.
5250 * macrotab.c: Likewise.
5251 * maint.c: Likewise.
5252 * mdebugread.c: Likewise.
5253 * memory-map.c: Likewise.
5254 * mep-tdep.c: Likewise.
5255 * mi/mi-common.c: Likewise.
5256 * microblaze-tdep.c: Likewise.
5257 * mingw-hdep.c: Likewise.
5258 * mips-linux-nat.c: Likewise.
5259 * mips-linux-tdep.c: Likewise.
5260 * mips-tdep.c: Likewise.
5261 * mips64obsd-tdep.c: Likewise.
5262 * mipsnbsd-tdep.c: Likewise.
5263 * mn10300-linux-tdep.c: Likewise.
5264 * mn10300-tdep.c: Likewise.
5265 * moxie-tdep.c: Likewise.
5266 * mt-tdep.c: Likewise.
5267 * nat/linux-btrace.c: Likewise.
5268 * nat/linux-osdata.c: Likewise.
5269 * nat/linux-ptrace.c: Likewise.
5270 * nat/mips-linux-watch.c: Likewise.
5271 * nios2-linux-tdep.c: Likewise.
5272 * nios2-tdep.c: Likewise.
5273 * objc-lang.c: Likewise.
5274 * objfiles.c: Likewise.
5275 * obsd-nat.c: Likewise.
5276 * opencl-lang.c: Likewise.
5277 * osabi.c: Likewise.
5278 * parse.c: Likewise.
5279 * ppc-linux-nat.c: Likewise.
5280 * ppc-sysv-tdep.c: Likewise.
5281 * ppcfbsd-nat.c: Likewise.
5282 * ppcfbsd-tdep.c: Likewise.
5283 * ppcnbsd-nat.c: Likewise.
5284 * ppcnbsd-tdep.c: Likewise.
5285 * ppcobsd-nat.c: Likewise.
5286 * ppcobsd-tdep.c: Likewise.
5287 * printcmd.c: Likewise.
5288 * procfs.c: Likewise.
5289 * prologue-value.c: Likewise.
5290 * psymtab.c: Likewise.
5291 * python/py-lazy-string.c: Likewise.
5292 * python/py-value.c: Likewise.
5293 * regcache.c: Likewise.
5294 * reggroups.c: Likewise.
5295 * registry.c: Likewise.
5296 * remote-sim.c: Likewise.
5297 * remote.c: Likewise.
5298 * rs6000-aix-tdep.c: Likewise.
5299 * rs6000-tdep.c: Likewise.
5300 * s390-linux-tdep.c: Likewise.
5301 * score-tdep.c: Likewise.
5302 * ser-base.c: Likewise.
5303 * ser-mingw.c: Likewise.
5304 * sh-tdep.c: Likewise.
5305 * sh64-tdep.c: Likewise.
5306 * solib-darwin.c: Likewise.
5307 * solib-spu.c: Likewise.
5308 * solib-svr4.c: Likewise.
5309 * source.c: Likewise.
5310 * sparc-nat.c: Likewise.
5311 * sparc-sol2-tdep.c: Likewise.
5312 * sparc-tdep.c: Likewise.
5313 * sparc64-sol2-tdep.c: Likewise.
5314 * sparc64-tdep.c: Likewise.
5315 * sparc64fbsd-tdep.c: Likewise.
5316 * sparc64nbsd-tdep.c: Likewise.
5317 * sparc64obsd-tdep.c: Likewise.
5318 * sparcnbsd-tdep.c: Likewise.
5319 * sparcobsd-tdep.c: Likewise.
5320 * spu-multiarch.c: Likewise.
5321 * spu-tdep.c: Likewise.
5322 * stabsread.c: Likewise.
5323 * stack.c: Likewise.
5324 * symfile.c: Likewise.
5325 * symtab.c: Likewise.
5326 * target-descriptions.c: Likewise.
5327 * target-memory.c: Likewise.
5328 * target.c: Likewise.
5329 * tic6x-linux-tdep.c: Likewise.
5330 * tic6x-tdep.c: Likewise.
5331 * tilegx-linux-nat.c: Likewise.
5332 * tilegx-tdep.c: Likewise.
5334 * tramp-frame.c: Likewise.
5335 * tui/tui-out.c: Likewise.
5336 * tui/tui-winsource.c: Likewise.
5337 * ui-out.c: Likewise.
5338 * user-regs.c: Likewise.
5339 * utils.c: Likewise.
5340 * v850-tdep.c: Likewise.
5341 * valops.c: Likewise.
5342 * value.c: Likewise.
5343 * varobj.c: Likewise.
5344 * vax-nat.c: Likewise.
5345 * xml-syscall.c: Likewise.
5346 * xml-tdesc.c: Likewise.
5347 * xstormy16-tdep.c: Likewise.
5348 * xtensa-linux-nat.c: Likewise.
5349 * xtensa-tdep.c: Likewise.
5351 2014-08-07 Gary Benson <gbenson@redhat.com>
5353 * common/common-defs.h: Include common-utils.h.
5354 * defs.h: Do not include common-utils.h.
5355 * common/gdb_assert.h: Likewise.
5356 * darwin-nat.h: Likewise.
5357 * nat/linux-btrace.c: Likewise.
5358 * target/waitstatus.h: Likewise.
5360 2014-08-07 Gary Benson <gbenson@redhat.com>
5362 * common/common-defs.h: Include ptid.h.
5363 * defs.h: Do not include ptid.h.
5364 * inferior.h: Likewise.
5365 * infrun.h: Likewise.
5366 * nat/linux-btrace.h: Likewise.
5367 * nat/linux-osdata.h: Likewise.
5368 * target/waitstatus.h: Likewise.
5370 2014-08-07 Gary Benson <gbenson@redhat.com>
5372 * common/common-defs.h: Include gdb_locale.h.
5373 * defs.h: Do not include gdb_locale.h.
5375 2014-08-07 Gary Benson <gbenson@redhat.com>
5377 * common/common-defs.h: Include gdb/signals.h.
5378 * defs.h: Do not include gdb/signals.h.
5380 2014-08-07 Gary Benson <gbenson@redhat.com>
5382 * common/common-defs.h: Include pathmax.h.
5383 * defs.h: Do not include pathmax.h.
5385 2014-08-07 Gary Benson <gbenson@redhat.com>
5387 * common/common-defs.h: Include libiberty.h.
5388 * defs.h: Do not include libiberty.h.
5389 * common/queue.h: Likewise.
5390 * cp-name-parser.y: Likewise.
5391 * mi/mi-cmd-catch.c: Likewise.
5392 * python/python.c: Likewise.
5394 2014-08-07 Gary Benson <gbenson@redhat.com>
5396 * common/common-defs.h: Include ansidecl.h.
5397 * defs.h: Do not include ansidecl.h.
5398 * common/buffer.h: Likewise.
5399 * common/common-utils.h: Likewise.
5401 2014-08-07 Gary Benson <gbenson@redhat.com>
5403 * common/common-defs.h: Include stddef.h.
5404 * defs.h: Do not include stddef.h.
5405 * common/common-utils.h: Likewise.
5406 * amd64fbsd-nat.c: Likewise.
5407 * bcache.c: Likewise.
5408 * charset.c: Likewise.
5409 * common/buffer.h: Likewise.
5410 * common/vec.h: Likewise.
5411 * i386bsd-nat.c: Likewise.
5412 * nat/linux-btrace.h: Likewise.
5413 * ppcfbsd-nat.c: Likewise.
5414 * ppcnbsd-tdep.h: Likewise.
5415 * ppcobsd-nat.c: Likewise.
5416 * ppcobsd-tdep.h: Likewise.
5417 * python/py-gdb-readline.c: Likewise.
5419 2014-08-07 Gary Benson <gbenson@redhat.com>
5421 * common/common-defs.h: Include stdarg.h.
5422 * defs.h: Do not include stdarg.h.
5423 * ada-lang.c: Likewise.
5424 * common/common-utils.h: Likewise.
5425 * guile/scm-string.c: Likewise.
5426 * guile/scm-utils.c: Likewise.
5427 * m32c-tdep.c: Likewise.
5429 2014-08-07 Gary Benson <gbenson@redhat.com>
5431 * common/common-defs.h: Include stdlib.h.
5432 * defs.h: Do not include stdlib.h.
5433 * addrmap.c: Likewise.
5434 * bcache.c: Likewise.
5435 * common/buffer.c: Likewise.
5436 * common/common-utils.c: Likewise.
5437 * cp-name-parser.y: Likewise.
5438 * go32-nat.c: Likewise.
5439 * mn10300-linux-tdep.c: Likewise.
5440 * nat/linux-osdata.c: Likewise.
5441 * tui/tui.c: Likewise.
5442 * windows-nat.c: Likewise.
5444 2014-08-07 Gary Benson <gbenson@redhat.com>
5446 * common/common-defs.h: Include stdio.h.
5447 * defs.h: Do not include stdio.h.
5448 * ada-lang.c: Likewise.
5449 * common/buffer.c: Likewise.
5450 * common/common-utils.c: Likewise.
5451 * cp-name-parser.y: Likewise.
5452 * gnu-nat.c: Likewise.
5453 * go32-nat.c: Likewise.
5454 * i386gnu-nat.c: Likewise.
5455 * proc-api.c: Likewise.
5456 * proc-events.c: Likewise.
5457 * proc-flags.c: Likewise.
5458 * proc-why.c: Likewise.
5459 * python/python-internal.h: Likewise.
5460 * target-memory.c: Likewise.
5461 * tui/tui-io.c: Likewise.
5462 * tui/tui.c: Likewise.
5464 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5466 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5467 (scan_dyntag_auxv): Same.
5469 2014-08-06 Yao Qi <yao@codesourcery.com>
5471 * amd64-linux-nat.c: Remove duplicated include
5473 * i386-linux-nat.c: Likewise.
5475 2014-08-06 Yao Qi <yao@codesourcery.com>
5477 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5478 operand" with "Special opcode" in comments.
5480 2014-08-05 Gary Benson <gbenson@redhat.com>
5482 * interps.c (initialize_interps): Remove prototype.
5483 (interpreter_initialized): Remove static global.
5484 (interp_add): Do not call initialize_interps.
5485 (initialize_interps): Remove function.
5487 2014-08-05 Gary Benson <gbenson@redhat.com>
5489 * utils.c (vwarning): Remove spurious va_end.
5491 2014-08-05 Alan Modra <amodra@gmail.com>
5493 * charset.c (convert_between_encodings): Cast result of obstack_base.
5494 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5495 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5496 (read_unwind_info): Use size_t for some locals.
5497 * jit.c (finalize_symtab): Likewise.
5498 * utils.c (hashtab_obstack_allocate): Likewise.
5499 * symmisc.c (print_objfile_statistics): Update format strings.
5501 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5503 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5504 (Changes in GDB 7.8): ... here.
5506 2014-08-04 Tom Tromey <tromey@redhat.com>
5508 * target.c (set_targetdebug): New function.
5509 (initialize_targets): Pass set_targetdebug when creating "set
5512 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5514 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5515 if detecting a variable-sized field that is not the last field.
5516 Fix struct type length computation.
5518 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5520 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5523 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5525 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5526 Remove "+ 8" offset in computation of CHAIN_VMA.
5528 2014-07-31 Doug Evans <dje@google.com>
5530 * inflow.c (child_terminal_inferior): Add comment.
5531 (child_terminal_ours_for_output): Add comment.
5532 (child_terminal_ours): Add comment.
5533 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5534 (linux_nat_terminal_ours): Add comment.
5536 2014-07-31 Gary Benson <gbenson@redhat.com>
5538 * common/btrace-common.h: Do not include defs.h or server.h.
5539 * nat/mips-linux-watch.h: Likewise.
5540 * gdb-dlfcn.h: Do not include defs.h.
5541 * tracefile.h: Likewise.
5543 2014-07-30 Roland McGrath <mcgrathr@google.com>
5545 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5547 2014-07-30 Tom Tromey <tromey@redhat.com>
5549 * bsd-kvm.c (bsd_kvm_open): Constify.
5550 * corelow.c (core_open): Constify.
5551 * ctf.c (ctf_open): Constify.
5552 * dbug-rom.c (dbug_open): Constify.
5553 * exec.c (exec_open): Constify.
5554 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5555 * microblaze-rom.c (picobug_open): Constify.
5556 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5558 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5559 * record-btrace.c (record_btrace_open): Constify.
5560 * record-full.c (record_full_core_open_1, record_full_open_1)
5561 (record_full_open): Constify.
5562 * remote-m32r-sdi.c (m32r_open): Constify.
5563 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5564 (rockhopper_open, lsi_open): Constify.
5565 * remote-sim.c (gdbsim_open): Constify.
5566 * remote.c (remote_open, extended_remote_open, remote_open_1):
5568 * target.h (struct target_ops) <to_open>: Make "arg" const.
5569 * tracefile-tfile.c (tfile_open): Constify.
5571 2014-07-30 Tom Tromey <tromey@redhat.com>
5573 * breakpoint.c (map_breakpoint_numbers): Update.
5574 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5575 (get_number_const): New function.
5576 (get_number): Rewrite using get_number_const.
5577 (init_number_or_range): Make "string" const.
5578 (number_is_in_list): Make "list" const.
5579 * cli/cli-utils.h (get_number_const): Declare.
5580 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5581 (init_number_or_range, number_is_in_list): Update.
5582 * printcmd.c (map_display_numbers): Update.
5583 * value.c (value_from_history_ref): Constify.
5584 * value.h (value_from_history_ref): Update.
5586 2014-07-30 Tom Tromey <tromey@redhat.com>
5588 * corefile.c (hook_type, call_extra_exec_file_hooks)
5589 (specify_exec_file_hook): Constify.
5590 * exec.c (exec_file_attach): Make "filename" const.
5591 * gdbcore.h (deprecated_exec_file_display_hook)
5592 (specify_exec_file_hook, exec_file_attach): Constify.
5593 * main.c (captured_main): Use catch_command_errors_const.
5595 2014-07-30 Tom Tromey <tromey@redhat.com>
5597 * target.c (open_target): New function.
5598 (add_target_with_completer, add_deprecated_target_alias): Use
5599 set_cmd_sfunc, set_cmd_context.
5600 (debug_to_open): Remove.
5601 (setup_target_debug): Update.
5603 2014-07-30 Yao Qi <yao@codesourcery.com>
5605 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5607 * parse.c (exp_iterate): Update comments.
5609 2014-07-30 Gary Benson <gbenson@redhat.com>
5611 * common/common-defs.h: New file.
5612 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5613 * defs.h: Include common-defs.h.
5614 Do not include config.h or build-gnulib/config.h.
5616 2014-07-30 Gary Benson <gbenson@redhat.com>
5618 * common/common-utils.h: Do not include config.h.
5619 * nat/linux-btrace.h: Likewise.
5621 2014-07-30 Gary Benson <gbenson@redhat.com>
5623 * btrace.c: Include defs.h.
5624 * common/ptid.c: Include defs.h or server.h as appropriate.
5625 * nat/mips-linux-watch.c: Likewise.
5627 2014-07-29 Tom Tromey <tromey@redhat.com>
5629 * target.c (target_is_pushed): Simplify.
5631 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5635 2014-07-29 Yao Qi <yao@codesourcery.com>
5638 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5640 2014-07-28 Doug Evans <xdje42@gmail.com>
5643 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5644 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5647 2014-07-28 Will Newton <will.newton@linaro.org>
5649 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5650 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5651 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5652 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5653 (THUMB2_EABI_SYSCALL): Likewise.
5654 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5656 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5657 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5659 2014-07-27 Doug Evans <xdje42@gmail.com>
5661 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5663 2014-07-27 Doug Evans <xdje42@gmail.com>
5665 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5667 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5668 Doug Evans <xdje42@gmail.com>
5671 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5672 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5673 * configure.ac: Try to use guild to compile an scm file, if it fails
5674 then disable guile support.
5675 * configure: Regenerate.
5676 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5678 (GUILE_COMPILED_FILES): New variable.
5679 (GUILE_FILES) Update.
5680 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5681 (stamp-guile): Compile scm files.
5682 * guile/guile.c (boot_guile_support): New function.
5683 (standard_throw_args_p): New function.
5684 (print_standard_throw_error, print_throw_error): New functions.
5685 (handle_boot_error): New function.
5686 (initialize_scheme_side): Rewrite to call boot_guile_support.
5687 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5688 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5690 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5691 Doug Evans <xdje42@gmail.com>
5694 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5695 * guile/lib/gdb/support.scm: New file.
5696 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5697 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5699 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5701 (%assert-type): Ditto, and renamed to assert-type.
5702 (%exception-print-style): Delete.
5704 2014-07-26 Doug Evans <xdje42@gmail.com>
5707 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5708 * configure: Regenerate.
5709 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5711 (PYTHON_FILES): New variable.
5712 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5713 (GUILE_FILES): New variable.
5714 (stamp-python, install-python, uninstall-python): Handle empty
5716 (stamp-guile, install-guile, uninstall-guile): Ditto.
5718 2014-07-26 Doug Evans <xdje42@gmail.com>
5721 * guile/lib/gdb.scm (pretty-printers): Export.
5722 (set-pretty-printers!): Export.
5723 * guile/lib/gdb/printing.scm (gdb module): Update.
5724 (prepend-pretty-printer!, append-pretty-printer!): Update.
5725 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5726 (pretty_printer_list_var): Delete.
5727 (pretty_printer_list): New static global.
5728 (gdbscm_pretty_printers): New function.
5729 (gdbscm_set_pretty_printers_x): New function.
5730 (ppscm_find_pretty_printer_from_gdb): Update.
5731 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5732 (gdbscm_initialize_pretty_printers): Update.
5734 2014-07-26 Doug Evans <xdje42@gmail.com>
5737 * configure.ac: Add check for header gc/gc.h.
5738 Add check for function setenv.
5739 * configure: Regenerate.
5740 * config.in: Regenerate.
5741 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5743 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5745 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5746 variation in gdbarch matching.
5748 2014-07-25 Tom Tromey <tromey@redhat.com>
5750 * exec.c (using_exec_ops): Remove.
5751 (exec_close_1): Update. Remove extraneous block, reindent.
5752 (add_target_sections): Use target_is_pushed.
5754 2014-07-25 Pedro Alves <palves@redhat.com>
5756 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5757 * monitor.c (monitor_create_inferior): Likewise.
5758 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5759 * remote-sim.c (gdbsim_create_inferior): Likewise.
5760 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5761 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5762 * windows-nat.c (do_initial_windows_stuff): Likewise.
5764 2014-07-25 Pedro Alves <palves@redhat.com>
5766 * NEWS: Mention signal passing and "signal" command changes.
5767 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5769 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5771 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5772 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5773 (jump_command): Adjust clear_proceed_status call.
5774 (signal_command): Warn if other thread that are resumed have
5775 signals that will be delivered. Adjust clear_proceed_status call.
5776 (until_next_command, finish_command)
5777 (proceed_after_attach_callback, attach_command_post_wait)
5778 (attach_command): Adjust clear_proceed_status call.
5779 * infrun.c (proceed_after_vfork_done): Likewise.
5780 (proceed_after_attach_callback): Adjust comment.
5781 (clear_proceed_status_thread): Clear stop_signal if not in pass
5783 (clear_proceed_status_callback): Delete.
5784 (clear_proceed_status): New 'step' parameter. Only clear the
5785 proceed status of threads the command being prepared is about to
5787 (proceed): If passed in an explicit signal, override stop_signal
5788 with it. Don't pass the last stop signal to the thread we're
5790 (init_wait_for_inferior): Adjust clear_proceed_status call.
5791 (switch_back_to_stepped_thread): Clear the signal if it should not
5793 * infrun.h (clear_proceed_status): New 'step' parameter.
5794 (user_visible_resume_ptid): Add comment.
5795 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5796 signal is in pass state.
5797 * remote.c (append_pending_thread_resumptions): Likewise.
5798 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5800 2014-07-25 Tom Tromey <tromey@redhat.com>
5802 * target.h (target_stopped_data_address)
5803 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5806 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5808 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5810 (avr_pointer_to_address): Likewise.
5812 2014-07-24 Tom Tromey <tromey@redhat.com>
5814 * monitor.c (compile_pattern): Update.
5815 * target.h (struct target_ops) <to_shortname, to_longname,
5818 2014-07-24 Tom Tromey <tromey@redhat.com>
5820 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5821 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5822 (add_info_alias, add_com): Make "doc" const.
5823 (print_doc_line): Make "str" const.
5824 (delete_cmd): Update.
5825 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5826 (print_doc_line): Update.
5827 * cli/cli-script.c (document_command): Update.
5828 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5829 (add_com, add_info, add_info_alias): Update.
5830 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5831 * python/py-cmd.c (cmdpy_destroyer): Update.
5833 2014-07-24 Tom Tromey <tromey@redhat.com>
5835 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5836 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5837 (help_cmd_list): Constify.
5838 (lookup_cmd): Update.
5839 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5841 (help_cmd_list, apropos_cmd): Update.
5842 * cli/cli-script.c (show_user): Update.
5843 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5844 * cli/cli-setshow.h (cmd_show_list): Update.
5845 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5846 (cmd_show_list): Update.
5847 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5848 * python/py-cmd.c (cmdpy_destroyer): Update.
5850 2014-07-24 Tom Tromey <tromey@redhat.com>
5852 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5853 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5855 * command.h (deprecate_cmd): Update.
5856 * maint.c (maintenance_do_deprecate): Add casts.
5858 2014-07-24 Tom Tromey <tromey@redhat.com>
5860 * cli/cli-decode.c (help_cmd): Make parameter "const".
5861 * cli/cli-decode.h (help_cmd): Update.
5863 2014-07-24 Tom Tromey <tromey@redhat.com>
5865 * stack.c (up_silently_base, down_silently_base): Make argument
5868 2014-07-24 Tom Tromey <tromey@redhat.com>
5870 * solib.c (solib_add): Make "pattern" const.
5871 * solib.h (solib_add): Update.
5873 2014-07-24 Tom Tromey <tromey@redhat.com>
5875 * remote.c (remote_serial_open, print_packet, putpkt)
5876 (putpkt_binary): Constify.
5877 * remote.h (putpkt): Update.
5879 2014-07-24 Tom Tromey <tromey@redhat.com>
5881 * monitor.c (monitor_open): Make "args" const.
5882 * monitor.h (monitor_open): Update.
5884 2014-07-24 Tom Tromey <tromey@redhat.com>
5886 * maint.c (match_bfd_flags): Make "string" const.
5887 (print_bfd_section_info): Remove casts.
5888 (print_objfile_section_info): Make "string" const.
5890 2014-07-24 Tom Tromey <tromey@redhat.com>
5892 * inf-child.c (inf_child_open_target): Make "arg" const.
5893 * inf-child.h (inf_child_open_target): Update.
5895 2014-07-24 Tom Tromey <tromey@redhat.com>
5897 * environ.c (unset_in_environ): Make "var" const.
5898 * environ.h (unset_in_environ): Update.
5900 2014-07-24 Tom Tromey <tromey@redhat.com>
5902 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5904 (scan_filename_with_cleanup): Likewise.
5905 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5906 Make arguments const.
5907 (restore_command): Update.
5909 2014-07-24 Pedro Alves <palves@redhat.com>
5911 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5913 2014-07-24 Tom Tromey <tromey@redhat.com>
5914 Gary Benson <gbenson@redhat.com>
5916 * nat/linux-ptrace.c (additional_flags): New global.
5917 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5918 additional_flags; don't check GDBSERVER.
5919 (linux_ptrace_set_additional_flags): New function.
5920 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5922 * linux-nat.c (_initialize_linux_nat): Call
5923 linux_ptrace_set_additional_flags.
5925 2014-07-24 Tom Tromey <tromey@redhat.com>
5927 * make-target-delegates (munge_type, write_debugmethod): New
5929 (debug_names): New global.
5930 ($TARGET_DEBUG_PRINTER): New global.
5931 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5933 Write debug methods. Generate init_debug_target.
5934 * target-debug.h: New file.
5935 * target-delegates.c: Rebuild.
5936 * target.c: Include target-debug.h.
5937 (debug_target): Hoist definition.
5938 (target_kill, target_get_section_table, target_memory_map)
5939 (target_flash_erase, target_flash_done, target_detach)
5940 (target_disconnect, target_wait, target_resume)
5941 (target_pass_signals, target_program_signals, target_follow_fork)
5942 (target_mourn_inferior, target_search_memory)
5943 (target_thread_address_space, target_close)
5944 (target_find_new_threads, target_core_of_thread)
5945 (target_verify_memory, target_insert_mask_watchpoint)
5946 (target_remove_mask_watchpoint): Remove targetdebug code.
5947 (debug_to_post_attach, debug_to_prepare_to_store)
5948 (debug_to_files_info, debug_to_insert_breakpoint)
5949 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5950 (debug_to_region_ok_for_hw_watchpoint)
5951 (debug_to_can_accel_watchpoint_condition)
5952 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5953 (debug_to_watchpoint_addr_within_range)
5954 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5955 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5956 (debug_to_terminal_init, debug_to_terminal_inferior)
5957 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5958 (debug_to_terminal_save_ours, debug_to_terminal_info)
5959 (debug_to_load, debug_to_post_startup_inferior)
5960 (debug_to_insert_fork_catchpoint)
5961 (debug_to_remove_fork_catchpoint)
5962 (debug_to_insert_vfork_catchpoint)
5963 (debug_to_remove_vfork_catchpoint)
5964 (debug_to_insert_exec_catchpoint)
5965 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5966 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5967 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5968 (setup_target_debug): Call init_debug_target.
5969 * target.h (TARGET_DEBUG_PRINTER): New macro.
5970 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5971 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5973 2014-07-24 Gary Benson <gbenson@redhat.com>
5975 * exceptions.h (throw_vfatal): Renamed to...
5976 (throw_vquit): New declaration.
5977 (throw_quit): Likewise.
5978 * exceptions.c (throw_vfatal): Renamed to...
5979 (throw_vquit): New function.
5980 (throw_quit): Likewise.
5981 (throw_error): Call throw_verror rather than throw_it.
5982 * utils.h (vfatal): Removed.
5984 * utils.c (vfatal): Removed.
5986 (internal_verror): Replaced call to fatal with call to throw_quit.
5987 (quit): Replaced calls to fatal with calls to throw_quit.
5989 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5991 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5994 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5996 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5997 less than zero in conditional expression.
5999 2014-07-23 Tom Tromey <tromey@redhat.com>
6001 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6002 ($INTRO_PART): Don't match whitespace.
6003 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6005 ($METHOD): Add $METHOD_TRAILER.
6007 (scan_target_h): New sub.
6008 Change main loop not to collect state.
6009 * target-delegates.c: Rebuild.
6011 2014-07-23 Gary Benson <gbenson@redhat.com>
6013 * cp-support.c (gdb_demangle): Fix build on systems without
6016 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6018 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6019 for reference entry value target data value.
6021 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6023 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6024 value_available_contents_eq.
6026 2014-07-22 Pedro Alves <palves@redhat.com>
6028 * value.c (allocate_optimized_out_value): Don't mark value as
6031 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6033 * MAINTAINERS (Write After Approval): Update my email address.
6035 2014-07-20 Doug Evans <dje@google.com>
6038 * remote.c (putpkt_binary): Add text to error message.
6040 2014-07-20 Yao Qi <yao@codesourcery.com>
6042 * eval.c: Remove "Chill" from comments.
6043 * gdbtypes.h: Likewise.
6044 * symtab.h: Likewise.
6046 2014-07-20 Yao Qi <yao@codesourcery.com>
6048 * std-operator.def: Update comments to TERNOP_SLICE.
6050 2014-07-20 Yao Qi <yao@codesourcery.com>
6052 * std-operator.def: Remove BINOP_RANGE.
6053 * breakpoint.c (watchpoint_exp_is_const): Update.
6054 * expprint.c (dump_subexp_body_standard): Likewise.
6055 * eval.c (init_array_element): Remove dead code.
6056 (evaluate_subexp_standard): Likewise.
6058 2014-07-20 Yao Qi <yao@codesourcery.com>
6060 * std-operator.def: Remove BINOP_IN.
6061 * breakpoint.c (watchpoint_exp_is_const): Update.
6062 * eval.c (evaluate_subexp_standard): Likewise.
6063 * expprint.c (dump_subexp_body_standard): Likewise.
6065 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6067 * microblaze-tdep.c (microblaze_register_names): Add
6068 the rshr and rslr register names.
6069 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6070 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6071 Use of tdesc_numbered_register. Use of
6072 microblaze_register_g_packet_guesses. Use of
6073 tdesc_use_registers. Use of set_gdbarch_register_type.
6074 (microblaze_register_g_packet_guesses): New.
6075 * microblaze-tdep.h (microblaze_reg_num): Add
6076 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6077 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6078 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6079 * features/microblaze-core.xml: New file.
6080 * features/microblaze-stack-protect.xml: New file.
6081 * features/microblaze-with-stack-protect.c: New file.
6082 * features/microblaze-with-stack-protect.xml: New file.
6083 * features/microblaze.xml: New file.
6084 * features/microblaze.c: New file.
6085 * features/Makefile (microblaze-with-stack-protect): Add
6086 microblaze-with-stack-protect microblaze and microblaze-expedite.
6087 * regformats/microblaze-with-stack-protect.dat: New file.
6088 * regformats/microblaze.dat: New file.
6089 * doc/gdb.texinfo (MicroBlaze Features): Added.
6091 2014-07-18 Tom Tromey <tromey@redhat.com>
6093 * exec.c (exec_ops): Now static.
6094 * exec.h (exec_ops): Don't declare.
6096 2014-07-18 Tom Tromey <tromey@redhat.com>
6098 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6099 to find_target_beneath.
6100 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6101 find_target_beneath.
6102 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6104 2014-07-18 Tom Tromey <tromey@redhat.com>
6107 * utils.c (quit): Use target_supports_terminal_ours.
6108 * target.h (target_supports_terminal_ours): Declare.
6109 * target.c (target_supports_delete_record): Don't check
6110 to_delete_record against NULL.
6111 (target_supports_terminal_ours): New function.
6113 2014-07-18 Tom Tromey <tromey@redhat.com>
6116 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6117 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6118 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6119 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6120 * windows-nat.c (windows_xfer_partial): Always delegate.
6121 * record-btrace.c (record_btrace_xfer_partial): Simplify
6123 (record_btrace_fetch_registers, record_btrace_store_registers)
6124 (record_btrace_prepare_to_store, record_btrace_resume)
6125 (record_btrace_wait, record_btrace_find_new_threads)
6126 (record_btrace_thread_alive): Likewise.
6127 * procfs.c (procfs_xfer_partial): Always delegate.
6128 * corelow.c (core_xfer_partial): Always delegate.
6129 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6131 2014-07-18 Tom Tromey <tromey@redhat.com>
6133 * exec.c (exec_make_note_section): Move earlier.
6135 2014-07-17 Doug Evans <dje@google.com>
6138 * maint.c (count_symtabs_and_blocks): Handle NULL
6139 current_program_space.
6140 (report_command_stats): Check global enabled flag in addition to
6141 recorded enabled flag.
6142 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6144 2014-07-16 Pedro Alves <palves@redhat.com>
6146 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6148 2014-07-16 Tom Tromey <tromey@redhat.com>
6150 * target.h (struct target_ops) <to_delete_record>: Reformat
6153 2014-07-16 Tom Tromey <tromey@redhat.com>
6155 * target-delegates.c: Rebuild.
6157 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6159 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6160 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6161 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6162 (avr_pointer_to_address): Likewise.
6163 (avr_address_class_type_flags): New function.
6164 (avr_address_class_type_flags_to_name): Likewise.
6165 (avr_address_class_name_to_type_flags): Likewise.
6166 (avr_gdbarch_init): Set address_class_type_flags,
6167 address_class_type_flags_to_name and
6168 address_class_name_to_type_flags.
6170 2014-07-15 Pedro Alves <palves@redhat.com>
6172 * linux-nat.c (kill_callback): Save errno and work with saved
6175 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6177 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6179 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6181 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6182 breakpoint support correctly.
6184 2014-07-14 Pedro Alves <palves@redhat.com>
6186 * utils.c (prompt_for_continue): Call target_terminal_ours.
6188 2014-07-14 Pedro Alves <palves@redhat.com>
6190 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6191 catch_errors. Don't re-enable stdin or notify observers where,
6193 (fetch_inferior_event_wrapper): Delete.
6195 2014-07-14 Pedro Alves <palves@redhat.com>
6198 * top.c: Include "inf-loop.h".
6199 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6201 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6203 (gdb_readline_wrapper): Store whether the target is async, and
6206 2014-07-14 Pedro Alves <palves@redhat.com>
6209 * top.c (gdb_readline_wrapper_line): Tweak comment.
6210 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6211 the input handler callback.
6213 2014-07-14 Pedro Alves <palves@redhat.com>
6216 * main.c: Include event-top.h.
6217 (handle_command_errors): New function.
6218 (catch_command_errors, catch_command_errors_const): Use it.
6220 2014-07-14 Pedro Alves <palves@redhat.com>
6222 * exceptions.c (catch_command_errors, catch_command_errors_const):
6224 * exceptions.h (catch_command_errors_ftype)
6225 (catch_command_errors_const_ftype): Moved to main.c.
6226 (catch_command_errors, catch_command_errors_const): Delete
6228 * main.c (catch_command_errors_ftype)
6229 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6230 (catch_command_errors, catch_command_errors_const)): Moved here
6231 from exceptions.c and make static.
6233 2014-07-14 Pedro Alves <palves@redhat.com>
6235 * exceptions.c (print_any_exception): Delete.
6236 (catch_exceptions_with_msg): Use exception_print instead of
6237 print_any_exception.
6238 (catch_errors): Use exception_fprintf instead of
6239 print_any_exception.
6240 (catch_command_errors, catch_command_errors_const): Use
6241 exception_print instead of print_any_exception.
6243 2014-07-14 Pedro Alves <palves@redhat.com>
6245 * infcall.c (run_inferior_call): Set 'sync_execution' while
6246 running the inferior call.
6248 2014-07-14 Pedro Alves <palves@redhat.com>
6250 * value.c (value_contents_equal): Delete function.
6251 * value.h (value_contents_equal): Delete declaration.
6253 2014-07-14 Tom Tromey <tromey@redhat.com>
6256 * gdbtypes.c (is_dynamic_type_internal): New function, from
6258 (is_dynamic_type): Rewrite.
6259 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6260 (resolve_dynamic_struct): Likewise.
6261 (resolve_dynamic_type_internal): New function, from
6262 resolve_dynamic_type.
6263 (resolve_dynamic_type): Rewrite.
6265 2014-07-14 Tom Tromey <tromey@redhat.com>
6267 * target.c (target_require_runnable): Also check record_stratum.
6270 2014-07-11 Yao Qi <yao@codesourcery.com>
6272 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6273 thumb_instruction_restores_sp return true.
6275 2014-07-11 Yao Qi <yao@codesourcery.com>
6277 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6278 (thumb_in_function_epilogue_p): Call
6279 thumb_instruction_restores_sp.
6281 2014-07-11 Yao Qi <yao@codesourcery.com>
6283 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6285 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6287 2014-07-11 Gary Benson <gbenson@redhat.com>
6289 * amd64-linux-nat.c (gdbcore.h): Remove include.
6290 (regset.h): Likewise.
6291 (nat/linux-btrace.h): Likewise.
6292 (btrace.h): Likewise.
6293 (gdb_assert.h): Likewise.
6294 (string.h): Likewise.
6295 (sys/uio.h): Likewise.
6296 (sys/debugreg.h): Likewise.
6297 (sys/syscall.h): Likewise.
6298 (sys/procfs.h): Likewise.
6299 (sys/user.h): Likewise.
6300 (asm/ptrace.h): Likewise.
6301 (i386-nat.h): Likewise.
6302 * i386-linux-nat.c (i386-nat.h): Likewise.
6303 (regset.h): Likewise.
6304 (target.h): Likewise.
6305 (linux-nat.h): Likewise.
6306 (nat/linux-btrace.h): Likewise.
6307 (btrace.h): Likewise.
6308 (gdb_assert.h): Likewise.
6309 (string.h): Likewise.
6310 (sys/uio.h): Likewise.
6311 (sys/user.h): Likewise.
6312 (sys/procfs.h): Likewise.
6313 (sys/reg.h): Likewise.
6314 (sys/debugreg.h): Likewise.
6315 (ORIG_EAX): Remove definition.
6317 2014-07-11 Gary Benson <gbenson@redhat.com>
6319 * i386-linux-nat.h: New file.
6320 * x86-linux-nat.h: Likewise.
6321 * x86-linux-nat.c: Likewise.
6322 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6323 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6324 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6325 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6326 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6327 (PTRACE_SETREGSET): Likewise.
6328 (arch_lwp_info): Now in x86-linux-nat.c.
6329 (have_ptrace_getregset): Now in x86-linux-nat.h.
6330 (x86_linux_dr_get): Now in x86-linux-nat.c.
6331 (x86_linux_dr_set): Likewise.
6332 (x86_linux_dr_get_addr): Likewise.
6333 (x86_linux_dr_get_control): Likewise.
6334 (x86_linux_dr_get_status): Likewise.
6335 (update_debug_registers_callback): Likewise.
6336 (x86_linux_dr_set_control): Likewise.
6337 (x86_linux_dr_set_addr): Likewise.
6338 (x86_linux_prepare_to_resume): Likewise.
6339 (x86_linux_new_thread): Likewise.
6340 (x86_linux_new_fork): Likewise.
6341 (x86_linux_get_thread_area): Likewise.
6342 (super_post_startup_inferior): Likewise.
6343 (x86_linux_child_post_startup_inferior): Likewise.
6344 (AMD64_LINUX_USER64_CS): Likewise.
6345 (AMD64_LINUX_X32_DS): Likewise.
6346 (x86_linux_read_description): Likewise.
6347 (x86_linux_enable_btrace): Likewise.
6348 (x86_linux_disable_btrace): Likewise.
6349 (x86_linux_teardown_btrace): Likewise.
6350 (x86_linux_read_btrace): Likewise.
6351 (x86_linux_create_target): Likewise.
6352 (x86_linux_add_target): Likewise.
6353 * i386-linux-nat.c (x86-linux-nat.h): New include.
6354 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6355 (PTRACE_SETREGSET): Likewise.
6356 (arch_lwp_info): Now in x86-linux-nat.c.
6357 (have_ptrace_getregset): Now in x86-linux-nat.h.
6358 (x86_linux_dr_get): Now in x86-linux-nat.c.
6359 (x86_linux_dr_set): Likewise.
6360 (x86_linux_dr_get_addr): Likewise.
6361 (x86_linux_dr_get_control): Likewise.
6362 (x86_linux_dr_get_status): Likewise.
6363 (update_debug_registers_callback): Likewise.
6364 (x86_linux_dr_set_control): Likewise.
6365 (x86_linux_dr_set_addr): Likewise.
6366 (x86_linux_prepare_to_resume): Likewise.
6367 (x86_linux_new_thread): Likewise.
6368 (x86_linux_new_fork): Likewise.
6369 (x86_linux_get_thread_area): Likewise.
6370 (super_post_startup_inferior): Likewise.
6371 (x86_linux_child_post_startup_inferior): Likewise.
6372 (AMD64_LINUX_USER64_CS): Likewise.
6373 (AMD64_LINUX_X32_DS): Likewise.
6374 (x86_linux_read_description): Likewise.
6375 (x86_linux_enable_btrace): Likewise.
6376 (x86_linux_disable_btrace): Likewise.
6377 (x86_linux_teardown_btrace): Likewise.
6378 (x86_linux_read_btrace): Likewise.
6379 (x86_linux_create_target): Likewise.
6380 (x86_linux_add_target): Likewise.
6382 2014-07-11 Gary Benson <gbenson@redhat.com>
6384 * amd64-linux-nat.c: Comment and whitespace changes.
6385 * i386-linux-nat.c: Comment and whitespace changes.
6387 2014-07-11 Gary Benson <gbenson@redhat.com>
6389 * amd64-linux-nat.c (x86_linux_create_target): New function.
6390 (x86_linux_add_target): Likewise.
6391 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6392 * i386-linux-nat.c (x86_linux_create_target): New function.
6393 (x86_linux_add_target): Likewise.
6394 (_initialize_i386_linux_nat): Delegate to the above new functions.
6396 2014-07-11 Gary Benson <gbenson@redhat.com>
6398 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6399 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6400 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6401 (ps_get_thread_area): Delegate to the above.
6403 2014-07-11 Gary Benson <gbenson@redhat.com>
6405 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6406 x86_linux_read_description. All uses updated. amd64-specific
6407 code conditionalized. Conditionalized i386-specific code added.
6408 Redundant cast removed.
6409 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6410 x86_linux_read_description. All uses updated. i386-specific
6411 code conditionalized. Conditionalized amd64-specific code added.
6412 One sizeof replaced with the actual type it is describing.
6414 2014-07-11 Gary Benson <gbenson@redhat.com>
6416 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6417 x86_linux_dr_get. All uses updated.
6418 (amd64_linux_dr_set): Renamed to
6419 x86_linux_dr_set. All uses updated.
6420 (amd64_linux_dr_get_addr): Renamed to
6421 x86_linux_dr_get_addr. All uses updated.
6422 (amd64_linux_dr_get_control): Renamed to
6423 x86_linux_dr_get_control. All uses updated.
6424 (amd64_linux_dr_get_status): Renamed to
6425 x86_linux_dr_get_status. All uses updated.
6426 (amd64_linux_dr_set_control): Renamed to
6427 x86_linux_dr_set_control. All uses updated.
6428 (amd64_linux_dr_set_addr): Renamed to
6429 x86_linux_dr_set_addr. All uses updated.
6430 (amd64_linux_prepare_to_resume): Renamed to
6431 x86_linux_prepare_to_resume. All uses updated.
6432 (amd64_linux_new_thread): Renamed to
6433 x86_linux_new_thread. All uses updated.
6434 (amd64_linux_new_fork): Renamed to
6435 x86_linux_new_fork. All uses updated.
6436 (amd64_linux_child_post_startup_inferior): Renamed to
6437 x86_linux_child_post_startup_inferior. All uses updated.
6438 (amd64_linux_enable_btrace): Renamed to
6439 x86_linux_enable_btrace. All uses updated.
6440 (amd64_linux_disable_btrace): Renamed to
6441 x86_linux_disable_btrace. All uses updated.
6442 (amd64_linux_teardown_btrace): Renamed to
6443 x86_linux_teardown_btrace. All uses updated.
6444 (amd64_linux_read_btrace): Renamed to
6445 x86_linux_read_btrace. All uses updated.
6446 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6447 x86_linux_dr_get. All uses updated.
6448 (i386_linux_dr_set): Renamed to
6449 x86_linux_dr_set. All uses updated.
6450 (i386_linux_dr_get_addr): Renamed to
6451 x86_linux_dr_get_addr. All uses updated.
6452 (i386_linux_dr_get_control): Renamed to
6453 x86_linux_dr_get_control. All uses updated.
6454 (i386_linux_dr_get_status): Renamed to
6455 x86_linux_dr_get_status. All uses updated.
6456 (i386_linux_dr_set_control): Renamed to
6457 x86_linux_dr_set_control. All uses updated.
6458 (i386_linux_dr_set_addr): Renamed to
6459 x86_linux_dr_set_addr. All uses updated.
6460 (i386_linux_prepare_to_resume): Renamed to
6461 x86_linux_prepare_to_resume. All uses updated.
6462 (i386_linux_new_thread): Renamed to
6463 x86_linux_new_thread. All uses updated.
6464 (i386_linux_new_fork): Renamed to
6465 x86_linux_new_fork. All uses updated.
6466 (i386_linux_child_post_startup_inferior): Renamed to
6467 x86_linux_child_post_startup_inferior. All uses updated.
6468 (i386_linux_enable_btrace): Renamed to
6469 x86_linux_enable_btrace. All uses updated.
6470 (i386_linux_disable_btrace): Renamed to
6471 x86_linux_disable_btrace. All uses updated.
6472 (i386_linux_teardown_btrace): Renamed to
6473 x86_linux_teardown_btrace. All uses updated.
6474 (i386_linux_read_btrace): Renamed to
6475 x86_linux_read_btrace. All uses updated.
6477 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6479 * remote.c (extended_remote_post_attach): New function.
6480 (init_extended_remote_ops): Install it as to_post_attach method.
6482 2014-07-09 Pedro Alves <palves@redhat.com>
6484 * infcmd.c (attach_command_post_wait): Don't call
6485 target_terminal_inferior here.
6486 (attach_command): Call it here instead.
6488 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6490 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6492 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6493 from varobj.c, with additional checks.
6494 (c_varobj_ops): Fill in is_path_expr_parent field.
6495 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6496 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6498 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6500 (varobj_default_is_path_expr_parent): New function.
6501 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6502 (varobj_default_is_path_expr_parent): Declare new function.
6504 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6506 * infcmd.c (finish_backward): Turn internal error into normal error.
6508 2014-07-07 Pedro Alves <palves@redhat.com>
6511 * remote.c (async_handle_remote_sigint)
6512 (async_handle_remote_sigint_twice): Call
6513 gdb_call_async_signal_handler instead of
6514 mark_async_signal_handler.
6516 2014-07-07 Tom Tromey <tromey@redhat.com>
6518 * target-delegates.c: Rebuild.
6519 * target.c (target_info_record): Remove.
6520 * record.c (info_record_command): Unconditionally call
6522 * target.h (struct target_ops) <to_info_record>: Use
6523 TARGET_DEFAULT_IGNORE.
6524 (target_info_record): Remove.
6526 2014-07-07 Tom Tromey <tromey@redhat.com>
6528 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6529 TARGET_DEFAULT_NORETURN.
6530 * target.c (generic_tls_error): New function.
6531 (target_translate_tls_address): Don't search target stack.
6532 * target-delegates.c: Rebuild.
6533 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6535 * linux-thread-db.c (thread_db_get_thread_local_address):
6536 Unconditionally call beneath target.
6538 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6540 * cli/cli-logging.c (pop_output_files): Assign targerr to
6543 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6545 * MAINTAINERS (Write After Approval): Update my email address.
6547 2014-07-02 Gary Benson <gbenson@redhat.com>
6549 * proc-service.c (ps_xfer_memory): Update comment.
6550 (ps_pstop): Remove unused function.
6551 (ps_pcontinue): Likewise.
6552 (ps_lstop): Likewise.
6553 (ps_lcontinue): Likewise.
6554 (ps_lgetxregsize): Likewise.
6555 (ps_lgetxregs): Likewise.
6556 (ps_lsetxregs): Likewise.
6557 (ps_plog): Likewise.
6558 (ps_ptread): Likewise.
6559 (ps_ptwrite): Likewise.
6561 2014-07-01 Mark Wielaard <mjw@redhat.com>
6563 * dwarf2read.c (add_array_cv_type): New function.
6564 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6565 (read_tag_volatile_type): Likewise.
6567 2014-07-01 Tom Tromey <tromey@redhat.com>
6569 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6570 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6571 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6572 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6573 * command.h (cmd_cfunc_ftype): Move earlier.
6574 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6575 (add_com, add_info): Use cmd_cfunc_ftype.
6577 2014-06-30 Tom Tromey <tromey@redhat.com>
6579 * symtab.c (operator_chars): Make parameters and return type
6581 (file_matches): Make "files" const.
6582 (struct search_symbols_data) <files>: Now const.
6583 (search_symbols): Make "regexp" and "files" parameters const.
6585 (symtab_symbol_info): Remove cast.
6586 (rbreak_command): Update.
6587 * symtab.h (search_symbols): Update.
6589 2014-06-27 Yao Qi <yao@codesourcery.com>
6591 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6592 Change parameter type to 'struct thread_info *'. Caller
6594 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6596 * dummy-frame.c (struct dummy_frame_id): New.
6597 (dummy_frame_id_eq): New function.
6598 (struct dummy_frame) <id>: Change its type to 'struct
6600 (dummy_frame_push): Add parameter ptid and save it in
6602 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6604 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6606 (lookup_dummy_frame): Change parameter type to 'struct
6607 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6608 instead of frame_id_eq.
6609 (dummy_frame_pop): Add parameter ptid. Callers updated.
6610 Update comments. Compose dummy_frame_id and pass it to
6612 (dummy_frame_discard): Add parameter ptid.
6613 (dummy_frame_sniffer): Compose dummy_frame_id and call
6614 dummy_frame_id_eq instead of frame_id_eq.
6615 (fprint_dummy_frames): Print ptid.
6616 * dummy-frame.h: Remove comments.
6617 (dummy_frame_push): Add ptid in declaration.
6618 (dummy_frame_pop, dummy_frame_discard): Likewise.
6620 2014-06-26 Tom Tromey <tromey@redhat.com>
6622 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6623 * command.h (error_no_arg): Update.
6625 2014-06-26 Tom Tromey <tromey@redhat.com>
6627 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6628 (do_show_command): Make "arg" const.
6629 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6631 2014-06-26 Tom Tromey <tromey@redhat.com>
6633 * record-full.c (record_full_get_bookmark): Make "args" const.
6634 (record_full_goto_bookmark): Make "raw_bookmark" const.
6635 * record.c (record_goto): New function.
6636 (cmd_record_goto): Use it. Now static.
6637 * record.h (record_goto): Declare.
6638 (cmd_record_goto): Remove declaration.
6639 * target-delegates.c: Rebuild.
6640 * target.h (struct target_ops) <to_get_bookmark,
6641 to_goto_bookmark>: Make parameter const.
6643 2014-06-26 Tom Tromey <tromey@redhat.com>
6645 * defs.h (generic_load): Update.
6646 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6647 * monitor.c (monitor_load): Make "args" const.
6648 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6649 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6651 (mips_load): Make "file" const.
6652 * remote-sim.c (gdbsim_load): Make "args" const.
6653 * remote.c (remote_load): Make "name" const.
6654 * symfile.c (generic_load): Make "args" const.
6655 * target-delegates.c: Rebuild.
6656 * target.c (target_load): Make "arg" const.
6657 (debug_to_load): Make "args" const.
6658 * target.h (struct target_ops) <to_load>: Make parameter const.
6659 (target_load): Update.
6661 2014-06-26 Tom Tromey <tromey@redhat.com>
6664 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6665 (dwarf2_physname, read_partial_die)
6666 (guess_partial_die_structure_name, fixup_partial_die)
6667 (guess_full_die_structure_name, anonymous_struct_prefix)
6668 (dwarf2_name): Use per-BFD obstack.
6670 2014-06-26 Yao Qi <yao@codesourcery.com>
6672 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6673 dummyframe and this_id into inner block below.
6675 2014-06-26 Yao Qi <yao@codesourcery.com>
6677 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6678 with "signal_pass[0]" in the initialization of signal_pass.
6680 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6682 * record-btrace.c (record_btrace_generating_corefile)
6683 (record_btrace_prepare_to_generate_core)
6684 (record_btrace_done_generating_core): New.
6685 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6686 (record_btrace_store_registers, record_btrace_prepare_to_store):
6687 Forward request when generating a core file.
6688 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6689 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6690 to_done_generating_core.
6692 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6694 * target.h (target_ops) <to_prepare_to_generate_core>
6695 <to_done_generating_core>: New.
6696 (target_prepare_to_generate_core, target_done_generating_core): New.
6697 * target.c (target_prepare_to_generate_core)
6698 (target_done_generating_core): New.
6699 * target-delegates.c: Regenerate.
6700 * gcore.c: (write_gcore_file): Rename to ...
6701 (write_gcore_file_1): ...this.
6702 (write_gcore_file): Call target_prepare_to_generate_core
6703 and target_done_generating_core.
6705 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6707 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6708 * gcore.c (write_gcore_file): Free memory returned from
6709 make_corefile_notes.
6710 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6711 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6713 2014-06-24 Yao Qi <yao@codesourcery.com>
6715 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6716 (arm_linux_init_abi): Set skip_trampoline_code with
6717 gdbarch_skip_trampoline_code instead of
6718 find_solib_trampoline_target.
6720 2014-06-24 Yao Qi <yao@codesourcery.com>
6722 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6723 arm_skip_bx_reg returns non-zero.
6725 2014-06-24 Yao Qi <yao@codesourcery.com>
6727 * arm-tdep.c (arm_skip_bx_reg): New function.
6728 (arm_skip_stub): Call arm_skip_bx_reg.
6730 2014-06-23 Don Breazeal <donb@codesourcery.com>
6732 * MAINTAINERS: Add myself as write-after-approval maintainer.
6734 2014-06-23 Pedro Alves <palves@redhat.com>
6736 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6737 DR_CONTROL before setting DR0..DR3.
6738 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6739 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6740 bits of DR_CONTROL related to the debug register slot being
6741 disabled. If all slots are vacant, clear local slowdown as well,
6742 and assert DR_CONTROL is 0.
6744 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6746 * python/lib/gdb/command/xmethods.py
6747 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6748 current progspace only if the string "progspace" matches LOCUS_RE.
6750 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 Fix --with-system-readline with readline-6.3 patch 5.
6753 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6754 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6757 2014-06-20 Tom Tromey <tromey@redhat.com>
6759 * dwarf2read.c (dw2_get_real_path): Use correct type in
6761 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6763 2014-06-20 Gary Benson <gbenson@redhat.com>
6765 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6766 * common/glibc_thread_db.h: Likewise.
6767 * common/i386-cpuid.h: Likewise.
6768 * common/i386-gcc-cpuid.h: Likewise.
6769 * common/linux-btrace.h: Likewise.
6770 * common/linux-osdata.h: Likewise.
6771 * common/linux-procfs.h: Likewise.
6772 * common/linux-ptrace.h: Likewise.
6773 * common/mips-linux-watch.h: Likewise.
6774 * common/linux-btrace.c: Moved to nat.
6775 * common/linux-osdata.c: Likewise.
6776 * common/linux-procfs.c: Likewise.
6777 * common/linux-ptrace.c: Likewise.
6778 * common/mips-linux-watch.c: Likewise.
6779 * nat/gdb_thread_db.h: Moved from common.
6780 * nat/glibc_thread_db.h: Likewise.
6781 * nat/i386-cpuid.h: Likewise.
6782 * nat/i386-gcc-cpuid.h: Likewise.
6783 * nat/linux-btrace.c: Likewise.
6784 * nat/linux-btrace.h: Likewise.
6785 * nat/linux-osdata.c: Likewise.
6786 * nat/linux-osdata.h: Likewise.
6787 * nat/linux-procfs.c: Likewise.
6788 * nat/linux-procfs.h: Likewise.
6789 * nat/linux-ptrace.c: Likewise.
6790 * nat/linux-ptrace.h: Likewise.
6791 * nat/mips-linux-watch.c: Likewise.
6792 * nat/mips-linux-watch.h: Likewise.
6793 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6794 (object file files): Reordered.
6795 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6796 of glibc_thread_db.h.
6798 2014-06-20 Gary Benson <gbenson@redhat.com>
6800 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6801 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6802 (i386_dr_low): Likewise.
6803 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6804 (i386_dr_low_set_addr): Likewise.
6805 (i386_dr_low_get_addr): Likewise.
6806 (i386_dr_low_can_set_control): Likewise.
6807 (i386_dr_low_set_control): Likewise.
6808 (i386_dr_low_get_control): Likewise.
6809 (i386_dr_low_get_status): Likewise.
6810 (i386_get_debug_register_length): Likewise.
6811 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6812 (i386_dr_low): Likewise.
6813 * nat/i386-dregs.c (i386-low.h): Remove include.
6814 (i386-nat.h): Likewise.
6815 (nat/i386-dregs.h): New include.
6816 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6817 (i386_dr_low_set_addr): Likewise.
6818 (i386_dr_low_get_addr): Likewise.
6819 (i386_dr_low_can_set_control): Likewise.
6820 (i386_dr_low_set_control): Likewise.
6821 (i386_dr_low_get_control): Likewise.
6822 (i386_dr_low_get_status): Likewise.
6823 (i386_get_debug_register_length): Likewise.
6824 (debug_hw_points): Likewise.
6826 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6828 * Makefile.in (SFILES): Add d-exp.y.
6829 (YYFILES): Add d-exp.c.
6830 (YYOBJ): Add d-exp.o.
6831 (local-maintainer-clean): Delete d-exp.c.
6832 * d-exp.y: New file.
6833 * d-lang.h (d_parse): New declaration.
6834 (d_error): New declaration.
6835 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6836 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6837 PREC_ORDER operators.
6838 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6840 2014-06-19 Yao Qi <yao@codesourcery.com>
6842 * gdbthread.h (any_running): Remove the declaration.
6843 * thread.c (any_running): Remove.
6845 2014-06-19 Yao Qi <yao@codesourcery.com>
6847 * gdbthread.h (struct thread_info) <state>: Change its type to
6848 'enum thread_state'. Update comments.
6850 2014-06-19 Pedro Alves <palves@redhat.com>
6852 * gdbthread.h (ALL_THREADS): Delete.
6853 (ALL_NON_EXITED_THREADS): New macro.
6854 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6855 instead of ALL_THREADS.
6856 * infrun.c (find_thread_needs_step_over)
6857 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6858 instead of ALL_THREADS.
6859 * record-btrace.c (record_btrace_open)
6860 (record_btrace_stop_recording, record_btrace_close)
6861 (record_btrace_is_replaying, record_btrace_resume)
6862 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6863 * remote.c (append_pending_thread_resumptions): Likewise.
6864 * thread.c (thread_apply_all_command): Likewise.
6866 2014-06-19 Gary Benson <gbenson@redhat.com>
6868 * i386-nat.c (i386_stopped_by_watchpoint):
6869 Use i386_dr_stopped_by_watchpoint.
6870 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6871 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6873 2014-06-19 Gary Benson <gbenson@redhat.com>
6875 * nat/i386-dregs.c: New file.
6876 * Makefile.in (i386-dregs.o): New rule.
6877 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6878 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6879 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6880 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6881 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6882 * config/i386/go32.mh (NATDEPFILES): Likewise.
6883 * config/i386/linux.mh (NATDEPFILES): Likewise.
6884 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6885 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6886 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6887 * i386-nat.h (debug_hw_points): New declaration.
6888 * i386-nat.c (breakpoint.h): Remove include.
6889 (command.h): Likewise.
6890 (target.h): Likewise.
6891 (gdb_assert.h): Likewise.
6892 (debug_hw_points): Made nonstatic.
6893 (debug_printf): Now in i386-dregs.c.
6894 (TARGET_HAS_DR_LEN_8): Likewise.
6895 (DR_CONTROL_SHIFT): Likewise.
6896 (DR_CONTROL_SIZE): Likewise.
6897 (DR_RW_EXECUTE): Likewise.
6898 (DR_RW_WRITE): Likewise.
6899 (DR_RW_READ): Likewise.
6900 (DR_RW_IORW): Likewise.
6901 (DR_LEN_1): Likewise.
6902 (DR_LEN_2): Likewise.
6903 (DR_LEN_4): Likewise.
6904 (DR_LEN_8): Likewise.
6905 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6906 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6907 (DR_ENABLE_SIZE): Likewise.
6908 (DR_LOCAL_SLOWDOWN): Likewise.
6909 (DR_GLOBAL_SLOWDOWN): Likewise.
6910 (DR_CONTROL_RESERVED): Likewise.
6911 (I386_DR_CONTROL_MASK): Likewise.
6912 (I386_DR_VACANT): Likewise.
6913 (I386_DR_LOCAL_ENABLE): Likewise.
6914 (I386_DR_GLOBAL_ENABLE): Likewise.
6915 (I386_DR_DISABLE): Likewise.
6916 (I386_DR_SET_RW_LEN): Likewise.
6917 (I386_DR_GET_RW_LEN): Likewise.
6918 (I386_DR_WATCH_HIT): Likewise.
6919 (i386_wp_op_t): Likewise.
6920 (i386_show_dr): Likewise.
6921 (i386_length_and_rw_bits): Likewise.
6922 (i386_insert_aligned_watchpoint): Likewise.
6923 (i386_remove_aligned_watchpoint): Likewise.
6924 (i386_handle_nonaligned_watchpoint): Likewise.
6925 (i386_update_inferior_debug_regs): Likewise.
6926 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6927 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6928 (i386_region_ok_for_watchpoint):
6929 Use i386_dr_region_ok_for_watchpoint.
6930 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6932 2014-06-19 Gary Benson <gbenson@redhat.com>
6934 * i386-nat.c (i386_insert_hw_breakpoint): Use
6935 i386_insert_watchpoint.
6936 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6938 2014-06-19 Gary Benson <gbenson@redhat.com>
6940 * i386-nat.c (i386_dr_show): Renamed to
6941 i386_show_dr and made static. All uses updated.
6942 (i386_dr_length_and_rw_bits): Renamed to
6943 i386_length_and_rw_bits and made static.
6945 (i386_dr_insert_aligned_watchpoint): Renamed to
6946 i386_insert_aligned_watchpoint and made static.
6948 (i386_dr_remove_aligned_watchpoint): Renamed to
6949 i386_remove_aligned_watchpoint and made static.
6951 (i386_dr_update_inferior_debug_regs): Renamed to
6952 i386_update_inferior_debug_regs and made static.
6954 * nat/i386-dregs.h (i386_dr_show): Removed.
6955 (i386_dr_length_and_rw_bits): Likewise.
6956 (i386_dr_insert_aligned_watchpoint): Likewise.
6957 (i386_dr_remove_aligned_watchpoint): Likewise.
6958 (i386_dr_update_inferior_debug_regs): Likewise.
6960 2014-06-19 Gary Benson <gbenson@redhat.com>
6962 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6963 * configure: Regenerate.
6964 * config.in: Likewise.
6965 * main.c (signal.h): New include.
6966 (setup_alternate_signal_stack): New function.
6967 (captured_main): Call the above.
6968 * cp-support.c (signal.h): New include.
6969 (catch_demangler_crashes): New flag.
6970 (SIGJMP_BUF): New define.
6971 (SIGSETJMP): Likewise.
6972 (SIGLONGJMP): Likewise.
6973 (gdb_demangle_jmp_buf): New static global.
6974 (gdb_demangle_attempt_core_dump): Likewise.
6975 (gdb_demangle_signal_handler): New function.
6976 (gdb_demangle): If catch_demangler_crashes is set, install the
6977 above signal handler before calling bfd_demangle, and restore
6978 the original signal handler afterwards. Display the offending
6979 symbol and call demangler_warning the first time a segmentation
6981 (_initialize_cp_support): New maint set/show command.
6983 2014-06-19 Gary Benson <gbenson@redhat.com>
6985 * utils.h (resource_limit_kind): New enum.
6986 (can_dump_core): New declaration.
6987 (warn_cant_dump_core): Likewise.
6988 (dump_core): Likewise.
6989 * utils.c (dump_core): Made nonstatic. Added new
6990 parameter "limit_kind".
6991 (can_dump_core): Made nonstatic. Moved printing code to...
6992 (warn_cant_dump_core): New function.
6993 (can_dump_core_warn): Likewise.
6994 (internal_vproblem): Replace calls to can_dump_core with
6995 calls to can_dump_core_warn. Supply new argument to each.
6997 2014-06-19 Gary Benson <gbenson@redhat.com>
6999 * utils.h (demangler_vwarning): New declaration.
7000 (demangler_warning): Likewise.
7001 * utils.c (struct internal_problem)
7002 <user_settable_should_quit>: New field.
7003 <user_settable_should_dump_core>: Likewise
7004 (internal_error_problem): Add values for above new fields.
7005 (internal_warning_problem): Likewise.
7006 (demangler_warning_problem): New static global.
7007 (demangler_vwarning): New function.
7008 (demangler_warning): Likewise.
7009 (add_internal_problem_command): Selectively add commands.
7010 (_initialize_utils): New internal problem command.
7011 * maint.c (maintenance_demangler_warning): New function.
7012 (_initialize_maint_cmds): New command.
7014 2014-06-18 Tom Tromey <tromey@redhat.com>
7016 * f-valprint.c (info_common_command_for_block): Update.
7017 * symtab.h (struct general_symbol_info) <common_block>: Now
7020 2014-06-18 Tom Tromey <tromey@redhat.com>
7022 * symtab.h (struct symtab) <blockvector>: Now const.
7023 * ada-lang.c (ada_add_global_exceptions): Update.
7024 * buildsym.c (augment_type_symtab): Update.
7025 * dwarf2read.c (dw2_lookup_symbol): Update.
7026 * jit.c (finalize_symtab): Update.
7027 * jv-lang.c (add_class_symtab_symbol): Update.
7028 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7030 * objfiles.c (objfile_relocate1): Update.
7031 * psymtab.c (lookup_symbol_aux_psymtabs)
7032 (maintenance_check_psymtabs): Update.
7033 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7035 * spu-tdep.c (spu_catch_start): Update.
7036 * symmisc.c (dump_symtab_1): Update.
7037 * symtab.c (lookup_global_symbol_from_objfile)
7038 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7039 (basic_lookup_transparent_type_quick)
7040 (basic_lookup_transparent_type, find_pc_sect_symtab)
7041 (find_pc_sect_line, search_symbols): Update.
7042 * block.c (find_block_in_blockvector): Make "bl" const.
7043 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7045 (blockvector_contains_pc): Make "bv" const.
7046 (block_for_pc_sect): Update.
7047 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7048 (blockvector_contains_pc): Update.
7049 * breakpoint.c (resolve_sal_pc): Update.
7050 * inline-frame.c (block_starting_point_at): Update.
7052 2014-06-18 Tom Tromey <tromey@redhat.com>
7054 * completer.c (complete_line): Make "line_buffer" const.
7055 * completer.h (complete_line): Update.
7057 2014-06-18 Tom Tromey <tromey@redhat.com>
7059 * symtab.c (add_macro_name): Remove unneeded cast.
7061 2014-06-18 Tom Tromey <tromey@redhat.com>
7063 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7064 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7066 2014-06-18 Tom Tromey <tromey@redhat.com>
7068 * probe.c (info_probes_for_ops): Make "arg" const.
7069 * probe.h (info_probes_for_ops): Update.
7071 2014-06-18 Tom Tromey <tromey@redhat.com>
7073 * varobj.c (varobj_create): Update.
7074 * valops.c (value_of_this): Update.
7075 * tracepoint.c (add_local_symbols, scope_info): Update.
7076 * symtab.h (struct general_symbol_info) <block>: Now const.
7077 * symtab.c (skip_prologue_sal)
7078 (default_make_symbol_completion_list_break_on)
7079 (skip_prologue_using_sal): Update.
7080 * stack.h (iterate_over_block_locals)
7081 (iterate_over_block_local_vars): Update.
7082 * stack.c (print_frame_args): Update.
7083 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7085 (get_selected_block): Make return type const.
7086 * python/py-frame.c (frapy_block): Update.
7087 * python/py-block.c (gdbpy_block_for_pc): Update.
7088 * p-exp.y (%union) <bval>: Now const.
7089 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7090 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7091 * m2-exp.y (%union) <bval>: Now const.
7092 * linespec.c (get_current_search_block): Make return type const.
7093 (create_sals_line_offset, find_label_symbols): Update.
7094 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7096 (block_starting_point_at): Make "block" const.
7097 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7098 (check_exception_resume): Update.
7099 * guile/scm-frame.c (gdbscm_frame_block): Update.
7100 * guile/scm-block.c (gdbscm_lookup_block): Update.
7101 * frame.h (get_frame_block): Update.
7102 (get_selected_block): Make return type const.
7103 * frame.c (frame_id_inner): Update.
7104 * f-valprint.c (info_common_command_for_block)
7105 (info_common_command): Update.
7106 * dwarf2loc.c (dwarf2_find_location_expression)
7107 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7108 (locexpr_describe_location_piece): Update.
7109 * c-exp.y (%union) <bval>: Now const.
7110 * breakpoint.c (resolve_sal_pc): Update.
7111 * blockframe.c (get_frame_block):Make return type const.
7112 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7113 (block_innermost_frame): Update.
7114 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7115 (block_for_pc, block_for_pc_sect): Update.
7116 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7118 (block_for_pc_sect, block_for_pc): Make return type const.
7119 * ax-gdb.c (gen_expr): Update.
7120 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7121 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7122 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7123 (ada_read_var_value): Update.
7124 * ada-exp.y (struct name_info) <block>: Now const.
7126 (block_lookup): Constify.
7128 2014-06-18 Gary Benson <gbenson@redhat.com>
7130 * nat/i386-dregs.h: New file.
7131 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7132 * i386-nat.h (i386-dregs.h): New include.
7133 (DR_FIRSTADDR): Now in i386-dregs.h.
7134 (DR_LASTADDR): Likewise.
7135 (DR_NADDR): Likewise.
7136 (DR_STATUS): Likewise.
7137 (DR_CONTROL): Likewise.
7138 (i386_debug_reg_state): Likewise.
7139 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7141 2014-06-18 Don Breazeal <donb@codesourcery.com>
7143 * breakpoint.c (set_longjmp_breakpoint): Call
7144 momentary_breakpoint_from_master with additional argument.
7145 (set_longjmp_breakpoint_for_call_dummy): Call
7146 momentary_breakpoint_from_master with additional argument.
7147 (set_std_terminate_breakpoint): Call
7148 momentary_breakpoint_from_master with additional argument.
7149 (momentary_breakpoint_from_master): Add argument to function
7150 definition and use it to initialize structure member flag.
7151 (clone_momentary_breakpoint): Call
7152 momentary_breakpoint_from_master with additional argument.
7153 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7154 member flags set in momentary_breakpoint_from_master.
7156 2014-06-18 Gary Benson <gbenson@redhat.com>
7158 * i386-nat.c (i386_show_dr): Renamed to
7159 i386_dr_show and made nonstatic. All uses updated.
7160 (i386_length_and_rw_bits): Renamed to
7161 i386_dr_length_and_rw_bits and made nonstatic.
7163 (i386_insert_aligned_watchpoint): Renamed to
7164 i386_dr_insert_aligned_watchpoint and made nonstatic.
7166 (i386_remove_aligned_watchpoint): Renamed to
7167 i386_dr_remove_aligned_watchpoint and made nonstatic.
7169 (i386_update_inferior_debug_regs): Renamed to
7170 i386_dr_update_inferior_debug_regs and made nonstatic.
7173 2014-06-18 Gary Benson <gbenson@redhat.com>
7175 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7176 (i386_dr_low_can_set_control): Likewise.
7177 (i386_dr_low_set_addr): Likewise.
7178 (i386_dr_low_set_control): Likewise.
7179 (i386_dr_low_get_addr): Likewise.
7180 (i386_dr_low_get_status): Likewise.
7181 (i386_dr_low_get_control): Likewise.
7182 (i386_insert_aligned_watchpoint): Use new macros.
7183 (i386_update_inferior_debug_regs): Likewise.
7184 (i386_stopped_data_address): Likewise.
7186 2014-06-18 Gary Benson <gbenson@redhat.com>
7188 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7189 New parameter. All uses updated.
7191 2014-06-18 Gary Benson <gbenson@redhat.com>
7193 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7196 2014-06-18 Gary Benson <gbenson@redhat.com>
7198 * i386-nat.c (debug_printf): New macro.
7199 (i386_get_debug_register_length): Likewise.
7200 (TARGET_HAS_DR_LEN_8): Use above macro.
7201 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7202 and printf_unfiltered. Use phex to format values.
7204 2014-06-18 Gary Benson <gbenson@redhat.com>
7206 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7209 2014-06-18 Gary Benson <gbenson@redhat.com>
7211 * i386-nat.c: Comment changes.
7213 2014-06-18 Gary Benson <gbenson@redhat.com>
7215 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7217 2014-06-18 Gary Benson <gbenson@redhat.com>
7219 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7220 (i386_insert_aligned_watchpoint): Likewise.
7221 (i386_remove_aligned_watchpoint): Likewise.
7222 (i386_handle_nonaligned_watchpoint): Likewise.
7224 2014-06-18 Gary Benson <gbenson@redhat.com>
7226 * i386-nat.c: Whitespace changes.
7228 2014-06-17 Samuel Bronson <naesten@gmail.com>
7230 * MAINTAINERS: Update Roland McGrath's email address.
7231 Thanks to Sergio Durigan Junior for pointing out that he left
7232 Red Hat a while ago, and giving me a current address.
7234 2014-06-17 Tom Tromey <tromey@redhat.com>
7236 * utils.h (savestring): Remove declaration.
7238 2014-06-17 Tom Tromey <tromey@redhat.com>
7240 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7242 2014-06-16 Keith Seitz <keiths@redhat.com>
7245 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7246 to update the varobj if inferior_ptid is null_ptid.
7248 2014-06-16 Tom Tromey <tromey@redhat.com>
7250 * target.h (struct target_ops) <to_info_proc>: Make parameter
7252 (target_info_proc): Update.
7253 * target.c (target_info_proc): Make "args" const.
7254 * procfs.c (procfs_info_proc): Update.
7255 * linux-tdep.c (linux_info_proc): Update.
7256 (linux_core_info_proc_mappings): Make "args" const.
7257 (linux_core_info_proc): Update.
7258 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7259 * gdbarch.c: Rebuild.
7260 * gdbarch.h: Rebuild.
7261 * corelow.c (core_info_proc): Update.
7263 2014-06-16 Tom Tromey <tromey@redhat.com>
7265 * target.h (struct target_ops) <to_disconnect>: Make parameter
7267 (target_disconnect): Update.
7268 * target.c (target_disconnect): Make "args" const.
7269 * target-delegates.c: Rebuild.
7270 * remote.c (remote_disconnect): Update.
7271 * record.h (record_disconnect): Update.
7272 * record.c (record_disconnect): Update.
7273 * inf-child.c (inf_child_disconnect): Update.
7275 2014-06-16 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7278 * target.c (debug_to_rcmd, default_rcmd): Update.
7279 * target-delegates.c: Rebuild.
7280 * remote.c (remote_rcmd): Update.
7281 * monitor.c (monitor_rcmd): Update.
7283 2014-06-16 Pedro Alves <palves@redhat.com>
7285 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7286 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7287 have OBJF_SHARED set.
7288 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7289 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7290 instead of OBJF_USERLOADED.
7291 * objfiles.h (OBJF_SHARED): Update comment.
7292 (userloaded_objfile_contains_address_p): Rename to ...
7293 (shared_objfile_contains_address_p): ... this, and update
7295 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7297 (remove_symbol_file_command): Skip objfiles that don't have
7300 2014-06-16 Tom Tromey <tromey@redhat.com>
7302 * minsyms.h (prim_record_minimal_symbol)
7303 (prim_record_minimal_symbol_and_info): Update comments.
7305 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7307 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7308 or --without-guile, according to how GDB was built.
7310 2014-06-13 Tom Tromey <tromey@redhat.com>
7312 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7314 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7316 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7318 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7319 help_list.Pass all_commands, not -1, to help_list.
7320 * cli/cli-dump.c (dump_command, append_command)
7321 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7322 (binary_dump_command, binary_append_command): Pass all_commands,
7323 not -1, to help_list.
7324 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7326 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7328 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7330 * top.c (set_history): Pass all_commands, not -1, to help_list.
7331 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7332 all_commands, not -1, to help_list.
7333 * symfile.c (overlay_command): Pass all_commands, not -1, to
7335 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7337 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7339 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7341 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7342 not -1, to help_list.
7343 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7344 not -1, to help_list.
7345 * maint.c (maintenance_command, maintenance_info_command)
7346 (maintenance_print_command, maintenance_set_cmd): Pass
7347 all_commands, not -1, to help_list.
7348 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7350 * language.c (set_check): Pass all_commands, not -1, to help_list.
7351 * infcmd.c (unset_command): Pass all_commands, not -1, to
7353 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7355 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7357 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7359 * breakpoint.c (save_command): Pass all_commands, not -1, to
7361 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7362 all_commands, not -1, to help_list.
7364 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7366 * regcache.c (struct register_to_invalidate): New structure.
7367 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7369 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7371 2014-06-12 Yao Qi <yao@codesourcery.com>
7373 * varobj.c (varobj_get_num_children): Call
7374 varobj_is_dynamic_p.
7375 (varobj_list_children): Likewise.
7376 (varobj_update): Likewise. Update comments.
7378 2014-06-12 Yao Qi <yao@codesourcery.com>
7380 * varobj.c (varobj_pretty_printed_p): Rename to ...
7381 (varobj_is_dynamic_p): ... this. New function.
7382 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7383 (varobj_is_dynamic_p): Declare.
7384 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7385 (mi_print_value_p, varobj_update_one): Likewise.
7387 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7388 Yao Qi <yao@codesourcery.com>
7390 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7391 (varobj_get_iterator): Wrap up code for pretty-printer by
7392 "#if HAVE_PYTHON" and "#endif".
7393 (update_dynamic_varobj_children): Likewise.
7395 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7396 Yao Qi <yao@codesourcery.com>
7398 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7399 gdb_python_initialized is false. Move some code from varobj.c.
7400 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7401 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7402 (struct varobj_item): Moved to varobj-iter.h".
7403 (varobj_clear_saved_item): New function.
7404 (update_dynamic_varobj_children): Move python-related code to
7406 (free_variable): Call varobj_clear_saved_item and
7409 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7410 Yao Qi <yao@codesourcery.com>
7412 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7413 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7414 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7415 (py-varobj.o): New rule.
7416 * python/py-varobj.c: New file.
7417 * python/python-internal.h (py_varobj_get_iterator): Declare.
7418 * varobj-iter.h: New file.
7419 * varobj.c: Include "varobj-iter.h"
7420 (struct varobj) <child_iter>: Change its type from "PyObject *"
7421 to "struct varobj_iter *".
7422 <saved_item>: Likewise.
7423 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7424 [HAVE_PYTHON] (varobj_get_iterator): New function.
7425 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7426 python-specific code to python/py-varobj.c.
7427 (install_visualizer): Call varobj_iter_delete instead of
7429 * varobj.h (varobj_ensure_python_env): Declare.
7431 2014-06-12 Yao Qi <yao@codesourcery.com>
7433 * varobj.c (struct varobj_item): New structure.
7434 (create_child_with_value): Update declaration.
7435 (varobj_add_child): Replace arguments 'name' and 'value' with
7436 'item'. All callers updated.
7437 (install_dynamic_child): Likewise.
7438 (update_dynamic_varobj_children): Likewise.
7439 (varobj_add_child): Likewise.
7440 (create_child_with_value): Likewise.
7442 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7444 * NEWS: Create a new section for the next release branch.
7445 Rename the section of the current branch, now that it has
7448 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7450 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7451 * version.in: Bump version to 7.8.50.DATE-cvs.
7453 2014-06-11 Pedro Alves <palves@redhat.com>
7456 * ser-mingw.c (net_windows_socket_check_pending): New function.
7457 (net_windows_select_thread): Ignore spurious wakeups. Use
7458 net_windows_socket_check_pending.
7459 (net_windows_wait_handle): Check for pending events with
7460 ioctlsocket, through net_windows_socket_check_pending, instead of
7461 checking the socket's event.
7463 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7465 * python/python-internal.h (gdb_PyObject_GetAttrString)
7466 (gdb_PyObject_HasAttrString): New inline function definitions.
7467 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7468 char * of the second argument to PyObject_GetAttrString.
7470 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7472 * serial.c (serial_write): Fix index of character to be printed
7473 in call to serial_logchar when serial debug traces are enabled.
7475 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7477 * gdbtypes (resolve_dynamic_range): Add function description.
7479 2014-06-09 Pedro Alves <palves@redhat.com>
7481 * linux-nat.c (linux_child_follow_fork): Initialize status with
7482 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7483 inner block. Only pass the signal to PTRACE_DETACH if in pass
7486 2014-06-09 Gary Benson <gbenson@redhat.com>
7488 * common/signals.c (gdb_signal_from_host): Reorder to separate
7489 the always-available ANSI-standard signals from the signals that
7491 (do_gdb_signal_to_host): Likewise.
7492 * proc-events.c (signal_table): Likewise.
7494 2014-06-08 Hui Zhu <hui@codesourcery.com>
7496 * common/linux-ptrace.c (linux_disable_event_reporting): New
7498 * common/linux-ptrace.h (linux_disable_event_reporting): New
7500 * linux-nat.c (linux_child_follow_fork): Do a single step before
7503 2014-06-07 Keith Seitz <keiths@redhat.com>
7507 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7508 from symbol_matches_domain in symtab.c. All local callers
7509 of symbol_matches_domain updated.
7510 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7511 search STRUCT_DOMAIN.
7512 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7513 independently. standard_lookup will do that automatically.
7514 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7515 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7516 (cp_lookup_symbol_in_namespace): Likewise.
7517 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7518 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7519 may return a STRUCT_DOMAIN match.
7520 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7521 * cp-support.c: Include language.h.
7522 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7524 * psymtab.c (match_partial_symbol): Compare the requested
7525 domain with the symbol's domain directly.
7526 (lookup_partial_symbol): Likewise.
7527 * symtab.c (lookup_symbol_in_language): Explain when/why
7528 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7529 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7530 appropriate languages.
7531 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7532 and moved to ada-lang.c
7533 (lookup_block_symbol): Explain that this function only returns
7534 symbol matching the requested DOMAIN.
7535 Compare the requested domain with the symbol's domain directly.
7536 (iterate_over_symbols): Compare the requested domain with the
7537 symbol's domain directly.
7538 * symtab.h (symbol_matches_domain): Remove.
7540 2014-06-06 Doug Evans <xdje42@gmail.com>
7542 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7543 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7544 (gdbscm_guile_version_is_at_least): Declare.
7545 (gdbscm_scm_string_to_int): Declare.
7546 * guile/guile.c (gdbscm_guile_major_version): New global.
7547 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7548 (guile_datadir): New static global.
7549 (gdbscm_guile_data_directory): New function.
7550 (initialize_scheme_side): Update.
7551 (misc_guile_functions): Add guile-data-directory.
7552 (initialize_gdb_module): Fetch guile version number.
7553 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7554 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7555 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7556 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7558 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7559 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7560 * guile/scm-value.c (gdbscm_value_to_string): Only call
7561 scm_port_conversion_strategy if Guile version >= 2.0.6.
7563 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7565 * main.c (print_gdb_help): Add -q and --silent.
7567 2014-06-06 Gary Benson <gbenson@redhat.com>
7569 * common/signals.c: Remove preprocessor conditionals for
7570 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7571 SIGSEGV and SIGTERM.
7572 * proc-events.c: Likewise.
7574 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7576 * symfile.c (symfile_free_objfile): Remove restriction to
7578 * symfile-mem.c (symbol_file_add_from_memory): Call
7579 add_target_sections_of_objfile.
7581 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7583 * guile/scm-value.c (gdbscm_history_append_x): Use
7584 'vlscm_get_value_smob_arg_unsafe' instead of
7585 'vlscm_scm_to_value'.
7587 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7590 * utils.c (printchar): Don't escape at all if quoter is NUL.
7591 Update function documentation to clarify effect of parameter
7593 * remote.c (escape_buffer): Pass '\\' as the quoter to
7594 fputstrn_unfiltered.
7595 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7596 generate the output.
7597 (mi_solib_unloaded): Same.
7599 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7601 * development.sh: Delete.
7602 * Makefile.in (config.status): Adjust dependency on development.sh.
7603 * configure.ac: Adjust development.sh source call.
7604 * configure: Regenerate.
7606 2014-06-04 Doug Evans <xdje42@gmail.com>
7608 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7609 is_scheme_bkpt, spec.
7610 (bpscm_make_breakpoint_smob): Initialize new members.
7611 (gdbscm_create_breakpoint_x): Split into two ...
7612 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7613 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7614 (scheme_function breakpoint_functions): Update.
7615 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7616 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7617 register-breakpoint!.
7619 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7622 * mem-break.c (z_type_supported): Return zero if
7623 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7625 2014-06-04 Tom Tromey <tromey@redhat.com>
7627 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7628 value_from_contents_and_address_unresolved.
7629 (ada_template_to_fixed_record_type_1): Likewise.
7630 (ada_which_variant_applies): Likewise.
7631 * value.h (value_from_contents_and_address_unresolved): Declare.
7632 * value.c (value_from_contents_and_address_unresolved): New
7634 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7635 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7636 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7638 2014-06-04 Tom Tromey <tromey@redhat.com>
7640 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7642 2014-06-04 Tom Tromey <tromey@redhat.com>
7644 * procfs.c (procfs_attach): Make "args" const.
7645 * windows-nat.c (windows_attach): Make "args" const.
7646 * nto-procfs.c (procfs_attach): Make "args" const.
7647 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7648 * go32-nat.c (go32_attach): Make "args" const.
7649 * gnu-nat.c (gnu_attach): Make "args" const.
7650 * darwin-nat.c (darwin_attach): Make "args" const.
7651 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7652 * linux-nat.c (linux_nat_attach): Make "args" const.
7653 * remote.c (extended_remote_attach_1, extended_remote_attach):
7655 * target.h (struct target_ops) <to_attach>: Make "args" const.
7656 (find_default_attach): Likewise.
7657 * utils.c (parse_pid_to_attach): Make "args" const.
7658 * utils.h (parse_pid_to_attach): Update.
7660 2014-06-04 Tom Tromey <tromey@redhat.com>
7662 * target-delegates.c: Rebuild.
7663 * target.c (default_thread_address_space): New function.
7664 (target_thread_address_space): Simplify.
7665 * target.h (struct target_ops) <to_thread_address_space>: Add
7666 TARGET_DEFAULT_FUNC.
7668 2014-06-04 Doug Evans <xdje42@gmail.com>
7670 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7672 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7674 * record-btrace.c: Include event-loop.h and inf-loop.h.
7675 (record_btrace_resume_exec_dir)
7676 (record_btrace_async_inferior_event_handler)
7677 (record_btrace_handle_async_inferior_event): New.
7678 (record_btrace_open): Create async event handler.
7679 (record_btrace_close): Delete async event handler.
7680 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7681 Mark async event handler.
7682 (record_btrace_execution_direction): New.
7683 (init_record_btrace_ops): Initialize to_execution_direction.
7685 2014-06-03 Doug Evans <xdje42@gmail.com>
7687 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7688 (gdbscm_make_parameter): Ditto.
7690 2014-06-03 Doug Evans <dje@google.com>
7692 * exec.c (exec_close_1): Call clear_section_table instead of
7693 resize_section_table.
7694 (clear_section_table): New function.
7695 (resize_section_table): Make static. Rename arg num_added to
7697 * exec.h (clear_section_table): Declare.
7698 (resize_section_table): Delete.
7699 * progspace.c (release_program_space): Call clear_section_table
7700 instead of resize_section_table.
7702 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7704 * NEWS (Python Scripting): Add entry about the new xmethods
7707 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7709 * python/py-xmethods.c: New file.
7710 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7711 (objfpy_dealloc): XDECREF on the new xmethods field.
7712 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7714 (objfpy_get_xmethods): New function.
7715 (objfile_getset): New entry 'xmethods'.
7716 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7717 (pspy_dealloc): XDECREF on the new xmethods field.
7718 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7720 (pspy_get_xmethods): New function.
7721 (pspace_getset): New entry 'xmethods'.
7722 * python/python-internal.h: Add declarations for new functions.
7723 * python/python.c (_initialize_python): Invoke
7724 gdbpy_initialize_xmethods.
7725 * python/lib/gdb/__init__.py (xmethods): New
7727 * python/lib/gdb/xmethod.py: New file.
7728 * python/lib/gdb/command/xmethods.py: New file.
7730 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7732 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7733 best match method returned by find_overload_match is an xmethod.
7734 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7735 the best matching operator returned by find_overload_match is an
7737 * valops.c: #include "extension.h".
7738 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7739 Return void. The list of matching source methods is returned in
7740 "fn_list" and a vector of matching debug method workers is
7741 returned in "xm_worker_vec". Update all callers.
7742 (value_find_oload_method_list): Likewise.
7743 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7744 non-NULL, then the index of the best matching method in this
7745 vector is returned. Update all callers.
7746 (find_overload_match): Include xmethods while performing overload
7749 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7751 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7752 * extension-priv.h (struct extension_language_ops): Add the
7754 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7755 get_matching_xmethod_workers, get_xmethod_argtypes,
7756 invoke_xmethod, free_xmethod_worker,
7757 free_xmethod_worker_vec): New functions.
7758 * extension.h: #include "common/vec.h".
7759 New function declarations.
7760 (struct xmethod_worker): New struct.
7761 (VEC (xmethod_worker_ptr)): New vector type.
7762 (xmethod_worker_ptr): New typedef.
7763 (xmethod_worker_vec): Likewise.
7764 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7766 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7767 (struct builtin_type): New field "xmethod".
7768 * valarith.c (value_ptradd): Assert that the value argument is not
7770 * valops.c (value_must_coerce_to_target): Return 0 for
7771 lval_xcallable values.
7772 * value.c (struct value): New field XM_WORKER in the field
7774 (value_address, value_raw_address): Return 0 for lval_xcallable
7776 (set_value_address): Assert that the value is not an
7778 (value_free): Free the associated xmethod worker when freeing
7779 lval_xcallable values.
7780 (set_value_component_location): Assert that the WHOLE value is not
7782 (value_of_xmethod, call_xmethod): New functions.
7783 * value.h: Declare "struct xmethod_worker".
7784 Declare new functions value_of_xmethod, call_xmethod.
7786 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7787 Pedro Alves <palves@redhat.com>
7789 PR breakpoints/17000
7790 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7791 New function, extracted from software_breakpoint_inserted_here_p.
7792 (software_breakpoint_inserted_here_p): Replace factored out code
7793 by call to find_non_raw_software_breakpoint_inserted_here.
7794 (bp_target_info_copy_insertion_state): New function.
7795 (bkpt_insert_location): Handle the case of a single-step
7796 breakpoint already inserted at the same address.
7797 (bkpt_remove_location): Handle the case of a single-step
7798 breakpoint still inserted at the same address.
7799 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7800 breakpoint already inserted at the same address.
7801 (deprecated_remove_raw_breakpoint): Handle the case of a
7802 non-raw breakpoint still inserted at the same address.
7803 (find_single_step_breakpoint): New function, extracted from
7804 single_step_breakpoint_inserted_here_p.
7805 (find_single_step_breakpoint): New function,
7806 factored out from single_step_breakpoint_inserted_here_p.
7807 (single_step_breakpoint_inserted_here_p): Reimplement.
7809 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7811 Pushed by Joel Brobecker <brobecker@adacore.com>
7812 * source.c (show_substitute_path_command): Fix display of matching
7815 2014-06-03 Gary Benson <gbenson@redhat.com>
7817 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7819 2014-06-02 Doug Evans <xdje42@gmail.com>
7821 Add parameter support for Guile.
7822 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7823 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7824 (scm-param.o): New rule.
7825 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7826 (gdbscm_misc_error): Declare.
7827 (gdbscm_canonicalize_command_name): Declare.
7828 (gdbscm_scm_to_host_string): Declare.
7829 (gdbscm_scm_from_host_string): Declare.
7830 (gdbscm_initialize_parameters): Declare.
7831 * guile/guile.c (initialize_gdb_module): Call
7832 gdbscm_initialize_parameters.
7833 * guile/lib/gdb.scm: Export parameter symbols.
7834 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7835 cmdscm_canonicalize_name and made public. All callers updated.
7836 * guile/scm-exception.c (gdbscm_misc_error): New function.
7837 * guile/scm-param.c: New file.
7838 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7839 (gdbscm_scm_to_host_string): New function.
7840 (gdbscm_scm_from_host_string): New function.
7841 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7843 2014-06-02 Doug Evans <xdje42@gmail.com>
7845 Add command support for Guile.
7846 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7847 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7848 (scm-cmd.o): New rule.
7849 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7850 (gdbscm_user_error_p): Declare.
7851 (gdbscm_parse_command_name): Declare.
7852 (gdbscm_valid_command_class_p): Declare.
7853 (gdbscm_initialize_commands): Declare.
7854 * guile/guile.c (initialize_gdb_module): Call
7855 gdbscm_initialize_commands.
7856 * guile/lib/gdb.scm: Export command symbols.
7857 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7858 (throw-user-error): New function.
7859 * guile/scm-cmd.c: New file.
7860 * guile/scm-exception.c (user_error_symbol): New static global.
7861 (gdbscm_user_error_p): New function.
7862 (gdbscm_initialize_exceptions): Set user_error_symbol.
7863 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7865 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7867 * top.c (command_loop): Handle comments here...
7868 (command_line_input): ... not here.
7870 2014-06-02 Doug Evans <xdje42@gmail.com>
7872 Add progspace support for Guile.
7873 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7874 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7875 (scm-progspace.o): New rule.
7876 * guile/guile-internal.h (pspace_smob): New typedef.
7877 (psscm_pspace_smob_pretty_printers): Declare.
7878 (psscm_pspace_smob_from_pspace): Declare.
7879 (psscm_scm_from_pspace): Declare.
7880 * guile/guile.c (initialize_gdb_module): Call
7881 gdbscm_initialize_pspaces.
7882 * guile/lib/gdb.scm: Export progspace symbols.
7883 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7885 (append-pretty-printer!): Ditto.
7886 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7888 * guile/scm-progspace.c: New file.
7890 2014-06-03 Alan Modra <amodra@gmail.com>
7892 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7893 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7895 2014-06-02 Doug Evans <dje@google.com>
7897 Add support for skeletonless type units.
7898 * dwarf2read.c (struct dwarf2_per_objfile): New member
7899 n_allocated_type_units.
7900 (struct dwarf2_per_objfile) <tu_stats>: New member
7901 nr_all_type_units_reallocs.
7902 (create_signatured_type_table_from_index): Initialize
7903 n_allocated_type_units
7904 (create_all_type_units): Ditto.
7905 (add_type_unit): Move up in file. New arg slot.
7906 All callers updated. Increase space for all_type_units more
7908 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7909 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7910 (lookup_dwp_signatured_type): Ditto.
7911 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7912 All callers updated.
7913 (build_type_psymtabs_1): Leave type_unit_groups as
7914 NULL if no TUs present.
7915 (print_tu_stats): New function.
7916 (process_skeletonless_type_unit): New function.
7917 (process_dwo_file_for_skeletonless_type_units): New
7919 (process_skeletonless_type_units): New function.
7920 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7921 Call print tu_stats if debugging enabled.
7923 2014-06-02 Pedro Alves <palves@redhat.com>
7925 * breakpoint.c (build_target_command_list): Don't build a command
7926 list if we have any duplicate location that isn't a dprintf.
7928 2014-06-02 Pedro Alves <palves@redhat.com>
7930 * breakpoint.c (dprintf_breakpoint_hit): New function.
7931 (initialize_breakpoint_ops): Install it as dprintf's
7932 breakpoint_hit method.
7934 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7936 * source.c (substitute_path_rule_matches): Simplify using
7937 filename_ncmp instead of FILENAME_CMP.
7939 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7941 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7943 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7945 * configure.ac: When Guile is available, check for the
7946 availability of 'scm_new_smob'.
7947 * configure, config.h.in: Regenerate.
7948 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7951 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7953 * frame.c (struct frame_info): Add stop_string field.
7954 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7955 (get_prev_frame_always): Old content moved into
7956 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7957 TRY_CATCH, handle MEMORY_ERROR exceptions.
7958 (frame_stop_reason_string): New function definition.
7959 * frame.h (unwind_stop_reason_to_string): Extend comment to
7960 mention frame_stop_reason_string.
7961 (frame_stop_reason_string): New function declaration.
7962 * stack.c (frame_info): Switch to frame_stop_reason_string.
7963 (backtrace_command_1): Switch to frame_stop_reason_string.
7964 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7965 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7966 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7968 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7970 * frame.c (frame_stop_reason_string): Rename to ...
7971 (unwind_stop_reason_to_string): this.
7972 * frame.h (frame_stop_reason_string): Rename to ...
7973 (unwind_stop_reason_to_string): this.
7974 * stack.c (frame_info): Update call to frame_stop_reason_string.
7975 (backtrace_command_1): Likewise.
7976 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7977 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7979 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7981 * frame.c (remove_prev_frame): New function.
7982 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7985 2014-05-29 Pedro Alves <palves@redhat.com>
7987 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7988 and make it const. When a single-step decays to a continue,
7989 clear 'step', not 'hw_step'. Pass whether the caller wanted
7990 to step to user_visible_resume_ptid, not what we ask the
7993 2014-05-29 Pedro Alves <palves@redhat.com>
7995 * infrun.c (process_event_stop_test, handle_step_into_function)
7996 (handle_step_into_function_backward): Adjust.
7997 Don't set the even thread's stop_step and call stop_waiting before
7998 calling end_stepping_range. Instead do that ...
7999 (end_stepping_range): ... here. Take an ecs pointer parameter.
8001 2014-05-29 Pedro Alves <palves@redhat.com>
8003 * infrun.c (stop_stepping): Rename to ...
8004 (stop_waiting): ... this.
8005 (proceed): Update comment.
8006 (process_event_stop_test, handle_inferior_event)
8007 (handle_signal_stop, handle_step_into_function)
8008 (handle_step_into_function_backward): Update.
8010 2014-05-29 Pedro Alves <palves@redhat.com>
8012 * infcall.c (run_inferior_call): Don't check whether the current
8013 thread is running after the proceed call.
8015 2014-05-29 Pedro Alves <palves@redhat.com>
8016 Tom Tromey <tromey@redhat.com>
8018 * NEWS: Mention "maint set target-async", "set mi-async", and that
8019 background execution commands are now always available.
8020 * target.h (target_async_permitted): Update comment.
8021 * target.c (target_async_permitted, target_async_permitted_1):
8023 (set_target_async_command): Rename to ...
8024 (maint_set_target_async_command): ... this.
8025 (show_target_async_command): Rename to ...
8026 (maint_show_target_async_command): ... this.
8027 (_initialize_target): Adjust.
8028 * infcmd.c (prepare_execution_command): Make extern.
8029 * inferior.h (prepare_execution_command): Declare.
8030 * infrun.c (set_observer_mode): Leave target async alone.
8031 * mi/mi-interp.c (mi_interpreter_init): Install
8032 mi_on_sync_execution_done as sync_execution_done observer.
8033 (mi_on_sync_execution_done): New function.
8034 (mi_execute_command_input_handler): Don't print the prompt if we
8035 just started a synchronous command with an async target.
8036 (mi_on_resume): Check sync_execution before printing prompt.
8037 * mi/mi-main.h (mi_async_p): Declare.
8038 * mi/mi-main.c: Include gdbcmd.h.
8039 (mi_async_p): New function.
8040 (mi_async, mi_async_1): New globals.
8041 (set_mi_async_command, show_mi_async_command, mi_async): New
8043 (exec_continue): Call prepare_execution_command.
8044 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8045 (mi_execute_async_cli_command): Use mi_async_p.
8046 (_initialize_mi_main): Install "set mi-async". Make
8047 "target-async" a deprecated alias.
8049 2014-05-29 Pedro Alves <palves@redhat.com>
8051 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8052 (_initialize_cli_interp): Adjust.
8053 * event-loop.c: Include "observer.h".
8054 (start_event_loop): Notify 'command_error' observers instead of
8055 calling display_gdb_prompt. Remove FIXME comment.
8056 * event-top.c (display_gdb_prompt): Remove call into the
8058 * inf-loop.c: Include "observer.h".
8059 (inferior_event_handler): Notify 'command_error' observers instead
8060 of calling display_gdb_prompt.
8061 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8062 observers instead of calling display_gdb_prompt.
8063 * interps.c (interp_set): Don't call display_gdb_prompt.
8064 (current_interp_display_prompt_p): Delete.
8065 * interps.h (interp_prompt_p): Delete declaration.
8066 (interp_prompt_p_ftype): Delete.
8067 (struct interp_procs) <prompt_proc_p>: Delete field.
8068 (current_interp_display_prompt_p): Delete declaration.
8069 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8070 (_initialize_mi_interp): Adjust.
8071 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8072 'command_error' observers.
8073 (tui_on_sync_execution_done, tui_on_command_error): New
8075 (tui_display_prompt_p): Delete.
8076 (_initialize_tui_interp): Adjust.
8078 2014-05-29 Pedro Alves <palves@redhat.com>
8081 * cli/cli-interp.c: Include infrun.h and observer.h.
8082 (cli_uiout, cli_interp): New globals.
8083 (cli_on_signal_received, cli_on_end_stepping_range)
8084 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8086 (cli_interpreter_init): Install them as 'end_stepping_range',
8087 'signal_received' 'signal_exited', 'exited' and 'no_history'
8089 (_initialize_cli_interp): Remove cli_interp local.
8090 * infrun.c (handle_inferior_event): Call the several stop reason
8091 observers instead of printing the stop reason directly.
8092 (end_stepping_range): New function.
8093 (print_end_stepping_range_reason, print_signal_exited_reason)
8094 (print_exited_reason, print_signal_received_reason)
8095 (print_no_history_reason): Make static, and add an uiout
8096 parameter. Print to that instead of to CURRENT_UIOUT.
8097 * infrun.h (print_end_stepping_range_reason)
8098 (print_signal_exited_reason, print_exited_reason)
8099 (print_signal_received_reason print_no_history_reason): New
8101 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8103 <cli_uiout>: New field.
8104 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8105 uiout for CLI output. Install 'signal_received',
8106 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8108 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8109 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8110 (mi_on_no_history): New functions.
8111 (ui_out_free_cleanup): Delete function.
8112 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8113 instead use the one already stored in the MI interpreter data.
8114 (mi_ui_out): Adjust.
8115 * tui/tui-interp.c: Include infrun.h and observer.h.
8116 (tui_interp): New global.
8117 (tui_on_signal_received, tui_on_end_stepping_range)
8118 (tui_on_signal_exited, tui_on_exited)
8119 (tui_on_no_history): New functions.
8120 (tui_init): Install them as 'end_stepping_range',
8121 'signal_received' 'signal_exited', 'exited' and 'no_history'
8123 (_initialize_tui_interp): Delete tui_interp local.
8125 2014-05-29 Pedro Alves <palves@redhat.com>
8128 * linux-nat.c (linux_nat_resume_callback): Rename the second
8129 parameter to 'except'. Skip LP if it points to EXCEPT.
8130 (linux_nat_resume): Don't mark the event lwp as not stopped
8131 before resuming sibling lwps. Instead ask
8132 linux_nat_resume_callback to skip the event lwp. Mark it as not
8133 stopped after actually resuming it.
8134 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8136 (wait_lwp): Mark the lwp as stopped here.
8137 (stop_wait_callback): Mark the lwp as not stopped right after
8138 resuming it. Don't mark lwps as stopped here.
8139 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8140 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8142 2014-05-29 Pedro Alves <palves@redhat.com>
8145 * infrun.c (resume): Determine how much to resume depending on
8146 whether the caller wanted a step, not whether we can hardware step
8147 the target. Mark all threads that we intend to run as running,
8148 unless we're calling an inferior function.
8149 (normal_stop): If the thread is running an infcall, don't finish
8151 * target.c (target_resume): Don't mark threads as running here.
8153 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8155 * serial.c (_initialize_serial): Remove support for
8156 the "set remotebaud" and "show remotebaud" commands.
8157 * NEWS: Add entry documenting the removal of that command.
8159 2014-05-28 Yao Qi <yao@codesourcery.com>
8161 * charset.c: Fix typo in comments.
8163 2014-05-27 Gary Benson <gbenson@redhat.com>
8165 * utils.c (internal_vproblem): Prompt for a bug report.
8167 2014-05-26 Andy Wingo <wingo@igalia.com>
8169 * guile/scm-arch.c (arscm_mark_arch_smob):
8170 * guile/scm-block.c (bkscm_mark_block_smob)
8171 (bkscm_mark_block_syms_progress_smob):
8172 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8173 * guile/scm-exception.c (exscm_mark_exception_smob):
8174 * guile/scm-frame.c (frscm_mark_frame_smob):
8175 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8176 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8177 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8178 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8179 (ppscm_mark_pretty_printer_worker_smob):
8180 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8181 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8182 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8183 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8185 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8188 2014-05-26 Andy Wingo <wingo@igalia.com>
8189 Doug Evans <xdje42@gmail.com>
8191 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8192 empty_base_class. All uses updated.
8193 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8194 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8196 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8197 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8198 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8199 (gdbscm_gsmob_has_property_p, add_property_name)
8200 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8201 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8202 (gdb-object-has-property?, gdb-object-properties): Remove.
8203 (gdb-object-kind): Renamed from gsmob-kind.
8205 2014-05-26 Andy Wingo <wingo@igalia.com>
8207 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8208 * configure: Regenerate.
8210 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8212 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8214 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8216 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8217 (replay_memory_access_read_only, replay_memory_access_read_write)
8218 (replay_memory_access_types, replay_memory_access)
8219 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8220 (cmd_set_record_btrace, cmd_show_record_btrace)
8221 (cmd_show_replay_memory_access): New.
8222 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8223 (record_btrace_remove_breakpoint): Replace
8224 record_btrace_allow_memory_access with replay_memory_access.
8225 (_initialize_record_btrace): Add commands.
8226 * NEWS: Announce it.
8228 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8230 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8232 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8234 * MAINTAINERS (Write After Approval): Move self back from
8237 2014-05-22 Pedro Alves <palves@redhat.com>
8239 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8240 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8241 (disable_randomization, enum exec_direction_kind)
8242 (execution_direction, stop_registers, start_remote)
8243 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8244 (wait_for_inferior, normal_stop, get_last_target_status)
8245 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8246 (insert_step_resume_breakpoint_at_sal)
8247 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8248 (set_step_info, print_stop_event, signal_stop_state)
8249 (signal_print_state, signal_pass_state, signal_stop_update)
8250 (signal_print_update, signal_pass_update)
8251 (update_signals_program_target, clear_exit_convenience_vars)
8252 (displaced_step_dump_bytes, update_observer_mode)
8253 (signal_catch_update, gdb_signal_from_command): Move
8255 * infrun.h: ... to this new file.
8256 * amd64-tdep.c: Include infrun.h.
8257 * annotate.c: Include infrun.h.
8258 * arch-utils.c: Include infrun.h.
8259 * arm-linux-tdep.c: Include infrun.h.
8260 * arm-tdep.c: Include infrun.h.
8261 * break-catch-sig.c: Include infrun.h.
8262 * breakpoint.c: Include infrun.h.
8263 * common/agent.c: Include infrun.h instead of inferior.h.
8264 * corelow.c: Include infrun.h.
8265 * event-top.c: Include infrun.h.
8266 * go32-nat.c: Include infrun.h.
8267 * i386-tdep.c: Include infrun.h.
8268 * inf-loop.c: Include infrun.h.
8269 * infcall.c: Include infrun.h.
8270 * infcmd.c: Include infrun.h.
8271 * infrun.c: Include infrun.h.
8272 * linux-fork.c: Include infrun.h.
8273 * linux-nat.c: Include infrun.h.
8274 * linux-thread-db.c: Include infrun.h.
8275 * monitor.c: Include infrun.h.
8276 * nto-tdep.c: Include infrun.h.
8277 * procfs.c: Include infrun.h.
8278 * record-btrace.c: Include infrun.h.
8279 * record-full.c: Include infrun.h.
8280 * remote-m32r-sdi.c: Include infrun.h.
8281 * remote-mips.c: Include infrun.h.
8282 * remote-notif.c: Include infrun.h.
8283 * remote-sim.c: Include infrun.h.
8284 * remote.c: Include infrun.h.
8285 * reverse.c: Include infrun.h.
8286 * rs6000-tdep.c: Include infrun.h.
8287 * s390-linux-tdep.c: Include infrun.h.
8288 * solib-irix.c: Include infrun.h.
8289 * solib-osf.c: Include infrun.h.
8290 * solib-svr4.c: Include infrun.h.
8291 * target.c: Include infrun.h.
8292 * top.c: Include infrun.h.
8293 * windows-nat.c: Include infrun.h.
8294 * mi/mi-interp.c: Include infrun.h.
8295 * mi/mi-main.c: Include infrun.h.
8296 * python/py-threadevent.c: Include infrun.h.
8298 2014-05-22 Pedro Alves <palves@redhat.com>
8300 * infrun.c (handle_inferior_event): Store the exit code for
8301 --return-child-result here, instead of ...
8302 (print_exited_reason): ... here.
8304 2014-05-21 Pedro Alves <palves@redhat.com>
8307 * gdbthread.h (struct thread_control_state): New field
8309 * infrun.c (follow_fork): Copy the new thread control field to the
8311 (clear_proceed_status_thread): Clear the new thread control field.
8312 (proceed): Set the new thread control field.
8313 * interps.h (command_interp): Declare.
8314 * interps.c (command_interpreter): New global.
8315 (command_interp): New function.
8316 (interp_exec): Set `command_interpreter' while here.
8317 * cli-out.c (cli_uiout_dtor): New function.
8318 (cli_ui_out_impl): Install it.
8319 * mi/mi-interp.c: Include cli-out.h.
8320 (mi_cmd_interpreter_exec): Add comment.
8321 (restore_current_uiout_cleanup): New function.
8322 (ui_out_free_cleanup): New function.
8323 (mi_on_normal_stop): If finishing an execution command started by
8324 a CLI command, or any kind of breakpoint-like event triggered,
8325 print the stop event to the output (CLI) stream.
8326 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8328 2014-05-21 Pedro Alves <palves@redhat.com>
8330 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8331 current source line having changed.
8332 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8333 * infrun.c (normal_stop): Adjust call to
8334 set_current_sal_from_frame.
8335 * source.c (clear_lines_listed_range): New function.
8336 (set_current_source_symtab_and_line, identify_source_line): Clear
8337 the lines listed range.
8338 (line_info): Handle the first "info line" after the current source
8339 line having changed.
8340 * stack.c (print_stack_frame): Remove center handling.
8341 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8344 2014-05-21 Pedro Alves <palves@redhat.com>
8346 * inf-child.c (inf_child_mourn_inferior): New function.
8347 * inf-child.h (inf_child_mourn_inferior): New declaration.
8348 * darwin-nat.c (darwin_mourn_inferior): Use
8349 inf_child_mourn_inferior.
8350 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8351 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8352 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8353 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8354 * windows-nat.c (windows_mourn_inferior): Likewise.
8356 2014-05-21 Doug Evans <xdje42@gmail.com>
8358 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8360 2014-05-21 Doug Evans <xdje42@gmail.com>
8362 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8363 (gdbscm_out_of_range_error): Ditto.
8364 (gdbscm_memory_error): Ditto.
8365 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8366 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8367 (gdbscm_out_of_range_error): Update.
8368 (gdbscm_memory_error): Update.
8369 (gdbscm_scm_to_target_string_unsafe): Delete.
8371 2014-05-21 Pedro Alves <palves@redhat.com>
8373 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8375 (inf_child_open_target): New function.
8376 (inf_child_open): Use inf_child_open_target to push the target
8377 instead of erroring out.
8378 (inf_child_disconnect, inf_child_close)
8379 (inf_child_maybe_unpush_target): New functions.
8380 (inf_child_target): Install inf_child_disconnect and
8381 inf_child_close. Store a pointer to the returned object.
8382 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8384 * target.c (auto_connect_native_target): New global.
8385 (show_default_run_target): New function.
8386 (find_default_run_target): Return NULL if automatically connecting
8387 to the native target is disabled.
8388 (_initialize_target): Install set/show auto-connect-native-target.
8389 * NEWS: Mention "set auto-connect-native-target", and "target
8391 * linux-nat.c (super_close): New global.
8392 (linux_nat_close): Call super_close.
8393 (linux_nat_add_target): Store a pointer to the base class's
8395 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8396 inf_child_maybe_unpush.
8397 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8399 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8400 the inferior. Use inf_child_maybe_unpush_target.
8401 (inf_ttrace_attach): Don't push the target if it is already
8403 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8404 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8405 after mourning the inferior. Use inf_child_maybe_unpush_target.
8406 (darwin_attach_pid): Don't push the target if it is already
8408 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8409 mourning the inferior. Use inf_child_maybe_unpush_target.
8410 (gnu_detach): Use inf_child_maybe_unpush_target.
8411 * go32-nat.c (go32_create_inferior): Don't push the target if it
8413 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8414 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8415 (procfs_open): Rename to ...
8416 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8417 comments. Can target_preopen before changing node. Call
8418 inf_child_open_target to push the target explicitly.
8419 (procfs_attach): Don't push the target if it is already pushed.
8420 (procfs_detach): Use inf_child_maybe_unpush_target.
8421 (procfs_create_inferior): Don't push the target if it is already
8423 (nto_native_ops): New global.
8424 (procfs_open): Reimplement.
8425 (procfs_native_open): New function.
8426 (init_procfs_targets): Install procfs_native_open as to_open of
8427 "target native". Store a pointer to the "native" target in
8429 * procfs.c (procfs_attach): Don't push the target if it is already
8431 (procfs_detach): Use inf_child_maybe_unpush_target.
8432 (procfs_mourn_inferior): Only unpush the target after mourning the
8433 inferior. Use inf_child_maybe_unpush_target.
8434 (procfs_init_inferior): Don't push the target if it is already
8436 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8437 if it is already pushed.
8439 2014-05-21 Pedro Alves <palves@redhat.com>
8441 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8442 and "procfs" targets are now called "native" instead.
8444 2014-05-21 Pedro Alves <palves@redhat.com>
8446 * go32-nat.c (go32_open): Delete.
8447 (go32_target): Don't override the to_open method.
8449 2014-05-21 Pedro Alves <palves@redhat.com>
8451 * nto-procfs.c (procfs_can_run): New function.
8452 (nto_procfs_ops): New global.
8453 (init_procfs_targets): New, based on procfs_target. Install
8454 "target native" in addition to "target procfs".
8455 (_initialize_procfs): Call init_procfs_targets instead of adding
8458 2014-05-21 Pedro Alves <palves@redhat.com>
8460 * windows-nat.c (windows_target): Don't override to_shortname,
8461 to_longname or to_doc.
8463 2014-05-21 Pedro Alves <palves@redhat.com>
8465 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8468 2014-05-21 Pedro Alves <palves@redhat.com>
8470 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8471 to_shortname, to_longname or to_doc.
8473 2014-05-21 Pedro Alves <palves@redhat.com>
8475 * go32-nat.c (go32_target): Don't override to_shortname,
8476 to_longname or to_doc.
8478 2014-05-21 Pedro Alves <palves@redhat.com>
8480 * inf-child.c (inf_child_open): Remove mention of "child".
8481 (inf_child_target): Rename target to "native" instead of "child".
8483 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8485 * Makefile.in (SFILES): Delete "regset.c".
8486 (COMMON_OBS): Delete "regset.o".
8488 * regset.h (regset_alloc): Delete prototype.
8490 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8492 * sparc-linux-tdep.c (sparc32_linux_gregset)
8493 (sparc32_linux_fpregset): New static regset structures.
8494 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8495 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8497 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8498 (sparc64_linux_fpregset): New static regset structures.
8499 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8500 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8501 New static regset structures.
8502 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8503 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8504 New static regset structures.
8505 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8506 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8507 New static regset structures.
8508 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8509 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8510 New static regset structures.
8511 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8513 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8515 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8516 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8517 register maps ("regmaps") from "*regset" to "*regmap". Do this
8518 for all regmap types and variables.
8519 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8520 (sparc32_linux_supply_core_gregset)
8521 (sparc32_linux_collect_core_gregset)
8522 (sparc32_linux_supply_core_fpregset)
8523 (sparc32_linux_collect_core_fpregset): Likewise.
8524 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8525 (sparc_gregmap, sparc_fpregmap): ... these.
8526 (sparc_supply_gregset, sparc_collect_gregset)
8527 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8528 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8529 (_initialize_sparc_nat): Rename regmaps.
8530 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8531 (sparc_gregmap, sparc_fpregmap): ... these.
8532 (sparc_supply_gregset, sparc_collect_gregset)
8533 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8534 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8536 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8537 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8539 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8541 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8542 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8543 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8545 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8546 (sparc32_bsd_fpregset): Rename to...
8547 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8548 (sparc32_bsd_fpregmap): ... these.
8549 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8550 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8551 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8552 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8553 (struct sparc_gregmap, struct sparc_fpregmap)
8554 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8555 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8556 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8557 (sparc32_supply_regset, sparc32_collect_gregset)
8558 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8560 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8561 (sparc64_linux_ptrace_gregmap): ... this.
8562 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8563 (_initialize_sparc64_linux_nat): Rename regmaps.
8564 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8565 (sparc64_linux_core_gregmap): ... this.
8566 (sparc64_linux_supply_core_gregset)
8567 (sparc64_linux_collect_core_gregset)
8568 (sparc64_linux_supply_core_fpregset)
8569 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8570 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8571 (sparc64_sol2_fpregset): Rename to...
8572 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8573 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8574 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8576 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8577 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8578 (sparc64_bsd_fpregset): Rename to...
8579 (struct sparc_gregmap, sparc64_sol2_gregmap)
8580 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8581 (sparc64_bsd_fpregmap): ... these.
8582 (sparc64_supply_gregset, sparc64_collect_gregset)
8583 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8585 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8586 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8587 (sparc64fbsd_gregmap): ... this.
8588 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8589 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8591 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8592 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8593 (sparc64nbsd_collect_fpregset): Likewise.
8594 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8595 (sparc64nbsd_gregmap): ... this.
8596 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8598 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8599 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8600 (sparc64obsd_gregmap): ... this.
8601 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8603 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8604 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8605 (sparc32nbsd_gregmap): ... this.
8606 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8609 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8611 * score-tdep.c (score7_linux_gregset): New static regset
8613 (score7_linux_regset_from_core_section): Remove dynamic regset
8615 (score_gdbarch_init): Drop allocation of tdep structure.
8616 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8620 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8622 (am33_regset_from_core_section): Remove dynamic regset
8625 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8627 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8628 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8630 (mips_linux_regset_from_core_section): Remove dynamic regset
8632 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8633 'gregset64', 'fpregset', and 'fpregset64'.
8634 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8635 deleted tdep fields.
8637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8639 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8641 (amd64_regset_from_core_section): Remove dynamic regset
8643 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8645 (amd64obsd_regset_from_core_section): Remove dynamic regset
8647 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8649 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8650 x86-common regset supply function.
8651 * i386-tdep.c (i386_collect_gregset): Make static.
8652 (i386_gregset): New global regset structure.
8653 (i386_fpregset, i386_xstateregset): New static regset structures.
8654 (i386_regset_from_core_section): Remove dynamic regset
8656 (i386_gdbarch_init): Remove initialization of tdep fields
8657 'gregset', 'fpregset', and 'xstateregset'.
8658 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8659 'fpregset', and 'xstateregset'.
8660 (i386_collect_gregset): Remove prototype.
8661 (i386_gregset): New declaration.
8662 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8664 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8669 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8670 (arm_linux_vfpregset): New static regset structures.
8671 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8673 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8674 and 'vfpregset' fields.
8676 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8678 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8679 (aarch64_linux_fpregset): New static regset structures.
8680 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8681 of regset structures.
8682 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8685 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8687 * regset.h (struct regset): Remove gdbarch field.
8688 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8689 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8690 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8692 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8693 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8694 (ppc32_linux_vsxregset): Likewise.
8695 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8696 via the regcache instead of the regset.
8697 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8698 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8699 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8700 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8703 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8705 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8706 Constify structures.
8707 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8708 (alphanbsd_aout_gregset): Likewise.
8709 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8710 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8712 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8713 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8715 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8716 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8717 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8718 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8719 * m88k-tdep.c (m88k_gregset): Likewise.
8720 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8721 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8722 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8723 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8724 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8725 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8726 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8727 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8728 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8730 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8731 * sh-tdep.h (sh_corefile_gregset): Likewise.
8732 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8733 * vax-tdep.c (vax_gregset): Likewise.
8735 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8737 Fix TLS access for -static -pthread.
8738 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8739 (try_thread_db_load_1): Initialize it.
8740 (thread_db_get_thread_local_address): Call it if LM is zero.
8741 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8742 * target.h (struct target_ops) (to_get_thread_local_address): Add
8743 load_module_addr comment.
8745 2014-05-21 Pedro Alves <palves@redhat.com>
8747 * dcache.c (dcache_read_memory_partial): If reading the cache line
8748 fails, fallback to reading just the memory the caller wanted.
8750 2014-05-20 Doug Evans <dje@google.com>
8752 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8753 instead of get_current_arch.
8755 2014-05-20 Pedro Alves <palves@redhat.com>
8757 * NEWS: Mention that compare-sections now works with all targets.
8759 * remote.c (PACKET_qCRC): New enum value.
8760 (remote_verify_memory): Don't send qCRC if the target has no
8761 execution. Use packet_support/packet_ok. If the target doesn't
8762 support the qCRC packet, fallback to a deep memory copy.
8763 (compare_sections_command): Say "target image" instead of "remote
8765 (_initialize_remote): Add PACKET_qCRC to the list of config
8766 packets that have no associated command. Extend comment.
8767 * target.c (simple_verify_memory, default_verify_memory): New
8769 * target.h (struct target_ops) <to_verify_memory>: Default to
8770 default_verify_memory.
8771 (simple_verify_memory): New declaration.
8772 * target-delegates.c: Regenerate.
8774 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8776 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8778 2014-05-20 Hui Zhu <hui@codesourcery.com>
8779 Yao Qi <yao@codesourcery.com>
8782 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8783 and change address of sp and pc.
8785 2014-05-19 Tom Tromey <tromey@redhat.com>
8787 * gdbtypes.c (rank_function): Use XNEWVEC.
8788 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8790 2014-05-19 Doug Evans <dje@google.com>
8792 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8793 build_type_unit_groups and moved closer to only caller. Remove
8794 arguments. All references updated. Remove outdated .gdb_index
8796 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8797 build_type_psymtabs_1.
8799 2014-05-19 Doug Evans <dje@google.com>
8801 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8802 n_type_unit_groups, all_type_unit_groups. All uses removed.
8803 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8804 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8805 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8806 (add_type_unit_group_to_table): Delete.
8808 2014-05-19 Doug Evans <dje@google.com>
8810 * eval.c (evaluate_subexp_standard): Add some comments.
8812 2014-05-17 Doug Evans <xdje42@gmail.com>
8814 * progspace.c (remove_program_space): Delete, unused.
8815 * progspace.h (remove_program_space): Ditto.
8817 2014-05-17 Doug Evans <xdje42@gmail.com>
8819 * inferior.c (prune_inferiors): Fix comment.
8820 (remove_inferior_command): Call prune_program_spaces.
8822 2014-05-16 Doug Evans <dje@google.com>
8824 New command line option -D.
8826 * main.c (set_gdb_data_directory): New function.
8827 (captured_main): Recognize -D. Flag error for --data-directory "".
8828 Call set_gdb_data_directory.
8829 (print_gdb_help): Print --data-directory, -D.
8830 * main.h (set_gdb_data_directory): Declare.
8831 * top.c (staged_gdb_datadir): New static global.
8832 (set_gdb_datadir): Call set_gdb_data_directory
8833 (show_gdb_datadir): New function.
8834 (init_main): Update init of data-directory parameter.
8836 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8838 Import the "dirfd" gnulib module.
8839 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8840 * gnulib/aclocal.m4: Update.
8841 * gnulib/config.in: Update.
8842 * gnulib/configure: Update.
8843 * gnulib/import/Makefile.am: Update.
8844 * gnulib/import/Makefile.in: Update.
8845 * gnulib/import/dirfd.c: New.
8846 * gnulib/import/m4/dirfd.m4: New.
8847 * gnulib/import/m4/gnulib-cache.m4: Update.
8848 * gnulib/import/m4/gnulib-comp.m4: Update.
8850 2014-05-16 Pierre Muller <muller@sourceware.org>
8851 Yao Qi <yao@codesourcery.com>
8853 * valprint.c (print_wchar): Move the code on checking whether
8854 W is a printable wide char to the default branch of switch
8855 statement below. Call wchar_printable instead of gdb_iswprint.
8857 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8859 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8860 ldr.w and ldrd instructions.
8862 2014-05-15 Doug Evans <dje@google.com>
8864 * dwarf2read.c (read_structure_type): Delete outdated comments.
8866 2014-05-14 Tom Tromey <tromey@redhat.com>
8868 * macrocmd.c (print_macro_definition): Reindent.
8870 2014-05-13 Doug Evans <xdje42@gmail.com>
8872 * python/py-cmd.c (cmdpy_completer): Add comment.
8873 (completers): Make const.
8875 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8877 * infrun.c (resume): Remove should_resume (unused). Move up
8878 declaration of resume_ptid.
8880 2014-05-13 Tom Tromey <tromey@redhat.com>
8882 * language.h (unop_type_check): Remove.
8883 (binop_type_check): Don't declare.
8885 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8887 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8888 call to regcache_raw_collect.
8890 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8892 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8893 mi_console->quote as the quoting character.
8895 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8897 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8899 2014-04-29 Tom Tromey <tromey@redhat.com>
8901 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8902 "show debug varobj".
8904 2014-05-07 Kyle McMartin <kyle@redhat.com>
8906 Pushed by Joel Brobecker <brobecker@adacore.com>.
8907 * aarch64-tdep.c (aarch64_software_single_step): New function.
8908 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8909 with aarch64_software_single_step.
8911 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8915 2014-05-05 Keith Seitz <keiths@redhat.com>
8917 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8918 variable or history value is successfully parsed.
8920 2014-05-05 Yao Qi <yao@codesourcery.com>
8921 Pedro Alves <palves@redhat.com>
8923 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8924 address of blocks that intersects the requested range. Trim
8925 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8927 * ctf.c (ctf_xfer_partial): Likewise.
8929 2014-05-05 Yao Qi <yao@codesourcery.com>
8931 * printcmd.c (display_command): Remove the check to
8932 target_has_execution.
8934 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8936 * ppcobsd-nat.c: Include "obsd-nat.h".
8937 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8939 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8941 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8943 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8944 and 16-bit signed and unsigned arguments. Update comment.
8945 (stap_parse_probe_arguments): Extend code to handle such
8946 arguments. Use warning instead of complaint to notify about
8947 unrecognized bitness.
8949 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8951 PR breakpoints/16889
8952 * stap-probe.c (stap_parse_probe_arguments): Simplify
8953 check for non-prefixed probes (i.e., probes whose
8954 arguments do not start with "N@"). Always set the
8955 argument type to a sane value.
8957 2014-05-01 David Taylor <dtaylor@emc.com>
8959 * remote.c (compare_sections_command): Add -r option to compare
8960 all loadable read-only sections.
8962 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8964 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8965 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8967 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8968 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8969 Remove unused CORE_ADDR argument. Update all callers.
8971 2014-04-29 Pedro Alves <palves@redhat.com>
8973 * remote.c (struct packet_config) <detect>: Extend comment.
8974 (add_packet_config_cmd): Don't set the config's detect or support
8976 (init_all_packet_configs): Also initialize the config's 'detect'
8978 (reset_all_packet_configs_support): New function.
8979 (remote_open_1): Call reset_all_packet_configs_support instead of
8980 init_all_packet_configs.
8981 (_initialize_remote): Initialize all packet configs. Assert that
8982 all packets have an associated command, except a few known
8985 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8987 * dwarf2read.c (read_subrange_type): Handle dynamic
8988 DW_AT_lower_bound attributes.
8990 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8992 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8993 dynamic bounds before computing its upper bound.
8994 (ada_discrete_type_low_bound): Same as above with the lower bound.
8996 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8998 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8999 range types. Adjust the array handling implementation to
9000 take advantage of this change.
9001 (resolve_dynamic_range): New function, mostly extracted from
9002 resolve_dynamic_bounds.
9003 (resolve_dynamic_array): New function, mostly extracted from
9004 resolve_dynamic_bounds.
9005 (resolve_dynamic_bounds): Delete.
9006 (resolve_dynamic_type): Reimplement. Add handling of
9007 TYPE_CODE_RANGE types.
9009 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9011 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9012 handling of parallel ___XA types.
9014 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9016 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9017 unnecessary second call to static_unwrap_type.
9019 2014-04-27 Hui Zhu <hui@codesourcery.com>
9021 * stack.c (print_frame_info): Call do_gdb_disassembly with
9022 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9024 2014-04-26 Doug Evans <xdje42@gmail.com>
9026 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9028 2014-04-25 Pedro Alves <palves@redhat.com>
9031 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9032 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9033 and newline from built string.
9034 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9035 (linux_ptrace_attach_fail_reason): ... this.
9036 * linux-nat.c (linux_nat_attach): Adjust to use
9037 linux_ptrace_attach_fail_reason.
9039 2014-04-25 Pedro Alves <palves@redhat.com>
9041 * remote.c (struct remote_state): Remove multi_process_aware,
9042 non_stop_aware, cond_tracepoints, cond_breakpoints,
9043 breakpoint_commands, fast_tracepoints, static_tracepoints,
9044 install_in_trace, disconnected_tracing,
9045 enable_disable_tracepoints, string_tracing, and
9046 augmented_libraries_svr4_read fields.
9047 (remote_multi_process_p): Move further below in the file.
9048 (struct packet_config): Add comments.
9049 (update_packet_config): Delete function.
9050 (show_packet_config_cmd): Use packet_config_support.
9051 (add_packet_config_cmd): Use NULL as set callback.
9052 (packet_ok): "set remote foo-packet"-style commands no longer
9053 change config->supported -- adjust.
9054 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9055 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9056 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9057 (PACKET_QNonStop, PACKET_multiprocess_feature)
9058 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9059 (PACKET_DisconnectedTracing_feature)
9060 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9061 (set_remote_protocol_packet_cmd): Delete function.
9062 (packet_config_support, packet_support): New functions.
9063 (set_remote_protocol_Z_packet_cmd): Don't call
9064 update_packet_config.
9065 (remote_query_attached, remote_pass_signals)
9066 (remote_program_signals, remote_threads_info)
9067 (remote_threads_extra_info, remote_start_remote): Use
9069 (remote_start_remote): Use packet_config_support and
9071 (init_all_packet_configs): Set all packets to unknown support,
9072 instead of calling update_packet_config.
9073 (remote_check_symbols): Use packet_support.
9074 (remote_supported_packet): Unconditionally set the packet config's
9076 (remote_multi_process_feature, remote_non_stop_feature)
9077 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9078 (remote_breakpoint_commands_feature)
9079 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9080 (remote_install_in_trace_feature)
9081 (remote_disconnected_tracing_feature)
9082 (remote_enable_disable_tracepoint_feature)
9083 (remote_string_tracing_feature)
9084 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9085 (remote_protocol_features): Adjust to use remote_supported_packet
9086 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9087 "ConditionalTracepoints", "ConditionalBreakpoints",
9088 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9089 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9090 "EnableDisableTracepoints", and "tracenz".
9091 (remote_query_supported): Use packet_support.
9092 (remote_open_1): Adjust.
9093 (extended_remote_attach_1): Use packet_support. Switch on the
9094 result of packet_ok instead of checking whether the packet ended
9096 (remote_vcont_resume): Use packet_support.
9097 (remote_resume, remote_stop_ns, fetch_register_using_p)
9098 (remote_prepare_to_store, store_register_using_P)
9099 (check_binary_download, remote_write_bytes): Use packet_support.
9100 (remote_vkill): Use packet_support. Switch on the result of
9101 packet_ok instead of checking whether the packet ended up
9103 (extended_remote_supports_disable_randomization): Use
9105 (extended_remote_run): Switch on the result of packet_ok instead
9106 of checking whether the packet ended up disabled.
9107 (remote_insert_breakpoint, remote_remove_breakpoint)
9108 (remote_insert_watchpoint, remote_remove_watchpoint)
9109 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9111 (remote_search_memory): Use packet_config_support.
9112 (remote_get_thread_local_address, remote_get_tib_address)
9113 (remote_hostio_send_command, remote_can_execute_reverse): Use
9115 (remote_supports_cond_tracepoints)
9116 (remote_supports_cond_breakpoints)
9117 (remote_supports_fast_tracepoints)
9118 (remote_supports_static_tracepoints)
9119 (remote_supports_install_in_trace)
9120 (remote_supports_enable_disable_tracepoint)
9121 (remote_supports_string_tracing)
9122 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9123 the packet config says the feature is enabled or disabled.
9124 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9125 (remote_get_trace_status): Use packet_support.
9126 (remote_set_disconnected_tracing): Adjust to check whether the
9127 feature is enabled with packet_support.
9128 (remote_set_trace_buffer_size, remote_use_agent)
9129 (remote_can_use_agent, remote_supports_btrace): Use
9131 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9132 Use packet_config_support.
9133 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9134 the packet config says the feature is enabled or disabled.
9135 (set_range_stepping): Use packet_support.
9137 2014-04-25 Tom Tromey <tromey@redhat.com>
9139 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9142 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9144 * NEWS: Mention support for C99 variable length arrays.
9146 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9148 * ada-lang.c (standard_exc): Expand introductory comment.
9150 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9151 Walfred Tedeschi <walfred.tedeschi@intel.com>
9153 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9155 (amd64_linux_read_description): Add code to handle AVX512 xstate
9156 mask and return respective tdesc.
9157 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9158 and features/i386/x32-avx512-linux.c.
9159 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9160 (amd64_linux_core_read_description): Add code to handle AVX512
9161 xstate mask and return respective tdesc.
9162 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9163 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9165 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9166 (tdesc_amd64_avx512_linux): New prototype.
9167 (tdesc_x32_avx512_linux): Likewise.
9168 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9169 features/i386/x32-avx512.c.
9170 (amd64_ymm_avx512_names): New register names for pseudo
9172 (amd64_ymmh_avx512_names): New register names for raw registers
9174 (amd64_k_names): New register names for K registers.
9175 (amd64_zmmh_names): New register names for ZMM raw registers.
9176 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9177 (amd64_xmm_avx512_names): New register names for XMM16-31
9179 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9181 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9182 if feature is present.
9183 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9184 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9185 (AMD64_NUM_REGS): Adjust to new number of registers.
9186 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9187 registers supplied via XSTATE by AVX512 registers.
9188 (i386_linux_read_description): Add case for AVX512.
9189 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9190 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9191 (i386_linux_core_read_description): Add case for AVX512.
9192 (i386_linux_init_abi): Install supported register note section
9194 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9196 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9197 registers to be number of zmm7h + 1.
9198 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9199 * i386-tdep.c: Include features/i386/i386-avx512.c.
9200 (i386_zmm_names): Add ZMM pseudo register names array.
9201 (i386_zmmh_names): Add ZMM raw register names array.
9202 (i386_k_names): Add K raw register names array.
9203 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9204 registers. AVX512 has 16 more ZMM registers than there are YMM
9206 (i386_zmmh_regnum_p): Add function to look up register number of
9208 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9209 (i386_k_regnum_p): Likewise for K raw registers.
9210 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9211 registers added by AVX512.
9212 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9213 registers added by AVX512.
9214 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9216 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9217 (i386_pseudo_register_name): Add ZMM pseudo registers.
9218 (i386_zmm_type): Construct and return vector registers type for ZMM
9220 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9221 ZMM0-31 pseudo registers and K registers.
9222 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9223 and YMM16-31 registers from register cache.
9224 (i386_pseudo_register_write): Add code to write K, ZMM and
9226 (i386_register_reggroup_p): Add code to include/exclude AVX512
9227 registers in/from respective register groups.
9228 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9229 registers if feature is present in xcr0.
9230 (i386_gdbarch_init): Add code to initialize AVX512 feature
9231 variables in tdep structure, wire in pseudo registers and call
9232 initialize_tdesc_i386_avx512.
9233 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9235 (i386_regnum): Add AVX512 registers.
9236 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9237 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9238 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9239 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9241 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9242 (i386_ymm_avx512_regnum_p): Likewise.
9243 (i386_k_regnum_p): Likewise.
9244 (i386_zmm_regnum_p): Likewise.
9245 (i386_zmmh_regnum_p): Likewise.
9246 * i387-tdep.c : Update year in copyright notice.
9247 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9249 (XSAVE_YMM_AVX512_ADDR): New macro.
9250 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9252 (XSAVE_XMM_AVX512_ADDR): New macro.
9253 (xsave_avx512_k_offset): New table for K register offsets in
9255 (XSAVE_AVX512_K_ADDR): New macro.
9256 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9258 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9259 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9261 (i387_collect_xsave): Add code to collect AVX512 registers from
9263 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9264 of XMM16-31 registers.
9265 (I387_NUM_K_REGS): New define for number of K registers.
9266 (I387_K0_REGNUM): New define for K0 register number.
9267 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9268 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9269 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9271 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9272 (I387_XMM16_REGNUM): New define for XMM16 register number.
9273 (I387_YMM0_REGNUM): New define for YMM0 register number.
9274 (I387_KEND_REGNUM): New define for last K register number.
9275 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9276 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9278 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9280 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9282 * features/Makefile: Add AVX512 related files.
9283 * features/i386/32bit-avx512.xml: New file.
9284 * features/i386/64bit-avx512.xml: Likewise.
9285 * features/i386/amd64-avx512-linux.c: Likewise.
9286 * features/i386/amd64-avx512-linux.xml: Likewise.
9287 * features/i386/amd64-avx512.c: Likewise.
9288 * features/i386/amd64-avx512.xml: Likewise.
9289 * features/i386/i386-avx512-linux.c: Likewise.
9290 * features/i386/i386-avx512-linux.xml: Likewise.
9291 * features/i386/i386-avx512.c: Likewise.
9292 * features/i386/i386-avx512.xml: Likewise.
9293 * features/i386/x32-avx512-linux.c: Likewise.
9294 * features/i386/x32-avx512-linux.xml: Likewise.
9295 * features/i386/x32-avx512.c: Likewise.
9296 * features/i386/x32-avx512.xml: Likewise.
9297 * regformats/i386/amd64-avx512-linux.dat: New file.
9298 * regformats/i386/amd64-avx512.dat: Likewise.
9299 * regformats/i386/i386-avx512-linux.dat: Likewise.
9300 * regformats/i386/i386-avx512.dat: Likewise.
9301 * regformats/i386/x32-avx512-linux.dat: Likewise.
9302 * regformats/i386/x32-avx512.dat: Likewise.
9303 * NEWS: Add note about new support for AVX512.
9306 2014-04-23 Pedro Alves <palves@redhat.com>
9308 * breakpoint.c (insert_bp_location): Tolerate errors if the
9309 breakpoint is set in a user-loaded objfile.
9310 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9311 location is marked shlib_disabled. If the breakpoint is set in a
9312 user-loaded objfile is a GDB-side memory breakpoint, validate it
9313 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9314 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9316 * mem-break.c (memory_validate_breakpoint): New function.
9317 * objfiles.c (userloaded_objfile_contains_address_p): New
9319 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9320 * target.h (memory_validate_breakpoint): New declaration.
9322 2014-04-23 Pedro Alves <palves@redhat.com>
9324 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9325 the breakpoint is set in a shared library, only suppress
9326 errors for software breakpoints, not hardware breakpoints.
9328 2014-04-22 Pedro Alves <palves@redhat.com>
9330 * infrun.c (schedlock_applies): New function, factored out from
9331 find_thread_needs_step_over.
9332 (find_thread_needs_step_over): Use it.
9333 (switch_back_to_stepped_thread): Always clear trap_expected if the
9334 step over is finished. Return early if scheduler locking applies.
9335 Look for the stepping thread and a potential step-over thread with
9337 (currently_stepping_or_nexting_callback): Delete.
9339 2014-04-22 Nick Clifton <nickc@redhat.com>
9341 * NEWS: Mention that ARM sim now supports tracing.
9343 2014-04-22 Yao Qi <yao@codesourcery.com>
9345 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9347 * tracefile.c (tracefile_fetch_registers): ... it. New
9349 * tracefile.h (tracefile_fetch_registers): Declare.
9350 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9351 tracefile_fetch_registers.
9353 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9356 * windows-nat.c (thread_rec): Don't display a warning when
9357 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9358 fails for any reason, set th->suspended to -1, so that we don't
9359 try to resume such a thread. Also, don't return NULL in these
9360 cases, to avoid completely ruin the session due to "PC register is
9361 not available" error.
9362 (do_windows_fetch_inferior_registers): Check errors in
9363 GetThreadContext call.
9364 (windows_continue): Accept an additional argument KILLED; if not
9365 zero, ignore errors in the SetThreadContext call, since the
9366 inferior was killed and is shutting down.
9367 (windows_resume, get_windows_debug_event)
9368 (windows_create_inferior, windows_mourn_inferior)
9369 (windows_kill_inferior): All callers of windows_continue changed
9370 to adjust to its new calling sequence.
9372 2014-04-19 Yao Qi <yao@codesourcery.com>
9374 * ctf.c (ctf_open): Call post_create_inferior.
9376 2014-04-19 Yao Qi <yao@codesourcery.com>
9378 * ctf.c (handle_id): New static variable.
9379 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9380 value. Get the declaration of event "register" and get length
9381 of field "contents".
9383 2014-04-19 Yao Qi <yao@codesourcery.com>
9385 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9387 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9389 * valops.c (oload_method_static): Remove unnecessary argument
9390 METHOD. Update all callers.
9392 2014-04-18 Pedro alves <palves@redhat.com>
9393 Tom Tromey <tromey@redhat.com>
9396 * frame.c (get_prev_frame_1): Rename to ...
9397 (get_prev_frame_always): ... this, and make extern. Adjust.
9398 (skip_artificial_frames): Use get_prev_frame_always.
9399 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9400 (get_frame_unwind_stop_reason): Adjust to rename.
9401 * frame.h (get_prev_frame_always): Declare.
9402 * inline-frame.c: Include frame.h.
9403 (inline_frame_this_id): Use get_prev_frame_always.
9405 2014-04-18 Tristan Gingold <gingold@adacore.com>
9407 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9408 code by using bfd_mach_o_get_base_address.
9410 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9412 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9413 (spu_ax_pseudo_register_collect): New function.
9414 (spu_ax_pseudo_register_push_stack): Likewise.
9415 (spu_dwarf_reg_to_regnum): Likewise.
9416 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9418 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9420 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9421 Replace FRAME argument with FRAME_ID.
9422 * gdbarch.c, gdbarch.h: Regenerate.
9423 * findvar.c (default_value_from_register): Add GDBARCH argument;
9424 replace FRAME by FRAME_ID. No longer call get_frame_id.
9425 (value_from_register): Update call to gdbarch_value_from_register.
9426 * value.h (default_value_from_register): Update prototype.
9427 * s390-linux-tdep.c (s390_value_from_register): Update interface
9428 and call to default_value_from_register.
9429 * spu-tdep.c (spu_value_from_register): Likewise.
9431 * findvar.c (address_from_register): Remove TYPE argument.
9432 Do not call value_from_register; use gdbarch_value_from_register
9433 with null_frame_id instead.
9434 * value.h (address_from_register): Update prototype.
9435 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9436 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9437 address_from_register interface change.
9439 2014-04-17 Yao Qi <yao@codesourcery.com>
9441 * gdbtypes.h: Update comments to link to types and macros'
9444 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9446 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9448 2014-04-16 Keith Seitz <keiths@redhat.com>
9451 * dwarf2read.c (skip_one_die): Check that all relative-offset
9452 sibling DIEs fall within range of the current reader's buffer.
9453 (read_partial_die): Likewise.
9455 2014-04-16 Keith Seitz <keiths@redhat.com>
9458 * cp-namespace.c (lookup_symbol_file): If the type name of
9459 `this' is NULL, return immediately.
9461 2014-04-14 Keith Seitz <keiths@redhat.com>
9464 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9465 from symbol_matches_domain in symtab.c. All local callers
9466 of symbol_matches_domain updated.
9467 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9468 search STRUCT_DOMAIN.
9469 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9470 independently. standard_lookup will do that automatically.
9471 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9472 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9473 (cp_lookup_symbol_in_namespace): Likewise.
9474 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9475 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9476 may return a STRUCT_DOMAIN match.
9477 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9478 * cp-support.c: Include language.h.
9479 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9481 * psymtab.c (match_partial_symbol): Compare the requested
9482 domain with the symbol's domain directly.
9483 (lookup_partial_symbol): Likewise.
9484 * symtab.c (lookup_symbol_in_language): Explain when/why
9485 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9486 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9487 appropriate languages.
9488 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9489 and moved to ada-lang.c
9490 (lookup_block_symbol): Explain that this function only returns
9491 symbol matching the requested DOMAIN.
9492 Compare the requested domain with the symbol's domain directly.
9493 (iterate_over_symbols): Compare the requested domain with the
9494 symbol's domain directly.
9495 * symtab.h (symbol_matches_domain): Remove.
9497 2014-04-14 Tom Tromey <tromey@redhat.com>
9500 * c-exp.y (type_aggregate_p): New function.
9501 (qualified_name, classify_inner_name): Use it.
9502 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9503 and TYPE_TARGET_TYPE of an enum type.
9504 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9506 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9507 handle TYPE_DECLARED_CLASS.
9508 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9510 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9511 * valops.c (enum_constant_from_type): New function.
9512 (value_aggregate_elt): Use it.
9513 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9516 2014-04-14 Tom Tromey <tromey@redhat.com>
9518 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9519 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9521 * value.h (value_aggregate_elt): Update.
9523 2014-04-14 Tom Tromey <tromey@redhat.com>
9525 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9527 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9529 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9530 (evaluate_subexp_standard): Pass noside argument.
9531 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9532 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9533 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9534 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9535 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9537 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9539 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9540 points to a constant blob.
9542 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9544 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9545 property and store it as the high bound and flag the range accordingly.
9546 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9547 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9548 * gdbtypes.h (enum range_flags): New enum.
9549 (struct range_bounds): Add flags member.
9551 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9553 * c-typeprint.c (c_type_print_varspec_suffix): Added
9554 check for not yet resolved high bound. If unresolved, print
9555 "variable length" string to the console instead of random
9558 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9560 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9562 (ada_template_to_fixed_record_type_1): Likewise.
9563 (ada_to_fixed_type_1): Likewise.
9564 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9565 (cp_print_value): Likewise.
9566 * d-valprint.c (dynamic_array_type): Likewise.
9567 * findvar.c (address_of_variable): Likewise.
9568 * jv-valprint.c (java_value_print): Likewise.
9569 * valops.c (value_ind): Likewise.
9570 * value.c (coerce_ref): Likewise.
9572 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9574 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9575 value and retrieve the dynamic type size.
9577 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9579 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9580 passed to sizeof is dynamic evaluate the argument to compute the length.
9582 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9583 Joel Brobecker <brobecker@adacore.com>
9585 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9586 (dwarf2_evaluate_property): New function.
9587 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9588 * dwarf2read.c (attr_to_dynamic_prop): New function.
9589 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9591 * gdbtypes.c: Include dwarf2loc.h.
9592 (is_dynamic_type): New function.
9593 (resolve_dynamic_type): New function.
9594 (resolve_dynamic_bounds): New function.
9595 (get_type_length): New function.
9596 (check_typedef): Use get_type_length to compute type length.
9597 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9598 (TYPE_LOW_BOUND_KIND): New macro.
9599 (is_dynamic_type): New function prototype.
9600 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9601 to resolve dynamic properties of the type. Update comment.
9602 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9604 2014-04-14 Richard Henderson <rth@redhat.com>
9606 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9608 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9609 Doug Evans <xdje42@gmail.com>
9611 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9612 dereference TYPE_CODE_REF values.
9614 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9616 Revert the following changes due to regressions:
9618 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9619 (dwarf2_evaluate_property): New function.
9620 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9621 * dwarf2read.c (attr_to_dynamic_prop): New function.
9622 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9624 * gdbtypes.c: Include dwarf2loc.h.
9625 (is_dynamic_type): New function.
9626 (resolve_dynamic_type): New function.
9627 (resolve_dynamic_bounds): New function.
9628 (get_type_length): New function.
9629 (check_typedef): Use get_type_length to compute type length.
9630 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9631 (TYPE_LOW_BOUND_KIND): New macro.
9632 (is_dynamic_type): New function prototype.
9633 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9634 to resolve dynamic properties of the type. Update comment.
9635 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9637 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9638 passed to sizeof is dynamic evaluate the argument to compute the length.
9640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9641 value and retrieve the dynamic type size.
9643 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9644 (ada_template_to_fixed_record_type_1): Likewise.
9645 (ada_to_fixed_type_1): Likewise.
9646 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9647 (cp_print_value): Likewise.
9648 * d-valprint.c (dynamic_array_type): Likewise.
9649 * eval.c (evaluate_subexp_with_coercion): Likewise.
9650 * findvar.c (address_of_variable): Likewise.
9651 * jv-valprint.c (java_value_print): Likewise.
9652 * valops.c (value_ind): Likewise.
9653 * value.c (coerce_ref): Likewise.
9655 * c-typeprint.c (c_type_print_varspec_suffix): Added
9656 check for not yet resolved high bound. If unresolved, print
9657 "variable length" string to the console instead of random
9660 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9661 property and store it as the high bound and flag the range accordingly.
9662 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9663 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9664 * gdbtypes.h (enum range_flags): New enum.
9665 (struct range_bounds): Add flags member.
9667 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9668 points to a constant blob.
9670 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9671 (evaluate_subexp_standard): Pass noside argument.
9672 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9673 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9674 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9675 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9676 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9678 2014-04-11 Keith Seitz <keiths@redhat.com>
9681 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9682 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9688 (evaluate_subexp_standard): Pass noside argument.
9689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9695 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9697 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9698 points to a constant blob.
9700 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9702 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9703 property and store it as the high bound and flag the range accordingly.
9704 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9705 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9706 * gdbtypes.h (enum range_flags): New enum.
9707 (struct range_bounds): Add flags member.
9709 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9711 * c-typeprint.c (c_type_print_varspec_suffix): Added
9712 check for not yet resolved high bound. If unresolved, print
9713 "variable length" string to the console instead of random
9716 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9718 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9719 (ada_template_to_fixed_record_type_1): Likewise.
9720 (ada_to_fixed_type_1): Likewise.
9721 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9722 (cp_print_value): Likewise.
9723 * d-valprint.c (dynamic_array_type): Likewise.
9724 * eval.c (evaluate_subexp_with_coercion): Likewise.
9725 * findvar.c (address_of_variable): Likewise.
9726 * jv-valprint.c (java_value_print): Likewise.
9727 * valops.c (value_ind): Likewise.
9728 * value.c (coerce_ref): Likewise.
9730 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9732 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9733 value and retrieve the dynamic type size.
9735 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9737 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9738 passed to sizeof is dynamic evaluate the argument to compute the length.
9740 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9742 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9743 (dwarf2_evaluate_property): New function.
9744 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9745 * dwarf2read.c (attr_to_dynamic_prop): New function.
9746 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9748 * gdbtypes.c: Include dwarf2loc.h.
9749 (is_dynamic_type): New function.
9750 (resolve_dynamic_type): New function.
9751 (resolve_dynamic_bounds): New function.
9752 (get_type_length): New function.
9753 (check_typedef): Use get_type_length to compute type length.
9754 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9755 (TYPE_LOW_BOUND_KIND): New macro.
9756 (is_dynamic_type): New function prototype.
9757 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9758 to resolve dynamic properties of the type. Update comment.
9759 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9761 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9763 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9764 declaring high/low bounds and change uses accordingly. Call
9765 create_range_type instead of create_static_range_type.
9766 * gdbtypes.c (create_range_type): New function.
9767 (create_range_type): Convert bounds into struct bound_prop and pass
9768 them to create_range_type.
9769 * gdbtypes.h (struct bound_prop): New struct.
9770 (create_range_type): New function prototype.
9771 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9772 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9773 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9775 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9779 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9780 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9781 * ada-lang.c: All uses of create_range_type updated.
9782 * coffread.c: All uses of create_range_type updated.
9783 * dwarf2read.c: All uses of create_range_type updated.
9784 * f-exp.y: All uses of create_range_type updated.
9785 * m2-valprint.c: All uses of create_range_type updated.
9786 * mdebugread.c: All uses of create_range_type updated.
9787 * stabsread.c: All uses of create_range_type updated.
9788 * valops.c: All uses of create_range_type updated.
9789 * valprint.c: All uses of create_range_type updated.
9791 2014-04-10 Pedro Alves <palves@redhat.com>
9793 * breakpoint.c (single_step_breakpoints)
9794 (single_step_gdbarch): Move up in the file.
9795 (one_breakpoint_xfer_memory): New function, factored out from ...
9796 (breakpoint_xfer_memory): ... here. Also process single-step
9799 2014-04-09 Tristan Gingold <gingold@adacore.com>
9801 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9803 (darwin_decode_exception_message): Free port only after use.
9805 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9807 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9808 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9809 when setting the size of call_length.
9811 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9813 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9814 dereference TYPE_CODE_REF values.
9816 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9818 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9819 end of warning message.
9821 2014-04-03 Doug Evans <dje@google.com>
9823 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9824 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9826 2014-04-02 Alan Modra <amodra@gmail.com>
9828 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9829 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9830 (struct symbol_file_add_from_memory_args): Add size field.
9831 (find_vdso_size): New function.
9832 (add_vsyscall_page): Attempt to find vdso size.
9834 2014-04-01 Doug Evans <dje@google.com>
9836 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9838 2014-04-01 Tristan Gingold <gingold@adacore.com>
9840 * darwin-nat.c (darwin_encode_reply): Add prototype.
9841 (darwin_decode_exception_message): Reply to unknown inferiors.
9842 (darwin_decode_message): Handle message by id. Ignore message
9843 to unknown inferior.
9844 (darwin_wait): Discard unknown messages, add debug trace.
9846 2014-03-31 Doug Evans <dje@google.com>
9848 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9851 2014-03-31 Doug Evans <dje@google.com>
9853 New option "set print symbol-loading".
9855 * solib.c (solib_read_symbols): Only print symbol loading messages
9857 (solib_add): If symbol loading is in "brief" mode, notify user
9858 symbols are being loaded.
9859 (reload_shared_libraries_1): Ditto.
9860 * symfile.c (print_symbol_loading_off): New static global.
9861 (print_symbol_loading_brief): New static global.
9862 (print_symbol_loading_full): New static global.
9863 (print_symbol_loading_enums): New static global.
9864 (print_symbol_loading): New static global.
9865 (print_symbol_loading_p): New function.
9866 (symbol_file_add_with_addrs): Only print symbol loading messages
9868 (_initialize_symfile): Register "print symbol-loading" set/show
9870 * symfile.h (print_symbol_loading_p): Declare.
9872 2014-03-30 Doug Evans <xdje42@gmail.com>
9874 * infrun.c (set_last_target_status): New function.
9875 (handle_inferior_event): Call it.
9877 2014-03-30 Doug Evans <xdje42@gmail.com>
9879 * inferior.h (enum stop_kind): Improve comment.
9881 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9883 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9884 a reference, strip the reference layer before calling
9885 the lang_ops value_has_mutated callback.
9887 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9889 Remove some globals from our parser.
9890 * language.c (unk_lang_parser): Add "struct parser_state"
9892 * language.h (struct language_defn) <la_parser>: Likewise.
9893 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9894 (initialize_expout): Add "struct parser_state" argument.
9895 Rewrite function to use the parser state.
9896 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9897 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9898 write_exp_elt_longcst, write_exp_elt_dblcst,
9899 write_exp_elt_decfloatcst, write_exp_elt_type,
9900 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9901 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9902 write_dollar_variable): Likewise.
9903 (parse_exp_in_context_1): Use parser state.
9904 (insert_type_address_space): Add "struct parser_state" argument.
9906 (increase_expout_size): New function.
9907 * parser-defs.h: Forward declare "struct language_defn" and
9908 "struct parser_state".
9909 (expout, expout_size, expout_ptr): Remove extern declarations.
9910 (parse_gdbarch, parse_language): Rewrite macro declarations to
9911 accept the parser state.
9912 (struct parser_state): New struct.
9913 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9914 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9915 write_exp_elt_decfloatcst, write_exp_elt_type,
9916 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9917 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9918 write_exp_msymbol, write_dollar_variable,
9919 mark_struct_expression, insert_type_address_space): Add "struct
9920 parser_state" argument.
9921 (increase_expout_size): New function.
9922 * utils.c (do_clear_parser_state): New function.
9923 (make_cleanup_clear_parser_state): Likewise.
9924 * utils.h (make_cleanup_clear_parser_state): New function
9926 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9927 Update calls to write_exp* in order to pass the parser state.
9928 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9929 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9930 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9931 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9932 * stap-probe.c (stap_parse_register_operand): Likewise.
9933 (stap_parse_single_operand): Likewise.
9934 (stap_parse_argument_1): Likewise.
9935 (stap_parse_argument): Use parser state.
9936 * stap-probe.h: Include "parser-defs.h".
9937 (struct stap_parse_info) <pstate>: New field.
9938 * c-exp.y (parse_type): Rewrite to use parser state.
9939 (yyparse): Redefine to c_parse_internal.
9940 (pstate): New global variable.
9941 (parse_number): Add "struct parser_state" argument.
9942 (write_destructor_name): Likewise.
9943 (type_exp): Update calls to write_exp* and similars in order to
9945 (exp1, exp, variable, qualified_name, space_identifier,
9946 typename, typebase): Likewise.
9947 (write_destructor_name, parse_number, lex_one_token,
9948 classify_name, classify_inner_name, c_parse): Add "struct
9949 parser_state" argument. Update function to use parser state.
9950 * c-lang.h: Forward declare "struct parser_state".
9951 (c_parse): Add "struct parser_state" argument.
9952 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9953 (yyparse): Redefine macro to ada_parse_internal.
9954 (pstate): New variable.
9955 (write_int, write_object_renaming, write_var_or_type,
9956 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9957 type_int, type_long, type_long_long, type_float, type_double,
9958 type_long_double, type_char, type_boolean, type_system_address):
9959 Add "struct parser_state" argument.
9960 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9961 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9962 var_or_type, aggregate, aggregate_component_list,
9963 positional_list, others, component_group,
9964 component_associations): Update calls to write_exp* and similar
9965 functions in order to use parser state.
9966 (ada_parse, write_var_from_sym, write_int,
9967 write_exp_op_with_string, write_object_renaming,
9968 find_primitive_type, write_selectors, write_ambiguous_var,
9969 write_var_or_type, write_name_assoc, type_int, type_long,
9970 type_long_long, type_float, type_double, type_long_double,
9971 type_char, type_boolean, type_system_address): Add "struct
9972 parser_state" argument. Adjust function to use parser state.
9973 * ada-lang.c (parse): Likewise.
9974 * ada-lang.h: Forward declare "struct parser_state".
9975 (ada_parse): Add "struct parser_state" argument.
9976 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9977 calls to both functions.
9978 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9980 (yyparse): Redefine macro to f_parse_internal.
9981 (pstate): New variable.
9982 (parse_number): Add "struct parser_state" argument.
9983 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9984 and similars in order to use parser state.
9985 (parse_number): Adjust code to use parser state.
9987 (f_parse): New function.
9988 * f-lang.h: Forward declare "struct parser_state".
9989 (f_parse): Add "struct parser_state" argument.
9990 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9992 (yyparse): Redefine macro for java_parse_internal.
9993 (pstate): New variable.
9994 (push_expression_name, push_expression_name, insert_exp): Add
9995 "struct parser_state" argument.
9996 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9997 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9998 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9999 PostIncrementExpression, PostDecrementExpression,
10000 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10001 UnaryExpressionNotPlusMinus, CastExpression,
10002 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10003 RelationalExpression, EqualityExpression, AndExpression,
10004 ExclusiveOrExpression, InclusiveOrExpression,
10005 ConditionalAndExpression, ConditionalOrExpression,
10006 ConditionalExpression, Assignment, LeftHandSide): Update
10007 calls to write_exp* and similars in order to use parser state.
10008 (parse_number): Ajust code to use parser state.
10010 (java_parse): New function.
10011 (push_variable): Add "struct parser_state" argument. Adjust
10012 code to user parser state.
10013 (push_fieldnames, push_qualified_expression_name,
10014 push_expression_name, insert_exp): Likewise.
10015 * jv-lang.h: Forward declare "struct parser_state".
10016 (java_parse): Add "struct parser_state" argument.
10017 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10019 (yyparse): Redefine macro to m2_parse_internal.
10020 (pstate): New variable.
10021 (type_exp, exp, fblock, variable, type): Update calls to
10022 write_exp* and similars to use parser state.
10024 (m2_parse): New function.
10025 * m2-lang.h: Forward declare "struct parser_state".
10026 (m2_parse): Add "struct parser_state" argument.
10027 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10028 * objc-lang.h: Forward declare "struct parser_state".
10029 (end_msglist): Add "struct parser_state" argument.
10030 * p-exp.y (parse_type): Rewrite macro to use parser state.
10031 (yyparse): Redefine macro to pascal_parse_internal.
10032 (pstate): New variable.
10033 (parse_number): Add "struct parser_state" argument.
10034 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10035 write_exp* and similars in order to use parser state.
10036 (parse_number, yylex): Adjust code to use parser state.
10037 (pascal_parse): New function.
10038 * p-lang.h: Forward declare "struct parser_state".
10039 (pascal_parse): Add "struct parser_state" argument.
10040 * go-exp.y (parse_type): Rewrite macro to use parser state.
10041 (yyparse): Redefine macro to go_parse_internal.
10042 (pstate): New variable.
10043 (parse_number): Add "struct parser_state" argument.
10044 (type_exp, exp1, exp, variable, type): Update calls to
10045 write_exp* and similars in order to use parser state.
10046 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10047 to use parser state.
10048 (go_parse): Likewise.
10049 * go-lang.h: Forward declare "struct parser_state".
10050 (go_parse): Add "struct parser_state" argument.
10052 2014-03-27 Doug Evans <dje@google.com>
10054 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10056 2014-03-27 Doug Evans <dje@google.com>
10058 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10059 Remove argument abbrev_section. All callers updated.
10061 2014-03-27 Doug Evans <dje@google.com>
10063 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10064 addr_base, ranges_base.
10066 2014-03-26 Keith Seitz <keiths@redhat.com>
10068 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10069 types, not VAR_DOMAIN.
10071 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10073 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10075 * features/nios2-linux.c: Regenerated.
10076 * features/nios2.c: Regenerated.
10078 2014-03-25 Pedro Alves <palves@redhat.com>
10080 * cli/cli-script.c (script_from_file): Force the interpreter to
10083 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10085 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10086 small stack allocation.
10088 2014-03-24 Tristan Gingold <gingold@adacore.com>
10090 * darwin-nat.c (exc_server): Remove unused prototype.
10091 (darwin_dump_message): Correctly display data on x86_64.
10092 (darwin_encode_reply): Fix style.
10093 Add comments and fix indentation.
10095 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10097 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10099 2014-03-22 Doug Evans <xdje42@gmail.com>
10101 * infcmd.c: Whitespace fixes.
10102 (interrupt_command): Merge two function comments into one.
10104 2014-03-22 Doug Evans <xdje42@gmail.com>
10106 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10109 2014-03-22 Yao Qi <yao@codesourcery.com>
10111 * remote.c (target_read_live_memory): Remove.
10112 (memory_xfer_live_readonly_partial): Rename it to
10113 remote_xfer_live_readonly_partial. Remove argument 'object'.
10114 All callers updated. Call remote_read_bytes_1
10115 instead of target_read_live_memory.
10116 * tracepoint.c (set_traceframe_number): Remove.
10117 (make_cleanup_restore_traceframe_number): Likewise .
10118 * tracepoint.h (set_traceframe_number): Remove declaration.
10119 (make_cleanup_restore_traceframe_number): Likewise.
10121 2014-03-22 Yao Qi <yao@codesourcery.com>
10123 * remote.c (remote_read_bytes): Move code on reading from the
10125 (remote_read_bytes_1): ... here. New function.
10127 2014-03-22 Yao Qi <yao@codesourcery.com>
10129 * ctf.c (ctf_xfer_partial): Check the return value of
10130 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10131 return TARGET_XFER_UNAVAILABLE.
10132 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10133 * target.c (target_read_live_memory): Move it to remote.c.
10134 (memory_xfer_live_readonly_partial): Likewise.
10135 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10136 * remote.c (target_read_live_memory): Moved from target.c.
10137 (memory_xfer_live_readonly_partial): Likewise.
10138 (remote_read_bytes): Factored out from
10139 memory_xfer_partial_1.
10141 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10143 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10146 2014-03-21 Pedro Alves <palves@redhat.com>
10148 * infrun.c (normal_stop): Extend comment.
10150 2014-03-21 Hui Zhu <hui@codesourcery.com>
10151 Pedro Alves <palves@redhat.com>
10153 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10155 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10156 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10157 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10159 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10161 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10162 `z' formatted output modifier.
10164 2014-03-20 Tom Tromey <tromey@redhat.com>
10165 Sergio Durigan Junior <sergiodj@redhat.com>
10167 * probe.c (parse_probes): Turn assert into an ordinary error.
10168 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10169 exceptions when parsing probes. Rearrange the code for clarity.
10171 2014-03-20 Tom Tromey <tromey@redhat.com>
10174 * top.c (execute_command): Only dispatch events if the command
10175 started the target.
10177 2014-03-20 Tom Tromey <tromey@redhat.com>
10180 * infcall.c: Include event-top.h.
10181 (run_inferior_call): Call async_disable_stdin if needed.
10183 2014-03-20 Pedro Alves <palves@redhat.com>
10185 * infrun.c (prepare_to_proceed): Delete.
10186 (thread_still_needs_step_over): New function.
10187 (find_thread_needs_step_over): New function.
10188 (proceed): If the current thread needs a step-over, set its
10189 steping_over_breakpoint flag. Adjust to use
10190 find_thread_needs_step_over instead of prepare_to_proceed.
10191 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10192 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10194 (switch_back_to_stepped_thread): Step over breakpoints of all
10195 threads not the stepping thread, before switching back to the
10198 2014-03-20 Pedro Alves <palves@redhat.com>
10200 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10202 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10203 * infrun.c (saved_singlestep_ptid)
10204 (stepping_past_singlestep_breakpoint): Delete.
10205 (resume): Remove stepping_past_singlestep_breakpoint handling.
10206 (proceed): Store the prev_pc of the stepping thread too.
10207 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10209 (enum infwait_states): Delete infwait_thread_hop_state.
10210 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10212 (handle_inferior_event): Adjust.
10213 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10214 handling and the thread-hop code. Before removing single-step
10215 breakpoints, check whether the thread hit a single-step breakpoint
10216 of another thread. If it did, the trap is not a random signal.
10217 (switch_back_to_stepped_thread): If the event thread hit a
10218 single-step breakpoint, unblock it before switching to the
10219 stepping thread. Handle the case of the stepped thread having
10221 (keep_going): Handle the case of the current thread moving past a
10222 single-step breakpoint.
10224 2014-03-20 Pedro Alves <palves@redhat.com>
10226 PR breakpoints/7143
10227 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10228 are being stepped over.
10229 (breakpoint_address_match): Make extern.
10230 * breakpoint.h (breakpoint_address_match): New declaration.
10231 * inferior.h (stepping_past_instruction_at): New declaration.
10232 * infrun.c (struct step_over_info): New type.
10233 (step_over_info): New global.
10234 (set_step_over_info, clear_step_over_info)
10235 (stepping_past_instruction_at): New functions.
10236 (handle_inferior_event): Clear the step-over info when
10237 trap_expected is cleared.
10238 (resume): Remove now stale comment.
10239 (clear_proceed_status): Clear step-over info.
10240 (proceed): Adjust step-over handling to set or clear the step-over
10241 info instead of removing all breakpoints.
10242 (handle_signal_stop): When setting up a thread-hop, don't remove
10244 (stop_stepping): Clear step-over info.
10245 (keep_going): Adjust step-over handling to set or clear step-over
10246 info and then always inserting breakpoints, instead of removing
10247 all breakpoints when stepping over one.
10249 2014-03-20 Pedro Alves <palves@redhat.com>
10251 * infrun.c (previous_inferior_ptid): Adjust comment.
10252 (deferred_step_ptid): Delete.
10253 (infrun_thread_ptid_changed, prepare_to_proceed)
10254 (init_wait_for_inferior): Adjust.
10255 (handle_signal_stop): Delete deferred_step_ptid handling.
10257 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10260 * defs.h (sync_quit_force_run): New declaration.
10261 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10262 * event-top.c (async_sigterm_handler): New declaration.
10263 (async_sigterm_token): New variable.
10264 (async_init_signals): Create also async_sigterm_token.
10265 (async_sigterm_handler): New function.
10266 (sync_quit_force_run): New variable.
10267 (handle_sigterm): Replace quit_force call by other calls.
10268 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10270 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10272 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10273 offset into SPE pseudo registers.
10275 2014-03-18 Pedro Alves <palves@redhat.com>
10278 * inferior.h (print_stop_event): Declare.
10279 * infrun.c (print_stop_event): New, factored out from ...
10280 (normal_stop): ... this.
10281 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10282 of bpstat_print/print_stack_frame.
10284 2014-03-17 Tom Tromey <tromey@redhat.com>
10286 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10288 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10290 * ada-lang.c (decode_constrained_packed_array): Perform a
10291 minimal coercion for reference with coerce_ref instead of
10294 2014-03-17 Tristan Gingold <gingold@adacore.com>
10296 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10297 (darwin_solib_create_inferior_hook): Emit a warning if version
10300 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10302 * python/py-value.c (get_field_flag): Cast flag_name argument to
10303 PyObject_GetAttrString to support Python 2.4.
10305 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10307 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10308 (Global Maintainers): Remove Jan Kratochvil.
10310 2014-03-14 Pedro Alves <palves@redhat.com>
10312 * inferior.h (terminal_ours_for_output): Rename to ...
10313 (child_terminal_ours_for_output): ... this.
10314 (terminal_save_ours): Rename to ...
10315 (child_terminal_save_ours): ... this.
10316 (terminal_ours): Rename to ...
10317 (child_terminal_ours): ... this.
10318 (terminal_inferior): Rename to ...
10319 (child_terminal_inferior): ... this.
10320 (terminal_init_inferior): Rename to ...
10321 (child_terminal_init_inferior): ... this.
10322 (terminal_init_inferior_with_pgrp): Rename to ...
10323 (child_terminal_init_inferior_with_pgrp): ... this.
10324 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10325 (child_terminal_init_with_pgrp): ... this.
10326 (terminal_save_ours): Rename to ...
10327 (child_terminal_save_ours): ... this.
10328 (terminal_init_inferior): Rename to ...
10329 (child_terminal_init): ... this. Adjust.
10330 (terminal_inferior): Rename to ...
10331 (child_terminal_inferior): ... this.
10332 (terminal_ours_for_output): Rename to ...
10333 (child_terminal_ours_for_output): ... this. Adjust.
10334 (terminal_ours): Rename to ...
10335 (child_terminal_ours): ... this.
10336 (terminal_ours_1): Rename to ...
10337 (child_terminal_ours_1): ... this. Adjust.
10338 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10339 * windows-nat.c (do_initial_windows_stuff): Adjust.
10340 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10341 (gnu_terminal_init): ... this. Adjust.
10342 (gnu_target): Adjust.
10343 * inf-child.c (inf_child_target): Adjust.
10345 2014-03-13 Doug Evans <xdje42@gmail.com>
10348 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10351 2014-03-13 Doug Evans <xdje42@gmail.com>
10353 * value.c (record_latest_value): Call release_value_or_incref
10354 instead of release_value.
10356 2014-03-13 Pedro Alves <palves@redhat.com>
10358 * procfs.c (procfs_target): Don't override to_shortname,
10359 to_longname or to_doc.
10361 2014-03-13 Pedro Alves <palves@redhat.com>
10363 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10364 Unix in user visible strings.
10366 2014-03-12 Stan Shebs <stan@codesourcery.com>
10368 * gdbtypes.h: Annotate comments for Doxygen, add a page
10369 block comment with some general info.
10371 2014-03-12 Pedro Alves <palves@redhat.com>
10373 * infcmd.c (prepare_execution_command): New function, factored out
10374 from several execution commands.
10375 (run_command_1, continue_command, step_1, jump_command)
10376 (signal_command, until_command, advance_command, finish_command)
10377 (attach_command): Use prepare_execution_command.
10379 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10381 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10382 (MAX_BPTS): Define.
10383 (MAX_WPTS): Define.
10384 (struct arm_linux_thread_points): Removed.
10385 (struct arm_linux_process_info): New.
10386 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10387 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10388 (arm_linux_find_breakpoints_by_tid): Removed.
10389 (struct arch_lwp_info): New.
10390 (arm_linux_find_process_pid): New functions.
10391 (arm_linux_add_process): New functions.
10392 (arm_linux_process_info_get): New functions.
10393 (arm_linux_forget_process): New function.
10394 (arm_linux_get_debug_reg_state): New function.
10395 (struct update_registers_data): New.
10396 (update_registers_callback): New function.
10397 (arm_linux_insert_hw_breakpoint1): Updated.
10398 (arm_linux_remove_hw_breakpoint1): Updated.
10399 (arm_linux_insert_hw_breakpoint): Updated.
10400 (arm_linux_remove_hw_breakpoint): Updated.
10401 (arm_linux_insert_watchpoint): Updated.
10402 (arm_linux_remove_watchpoint): Updated.
10403 (arm_linux_new_thread): Updated.
10404 (arm_linux_prepare_to_resume): New function.
10405 (arm_linux_new_fork): New function.
10406 (_initialize_arm_linux_nat): Updated.
10408 2014-03-12 Pedro Alves <palves@redhat.com>
10410 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10412 2014-03-12 Tom Tromey <tromey@redhat.com>
10414 * inf-child.c (return_zero): New function.
10415 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10416 * aix-thread.c (aix_thread_inferior_created): New function.
10417 (aix_thread_attach): Remove.
10418 (init_aix_thread_ops): Don't set to_attach.
10419 (_initialize_aix_thread): Register inferior_created observer.
10420 * corelow.c (init_core_ops): Don't set to_attach or
10421 to_create_inferior.
10422 * exec.c (init_exec_ops): Don't set to_attach or
10423 to_create_inferior.
10424 * infcmd.c (run_command_1): Use find_run_target. Make direct
10426 (attach_command): Use find_attach_target. Make direct target
10428 * record-btrace.c (init_record_btrace_ops): Don't set
10429 to_create_inferior.
10430 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10432 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10433 set to_create_inferior.
10434 * target.c (complete_target_initialization): Add assertion.
10435 (target_create_inferior): Remove.
10436 (find_default_attach, find_default_create_inferior): Remove.
10437 (find_attach_target, find_run_target): New functions.
10438 (find_default_is_async_p, find_default_can_async_p)
10439 (target_supports_non_stop, target_attach): Remove.
10440 (init_dummy_target): Don't set to_create_inferior or
10441 to_supports_non_stop.
10442 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10443 TARGET_DEFAULT_FUNC.
10444 <to_create_inferior>: Add comment.
10445 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10446 TARGET_DEFAULT_RETURN.
10447 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10448 (find_attach_target, find_run_target): Declare.
10449 (target_create_inferior): Remove.
10450 (target_has_execution_1): Update comment.
10451 (target_supports_non_stop): Remove.
10452 * target-delegates.c: Rebuild.
10454 2014-03-12 Pedro Alves <palves@redhat.com>
10456 * inf-child.h: Update comment to not mention Unix.
10458 2014-03-12 Pedro Alves <palves@redhat.com>
10460 * inf-child.c: Update top comment to not mention Unix. Add
10461 generic comment describing how this target is meant to be used.
10462 (inf_child_post_attach, inf_child_post_startup_inferior)
10463 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10466 2014-03-12 Pedro Alves <palves@redhat.com>
10468 * nto-procfs.c: Include inf-child.h.
10469 (procfs_ops): Delete global.
10470 (procfs_can_run): Delete method.
10471 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10472 target pointer instead of referencing procfs_ops.
10473 (procfs_prepare_to_store): Delete.
10474 (init_procfs_ops): Delete function.
10475 (procfs_target): New function, based on init_procfs_ops, but
10476 inherit inf_child_target.
10477 (_initialize_procfs): Use procfs_target.
10479 2014-03-12 Pedro Alves <palves@redhat.com>
10481 * windows-nat.c: Include inf-child.h.
10482 (windows_ops): Delete global.
10483 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10485 (init_windows_ops): Delete function.
10486 (windows_target): New function, based on init_windows_ops, but
10487 inherit inf_child_target.
10488 (_initialize_windows_nat): Use windows_target. Install x86
10489 specific target methods here.
10491 2014-03-10 Doug Evans <xdje42@gmail.com>
10493 * guile/guile.c (call_initialize_gdb_module): New function.
10494 (initialize_guile): Replace call to scm_init_guile with call to
10497 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10499 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10500 in call to TYPE_CODE macro.
10502 2014-03-10 Jerome Guitton <guitton@adacore.com>
10504 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10505 Resolve tagged types to full view.
10507 2014-03-10 Hui Zhu <hui@codesourcery.com>
10509 * target.h (target_insert_breakpoint): Remove "hardware" from its
10512 2014-03-07 Doug Evans <dje@google.com>
10514 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10516 2014-03-07 Doug Evans <dje@google.com>
10518 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10519 Remove unused local comp_dir_attr. Assert exactly one of
10520 stub_comp_unit_die, stub_comp_dir is non-NULL.
10522 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10524 * target.h (complete_target_initialization, add_target):
10527 2014-03-07 Pedro Alves <palves@redhat.com>
10529 * go32-nat.c: Include inf-child.h.
10530 (go32_ops): Delete global.
10531 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10533 (go32_create_inferior): Push the passed in target pointer instead
10534 of referencing go32_ops.
10535 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10536 (go32_target): New function, based on init_go32_ops, but inherit
10538 (_initialize_go32_nat): Use go32_target. Move parts of
10539 init_go32_ops here.
10541 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10543 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10544 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10545 SYMBOL_VALUE_ADDRESS.
10546 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10548 2014-03-06 Yao Qi <yao@codesourcery.com>
10550 * breakpoint.c (get_tracepoint_by_number): Remove argument
10551 optional_p. All callers updated. Adjust comments. Update
10553 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10555 2014-03-06 Yao Qi <yao@codesourcery.com>
10557 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10558 early if get_number returns zero. Use 'p' instead of 'args'.
10560 2014-03-06 Yao Qi <yao@codesourcery.com>
10562 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10565 2014-03-06 Yao Qi <yao@codesourcery.com>
10567 PR breakpoints/16508
10568 * tracepoint.c (check_trace_running): New function.
10569 (trace_find_command): Move code to check_trace_running and
10570 call check_trace_running.
10571 (trace_find_pc_command): Likewise.
10572 (trace_find_tracepoint_command): Likewise.
10573 (trace_find_line_command): Likewise.
10574 (trace_find_range_command): Likewise.
10575 * tracepoint.h (check_trace_running): Likewise.
10576 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10578 2014-03-06 Yao Qi <yao@codesourcery.com>
10580 * target.h (struct target_ops) <to_traceframe_info>: Use
10581 TARGET_DEFAULT_NORETURN (tcomplain ()).
10582 * target-delegates.c: Regenerated.
10584 2014-03-05 Pedro Alves <palves@redhat.com>
10587 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10588 void. Update comment.
10589 (dcache_xfer_memory): Delete.
10590 (dcache_read_memory_partial): New, based on the read bits of
10591 dcache_xfer_memory.
10592 (dcache_update): Add status parameter. Use ULONGEST for len, and
10593 adjust. Discard cache lines if the reason for the update was
10595 * dcache.h (dcache_xfer_memory): Delete declaration.
10596 (dcache_read_memory_partial): New declaration.
10597 (dcache_update): Update prototype.
10598 * target.c (raw_memory_xfer_partial): Update the dcache here.
10599 (memory_xfer_partial_1): Don't handle dcache writes here.
10601 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10603 * remote-sim.c (gdbsim_load): Add const to prog.
10605 2014-03-03 Tom Tromey <tromey@redhat.com>
10607 * elfread.c (probe_key): Change to bfd_data.
10608 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10609 now per-BFD, not per-objfile.
10610 * stap-probe.c (stap_probe_destroy): Update comment.
10611 (handle_stap_probe): Allocate on the per-BFD obstack.
10613 2014-03-03 Tom Tromey <tromey@redhat.com>
10615 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10616 * breakpoint.c (create_longjmp_master_breakpoint): Use
10618 (add_location_to_breakpoint, bkpt_probe_insert_location)
10619 (bkpt_probe_remove_location): Update.
10620 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10621 * elfread.c (elf_symfile_relocate_probe): Remove.
10622 (elf_probe_fns): Update.
10623 (insert_exception_resume_breakpoint): Change type of "probe"
10624 parameter to bound_probe.
10625 (check_exception_resume): Update.
10626 * objfiles.c (objfile_relocate1): Don't relocate probes.
10627 * probe.c (bound_probe_s): New typedef.
10628 (parse_probes): Use get_probe_address. Set sal's objfile.
10629 (find_probe_by_pc): Return a bound_probe.
10630 (collect_probes): Return a VEC(bound_probe_s).
10631 (compare_probes): Update.
10632 (gen_ui_out_table_header_info): Change type of "probes"
10634 (info_probes_for_ops): Update.
10635 (get_probe_address): New function.
10636 (probe_safe_evaluate_at_pc): Update.
10637 * probe.h (struct probe_ops) <get_probe_address>: New field.
10638 <set_semaphore, clear_semaphore>: Add objfile parameter.
10639 (struct probe) <objfile>: Remove field.
10641 <address>: Update comment.
10642 (struct bound_probe): New.
10643 (find_probe_by_pc): Return a bound_probe.
10644 (get_probe_address): Declare.
10645 * solib-svr4.c (struct probe_and_action) <address>: New field.
10646 (hash_probe_and_action, equal_probe_and_action): Update.
10647 (register_solib_event_probe): Add address parameter.
10648 (solib_event_probe_at): Update.
10649 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10651 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10652 (stap_get_probe_address): New function.
10653 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10654 (compile_probe_arg): Update.
10655 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10657 (handle_stap_probe): Don't relocate the probe.
10658 (stap_relocate): Remove.
10659 (stap_gen_info_probes_table_values): Update.
10660 (stap_probe_ops): Remove stap_relocate.
10661 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10662 (debug_sym_probe_fns): Update.
10663 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10664 * symtab.c (init_sal): Use memset.
10665 * symtab.h (struct symtab_and_line) <objfile>: New field.
10666 * tracepoint.c (start_tracing, stop_tracing): Update.
10668 2014-03-03 Tom Tromey <tromey@redhat.com>
10670 * probe.h (parse_probes, find_probe_by_pc)
10671 (find_probes_in_objfile): Fix comments.
10673 2014-03-02 Doug Evans <xdje42@gmail.com>
10675 * infrun.c (handle_signal_stop): Replace test for
10676 TARGET_WAITKIND_STOPPED with an assert.
10678 2014-03-02 Doug Evans <xdje42@gmail.com>
10680 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10682 2014-03-02 Doug Evans <xdje42@gmail.com>
10684 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10686 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10688 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10690 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10692 * i386obsd-nat.c: Include "obsd-nat.h".
10693 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10695 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10697 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10699 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10701 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10703 * mips64obsd-nat.c: Include "obsd-nath".
10704 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10706 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10708 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10710 * amd64obsd-nat.c: Include "obsd-nat,h.
10711 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10713 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10715 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10717 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10718 (find_overload_match): Update call to find_oload_champ.
10719 (find_oload_champ_namespace_loop): Likewise
10721 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10723 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10725 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10726 * config/sparc/obsd64.mh: New file.
10727 * sparc64obsd-nat.c: New file.
10729 * obsd-nat.h: New file.
10730 * obsd-nat.c: New file.
10731 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10732 (ALLDEPFILES): Add obsd-nat.c.
10734 2014-02-28 Tom Tromey <tromey@redhat.com>
10736 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10737 * cli-out.h (cli_ui_out_impl): Now const.
10738 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10739 * ui-out.c (struct ui_out) <impl>: Now const.
10740 (default_ui_out_impl): Now const.
10741 (ui_out_new): Make 'impl' parameter const.
10742 * ui-out.h (ui_out_new): Update.
10744 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10746 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10748 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10750 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10752 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10754 Additional PR 8882 fix.
10755 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10757 2014-02-27 Pedro Alves <palves@redhat.com>
10759 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10762 2014-02-27 Pedro Alves <palves@redhat.com>
10765 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10766 * nat/linux-waitpid.c: Include string.h.
10767 (status_to_str): Moved here and made extern.
10768 * nat/linux-waitpid.h (status_to_str): New declaration.
10770 2014-02-27 Hui Zhu <hui@codesourcery.com>
10773 * infrun.c (ptid_match): Move ...
10774 * common/ptid.c (ptid_match): ... here.
10775 * inferior.h (ptid_match): Move ...
10776 * common/ptid.h (ptid_match): ... here.
10778 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10780 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10781 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10784 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10786 * obsd-tdep.c (obsd_auxv_parse): New function.
10787 (obsd_init_abi): Set auxv_parse.
10789 * gdbarch.sh (auxv_parse): New.
10790 * gdbarch.h: Regenerated.
10791 * gdbarch.c: Regenerated.
10792 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10794 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10796 * guile/scm-value.c (gdbscm_history_append_x): New function.
10797 (value_functions): Add it.
10799 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10801 * dwarf2read.c (attr_value_as_address): New function.
10802 (dwarf2_find_base_address, read_call_site_scope): Use
10803 attr_value_as_address in place of DW_ADDR.
10804 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10805 the low and high addresses. Slight rework of the handling
10806 of the high pc being a constant form, and limit it to
10807 DWARF verson 4 or higher.
10808 (dwarf2_record_block_ranges): Likewise.
10809 (read_partial_die): Likewise.
10810 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10812 2014-02-26 Tom Tromey <tromey@redhat.com>
10814 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10816 2014-02-26 Tom Tromey <tromey@redhat.com>
10818 * elfread.c (elf_read_minimal_symbols): Return early if
10819 minimal symbols have already been read. Add "ei" parameter.
10820 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10821 * minsyms.c (prim_record_minimal_symbol_full): Update.
10822 * objfiles.h (struct objstats) <n_minsyms>: Move...
10823 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10824 * symmisc.c (print_objfile_statistics): Update.
10826 2014-02-26 Tom Tromey <tromey@redhat.com>
10828 * elfread.c (elf_read_minimal_symbols): New function, from
10830 (elf_symfile_read): Call it.
10832 2014-02-26 Tom Tromey <tromey@redhat.com>
10834 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10835 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10836 (lookup_minimal_symbol_solib_trampoline)
10837 (lookup_minimal_symbol_by_pc_section_1)
10838 (lookup_minimal_symbol_and_objfile): Update.
10839 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10840 Don't allocate a minimal symbol if minsyms have already been read.
10841 (build_minimal_symbol_hash_tables): Update.
10842 (install_minimal_symbols): Do nothing if minsyms already read.
10843 Use the per-BFD obstack.
10844 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10845 * objfiles.c (allocate_objfile): Call
10846 terminate_minimal_symbol_table later.
10847 (have_minimal_symbols): Update.
10848 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10849 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10850 Move from struct objfile.
10851 <minsyms_read>: New field.
10852 (struct objfile) <msymbols, minimal_symbol_count,
10853 msymbol_hash, msymbol_demangled_hash>: Move.
10854 (ALL_OBJFILE_MSYMBOLS): Update.
10855 * symfile.c (read_symbols): Set minsyms_read.
10856 (reread_symbols): Update.
10857 * symmisc.c (dump_objfile, dump_msymbols): Update.
10859 2014-02-26 Tom Tromey <tromey@redhat.com>
10861 * minsyms.c (msymbols_sort): Remove.
10862 * minsyms.h (msymbols_sort): Remove.
10863 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10864 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10865 * elfread.c (elf_symtab_read): Don't add section offsets.
10866 * xcoffread.c (record_minimal_symbol): Don't add section offset
10867 to minimal symbol address.
10868 * somread.c (text_offset, data_offset): Remove.
10869 (som_symtab_read): Don't add section offsets to minimal symbol
10871 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10872 Don't add section offsets to minimal symbols.
10873 * coffread.c (coff_symtab_read): Don't add section offsets
10874 to minimal symbol addresses.
10875 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10876 to minimal symbol addresses.
10877 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10878 section offset to minimal symbol addresses.
10879 * mdebugread.c (parse_partial_symbols): Don't add section
10880 offset to minimal symbol addresses.
10881 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10882 offset to minimal symbol addresses.
10884 2014-02-26 Tom Tromey <tromey@redhat.com>
10886 * ada-lang.c (ada_main_name): Update.
10887 (ada_add_standard_exceptions): Update.
10888 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10889 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10890 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10891 * auxv.c (ld_so_xfer_auxv): Update.
10892 * avr-tdep.c (avr_scan_prologue): Update.
10893 * ax-gdb.c (gen_var_ref): Update.
10894 * blockframe.c (get_pc_function_start)
10895 (find_pc_partial_function_gnu_ifunc): Update.
10896 * breakpoint.c (create_overlay_event_breakpoint)
10897 (create_longjmp_master_breakpoint)
10898 (create_std_terminate_master_breakpoint)
10899 (create_exception_master_breakpoint): Update.
10900 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10901 * c-valprint.c (c_val_print): Update.
10902 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10903 * common/agent.c (agent_look_up_symbols): Update.
10904 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10905 * dwarf2loc.c (call_site_to_target_addr): Update.
10906 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10907 * elfread.c (elf_gnu_ifunc_record_cache)
10908 (elf_gnu_ifunc_resolve_by_got): Update.
10909 * findvar.c (default_read_var_value): Update.
10910 * frame.c (inside_main_func): Update.
10911 * frv-tdep.c (frv_frame_this_id): Update.
10912 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10913 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10915 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10916 (hppa_hpux_find_dummy_bpaddr): Update.
10917 * hppa-tdep.c (hppa_symbol_address): Update.
10918 * infcmd.c (until_next_command): Update.
10919 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10921 * linespec.c (minsym_found, add_minsym): Update.
10922 * linux-nat.c (get_signo): Update.
10923 * linux-thread-db.c (inferior_has_bug): Update.
10924 * m32c-tdep.c (m32c_return_value)
10925 (m32c_m16c_address_to_pointer): Update.
10926 * m32r-tdep.c (m32r_frame_this_id): Update.
10927 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10928 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10929 * maint.c (maintenance_translate_address): Update.
10930 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10931 (frob_address): New function.
10932 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10933 frob_address. Rename parameter to "pc_in".
10934 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10936 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10938 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10939 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10940 * objc-lang.c (find_objc_msgsend): Update.
10941 * objfiles.c (objfile_relocate1): Update.
10942 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10943 * p-valprint.c (pascal_val_print): Update.
10944 * parse.c (write_exp_msymbol): Update.
10945 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10946 (ppc_elfv2_skip_entrypoint): Update.
10947 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10948 * printcmd.c (build_address_symbolic, msym_info)
10949 (address_info): Update.
10950 * proc-service.c (ps_pglobal_lookup): Update.
10951 * psymtab.c (find_pc_sect_psymtab_closer)
10952 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10953 Change msymbol parameter to bound_minimal_symbol.
10954 * ravenscar-thread.c (get_running_thread_id): Update.
10955 * remote.c (remote_check_symbols): Update.
10956 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10958 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10959 * solib-dsbt.c (lm_base): Update.
10960 * solib-frv.c (lm_base, main_got): Update.
10961 * solib-irix.c (locate_base): Update.
10962 * solib-som.c (som_solib_create_inferior_hook)
10963 (link_map_start): Update.
10964 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10965 * solib-svr4.c (elf_locate_base, enable_break): Update.
10966 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10967 (flush_ea_cache): Update.
10968 * stabsread.c (define_symbol, scan_file_globals): Update.
10969 * stack.c (find_frame_funname): Update.
10970 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10971 (debug_qf_find_pc_sect_symtab): Update.
10972 * symfile.c (simple_read_overlay_table)
10973 (simple_overlay_update): Update.
10974 * symfile.h (struct quick_symbol_functions)
10975 <find_pc_sect_symtab>: Change type of msymbol to
10976 bound_minimal_symbol.
10977 * symmisc.c (dump_msymbols): Update.
10978 * symtab.c (find_pc_sect_symtab_via_partial)
10979 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10980 (search_symbols, print_msymbol_info): Update.
10981 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10982 (MSYMBOL_VALUE_ADDRESS): Redefine.
10983 (BMSYMBOL_VALUE_ADDRESS): New macro.
10984 * tracepoint.c (scope_info): Update.
10985 * tui/tui-disasm.c (tui_find_disassembly_address)
10986 (tui_get_begin_asm_address): Update.
10987 * valops.c (find_function_in_inferior): Update.
10988 * value.c (value_static_field, value_fn_field): Update.
10990 2014-02-26 Tom Tromey <tromey@redhat.com>
10992 * ada-lang.c (ada_update_initial_language): Update.
10993 (ada_main_name, ada_has_this_exception_support): Update.
10994 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10995 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10996 * arm-tdep.c (arm_skip_stub): Update.
10997 * auxv.c (ld_so_xfer_auxv): Update.
10998 * avr-tdep.c (avr_scan_prologue): Update.
10999 * ax-gdb.c (gen_var_ref): Update.
11000 * breakpoint.c (struct breakpoint_objfile_data)
11001 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11002 type to bound_minimal_symbol.
11003 (create_overlay_event_breakpoint)
11004 (create_longjmp_master_breakpoint)
11005 (create_std_terminate_master_breakpoint)
11006 (create_exception_master_breakpoint): Update.
11007 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11008 * c-exp.y (classify_name): Update.
11009 * coffread.c (coff_symfile_read): Update.
11010 * common/agent.c (agent_look_up_symbols): Update.
11011 * d-lang.c (d_main_name): Update.
11012 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11013 * dec-thread.c (enable_dec_thread): Update.
11014 * dwarf2loc.c (call_site_to_target_addr): Update.
11015 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11016 * eval.c (evaluate_subexp_standard): Update.
11017 * findvar.c (struct minsym_lookup_data) <result>: Change type
11018 to bound_minimal_symbol.
11020 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11021 * frame.c (inside_main_func): Update.
11022 * frv-tdep.c (frv_frame_this_id): Update.
11023 * gcore.c (call_target_sbrk): Update.
11024 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11025 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11027 * go-lang.c (go_main_name): Update.
11028 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11029 (hppa_hpux_find_import_stub_for_addr): Update.
11030 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11031 Update. Change return type.
11032 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11034 * jit.c (jit_breakpoint_re_set_internal): Update.
11035 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11037 * linux-nat.c (get_signo): Update.
11038 * linux-thread-db.c (inferior_has_bug): Update
11039 * m32c-tdep.c (m32c_return_value)
11040 (m32c_m16c_address_to_pointer): Update.
11041 * m32r-tdep.c (m32r_frame_this_id): Update.
11042 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11043 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11044 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11045 lookup_minimal_symbol. Change return type.
11046 (lookup_minimal_symbol): Remove.
11047 (lookup_bound_minimal_symbol): Update.
11048 (lookup_minimal_symbol_text): Change return type.
11049 (lookup_minimal_symbol_solib_trampoline): Change return type.
11050 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11051 (lookup_minimal_symbol_solib_trampoline): Change return type.
11052 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11053 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11054 (value_nsstring, find_imps): Update.
11055 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11056 * p-lang.c (pascal_main_name): Update.
11057 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11058 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11059 * proc-service.c (ps_pglobal_lookup): Update.
11060 * ravenscar-thread.c (get_running_thread_msymbol): Change
11062 (has_ravenscar_runtime, get_running_thread_id): Update.
11063 * remote.c (remote_check_symbols): Update.
11064 * sol-thread.c (ps_pglobal_lookup): Update.
11065 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11066 * solib-dsbt.c (lm_base): Update.
11067 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11069 * solib-irix.c (locate_base): Update.
11070 * solib-som.c (som_solib_create_inferior_hook)
11071 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11073 * solib-spu.c (spu_enable_break): Update.
11074 * solib-svr4.c (elf_locate_base, enable_break): Update.
11075 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11076 (flush_ea_cache): Update.
11077 * stabsread.c (define_symbol): Update.
11078 * symfile.c (simple_read_overlay_table): Update.
11079 * symtab.c (find_pc_sect_line): Update.
11080 * tracepoint.c (scope_info): Update.
11081 * tui-disasm.c (tui_get_begin_asm_address): Update.
11082 * value.c (value_static_field): Update.
11084 2014-02-26 Tom Tromey <tromey@redhat.com>
11086 * minsyms.c (prim_record_minimal_symbol_full): Use
11087 SET_MSYMBOL_VALUE_ADDRESS.
11088 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11089 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11090 SET_MSYMBOL_VALUE_ADDRESS.
11091 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11092 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11094 2014-02-26 Tom Tromey <tromey@redhat.com>
11096 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11097 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11098 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11099 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11100 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11101 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11102 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11103 * ada-lang.c (ada_main_name): Update.
11104 (ada_lookup_simple_minsym): Update.
11105 (ada_make_symbol_completion_list): Update.
11106 (ada_add_standard_exceptions): Update.
11107 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11108 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11109 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11110 * arm-tdep.c (skip_prologue_function): Update.
11111 (arm_skip_stack_protector, arm_skip_stub): Update.
11112 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11113 (arm_wince_skip_main_prologue): Update.
11114 * auxv.c (ld_so_xfer_auxv): Update.
11115 * avr-tdep.c (avr_scan_prologue): Update.
11116 * ax-gdb.c (gen_var_ref): Update.
11117 * block.c (call_site_for_pc): Update.
11118 * blockframe.c (get_pc_function_start): Update.
11119 (find_pc_partial_function_gnu_ifunc): Update.
11120 * breakpoint.c (create_overlay_event_breakpoint): Update.
11121 (create_longjmp_master_breakpoint): Update.
11122 (create_std_terminate_master_breakpoint): Update.
11123 (create_exception_master_breakpoint): Update.
11124 (resolve_sal_pc): Update.
11125 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11126 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11128 * c-valprint.c (c_val_print): Update.
11129 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11130 * coffread.c (coff_symfile_read): Update.
11131 * common/agent.c (agent_look_up_symbols): Update.
11132 * dbxread.c (find_stab_function_addr): Update.
11133 (end_psymtab): Update.
11134 * dwarf2loc.c (call_site_to_target_addr): Update.
11135 (func_verify_no_selftailcall): Update.
11136 (tailcall_dump): Update.
11137 (call_site_find_chain_1): Update.
11138 (dwarf_expr_reg_to_entry_parameter): Update.
11139 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11140 (elf_gnu_ifunc_resolve_by_got): Update.
11141 * f-valprint.c (info_common_command): Update.
11142 * findvar.c (read_var_value): Update.
11143 * frame.c (get_prev_frame_1): Update.
11144 (inside_main_func): Update.
11145 * frv-tdep.c (frv_skip_main_prologue): Update.
11146 (frv_frame_this_id): Update.
11147 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11148 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11149 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11150 (gnuv3_skip_trampoline): Update.
11151 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11152 (hppa64_hpux_in_solib_call_trampoline): Update.
11153 (hppa_hpux_skip_trampoline_code): Update.
11154 (hppa64_hpux_search_dummy_call_sequence): Update.
11155 (hppa_hpux_find_import_stub_for_addr): Update.
11156 (hppa_hpux_find_dummy_bpaddr): Update.
11157 * hppa-tdep.c (hppa_symbol_address)
11158 (hppa_lookup_stub_minimal_symbol): Update.
11159 * i386-tdep.c (i386_skip_main_prologue): Update.
11160 (i386_pe_skip_trampoline_code): Update.
11161 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11162 * infcall.c (get_function_name): Update.
11163 * infcmd.c (until_next_command): Update.
11164 * jit.c (jit_breakpoint_re_set_internal): Update.
11165 (jit_inferior_init): Update.
11166 * linespec.c (minsym_found): Update.
11167 (add_minsym): Update.
11168 * linux-fork.c (info_checkpoints_command): Update.
11169 * linux-nat.c (get_signo): Update.
11170 * linux-thread-db.c (inferior_has_bug): Update.
11171 * m32c-tdep.c (m32c_return_value): Update.
11172 (m32c_m16c_address_to_pointer): Update.
11173 (m32c_m16c_pointer_to_address): Update.
11174 * m32r-tdep.c (m32r_frame_this_id): Update.
11175 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11176 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11177 * maint.c (maintenance_translate_address): Update.
11178 * minsyms.c (add_minsym_to_hash_table): Update.
11179 (add_minsym_to_demangled_hash_table): Update.
11180 (msymbol_objfile): Update.
11181 (lookup_minimal_symbol): Update.
11182 (iterate_over_minimal_symbols): Update.
11183 (lookup_minimal_symbol_text): Update.
11184 (lookup_minimal_symbol_by_pc_name): Update.
11185 (lookup_minimal_symbol_solib_trampoline): Update.
11186 (lookup_minimal_symbol_by_pc_section_1): Update.
11187 (lookup_minimal_symbol_and_objfile): Update.
11188 (prim_record_minimal_symbol_full): Update.
11189 (compare_minimal_symbols): Update.
11190 (compact_minimal_symbols): Update.
11191 (build_minimal_symbol_hash_tables): Update.
11192 (install_minimal_symbols): Update.
11193 (terminate_minimal_symbol_table): Update.
11194 (find_solib_trampoline_target): Update.
11195 (minimal_symbol_upper_bound): Update.
11196 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11197 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11198 (mips_skip_pic_trampoline_code): Update.
11199 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11200 * objc-lang.c (selectors_info): Update.
11201 (classes_info): Update.
11202 (find_methods): Update.
11203 (find_imps): Update.
11204 (find_objc_msgsend): Update.
11205 * objfiles.c (objfile_relocate1): Update.
11206 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11207 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11208 * p-valprint.c (pascal_val_print): Update.
11209 * parse.c (write_exp_msymbol): Update.
11210 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11211 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11212 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11213 * printcmd.c (build_address_symbolic): Update.
11214 (sym_info): Update.
11215 (address_info): Update.
11216 * proc-service.c (ps_pglobal_lookup): Update.
11217 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11218 (find_pc_sect_psymtab): Update.
11219 * python/py-framefilter.c (py_print_frame): Update.
11220 * ravenscar-thread.c (get_running_thread_id): Update.
11221 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11223 * remote.c (remote_check_symbols): Update.
11224 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11225 (rs6000_skip_trampoline_code): Update.
11226 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11227 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11228 * solib-dsbt.c (lm_base): Update.
11229 * solib-frv.c (lm_base): Update.
11230 (main_got): Update.
11231 * solib-irix.c (locate_base): Update.
11232 * solib-som.c (som_solib_create_inferior_hook): Update.
11233 (som_solib_desire_dynamic_linker_symbols): Update.
11234 (link_map_start): Update.
11235 * solib-spu.c (spu_enable_break): Update.
11236 (ocl_enable_break): Update.
11237 * solib-svr4.c (elf_locate_base): Update.
11238 (enable_break): Update.
11239 * spu-tdep.c (spu_get_overlay_table): Update.
11240 (spu_catch_start): Update.
11241 (flush_ea_cache): Update.
11242 * stabsread.c (define_symbol): Update.
11243 (scan_file_globals): Update.
11244 * stack.c (find_frame_funname): Update.
11245 (frame_info): Update.
11246 * symfile.c (simple_read_overlay_table): Update.
11247 (simple_overlay_update): Update.
11248 * symmisc.c (dump_msymbols): Update.
11249 * symtab.c (fixup_section): Update.
11250 (find_pc_sect_line): Update.
11251 (skip_prologue_sal): Update.
11252 (search_symbols): Update.
11253 (print_msymbol_info): Update.
11254 (rbreak_command): Update.
11255 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11256 (completion_list_objc_symbol): Update.
11257 (default_make_symbol_completion_list_break_on): Update.
11258 * tracepoint.c (scope_info): Update.
11259 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11260 (tui_get_begin_asm_address): Update.
11261 * valops.c (find_function_in_inferior): Update.
11262 * value.c (value_static_field): Update.
11263 (value_fn_field): Update.
11265 2014-02-26 Tom Tromey <tromey@redhat.com>
11267 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11268 bound minimal symbols. Move code that knows about minsym
11270 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11272 * minsyms.h (minimal_symbol_upper_bound): Declare.
11273 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11274 minimal_symbol_upper_bound.
11276 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11278 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11279 Use the type's name if its basic type does not have a tag.
11281 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11283 * dwarf2read.c (read_subrange_type): Add comment.
11285 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11287 * dwarf2read.c (update_enumeration_type_from_children): New
11288 function, mostly extracted from process_structure_scope.
11289 (read_enumeration_type): Call update_enumeration_type_from_children.
11290 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11291 and flag_flag_enum fields.
11293 2014-02-26 Pedro Alves <palves@redhat.com>
11295 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11296 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11297 to_xfer_partial method.
11299 2014-02-26 Pedro Alves <palves@redhat.com>
11301 * target.c (complete_target_initialization): Don't install
11302 default_xfer_partial as to_xfer_partial hook.
11303 (nomemory): Delete.
11304 (update_current_target): Don't INHERIT nor de_fault
11305 deprecated_xfer_memory. Delete de_fault macro.
11306 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11307 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11308 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11311 2014-02-26 Pedro Alves <palves@redhat.com>
11313 * go32-nat.c (my_write_child): New function.
11314 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11315 (go32_xfer_partial): New function.
11316 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11317 Instead install a to_xfer_partial hook.
11319 2014-02-26 Pedro Alves <palves@redhat.com>
11321 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11322 to_xfer_partial helper. Rewrite.
11323 (procfs_xfer_partial): New function.
11324 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11325 Install a to_xfer_partial hook.
11327 2014-02-26 Pedro Alves <palves@redhat.com>
11329 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11330 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11331 (m32r_xfer_partial): New function.
11332 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11333 Install a to_xfer_partial hook.
11335 2014-02-26 Pedro Alves <palves@redhat.com>
11337 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11339 (mips_xfer_partial): New function.
11340 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11341 hook. Install a to_xfer_partial hook.
11343 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11345 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11346 * gdbtypes.c (create_array_type_with_stride): New function,
11347 renaming create_array_type, but with an added parameter
11348 called "bit_stride".
11349 (create_array_type): Re-implement using
11350 create_array_type_with_stride.
11351 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11352 and DW_AT_bit_stride attributes.
11354 2014-02-26 Pedro Alves <palves@redhat.com>
11356 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11357 task-specific breakpoints.
11359 2014-02-25 Pedro Alves <palves@redhat.com>
11361 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11362 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11364 2014-02-25 Stan Shebs <stan@codesourcery.com>
11366 * defs.h: Annotate comments for Doxygen.
11368 2014-02-25 Tom Tromey <tromey@redhat.com>
11370 * target.h (target_ignore): Don't declare.
11371 * target.c (target_ignore): Remove.
11373 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11376 * auto-load.c (auto_load_objfile_script_1): Change filename to
11379 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11381 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11382 documentation. Adjust prototype to match the target_ops
11383 to_xfer_partial method. Adjust implementation accordingly.
11385 2014-02-25 Hui Zhu <hui@codesourcery.com>
11387 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11388 to_traceframe_info.
11390 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11392 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11393 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11394 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11395 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11396 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11397 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11398 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11399 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11401 (rl78_register_type): Use a data pointer type for SP and
11402 new pseudo registers mentioned above. Use a 16 bit integer
11403 type for all other register pairs.
11404 (rl78_register_name, rl78_g10_register_name): Update for
11405 new pseudo registers.
11406 (rl78_pseudo_register_read): Likewise.
11407 (rl78_pseudo_register_write): Likewise.
11408 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11409 to the newly added pseudo registers.
11411 2014-02-24 Doug Evans <dje@google.com>
11413 * value.c (record_latest_value): Fix comment.
11414 * printcmd.c (print_command_1): Remove code to handle -1 return from
11415 record_latest_value.
11417 2014-02-24 Pedro Alves <palves@redhat.com>
11419 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11420 deprecated_xfer_memory hook.
11421 (procfs_xfer_partial): Call procfs_xfer_memory instead
11422 of the deprecated_xfer_memory target hook.
11423 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11426 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11428 * windows-nat.c (windows_xfer_shared_libraries): Return
11429 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11430 requested object is TARGET_OBJECT_LIBRARIES.
11432 2014-02-24 Yao Qi <yao@codesourcery.com>
11434 * target.h (enum target_xfer_status)
11435 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11436 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11438 * corefile.c (memory_error_message): User updated.
11439 * exec.c (section_table_read_available_memory): Likewise.
11440 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11441 * target.c (target_xfer_status_to_string): Likewise.
11442 (raw_memory_xfer_partial): Likewise.
11443 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11444 * valops.c (read_value_memory): Likewise.
11445 * exec.h: Update comments.
11447 2014-02-24 Yao Qi <yao@codesourcery.com>
11449 * target.c (target_xfer_status_to_string): Rename argument err
11451 * target.h (target_xfer_status_to_string): Update declaration.
11452 Replace target_xfer_error_to_string with
11453 target_xfer_status_to_string in comment.
11455 2014-02-24 Yao Qi <yao@codesourcery.com>
11457 * mips-linux-nat.c (super_close): Update its type.
11458 (mips_linux_close): Pass 'self' to super_close.
11460 2014-02-24 Yao Qi <yao@codesourcery.com>
11462 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11463 * corefile.c (read_memory): Adjusted.
11464 * target.c (target_write_with_progress): Adjusted.
11466 2014-02-23 Yao Qi <yao@codesourcery.com>
11468 Revert two patches:
11470 2013-10-25 Yao Qi <yao@codesourcery.com>
11472 * remote.c (remote_traceframe_info): Return early if
11473 traceframe is not selected.
11475 2013-07-19 Yao Qi <yao@codesourcery.com>
11477 * target.c (update_current_target): Change the default action
11478 of 'to_traceframe_info' from tcomplain to return_zero.
11479 * target.h (struct target_ops) <to_traceframe_info>: Add more
11482 2014-02-23 Yao Qi <yao@codesourcery.com>
11484 * valops.c (read_value_memory): Rewrite it. Call
11485 target_xfer_partial in a loop.
11486 * exec.h (section_table_available_memory): Remove declaration.
11487 Move comments to ...
11488 * exec.c (section_table_available_memory): ... here. Make it
11491 2014-02-23 Yao Qi <yao@codesourcery.com>
11493 * exec.c (section_table_read_available_memory): New function.
11494 * exec.h (section_table_read_available_memory): Declare.
11495 * ctf.c (ctf_xfer_partial): Call
11496 section_table_read_available_memory.
11497 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11499 2014-02-23 Yao Qi <yao@codesourcery.com>
11501 * ctf.c (ctf_xfer_partial): Move code to ...
11502 * exec.c (exec_read_partial_read_only): ... it. New function.
11503 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11504 * tracefile.c: Include "exec.h".
11505 * exec.h (exec_read_partial_read_only): Declare.
11507 2014-02-23 Yao Qi <yao@codesourcery.com>
11509 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11510 (tfile_has_memory): Remove.
11511 (init_tfile_ops): Don't set fields to_has_all_memory and
11512 to_has_memory of tfile_ops.
11513 * tracefile.c (tracefile_has_all_memory): New function.
11514 (tracefile_has_memory): New function.
11515 (init_tracefile_ops): Initialize fields to_has_all_memory and
11516 to_has_memory of 'ops'.
11518 2014-02-23 Yao Qi <yao@codesourcery.com>
11520 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11521 (ctf_thread_alive, ctf_get_trace_status): Remove.
11522 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11523 init_tracefile_ops.
11524 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11525 (tfile_has_stack, tfile_has_registers): Remove.
11526 (tfile_thread_alive): Remove.
11527 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11528 init_tracefile_ops.
11529 * tracefile.c (tracefile_has_stack): New function.
11530 (tracefile_has_registers): New function.
11531 (tracefile_thread_alive): New function.
11532 (tracefile_get_trace_status): New function.
11533 (init_tracefile_ops): New function.
11534 * tracefile.h (init_tracefile_ops): Declare.
11536 2014-02-23 Yao Qi <yao@codesourcery.com>
11538 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11539 (O_LARGEFILE): Likewise.
11540 (tfile_ops): Likewise.
11541 (TRACE_HEADER_SIZE): Likewise.
11542 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11543 (cur_data_size): Likewise.
11544 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11545 (tfile_close, tfile_files_info): Likewise.
11546 (tfile_get_trace_status): Likewise.
11547 (tfile_get_tracepoint_status): Likewise.
11548 (tfile_get_traceframe_address): Likewise.
11549 (tfile_trace_find, match_blocktype): Likewise.
11550 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11551 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11552 (tfile_get_trace_state_variable_value): Likewise.
11553 (tfile_has_all_memory, tfile_has_memory): Likewise.
11554 (tfile_has_stack, tfile_has_registers): Likewise.
11555 (tfile_thread_alive, build_traceframe_info): Likewise.
11556 (tfile_traceframe_info, init_tfile_ops): Likewise.
11557 (_initialize_tracepoint): Don't call init_tfile_ops
11558 and add_target_with_completer.
11559 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11560 exec.h, completer.h and filenames.h.
11561 (_initialize_tracefile_tfile): New function.
11563 2014-02-23 Yao Qi <yao@codesourcery.com>
11565 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11567 (HFILES_NO_SRCDIR): Add tracefile.h.
11568 * ctf.c: Include "tracefile.h".
11569 * tracefile.h: New file.
11570 * tracefile.c: New file
11571 * tracefile-tfile.c: New file.
11572 * tracepoint.c: Include "tracefile.h".
11573 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11574 (stop_reason_names): Add const.
11575 (trace_file_writer_xfree): Move it to tracefile.c.
11576 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11577 (trace_save_ctf): Likewise.
11578 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11579 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11580 (tfile_write_header, tfile_write_regblock_type): Likewise.
11581 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11582 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11583 (tfile_write_raw_data, tfile_end): Likewise.
11584 (tfile_trace_file_writer_new): Likewise.
11585 (free_uploaded_tp): Make it extern.
11586 (free_uploaded_tsv): Make it extern.
11587 (_initialize_tracepoint): Move code to register command 'tsave'
11589 * tracepoint.h (stop_reason_names): Declare.
11590 (struct trace_frame_write_ops): Move it to tracefile.h.
11591 (struct trace_file_write_ops): Likewise.
11592 (struct trace_file_writer): Likewise.
11593 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11595 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11598 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11600 (get_cores_used_by_process): New parameter num_cores, use it.
11601 (linux_xfer_osdata_processes): Pass num_cores to it.
11602 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11605 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11607 * target.c (memory_xfer_partial): Fix length arg in call to
11608 breakpoint_xfer_memory.
11610 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11613 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11614 number comes after the + or - signs. Adjust length of register
11615 name to be extracted.
11617 2014-02-20 Tom Tromey <tromey@redhat.com>
11619 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11620 (ada_varobj_ops): Mark "extern".
11622 2014-02-20 Tom Tromey <tromey@redhat.com>
11624 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11626 2014-02-20 Doug Evans <xdje42@gmail.com>
11628 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11629 All callers updated.
11630 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11631 All callers updated.
11632 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11633 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11635 2014-02-20 lin zuojian <manjian2006@gmail.com>
11636 Joel Brobecker <brobecker@adacore.com>
11637 Doug Evans <xdje42@gmail.com>
11640 * dwarf2read.c (struct die_info): New member in_process.
11641 (reset_die_in_process): New function.
11642 (process_die): Set it at the start, reset when returning.
11643 (inherit_abstract_dies): Only call process_die if origin_child_die
11644 not already being processed.
11646 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11648 * windows-nat.c (handle_unload_dll): Add function documentation.
11649 (do_initial_windows_stuff): Add comment explaining why we wait
11650 until after inferior initialization has finished before
11651 processing all DLLs.
11653 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11655 * windows-nat.c (get_module_name): Delete.
11656 (windows_get_exec_module_filename): New function, mostly
11657 inspired from get_module_name.
11658 (windows_pid_to_exec_file): Replace call to get_module_name
11659 by call to windows_get_exec_module_filename.
11661 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11663 * windows-nat.c (handle_load_dll): Rewrite this function's
11664 introductory comment. Remove code using get_module_name
11665 to get the DLL's name.
11667 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11669 * windows-nat.c (get_windows_debug_event): Ignore
11670 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11671 if windows_initialization_done == 0.
11672 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11673 Adjust implementation to always load all DLLs.
11674 (do_initial_windows_stuff): Replace call to
11675 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11677 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11679 * windows-nat.c (_initialize_windows_nat): Deprecate the
11680 "dll-symbols" command. Turn the "add-shared-symbol-files"
11681 and "assf" aliases into commands, and deprecate them as well.
11682 * NEWS: Add entry explaining that "dll-symbols" and its two
11683 aliases are now deprecated.
11685 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11687 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11688 new-line in debug string. Remove trailing spaces.
11690 2014-02-19 Stan Shebs <stan@codesourcery.com>
11692 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11694 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11696 * NEWS: Add entry for the new feature
11697 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11700 2014-02-19 Stan Shebs <stan@codesourcery.com>
11702 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11704 2014-02-19 Pedro Alves <palves@redhat.com>
11706 * common/ptid.h (struct ptid): Mention that process_stratum
11707 targets should prefer ptid.lwp.
11709 2014-02-19 Pedro Alves <palves@redhat.com>
11711 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11712 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11713 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11714 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11715 store remote thread ids rather than ptid.tid.
11716 (_initialize_remote): Adjust.
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11720 * target.c (target_get_unwinder): Rewrite.
11721 (target_get_tailcall_unwinder): Rewrite.
11722 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11723 (record_btrace_to_get_tailcall_unwinder): New function.
11724 (init_record_btrace_ops): Update.
11725 * target.h (struct target_ops) <to_get_unwinder,
11726 to_get_tailcall_unwinder>: Now function pointers. Use
11727 TARGET_DEFAULT_RETURN.
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11731 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11733 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11737 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11739 * target-delegates.c: Rebuild.
11740 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11741 TARGET_DEFAULT_FUNC.
11742 * target.c (default_target_decr_pc_after_break): Rename from
11743 forward_target_decr_pc_after_break. Simplify.
11744 (target_decr_pc_after_break): Rely on delegation.
11746 2014-02-19 Tom Tromey <tromey@redhat.com>
11748 * target.c (update_current_target): Do not INHERIT to_doc or
11749 to_magic. Do not de_fault to_open or to_close.
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11753 * gcore.h (objfile_find_memory_regions): Declare.
11754 * gcore.c (objfile_find_memory_regions): No longer static. Add
11756 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11757 * exec.c: Include gcore.h.
11758 (exec_set_find_memory_regions): Remove.
11759 (exec_find_memory_regions): Remove.
11760 (exec_do_find_memory_regions): Remove.
11761 (init_exec_ops): Update.
11762 * defs.h (exec_set_find_memory_regions): Remove.
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11766 * target-delegates.c: Rebuild.
11767 * target.h (struct target_ops) <to_extra_thread_info,
11768 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11769 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11770 not 0, in TARGET_DEFAULT_RETURN.
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11774 * target.c (complete_target_initialization): Remove casts. Use
11775 return_zero_has_execution.
11776 (return_zero): Add "ignore" argument.
11777 (return_zero_has_execution): New function.
11778 (init_dummy_target): Remove casts. Use
11779 return_zero_has_execution.
11781 2014-02-19 Tom Tromey <tromey@redhat.com>
11783 * target.c (update_current_target): Update comments. Do not
11784 INHERIT to_stratum.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11790 * corelow.c (core_read_description): Delegate when needed.
11791 * remote.c (remote_read_description): Delegate when needed.
11792 * target-delegates.c: Rebuild.
11793 * target.c (target_read_description): Rewrite.
11794 * target.h (struct target_ops) <to_read_description>: Update
11795 comment. Use TARGET_DEFAULT_RETURN.
11797 2014-02-19 Tom Tromey <tromey@redhat.com>
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11802 (find_default_run_target): Check against delegate_can_run.
11803 * target.h (struct target_ops) <to_can_run>: Use
11804 TARGET_DEFAULT_RETURN.
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11808 * target-delegates.c: Rebuild.
11809 * target.c (target_disconnect): Unconditionally delegate.
11810 * target.h (struct target_ops) <to_disconnect>: Use
11811 TARGET_DEFAULT_NORETURN.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * record.c (record_stop): Unconditionally delegate.
11816 * target-delegates.c: Rebuild.
11817 * target.c (target_stop_recording): Unconditionally delegate.
11818 * target.h (struct target_ops) <to_stop_recording>: Use
11819 TARGET_DEFAULT_IGNORE.
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11823 * target-delegates.c: Rebuild.
11824 * target.c (target_enable_btrace): Unconditionally delegate.
11825 * target.h (struct target_ops) <to_enable_btrace>: Use
11826 TARGET_DEFAULT_NORETURN.
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11830 * target-delegates.c: Rebuild.
11831 * target.c (target_read_btrace): Unconditionally delegate.
11832 * target.h (struct target_ops) <to_read_btrace>: Use
11833 TARGET_DEFAULT_NORETURN.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target-delegates.c: Rebuild.
11838 * target.c (target_teardown_btrace): Unconditionally delegate.
11839 * target.h (struct target_ops) <to_teardown_btrace>: Use
11840 TARGET_DEFAULT_NORETURN.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target-delegates.c: Rebuild.
11845 * target.c (target_disable_btrace): Unconditionally delegate.
11846 * target.h (struct target_ops) <to_disable_btrace>: Use
11847 TARGET_DEFAULT_NORETURN.
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11851 * target-delegates.c: Rebuild.
11852 * target.c (default_search_memory): New function.
11853 (simple_search_memory): Update comment.
11854 (target_search_memory): Unconditionally delegate.
11855 * target.h (struct target_ops) <to_search_memory>: Use
11856 TARGET_DEFAULT_FUNC.
11858 2014-02-19 Tom Tromey <tromey@redhat.com>
11860 * auxv.c (default_auxv_parse): No longer static.
11861 (target_auxv_parse): Unconditionally delegate.
11862 * auxv.h (default_auxv_parse): Declare.
11863 * target-delegates.c: Rebuild.
11864 * target.c: Include auxv.h.
11865 * target.h (struct target_ops) <to_auxv_parse>: Use
11866 TARGET_DEFAULT_FUNC.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target-delegates.c: Rebuild.
11871 * target.c (target_memory_map): Unconditionally delegate.
11872 * target.h (struct target_ops) <to_memory_map>: Use
11873 TARGET_DEFAULT_RETURN.
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11877 * target-delegates.c: Rebuild.
11878 * target.c (target_thread_alive): Unconditionally delegate.
11879 * target.h (struct target_ops) <to_thread_alive>: Use
11880 TARGET_DEFAULT_RETURN.
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11884 * target-delegates.c: Rebuild.
11885 * target.c (target_save_record): Unconditionally delegate.
11886 * target.h (struct target_ops) <to_save_record>: Use
11887 TARGET_DEFAULT_NORETURN.
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11891 * target-delegates.c: Rebuild.
11892 * target.c (target_delete_record): Unconditionally delegate.
11893 * target.h (struct target_ops) <to_delete_record>: Use
11894 TARGET_DEFAULT_NORETURN.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target-delegates.c: Rebuild.
11899 * target.c (target_record_is_replaying): Unconditionally
11901 * target.h (struct target_ops) <to_record_is_replaying>: Use
11902 TARGET_DEFAULT_RETURN.
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11906 * target-delegates.c: Rebuild.
11907 * target.c (target_goto_record_begin): Unconditionally delegate.
11908 * target.h (struct target_ops) <to_goto_record_begin>: Use
11909 TARGET_DEFAULT_NORETURN.
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11913 * target-delegates.c: Rebuild.
11914 * target.c (target_goto_record_end): Unconditionally delegate.
11915 * target.h (struct target_ops) <to_goto_record_end>: Use
11916 TARGET_DEFAULT_NORETURN.
11918 2014-02-19 Tom Tromey <tromey@redhat.com>
11920 * target-delegates.c: Rebuild.
11921 * target.c (target_goto_record): Unconditionally delegate.
11922 * target.h (struct target_ops) <to_goto_record>: Use
11923 TARGET_DEFAULT_NORETURN.
11925 2014-02-19 Tom Tromey <tromey@redhat.com>
11927 * target-delegates.c: Rebuild.
11928 * target.c (target_insn_history): Unconditionally delegate.
11929 * target.h (struct target_ops) <to_insn_history>: Use
11930 TARGET_DEFAULT_NORETURN.
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11934 * target-delegates.c: Rebuild.
11935 * target.c (target_insn_history_from): Unconditionally delegate.
11936 * target.h (struct target_ops) <to_insn_history_from>: Use
11937 TARGET_DEFAULT_NORETURN.
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11941 * target-delegates.c: Rebuild.
11942 * target.c (target_insn_history_range): Unconditionally delegate.
11943 * target.h (struct target_ops) <to_insn_history_range>: Use
11944 TARGET_DEFAULT_NORETURN.
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target-delegates.c: Rebuild.
11949 * target.c (target_call_history): Unconditionally delegate.
11950 * target.h (struct target_ops) <to_call_history>: Use
11951 TARGET_DEFAULT_NORETURN.
11953 2014-02-19 Tom Tromey <tromey@redhat.com>
11955 * target-delegates.c: Rebuild.
11956 * target.c (target_call_history_from): Unconditionally delegate.
11957 * target.h (struct target_ops) <to_call_history_from>: Use
11958 TARGET_DEFAULT_NORETURN.
11960 2014-02-19 Tom Tromey <tromey@redhat.com>
11962 * target-delegates.c: Rebuild.
11963 * target.c (target_call_history_range): Unconditionally delegate.
11964 * target.h (struct target_ops) <to_call_history_range>: Use
11965 TARGET_DEFAULT_NORETURN.
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11969 * target-delegates.c: Rebuild.
11970 * target.c (target_verify_memory): Unconditionally delegate.
11971 * target.h (struct target_ops) <to_verify_memory>: Use
11972 TARGET_DEFAULT_NORETURN.
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target-delegates.c: Rebuild.
11977 * target.c (target_core_of_thread): Unconditionally delegate.
11978 * target.h (struct target_ops) <to_core_of_thread>: Use
11979 TARGET_DEFAULT_RETURN.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target-delegates.c: Rebuild.
11984 * target.c (target_flash_done): Unconditionally delegate.
11985 * target.h (struct target_ops) <to_flash_done>: Use
11986 TARGET_DEFAULT_NORETURN.
11988 2014-02-19 Tom Tromey <tromey@redhat.com>
11990 * target-delegates.c: Rebuild.
11991 * target.c (target_flash_erase): Unconditionally delegate.
11992 * target.h (struct target_ops) <to_flash_erase>: Use
11993 TARGET_DEFAULT_NORETURN.
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11997 * target-delegates.c: Rebuild.
11998 * target.c (target_get_section_table): Unconditionally delegate.
11999 * target.h (struct target_ops) <to_get_section_table>: Use
12000 TARGET_DEFAULT_RETURN.
12002 2014-02-19 Tom Tromey <tromey@redhat.com>
12004 * target-delegates.c: Rebuild.
12005 * target.c (target_pid_to_str): Unconditionally delegate.
12006 (init_dummy_target): Don't initialize to_pid_to_str.
12007 (default_pid_to_str): Rename from dummy_pid_to_str.
12008 * target.h (struct target_ops) <to_pid_to_str>: Use
12009 TARGET_DEFAULT_FUNC.
12011 2014-02-19 Tom Tromey <tromey@redhat.com>
12013 * target-delegates.c: Rebuild.
12014 * target.c (target_find_new_threads): Unconditionally delegate.
12015 * target.h (struct target_ops) <to_find_new_threads>: Use
12016 TARGET_DEFAULT_RETURN.
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12020 * target-delegates.c: Rebuild.
12021 * target.c (target_program_signals): Unconditionally delegate.
12022 * target.h (struct target_ops) <to_program_signals>: Use
12023 TARGET_DEFAULT_IGNORE.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_pass_signals): Unconditionally delegate.
12029 * target.h (struct target_ops) <to_pass_signals>: Use
12030 TARGET_DEFAULT_IGNORE.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (default_mourn_inferior): New function.
12036 (target_mourn_inferior): Unconditionally delegate.
12037 * target.h (struct target_ops) <to_mourn_inferior>: Use
12038 TARGET_DEFAULT_FUNC.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target-delegates.c: Rebuild.
12043 * target.c (default_follow_fork): New function.
12044 (target_follow_fork): Unconditionally delegate.
12045 * target.h (struct target_ops) <to_follow_fork>: Use
12046 TARGET_DEFAULT_FUNC.
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12050 * target-delegates.c: Rebuild.
12051 * target.c (target_kill): Unconditionally delegate.
12052 * target.h (struct target_ops) <to_kill>: Use
12053 TARGET_DEFAULT_NORETURN.
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12057 * target-delegates.c: Rebuild.
12058 * target.c (target_masked_watch_num_registers): Unconditionally
12060 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12061 Use TARGET_DEFAULT_RETURN.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target-delegates.c: Rebuild.
12066 * target.c (target_remove_mask_watchpoint): Unconditionally
12068 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12069 TARGET_DEFAULT_RETURN.
12071 2014-02-19 Tom Tromey <tromey@redhat.com>
12073 * target-delegates.c: Rebuild.
12074 * target.c (target_insert_mask_watchpoint): Unconditionally
12076 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12077 TARGET_DEFAULT_RETURN.
12079 2014-02-19 Tom Tromey <tromey@redhat.com>
12081 * target-delegates.c: Rebuild.
12082 * target.c (target_ranged_break_num_registers): Unconditionally
12084 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12085 Use TARGET_DEFAULT_RETURN.
12087 2014-02-19 Tom Tromey <tromey@redhat.com>
12089 * target-delegates.c: Rebuild.
12090 * target.c (target_fetch_registers): Unconditionally delegate.
12091 * target.h (struct target_ops) <to_fetch_registers>: Use
12092 TARGET_DEFAULT_NORETURN.
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
12099 * target.h (struct target_ops) <to_stop>: Use
12100 TARGET_DEFAULT_IGNORE.
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12106 to_can_run_breakpoint_commands.
12107 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12108 Use TARGET_DEFAULT_RETURN.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_supports_evaluation_of_breakpoint_conditions.
12115 * target.h (struct target_ops)
12116 <to_supports_evaluation_of_breakpoint_conditions>: Use
12117 TARGET_DEFAULT_RETURN.
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * target-delegates.c: Rebuild.
12122 * target.c (update_current_target): Don't inherit or default
12123 to_augmented_libraries_svr4_read.
12124 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12125 Use 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
12132 * target.h (struct target_ops) <to_can_use_agent>: Use
12133 TARGET_DEFAULT_RETURN.
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target-delegates.c: Rebuild.
12138 * target.c (update_current_target): Don't inherit or default
12140 * target.h (struct target_ops) <to_use_agent>: Use
12141 TARGET_DEFAULT_NORETURN.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * target-delegates.c: Rebuild.
12146 * target.c (update_current_target): Don't inherit or default
12147 to_traceframe_info.
12148 (return_null): Remove.
12149 * target.h (struct target_ops) <to_traceframe_info>: Use
12150 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
12157 * target.h (struct target_ops)
12158 <to_static_tracepoint_markers_by_strid>: Use
12159 TARGET_DEFAULT_NORETURN.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_static_tracepoint_marker_at.
12166 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12167 Use TARGET_DEFAULT_RETURN.
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_set_permissions.
12174 * target.h (struct target_ops) <to_set_permissions>: Use
12175 TARGET_DEFAULT_IGNORE.
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_get_tib_address.
12182 * target.h (struct target_ops) <to_get_tib_address>: Use
12183 TARGET_DEFAULT_NORETURN.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_set_trace_notes.
12190 * target.h (struct target_ops) <to_set_trace_notes>: Use
12191 TARGET_DEFAULT_RETURN.
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't initialize
12197 to_set_trace_buffer_size.
12198 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12199 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
12206 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12207 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
12214 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12215 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
12222 (return_minus_one): Remove.
12223 * target.h (struct target_ops)
12224 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_get_raw_trace_data.
12231 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12232 TARGET_DEFAULT_NORETURN.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_upload_trace_state_variables.
12239 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12240 Use TARGET_DEFAULT_RETURN.
12242 2014-02-19 Tom Tromey <tromey@redhat.com>
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_upload_tracepoints.
12247 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12248 TARGET_DEFAULT_RETURN.
12250 2014-02-19 Tom Tromey <tromey@redhat.com>
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_save_trace_data.
12255 * target.h (struct target_ops) <to_save_trace_data>: Use
12256 TARGET_DEFAULT_NORETURN.
12258 2014-02-19 Tom Tromey <tromey@redhat.com>
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_get_trace_state_variable_value.
12263 * target.h (struct target_ops)
12264 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12271 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12275 * target-delegates.c: Rebuild.
12276 * target.c (update_current_target): Don't inherit or default
12278 * target.h (struct target_ops) <to_trace_stop>: Use
12279 TARGET_DEFAULT_NORETURN.
12281 2014-02-19 Tom Tromey <tromey@redhat.com>
12283 * target-delegates.c: Rebuild.
12284 * target.c (update_current_target): Don't inherit or default
12285 to_get_tracepoint_status.
12286 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12287 TARGET_DEFAULT_NORETURN.
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12291 * target-delegates.c: Rebuild.
12292 * target.c (update_current_target): Don't inherit or default
12293 to_get_trace_status.
12294 * target.h (struct target_ops) <to_get_trace_status>: Use
12295 TARGET_DEFAULT_RETURN.
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12299 * target-delegates.c: Rebuild.
12300 * target.c (update_current_target): Don't inherit or default
12302 * target.h (struct target_ops) <to_trace_start>: Use
12303 TARGET_DEFAULT_NORETURN.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * target-delegates.c: Rebuild.
12308 * target.c (update_current_target): Don't inherit or default
12309 to_trace_set_readonly_regions.
12310 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12311 Use TARGET_DEFAULT_NORETURN.
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12315 * target-delegates.c: Rebuild.
12316 * target.c (update_current_target): Don't inherit or default
12317 to_disable_tracepoint.
12318 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12319 TARGET_DEFAULT_NORETURN.
12321 2014-02-19 Tom Tromey <tromey@redhat.com>
12323 * target-delegates.c: Rebuild.
12324 * target.c (update_current_target): Don't inherit or default
12325 to_enable_tracepoint.
12326 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12327 TARGET_DEFAULT_NORETURN.
12329 2014-02-19 Tom Tromey <tromey@redhat.com>
12331 * target-delegates.c: Rebuild.
12332 * target.c (update_current_target): Don't inherit or default
12333 to_download_trace_state_variable.
12334 * target.h (struct target_ops) <to_download_trace_state_variable>:
12335 Use TARGET_DEFAULT_NORETURN.
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12339 * target-delegates.c: Rebuild.
12340 * target.c (update_current_target): Don't inherit or default
12341 to_can_download_tracepoint.
12342 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12343 TARGET_DEFAULT_RETURN.
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12347 * target-delegates.c: Rebuild.
12348 * target.c (update_current_target): Don't inherit or default
12349 to_download_tracepoint.
12350 * target.h (struct target_ops) <to_download_tracepoint>: Use
12351 TARGET_DEFAULT_NORETURN.
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
12358 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
12366 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12367 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
12374 * target.h (struct target_ops)
12375 <to_supports_enable_disable_tracepoint>: Use
12376 TARGET_DEFAULT_RETURN.
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12380 * target-delegates.c: Rebuild.
12381 * target.c (update_current_target): Don't inherit or default
12382 to_supports_multi_process.
12383 * target.h (struct target_ops) <to_supports_multi_process>: Use
12384 TARGET_DEFAULT_RETURN.
12386 2014-02-19 Tom Tromey <tromey@redhat.com>
12388 * target-delegates.c: Rebuild.
12389 * target.c (update_current_target): Don't inherit or default
12390 to_get_ada_task_ptid.
12391 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12392 TARGET_DEFAULT_FUNC.
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
12398 to_thread_architecture.
12399 * target.h (struct target_ops) <to_thread_architecture>: Use
12400 TARGET_DEFAULT_FUNC.
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12404 * target-delegates.c: Rebuild.
12405 * target.c (update_current_target): Don't inherit or default
12406 to_execution_direction.
12407 * target.h (struct target_ops) <to_execution_direction>: Use
12408 TARGET_DEFAULT_FUNC.
12410 2014-02-19 Tom Tromey <tromey@redhat.com>
12412 * target-delegates.c: Rebuild.
12413 * target.c (update_current_target): Don't inherit or default
12414 to_can_execute_reverse.
12415 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12416 TARGET_DEFAULT_RETURN.
12417 (target_can_execute_reverse): Unconditionally delegate.
12419 2014-02-19 Tom Tromey <tromey@redhat.com>
12421 * target-delegates.c: Rebuild.
12422 * target.c (update_current_target): Don't inherit or default
12424 (dummy_goto_bookmark): Remove.
12425 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12426 * target.h (struct target_ops) <to_goto_bookmark>: Use
12427 TARGET_DEFAULT_NORETURN.
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12434 (dummy_get_bookmark): Remove.
12435 (init_dummy_target): Don't inherit or default to_get_bookmark.
12436 * target.h (struct target_ops) <to_get_bookmark>: Use
12437 TARGET_DEFAULT_NORETURN
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * target-delegates.c: Rebuild.
12442 * target.c (update_current_target): Don't inherit or default
12443 to_make_corefile_notes.
12444 (init_dummy_target): Don't initialize to_make_corefile_notes.
12445 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12446 TARGET_DEFAULT_FUNC.
12448 2014-02-19 Tom Tromey <tromey@redhat.com>
12450 * target-delegates.c: Rebuild.
12451 * target.c (update_current_target): Don't inherit or default
12452 to_find_memory_regions.
12453 (init_dummy_target): Don't initialize to_find_memory_regions.
12454 * target.h (struct target_ops) <to_find_memory_regions>: Use
12455 TARGET_DEFAULT_FUNC.
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12459 * target-delegates.c: Rebuild.
12460 * target.c (update_current_target): Don't inherit or default
12462 * target.h (struct target_ops) <to_log_command>: Use
12463 TARGET_DEFAULT_IGNORE.
12464 (target_log_command): Unconditionally delegate.
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
12470 to_pid_to_exec_file.
12471 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
12479 (target_thread_name): Unconditionally delegate.
12480 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
12488 * target.h (struct target_ops) <to_extra_thread_info>: Use
12489 TARGET_DEFAULT_RETURN.
12491 2014-02-19 Tom Tromey <tromey@redhat.com>
12493 * target-delegates.c: Rebuild.
12494 * target.c (update_current_target): Don't inherit or default
12496 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
12504 (return_one): Remove.
12505 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12506 TARGET_DEFAULT_RETURN.
12508 2014-02-19 Tom Tromey <tromey@redhat.com>
12510 * target-delegates.c: Rebuild.
12511 * target.c (update_current_target): Don't inherit or default
12512 to_insert_exec_catchpoint.
12513 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12514 TARGET_DEFAULT_RETURN.
12516 2014-01-08 Tom Tromey <tromey@redhat.com>
12518 * target-delegates.c: Rebuild.
12519 * target.c (update_current_target): Don't inherit or default
12520 to_insert_exec_catchpoint.
12521 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12522 TARGET_DEFAULT_RETURN.
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12526 * target-delegates.c: Rebuild.
12527 * target.c (update_current_target): Don't inherit or default
12528 to_remove_vfork_catchpoint.
12529 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12530 TARGET_DEFAULT_RETURN.
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12534 * target-delegates.c: Rebuild.
12535 * target.c (update_current_target): Don't inherit or default
12536 to_insert_vfork_catchpoint.
12537 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12538 TARGET_DEFAULT_RETURN.
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12542 * target-delegates.c: Rebuild.
12543 * target.c (update_current_target): Don't inherit or default
12544 to_remove_fork_catchpoint.
12545 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12546 TARGET_DEFAULT_RETURN.
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12550 * target-delegates.c: Rebuild.
12551 * target.c (update_current_target): Don't inherit or default
12552 to_insert_fork_catchpoint.
12553 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12554 TARGET_DEFAULT_RETURN.
12556 2014-02-19 Tom Tromey <tromey@redhat.com>
12558 * target-delegates.c: Rebuild.
12559 * target.c (update_current_target): Don't inherit or default
12560 to_post_startup_inferior.
12561 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12562 TARGET_DEFAULT_IGNORE.
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12566 * target-delegates.c: Rebuild.
12567 * target.c (update_current_target): Don't inherit or default
12569 * target.h (struct target_ops) <to_load>: Use
12570 TARGET_DEFAULT_NORETURN.
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target-delegates.c: Rebuild.
12575 * target.c (update_current_target): Don't inherit or default
12577 * target.h (struct target_ops) <to_terminal_info>: Use
12578 TARGET_DEFAULT_FUNC.
12580 2014-02-19 Tom Tromey <tromey@redhat.com>
12582 * target-delegates.c: Rebuild.
12583 * target.c (update_current_target): Don't inherit or default
12584 to_terminal_save_ours.
12585 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12586 TARGET_DEFAULT_IGNORE.
12588 2014-02-19 Tom Tromey <tromey@redhat.com>
12590 * target-delegates.c: Rebuild.
12591 * target.c (update_current_target): Don't inherit or default
12593 * target.h (struct target_ops) <to_terminal_ours>: Use
12594 TARGET_DEFAULT_IGNORE.
12596 2014-02-19 Tom Tromey <tromey@redhat.com>
12598 * target-delegates.c: Rebuild.
12599 * target.c (update_current_target): Don't inherit or default
12600 to_terminal_ours_for_output.
12601 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12602 TARGET_DEFAULT_IGNORE.
12604 2014-02-19 Tom Tromey <tromey@redhat.com>
12606 * target-delegates.c: Rebuild.
12607 * target.c (update_current_target): Don't inherit or default
12608 to_terminal_inferior.
12609 * target.h (struct target_ops) <to_terminal_inferior>: Use
12610 TARGET_DEFAULT_IGNORE.
12612 2014-02-19 Tom Tromey <tromey@redhat.com>
12614 * target-delegates.c: Rebuild.
12615 * target.c (update_current_target): Don't inherit or default
12617 * target.h (struct target_ops) <to_terminal_init>: Use
12618 TARGET_DEFAULT_IGNORE.
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12622 * target-delegates.c: Rebuild.
12623 * target.c (update_current_target): Don't inherit or default
12624 to_can_accel_watchpoint_condition.
12625 * target.h (struct target_ops)
12626 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12628 2014-02-19 Tom Tromey <tromey@redhat.com>
12630 * target-delegates.c: Rebuild.
12631 * target.c (update_current_target): Don't inherit or default
12632 to_region_ok_for_hw_watchpoint.
12633 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12634 Use TARGET_DEFAULT_FUNC.
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12638 * target-delegates.c: Rebuild.
12639 * target.c (update_current_target): Don't inherit or default
12640 to_watchpoint_addr_within_range.
12641 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12642 Use TARGET_DEFAULT_FUNC.
12644 2014-02-19 Tom Tromey <tromey@redhat.com>
12646 * target-delegates.c: Rebuild.
12647 * target.c (update_current_target): Don't inherit or default
12648 to_remove_watchpoint.
12649 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12650 TARGET_DEFAULT_NORETURN.
12652 2014-02-19 Tom Tromey <tromey@redhat.com>
12654 * target-delegates.c: Rebuild.
12655 * target.c (update_current_target): Don't inherit or default
12656 to_insert_watchpoint.
12657 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12658 TARGET_DEFAULT_RETURN.
12660 2014-02-19 Tom Tromey <tromey@redhat.com>
12662 * target-delegates.c: Rebuild.
12663 * target.c (update_current_target): Don't inherit or default
12664 to_remove_hw_breakpoint.
12665 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12666 TARGET_DEFAULT_RETURN.
12668 2014-02-19 Tom Tromey <tromey@redhat.com>
12670 * target-delegates.c: Rebuild.
12671 * target.c (update_current_target): Don't inherit or default
12672 to_insert_hw_breakpoint.
12673 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12674 TARGET_DEFAULT_RETURN.
12676 2014-02-19 Tom Tromey <tromey@redhat.com>
12678 * target-delegates.c: Rebuild.
12679 * target.c (update_current_target): Don't inherit or default
12680 to_can_use_hw_breakpoint.
12681 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12682 TARGET_DEFAULT_RETURN.
12684 2014-02-19 Tom Tromey <tromey@redhat.com>
12686 * target-delegates.c: Rebuild.
12687 * target.c (update_current_target): Don't inherit or default
12689 * target.h (struct target_ops) <to_files_info>: Use
12690 TARGET_DEFAULT_IGNORE.
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12694 * target-delegates.c: Rebuild.
12695 * target.c (update_current_target): Don't inherit or default
12697 * target.h (struct target_ops) <to_store>: Use
12698 TARGET_DEFAULT_NORETURN.
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12702 * target-delegates.c: Rebuild.
12703 * target.c (update_current_target): Don't inherit or default
12705 * target.h (struct target_ops) <to_post_attach>: Use
12706 TARGET_DEFAULT_IGNORE.
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12710 * target-delegates.c: Rebuild.
12711 * target.c (update_current_target): Don't inherit or default
12713 (default_rcmd): New function.
12714 (do_monitor_command): Unconditionally delegate.
12715 * target.h (struct target_ops) <to_rmcd>: Use
12716 TARGET_DEFAULT_FUNC.
12718 2014-02-19 Tom Tromey <tromey@redhat.com>
12720 * target-delegates.c: Rebuild.
12721 * target.c (init_dummy_target): Don't initialize to_attach.
12722 (target_attach): Unconditionally delegate.
12723 * target.h (struct target_ops) <to_attach>: Use
12724 TARGET_DEFAULT_FUNC.
12726 2014-02-19 Tom Tromey <tromey@redhat.com>
12728 * target-delegates.c: Rebuild.
12729 * target.c (target_detach): Unconditionally delegate.
12730 (init_dummy_target): Don't initialize to_detach.
12731 * target.h (struct target_ops) <to_detach>: Use
12732 TARGET_DEFAULT_IGNORE.
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12736 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12738 (target_augmented_libraries_svr4_read): Add argument.
12739 * target.c (update_current_target): Update.
12740 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12743 2014-02-19 Tom Tromey <tromey@redhat.com>
12745 * target.h (struct target_ops) <to_call_history_range>: Add
12747 * target.c (target_call_history_range): Add argument.
12748 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12750 (record_btrace_call_history_from): Update.
12752 2014-02-19 Tom Tromey <tromey@redhat.com>
12754 * target.h (struct target_ops) <to_call_history_from>: Add
12756 * target.c (target_call_history_from): Add argument.
12757 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12762 * target.h (struct target_ops) <to_call_history>: Add argument.
12763 * target.c (target_call_history): Add argument.
12764 * record-btrace.c (record_btrace_call_history): Add 'self'
12767 2014-02-19 Tom Tromey <tromey@redhat.com>
12769 * target.h (struct target_ops) <to_insn_history_range>: Add
12771 * target.c (target_insn_history_range): Add argument.
12772 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12774 (record_btrace_insn_history_from): Update.
12776 2014-02-19 Tom Tromey <tromey@redhat.com>
12778 * target.h (struct target_ops) <to_insn_history_from>: Add
12780 * target.c (target_insn_history_from): Add argument.
12781 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12786 * target.h (struct target_ops) <to_insn_history>: Add argument.
12787 * target.c (target_insn_history): Add argument.
12788 * record-btrace.c (record_btrace_insn_history): Add 'self'
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12793 * target.h (struct target_ops) <to_goto_record>: Add argument.
12794 * target.c (target_goto_record): Add argument.
12795 * record-full.c (record_full_goto): Add 'self' argument.
12796 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12798 2014-02-19 Tom Tromey <tromey@redhat.com>
12800 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12801 * target.c (target_goto_record_end): Add argument.
12802 * record-full.c (record_full_goto_end): Add 'self' argument.
12803 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12805 2014-02-19 Tom Tromey <tromey@redhat.com>
12807 * target.h (struct target_ops) <to_goto_record_begin>: Add
12809 * target.c (target_goto_record_begin): Add argument.
12810 * record-full.c (record_full_goto_begin): Add 'self' argument.
12811 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12816 * target.h (struct target_ops) <to_record_is_replaying>: Add
12818 * target.c (target_record_is_replaying): Add argument.
12819 * record-full.c (record_full_is_replaying): Add 'self' argument.
12820 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12822 (record_btrace_xfer_partial, record_btrace_store_registers)
12823 (record_btrace_prepare_to_store, record_btrace_resume)
12824 (record_btrace_wait, record_btrace_decr_pc_after_break)
12825 (record_btrace_find_new_threads, record_btrace_thread_alive):
12828 2014-02-19 Tom Tromey <tromey@redhat.com>
12830 * target.h (struct target_ops) <to_delete_record>: Add argument.
12831 * target.c (target_delete_record): Add argument.
12832 * record-full.c (record_full_delete): Add 'self' argument.
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target.h (struct target_ops) <to_save_record>: Add argument.
12837 * target.c (target_save_record): Add argument.
12838 * record-full.c (record_full_save): Add 'self' argument.
12839 (record_full_save): Add 'self' argument.
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12843 * target.h (struct target_ops) <to_info_record>: Add argument.
12844 * target.c (target_info_record): Add argument.
12845 * record.c (info_record_command): Add argument.
12846 * record-full.c (record_full_info): Add 'self' argument.
12847 * record-btrace.c (record_btrace_info): Add 'self' argument.
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12851 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12852 * target.c (target_stop_recording): Add argument.
12853 * record.c (record_stop): Add argument.
12854 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12859 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12860 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12861 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12863 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12864 (_initialize_amd64_linux_nat): Use it.
12865 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12866 (_initialize_i386_linux_nat): Use it.
12868 2014-02-19 Tom Tromey <tromey@redhat.com>
12870 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12871 * target.c (target_teardown_btrace): Add argument.
12872 * remote.c (remote_teardown_btrace): Add 'self' argument.
12873 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12875 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12878 2014-02-19 Tom Tromey <tromey@redhat.com>
12880 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12881 * target.c (target_disable_btrace): Add argument.
12882 * remote.c (remote_disable_btrace): Add 'self' argument.
12883 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12885 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12888 2014-02-19 Tom Tromey <tromey@redhat.com>
12890 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12891 * target.c (target_enable_btrace): Add argument.
12892 * remote.c (remote_enable_btrace): Add 'self' argument.
12893 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12895 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12898 2014-02-19 Tom Tromey <tromey@redhat.com>
12900 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12901 (target_can_use_agent): Add argument.
12902 * target.c (update_current_target): Update.
12903 * remote.c (remote_can_use_agent): Add 'self' argument.
12904 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12906 2014-02-19 Tom Tromey <tromey@redhat.com>
12908 * target.h (struct target_ops) <to_use_agent>: Add argument.
12909 (target_use_agent): Add argument.
12910 * target.c (update_current_target): Update.
12911 * remote.c (remote_use_agent): Add 'self' argument.
12912 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12914 2014-02-19 Tom Tromey <tromey@redhat.com>
12916 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12917 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12918 (target_traceframe_info): Add argument.
12919 * target.c (update_current_target): Update.
12920 * remote.c (remote_traceframe_info): Add 'self' argument.
12921 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12923 2014-02-19 Tom Tromey <tromey@redhat.com>
12925 * target.h (target_static_tracepoint_markers_by_strid): Add
12927 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12929 * target.c (update_current_target): Update.
12930 * remote.c (struct target_ops)
12931 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12932 * linux-nat.c (struct target_ops)
12933 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12937 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12939 (target_static_tracepoint_marker_at): Add argument.
12940 * target.c (update_current_target): Update.
12941 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12944 2014-02-19 Tom Tromey <tromey@redhat.com>
12946 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12947 (target_set_permissions): Add argument.
12948 * target.c (update_current_target): Update.
12949 * remote.c (remote_set_permissions): Add 'self' argument.
12950 (remote_start_remote): Update.
12952 2014-02-19 Tom Tromey <tromey@redhat.com>
12954 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12955 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12956 (target_get_tib_address): Add argument.
12957 * target.c (update_current_target): Update.
12958 * remote.c (remote_get_tib_address): Add 'self' argument.
12960 2014-02-19 Tom Tromey <tromey@redhat.com>
12962 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12963 (target_set_trace_notes): Add argument.
12964 * target.c (update_current_target): Update.
12965 * remote.c (remote_set_trace_notes): Add 'self' argument.
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12969 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12971 (target_set_trace_buffer_size): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12975 2014-02-19 Tom Tromey <tromey@redhat.com>
12977 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12979 (target_set_circular_trace_buffer): Add argument.
12980 * target.c (update_current_target): Update.
12981 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12986 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12988 (target_set_disconnected_tracing): Add argument.
12989 * target.c (update_current_target): Update.
12990 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12994 * target.h (struct target_ops)
12995 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12996 (target_get_min_fast_tracepoint_insn_len): Add argument.
12997 * target.c (update_current_target): Update.
12998 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13001 2014-02-19 Tom Tromey <tromey@redhat.com>
13003 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13005 (target_get_raw_trace_data): Add argument.
13006 * target.c (update_current_target): Update.
13007 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13009 2014-02-19 Tom Tromey <tromey@redhat.com>
13011 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13013 (target_upload_trace_state_variables): Add argument.
13014 * target.c (update_current_target): Update.
13015 * remote.c (remote_upload_trace_state_variables): Add 'self'
13017 (remote_start_remote): Update.
13019 2014-02-19 Tom Tromey <tromey@redhat.com>
13021 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13023 (target_upload_tracepoints): Add argument.
13024 * target.c (update_current_target): Update.
13025 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13026 (remote_start_remote): Update.
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13030 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13031 (target_save_trace_data): Add argument.
13032 * target.c (update_current_target): Update.
13033 * remote.c (remote_save_trace_data): Add 'self' argument.
13035 2014-02-19 Tom Tromey <tromey@redhat.com>
13037 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13039 * target.h (struct target_ops)
13040 <to_get_trace_state_variable_value>: Add argument.
13041 (target_get_trace_state_variable_value): Add argument.
13042 * target.c (update_current_target): Update.
13043 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13045 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13050 * target.h (struct target_ops) <to_trace_find>: Add argument.
13051 (target_trace_find): Add argument.
13052 * target.c (update_current_target): Update.
13053 * remote.c (remote_trace_find): Add 'self' argument.
13054 * ctf.c (ctf_trace_find): Add 'self' argument.
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13059 (target_trace_stop): Add argument.
13060 * target.c (update_current_target): Update.
13061 * remote.c (remote_trace_stop): Add 'self' argument.
13063 2014-02-19 Tom Tromey <tromey@redhat.com>
13065 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13066 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13068 (target_get_tracepoint_status): Add argument.
13069 * target.c (update_current_target): Update.
13070 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13072 2014-02-19 Tom Tromey <tromey@redhat.com>
13074 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13075 * target.h (struct target_ops) <to_get_trace_status>: Add
13077 (target_get_trace_status): Add argument.
13078 * target.c (update_current_target): Update.
13079 * remote.c (remote_get_trace_status): Add 'self' argument.
13080 (remote_start_remote, remote_can_download_tracepoint): Update.
13081 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13083 2014-02-19 Tom Tromey <tromey@redhat.com>
13085 * target.h (struct target_ops) <to_trace_start>: Add argument.
13086 (target_trace_start): Add argument.
13087 * target.c (update_current_target): Update.
13088 * remote.c (remote_trace_start): Add 'self' argument.
13090 2014-02-19 Tom Tromey <tromey@redhat.com>
13092 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13094 (target_trace_set_readonly_regions): Add argument.
13095 * target.c (update_current_target): Update.
13096 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13103 (target_disable_tracepoint): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13107 2014-02-19 Tom Tromey <tromey@redhat.com>
13109 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13111 (target_enable_tracepoint): Add argument.
13112 * target.c (update_current_target): Update.
13113 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13115 2014-02-19 Tom Tromey <tromey@redhat.com>
13117 * target.h (struct target_ops) <to_download_trace_state_variable>:
13119 (target_download_trace_state_variable): Add argument.
13120 * target.c (update_current_target): Update.
13121 * remote.c (remote_download_trace_state_variable): Add 'self'
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13126 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13128 (target_can_download_tracepoint): Add argument.
13129 * target.c (update_current_target): Update.
13130 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13132 2014-02-19 Tom Tromey <tromey@redhat.com>
13134 * target.h (struct target_ops) <to_download_tracepoint>: Add
13136 (target_download_tracepoint): Add argument.
13137 * target.c (update_current_target): Update.
13138 * remote.c (remote_download_tracepoint): Add 'self' argument.
13140 2014-02-19 Tom Tromey <tromey@redhat.com>
13142 * target.h (struct target_ops) <to_trace_init>: Add argument.
13143 (target_trace_init): Add argument.
13144 * target.c (update_current_target): Update.
13145 * remote.c (remote_trace_init): Add 'self' argument.
13147 2014-02-19 Tom Tromey <tromey@redhat.com>
13149 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13150 * target.c (target_fileio_readlink): Add argument.
13151 * remote.c (remote_hostio_readlink): Add 'self' argument.
13152 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13154 2014-02-19 Tom Tromey <tromey@redhat.com>
13156 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13157 * target.c (target_fileio_unlink): Add argument.
13158 * remote.c (remote_hostio_unlink): Add 'self' argument.
13159 (remote_file_delete): Update.
13160 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13162 2014-02-19 Tom Tromey <tromey@redhat.com>
13164 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13165 * target.c (target_fileio_close): Add argument.
13166 * remote.c (remote_hostio_close): Add 'self' argument.
13167 (remote_hostio_close_cleanup): Update.
13168 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13170 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13172 2014-02-19 Tom Tromey <tromey@redhat.com>
13174 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13175 * target.c (target_fileio_pread): Add argument.
13176 * remote.c (remote_hostio_pread): Add 'self' argument.
13177 (remote_bfd_iovec_pread, remote_file_get): Update.
13178 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13182 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13183 * target.c (target_fileio_pwrite): Add argument.
13184 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13185 (remote_file_put): Update.
13186 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13188 2014-02-19 Tom Tromey <tromey@redhat.com>
13190 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13191 * target.c (target_fileio_open): Add argument.
13192 * remote.c (remote_hostio_open): Add 'self' argument.
13193 (remote_bfd_iovec_open): Add 'self' argument.
13194 (remote_file_put): Add 'self' argument.
13195 (remote_file_get): Add 'self' argument.
13196 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13198 2014-02-19 Tom Tromey <tromey@redhat.com>
13200 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13202 (target_can_run_breakpoint_commands): Add argument.
13203 * target.c (update_current_target): Update.
13204 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13206 (remote_insert_breakpoint): Add 'self' argument.
13207 (remote_insert_hw_breakpoint): Add 'self' argument.
13208 (remote_can_run_breakpoint_commands): Add 'self' argument.
13210 2014-02-19 Tom Tromey <tromey@redhat.com>
13212 * target.h (struct target_ops)
13213 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13214 (target_supports_evaluation_of_breakpoint_conditions): Add
13216 * target.c (update_current_target): Update.
13217 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13219 (remote_insert_breakpoint): Add 'self' argument.
13220 (remote_insert_hw_breakpoint): Add 'self' argument.
13221 (remote_supports_cond_breakpoints): Add 'self' argument.
13223 2014-02-19 Tom Tromey <tromey@redhat.com>
13225 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13227 (target_supports_string_tracing): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops)
13234 <to_supports_disable_randomization>: Add argument.
13235 * target.c (find_default_supports_disable_randomization): Add
13237 (target_supports_disable_randomization): Add argument.
13238 (find_default_supports_disable_randomization): Add 'self'
13240 * remote.c (extended_remote_supports_disable_randomization): Add
13242 (remote_supports_disable_randomization): Add 'self' argument.
13243 (extended_remote_create_inferior): Update.
13244 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13247 2014-02-19 Tom Tromey <tromey@redhat.com>
13249 * target.h (struct target_ops)
13250 <to_supports_enable_disable_tracepoint>: Add argument.
13251 (target_supports_enable_disable_tracepoint): Add argument.
13252 * target.c (update_current_target): Update.
13253 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13258 * target.h (struct target_ops) <to_supports_multi_process>: Add
13260 (target_supports_multi_process): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_supports_multi_process): Add 'self' argument.
13263 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13265 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13270 * target.h (struct target_ops) <to_execution_direction>: Add
13272 (target_execution_direction): Add argument.
13273 * target.c (default_execution_direction): Add 'self' argument.
13274 * record-full.c (record_full_execution_direction): Add 'self'
13277 2014-02-19 Tom Tromey <tromey@redhat.com>
13279 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13281 (target_can_execute_reverse): Add argument.
13282 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13283 * record-full.c (record_full_can_execute_reverse): Add 'self'
13285 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13291 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13293 (target_get_ada_task_ptid): Add argument.
13294 * target.c (update_current_target): Update.
13295 (default_get_ada_task_ptid): Add 'self' argument.
13296 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13297 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13298 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13300 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13302 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13304 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13306 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13307 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13310 2014-02-19 Tom Tromey <tromey@redhat.com>
13312 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13313 (target_goto_bookmark): Add argument.
13314 * target.c (dummy_goto_bookmark): Add 'self' argument.
13315 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13317 2014-02-19 Tom Tromey <tromey@redhat.com>
13319 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13320 (target_get_bookmark): Add argument.
13321 * target.c (dummy_get_bookmark): Add 'self' argument.
13322 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13324 2014-02-19 Tom Tromey <tromey@redhat.com>
13326 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13328 (target_make_corefile_notes): Add argument.
13329 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13330 * procfs.c (procfs_make_note_section): Add 'self' argument.
13331 (procfs_make_note_section): Add 'self' argument.
13332 (procfs_make_note_section): Add 'self' argument.
13333 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13335 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13336 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13337 * exec.c (exec_make_note_section): Add 'self' argument.
13338 (exec_make_note_section): Add 'self' argument.
13340 2014-02-19 Tom Tromey <tromey@redhat.com>
13342 * target.h (struct target_ops) <to_find_memory_regions>: Add
13344 (target_find_memory_regions): Add argument.
13345 * target.c (dummy_find_memory_regions): Add 'self' argument.
13346 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13347 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13348 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13349 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13350 * exec. (exec_do_find_memory_regions): New global.
13351 (exec_set_find_memory_regions): Rewrite.
13352 (exec_find_memory_regions): New function.
13353 (init_exec_ops): Use exec_find_memory_regions.
13355 2014-02-19 Tom Tromey <tromey@redhat.com>
13357 * target.h (struct target_ops) <to_supports_non_stop>: Add
13359 * target.c (find_default_supports_non_stop): Add argument.
13360 (target_supports_non_stop): Add argument.
13361 (find_default_supports_non_stop): Add 'self' argument.
13362 * remote.c (remote_supports_non_stop): Add 'self' argument.
13363 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13367 * target.h (struct target_ops) <to_log_command>: Add argument.
13368 (target_log_command): Add argument.
13369 * serial.h (serial_log_command): Add 'self' argument.
13370 * serial.c (serial_log_command): Add 'self' argument.
13372 2014-02-19 Tom Tromey <tromey@redhat.com>
13374 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13375 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13377 (target_pid_to_exec_file): Add argument.
13378 * target.c (debug_to_pid_to_exec_file): Add argument.
13379 (update_current_target): Update.
13380 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13381 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13382 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13383 (linux_handle_extended_wait): Update.
13384 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13385 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13386 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13387 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13389 2014-02-19 Tom Tromey <tromey@redhat.com>
13391 * target.h (struct target_ops) <to_rcmd>: Add argument.
13392 (target_rcmd): Add argument.
13393 * target.c (debug_to_rcmd): Add argument.
13394 (update_current_target, do_monitor_command): Update.
13395 * remote.c (remote_rcmd): Add 'self' argument.
13396 * monitor.c (monitor_rcmd): Add 'self' argument.
13398 2014-02-19 Tom Tromey <tromey@redhat.com>
13400 * windows-nat.c (windows_stop): Add 'self' argument.
13401 * target.h (struct target_ops) <to_stop>: Add argument.
13402 * target.c (target_stop): Add argument.
13403 (debug_to_stop): Add argument.
13404 (update_current_target): Update.
13405 * remote.c (remote_stop): Add 'self' argument.
13406 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13407 (gdbsim_cntrl_c): Update.
13408 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13409 * procfs.c (procfs_stop): Add 'self' argument.
13410 * nto-procfs.c (procfs_stop): Add 'self' argument.
13411 * monitor.c (monitor_stop): Add 'self' argument.
13412 (monitor_open): Update.
13413 * linux-nat.c (linux_nat_stop): Add argument.
13414 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13415 * gnu-nat.c (gnu_stop): Add 'self' argument.
13416 * darwin-nat.c (darwin_stop): Add 'self' argument.
13418 2014-02-19 Tom Tromey <tromey@redhat.com>
13420 * target.h (struct target_ops) <to_thread_name>: Add argument.
13421 * target.c (target_thread_name): Add argument.
13422 (update_current_target): Update.
13423 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13425 2014-02-19 Tom Tromey <tromey@redhat.com>
13427 * target.h (struct target_ops) <to_extra_thread_info>: Add
13429 (target_extra_thread_info): Add argument.
13430 * target.c (update_current_target): Update.
13431 * remote.c (remote_threads_extra_info): Add 'self' argument.
13432 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13434 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13435 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13436 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13438 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13440 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13442 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13445 2014-02-19 Tom Tromey <tromey@redhat.com>
13447 * target.h (struct target_ops) <to_program_signals>: Add argument.
13448 * target.c (target_program_signals): Add argument.
13449 * remote.c (remote_program_signals): Add 'self' argument.
13451 2014-02-19 Tom Tromey <tromey@redhat.com>
13453 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13454 * target.c (target_pass_signals): Add argument.
13455 * remote.c (remote_pass_signals): Add 'self' argument.
13456 (remote_start_remote): Update.
13457 * procfs.c (procfs_pass_signals): Add 'self' argument.
13458 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13459 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13460 (linux_nat_create_inferior, linux_nat_attach): Update.
13462 2014-02-19 Tom Tromey <tromey@redhat.com>
13464 * windows-nat.c (windows_can_run): Add 'self' argument.
13465 * target.h (struct target_ops) <to_can_run>: Add argument.
13466 (target_can_run): Add argument.
13467 * target.c (debug_to_can_run): Add argument.
13468 (update_current_target): Update.
13469 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13470 * inf-child.c (inf_child_can_run): Add 'self' argument.
13471 * go32-nat.c (go32_can_run): Add 'self' argument.
13473 2014-02-19 Tom Tromey <tromey@redhat.com>
13475 * target.h (struct target_ops) <to_has_exited>: Add argument.
13476 (target_has_exited): Add argument.
13477 * target.c (debug_to_has_exited): Add argument.
13478 (update_current_target): Update.
13480 2014-02-19 Tom Tromey <tromey@redhat.com>
13482 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13484 (target_set_syscall_catchpoint): Add argument.
13485 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13487 * target.c (update_current_target): Update.
13489 2014-02-19 Tom Tromey <tromey@redhat.com>
13491 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13493 (target_remove_exec_catchpoint): Add argument.
13494 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13495 (update_current_target): Update.
13496 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13499 2014-02-19 Tom Tromey <tromey@redhat.com>
13501 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13503 (target_insert_exec_catchpoint): Add argument.
13504 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13505 (update_current_target): Update.
13506 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13509 2014-02-19 Tom Tromey <tromey@redhat.com>
13511 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13513 (target_remove_vfork_catchpoint): Add argument.
13514 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13515 (update_current_target): Update.
13516 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13519 2014-02-19 Tom Tromey <tromey@redhat.com>
13521 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13523 (target_insert_vfork_catchpoint): Add argument.
13524 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13525 (update_current_target): Update.
13526 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13529 2014-02-19 Tom Tromey <tromey@redhat.com>
13531 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13533 (target_remove_fork_catchpoint): Add argument.
13534 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13535 (update_current_target): Update.
13536 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13539 2014-02-19 Tom Tromey <tromey@redhat.com>
13541 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13543 (target_insert_fork_catchpoint): Add argument.
13544 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13545 (update_current_target): Update.
13546 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13549 2014-02-19 Tom Tromey <tromey@redhat.com>
13551 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13553 (target_post_startup_inferior): Add argument.
13554 * target.c (debug_to_post_startup_inferior): Add argument.
13555 (update_current_target): Update.
13556 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13558 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13560 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13562 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13564 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13566 (super_post_startup_inferior): Likewise.
13567 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13569 (super_post_startup_inferior): Likewise.
13570 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13571 Add 'self' argument.
13572 (super_post_startup_inferior): Likewise.
13574 2014-02-19 Tom Tromey <tromey@redhat.com>
13576 * target.h (struct target_ops) <to_load>: Add argument.
13577 * target.c (target_load): Add argument.
13578 (debug_to_load): Add argument.
13579 (update_current_target): Update.
13580 * remote.c (remote_load): Add 'self' argument.
13581 * remote-sim.c (gdbsim_load): Add 'self' argument.
13582 * remote-mips.c (mips_load): Add 'self' argument.
13583 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13584 * monitor.c (monitor_load): Add 'self' argument.
13585 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13587 2014-02-19 Tom Tromey <tromey@redhat.com>
13589 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13590 (target_terminal_info): Add argument.
13591 * target.c (debug_to_terminal_info): Add argument.
13592 (default_terminal_info): Likewise.
13593 * inflow.c (child_terminal_info): Add 'self' argument.
13594 * inferior.h (child_terminal_info): Add 'self' argument.
13595 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13597 2014-02-19 Tom Tromey <tromey@redhat.com>
13599 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13601 (target_terminal_save_ours): Add argument.
13602 * target.c (debug_to_terminal_save_ours): Add argument.
13603 (update_current_target): Update.
13604 * inflow.c (terminal_save_ours): Add 'self' argument.
13605 * inferior.h (terminal_save_ours): Add 'self' argument.
13607 2014-02-19 Tom Tromey <tromey@redhat.com>
13609 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13610 (target_terminal_ours): Add argument.
13611 * target.c (debug_to_terminal_ours): Add argument.
13612 (update_current_target): Update.
13613 * remote.c (remote_terminal_ours): Add 'self' argument.
13614 (remote_close): Update.
13615 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13616 * inflow.c (terminal_ours): Add 'self' argument.
13617 * inferior.h (terminal_ours): Add 'self' argument.
13618 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13620 2014-02-19 Pedro Alves <palves@redhat.com>
13621 Tom Tromey <tromey@redhat.com>
13623 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13625 (target_terminal_ours_for_output): Add argument.
13626 * target.c (debug_to_terminal_ours_for_output): Add argument.
13627 (update_current_target): Update.
13628 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13629 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13630 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13632 2014-02-19 Tom Tromey <tromey@redhat.com>
13634 * target.h (struct target_ops) <to_terminal_inferior>: Add
13636 * target.c (target_terminal_inferior): Add argument.
13637 (update_current_target): Update.
13638 * remote.c (remote_terminal_inferior): Add 'self' argument.
13639 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13640 * inflow.c (terminal_inferior): Add 'self' argument.
13641 * inferior.h (terminal_inferior): Add 'self' argument.
13642 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13643 (go32_terminal_inferior): Add 'self' argument.
13645 2014-02-19 Tom Tromey <tromey@redhat.com>
13647 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13648 (target_terminal_init): Add argument.
13649 * target.c (debug_to_terminal_init): Add argument.
13650 (update_current_target): Update.
13651 * inflow.c (terminal_init_inferior): Add 'self' argument.
13652 * inferior.h (terminal_init_inferior): Add 'self' argument.
13653 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13654 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13656 2014-02-19 Tom Tromey <tromey@redhat.com>
13658 * target.h (struct target_ops)
13659 <to_can_accel_watchpoint_condition>: Add argument.
13660 (target_can_accel_watchpoint_condition): Add argument.
13661 * target.c (debug_to_can_accel_watchpoint_condition): Add
13663 (update_current_target): Update.
13664 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13667 2014-02-19 Tom Tromey <tromey@redhat.com>
13669 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13671 (target_region_ok_for_hw_watchpoint): Add argument.
13672 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13673 (default_region_ok_for_hw_watchpoint): Add argument.
13674 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13675 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13677 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13679 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13681 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13683 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13685 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13687 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13688 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13690 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13691 Add 'self' argument.
13693 2014-02-19 Tom Tromey <tromey@redhat.com>
13695 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13697 (target_insert_watchpoint): Add argument.
13698 * target.c (debug_to_insert_watchpoint): Add argument.
13699 (update_current_target): Update.
13700 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13701 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13702 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13703 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13704 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13705 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13707 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13708 (procfs_insert_hw_watchpoint): Add 'self' argument.
13709 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13711 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13713 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13715 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13716 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13718 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13721 2014-02-19 Tom Tromey <tromey@redhat.com>
13723 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13725 (target_remove_watchpoint): Add argument.
13726 * target.c (debug_to_remove_watchpoint): Add argument.
13727 (update_current_target): Update.
13728 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13729 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13730 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13731 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13732 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13733 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13735 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13736 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13738 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13740 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13742 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13743 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13745 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13748 2014-02-19 Tom Tromey <tromey@redhat.com>
13750 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13752 (target_remove_hw_breakpoint): Add argument.
13753 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13754 (update_current_target): Update.
13755 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13756 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13758 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13759 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13761 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13764 2014-02-19 Tom Tromey <tromey@redhat.com>
13766 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13768 (target_insert_hw_breakpoint): Add argument.
13769 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13770 (update_current_target): Update.
13771 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13772 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13774 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13775 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13776 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13778 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13781 2014-02-19 Tom Tromey <tromey@redhat.com>
13783 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13785 (target_can_use_hardware_watchpoint): Add argument.
13786 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13787 (update_current_target): Update.
13788 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13790 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13792 * remote.c (remote_check_watch_resources): Add 'self' argument.
13793 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13794 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13796 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13797 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13799 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13801 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13803 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13805 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13807 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13809 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13810 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13812 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13815 2014-02-19 Tom Tromey <tromey@redhat.com>
13817 * target.h (struct target_ops) <to_post_attach>: Add argument.
13818 (target_post_attach): Add argument.
13819 * target.c (debug_to_post_attach): Add argument.
13820 (update_current_target): Update.
13821 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13822 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13823 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13824 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13825 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13827 2014-02-19 Tom Tromey <tromey@redhat.com>
13829 * windows-nat.c (windows_close): Add 'self' argument.
13830 * tracepoint.c (tfile_close): Add 'self' argument.
13831 * target.h (struct target_ops) <to_close>: Add argument.
13832 * target.c (target_close): Add argument.
13833 (update_current_target): Update.
13834 * remote.c (remote_close): Add 'self' argument.
13835 * remote-sim.c (gdbsim_close): Add 'self' argument.
13836 * remote-mips.c (mips_close): Add 'self' argument.
13837 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13838 * record-full.c (record_full_close): Add 'self' argument.
13839 * record-btrace.c (record_btrace_close): Add 'self' argument.
13840 * monitor.h (monitor_close): Add 'self' argument.
13841 * monitor.c (monitor_close): Add 'self' argument.
13842 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13843 * linux-nat.c (linux_nat_close): Add argument.
13844 * go32-nat.c (go32_close): Add 'self' argument.
13845 * exec.c (exec_close_1): Add 'self' argument.
13846 * ctf.c (ctf_close): Add 'self' argument.
13847 * corelow.c (core_close): Add 'self' argument.
13848 (core_close_cleanup): Update.
13849 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13850 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13852 2014-02-19 Tom Tromey <tromey@redhat.com>
13854 * remote.c (remote_load): New function.
13855 (init_remote_ops): Use it.
13857 2014-02-19 Tom Tromey <tromey@redhat.com>
13859 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13861 * common/linux-btrace.h (linux_supports_btrace): Update.
13862 * remote.c (remote_supports_btrace): Add "self" argument.
13863 * target-delegates.c: Rebuild.
13864 * target.c (target_supports_btrace): Remove.
13865 * target.h (struct target_ops) <to_supports_btrace>: Add
13866 target_ops argument.
13867 (target_supports_btrace): New define.
13869 2014-02-19 Tom Tromey <tromey@redhat.com>
13871 * record-full.c (record_full_beneath_to_resume_ops)
13872 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13873 (record_full_beneath_to_wait)
13874 (record_full_beneath_to_store_registers_ops)
13875 (record_full_beneath_to_store_registers)
13876 (record_full_beneath_to_xfer_partial_ops)
13877 (record_full_beneath_to_xfer_partial)
13878 (record_full_beneath_to_insert_breakpoint_ops)
13879 (record_full_beneath_to_insert_breakpoint)
13880 (record_full_beneath_to_remove_breakpoint_ops)
13881 (record_full_beneath_to_remove_breakpoint)
13882 (record_full_beneath_to_stopped_by_watchpoint)
13883 (record_full_beneath_to_stopped_data_address)
13884 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13885 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13886 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13887 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13888 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13889 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13890 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13891 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13892 (record_full_resume, record_full_wait_1)
13893 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13894 (record_full_store_registers, record_full_xfer_partial)
13895 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13896 (record_full_async, record_full_core_xfer_partial): Use target
13898 * target-delegates.c: Rebuild.
13899 * target.c (current_xfer_partial): Remove.
13900 (update_current_target): Do not INHERIT or de_fault
13901 to_insert_breakpoint, to_remove_breakpoint,
13902 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13903 to_is_async_p, to_async. Do not set to_xfer_partial field.
13904 (default_xfer_partial): Simplify.
13905 (current_xfer_partial): Remove.
13906 (target_wait, target_resume): Simplify.
13907 (find_default_can_async_p, find_default_is_async_p): Update.
13908 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13909 to_xfer_partial, to_stopped_by_watchpoint,
13910 to_stopped_data_address.
13911 (target_store_registers): Simplify.
13912 (forward_target_remove_breakpoint)
13913 (forward_target_insert_breakpoint): Remove.
13914 (target_remove_breakpoint, target_insert_breakpoint)
13915 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13916 * target.h (struct target_ops) <to_resume, to_wait,
13917 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13918 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13919 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13921 (forward_target_remove_breakpoint)
13922 (forward_target_insert_breakpoint): Remove.
13923 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13925 (record_btrace_insert_breakpoint): Delegate directly.
13927 2014-02-19 Tom Tromey <tromey@redhat.com>
13930 * target-delegates.c: New file.
13931 * target.c: Include target-delegates.c.
13932 (init_dummy_target): Call install_dummy_methods.
13933 (complete_target_initialization): Call install_delegators.
13934 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13935 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13936 * make-target-delegates: New file.
13938 2014-02-19 Tom Tromey <tromey@redhat.com>
13940 * record.c (find_record_target): Use find_target_at.
13941 * target.c (find_target_at): New function.
13942 * target.h (find_target_at): Declare.
13944 2014-02-19 Tom Tromey <tromey@redhat.com>
13946 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13947 Add 'ops' argument.
13948 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13950 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13951 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13953 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13955 * linux-nat.c (save_sigtrap): Update.
13956 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13957 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13958 (linux_nat_close): Update.
13959 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13961 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13963 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13964 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13965 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13966 (tmp_to_async): Add 'ops' argument.
13967 (record_full_stopped_by_watchpoint, record_full_async)
13968 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13970 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13971 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13972 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13973 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13974 (remote_is_async_p, remote_async): Add 'ops' argument.
13975 (remote_stopped_data_address): Update.
13976 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13977 * target.c (update_current_target)
13978 (find_default_can_async_p, find_default_is_async_p): Update.
13979 (init_dummy_target): Update.
13980 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13981 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13982 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13983 (target_can_async_p, target_is_async_p, target_async)
13984 (target_stopped_by_watchpoint): Update.
13986 2014-02-19 Yao Qi <yao@codesourcery.com>
13989 * gdbarch.sh: Remove startup_gdbarch.
13990 * gdbarch.c: Regenerated.
13991 * gdbarch.h: Likewise.
13993 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13995 * rl78-tdep.c (rl78_g10_register_name): New function.
13996 (rl78_return_value): Add g10 support.
13997 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14000 2014-02-17 Doug Evans <xdje42@gmail.com>
14002 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14003 (SUBDIR_GUILE_SRCS): Ditto.
14004 (scm-gsmob.o): Ditto.
14006 2014-02-17 Yao Qi <yao@codesourcery.com>
14008 * gnu-nat.c (ILL_RPC): Declare defined function.
14010 2014-02-17 Yao Qi <yao@codesourcery.com>
14012 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14013 mach_msg_type_number_t.
14014 (gnu_write_inferior): Likewise.
14016 2014-02-17 Yao Qi <yao@codesourcery.com>
14018 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14020 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14021 (inf_validate_procs, inf_signal): Likewise.
14022 (S_exception_raise_request): Likewise.
14023 (do_mach_notify_dead_name): Likewise.
14024 (steal_exc_port): Likewise.
14025 (gnu_read_inferior): Change 'copy_count''s type to
14026 mach_msg_type_number_t.
14027 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14030 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14032 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14033 flag. Adjust all users; in particular...
14034 (gnu_wait): ..., don't decrement its value in here...
14035 (gnu_create_inferior): ..., and instead set the flag in here,
14036 around the startup_inferior call, and call that one with
14037 START_INFERIOR_TRAPS_EXPECTED.
14039 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14040 (ILL_RPC): ... new macro.
14041 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14042 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14043 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14044 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14045 functions with ILL_RPC macro.
14046 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14047 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14048 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14049 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14050 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14051 (S_proc_getlogin_reply, S_proc_getsid_reply)
14052 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14053 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14054 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14055 (S_proc_getnports_reply, S_proc_is_important_reply)
14056 (S_proc_get_code_reply): New stub functions, generated with
14059 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14060 collected the type check structures.
14062 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14064 2014-02-14 Doug Evans <dje@google.com>
14066 * target.c (target_write_partial): Fix result type.
14068 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14070 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14071 the proper offsets to access fpregset_t.
14073 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14075 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14076 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14077 * h8300-tdep.c (setmachinelist): Remove global.
14078 * hppa-tdep.c (hppa_sigtramp): Remove global.
14079 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14080 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14081 * ravenscar-thread.c (update_target_observer): Remove global.
14082 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14084 2014-02-12 Tom Tromey <tromey@redhat.com>
14086 * common/rsp-low.c: Update comments.
14087 * common/rsp-low.h: Update comments.
14089 2014-02-12 Tom Tromey <tromey@redhat.com>
14091 * common/rsp-low.c (convert_ascii_to_int): Remove.
14092 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14094 2014-02-12 Tom Tromey <tromey@redhat.com>
14096 * common/rsp-low.h (unhexify): Don't declare.
14097 * common/rsp-low.c (unhexify): Remove.
14099 2014-02-12 Tom Tromey <tromey@redhat.com>
14101 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14102 * common/rsp-low.c (convert_int_to_ascii): Remove.
14104 2014-02-12 Tom Tromey <tromey@redhat.com>
14106 * common/rsp-low.h (hexify): Don't declare.
14107 * common/rsp-low.c (hexify): Remove.
14109 2014-02-12 Tom Tromey <tromey@redhat.com>
14111 * common/rsp-low.c (hexify): Never take strlen of argument.
14113 2014-02-12 Tom Tromey <tromey@redhat.com>
14115 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14116 * remote.c (extended_remote_run, remote_rcmd)
14117 (remote_download_trace_state_variable, remote_save_trace_data)
14118 (remote_set_trace_notes): Update.
14119 * tracepoint.c (encode_source_string, tfile_write_status)
14120 (tfile_write_uploaded_tsv): Update.
14122 2014-02-12 Tom Tromey <tromey@redhat.com>
14124 * tracepoint.c: Include rsp-low.h.
14125 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14126 * remote.c: Include rsp-low.h.
14127 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14128 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14129 (remote_unescape_input): Move to common/rsp-low.c.
14130 * common/rsp-low.h: New file.
14131 * common/rsp-low.c: New file.
14132 * Makefile.in (SFILES): Add common/rsp-low.c.
14133 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14134 (COMMON_OBS): Add rsp-low.o.
14135 (rsp-low.o): New target.
14137 2014-02-12 Tom Tromey <tromey@redhat.com>
14139 * utils.h: Include print-utils.h.
14140 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14141 (int_string, core_addr_to_string, core_addr_to_string_nz)
14142 (hex_string, hex_string_custom): Don't declare.
14143 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14144 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14145 (hex_string_custom, int_string, core_addr_to_string)
14146 (core_addr_to_string_nz, host_address_to_string): Move to
14147 common/print-utils.c.
14148 * common/print-utils.h: New file.
14149 * common/print-utils.c: New file
14150 * Makefile.in (SFILES): Add common/print-utils.c.
14151 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14152 (COMMON_OBS): Add print-utils.o.
14153 (print-utils.o): New target.
14155 2014-02-12 Tom Tromey <tromey@redhat.com>
14157 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14159 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14161 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14163 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14165 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14166 if a PT_IO ptrace request returns sucessfully but indicates that 0
14167 bytes were transferred.
14169 2014-02-12 Pedro Alves <palves@redhat.com>
14170 Kevin Buettner <kevinb@redhat.com>
14172 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14173 TYPE_INSTANCE_FLAG_CODE_SPACE.
14175 2014-02-12 Pedro Alves <palves@redhat.com>
14177 * h8300-tdep.c (pseudo_from_raw_register)
14178 (raw_from_pseudo_register): New functions.
14179 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14182 2014-02-12 Pedro Alves <palves@redhat.com>
14184 * h8300-tdep.c (h8300_register_sim_regno): New function.
14185 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14186 gdbarch_register_sim_regno hook.
14188 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14190 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14192 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14194 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14196 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14198 * obsd-tdep.h (obsd_init_abi): New prototype.
14199 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14200 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14201 (obsd_init_abi): New functions.
14202 * i386obsd-tdep.c: Include "obsd-tdep.h".
14203 (i386obsd_init_abi): Call obsd_init_abi.
14204 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14205 (amd64obsd_init_abi): Call obsd_init_abi.
14206 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14207 obsd-tdep.c to gdb_target_obs.
14209 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14211 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14212 double float arguments to 16-byte in the argument slots.
14214 2014-02-11 Doug Evans <xdje42@gmail.com>
14216 * configure.ac: Don't crash if pkg-config is not found and guile
14217 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14219 * configure: Regenerate.
14221 2014-02-11 Yao Qi <yao@codesourcery.com>
14223 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14224 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14225 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14226 * gnu-nat.c (gnu_xfer_memory): Likewise.
14227 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14228 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14229 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14230 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14232 2014-02-11 Yao Qi <yao@codesourcery.com>
14234 * target.h (enum target_xfer_error): Rename to ...
14235 (enum target_xfer_status): ... it. New. All users updated.
14236 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14238 (TARGET_XFER_STATUS_ERROR_P): New macro.
14239 (target_xfer_error_to_string): Remove declaration.
14240 (target_xfer_status_to_string): Declare.
14241 (target_xfer_partial_ftype): Adjust it.
14242 (struct target_ops) <to_xfer_partial>: Return
14243 target_xfer_status. Add argument xfered_len. Update
14245 * target.c (target_xfer_error_to_string): Rename to ...
14246 (target_xfer_status_to_string): ... it. New. All callers
14248 (target_read_live_memory): Likewise. Call target_xfer_partial
14249 instead of target_read.
14250 (memory_xfer_live_readonly_partial): Return
14251 target_xfer_status. Add argument xfered_len.
14252 (raw_memory_xfer_partial): Likewise.
14253 (memory_xfer_partial_1): Likewise.
14254 (memory_xfer_partial): Likewise.
14255 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14256 properly. Update debug message.
14257 (default_xfer_partial, current_xfer_partial): Likewise.
14258 (target_write_partial): Likewise.
14259 (target_read_partial): Likewise. All callers updated.
14260 (read_whatever_is_readable): Likewise.
14261 (target_write_with_progress): Likewise.
14262 (target_read_alloc_1): Likewise.
14264 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14265 * auxv.c (procfs_xfer_auxv): Likewise.
14266 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14267 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14268 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14269 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14270 * corefile.c (read_memory): Adjust.
14271 * corelow.c (core_xfer_partial): Likewise.
14272 * ctf.c (ctf_xfer_partial): Likewise.
14273 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14275 (darwin_xfer_partial): Likewise.
14276 * exec.c (section_table_xfer_memory_partial): Likewise. All
14278 (exec_xfer_partial): Likewise.
14279 * exec.h (section_table_xfer_memory_partial): Update
14281 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14283 (gnu_xfer_partial): Likewise.
14284 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14285 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14286 (ia64_hpux_xfer_solib_got): Likewise.
14287 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14288 type of 'partial_len' to ULONGEST.
14289 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14290 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14291 (linux_nat_xfer_partial): Likewise.
14292 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14293 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14294 * monitor.c (monitor_xfer_memory): Likewise.
14295 (monitor_xfer_partial): Likewise.
14296 * procfs.c (procfs_xfer_partial): Likewise.
14297 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14298 * record-full.c (record_full_xfer_partial): Likewise.
14299 (record_full_core_xfer_partial): Likewise.
14300 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14301 (gdbsim_xfer_partial): Likewise.
14302 * remote.c (remote_write_bytes_aux): Likewise. All callers
14304 (remote_write_bytes, remote_read_bytes): Likewise. All
14306 (remote_flash_erase): Likewise. All callers updated.
14307 (remote_write_qxfer): Likewise. All callers updated.
14308 (remote_read_qxfer): Likewise. All callers updated.
14309 (remote_xfer_partial): Likewise.
14310 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14311 (rs6000_xfer_shared_libraries): Likewise.
14312 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14313 (sol_thread_xfer_partial): Likewise.
14314 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14315 (sparc_xfer_partial): Likewise.
14316 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14318 (spu_xfer_partial): Likewise.
14319 * spu-multiarch.c (spu_xfer_partial): Likewise.
14320 * tracepoint.c (tfile_xfer_partial): Likewise.
14321 * windows-nat.c (windows_xfer_memory): Likewise.
14322 (windows_xfer_shared_libraries): Likewise.
14323 (windows_xfer_partial): Likewise.
14324 * valprint.c: Replace 'target_xfer_error' with
14325 'target_xfer_status' in comments.
14327 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14329 Checked in by Joel Brobecker <brobecker@adacore.com>.
14330 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14332 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14334 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14335 function parameters.
14337 2014-02-10 Will Newton <will.newton@linaro.org>
14339 * elfread.c (elf_rel_plt_read): Look for a .got section if
14340 looking up .got.plt fails.
14341 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14342 on address passed to elf_gnu_ifunc_record_cache.
14343 (elf_gnu_ifunc_resolve_addr): Likewise.
14344 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14346 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14348 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14349 (X_RETTURN): New macro.
14350 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14352 * sparc64-tdep.c (sparc64_init_abi): Hook
14353 sparc_in_function_epilogue_p.
14355 2014-02-10 Gary Benson <gbenson@redhat.com>
14357 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14358 Rename name_matcher to symbol_matcher.
14360 2014-02-10 Gary Benson <gbenson@redhat.com>
14362 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14363 Use expand_symtabs_file_matcher_ftype and
14364 expand_symtabs_symbol_matcher_ftype.
14366 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14368 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14369 (struct ada_symbol_cache): New.
14370 (ada_free_symbol_cache): Forward declare.
14371 (struct ada_pspace_data): New.
14372 (ada_pspace_data_handle): New static global.
14373 (get_ada_pspace_data, ada_pspace_data_cleanup)
14374 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14375 (cache_space, cache): Delete, now folded inside struct
14377 (ada_get_symbol_cache): New function.
14378 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14380 (_initialize_ada_language): Remove initialization of cache_space.
14381 Move call to observer_attach_inferior_exit up, grouping it
14382 with the other observer registrations inside this function.
14383 Rename command to be more general. Add call to
14384 register_program_space_data_with_cleanup.
14386 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14388 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14389 ada_new_objfile_observer.
14390 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14391 (_initialize_tasks): Update uses of ada_new_objfile_observer
14392 and ada_tasks_normal_stop_observer.
14394 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14396 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14397 returned by the 'Length attribute to integer.
14399 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14401 * ada-lang.c (_initialize_ada_language): Initialize
14402 cache_space obstack.
14404 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14406 * ada-lang.c (HASH_SIZE): New macro.
14407 (struct cache_entry): New type.
14408 (cache_space, cache): New static globals.
14409 (ada_clear_symbol_cache, find_entry): New functions.
14410 (lookup_cached_symbol, cache_symbol): Implement.
14411 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14412 (_initialize_ada_language): Attach ada_new_objfile_observer
14413 and ada_free_objfile_observer.
14415 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14417 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14418 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14419 struct block * parameter.
14420 (ada_lookup_symbol_list_worker): Constify local variable "block".
14421 Remove cast which is no longer necessary.
14423 2014-02-10 Doug Evans <xdje42@gmail.com>
14425 Add Guile as an extension language.
14426 * NEWS: Mention Guile scripting.
14427 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14428 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14429 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14430 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14431 (CLIBS): Add GUILE_LIBS.
14432 (install-guile): New rule.
14433 (guile.o): New rule.
14434 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14435 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14436 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14437 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14438 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14439 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14440 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14441 * configure.ac: New option --with-guile.
14442 * configure: Regenerate.
14443 * config.in: Regenerate.
14444 * auto-load.c: Remove #include "python/python.h". Add #include
14445 "gdb/section-scripts.h".
14446 (source_section_scripts): Handle Guile scripts.
14447 (_initialize_auto_load): Add name of Guile objfile script to
14448 scripts-directory help text.
14449 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14450 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14451 (struct breakpoint): New member scm_bp_object.
14452 * defs.h (enum command_control_type): New value guile_control.
14453 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14455 (show_user): Update comment.
14456 (_initialize_cli_cmds): Update help text for "show user". Update help
14457 text for max-user-call-depth.
14458 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14460 (multi_line_command_p): Add guile_control.
14461 (print_command_lines): Handle guile_control.
14462 (execute_control_command, recurse_read_control_structure): Ditto.
14463 (process_next_line): Recognize "guile" commands.
14464 * disasm.c (gdb_disassemble_info): Make non-static.
14465 * disasm.h: #include "dis-asm.h".
14466 (struct gdbarch): Add forward decl.
14467 (gdb_disassemble_info): Declare.
14468 * extension.c: #include "guile/guile.h".
14469 (extension_languages): Add guile.
14470 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14471 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14472 * gdbtypes.c (get_unsigned_type_max): New function.
14473 (get_signed_type_minmax): New function.
14474 * gdbtypes.h (get_unsigned_type_max): Declare.
14475 (get_signed_type_minmax): Declare.
14476 * guile/README: New file.
14477 * guile/guile-internal.h: New file.
14478 * guile/guile.c: New file.
14479 * guile/guile.h: New file.
14480 * guile/scm-arch.c: New file.
14481 * guile/scm-auto-load.c: New file.
14482 * guile/scm-block.c: New file.
14483 * guile/scm-breakpoint.c: New file.
14484 * guile/scm-disasm.c: New file.
14485 * guile/scm-exception.c: New file.
14486 * guile/scm-frame.c: New file.
14487 * guile/scm-gsmob.c: New file.
14488 * guile/scm-iterator.c: New file.
14489 * guile/scm-lazy-string.c: New file.
14490 * guile/scm-math.c: New file.
14491 * guile/scm-objfile.c: New file.
14492 * guile/scm-ports.c: New file.
14493 * guile/scm-pretty-print.c: New file.
14494 * guile/scm-safe-call.c: New file.
14495 * guile/scm-string.c: New file.
14496 * guile/scm-symbol.c: New file.
14497 * guile/scm-symtab.c: New file.
14498 * guile/scm-type.c: New file.
14499 * guile/scm-utils.c: New file.
14500 * guile/scm-value.c: New file.
14501 * guile/lib/gdb.scm: New file.
14502 * guile/lib/gdb/boot.scm: New file.
14503 * guile/lib/gdb/experimental.scm: New file.
14504 * guile/lib/gdb/init.scm: New file.
14505 * guile/lib/gdb/iterator.scm: New file.
14506 * guile/lib/gdb/printing.scm: New file.
14507 * guile/lib/gdb/types.scm: New file.
14508 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14509 (VPATH): Add $(GUILE_SRCDIR).
14510 (GUILE_DIR): New variable.
14511 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14512 (all): Add stamp-guile dependency.
14513 (stamp-guile): New rule.
14514 (clean-guile, install-guile, uninstall-guile): New rules.
14515 (install-only): Add install-guile dependency.
14516 (uninstall): Add uninstall-guile dependency.
14517 (clean): Add clean-guile dependency.
14519 2014-02-09 Doug Evans <xdje42@gmail.com>
14521 Revert this patch (which I approved, mea culpa).
14523 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14525 * Makefile.in (all-lib): Remove.
14526 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14528 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14530 Fix Python stack corruption.
14531 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14534 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14536 * Makefile.in (all-lib): Remove.
14537 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14539 2014-02-07 Doug Evans <dje@google.com>
14541 * extension-priv.h (extension_language_script_ops): Add comment.
14542 (extension_language_ops): Add comment.
14543 (active_ext_lang_state): Fix typo in comment.
14545 2014-02-07 Pedro Alves <palves@redhat.com>
14547 PR breakpoints/16292
14548 * infrun.c (handle_signal_stop) <signal arrives while stepping
14549 over a breakpoint>: Switch back to the stepping thread.
14551 2014-02-07 Yao Qi <yao@codesourcery.com>
14553 * target.c (target_xfer_partial): Return zero if LEN is zero.
14555 2014-02-07 Yao Qi <yao@codesourcery.com>
14557 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14558 (ld_so_xfer_auxv): Likewise.
14559 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14560 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14561 * corelow.c (core_xfer_partial): Likewise.
14562 * ctf.c (ctf_xfer_partial): Likewise.
14563 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14564 (darwin_xfer_partial): Likewise.
14565 * exec.c (exec_xfer_partial): Likewise.
14566 * gnu-nat.c (gnu_xfer_partial): Likewise.
14567 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14568 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14569 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14570 * linux-nat.c (linux_xfer_siginfo): Likewise.
14571 (linux_proc_xfer_spu): Likewise.
14572 * procfs.c (procfs_xfer_partial): Likewise.
14573 * record-full.c (record_full_xfer_partial): Likewise.
14574 (record_full_core_xfer_partial): Likewise.
14575 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14576 * remote.c (remote_write_qxfer): Likewise.
14577 (remote_write_qxfer, remote_read_qxfer): Likewise.
14578 (remote_xfer_partial): Likewise.
14579 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14580 (rs6000_xfer_shared_libraries): Likewise.
14581 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14582 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14583 (spu_xfer_partial): Likewise.
14584 * target.c (memory_xfer_partial_1): Likewise.
14585 * tracepoint.c (tfile_xfer_partial): Likewise.
14586 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14587 (windows_xfer_partial): Likewise.
14589 2014-02-07 Yao Qi <yao@codesourcery.com>
14591 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14593 (core_xfer_shared_libraries_aix): Likewise.
14594 * gdbarch.c, gdbarch.h: Regenerated.
14595 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14596 ULONGEST. Change 'len_avail' type to ULONGEST.
14597 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14598 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14600 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14602 2014-02-07 Yao Qi <yao@codesourcery.com>
14604 * corefile.c (memory_error): Get 'exception' from ERR and pass
14605 'exception' to throw_error.
14607 2014-02-06 Doug Evans <xdje42@gmail.com>
14609 * configure.ac (libpython checking): Remove all but python.o from
14610 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14611 * configure: Regenerate.
14613 * Makefile.in (SFILES): Add extension.c.
14614 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14615 (COMMON_OBS): Add extension.o.
14616 * extension.h: New file.
14617 * extension-priv.h: New file.
14618 * extension.c: New file.
14620 * python/python-internal.h: #include "extension.h".
14621 (gdbpy_auto_load_enabled): Declare.
14622 (gdbpy_apply_val_pretty_printer): Declare.
14623 (gdbpy_apply_frame_filter): Declare.
14624 (gdbpy_preserve_values): Declare.
14625 (gdbpy_breakpoint_cond_says_stop): Declare.
14626 (gdbpy_breakpoint_has_cond): Declare.
14627 (void source_python_script_for_objfile): Delete.
14628 * python/python.c: #include "extension-priv.h".
14629 Delete inclusion of "observer.h".
14630 (extension_language_python): Moved here and renamed from
14631 script_language_python in py-auto-load.c.
14632 Redefined to be of type extension_language_defn.
14633 (python_extension_script_ops): New global.
14634 (python_extension_ops): New global.
14635 (struct python_env): New member previous_active.
14636 (restore_python_env): Call restore_active_ext_lang.
14637 (ensure_python_env): Call set_active_ext_lang.
14638 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14640 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14642 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14644 (gdbpy_eval_from_control_command): Renamed from
14645 eval_python_from_control_command, made static. New arg extlang.
14646 (gdbpy_source_script) Renamed from source_python_script, made static.
14648 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14649 result to int. New arg extlang.
14650 (gdbpy_source_objfile_script): Renamed from
14651 source_python_script_for_objfile, made static. New arg extlang.
14652 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14653 static. New args extlang, extlang_printers. Change result type to
14655 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14656 static. New arg extlang. Rename arg printers to extlang_printers
14657 and change type to ext_lang_type_printers *.
14658 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14659 static. Replace argument arg with extlang, extlang_printers.
14660 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14661 (!HAVE_PYTHON, source_python_script): Delete.
14662 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14663 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14664 (!HAVE_PYTHON, start_type_printers): Delete.
14665 (!HAVE_PYTHON, apply_type_printers): Delete.
14666 (!HAVE_PYTHON, free_type_printers): Delete.
14667 (_initialize_python): Delete call to observer_attach_before_prompt.
14668 (finalize_python): Set/restore active extension language.
14669 (gdbpy_finish_initialization) Renamed from
14670 finish_python_initialization, made static. New arg extlang.
14671 (gdbpy_initialized): New function.
14672 * python/python.h: #include "extension.h". Delete #include
14673 "value.h", "mi/mi-cmds.h".
14674 (extension_language_python): Declare.
14675 (GDBPY_AUTO_FILE_NAME): Delete.
14676 (enum py_bt_status): Moved to extension.h and renamed to
14677 ext_lang_bt_status.
14678 (enum frame_filter_flags): Moved to extension.h.
14679 (enum py_frame_args): Moved to extension.h and renamed to
14680 ext_lang_frame_args.
14681 (finish_python_initialization): Delete.
14682 (eval_python_from_control_command): Delete.
14683 (source_python_script): Delete.
14684 (apply_val_pretty_printer): Delete.
14685 (apply_frame_filter): Delete.
14686 (preserve_python_values): Delete.
14687 (gdbpy_script_language_defn): Delete.
14688 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14689 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14691 * auto-load.c: #include "extension.h".
14692 (GDB_AUTO_FILE_NAME): Delete.
14693 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14694 (script_language_gdb): Delete, moved to extension.c and renamed to
14695 extension_language_gdb.
14696 (source_gdb_script_for_objfile): Delete.
14697 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14698 (loaded_script): Change type of language member to
14699 struct extension_language_defn *.
14700 (init_loaded_scripts_info): Initialize
14701 unsupported_script_warning_printed.
14702 (maybe_add_script): Make static. Change type of language arg to
14703 struct extension_language_defn *.
14704 (clear_section_scripts): Reset unsupported_script_warning_printed.
14705 (auto_load_objfile_script_1): Rewrite to use extension language API.
14706 (auto_load_objfile_script): Make public. Remove support-compiled-in
14707 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14708 (source_section_scripts): Rewrite to use extension language API.
14709 (load_auto_scripts_for_objfile): Rewrite to use
14710 auto_load_scripts_for_objfile.
14711 (collect_matching_scripts_data): Change type of language member to
14712 struct extension_language_defn *.
14713 (auto_load_info_scripts): Change type of language arg to
14714 struct extension_language_defn *.
14715 (unsupported_script_warning_print): New function.
14716 (script_not_found_warning_print): Make static.
14717 (_initialize_auto_load): Rewrite construction of scripts-directory
14719 * auto-load.h (struct objfile): Add forward decl.
14720 (struct script_language): Delete.
14721 (struct auto_load_pspace_info): Add forward decl.
14722 (struct extension_language_defn): Add forward decl.
14723 (maybe_add_script): Delete.
14724 (auto_load_objfile_script): Declare.
14725 (script_not_found_warning_print): Delete.
14726 (auto_load_info_scripts): Update prototype.
14727 (auto_load_gdb_scripts_enabled): Declare.
14728 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14729 auto_load_python_scripts_enabled and made public.
14730 (script_language_python): Delete, moved to python.c.
14731 (gdbpy_script_language_defn): Delete.
14732 (info_auto_load_python_scripts): Update to use
14733 extension_language_python.
14735 * breakpoint.c (condition_command): Replace call to
14736 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14737 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14738 with call to breakpoint_ext_lang_cond_says_stop.
14739 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14740 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14741 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14742 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14744 (local_setattro): Print name of extension language with existing
14747 * valprint.c (val_print, value_print): Update to call
14748 apply_ext_lang_val_pretty_printer.
14749 * cp-valprint.c (cp_print_value): Update call to
14750 apply_ext_lang_val_pretty_printer.
14751 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14752 (gdbpy_apply_val_pretty_printer): Renamed from
14753 apply_val_pretty_printer. New arg extlang.
14754 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14756 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14757 extension language API.
14758 * cli/cli-script.c (execute_control_command): Update to call
14759 eval_ext_lang_from_control_command.
14761 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14762 enum ext_lang_bt_status values. Update call to
14763 apply_ext_lang_frame_filter.
14764 (mi_cmd_stack_list_locals): Ditto.
14765 (mi_cmd_stack_list_args): Ditto.
14766 (mi_cmd_stack_list_variables): Ditto.
14767 * mi/mi-main.c: Delete #include "python/python-internal.h".
14768 Add #include "extension.h".
14769 (mi_cmd_list_features): Replace reference to python internal variable
14770 gdb_python_initialized with call to ext_lang_initialized_p.
14772 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14773 Update to use enum ext_lang_frame_args. Update to call
14774 apply_ext_lang_frame_filter.
14775 * python/py-framefilter.c (extract_sym): Update to use enum
14776 ext_lang_bt_status.
14777 (extract_value, py_print_type, py_print_value): Ditto.
14778 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14779 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14780 (py_print_frame): Ditto.
14781 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14782 New arg extlang. Update to use enum ext_lang_bt_status.
14784 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14785 finish_python_initialization. Replace with call to
14786 finish_ext_lang_initialization.
14788 * typeprint.c (do_free_global_table): Update to call
14789 free_ext_lang_type_printers.
14790 (create_global_typedef_table): Update to call
14791 start_ext_lang_type_printers.
14792 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14793 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14794 (type_print_options): Change type of global_printers from "void *"
14795 to "struct ext_lang_type_printers *".
14797 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14798 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14799 (gdbpy_preserve_values): Renamed from preserve_python_values.
14801 (!HAVE_PYTHON, preserve_python_values): Delete.
14803 * utils.c (quit_flag): Delete, moved to extension.c.
14804 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14807 * eval.c: Delete #include "python/python.h".
14808 * main.c: Delete #include "python/python.h".
14810 * defs.h: Update comment.
14812 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14816 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14818 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14821 2014-02-05 Yao Qi <yao@codesourcery.com>
14823 * remote.c (remote_pass_signals): Remove local 'buf' and use
14825 (remote_program_signals): Likewise.
14827 2014-02-05 Yao Qi <yao@codesourcery.com>
14829 * ctf.c: Include "inferior.h" and "gdbthread.h".
14830 (CTF_PID): A new macro.
14831 (ctf_open): Call inferior_appeared and add_thread_silent.
14832 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14833 (ctf_thread_alive): New function.
14834 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14836 2014-02-05 Yao Qi <yao@codesourcery.com>
14840 2013-05-24 Yao Qi <yao@codesourcery.com>
14842 * tracepoint.c (TFILE_PID): Remove.
14843 (tfile_open): Don't add thread and inferior.
14844 (tfile_close): Don't set 'inferior_ptid'. Don't call
14845 exit_inferior_silent.
14846 (tfile_thread_alive): Remove.
14847 (init_tfile_ops): Don't set field 'to_thread_alive' of
14850 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14852 * remote.c (remote_start_remote): Call remote_check_symbols even
14853 if only symbol-file (not file) has been given.
14855 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14857 * gdbarch.sh (skip_entrypoint): New callback.
14858 * gdbarch.c, gdbarch.h: Regenerate.
14859 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14860 * infrun.c (fill_in_stop_func): Likewise.
14861 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14862 (ppc_elfv2_elf_make_msymbol_special): New function.
14863 (ppc_elfv2_skip_entrypoint): Likewise.
14864 (ppc_linux_init_abi): Install them for ELFv2.
14866 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14868 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14869 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14870 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14871 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14872 structures returned in GPRs.
14874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14876 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14877 offset to the stack parameter list for the ELFv2 ABI.
14879 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14881 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14882 set_gdbarch_convert_from_func_ptr_addr and
14883 set_gdbarch_elf_make_msymbol_special for ELFv1.
14884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14885 function descriptors on ELFv1.
14886 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14887 set up r12 at function entry.
14889 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14891 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14892 (struct gdbarch_tdep): New member elf_abi.
14894 * rs6000-tdep.c: Include "elf/ppc64.h".
14895 (rs6000_gdbarch_init): Detect ELF ABI version.
14897 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14899 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14900 within a register pair holding a DFP 128-bit value on little-endian.
14901 (ppc64_sysv_abi_return_value_base): Likewise.
14902 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14903 (dfp_pseudo_register_write): Likewise.
14905 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14907 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14908 offset on little-endian when passing _Decimal32.
14909 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14911 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14913 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14914 of the overlapped FP register within the VSX register on little-
14916 (efpr_pseudo_register_write): Likewise.
14918 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14920 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14921 offset on little-endian when passing small structures.
14923 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14925 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14926 (struct ppc64_sysv_argpos): New data structure.
14927 (ppc64_sysv_abi_push_float): Remove.
14928 (ppc64_sysv_abi_push_val): New function.
14929 (ppc64_sysv_abi_push_integer): Likewise.
14930 (ppc64_sysv_abi_push_freg): Likewise.
14931 (ppc64_sysv_abi_push_vreg): Likewise.
14932 (ppc64_sysv_abi_push_param): Likewise.
14933 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14934 (ppc64_sysv_abi_return_value_base): New function.
14935 (ppc64_sysv_abi_return_value): Refactor to use it.
14937 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14939 * NEWS: Document new target powerpc64le-*-linux*.
14941 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14943 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14944 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14946 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14947 register set used in ELF core dumps. Add floating-point register set.
14949 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14951 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14952 dwarf2_to_gdb[] table using symbolic constants. Adjust
14953 penultimate entry from number representing the PC register
14954 to symbolic constant representing the MDR register. Add
14955 constant for the PC register to the end of the table.
14957 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14959 * bsd-kvm.c: Include <sys/param.h>
14961 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14963 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14965 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14967 * ada-lang.h (clear_ada_sym_cache): Delete.
14969 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14971 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14973 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14975 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14976 the sigreturn register save area only if the syscall is
14979 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14981 * valops.c (value_slice): Minor reformatting.
14983 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14985 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14987 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14989 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14990 New static globals.
14991 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14992 (ada_ignore_descriptive_types_p): New static global.
14993 (find_parallel_type_by_descriptive_type): Return immediately
14994 if ada_ignore_descriptive_types_p is set.
14995 (_initialize_ada_language): Register new commands "maintenance
14996 set ada", "maintenance show ada", "maintenance set ada
14997 ignore-descriptive-types" and "maintenance show ada
14998 ignore-descriptive-types".
14999 * NEWS: Add entry for new "maint ada set/show
15000 ignore-descriptive-types" commands.
15002 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15004 * record-btrace.c (record_btrace_close): Call btrace_teardown
15007 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15009 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15012 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15014 * ada-typeprint (type_is_full_subrange_of_target_type):
15016 (print_range): Add parameter bounds_prefered_p. If not set,
15017 try printing range types using the name of their base type.
15018 (print_range_type): Add parameter bounds_prefered_p.
15019 Use it in call to print_range.
15020 (print_array_type, ada_print_type): Update calls to print_range
15021 and print_range_type.
15023 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15025 * ada-typeprint.c (print_array_type, print_choices, print_range)
15026 (print_range_bound, print_dynamic_range_bound, print_range_type):
15027 Remove declaration.
15029 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15031 * ada-typeprint.c (print_range): Add missing empty line
15032 after local declaration.
15034 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15036 * ada-valprint.c (print_optional_low_bound): Get index_type's
15037 target type for as long as it is a TYPE_CODE_RANGE.
15039 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15041 * procfs.c (procfs_make_note_section): Remove assertion and
15042 associated comment.
15044 2014-01-24 Yao Qi <yao@codesourcery.com>
15046 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15047 * corelow.c (get_core_siginfo): Likewise.
15049 2014-01-24 Yao Qi <yao@codesourcery.com>
15051 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15052 ULONGEST. Don't check 'len' is negative.
15053 (remote_write_bytes): Change type of 'len' to ULONGEST.
15055 2014-01-23 Tom Tromey <tromey@redhat.com>
15058 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15059 Handle exception from frame.block.
15060 (FrameVars.fetch_frame_locals): Likewise.
15062 2014-01-23 Tom Tromey <tromey@redhat.com>
15065 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15066 on a NULL pointer. Move "goto error" to correct place.
15068 2014-01-23 Tom Tromey <tromey@redhat.com>
15071 * python/py-framefilter.c (apply_frame_filter): Call
15072 ensure_python_env after computing gdbarch.
15074 2014-01-23 Yao Qi <yao@codesourcery.com>
15076 * target.c (raw_memory_xfer_partial): Change argument type
15077 from void * to gdb_byte *.
15078 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15080 2014-01-22 Doug Evans <dje@google.com>
15082 New gdbserver option --debug-format=timestamp.
15083 * NEWS: Mention it.
15085 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15087 * syscalls/s390x-linux.xml: New file.
15088 * syscalls/s390-linux.xml: New file.
15089 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15090 (XML_SYSCALL_FILENAME_S390X): Likewise.
15091 (op_svc): New enum value for SVC opcode.
15092 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15093 (s390_linux_get_syscall_number): New function.
15094 (s390_gdbarch_init): Register '*get_syscall_number' and the
15095 syscall xml file name.
15096 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15097 "s390-linux.xml" and "s390x-linux.xml".
15098 * NEWS: Announce new feature.
15100 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15102 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15104 2014-01-22 Pedro Alves <palves@redhat.com>
15106 * xtensa-config.c: Include defs.h.
15108 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15110 * common/common-utils.h: Add "ARI:" comment beside __func__
15113 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15115 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15116 documentation a bit.
15118 2014-01-21 Roland McGrath <mcgrathr@google.com>
15120 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15121 * configure: Regenerate.
15122 * aclocal.m4: Regenerate.
15123 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15124 New substituted variables.
15125 (install-strip): New target.
15126 (INSTALL_SCRIPT): New substituted variable.
15127 (FLAGS_TO_PASS): Add it.
15128 (install-only): Use $(INSTALL_SCRIPT) rather than
15129 $(INSTALL_PROGRAM) for gcore.
15131 2014-01-20 Tom Tromey <tromey@redhat.com>
15133 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15136 2014-01-20 Tom Tromey <tromey@redhat.com>
15138 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15139 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15140 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15141 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15142 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15143 (struct cmd_list_element) <flags>: Remove.
15144 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15145 doc_allocated>: New fields.
15146 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15148 * maint.c (maintenance_do_deprecate): Update.
15149 * top.c (execute_command): Update.
15151 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15153 * xtensa-linux-nat.c: Include asm/ptrace.h.
15155 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15157 * Makefile.in (SFILES): Add d-support.c.
15158 (COMMON_OBS): Add d-support.o.
15159 * d-lang.h (d_parse_symbol): Add comment, now defined in
15161 * d-lang.c (parse_call_convention)
15162 (parse_attributes, parse_function_types)
15163 (parse_function_args, parse_type, parse_identifier)
15164 (call_convention_p, d_parse_symbol): Move functions to ...
15165 * d-support.c: ... New file.
15167 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15169 * d-lang.h (d_parse_symbol): Add declaration.
15170 * d-lang.c (extract_identifiers)
15171 (extract_type_info): Remove functions.
15172 (parse_call_convention, parse_attributes)
15173 (parse_function_types, parse_function_args)
15174 (parse_type, parse_identifier, call_convention_p)
15175 (d_parse_symbol): New functions.
15176 (d_demangle): Use d_parse_symbol to demangle D symbols.
15178 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15180 * d-lang.h (struct builtin_d_type): New data type.
15181 (builtin_d_type): Add declaration.
15182 * d-lang.c (d_language_arch_info, build_d_types)
15183 (builtin_d_type): New functions.
15184 (enum d_primitive_types): New data type.
15185 (d_language_defn): Change c_language_arch_info to
15186 d_language_arch_info.
15187 (d_type_data): New static variable.
15188 (_initialize_d_language): Initialize d_type_data.
15190 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15192 * d-lang.h (d_main_name): Add declaration.
15193 * d-lang.c (d_main_name): New function.
15194 * symtab.c (find_main_name): Add call to d_main_name.
15196 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15198 * d-lang.c (d_language_defn): Change macro_expansion_c to
15199 macro_expansion_no.
15201 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15203 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15205 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15207 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15208 gdb_exception" declaration.
15209 * remote.c (getpkt_or_notif_sane): Likewise.
15211 2014-01-17 Doug Evans <dje@google.com>
15213 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15214 function, contents of dirnames_to_char_ptr_vec_append moved here.
15215 (delim_string_to_char_ptr_vec): New function.
15216 (dirnames_to_char_ptr_vec_append): Rewrite.
15217 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15219 2014-01-17 Doug Evans <dje@google.com>
15221 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15223 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15224 #include "common-utils.h".
15225 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15226 * common/vec.h (VEC_ASSERT_PASS): Update.
15227 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15228 (MACH_CHECK_ERROR): Update.
15230 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15232 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15234 * gdbarch.h: Regenerate.
15236 2014-01-16 Tom Tromey <tromey@redhat.com>
15238 * value.c (struct value) <regnum>: Move earlier.
15240 2014-01-16 Tom Tromey <tromey@redhat.com>
15242 * remote.c (extended_remote_create_inferior): Rename from
15243 extended_remote_create_inferior_1. Add "ops" argument. Remove
15244 old implementation.
15246 2014-01-16 Pedro Alves <palves@redhat.com>
15248 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15249 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15252 2014-01-16 Doug Evans <dje@google.com>
15254 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15258 * btrace.h (btrace_thread_flag): New.
15259 (struct btrace_thread_info) <flags>: New.
15260 * record-btrace.c (record_btrace_resume_thread)
15261 (record_btrace_find_thread_to_move, btrace_step_no_history)
15262 (btrace_step_stopped, record_btrace_start_replaying)
15263 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15264 (record_btrace_find_resume_thread): New.
15265 (record_btrace_resume, record_btrace_wait): Extend.
15266 (record_btrace_can_execute_reverse): New.
15267 (record_btrace_open): Fail in non-stop mode.
15268 (record_btrace_set_replay): Split into this, ...
15269 (record_btrace_stop_replaying): ... this, ...
15270 (record_btrace_clear_histories): ... and this.
15271 (init_record_btrace_ops): Init to_can_execute_reverse.
15272 * NEWS: Announce it.
15274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15276 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15277 (forward_target_decr_pc_after_break)
15278 (target_decr_pc_after_break): New.
15279 * target.c (forward_target_decr_pc_after_break)
15280 (target_decr_pc_after_break): New.
15281 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15282 instead of gdbarch_decr_pc_after_break.
15283 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15284 instead of gdbarch_decr_pc_after_break.
15285 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15286 instead of gdbarch_decr_pc_after_break.
15287 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15288 instead of gdbarch_decr_pc_after_break.
15289 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15290 instead of gdbarch_decr_pc_after_break.
15291 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15292 instead of gdbarch_decr_pc_after_break.
15294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15296 * btrace.c: Include regcache.h.
15297 (btrace_add_pc): New.
15298 (btrace_enable): Call btrace_add_pc.
15299 (btrace_is_empty): New.
15300 * btrace.h (btrace_is_empty): New.
15301 * record-btrace.c (require_btrace, record_btrace_info): Call
15304 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15306 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15307 Support delta reads.
15308 (linux_disable_btrace): Change return type.
15309 * common/linux-btrace.h (linux_read_btrace): Change parameters
15310 and return type to allow error reporting. Update users.
15311 (linux_disable_btrace): Change return type. Update users.
15312 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15314 (btrace_error): New.
15315 (btrace_block) <begin>: Comment on BEGIN == 0.
15316 * btrace.c (btrace_compute_ftrace): Start from the end of
15318 (btrace_stitch_trace, btrace_clear_history): New.
15319 (btrace_fetch): Read delta trace, return if replaying.
15320 (btrace_clear): Move clear history code to btrace_clear_history.
15321 (parse_xml_btrace): Throw an error if parsing failed.
15322 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15323 and return type to allow error reporting.
15324 (target_read_btrace): Change parameters and return type to allow
15326 * target.c (target_read_btrace): Update.
15327 * remote.c (remote_read_btrace): Support delta reads. Pass
15329 * NEWS: Announce it.
15331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15333 * record.h (record_btrace_frame_unwind)
15334 (record_btrace_tailcall_frame_unwind): New declarations.
15335 * dwarf2-frame: Include record.h
15336 (dwarf2_frame_cfa): Throw an error for btrace frames.
15337 * record-btrace.c: Include hashtab.h.
15338 (btrace_get_bfun_name): New.
15339 (btrace_call_history): Call btrace_get_bfun_name.
15340 (struct btrace_frame_cache): New.
15342 (bfcache_hash, bfcache_eq, bfcache_new): New.
15343 (btrace_get_frame_function): New.
15344 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15345 (record_btrace_frame_this_id): Compute own id.
15346 (record_btrace_frame_prev_register): Provide PC, throw_error
15347 for all other registers.
15348 (record_btrace_frame_sniffer): Detect btrace frames.
15349 (record_btrace_tailcall_frame_sniffer): New.
15350 (record_btrace_frame_dealloc_cache): New.
15351 (record_btrace_frame_unwind): Add new functions.
15352 (record_btrace_tailcall_frame_unwind): New.
15353 (_initialize_record_btrace): Allocate cache.
15354 * btrace.c (btrace_clear): Call reinit_frame_cache.
15355 * NEWS: Announce it.
15357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15359 * record-btrace.c (record_btrace_set_replay)
15360 (record_btrace_goto_begin, record_btrace_goto_end)
15361 (record_btrace_goto): New.
15362 (init_record_btrace_ops): Initialize them.
15363 * NEWS: Announce it.
15365 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15367 * record-btrace.c (record_btrace_find_new_threads)
15368 (record_btrace_thread_alive): New.
15369 (init_record_btrace_ops): Initialize to_find_new_threads and
15372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15374 * record-btrace.c (record_btrace_resume): New.
15375 (record_btrace_wait): New.
15376 (init_record_btrace_ops): Initialize to_wait and to_resume.
15378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15380 * record-btrace.c (record_btrace_xfer_partial)
15381 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15382 (record_btrace_allow_memory_access): New.
15383 (init_record_btrace_ops): Initialize new methods.
15384 * target.c (raw_memory_xfer_partial): Bail out if target reports
15385 that this memory is not available.
15387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15389 * target.h (target_ops) <to_insert_breakpoint>
15390 <to_remove_breakpoint>: Add target_ops parameter.
15391 (forward_target_insert_breakpoint): New.
15392 (forward_target_remove_breakpoint): New.
15393 (memory_remove_breakpoint, memory_insert_breakpoint):
15394 Add target_ops parameter.
15395 * target.c (target_insert_breakpoint): Split into this and ...
15396 (forward_target_insert_breakpoint): ... this.
15397 (target_remove_breakpoint): Split into this and ...
15398 (forward_target_remove_breakpoint): ... this.
15399 (debug_to_insert_breakpoint): Add target_ops parameter.
15400 Call forward_target_insert_breakpoint.
15401 (debug_to_remove_breakpoint): Add target_ops parameter.
15402 Call forward_target_remove_breakpoint.
15403 (update_current_target): Do not inherit or default to_insert_breakpoint
15404 and to_remove_breakpoint.
15405 * corelow.c (ignore): Add target_ops parameter.
15406 * exec.c (ignore): Add target_ops parameter.
15407 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15408 Add target_ops parameter.
15409 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15410 Add target_ops parameter.
15411 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15412 Add target_ops parameter.
15413 * record-full.c (record_full_beneath_to_insert_breakpoint)
15414 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15415 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15416 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15417 (record_full_core_remove_breakpoint): Add target_ops parameter.
15419 (record_full_beneath_to_insert_breakpoint_ops)
15420 (record_full_beneath_to_remove_breakpoint_ops)
15421 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15422 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15423 tmp_to_remove_breakpoint_ops,
15424 record_full_beneath_to_insert_breakpoint_ops, and
15425 record_full_beneath_to_remove_breakpoint_ops.
15426 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15427 (m32r_remove_breakpoint): Add target_ops parameter.
15428 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15429 Add target_ops parameter.
15430 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15431 Add target_ops parameter.
15433 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15434 Markus Metzger <markus.t.metzger@intel.com>
15436 * record-btrace.c: Include frame-unwind.h.
15437 (record_btrace_frame_unwind_stop_reason)
15438 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15439 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15441 (init_record_btrace_ops): Install it.
15443 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15445 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15448 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15450 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15453 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15455 * frame-unwind.c: Include target.h.
15456 (frame_unwind_try_unwinder): New function with code from ...
15457 (frame_unwind_find_by_frame): ... here. New variable
15458 unwinder_from_target, call also target_get_unwinder)
15459 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15460 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15461 * target.h (struct target_ops): New fields to_get_unwinder and
15462 to_get_tailcall_unwinder.
15463 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15467 * record-btrace.c (record_btrace_fetch_registers)
15468 (record_btrace_store_registers)
15469 (record_btrace_to_prepare_to_store): New.
15470 (init_record_btrace_ops): Add the above.
15472 2014-01-16 Tom Tromey <tromey@redhat.com>
15474 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15475 * target.h (struct target_ops) <to_prepare_to_store>: Add
15477 (target_prepare_to_store): Add argument.
15478 * target.c (debug_to_prepare_to_store): Add argument.
15479 (update_current_target): Update.
15480 * remote.c (remote_prepare_to_store): Add 'self' argument.
15481 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15482 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15483 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15484 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15486 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15487 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15488 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15489 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15490 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15494 * btrace.h (replay) <replay>: New.
15495 (btrace_is_replaying): New.
15496 * btrace.c (btrace_clear): Free replay iterator.
15497 (btrace_is_replaying): New.
15498 * record-btrace.c (record_btrace_is_replaying): New.
15499 (record_btrace_info): Print insn number if replaying.
15500 (record_btrace_insn_history): Start at replay position.
15501 (record_btrace_call_history): Start at replay position.
15502 (init_record_btrace_ops): Init to_record_is_replaying.
15504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15506 * record-btrace.c (record_btrace_insn_history_range): Include
15508 (record_btrace_insn_history_from): Adjust range.
15509 (record_btrace_call_history_range): Include
15511 (record_btrace_call_history_from): Adjust range.
15512 * NEWS: Announce changes.
15514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15516 * record.h (enum record_print_flag)
15517 <record_print_indent_calls>: New.
15518 * record.c (get_call_history_modifiers): Recognize /c modifier.
15519 (_initialize_record): Document /c modifier.
15520 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15521 Reorder fields. Optionally indent the function name. Update
15523 * NEWS: Announce changes.
15525 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15527 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15531 * btrace.c (ftrace_new_function): Start counting at one.
15532 * record-btrace.c (record_btrace_info): Adjust number of calls
15534 * NEWS: Announce it.
15536 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15538 * record-btrace.c (btrace_call_history_insn_range): Print
15539 insn range as [begin, end].
15541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15543 * btrace.h (struct btrace_func_link): New.
15544 (enum btrace_function_flag): New.
15545 (struct btrace_inst): Rename to ...
15546 (struct btrace_insn): ...this. Update all users.
15547 (struct btrace_func) <ibegin, iend>: Remove.
15548 (struct btrace_func_link): New.
15549 (struct btrace_func): Rename to ...
15550 (struct btrace_function): ...this. Update all users.
15551 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15552 (number, level, flags>: New.
15553 (struct btrace_insn_iterator): Rename to ...
15554 (struct btrace_insn_history): ...this.
15556 (struct btrace_insn_iterator, btrace_call_iterator): New.
15557 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15558 (struct btrace_target_info) <begin, end, level>
15559 <insn_history, call_history>: New.
15560 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15561 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15562 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15563 (btrace_call_number, btrace_call_begin, btrace_call_end)
15564 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15565 (btrace_find_function_by_number, btrace_set_insn_history)
15566 (btrace_set_call_history): New.
15567 * btrace.c (btrace_init_insn_iterator)
15568 (btrace_init_func_iterator, compute_itrace): Remove.
15569 (ftrace_print_function_name, ftrace_print_filename)
15570 (ftrace_skip_file): Change
15571 parameter to const.
15572 (ftrace_init_func): Remove.
15573 (ftrace_debug): Use new btrace_function fields.
15574 (ftrace_function_switched): Also consider gaining and
15575 losing symbol information).
15576 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15577 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15578 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15580 (ftrace_new_function): Move. Remove debug print.
15581 (ftrace_update_lines, ftrace_update_insns): New.
15582 (ftrace_update_function): Check for call, ret, and jump.
15583 (compute_ftrace): Renamed to ...
15584 (btrace_compute_ftrace): ...this. Rewritten to compute call
15586 (btrace_fetch, btrace_clear): Updated.
15587 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15588 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15589 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15590 (btrace_call_number, btrace_call_begin, btrace_call_end)
15591 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15592 (btrace_find_function_by_number, btrace_set_insn_history)
15593 (btrace_set_call_history): New.
15594 * record-btrace.c (require_btrace): Use new btrace thread
15596 (record_btrace_info, btrace_insn_history)
15597 (record_btrace_insn_history, record_btrace_insn_history_range):
15598 Use new btrace thread info fields and new iterator.
15599 (btrace_func_history_src_line): Rename to ...
15600 (btrace_call_history_src_line): ...this. Use new btrace
15601 thread info fields.
15602 (btrace_func_history): Rename to ...
15603 (btrace_call_history): ...this. Use new btrace thread info
15604 fields and new iterator.
15605 (record_btrace_call_history, record_btrace_call_history_range):
15606 Use new btrace thread info fields and new iterator.
15608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15610 * frame.h (frame_id_build_unavailable_stack_special): New.
15611 * frame.c (frame_id_build_unavailable_stack_special): New.
15613 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15615 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15616 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15617 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15619 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15620 (i386_insn_is_jump, i386_jmp_p): New.
15621 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15622 insn_is_jump to gdbarch.
15623 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15624 * gdbarch.h: Regenerated.
15625 * gdbarch.c: Regenerated.
15626 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15627 (default_insn_is_jump): New.
15628 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15629 (default_insn_is_jump): New.
15631 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15633 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15635 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15636 (btrace_read_type) <btrace_read_new>: Change to ...
15637 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15639 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15641 * common/linux-btrace.c (linux_read_btrace): Free trace from
15642 previous iteration.
15644 2014-01-15 Doug Evans <dje@google.com>
15646 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15649 2014-01-15 Tom Tromey <tromey@redhat.com>
15651 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15652 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15653 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15654 (set_objfile_main_name): New function.
15655 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15656 language_of_main>: New fields.
15657 (set_objfile_main_name): Declare.
15658 * symtab.c (find_main_name): Loop over objfiles to find the main
15660 (set_main_name): Now static.
15661 (get_main_info): Add comment.
15662 * symtab.h (set_main_name): Don't declare.
15664 2014-01-15 Tom Tromey <tromey@redhat.com>
15666 * symtab.c (main_progspace_key): New global.
15667 (struct main_info): New.
15668 (name_of_main, language_of_main): Remove.
15669 (get_main_info, main_info_cleanup): New function.
15670 (set_main_name, main_name, main_language): Use get_main_info.
15671 (_initialize_symtab): Initialize main_progspace_key.
15673 2014-01-15 Tom Tromey <tromey@redhat.com>
15675 * dbxread.c (process_one_symbol): Update.
15676 * dwarf2read.c (read_partial_die): Update.
15677 * symfile.c (set_initial_language): Call main_language.
15678 * symtab.c (language_of_main): Now static.
15679 (set_main_name): Add 'lang' parameter.
15680 (find_main_name): Update.
15681 (main_language): New function.
15682 (symtab_observer_executable_changed): Update.
15683 * symtab.h (set_main_name): Update.
15684 (language_of_main): Remove.
15685 (main_language): Declare.
15687 2014-01-15 Tom Tromey <tromey@redhat.com>
15689 * symfile.c (init_entry_point_info): Use new "initialized" field.
15691 * objfiles.h (struct entry_point) <initialized>: New field.
15692 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15693 (struct objfile) <ei>: ...here. Remove.
15694 * objfiles.c (entry_point_address_query): Update.
15696 2014-01-15 Tom Tromey <tromey@redhat.com>
15698 * objfiles.c (entry_point_address_query): Relocate entry point
15700 (objfile_relocate1): Do not relocate entry point address.
15701 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15702 <the_bfd_section_index>: New field.
15703 * symfile.c (init_entry_point_info): Find the entry point's
15706 2014-01-15 Tom Tromey <tromey@redhat.com>
15708 * solib-frv.c (enable_break): Use entry_point_address_query.
15710 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15712 * NEWS: Add note on improved process record-replay on
15713 arm*-linux* targets.
15715 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15717 * arm-tdep.c (enum arm_record_result): New enum.
15718 (arm_record_unsupported_insn): New function.
15719 (arm_record_coproc_data_proc): Removed.
15720 (thumb2_record_ld_st_multiple): New function.
15721 (thumb2_record_ld_st_dual_ex_tbb): New function.
15722 (thumb2_record_data_proc_sreg_mimm): New function.
15723 (thumb2_record_ps_dest_generic): New function.
15724 (thumb2_record_branch_misc_cntrl): New function.
15725 (thumb2_record_str_single_data): New function.
15726 (thumb2_record_ld_mem_hints): New function.
15727 (thumb2_record_ld_word): New function.
15728 (thumb2_record_lmul_lmla_div): New function.
15729 (thumb2_record_decode_insn_handler): New function.
15730 (decode_insn): Add thumb32 instruction handlers.
15732 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15734 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15735 (struct arm_linux_record_tdep): Declare.
15736 (arm_canonicalize_syscall): New function.
15737 (arm_all_but_pc_registers_record): New function.
15738 (arm_linux_syscall_record): New function.
15739 (arm_linux_init_abi): Add syscall recording constructs.
15740 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15741 decoding. (arm_record_coproc_data_proc): Update arm syscall
15743 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15744 <arm_syscall_record>: New field.
15745 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15748 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15750 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15751 register for push instruction recording.
15753 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15755 * arm-tdep.c (thumb_record_misc): Update to correct logical
15756 error while recording ldm, ldmia and pop instructions.
15758 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15760 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15762 2014-01-15 Pedro Alves <palves@redhat.com>
15764 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15765 (go32_resume, go32_fetch_registers, store_register)
15766 (go32_store_registers, go32_prepare_to_store)
15767 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15768 (go32_create_inferior, go32_can_run, go32_terminal_init)
15769 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15772 2014-01-15 Tom Tromey <tromey@redhat.com>
15774 * target.h (async_callback_ftype): New typedef.
15775 (struct target_ops) <to_async>: Use it.
15777 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15779 * python/py-value.c (get_field_type): Remove unnecessary curly
15780 braces for single-statement if block.
15782 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15784 * python/py-type.c (convert_field): Add missing empty line
15785 after declarations.
15787 2014-01-14 Doug Evans <dje@google.com>
15789 * symfile.h (expand_symtabs_matching): Renamed from
15790 expand_partial_symbol_names. Update prototype.
15791 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15792 * symfile.c (expand_symtabs_matching): Renamed from
15793 expand_partial_symbol_names. New args file_matcher, kind.
15794 Rename arg fun to symbol_matcher.
15795 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15796 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15797 ada_expand_partial_symbol_name.
15798 (ada_make_symbol_completion_list): Update to call
15799 expand_symtabs_matching.
15800 (ada_add_global_exceptions): Call expand_symtabs_matching.
15801 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15802 call map_symbol_filenames.
15803 * symtab.c (sources_info): Update to call map_symbol_filenames.
15804 (search_symbols): Call expand_symtabs_matching.
15805 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15806 (default_make_symbol_completion_list_break_on): Update to call
15807 expand_symtabs_matching.
15808 (make_source_files_completion_list): Update to call
15809 map_symbol_filenames.
15811 2014-01-14 Doug Evans <dje@google.com>
15813 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15814 (expand_symtabs_symbol_matcher_ftype): New typedef.
15815 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15816 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15817 * symfile.c (expand_partial_symbol_names): Update to use
15818 expand_symtabs_symbol_matcher_ftype.
15819 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15820 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15821 Arg name_matcher renamed to symbol_matcher.
15822 * psymtab.c (recursively_search_psymtabs): Update to use
15823 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15825 (expand_symtabs_matching_via_partial): Update to use
15826 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15827 Arg name_matcher renamed to symbol_matcher.
15829 2014-01-14 Doug Evans <dje@google.com>
15831 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15832 (map_partial_symbol_filenames): Ditto.
15833 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15834 (map_partial_symbol_filenames): Ditto.
15835 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15836 (map_partial_symbol_filenames): Ditto.
15837 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15838 (map_partial_symbol_filenames): Ditto.
15839 * symtab.c: Delete #include "psymtab.h".
15841 2014-01-14 Pedro Alves <palves@redhat.com>
15842 Tom Tromey <tromey@redhat.com>
15844 * infrun.c (use_displaced_stepping): Use find_record_target
15845 instead of RECORD_IS_USED.
15846 (adjust_pc_after_break): Use record_full_is_used instead of
15848 * record-btrace.c (record_btrace_open): Call record_preopen
15849 instead of checking RECORD_IS_USED.
15850 * record-full.c (record_full_shortname)
15851 (record_full_core_shortname): New globals.
15852 (record_full_is_used): New function.
15853 (find_full_open): Call record_preopen instead of checking
15855 (init_record_full_ops): Set the target's shortname to
15856 record_full_shortname.
15857 (init_record_full_core_ops): Set the target's shortname to
15858 record_full_core_shortname.
15859 * record-full.h (record_full_is_used): Declare.
15860 * record.c (find_record_target): Make extern.
15861 (record_preopen): New function.
15862 * record.h (RECORD_IS_USED): Delete macro.
15863 (find_record_target, record_preopen): Declare functions.
15865 2014-01-14 Yao Qi <yao@codesourcery.com>
15867 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15868 'len''s type to ULONGEST.
15869 (core_xfer_shared_libraries_aix): Likewise.
15870 * gdbarch.c, gdbarch.h: Regenerated.
15871 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15872 Change type of 'len' to ULONGEST.
15873 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15874 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15876 2014-01-14 Yao Qi <yao@codesourcery.com>
15878 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15879 type of 'len' to ULONGEST.
15880 (linux_xfer_osdata_processgroups): Likewise.
15881 (linux_xfer_osdata_threads): Likewise.
15882 (linux_xfer_osdata_fds): Likewise.
15883 (linux_xfer_osdata_isockets): Likewise.
15884 (linux_xfer_osdata_shm): Likewise.
15885 (linux_xfer_osdata_sem): Likewise.
15886 (linux_xfer_osdata_msg): Likewise.
15887 (linux_common_xfer_osdata): Likewise.
15888 (struct osdata_type) <getter>: Likewise.
15889 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15892 2014-01-14 Yao Qi <yao@codesourcery.com>
15894 * target.h (target_xfer_partial_ftype): Update.
15895 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15897 * aix-thread.c (aix_thread_xfer_partial): Change type of
15898 argument 'len' to ULONGEST.
15899 * auxv.c (procfs_xfer_auxv): Likewise.
15900 (ld_so_xfer_auxv): Likewise.
15901 (memory_xfer_auxv): Likewise.
15902 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15903 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15904 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15905 * corelow.c (core_xfer_partial): Likewise.
15906 * ctf.c (ctf_xfer_partial): Likewise.
15907 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15909 (darwin_read_dyld_info): Likewise.
15910 (darwin_xfer_partial): Likewise.
15911 * exec.c (section_table_xfer_memory_partial): Likewise.
15912 (exec_xfer_partial): Likewise.
15913 * exec.h (section_table_xfer_memory_partial): Update
15915 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15916 instead of plongest.
15917 (gnu_xfer_partial): Likewise.
15918 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15919 (ia64_hpux_xfer_solib_got): Likewise.
15920 (ia64_hpux_xfer_partial): Likewise.
15921 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15922 * inf-ptrace.c (inf_ptrace_xfer_partial):
15923 * inf-ttrace.c (inf_ttrace_xfer_partial):
15924 * linux-nat.c (linux_xfer_siginfo): Likewise.
15925 (linux_nat_xfer_partial): Likewise.
15926 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15927 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15928 * monitor.c (monitor_xfer_memory): Likewise.
15929 (monitor_xfer_partial): Likewise.
15930 * procfs.c (procfs_xfer_partial): Likewise.
15931 * record-full.c (record_full_xfer_partial): Likewise.
15932 (record_full_core_xfer_partial): Likewise.
15933 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15934 instead of plongest.
15935 (gdbsim_xfer_partial): Likewise.
15936 * remote.c (remote_xfer_partial): Likewise.
15937 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15938 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15940 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15941 (rs6000_xfer_shared_libraries): Likewise.
15942 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15943 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15944 (sparc_xfer_partial): Likewise.
15945 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15946 (spu_xfer_partial): Likewise.
15947 * spu-multiarch.c (spu_xfer_partial): Likewise.
15948 * target.c (target_read_live_memory): Likewise.
15949 (memory_xfer_live_readonly_partial): Likewise.
15950 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15951 (target_xfer_partial, default_xfer_partial): Likewise.
15952 (current_xfer_partial): Likewise.
15953 * tracepoint.c (tfile_xfer_partial): Likewise.
15954 * windows-nat.c (windows_xfer_memory): Likewise. Call
15955 pulongest instead of plongest.
15956 (windows_xfer_partial): Likewise.
15957 (windows_xfer_shared_libraries): Likewise.
15959 2014-01-14 Yao Qi <yao@codesourcery.com>
15961 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15962 target_xfer_partial_ftype.
15964 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15968 * valops.c (value_struct_elt_bitpos): New function
15969 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15970 object to 'None' if the field name is an empty string ("").
15971 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15972 attribute to look for a field when 'name' is 'None'.
15973 (get_field_type): New function
15975 2014-01-13 Doug Evans <dje@google.com>
15978 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15979 (try_open_dwop_file): Ditto.
15980 * gdb_bfd.c: #include "vec.h".
15981 (bfdp): New typedef.
15982 (struct gdb_bfd_data): New member included_bfds.
15983 (gdb_bfd_unref): Unref all included bfds.
15984 (gdb_bfd_record_inclusion): New function.
15985 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15987 2014-01-13 Tom Tromey <tromey@redhat.com>
15989 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15991 2014-01-13 Tom Tromey <tromey@redhat.com>
15993 * defs.h (use_windows): Remove.
15994 * gdb.c (main): Update.
15995 * main.c (captured_main, gdb_main): Update.
15996 * main.h (struct captured_main_args) <use_windows>: Remove.
15997 * top.c (use_windows): Remove.
15999 2014-01-13 Tom Tromey <tromey@redhat.com>
16001 * defs.h (deprecated_flush_hook): Remove.
16003 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16006 * linux-thread-db.c (try_thread_db_load): Add parameter
16007 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16008 (try_thread_db_load_from_pdir_1): Move it there from here.
16009 (try_thread_db_load_from_sdir): Update caller.
16010 (try_thread_db_load_from_dir): Move it there from here.
16012 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16014 * regformats/regdat.sh: Always rewrite the register file.
16016 2014-01-13 Pedro Alves <palves@redhat.com>
16018 * Makefile.in (CHECK_HEADERS): New variable.
16019 (check-headers:): New rule.
16021 2014-01-13 Tom Tromey <tromey@redhat.com>
16023 * cli/cli-setshow.c (do_set_command): Update.
16024 * defs.h (deprecated_set_hook): Remove.
16025 * top.c (deprecated_set_hook): Remove.
16027 2014-01-13 Pedro Alves <palves@redhat.com>
16029 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16030 the tracepoint if the PC is a pseudo-register.
16032 2014-01-13 Tom Tromey <tromey@redhat.com>
16034 * defs.h (XCALLOC): Remove.
16035 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16036 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16037 * dwarf2loc.c (allocate_piece_closure): Likewise.
16038 * elfread.c (elf_symfile_segments): Likewise.
16039 (elf_symfile_segments): Likewise.
16040 * gdbtypes.c (copy_type_recursive): Likewise.
16041 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16042 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16043 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16045 * mt-tdep.c (mt_gdbarch_init): Likewise.
16046 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16048 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16049 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16050 * registry.c (registry_alloc_data): Likewise.
16051 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16052 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16053 * serial.c (serial_fdopen_ops): Likewise.
16054 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16056 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16057 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16060 2014-01-13 Tom Tromey <tromey@redhat.com>
16062 * defs.h (XMALLOC): Remove.
16063 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16064 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16065 * cli-out.c (struct ui_out *): Likewise.
16066 * cli/cli-dump.c (add_dump_command): Likewise.
16067 (add_dump_command): Likewise.
16068 * complaints.c (get_complaints): Likewise.
16069 (find_complaint): Likewise.
16070 * dwarf2-frame.c (execute_cfa_program): Likewise.
16071 * dwarf2read.c (abbrev_table_read_table): Likewise.
16072 * gdbarch.sh: Likewise.
16073 * gdbarch.c: Rebuild.
16074 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16075 * interps.c (interp_new): Likewise.
16076 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16077 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16078 * mi/mi-console.c (mi_console_file_new): Likewise.
16079 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16080 * mi/mi-out.c (mi_out_new): Likewise.
16081 * mi/mi-parse.c (mi_parse): Likewise.
16082 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16083 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16084 * observer.c (xalloc_observer_list_node): Likewise.
16085 * regcache.c (regcache_xmalloc_1): Likewise.
16086 * reggroups.c (reggroup_new): Likewise.
16087 (_initialize_reggroup): Likewise.
16088 * registry.c (register_data_with_cleanup): Likewise.
16089 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16090 * ser-base.c (serial_ttystate): Likewise.
16091 * ser-mingw.c (make_pipe_state): Likewise.
16092 * ser-pipe.c (pipe_open): Likewise.
16093 * serial.c (serial_open): Likewise.
16094 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16095 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16096 (tui_alloc_win_info): Likewise.
16097 (tui_add_content_elements): Likewise.
16098 * tui/tui-file.c (tui_file_new): Likewise.
16099 * tui/tui-out.c (tui_out_new): Likewise.
16100 * ui-file.c (mem_file_new): Likewise.
16101 * ui-out.c (push_level): Likewise.
16102 (make_cleanup_ui_out_end): Likewise.
16103 (append_header_to_list): Likewise.
16104 (ui_out_new): Likewise.
16105 * user-regs.c (user_reg_add_builtin): Likewise.
16107 2014-01-13 Tom Tromey <tromey@redhat.com>
16109 * defs.h (XZALLOC): Remove.
16110 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16111 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16112 (get_ada_tasks_inferior_data): Likewise.
16113 * auto-load.c (get_auto_load_pspace_data): Likewise.
16114 * auxv.c (get_auxv_inferior_data): Likewise.
16115 * bfd-target.c (target_bfd_reopen): Likewise.
16116 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16117 (deprecated_insert_raw_breakpoint): Likewise.
16118 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16119 * corelow.c (core_open): Likewise.
16120 * darwin-nat.c (darwin_check_new_threads): Likewise.
16121 (darwin_attach_pid): Likewise.
16122 * dummy-frame.c (dummy_frame_push): Likewise.
16123 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16124 * dwarf2loc.c (allocate_piece_closure): Likewise.
16125 * elfread.c (elf_symfile_segments): Likewise.
16126 * eval.c (ptrmath_type_p): Likewise.
16127 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16128 * gdbtypes.c (alloc_type_arch): Likewise.
16129 (alloc_type_instance): Likewise.
16130 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16131 * inf-child.c (inf_child_can_use_agent): Likewise.
16132 * inflow.c (get_inflow_inferior_data): Likewise.
16133 * infrun.c (save_infcall_suspend_state): Likewise.
16134 * jit.c (jit_reader_load): Likewise.
16135 (get_jit_objfile_data): Likewise.
16136 (get_jit_program_space_data): Likewise.
16137 (jit_object_open_impl): Likewise.
16138 (jit_symtab_open_impl): Likewise.
16139 (jit_block_open_impl): Likewise.
16140 (jit_frame_sniffer): Likewise.
16141 * linux-fork.c (add_fork): Likewise.
16142 * maint.c (make_command_stats_cleanup): Likewise.
16143 * objfiles.c (get_objfile_pspace_data): Likewise.
16144 * opencl-lang.c (struct lval_closure): Likewise.
16145 * osdata.c (osdata_start_osdata): Likewise.
16146 * progspace.c (new_address_space): Likewise.
16147 (add_program_space): Likewise.
16148 * remote-sim.c (get_sim_inferior_data): Likewise.
16149 * sh-tdep.c (sh_gdbarch_init): Likewise.
16150 * skip.c (Ignore): Likewise.
16151 (skip_delete_command): Likewise.
16152 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16153 (library_list_start_library): Likewise.
16154 (solib_aix_current_sos): Likewise.
16155 * solib-darwin.c (get_darwin_info): Likewise.
16156 (darwin_current_sos): Likewise.
16157 * solib-dsbt.c (get_dsbt_info): Likewise.
16158 * solib-ia64-hpux.c (new_so_list): Likewise.
16159 (ia64_hpux_get_solib_linkage_addr): Likewise.
16160 * solib-spu.c (append_ocl_sos): Likewise.
16161 (spu_current_sos): Likewise.
16162 * solib-svr4.c (get_svr4_info): Likewise.
16163 (svr4_keep_data_in_core): Likewise.
16164 (library_list_start_library): Likewise.
16165 (svr4_default_sos): Likewise.
16166 (svr4_read_so_list): Likewise.
16167 * solib-target.c (library_list_start_library): Likewise.
16168 (solib_target_current_sos): Likewise.
16169 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16170 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16171 * symfile.c (default_symfile_segments): Likewise.
16172 * target-descriptions.c (tdesc_data_init): Likewise.
16173 (tdesc_create_reg): Likewise.
16174 (struct tdesc_type *): Likewise.
16175 (tdesc_create_vector): Likewise.
16176 (tdesc_set_struct_size): Likewise.
16177 (struct tdesc_type *): Likewise.
16178 (tdesc_free_feature): Likewise.
16179 (tdesc_create_feature): Likewise.
16180 * windows-nat.c (windows_add_thread): Likewise.
16181 (windows_make_so): Likewise.
16182 * xml-support.c (gdb_xml_body_text): Likewise.
16183 (gdb_xml_create_parser_and_cleanup): Likewise.
16184 (xml_process_xincludes): Likewise.
16185 * xml-syscall.c (allocate_syscalls_info): Likewise.
16186 (syscall_create_syscall_desc): Likewise.
16188 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16190 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16191 function, with code from i386_stap_parse_special_token.
16192 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16193 (i386_stap_parse_special_token): Move code to the two functions
16194 above; simplify it.
16196 2014-01-09 Pedro Alves <palves@redhat.com>
16197 Hui Zhu <hui@codesourcery.com>
16200 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16201 bp_err_string. Don't mark the location shlib_disabled if the
16202 error thrown wasn't a generic or memory error. Catch errors
16203 thrown while inserting breakpoints in overlayed code. Output
16204 error message of software breakpoints.
16205 * remote.c (remote_insert_breakpoint): If this breakpoint has
16206 target-side commands but this stub doesn't support Z0 packets,
16207 throw NOT_SUPPORTED_ERROR error.
16208 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16209 * target.h (target_insert_breakpoint): Extend comment.
16210 (target_insert_hw_breakpoint): Add comment.
16212 2014-01-08 Pedro Alves <palves@redhat.com>
16214 * remote.c (remote_add_thread): Add threads silently if starting
16216 (remote_notice_new_inferior): If in all-stop, and starting up,
16217 don't call notice_new_inferior.
16218 (get_current_thread): New function, factored out from ...
16219 (add_current_inferior_and_thread): ... this. Adjust.
16220 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16221 found any thread, then select the remote's current thread as GDB's
16222 current thread too.
16224 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16226 * NEWS: Create a new section for the next release branch.
16227 Rename the section of the current branch, now that it has
16230 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16232 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16233 * version.in: Bump version to 7.7.50.DATE-cvs.
16235 2014-01-08 Yao Qi <yao@codesourcery.com>
16237 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16238 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16239 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16241 2014-01-08 Yao Qi <yao@codesourcery.com>
16243 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16244 return value of bfd_get_filename to symbol_file_add_from_bfd.
16246 2014-01-08 Pierre Muller <muller@sourceware.org>
16249 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16250 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16251 to prim_record_mininal_symbol_and_info.
16252 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16253 in call to prim_record_minimal_symbol_and_info.
16254 (read_pe_exported_syms): Set index field of section_data.
16256 2014-01-07 Andrew Pinski <apinski@cavium.com>
16258 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16259 * features/aarch64.c: Regenerate.
16261 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16263 * target.c (return_null): Define.
16264 (update_current_target): Use it instead of return_zero for
16265 functions that return a pointer.
16267 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16269 * source.c (add_path): Fix check for duplicated paths in the previously
16272 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16274 * ada-lang.c: Remove duplicated include statements.
16275 * alphabsd-nat.c: Ditto.
16276 * amd64-darwin-tdep.c: Ditto.
16277 * amd64fbsd-nat.c: Ditto.
16278 * auto-load.c: Ditto.
16280 * breakpoint.c: Ditto.
16281 * dbxread.c: Ditto.
16282 * fork-child.c: Ditto.
16283 * gdb_usleep.c: Ditto.
16284 * i386-darwin-tdep.c: Ditto.
16285 * i386fbsd-nat.c: Ditto.
16287 * inferior.c: Ditto.
16288 * jv-lang.c: Ditto.
16289 * linux-nat.c: Ditto.
16290 * linux-tdep.c: Ditto.
16291 * m68kbsd-nat.c: Ditto.
16292 * m68klinux-nat.c: Ditto.
16293 * microblaze-tdep.c: Ditto.
16294 * mips-linux-tdep.c: Ditto.
16295 * mn10300-tdep.c: Ditto.
16296 * nto-tdep.c: Ditto.
16297 * opencl-lang.c: Ditto.
16299 * printcmd.c: Ditto.
16300 * regcache.c: Ditto.
16301 * remote-m32r-sdi.c: Ditto.
16303 * symfile.c: Ditto.
16305 * tilegx-linux-nat.c: Ditto.
16306 * tilegx-tdep.c: Ditto.
16307 * tracepoint.c: Ditto.
16309 * vaxbsd-nat.c: Ditto.
16310 * windows-nat.c: Ditto.
16311 * xtensa-tdep.c: Ditto.
16313 2014-01-07 Yao Qi <yao@codesourcery.com>
16315 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16317 2014-01-07 Yao Qi <yao@codesourcery.com>
16318 Joel Brobecker <brobecker@adacore.com>
16320 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16321 (pdc_write_regs): Likewise.
16322 (fetch_regs_kernel_thread): Likewise.
16323 (store_regs_kernel_thread): Likewise.
16325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16327 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16328 tagged type objects to their actual type.
16330 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16332 * ada-valprint.c (print_field_values): Add "language" parameter.
16333 Update calls to print_field_values and print_variant_part.
16334 Pass new parameter "language" in call to val_print instead
16335 of "current_language". Replace call to ada_val_print by call
16337 (print_variant_part): Add "language" parameter.
16338 (ada_val_print_struct_union): Update call to print_field_values.
16340 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16342 * ada-valprint.c (ui_memcpy): Delete.
16343 (ada_print_floating): Update documentation. Add empty line
16344 between between function documentation and implementation.
16345 Delete variable "buffer". Use ui_file_xstrdup in place of
16346 ui_file_put. Minor adjustments following this change.
16348 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16350 * ada-valprint.c (ada_val_print_string): New function,
16351 extracted from ada_val_print_array.
16352 (ada_val_print_array): Replace extracted code by call
16353 to ada_val_print_string followed by a return. Move
16354 "else" branch to the function's top block.
16356 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16358 * ada-valprint.c (ada_val_print_array): Move implementation
16359 down. Rename parameter "offset" and "val" into "offset_aligned"
16360 and "original_value" respectively. Add parameter "offset".
16362 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16364 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16365 re-organizing the code. Change the "???" message printed
16366 when target type is a TYPE_CODE_UNDEF into
16367 "<ref to undefined type>".
16369 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16371 * ada-valprint.c (print_record): Delete, implementation inlined...
16372 (ada_val_print_struct_union): ... here. Remove call to
16373 ada_check_typedef in inlined implementation.
16375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16377 * ada-valprint.c (ada_val_print_gnat_array): New function,
16378 extracted from ada_val_print_1;
16379 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16380 (ada_val_print_flt, ada_val_print_struct_union)
16381 (ada_val_print_ref): Likewise.
16382 (ada_val_print_1): Delete variables i and elttype.
16383 Replace extracted-out code by call to corresponding
16386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16388 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16392 * ada-valprint.c (ada_val_print_1): Replace calls to
16393 ada_val_print_1 by calls to val_print.
16395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16397 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16398 Update calls to self accordingly. Replace calls to c_val_print
16399 by calls to val_print.
16401 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16403 * ada-valprint.c (print_record): Delete declaration.
16404 (adjust_type_signedness, ada_val_print_1): Likewise.
16405 (ada_val_print): Move function implementation down.
16406 (print_variant_part, print_field_values, print_record):
16407 Move function implementation up.
16409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16411 * python/py-type.c (typy_get_name): New function.
16412 (type_object_getset): Add entry for attribute "name".
16413 * NEWS: Add entry mentioning this new attribute.
16415 2014-01-07 Yao Qi <yao@codesourcery.com>
16417 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16420 2014-01-07 Yao Qi <yao@codesourcery.com>
16422 * gnu-nat.c (info_port_rights): Add qualifier const to
16425 2014-01-07 Yao Qi <yao@codesourcery.com>
16427 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16429 2014-01-07 Yao Qi <yao@codesourcery.com>
16431 * gnu-nat.c (make_inf) Update declaration.
16432 (make_inf): Make it static.
16433 (inf_set_traced): Likewise.
16434 (inf_port_to_thread, inf_task_died_status): Likewise.
16436 2014-01-07 Yao Qi <yao@codesourcery.com>
16438 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16440 2014-01-07 Yao Qi <yao@codesourcery.com>
16442 * gnu-nat.c (_initialize_gnu_nat): Declare.
16444 2014-01-07 Yao Qi <yao@codesourcery.com>
16446 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16448 (struct gdbarch_info) <byte_order>: Change type to
16450 <byte_order_for_code>: Likewise.
16451 * gdbarch.c, gdbarch.h: Regenerated.
16453 2014-01-06 Sasha Smundak <asmundak@google.com>
16455 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16457 2014-01-06 Tom Tromey <tromey@redhat.com>
16459 * doublest.c (convert_doublest_to_floatformat): Use const, not
16461 * somread.c (som_symtab_read): Likewise.
16463 2014-01-07 Hui Zhu <hui@codesourcery.com>
16465 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16466 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16467 (gdb_bfd_fopen): Ditto.
16468 (gdb_bfd_openr): Ditto.
16469 (gdb_bfd_openw): Ditto.
16470 (gdb_bfd_openr_iovec): Ditto.
16471 (gdb_bfd_fdopenr): Ditto.
16472 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16473 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16475 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16477 * symfile-mem.c (symbol_file_add_from_memory): Removed
16478 gdb_bfd_stash_filename.
16480 2014-01-03 Doug Evans <dje@google.com>
16482 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16485 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16487 Update year range in copyright notice of all files.
16489 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16491 * top.c (print_gdb_version): Set copyright year to 2014.
16493 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16495 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16497 For older changes see ChangeLog-2013.
16503 version-control: never