1 2014-12-22 Doug Evans <xdje42@gmail.com>
3 * cp-namespace.c: Whitespace cleanup.
5 2014-12-20 Keith Seitz <keiths@redhat.com>
6 Mihail-Marian Nistor <mihail.nistor@freescale.com>
9 * linespec.c (struct collect_minsyms): Add new member `symtab'.
10 (add_minsym): Handle cases where info.symtab is non-NULL.
11 (search_minsyms_for_name): Add new parameter `symtab'.
12 Handle limiting searches to a specific symtab.
13 (add_matching_symtabs_to_info): Search through minimal symbols
14 for language_asm files for which no new symbols are found.
16 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
17 Nigel Stephens <nigel@mips.com>
18 Chris Dearman <chris@mips.com>
19 Luis Machado <lgustavo@codesourcery.com>
21 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
22 (ALLDEPFILES): Add mips-sde-tdep.c.
23 * mips-sde-tdep.c: New file containg SDE specific code.
24 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
26 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
27 * osabi.c (gdb_osabi_names): Add SDE.
28 * NEWS: Mention the change.
30 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
32 * elfread.c (elf_symfile_init): Remove stale comment.
33 (elf_symfile_read): Same.
34 * symfile.h (struct sym_fns): Same.
36 2014-12-18 Nigel Stephens <nigel@mips.com>
37 Maciej W. Rozycki <macro@codesourcery.com>
39 * mips-tdep.c (print_fpu_flags): New function.
40 (mips_print_float_info): Likewise.
41 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
42 print_float_info routine.
44 2014-12-18 Yao Qi <yao@codesourcery.com>
46 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
47 * gdbarch.c: Re-generated.
48 * gdbarch.h: Likewise.
49 * infcmd.c (default_print_float_info): New function.
50 (print_float_info): Removed. Move code to
51 default_print_float_info.
52 (float_info): Adjust to call gdbarch_print_float_info.
53 * inferior.h (default_print_float_info): Declare it.
55 2014-12-18 Yao Qi <yao@codesourcery.com>
57 * h8300-tdep.c (h8300_print_float_info): Remove.
58 (h8300_gdbarch_init): Remove the call to
59 set_gdbarch_print_float_info.
61 2014-12-18 Doug Evans <xdje42@gmail.com>
63 * infcmd.c (jump_command): Minor simplification.
65 2014-12-18 Doug Evans <xdje42@gmail.com>
67 * language.c (language_lookup_primitive_type): Renamed from
68 language_lookup_primitive_type_by_name. All callers updated.
70 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
72 Fix MinGW compilation.
73 * compile/compile.c (get_compile_file_tempdir): Call error if
75 * config.in: Regenerate.
76 * configure: Regenerate.
77 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
79 2014-12-17 Doug Evans <xdje42@gmail.com>
81 * valops.c (value_maybe_namespace_elt): Remove redundant call to
84 2014-12-17 Doug Evans <xdje42@gmail.com>
86 New parameter "debug symbol-lookup".
88 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
90 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
91 (cp_lookup_nested_symbol): Ditto.
92 * language.c (language_lookup_primitive_type_by_name): Add debug
94 * minsyms.c (lookup_minimal_symbol): Add debug output.
95 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
96 * symfile-debug.c (debug_objfile_name): ... from here. All callers
98 * objfiles.h (objfile_debug_name): Declare.
99 * symtab.h (symbol_lookup_debug): Declare.
100 * symtab.c (symbol_lookup_debug): New global.
101 (lookup_language_this): Add debug output.
102 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
103 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
104 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
105 (_initialize_symtab): Add new parameter "debug symbol-lookup".
107 2014-12-16 Doug Evans <xdje42@gmail.com>
109 * buildsym.c: Add comments describing how the buildsym machinery
110 is used by the various file formats.
111 (really_free_pendings): Enhance function comment.
112 See pending_macros to NULL. Simplify resetting pending_addrmap.
113 Call free_buildsym_compunit.
114 (free_buildsym_compunit): Set current_subfile to NULL.
115 (prepare_for_building): New function.
116 (start_symtab): Call it. Remove call to set_last_source_file.
117 (restart_symtab): New arg "cust". All callers updated.
118 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
119 (reset_symtab_globals): Enhance function comment.
120 Set local_symbols, file_symbols, global_symbols to NULL.
121 Set pending_macros to NULL. Simplify resetting pending_addrmap.
122 Call free_buildysym_compunit.
123 (end_symtab_without_blockvector): Delete. All callers updated.
124 (end_symtab_with_blockvector): Remove redundant call to
125 free_buildsym_compunit.
126 (augment_type_symtab): Remove arg "cust". All callers updated.
127 (buildsym_init): Remove resetting of free_pendings, file_symbols,
128 global_symbols, pending_blocks, pending_macros. Instead make
129 handling consistent with pending_addrmap: Assert value was reset
130 at end of previous symtab building. Initialize context_stack here.
132 2014-12-16 Doug Evans <xdje42@gmail.com>
134 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
135 cp_lookup_symbol_imports. All callers updated.
137 2014-12-16 Doug Evans <xdje42@gmail.com>
139 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
140 find_type_baseclass_by_name. All callers updated.
142 2014-12-16 Doug Evans <xdje42@gmail.com>
144 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
145 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
146 (print_symbol_info): Delete arg symtab. All callers updated.
147 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
149 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
151 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
152 "Name" columns. Assure that the output is always indented.
154 2014-12-16 Joel Brobecker <brobecker@adacore.com>
156 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
158 (linux_enable_event_reporting): Add parameter "attached".
159 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
160 declaration. New function.
161 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
162 (linux_enable_event_reporting): Add new parameter "attached".
163 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
165 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
166 Use it. Update function description.
167 (linux_child_post_attach, linux_child_post_startup_inferior):
168 Update call to linux_enable_event_reporting.
170 2014-12-16 Yao Qi <yao@codesourcery.com>
172 * NEWS: Move some entries to "Changes since GDB 7.8" section.
174 2014-12-16 Yao Qi <yao@codesourcery.com>
176 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
179 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
181 * inferior.c (find_inferior_ptid): New function.
182 * inferior.h (find_inferior_ptid): New declaration.
183 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
184 * corelow.c (core_pid_to_str): Same.
185 * darwin-nat.c (darwin_resume): Same.
186 * infrun.c (fetch_inferior_event): Same.
187 (get_inferior_stop_soon): Same.
188 (handle_inferior_event): Same.
189 (handle_signal_stop): Same.
190 * linux-nat.c (resume_lwp): Same.
191 (stop_wait_callback): Same.
192 * mi/mi-interp.c (mi_new_thread): Same.
193 (mi_thread_exit): Same.
194 * proc-service.c (ps_pglobal_lookup): Same.
195 * record-btrace.c (record_btrace_step_thread): Same.
196 * remote-sim.c (gdbsim_close_inferior): Same.
197 (gdbsim_resume): Same.
199 * sol2-tdep.c (sol2_core_pid_to_str): Same.
200 * target.c (memory_xfer_partial_1): Same.
201 (default_thread_address_space): Same.
202 * thread.c (thread_change_ptid): Same.
203 (switch_to_thread): Same.
204 (do_restore_current_thread_cleanup): Same.
206 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
208 * defs.h (gdb_readline): Constify argument.
209 (gdb_readline_wrapper): Same.
210 (command_line_input): Same.
211 (deprecated_readline_hook): Same.
212 * top.c (deprecated_readline_hook): Same.
213 (gdb_readline): Same.
214 (gdb_readline_wrapper): Same.
215 (command_line_input): Constify argument. Pass prompt_arg to called
216 functions instead of local_prompt, overwriting prompt_arg if necessary.
217 * event-top.h (display_gdb_prompt): Constify argument.
218 * event-top.c (display_gdb_prompt): Same.
219 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
220 if building with Python 3.4 and up.
222 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
224 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
227 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
230 * memattr.c (mem_info_command): Remove "unsigned long" casts.
232 2014-12-13 Doug Evans <xdje42@gmail.com>
234 * utils.c (make_hex_string): Fix off-by-one error.
236 2014-12-13 Joel Brobecker <brobecker@adacore.com>
238 * ada-lang.h (ada_ensure_varsize_limit): Declare.
239 * ada-lang.c (check_size): Remove advance declaration.
240 (ada_ensure_varsize_limit): Renames check_size.
241 Replace calls to check_size by calls to ada_ensure_varsize_limit
243 * ada-valprint.c (ada_val_print_ref): Add call to
244 ada_ensure_varsize_limit. Add comment explaining why.
246 2014-12-13 Joel Brobecker <brobecker@adacore.com>
248 * utils.c (make_hex_string): Replace use of sprintf by use of
251 2014-12-13 Joel Brobecker <brobecker@adacore.com>
253 * compile/compile-object-load.c (link_callbacks_multiple_definition)
254 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
255 newline at end of warning message.
257 2014-12-13 Joel Brobecker <brobecker@adacore.com>
259 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
260 new "EXTRA-ARGS" parameter.
261 * configure.ac: If large-file support is disabled in GDB,
262 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
263 * configure: Regenerate.
265 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
268 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
269 TYPE if not TYPE_CODE_TYPEDEF.
271 2014-12-13 Joel Brobecker <brobecker@adacore.com>
274 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
275 the frame unwinder must either be the dwarf2_frame_unwind
276 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
277 stack_addr is valid before calling get_frame_base. Throw
278 an error if not valid.
280 2014-12-12 Doug Evans <xdje42@gmail.com>
282 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
285 2014-12-12 Doug Evans <xdje42@gmail.com>
287 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
288 All callers updated. Rename arg "namespace" to "symbol_name".
290 2014-12-12 Doug Evans <xdje42@gmail.com>
292 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
293 partial_map_symtabs_matching_filename. All uses updated.
294 (psym_find_pc_sect_compunit_symtab): Renamed from
295 find_pc_sect_compunit_symtab_from_partial. All uses updated.
296 Add function comment.
297 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
298 All uses updated. Add function comment.
299 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
300 Add function comment.
301 (psym_find_last_source_symtab): Renamed from
302 find_last_source_symtab_from_partial. All uses updated.
303 Add function comment.
304 (psym_forget_cached_source_info): Renamed from
305 forget_cached_source_info_partial. All uses updated.
306 Add function comment.
307 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
308 All uses updated. Add function comment.
309 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
310 updated. Add function comment.
311 (psym_expand_symtabs_for_function): Renamed from
312 read_symtabs_for_function. All uses updated. Update function comment.
313 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
314 All uses updated. Add function comment.
315 (psym_expand_symtabs_with_fullname): Renamed from
316 read_psymtabs_with_fullname. All uses updated. Add function comment.
317 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
318 All uses updated. Add function comment.
319 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
321 (psym_expand_symtabs_matching): Renamed from
322 expand_symtabs_matching_via_partial. All uses updated.
323 Add function comment.
324 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
325 Add function comment.
327 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
328 Jan Kratochvil <jan.kratochvil@redhat.com>
329 Tom Tromey <tromey@redhat.com>
332 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
334 * p-lang.c (pascal_language_defn): Update.
335 * opencl-lang.c (opencl_language_defn): Update.
336 * objc-lang.c (objc_language_defn): Update.
337 * m2-lang.c (m2_language_defn): Update.
338 * language.h (struct language_defn) <la_get_compile_instance,
339 la_compute_program>: New fields.
340 * language.c (unknown_language_defn, auto_language_defn)
341 (local_language_defn): Update.
342 * jv-lang.c (java_language_defn): Update.
343 * go-lang.c (go_language_defn): Update.
344 * f-lang.c (f_language_defn): Update.
345 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
346 * dwarf2loc.c (dwarf2_compile_property_to_c)
347 (locexpr_generate_c_location, loclist_generate_c_location): New
349 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
350 * defs.h (enum compile_i_scope_types): New.
351 (enum command_control_type) <compile_control>: New constant.
352 (struct command_line) <control_u>: New field.
353 * d-lang.c (d_language_defn): Update.
354 * compile/compile.c: New file.
355 * compile/compile-c-support.c: New file.
356 * compile/compile-c-symbols.c: New file.
357 * compile/compile-c-types.c: New file.
358 * compile/compile.h: New file.
359 * compile/compile-internal.h: New file.
360 * compile/compile-loc2c.c: New file.
361 * compile/compile-object-load.c: New file.
362 * compile/compile-object-load.h: New file.
363 * compile/compile-object-run.c: New file.
364 * compile/compile-object-run.h: New file.
365 * cli/cli-script.c (multi_line_command_p, print_command_lines)
366 (execute_control_command, process_next_line)
367 (recurse_read_control_structure): Handle compile_control.
368 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
369 * c-lang.c (c_language_defn, cplus_language_defn)
370 (asm_language_defn, minimal_language_defn): Update.
371 * ada-lang.c (ada_language_defn): Update.
372 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
374 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
375 (HFILES_NO_SRCDIR): Add compile.h.
376 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
377 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
378 (compile.o, compile-c-types.o, compile-c-symbols.o)
379 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
380 (compile-c-support.o): New targets.
382 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
384 * s390-linux-tdep.c (s390_gcc_target_options): New function.
385 (s390_gdbarch_init): Add it to gdbarch.
387 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
389 * linux-tdep.c: Include objfiles.h and infcall.h.
390 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
392 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
394 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
396 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
397 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
398 translate_register. Now public.
399 (dwarf2_compile_expr_to_ax): Update.
401 2014-12-12 Tom Tromey <tromey@redhat.com>
402 Jan Kratochvil <jan.kratochvil@redhat.com>
404 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
405 (dwarf_expr_frame_base): Update caller.
406 (dwarf_expr_frame_base_1): Rename to ...
407 (func_get_frame_base_dwarf_block): ... this and make it public.
408 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
410 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
412 2014-12-12 Tom Tromey <tromey@redhat.com>
414 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
416 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
417 dwarf2_compile_cfa_to_ax.
418 (dwarf2_compile_cfa_to_ax): Remove.
419 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
420 (dwarf2_compile_cfa_to_ax): Remove.
422 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
424 * infcall.h (call_function_by_hand_dummy): Declare.
425 * infcall.c (call_function_by_hand): Use
426 call_function_by_hand_dummy.
427 (call_function_by_hand_dummy): Rename from call_function_by_hand.
428 Add arguments. Register a destructor.
430 2014-12-12 Tom Tromey <tromey@redhat.com>
431 Jan Kratochvil <jan.kratochvil@redhat.com>
433 * osabi.h (osabi_triplet_regexp): Declare.
434 * osabi.c (struct osabi_names): New.
435 (gdb_osabi_names): Change type to struct osabi_names. Update
437 (gdbarch_osabi_name): Update.
438 (osabi_triplet_regexp): New function.
439 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
440 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
441 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
442 set_gdbarch_gnu_triplet_regexp.
443 * gdbarch.sh (gnu_triplet_regexp): New method.
444 * gdbarch.c, gdbarch.h: Rebuild.
445 * arch-utils.h (default_gnu_triplet_regexp): Declare.
446 * arch-utils.c (default_gnu_triplet_regexp): New function.
448 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
450 * arch-utils.c (default_infcall_mmap)
451 (default_gcc_target_options): New functions.
452 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
453 (GDB_MMAP_PROT_EXEC): Define.
454 (default_infcall_mmap, default_gcc_target_options): Declare.
455 * gdbarch.h: Rebuild.
456 * gdbarch.c: Rebuild.
457 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
459 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
461 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
463 (pop_dummy_frame): Call the destructor if it exists.
464 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
466 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
467 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
469 2014-12-12 Tom Tromey <tromey@redhat.com>
471 * gdbtypes.h (make_unqualified_type): Declare.
472 * gdbtypes.c (make_unqualified_type): New function.
474 2014-12-12 Tom Tromey <tromey@redhat.com>
476 * ui-file.h (ui_file_write_for_put): Declare.
477 * ui-file.c (ui_file_write_for_put): New function.
478 * mi/mi-out.c (do_write): Remove.
479 (mi_out_put): Use ui_file_write_for_put.
481 2014-12-12 Doug Evans <dje@google.com>
483 * NEWS: Mention gdb.lookup_objfile.
484 * python/python.c (GdbMethods): Add lookup_objfile.
485 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
486 * python/py-objfile.c: #include "symtab.h".
487 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
488 (objfpy_lookup_objfile_by_name): New function.
489 (objfpy_lookup_objfile_by_build_id): New function.
490 (gdbpy_lookup_objfile): New function.
492 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
494 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
495 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
496 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
498 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
501 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
503 * completer.c: Include "target.h", "reggroups.h", and
505 (reg_or_group_completer): New.
506 * completer.h (reg_or_group_completer): Declare.
507 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
508 the "info registers" and "info all-registers" commands and the
509 dbx-mode "lr" command.
511 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
513 * user-regs.c: Include "arch-utils.h", "command.h", and
515 (maintenance_print_user_registers): New.
516 (_initialize_user_regs): Register new "maint print user-registers"
518 * NEWS: Mention new GDB command "maint print user-registers".
520 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
521 Maciej W. Rozycki <macro@mips.com>
522 Pedro Alves <pedro@codesourcery.com>
524 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
525 remove `predefault' and `invalid_p' initializers.
526 (make_symbol_special): New architecture method.
527 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
528 (objfile, symbol): New declarations.
529 * arch-utils.h (default_elf_make_msymbol_special): Remove
531 (default_make_symbol_special): New prototype.
532 (default_adjust_dwarf2_addr): Likewise.
533 (default_adjust_dwarf2_line): Likewise.
534 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
535 * arch-utils.c (default_elf_make_msymbol_special): Remove
537 (default_make_symbol_special): New function.
538 (default_adjust_dwarf2_addr): Likewise.
539 (default_adjust_dwarf2_line): Likewise.
540 * dwarf2-frame.c (decode_frame_entry_1): Call
541 `gdbarch_adjust_dwarf2_addr'.
542 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
543 * dwarf2read.c (create_addrmap_from_index): Likewise.
544 (process_psymtab_comp_unit_reader): Likewise.
545 (add_partial_symbol): Likewise.
546 (add_partial_subprogram): Likewise.
547 (process_full_comp_unit): Likewise.
548 (read_file_scope): Likewise.
549 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
550 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
551 (read_call_site_scope): Likewise.
552 (dwarf2_ranges_read): Likewise.
553 (dwarf2_record_block_ranges): Likewise.
554 (read_attribute_value): Likewise.
555 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
556 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
557 * elfread.c (elf_symtab_read): Don't call
558 `gdbarch_elf_make_msymbol_special' if unset.
559 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
560 the ISA bit from the PC.
561 * mips-tdep.c (mips_unmake_compact_addr): New function.
562 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
563 address appropriately.
564 (mips_make_symbol_special): New function.
565 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
566 (mips_pc_is_mips16): Likewise.
567 (mips_pc_is_micromips): Likewise.
568 (mips_pc_isa): Likewise.
569 (mips_adjust_dwarf2_addr): New function.
570 (mips_adjust_dwarf2_line): Likewise.
571 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
572 (mips_addr_bits_remove): Likewise.
573 (mips_skip_trampoline_code): Likewise.
574 (mips_write_pc): Don't set the ISA bit.
575 (mips_eabi_push_dummy_call): Likewise.
576 (mips_o64_push_dummy_call): Likewise.
577 (mips_gdbarch_init): Install `mips_make_symbol_special',
578 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
580 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
581 target-specific symbol address adjustments.
582 * gdbarch.h: Regenerate.
583 * gdbarch.c: Regenerate.
585 2014-12-12 Yao Qi <yao@codesourcery.com>
588 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
589 'skip_pc'. Remove code skipping prologue instructions, use
590 arm_analyze_prologue instead.
591 (arm_analyze_prologue): Stop the scanning for unrecognized
592 instruction when skipping prologue.
594 2014-12-12 Yao Qi <yao@codesourcery.com>
596 * arm-tdep.c (arm_instruction_restores_sp): New function.
597 (arm_analyze_prologue): Call arm_instruction_restores_sp.
598 (arm_in_function_epilogue_p): Move code to
599 arm_instruction_restores_sp.
601 2014-12-11 Doug Evans <xdje42@gmail.com>
603 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
605 2014-12-11 Doug Evans <xdje42@gmail.com>
607 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
608 (symbol *lookup_symbol_via_quick_fns): Ditto.
609 (lookup_symbol_in_objfile): Add forward decl.
610 (lookup_global_symbol_from_objfile): Simplify, call
611 lookup_symbol_in_objfile.
613 2014-12-11 Doug Evans <xdje42@gmail.com>
615 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
617 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
620 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
621 it is marked as persistent.
623 2014-12-10 Doug Evans <xdje42@gmail.com>
625 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
626 closer to its subroutines.
628 2014-12-10 Doug Evans <xdje42@gmail.com>
630 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
632 2014-12-10 Doug Evans <xdje42@gmail.com>
634 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
635 * cp-support.h (cp_lookup_symbol_imports): Delete.
637 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
640 * target.c (cleanup_restore_target_terminal): New function.
641 (make_cleanup_restore_target_terminal): New function.
642 * target.h (make_cleanup_restore_target_terminal): New declaration.
643 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
645 2014-12-08 Doug Evans <dje@google.com>
647 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
649 2014-12-08 Doug Evans <dje@google.com>
651 * NEWS: Mention gdb.Objfile.owner.
652 * python/py-objfile.c (objfpy_get_owner): New function.
653 (objfile_getset): Add "owner".
655 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
657 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
658 (lookup_global_symbol_from_objfile): Call it.
660 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
662 Remove const from struct objfile *.
663 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
664 symtab.c, symtab.h: In these files.
666 2014-12-05 Andreas From <andreas.from@ericsson.com>
668 * MAINTAINERS (Write After Approval): Add "Andreas From"
670 2014-12-05 Doug Evans <xdje42@gmail.com>
674 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
676 2014-12-04 Doug Evans <dje@google.com>
678 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
679 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
680 (objfile_getset): Add "add_separate_debug_file".
682 2014-12-04 Doug Evans <dje@google.com>
684 * NEWS: Mention gdb.Objfile.build_id.
685 * build-id.c (build_id_bfd_get): Make non-static.
686 * build-id.h (build_id_bfd_get): Add declaration.
687 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
688 (OBJFPY_REQUIRE_VALID): New macro.
689 (objfpy_get_build_id): New function.
690 (objfile_getset): Add "build_id".
691 * utils.c (make_hex_string): New function.
692 * utils.h (make_hex_string): Add declaration.
694 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
696 * block.c (block_lookup_symbol_primary): New function.
697 * block.h (block_lookup_symbol_primary): New declaration.
698 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
699 Call block_lookup_symbol_primary.
701 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
703 * tramp-frame.h (tramp_frame): Add `validate' member.
704 * tramp-frame.c (tramp_frame_start): Validate trampoline before
706 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
707 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
708 (mips_linux_o32_sigframe): Initialize `validate' member.
709 (mips_linux_o32_rt_sigframe): Likewise.
710 (mips_linux_n32_rt_sigframe): Likewise.
711 (mips_linux_n64_rt_sigframe): Likewise.
712 (micromips_linux_o32_sigframe): New variable.
713 (micromips_linux_o32_rt_sigframe): Likewise.
714 (micromips_linux_n32_rt_sigframe): Likewise.
715 (micromips_linux_n64_rt_sigframe): Likewise.
716 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
717 (mips_linux_n32n64_sigframe_init): Likewise.
718 (mips_linux_sigframe_validate): New function.
719 (micromips_linux_sigframe_validate): Likewise.
720 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
722 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
724 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
725 * sparc-sol2-tdep.c: Include "regset.h".
726 (sparc32_sol2_supply_core_gregset): New function.
727 (sparc32_sol2_collect_core_gregset): Likewise.
728 (sparc32_sol2_supply_core_fpregset): Likewise.
729 (sparc32_sol2_collect_core_fpregset): Likewise.
730 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
731 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
732 tdep->fpregset/sizeof_fpregset.
733 * sparc64-sol2-tdep.c: Include "regset.h".
734 (sparc64_sol2_supply_core_gregset): New function.
735 (sparc64_sol2_collect_core_gregset): Likewise.
736 (sparc64_sol2_supply_core_fpregset): Likewise.
737 (sparc64_sol2_collect_core_fpregset): Likewise.
738 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
739 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
740 tdep->fpregset/sizeof_fpregset.
742 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
744 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
747 2014-12-02 Doug Evans <dje@google.com>
749 * symtab.c (symbol_init_cplus_specific): Delete.
750 (symbol_set_demangled_name): Remove special c++ support.
751 (symbol_get_demangled_name, symbol_set_language): Ditto.
752 * symtab.h (struct cplus_specific): Delete.
753 (struct general_symbol_info) <language_specific>: Remove
756 2014-12-02 Doug Evans <dje@google.com>
759 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
761 2014-12-02 Doug Evans <dje@google.com>
764 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
767 2014-12-02 Doug Evans <dje@google.com>
769 * dwarf2read.c (peek_die_abbrev): Improve error message text.
771 2014-12-02 Doug Evans <dje@google.com>
773 * valops.c (do_search_struct_field): Remove remnant of Chill support.
774 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
776 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
778 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
780 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
782 * NEWS: Mention new Python events.
783 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
784 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
785 (py-infevents.o): New rule.
786 * doc/observer.texi (inferior_call_pre, inferior_call_post)
787 (memory_changed, register_changed): New observers.
788 * infcall.c (call_function_by_hand): Notify observer before and
790 * python/py-event.h (inferior_call_kind): New enum.
791 (emit_inferior_call_event): New prototype.
792 (emit_register_changed_event): New prototype.
793 (emit_memory_changed_event): New prototype.
794 * python/py-events.h (events_object): New registries
795 inferior_call, memory_changed and register_changed.
796 * python/py-evts.c (gdbpy_initialize_py_events): Add the
797 inferior_call, memory_changed and register_changed registries.
798 * python/py-infevents.c: New.
799 * python/py-inferior.c (python_on_inferior_call_pre)
800 (python_on_inferior_call_post, python_on_register_change)
801 (python_on_memory_change): New functions.
802 (gdbpy_initialize_inferior): Attach python handler to new
804 * python/py-infthread.c(gdbpy_create_ptid_object): New.
805 (thpy_get_ptid) Use gdbpy_create_ptid_object.
806 * python/python-internal.h:
807 (gdbpy_create_ptid_object)
808 (gdbpy_initialize_inferior_call_pre_event)
809 (gdbpy_initialize_inferior_call_post_event)
810 (gdbpy_initialize_register_changed_event)
811 (gdbpy_initialize_memory_changed_event): New prototypes.
812 * python/python.c (_initialize_python): Initialize new events.
813 * valops.c (value_assign): Notify register_changed observer.
815 2014-12-02 Doug Evans <dje@google.com>
817 * python/py-infthread.c: Whitespace fixes.
819 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
821 * features/Makefile (s390-te-linux64-expedite): Replace
822 non-existant r14 and r15 by r14l and r15l, respectively.
823 * regformats/s390-te-linux64.dat: Regenerate.
825 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
827 * objfiles.c (allocate_objfile): Remove duplicate comment.
829 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
831 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
832 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
833 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
834 (supply_gregset, supply_fpregset): Remove.
835 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
836 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
839 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
841 Add add-auto-load-scripts-directory.
842 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
843 * auto-load.c (add_auto_load_dir): New function.
844 (_initialize_auto_load): Install it.
846 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
848 Pushed by Joel Brobecker <brobecker@adacore.com>.
849 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
851 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
853 * eval.c (evaluate_subexp): Check that the thread stack temporaries
854 are not already enabled before enabling them.
856 2014-11-29 Yao Qi <yao@codesourcery.com>
858 * arm-tdep.c (arm_analyze_prologue): Move local variables
859 'framereg' and 'framesize' to inner block. Move code to
862 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
864 * eval.c: Include gdbthread.h.
865 (evaluate_subexp): Enable thread stack temporaries before
866 evaluating a complete expression and clean them up after the
867 evaluation is complete.
868 * gdbthread.h: Include common/vec.h.
869 (value_ptr): New typedef.
870 (VEC (value_ptr)): New vector type.
871 (value_vec): New typedef.
872 (struct thread_info): Add new fields stack_temporaries_enabled
873 and stack_temporaries.
874 (enable_thread_stack_temporaries)
875 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
876 (get_last_thread_stack_temporary)
877 (value_in_thread_stack_temporaries): Declare.
878 * gdbtypes.c (class_or_union_p): New function.
879 * gdbtypes.h (class_or_union_p): Declare.
880 * infcall.c (call_function_by_hand): Store return values of class
881 type as temporaries on stack.
882 * thread.c (enable_thread_stack_temporaries): New function.
883 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
884 (get_last_thread_stack_temporary): Likewise.
885 (value_in_thread_stack_temporaries): Likewise.
886 * value.c (value_force_lval): New function.
887 * value.h (value_force_lval): Declare.
889 2014-11-28 Pierre Muller <muller@sourceware.org>
891 Pushed by Joel Brobecker <brobecker@adacore.com>.
892 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
895 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
897 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
898 * config/sparc/linux.mh (NATDEPFILES): Likewise.
899 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
900 * m68klinux-nat.c (fetch_core_registers): Remove.
901 (linux_elf_core_fns): Remove.
902 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
904 2014-11-28 Joel Brobecker <brobecker@adacore.com>
906 * utils.c (gdb_realpath): Rework comment about handling on
909 2014-11-28 Yao Qi <yao@codesourcery.com>
911 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
913 * gnulib/aclocal.m4: Re-generated.
914 * gnulib/config.in: Re-generated.
915 * gnulib/configure: Re-generated.
916 * gnulib/import/Makefile.am: Re-generated.
917 * gnulib/import/Makefile.in: Re-generated.
918 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
919 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
920 * import/basename-lgpl.c: New file.
921 * import/dirname-lgpl.c: New file.
922 * import/dirname.h: New file.
923 * import/m4/dirname.m4: New file.
924 * import/m4/malloc.m4: New file.
925 * import/m4/rename.m4: New file.
926 * import/m4/rmdir.m4: New file.
927 * import/m4/stdio_h.m4: New file.
928 * import/malloc.c: New file.
929 * import/rename.c: New file.
930 * import/rmdir.c: New file.
931 * import/same-inode.h: New file.
932 * import/stdio.c: New file.
933 * import/stdio.in.h: New file.
934 * import/stripslash.c: New file.
936 2014-11-28 Yao Qi <yao@codesourcery.com>
938 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
940 * config.in: Re-generated.
941 * configure: Re-generated.
942 * utils.c (gdb_realpath): Remove code calling realpath,
943 canonicalize_file_name and pathconf.
944 [!_WIN32]: Call canonicalize_file_name.
946 2014-11-28 Yao Qi <yao@codesourcery.com>
948 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
950 * aclocal.m4: Re-generated.
951 * config.in: Re-generated.
952 * configure: Re-generated.
953 * import/Makefile.am: Re-generated.
954 * import/Makefile.in: Re-generated.
955 * import/m4/gnulib-cache.m4: Re-generated.
956 * import/m4/gnulib-comp.m4: Re-generated.
957 * import/canonicalize-lgpl.c: New file.
958 * import/extra/snippet/_Noreturn.h: New file.
959 * import/m4/canonicalize.m4: New file.
960 * import/m4/double-slash-root.m4: New file.
961 * import/m4/eealloc.m4: New file.
962 * import/m4/malloca.m4: New file.
963 * import/m4/nocrash.m4: New file.
964 * import/m4/stdlib_h.m4: New file.
965 * import/malloca.c: New file.
966 * import/malloca.h: New file.
967 * import/malloca.valgrind: New file.
969 2014-11-28 Yao Qi <yao@codesourcery.com>
971 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
972 * config.in, configure: Regenerate.
973 * symfile.c (find_separate_debug_file_by_debuglink): Remove
974 code checking HAVE_LSTAT is defined.
976 2014-11-28 Yao Qi <yao@codesourcery.com>
978 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
980 * gnulib/aclocal.m4: Re-generated.
981 * gnulib/config.in: Re-generated.
982 * gnulib/configure: Re-generated.
983 * gnulib/import/Makefile.am: Re-generated.
984 * gnulib/import/Makefile.in: Re-generated.
985 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
986 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
987 * gnulib/import/lstat.c: New file.
988 * gnulib/import/m4/lstat.m4: New file.
990 2014-11-28 Yao Qi <yao@codesourcery.com>
992 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
993 * config.in, configure: Re-generate.
994 * inf-child.c (inf_child_fileio_readlink): Don't check
995 HAVE_READLINK is defined.
997 2014-11-28 Yao Qi <yao@codesourcery.com>
999 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1000 * gnulib/aclocal.m4: Re-generated.
1001 * gnulib/config.in: Likewise.
1002 * gnulib/configure: Likewise.
1003 * gnulib/import/Makefile.am: Likewise.
1004 * gnulib/import/Makefile.in: Likewise.
1005 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1006 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1007 * gnulib/import/dosname.h: New file
1008 * gnulib/import/m4/largefile.m4: New file.
1009 * gnulib/import/m4/readlink.m4: New file.
1010 * gnulib/import/m4/stat.m4: New file.
1011 * gnulib/import/readlink.c: New file.
1012 * gnulib/import/stat.c: New file.
1014 2014-11-26 Mark Wielaard <mjw@redhat.com>
1016 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1017 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1019 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1021 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1022 that there can be only one stack adjustment in the prologue
1023 with tests to detect specific disallowed stack adjustments.
1025 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1027 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1030 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1032 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1033 the instruction as well as reading it from memory.
1034 (nios2_match_add): New.
1035 (nios2_match_sub): New.
1036 (nios2_match_addi): New.
1037 (nios2_match_orhi): New.
1038 (nios2_match_stw): New.
1039 (nios2_match_ldw): New.
1040 (nios2_match_rdctl): New.
1041 (enum branch_condition): New.
1042 (nios2_match_branch): New.
1043 (nios2_match_jmpi): New.
1044 (nios2_match_calli): New.
1045 (nios2_match_jmpr): New.
1046 (nios2_match_callr): New.
1047 (nios2_match_break): New.
1048 (nios2_match_trap): New.
1049 (nios2_in_epilogue_p): Rewrite to use new functions.
1050 (nios2_analyze_prologue): Likewise.
1051 (nios2_skip_prologue): Delete unused local limit_pc.
1052 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1053 (nios2_get_next_pc): Rewrite to use new functions.
1055 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1057 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1059 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1061 Pushed by Joel Brobecker <brobecker@adacore.com>
1062 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1063 elements pi_len by the size of the elements before calling
1065 (inf_validate_task_sc): Likewise, and properly deallocate the
1068 2014-11-23 Doug Evans <xdje42@gmail.com>
1070 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1071 number and name if present. All callers updated.
1072 (dump_fn_fieldlists): Fix indentation of args.
1074 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1076 * MAINTAINERS (Write After Approval): Add myself.
1078 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1080 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1081 to a bp_call_dummy breakpoint type.
1083 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1085 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1086 registering the signal handler.
1088 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1090 * event-top.h (call_stdin_event_handler_again_p): Declare.
1091 * event-top.c (call_stdin_event_handler_again_p): Define.
1092 (stdin_event_handler): Use it.
1093 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1094 handler again if there is pending input following a
1097 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1099 Pushed by Joel Brobecker <brobecker@adacore.com>
1100 * linux-fork.c (checkpoint_command): Print index of new
1101 checkpoint in response message.
1103 2014-11-23 Yao Qi <yao@codesourcery.com>
1105 * valprint.c (read_string): Move local variables 'found_nul',
1106 'chunksize' and 'limit' to inner scope. Update comments.
1108 2014-11-22 Doug Evans <xdje42@gmail.com>
1110 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1112 (search_symbols): Fix comments and whitespace.
1114 2014-11-22 Doug Evans <xdje42@gmail.com>
1116 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1118 2014-11-21 Doug Evans <dje@google.com>
1120 * psymtab.c (psymtab_search_name): Fix whitespace.
1122 2014-11-21 Yao Qi <yao@codesourcery.com>
1124 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1126 * gnulib/import/Makefile.am: Re-generated.
1127 * gnulib/import/Makefile.in: Likewise.
1128 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1130 2014-11-21 Yao Qi <yao@codesourcery.com>
1132 * gdb_wchar.h: Include wchar.h and wctype.h.
1133 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1134 include wchar.h and wctype.h.
1135 Don't check HAVE_WCHAR_H.
1137 2014-11-21 Yao Qi <yao@codesourcery.com>
1139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1141 * gnulib/import/Makefile.am: Re-generated.
1142 * gnulib/import/Makefile.in: Likewise.
1143 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1145 2014-11-21 Yao Qi <yao@codesourcery.com>
1147 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1149 * gnulib/import/Makefile.am: Re-generated.
1150 * gnulib/import/Makefile.in: Likewise.
1151 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1153 2014-11-21 Yao Qi <yao@codesourcery.com>
1155 * common/common-defs.h: Include alloca.h
1156 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1157 * configure: Re-generated.
1158 * defs.h: Remove code handling alloca.
1159 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1162 2014-11-21 Yao Qi <yao@codesourcery.com>
1164 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1166 * gnulib/import/Makefile.am: Re-generated.
1167 * gnulib/import/Makefile.in: Likewise..
1168 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1170 2014-11-21 Yao Qi <yao@codesourcery.com>
1172 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1175 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1177 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1178 flag_unsigned if HIGH_BOUND is constant and negative.
1180 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1182 PR breakpoints/10737
1183 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1184 modifier from "struct gdbarch" when compiling without Expat (XML)
1186 (get_syscall_by_number): Likewise.
1187 (get_syscall_by_name): Likewise.
1188 (get_syscall_names): Likewise.
1190 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1192 PR breakpoints/10737
1193 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1194 set_xml_syscall_file_name to provide gdbarch.
1195 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1196 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1197 * breakpoint.c (print_it_catch_syscall): Adjust call to
1198 get_syscall_by_number to provide gdbarch.
1199 (print_one_catch_syscall): Likewise.
1200 (print_mention_catch_syscall): Likewise.
1201 (print_recreate_catch_syscall): Likewise.
1202 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1203 and get_syscall_by_name to provide gdbarch.
1204 (catch_syscall_completer): Adjust call to get_syscall_names to
1206 * gdbarch.c: Regenerate.
1207 * gdbarch.h: Likewise.
1208 * gdbarch.sh: Forward declare "struct syscalls_info".
1209 (xml_syscall_file): New variable.
1210 (syscalls_info): Likewise.
1211 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1212 set_xml_syscall_file_name to provide gdbarch.
1213 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1214 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1215 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1216 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1217 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1218 * xml-syscall.c: Include gdbarch.h.
1219 (set_xml_syscall_file_name): Accept gdbarch parameter.
1220 (get_syscall_by_number): Likewise.
1221 (get_syscall_by_name): Likewise.
1222 (get_syscall_names): Likewise.
1223 (my_gdb_datadir): Delete global variable.
1224 (struct syscalls_info) <my_gdb_datadir>: New variable.
1225 (struct syscalls_info) <sysinfo>: Rename variable to
1227 (sysinfo): Delete global variable.
1228 (have_initialized_sysinfo): Likewise.
1229 (xml_syscall_file): Likewise.
1230 (sysinfo_free_syscalls_desc): Rename to...
1231 (syscalls_info_free_syscalls_desc): ... this.
1232 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1233 code to the new layout of "struct syscalls_info".
1234 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1236 (syscall_create_syscall_desc): Likewise.
1237 (syscall_start_syscall): Likewise.
1238 (syscall_parse_xml): Likewise.
1239 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1240 (init_sysinfo): Rename to...
1241 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1242 Adjust function to deal with gdbarch.
1243 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1244 gdbarch as a parameter. Adjust code.
1245 (xml_get_syscall_name): Likewise.
1246 (xml_list_of_syscalls): Likewise.
1247 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1248 (get_syscall_by_number): Likewise.
1249 (get_syscall_by_name): Likewise.
1250 (get_syscall_names): Likewise.
1251 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1252 (get_syscall_by_number): Likewise.
1253 (get_syscall_by_name): Likewise.
1254 (get_syscall_names): Likewise.
1256 2014-11-20 Doug Evans <xdje42@gmail.com>
1258 Split struct symtab into two: struct symtab and compunit_symtab.
1259 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1260 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1261 to "struct compunit_symtab *". All callers updated.
1262 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1263 "struct symtab *" argument to "struct compunit_symtab *".
1264 All callers updated.
1265 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1266 result to "struct compunit_symtab *". All callers updated.
1267 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1268 Change result to "struct compunit_symtab *". All callers updated.
1269 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1270 hange type to "struct compunit_symtab *". All uses updated.
1271 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1272 Change type to "struct compunit_symtab *". All uses updated.
1273 * buildsym.c (struct buildsym_compunit): New struct.
1274 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1275 (buildsym_compunit): New static global.
1276 (finish_block_internal): Update to fetch objfile from
1278 (make_blockvector): Delete objfile argument.
1279 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1280 debugformat, producer.
1281 (start_buildsym_compunit): New function.
1282 (free_buildsym_compunit): Renamed from free_subfiles_list.
1283 All callers updated.
1284 (patch_subfile_names): Rewrite to use buildsym_compunit.
1285 (get_compunit_symtab): New function.
1286 (get_macro_table): Delete argument comp_dir. All callers updated.
1287 (start_symtab): Change result to "struct compunit_symtab *".
1288 All callers updated. Create the subfile of the main source file.
1289 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1290 (reset_symtab_globals): Update.
1291 (end_symtab_get_static_block): Update to use buildsym_compunit.
1292 (end_symtab_without_blockvector): Rewrite.
1293 (end_symtab_with_blockvector): Change result to
1294 "struct compunit_symtab *". All callers updated.
1295 Update to use buildsym_compunit. Don't set symtab->dirname,
1296 instead set it in the compunit.
1297 Explicitly make sure main symtab is first in its list.
1298 Set debugformat, producer, blockvector, block_line_section, and
1299 macrotable in the compunit.
1300 (end_symtab_from_static_block): Change result to
1301 "struct compunit_symtab *". All callers updated.
1302 (end_symtab, end_expandable_symtab): Ditto.
1303 (set_missing_symtab): Change symtab argument to
1304 "struct compunit_symtab *". All callers updated.
1305 (augment_type_symtab): Ditto.
1306 (record_debugformat): Update to use buildsym_compunit.
1307 (record_producer): Update to use buildsym_compunit.
1308 * buildsym.h (struct subfile) <dirname>: Delete.
1309 <producer, debugformat>: Delete.
1310 <buildsym_compunit>: New member.
1311 (get_compunit_symtab): Declare.
1312 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1313 from primary_symtab. Change type to "struct compunit_symtab *".
1315 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1316 All callers updated.
1317 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1318 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1319 symtab. Change type to "struct compunit_symtab *". All uses updated.
1320 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1321 All callers updated.
1322 (dw2_find_last_source_symtab): Ditto.
1323 (dw2_lookup_symbol): Ditto.
1324 (recursively_find_pc_sect_compunit_symtab): Renamed from
1325 recursively_find_pc_sect_symtab. Change result to
1326 "struct compunit_symtab *". All callers updated.
1327 (dw2_find_pc_sect_compunit_symtab): Renamed from
1328 dw2_find_pc_sect_symtab. Change result to
1329 "struct compunit_symtab *". All callers updated.
1330 (get_compunit_symtab): Renamed from get_symtab. Change result to
1331 "struct compunit_symtab *". All callers updated.
1332 (recursively_compute_inclusions): Change type of immediate_parent
1333 argument to "struct compunit_symtab *". All callers updated.
1334 (compute_compunit_symtab_includes): Renamed from
1335 compute_symtab_includes. All callers updated. Rewrite to compute
1336 includes of compunit_symtabs and not symtabs.
1337 (process_full_comp_unit): Update to work with struct compunit_symtab.
1338 (process_full_type_unit): Ditto.
1339 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1340 (dwarf_decode_lines): Remove special case handling of main subfile.
1341 (macro_start_file): Delete argument comp_dir. All callers updated.
1342 (dwarf_decode_macro_bytes): Ditto.
1343 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1344 use struct compunit_symtab.
1345 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1346 * jit.c (finalize_symtab): Build compunit_symtab.
1347 * jv-lang.c (get_java_class_symtab): Change result to
1348 "struct compunit_symtab *". All callers updated.
1349 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1350 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1351 comp_dir. Change type to "struct compunit_symtab *".
1353 (new_macro_table): Change comp_dir argument to cust,
1354 "struct compunit_symtab *". All callers updated.
1355 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1356 nr_primary_symtabs. All uses updated.
1357 (count_symtabs_and_blocks): Update to handle compunits.
1358 (report_command_stats): Update output, "primary symtabs" renamed to
1360 * mdebugread.c (new_symtab): Change result to
1361 "struct compunit_symtab *". All callers updated.
1362 (parse_procedure): Change type of search_symtab argument to
1363 "struct compunit_symtab *". All callers updated.
1364 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1366 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1367 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1368 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1370 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1372 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1373 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1374 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1375 symtab. Change type to "struct compunit_symtab *". All uses updated.
1376 * psymtab.c (psymtab_to_symtab): Change result type to
1377 "struct compunit_symtab *". All callers updated.
1378 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1379 find_pc_sect_symtab_from_partial. Change result type to
1380 "struct compunit_symtab *". All callers updated.
1381 (lookup_symbol_aux_psymtabs): Change result type to
1382 "struct compunit_symtab *". All callers updated.
1383 (find_last_source_symtab_from_partial): Ditto.
1384 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1385 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1386 and macro_table from compunit.
1387 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1388 type to "struct compunit_symtab *". All callers updated.
1389 (debug_qf_lookup_symbol): Ditto.
1390 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1391 debug_qf_find_pc_sect_symtab, change result type to
1392 "struct compunit_symtab *". All callers updated.
1393 * symfile.c (allocate_symtab): Delete objfile argument.
1395 (allocate_compunit_symtab): New function.
1396 (add_compunit_symtab_to_objfile): New function.
1397 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1398 Change result type to "struct compunit_symtab *". All uses updated.
1399 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1400 Change result type to "struct compunit_symtab *". All uses updated.
1401 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1403 (dump_symtab_1): Update test for primary source symtab.
1404 (maintenance_info_symtabs): Update to handle compunit symtabs.
1405 (maintenance_check_symtabs): Ditto.
1406 * symtab.c (set_primary_symtab): Delete.
1407 (compunit_primary_filetab): New function.
1408 (compunit_language): New function.
1409 (iterate_over_some_symtabs): Change type of arguments "first",
1410 "after_last" to "struct compunit_symtab *". All callers updated.
1411 Update to loop over symtabs in each compunit.
1412 (error_in_psymtab_expansion): Rename symtab argument to cust,
1413 and change type to "struct compunit_symtab *". All callers updated.
1414 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1415 Change result type to "struct compunit_symtab *". All callers updated.
1416 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1417 Change result type to "struct compunit_symtab *". All callers updated.
1418 (find_pc_sect_line): Only loop over symtabs within selected compunit
1419 instead of all symtabs in the objfile.
1420 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1421 <compunit_symtab> New member.
1422 <block_line_section>: Moved to compunit_symtab.
1423 <locations_valid>: Ditto.
1424 <epilogue_unwind_valid>: Ditto.
1425 <macro_table>: Ditto.
1427 <debugformat>: Ditto.
1430 <call_site_htab>: Ditto.
1434 (SYMTAB_COMPUNIT): New macro.
1435 (SYMTAB_BLOCKVECTOR): Update definition.
1436 (SYMTAB_OBJFILE): Update definition.
1437 (SYMTAB_DIRNAME): Update definition.
1438 (struct compunit_symtab): New type. Common members among all source
1439 symtabs within a compilation unit moved here. All uses updated.
1440 (COMPUNIT_OBJFILE): New macro.
1441 (COMPUNIT_FILETABS): New macro.
1442 (COMPUNIT_DEBUGFORMAT): New macro.
1443 (COMPUNIT_PRODUCER): New macro.
1444 (COMPUNIT_DIRNAME): New macro.
1445 (COMPUNIT_BLOCKVECTOR): New macro.
1446 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1447 (COMPUNIT_LOCATIONS_VALID): New macro.
1448 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1449 (COMPUNIT_CALL_SITE_HTAB): New macro.
1450 (COMPUNIT_MACRO_TABLE): New macro.
1451 (ALL_COMPUNIT_FILETABS): New macro.
1452 (compunit_symtab_ptr): New typedef.
1453 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1455 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1457 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1458 if the TYPE_CODE of range_type's base type does not match
1459 the TYPE_CODE of encoding_type's base type.
1461 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1463 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1466 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1468 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1469 (ada_is_redundant_index_type_desc): New function.
1470 (to_fixed_array_type): Ignore parallel XA type if redundant.
1472 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1474 * ada-lang.c (constrained_packed_array_type): Set the length
1475 of the return array as if both bounds where zero if that
1476 returned array's index type is dynamic.
1478 2014-11-19 Yao Qi <yao@codesourcery.com>
1480 * config/i386/go32.mh (CC): Remove.
1482 2014-11-18 Doug Evans <xdje42@gmail.com>
1484 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1487 2014-11-18 Doug Evans <xdje42@gmail.com>
1489 * buildsym.c (buildsym_objfile): New static global.
1490 (buildsym_comp_dir): New static global.
1491 (finish_block_internal): Delete arg objfile. All callers updated.
1492 (finish_block): Delete arg objfile. All callers updated.
1493 (start_subfile): Delete arg dirname. All callers updated.
1494 (patch_subfile_names): Update buildsym_comp_dir.
1495 (get_macro_table): Delete arg objfile. All callers updated.
1496 (start_symtab): New arg objfile. All callers updated.
1497 Rename arg dirname to comp_dir.
1498 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1499 (end_symtab_get_static_block): Delete arg objfile. All callers
1501 (end_symtab_without_blockvector): Ditto.
1502 (end_symtab_with_blockvector): Ditto.
1503 (end_symtab_from_static_block): Ditto.
1504 (end_symtab): Ditto.
1505 (end_expandable_symtab): Ditto.
1506 (augment_type_symtab): Ditto.
1507 * coffread.c (coff_start_symtab): New arg objfile. All callers
1510 2014-11-18 Doug Evans <xdje42@gmail.com>
1512 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1515 2014-11-18 Doug Evans <xdje42@gmail.com>
1517 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1518 symtab.dirname updated to use it.
1520 2014-11-18 Doug Evans <xdje42@gmail.com>
1522 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1523 symtab.objfile updated to use it.
1525 2014-11-18 Doug Evans <xdje42@gmail.com>
1527 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1529 2014-11-18 Doug Evans <xdje42@gmail.com>
1531 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1533 * findvar.c (default_read_var_value): Ditto.
1534 * jv-lang.c (add_class_symtab_symbol): Ditto.
1535 * parse.c (operator_check_standard): Ditto.
1536 * printcmd.c (address_info): Ditto.
1537 * symtab.c (fixup_symbol_section): Ditto.
1538 (skip_prologue_sal): Ditto.
1539 * tracepoint.c (scope_info): Ditto.
1540 * valops.c (find_function_in_inferior): Ditto.
1541 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1542 * python/py-symbol.c (set_symbol): Ditto.
1544 2014-11-18 Doug Evans <xdje42@gmail.com>
1546 * buildsym.c (main_subfile): New static global.
1547 (free_subfiles_list): New function.
1548 (start_symtab): Set main_subfile.
1549 (restart_symtab): Replace init of subfiles, current_subfile with
1550 call to free_subfiles_list.
1551 (watch_main_source_file_lossage): Use main_subfile.
1552 (reset_symtab_globals): Replace init of current_subfile with call
1553 to free_subfiles_list.
1554 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1555 functions, split out from ...
1556 (end_symtab_from_static_block): ... here. Rewrite to call them.
1558 2014-11-18 Doug Evans <xdje42@gmail.com>
1560 The result of symtab expansion is always a primary symtab.
1561 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1562 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1563 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1564 (psymtab_to_symtab): Add comment and assert.
1565 (map_matching_symbols_psymtab): Remove unnecessary test for
1568 2014-11-15 Doug Evans <xdje42@gmail.com>
1571 * symtab.c (find_pc_line_symtab): New function.
1572 * symtab.h (find_pc_line_symtab): Declare.
1573 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1575 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1576 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1577 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1578 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1579 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1580 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1582 2014-11-15 Doug Evans <xdje42@gmail.com>
1584 * symtab.c (expand_symtab_containing_pc): Renamed from
1585 find_pc_sect_symtab_via_partial. All callers updated.
1587 2014-11-15 Yao Qi <yao@codesourcery.com>
1589 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1591 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1593 * common/common-defs.h: Move <stdarg.h> #include ahead of
1596 2014-11-14 Pedro Alves <palves@redhat.com>
1598 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1599 [!PHONY_ICONV] (gdb_iconv): New function.
1600 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1602 2014-11-13 Doug Evans <dje@google.com>
1605 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1606 "(anonymous namespace)".
1608 2014-11-13 Doug Evans <dje@google.com>
1610 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1613 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1615 * NEWS (maint set target-async): Fix typo.
1617 2014-11-12 Pedro Alves <palves@redhat.com>
1619 * infrun.c (enum infwait_states, infwait_state): Delete.
1621 2014-11-12 Pedro Alves <palves@redhat.com>
1623 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1624 Rewrite stepping over a permanent breakpoint.
1625 (thread_still_needs_step_over, proceed): Don't set
1626 stepping_over_breakpoint for permanent breakpoints.
1627 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1628 single-step breakpoints out of the target on hardware step
1630 (process_event_stop_test): If stepping a permanent breakpoint
1631 doesn't hit the step-resume breakpoint, delete the step-resume
1633 (switch_back_to_stepped_thread): Also check if the stepped thread
1634 has advanced already on hardware step targets.
1635 (currently_stepping): Return true if the thread stepped a
1638 2014-11-12 Pedro Alves <palves@redhat.com>
1640 Mark locations as permanent, not the whole breakpoint.
1641 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1642 (mark_breakpoints_out): Don't mark permanent breakpoints as
1644 (breakpoint_init_inferior): Use mark_breakpoints_out.
1645 (breakpoint_here_p): Adjust.
1646 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1647 of permanent breakpoints.
1648 (make_breakpoint_permanent): Mark each location as permanent,
1649 instead of marking the breakpoint.
1650 (add_location_to_breakpoint): If the location is permanent, mark
1651 it as such, and as inserted.
1652 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1653 (bp_location_compare, update_global_location_list): Adjust.
1654 (update_breakpoint_locations): Don't make the breakpoint permanent
1656 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1658 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1659 (struct bp_location) <permanent>: New field.
1660 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1661 reference to bp_permanent.
1663 2014-11-12 Pedro Alves <palves@redhat.com>
1665 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1666 * arch-utils.h (default_skip_permanent_breakpoint): New
1668 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1669 Install default_skip_permanent_breakpoint as default method.
1670 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1671 (i386_gdbarch_init): Don't install it.
1672 * infrun.c (resume): Assume there's always a
1673 gdbarch_skip_permanent_breakpoint implementation.
1674 * gdbarch.h, gdbarch.c: Regenerate.
1676 2014-11-11 Daniel Colascione <dancol@dancol.org>
1678 Warn about cross-PID-namespace debugging.
1679 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1680 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1681 * linux-thread-db.c (check_pid_namespace_match): New function.
1682 (thread_db_inferior_created): Call it.
1684 2014-11-10 Doug Evans <xdje42@gmail.com>
1686 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1687 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1689 2014-11-10 Doug Evans <xdje42@gmail.com>
1691 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1693 2014-11-10 Doug Evans <xdje42@gmail.com>
1696 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1697 (lookup_static_symbol): Move definition to new location and rewrite.
1698 (lookup_symbol_in_objfile): New function.
1699 (lookup_symbol_global_iterator_cb): Call it.
1701 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1703 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1705 2014-11-07 Pedro Alves <palves@redhat.com>
1707 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1708 check if we did a "nexti" inside a prologue.
1709 * symtab.c (in_prologue): Delete function.
1710 * symtab.h (in_prologue): Delete declaration.
1712 2014-11-06 Doug Evans <xdje42@gmail.com>
1714 * symtab.h (lookup_global_symbol): Improve function comment.
1716 2014-11-06 Doug Evans <xdje42@gmail.com>
1718 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1719 All callers updated.
1720 * symtab.h (lookup_global_symbol): Update decl.
1721 (lookup_static_symbol): Move decl to better location.
1723 2014-11-06 Doug Evans <xdje42@gmail.com>
1725 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1727 2014-11-06 Doug Evans <xdje42@gmail.com>
1729 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1730 All callers updated.
1731 (lookup_symbol_in_all_objfiles): Renamed from
1732 lookup_symbol_aux_symtabs. All callers updated.
1733 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1734 All callers updated.
1735 (lookup_symbol_in_objfile_symtabs): Renamed from
1736 lookup_symbol_aux_objfile. All callers updated.
1738 2014-11-06 Doug Evans <xdje42@gmail.com>
1740 * symtab.c (lookup_symbol_in_block): Renamed from
1741 lookup_symbol_aux_block. All callers updated.
1743 2014-11-06 Doug Evans <xdje42@gmail.com>
1745 * symtab.c (lookup_static_symbol): Renamed from
1746 lookup_static_symbol_aux. All callers updated.
1747 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1748 All callers updated.
1750 2014-11-06 Doug Evans <xdje42@gmail.com>
1752 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1753 * block.c (block_lookup_symbol): Use it.
1754 * cp-support.c (make_symbol_overload_list_block): Use it.
1755 * symtab.c (iterate_over_symbols): Use it.
1757 2014-11-06 Doug Evans <xdje42@gmail.com>
1759 * symtab.c (lookup_block_symbol): Moved to ...
1760 * block.c (block_lookup_symbol): ... here and renamed.
1761 All callers updated.
1762 * block.h (block_lookup_symbol): Declare.
1763 * symtab.h (lookup_block_symbol): Delete.
1765 2014-11-06 Doug Evans <xdje42@gmail.com>
1767 * ada-lang.c (ada_make_symbol_completion_list): Use
1768 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1769 * symtab.c (lookup_objfile_from_block): Ditto.
1771 2014-11-06 Doug Evans <xdje42@gmail.com>
1773 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1776 2014-11-06 Doug Evans <xdje42@gmail.com>
1778 * objfiles.c (get_objfile_arch): Constify.
1779 * objfiles.h (get_objfile_arch): Update prototype.
1780 * solib.c (solib_global_lookup): Fetch arch from objfile,
1783 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1785 * nios2-tdep.c (wild_insn): Delete.
1786 (profiler_insn, irqentry_insn): Delete.
1787 (nios2_match_sequence): Delete.
1788 (nios2_analyze_prologue): Update comments. Remove matching
1789 of obsolete profiler_insn and irqentry_insn sequences.
1791 2014-11-05 Alan Modra <amodra@gmail.com>
1793 * charset.c (convert_between_encodings): Shrink obstack using
1795 * minsyms.c (install_minimal_symbols): Likewise.
1796 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1797 to char* before doing pointer arithmetic.
1799 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1801 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1803 2014-11-04 Pedro Alves <palves@redhat.com>
1805 * breakpoint.c (breakpoint_thread_match): Delete function.
1806 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1808 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1811 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1812 the method args also under EVAL_SKIP when evaluating method
1813 calls under EVAL_SKIP.
1815 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1817 * dwarf2loc.c (read_pieced_value): Do big endian
1818 processing only if gdb_regnum is not -1.
1819 (write_pieced_value): Ditto.
1821 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1823 * arm-linux-tdep.c (arm_linux_init_abi): Use
1824 info.byte_order_for_code to choose endianity of breakpoint
1825 instructions snippets.
1827 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1829 * arm-tdep.c (extract_arm_insn): Use
1830 gdbarch_byte_order_for_code to read arm instruction.
1832 2014-11-02 Doug Evans <xdje42@gmail.com>
1834 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1836 2014-11-02 Doug Evans <xdje42@gmail.com>
1838 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1839 main_subfile before returning.
1841 2014-10-31 Doug Evans <xdje42@gmail.com>
1843 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1844 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1846 2014-10-31 Doug Evans <xdje42@gmail.com>
1848 * valops.c (value_cast_pointers): Fix whitespace.
1849 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1852 2014-10-30 Doug Evans <dje@google.com>
1854 * NEWS: Mention ability add attributes to gdb.Objfile and
1855 gdb.Progspace objects.
1856 * python/py-objfile.c (objfile_object): New member dict.
1857 (objfpy_dealloc): Py_XDECREF dict.
1858 (objfpy_initialize): Initialize dict.
1859 (objfile_getset): Add __dict__.
1860 (objfile_object_type): Set tp_dictoffset member.
1861 * python/py-progspace.c (progspace_object): New member dict.
1862 (pspy_dealloc): Py_XDECREF dict.
1863 (pspy_initialize): Initialize dict.
1864 (pspace_getset): Add __dict__.
1865 (pspace_object_type): Set tp_dictoffset member.
1867 2014-10-30 Yao Qi <yao@codesourcery.com>
1869 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1870 replace '\\' with '\\\\'.
1872 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1876 2014-10-29 Pedro Alves <palves@redhat.com>
1879 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1880 instead of assuming a thread with a stepping range is always
1883 2014-10-29 Pedro Alves <palves@redhat.com>
1886 * event-top.c (change_line_handler): Call
1887 gdb_rl_callback_handler_remove instead of
1888 rl_callback_handler_remove.
1889 (callback_handler_installed): New global.
1890 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1891 (gdb_rl_callback_handler_reinstall): New functions.
1892 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1893 gdb_rl_callback_handler_install instead of
1894 rl_callback_handler_remove and rl_callback_handler_install.
1895 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1896 instead of rl_callback_handler_remove.
1897 * event-top.h (gdb_rl_callback_handler_remove)
1898 (gdb_rl_callback_handler_install)
1899 (gdb_rl_callback_handler_reinstall): New declarations.
1900 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1902 (fetch_inferior_event): Install it.
1903 * top.c (gdb_readline_wrapper_line) Call
1904 gdb_rl_callback_handler_remove instead of
1905 rl_callback_handler_remove.
1906 (gdb_readline_wrapper_cleanup): Don't call
1907 rl_callback_handler_install.
1909 2014-10-29 Pedro Alves <palves@redhat.com>
1911 * event-top.c (command_line_handler): Clear the first byte of
1912 linebuffer, when it is first allocated.
1914 2014-10-29 Pedro Alves <palves@redhat.com>
1916 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1919 2014-10-29 Pedro Alves <palves@redhat.com>
1923 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1924 (tui_allowed_p): Delete function.
1925 * tui/tui.c: Include "interps.h".
1926 (tui_enable): Don't use tui_allowed_p. Error out here with
1927 detailed error messages if the TUI is the top level interpreter,
1928 or if output is not a terminal. Use newterm instead of initscr,
1929 and error out if initializing the terminal fails. Also error out if
1930 the terminal doesn't support cursor addressing.
1931 * tui/tui.h (tui_allowed_p): Delete declaration.
1933 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1935 * arm-tdep.c (arm_skip_stack_protector): Return early if
1936 address loaded by first "ldr" instruction does not have
1937 a corresponding minimal symbol. Update comment.
1939 2014-10-29 Yao Qi <yao@codesourcery.com>
1941 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1942 loaded address correctly of ldr instruction.
1944 2014-10-28 Pedro Alves <palves@redhat.com>
1947 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1949 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1950 thread's stepped_breakpoint field. Skip if reverse debugging.
1952 (init_thread_stepping_state, handle_signal_stop): Clear the
1953 thread's stepped_breakpoint field.
1955 2014-10-27 Pedro Alves <palves@redhat.com>
1957 * remote.c (remote_thread_alive): New, factored out from ...
1958 (remote_thread_alive): ... this.
1959 (remote_update_thread_list): Bail out before deleting threads if
1960 the target returned an empty list, and, the current thread has a
1963 2014-10-27 Pedro Alves <palves@redhat.com>
1965 * infrun.c (handle_signal_stop): Also skip handlers when a random
1966 signal arrives while handling a "stepi" or a "nexti". Set the
1967 thread's 'step_after_step_resume_breakpoint' flag.
1969 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1971 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1972 (arm_record_ld_st_imm_offset): Reimplement to cover all
1973 load/store cases for ARM opcode 010.
1974 (arm_record_ld_st_multiple): Reimplement to cover all
1975 load/store cases for ARM opcode 100.
1977 2014-10-26 Doug Evans <xdje42@gmail.com>
1979 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1981 2014-10-26 Doug Evans <xdje42@gmail.com>
1983 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1984 parameter "kind" to "block_index".
1985 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1987 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1989 2014-10-26 Doug Evans <xdje42@gmail.com>
1991 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1993 2014-10-26 Doug Evans <xdje42@gmail.com>
1995 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1998 2014-10-26 Doug Evans <xdje42@gmail.com>
2000 * parser-defs.h (block_found): Move decl from here ...
2001 * symtab.h (block_found): ... to here.
2003 2014-10-26 Doug Evans <xdje42@gmail.com>
2005 * symtab.h (struct field_of_this_result): Fix typo in comment.
2006 (lookup_symbol_in_language): Move function comment here.
2007 (lookup_symbol): Improve function comment.
2008 (basic_lookup_symbol_nonlocal): Ditto.
2009 (lookup_symbol_static, lookup_symbol_global): Ditto.
2010 (lookup_symbol_aux_block): Ditto.
2011 (lookup_language_this): Add function comment.
2012 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2014 (lookup_block_symbol): Improve function comment.
2015 (lookup_struct): Fix capitalization in function comment.
2016 (lookup_transparent_type): Add function comment.
2017 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2018 Improve function comment.
2019 (lookup_objfile_from_block): Add function comment.
2020 * symtab.c (lookup_symbol_in_language): Update function comment.
2021 (lookup_symbol, lookup_language_this): Ditto.
2022 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2023 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2024 (basic_lookup_symbol_nonlocal): Ditto.
2025 (lookup_symbol_static, lookup_symbol_global): Ditto.
2026 (lookup_transparent_type, lookup_block_symbol): Ditto.
2028 2014-10-25 Doug Evans <xdje42@gmail.com>
2030 * symtab.c (types_info): Delete forward decl.
2031 (functions_info, variables_info, sources_info): Ditto.
2032 (_initialize_symtab): Rewrite forward decl to use
2033 initialize_file_ftype.
2035 2014-10-25 Doug Evans <xdje42@gmail.com>
2037 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2039 2014-10-25 Doug Evans <xdje42@gmail.com>
2041 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2042 of local var child_die.
2044 2014-10-24 Don Breazeal <donb@codesourcery.com>
2046 * infrun.c (follow_fork_inferior): Update fork message printing
2047 to use target_terminal_ours_for_output instead of
2048 target_terminal_ours, to use _() for all format strings, to print
2049 "vfork" instead of "fork" for vforks, and to add a detach message.
2050 (handle_vfork_child_exec_or_exit): Update message printing to use
2051 target_terminal_ours_for_output instead of target_terminal_ours, to
2052 use _() for all format strings, and to fix some formatting.
2054 2014-10-24 Pedro Alves <palves@redhat.com>
2056 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2057 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2058 * config/vax/vax.mh: Delete.
2059 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2060 obsolete configurations section.
2061 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2062 * vax-nat.c: Delete file.
2064 2014-10-24 Pedro Alves <palves@redhat.com>
2066 * NEWS (Removed targets): Add OS/arch column.
2068 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2070 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2071 on the arg type of a constructor only if it is of reference type.
2073 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2075 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2076 accessors and constants from nios2 opcodes update.
2077 (nios2_get_next_pc): Likewise.
2079 2014-10-19 Doug Evans <xdje42@gmail.com>
2081 * gdbthread.h (set_running): Fix comment.
2082 (set_executing, finish_thread_state): Fix comment.
2084 2014-10-18 Doug Evans <xdje42@gmail.com>
2086 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2088 2014-10-17 Doug Evans <dje@google.com>
2090 * NEWS: Mention new event gdb.clear_objfiles.
2091 * python/py-event.h (emit_clear_objfiles_event): Clear
2092 * python/py-events.h (events_object): New member clear_objfiles.
2093 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2095 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2096 emit clear_objfiles event.
2097 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2099 (emit_clear_objfiles_event): New function.
2100 (clear_objfiles): New event.
2101 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2103 * python/python.c (_initialize_python): Call
2104 gdbpy_initialize_clear_objfiles_event.
2106 2014-10-17 Doug Evans <dje@google.com>
2108 * NEWS: Mention new gdb.Objfile.progspace attribute.
2109 * python/py-objfile.c (objfpy_get_progspace): New function.
2110 (objfile_getset): New entry for "progspace".
2112 2014-10-17 Pedro Alves <palves@redhat.com>
2115 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2116 returns a copy of the input.
2117 (run_command_1, continue_command, step_1, jump_command)
2118 (signal_command, until_command, advance_command, finish_command)
2119 (attach_command): Adjust and install a cleanup to free the
2122 2014-10-17 Pedro Alves <palves@redhat.com>
2125 * infcmd.c (continue_1): If continuing all threads in the
2126 foreground, make sure the inferior's terminal settings are put in
2129 2014-10-17 Pedro Alves <palves@redhat.com>
2132 * annotate.c (annotate_breakpoints_invalid): Use
2133 target_terminal_our_for_output instead of target_terminal_ours.
2134 Give back the terminal to the target.
2135 (annotate_frames_invalid): Likewise.
2137 2014-10-17 Pedro Alves <palves@redhat.com>
2139 * target.c (enum terminal_state): New enum.
2140 (terminal_state): New global.
2141 (target_terminal_init): New function.
2142 (target_terminal_inferior): Skip if inferior already owns the
2144 (target_terminal_ours, target_terminal_ours_for_output): New
2146 * target.h (target_terminal_init): Convert to function prototype.
2147 (target_terminal_ours_for_output): Convert to function prototype
2149 (target_terminal_ours): Convert to function prototype and tweak
2151 * windows-nat.c (do_initial_windows_stuff): Call
2152 target_terminal_init instead of child_terminal_init_with_pgrp.
2154 2014-10-17 Pedro Alves <palves@redhat.com>
2156 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2157 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2158 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2160 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2161 * ada-lang.h [__alpha__ && __osf__]
2162 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2163 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2164 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2166 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2168 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2169 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2170 * configure: Regenerate.
2171 * configure.ac: Remove references to osf.
2172 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2173 section. Remove all other references to osf.
2174 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2175 Remove all other references to osf.
2176 * dec-thread.c: Delete file.
2177 * defs.h (GDB_OSABI_OSF1): Delete.
2178 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2180 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2181 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2183 (unconditionally_kill_inferior)
2184 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2185 * solib-osf.c: Delete file.
2187 2014-10-17 Pedro Alves <palves@redhat.com>
2189 * remote.c (clear_threads_listing_context): Move higher up, out of
2190 the HAVE_LIBEXPAT guard.
2192 2014-10-16 Tristan Gingold <gingold@adacore.com>
2194 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2195 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2198 2014-10-15 Pedro Alves <palves@redhat.com>
2200 * dec-thread.c (dec_thread_count_gdb_threads)
2201 (dec_thread_add_gdb_thread): Delete.
2202 (dec_thread_update_thread_list): Delete.
2203 (dec_thread_find_new_threads): Rename to ...
2204 (dec_thread_update_thread_list): ... this. Delete GDB-size
2205 threads that are no longer found in dec_thread_list.
2206 (resync_thread_list): Delete.
2207 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2210 2014-10-15 Pedro Alves <palves@redhat.com>
2212 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2213 * remote.c (remote_update_thread_list): Skip calling prune_threads
2214 if any thread listing method is supported, and instead walk over
2215 the set of remote threads listed, deleting those that are not
2216 found in GDB's thread list.
2218 2014-10-15 Pedro Alves <palves@redhat.com>
2220 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2221 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2222 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2223 (bsd_uthread_target): Adjust.
2224 * corelow.c (core_open): Adjust.
2225 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2226 (dec_thread_update_thread_list): New function.
2227 (init_dec_thread_ops): Adjust.
2228 * gdbthread.h (prune_threads): New declaration.
2229 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2230 (thread_db_update_thread_list): ... this. Call prune_threads.
2231 (init_thread_db_ops): Adjust.
2232 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2233 (procfs_update_thread_list): ... this. Call prune_threads.
2234 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2236 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2237 (obsd_update_thread_list): ... this. Call prune_threads.
2238 (obsd_add_target): Adjust.
2239 * procfs.c (procfs_target): Adjust.
2240 (procfs_notice_thread): Update comment.
2241 (procfs_find_new_threads): Rename to ...
2242 (procfs_update_thread_list): ... this. Call prune_threads.
2243 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2245 (ravenscar_wait): Adjust.
2246 (ravenscar_find_new_threads): Rename to ...
2247 (ravenscar_update_thread_list): ... this. Call prune_threads.
2248 (init_ravenscar_thread_ops): Adjust.
2249 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2250 (record_btrace_update_thread_list): ... this. Adjust comment.
2251 (init_record_btrace_ops): Adjust.
2252 * remote.c (remote_threads_info): Rename to ...
2253 (remote_update_thread_list): ... this. Call prune_threads.
2254 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2256 * sol-thread.c (check_for_thread_db): Adjust.
2257 (sol_find_new_threads_callback): Rename to ...
2258 (sol_update_thread_list_callback): ... this.
2259 (sol_find_new_threads): Rename to ...
2260 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2261 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2262 * target-delegates.c: Regenerate.
2263 * target.c (target_find_new_threads): Rename to ...
2264 (target_update_thread_list): ... this.
2265 * target.h (struct target_ops): Rename to_find_new_threads field
2266 to to_update_thread_list.
2267 (target_find_new_threads): Rename to ...
2268 (target_update_thread_list): ... this.
2269 * thread.c (prune_threads): Make extern.
2270 (update_thread_list): Adjust.
2272 2014-10-15 Pedro Alves <palves@redhat.com>
2274 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2275 Add describing comment. Return -1 if the qL packet is not
2277 (struct thread_item, thread_item_t): Move higher up in
2278 the file. Add comments.
2279 (struct threads_parsing_context): Move higher up in
2280 the file, add comments, and remote to ...
2281 (struct threads_listing_context): ... this.
2282 (remote_newthread_step): Don't add the thread to GDB's thread
2283 database here. Instead push it to the thread_listing_context
2285 (remote_find_new_threads): Rename to ...
2286 (remote_get_threads_with_ql): ... this. Add target_ops and
2287 targets_listing_context parameters. Pass down context.
2288 (start_thread): Adjust.
2289 (clear_threads_parsing_context): Rename to ...
2290 (clear_threads_listing_context): ... this.
2291 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2292 remote_threads_info.
2293 (remote_get_threads_with_qthreadinfo): Ditto.
2294 (remote_threads_info): Reimplement.
2296 2014-10-15 Pedro Alves <palves@redhat.com>
2298 * infrun.c (resume): Don't force displaced-stepping for all
2299 single-steps on software single-stepping archs.
2301 2014-10-15 Pedro Alves <palves@redhat.com>
2303 * breakpoint.c (single_step_breakpoints): Delete global.
2304 (insert_single_step_breakpoint): Adjust to store the breakpoint
2305 pointer in the current thread.
2306 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2307 (cancel_single_step_breakpoints): Delete functions.
2308 (breakpoint_has_location_inserted_here): Make extern.
2309 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2311 * breakpoint.h (breakpoint_has_location_inserted_here): New
2313 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2314 (cancel_single_step_breakpoints): Remove declarations.
2315 * gdbthread.h (struct thread_control_state)
2316 <single_step_breakpoints>: New field.
2317 (delete_single_step_breakpoints)
2318 (thread_has_single_step_breakpoints_set)
2319 (thread_has_single_step_breakpoint_here): New declarations.
2320 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2321 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2322 (singlestep_pc): Delete globals.
2323 (infrun_thread_ptid_changed): Remove references to removed
2325 (resume_cleanups): Delete the current thread's single-step
2327 (maybe_software_singlestep): Remove references to removed globals.
2328 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2329 delete_single_step_breakpoints.
2330 (init_wait_for_inferior): Remove references to removed globals.
2331 (delete_thread_infrun_breakpoints): Delete the thread's
2332 single-step breakpoints too.
2333 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2334 single-step breakpoints here.
2335 (delete_stopped_threads_single_step_breakpoints): New function.
2336 (adjust_pc_after_break): Adjust to use
2337 thread_has_single_step_breakpoints_set.
2338 (handle_inferior_event): Remove references to removed globals.
2339 Use delete_stopped_threads_single_step_breakpoints.
2340 (handle_signal_stop): Adjust to per-thread single-step
2341 breakpoints. Swap test order to do cheaper tests first.
2342 (switch_back_to_stepped_thread): Extend debug output. Remove
2343 references to removed globals.
2344 * record-full.c (record_full_wait_1): Adjust to per-thread
2345 single-step breakpoints.
2346 * thread.c (delete_single_step_breakpoints)
2347 (thread_has_single_step_breakpoints_set)
2348 (thread_has_single_step_breakpoint_here): New functions.
2349 (clear_thread_inferior_resources): Also delete the thread's
2350 single-step breakpoints.
2352 2014-10-15 Pedro Alves <palves@redhat.com>
2354 * thread.c (delete_thread_breakpoint): New function.
2355 (delete_step_resume_breakpoint)
2356 (delete_exception_resume_breakpoint): Use it.
2357 (delete_at_next_stop): New function.
2358 (clear_thread_inferior_resources): Use delete_at_next_stop.
2360 2014-10-15 Pedro Alves <palves@redhat.com>
2362 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2363 (breakpoint_inserted_here_p): ... here. Remove special case for
2364 software single-step breakpoints.
2365 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2366 (software_breakpoint_inserted_here_p): ... here. Remove special
2367 case for software single-step breakpoints.
2368 (bp_target_info_copy_insertion_state)
2369 (deprecated_insert_raw_breakpoint)
2370 (deprecated_remove_raw_breakpoint): Delete functions.
2371 * breakpoint.h (deprecated_insert_raw_breakpoint)
2372 (deprecated_remove_raw_breakpoint): Remove declarations.
2374 2014-10-15 Pedro Alves <palves@redhat.com>
2377 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2378 Delete array globals.
2379 (single_step_breakpoints): New global.
2380 (breakpoint_xfer_memory): Remove special handling for single-step
2382 (update_breakpoints_after_exec): Delete bp_single_step
2384 (detach_breakpoints): Remove special handling for single-step
2386 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2387 (bpstat_stop_status): Add comment.
2388 (bpstat_what, bptype_string, print_one_breakpoint_location)
2389 (adjust_breakpoint_address, init_bp_location): Handle
2391 (new_single_step_breakpoint): New function.
2392 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2393 handling for single-step breakpoints.
2394 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2395 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2397 (detach_single_step_breakpoints, find_single_step_breakpoint):
2399 (breakpoint_has_location_inserted_here): New function.
2400 (single_step_breakpoint_inserted_here_p): Rewrite.
2401 * breakpoint.h: Remove FIXME.
2402 (enum bptype) <bp_single_step>: New enum value.
2403 (insert_single_step_breakpoint): Update comment.
2404 * infrun.c (resume_cleanups)
2405 (delete_step_thread_step_resume_breakpoint): Remove single-step
2407 (fetch_inferior_event): Install a cleanup that removes infrun
2409 (switch_back_to_stepped_thread) <expect thread advanced also>:
2410 Clear step-over info.
2412 2014-10-15 Pedro Alves <palves@redhat.com>
2414 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2415 (delete_thread_infrun_breakpoints): New function, with parts
2416 salvaged from delete_step_resume_breakpoint_callback.
2417 (delete_step_thread_step_resume_breakpoint): Delete.
2418 (for_each_just_stopped_thread_callback_func): New typedef.
2419 (for_each_just_stopped_thread): New function.
2420 (delete_just_stopped_threads_infrun_breakpoints): New function.
2421 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2422 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2424 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2426 2014-10-15 Pedro Alves <palves@redhat.com>
2428 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2429 trying to step past a non-steppable watchpoint.
2430 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2432 * infrun.c (struct step_over_info): Add new field
2433 'nonsteppable_watchpoint_p' and adjust comments.
2434 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2436 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2437 (stepping_past_nonsteppable_watchpoint): New function.
2438 (step_over_info_valid_p): Also return true if stepping past a
2439 nonsteppable watchpoint.
2440 (proceed): Adjust call to set_step_over_info. Remove reference to
2442 (init_wait_for_inferior): Remove reference to init_infwait_state.
2443 (waiton_ptid): Delete global.
2444 (struct execution_control_state)
2445 <stepped_after_stopped_by_watchpoint>: Delete field.
2446 (wait_for_inferior, fetch_inferior_event): Always pass
2447 minus_one_ptid to target_wait.
2448 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2450 (init_infwait_state): Delete function.
2451 (handle_inferior_event): Remove infwait_state handling.
2452 (handle_signal_stop) <watchpoints handling>: Adjust after
2453 stepped_after_stopped_by_watchpoint removal. Don't remove
2454 breakpoints here nor set infwait_state. Set the thread's
2455 stepping_over_watchpoint flag, and call keep_going instead.
2456 (keep_going): Handle stepping_over_watchpoint. Adjust
2457 set_step_over_info calls.
2458 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2461 2014-10-15 Pedro Alves <palves@redhat.com>
2463 * infrun.c (step_over_info_valid_p): New function.
2464 (resume): Use step_over_info_valid_p instead of checking the
2465 threads's trap_expected flag.
2467 2014-10-15 Doug Evans <dje@google.com>
2468 Walfred Tedeschi <walfred.tedeschi@intel.com>
2471 * python/lib/gdb/__init__.py (packages): Add "printer".
2472 * python/lib/gdb/command/bound_registers.py: Moved to ...
2473 * python/lib/gdb/printer/bound_registers.py: ... here.
2474 Add printer to global set of builtin printers. Rename printer from
2475 "bound" to "mpx_bound128".
2476 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2477 registered as global "builtin" printer.
2478 (add_builtin_pretty_printer): New function.
2479 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2480 gdb/printer/__init__.py.
2482 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2484 * Makefile.in (SFILES): Remove d-support.c.
2485 (COMMON_OBS): Remove d-support.o.
2486 * d-lang.h (d_parse_symbol): Remove declaration.
2487 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2488 * d-support.c: Remove file.
2490 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2492 * gdb/infrun.c (process_event_stop_test): Apply
2493 gdbarch_addr_bits_remove to longjmp resume address.
2495 2014-10-15 Pedro Alves <palves@redhat.com>
2497 * regformats/microblaze.dat: Delete file.
2499 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2501 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2502 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2504 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2506 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2509 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2513 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2514 with qualified args.
2516 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2518 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2519 of the case where the second operand is a pointer.
2520 <BINOP_SUB>: Likewise.
2522 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2524 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2525 only if it is not NULL.
2526 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2527 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2528 (struct probe_ops) <clear_semaphore>: Likewise.
2529 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2531 (stop_tracing): Likewise, for clear_semaphore.
2533 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2535 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2536 using language_c, instead of current_language.
2538 2014-10-13 Doug Evans <dje@google.com>
2540 * python/py-objfile.c (objfpy_initialize): New function.
2541 (objfpy_new, objfile_to_objfile_object): Call it.
2542 * python/py-progspace.c (pspy_initialize): New function.
2543 (pspy_new, pspace_to_pspace_object): Call it.
2545 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2546 Jan Kratochvil <jan.kratochvil@redhat.com>
2548 Fix "save breakpoints" for "catch" command.
2549 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2552 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2554 Fix "save breakpoints" for "disable $bpnum" command.
2555 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2557 2014-10-10 Pedro Alves <palves@redhat.com>
2559 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2560 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2561 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2562 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2564 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2565 * configure.ac: Remove references to IRIX.
2566 * configure.host: Add *-*-irix* to the obsolete hosts section.
2567 Remove all other references to irix.
2568 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2571 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2573 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2574 isn't valid, release the tdesc arch data and return NULL.
2576 2014-10-10 Pedro Alves <palves@redhat.com>
2578 * linux-tdep.c: Include observer.h.
2579 (linux_inferior_data): New global.
2580 (struct linux_info): New structure.
2581 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2582 (get_linux_inferior_data): New functions.
2583 (linux_vsyscall_range): Rename to ...
2584 (linux_vsyscall_range_raw): ... this.
2585 (linux_vsyscall_range): New function; handles caching.
2586 (_initialize_linux_tdep): Register linux_inferior_data. Install
2587 inferior_exit and inferior_appeared observers.
2589 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2590 Pedro Alves <palves@redhat.com>
2593 * solib-svr4.c (svr4_read_so_list): Rename to ...
2594 (svr4_current_sos_1): ... this and change the function comment.
2595 (svr4_current_sos): New function.
2597 2014-10-10 Pedro Alves <palves@redhat.com>
2599 * arch-utils.c (default_vsyscall_range): New function.
2600 * arch-utils.h (default_vsyscall_range): New declaration.
2601 * gdbarch.sh (vsyscall_range): New hook.
2602 * gdbarch.h, gdbarch.c: Regenerate.
2603 * linux-tdep.c (linux_vsyscall_range): New function.
2604 (linux_init_abi): Install linux_vsyscall_range as
2605 vsyscall_range gdbarch hook.
2606 * memrange.c (address_in_mem_range): New function.
2607 * memrange.h (address_in_mem_range): New declaration.
2608 * symfile-mem.c (find_vdso_size): Delete function.
2609 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2611 2014-10-10 Pedro Alves <palves@redhat.com>
2613 * infrun.c (normal_stop): Fix typo in comment.
2615 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2618 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2619 typo when using logical AND to determine instruction type.
2621 2014-10-09 Yao Qi <yao@codesourcery.com>
2623 * infrun.c (handle_signal_stop): Remove local variable
2626 2014-10-08 Stan Shebs <stan@codesourcery.com>
2628 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2630 2014-10-08 Gary Benson <gbenson@redhat.com>
2632 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2634 2014-10-08 Gary Benson <gbenson@redhat.com>
2636 * common/common-defs.h: Include common-exceptions.h.
2637 * exceptions.h: Do not include common-exceptions.h.
2639 2014-10-08 Gary Benson <gbenson@redhat.com>
2641 * common/common-defs.h: Include cleanups.h.
2642 * common/common-exceptions.c: Do not include cleanups.h.
2643 * utils.h: Likewise.
2645 2014-10-08 Gary Benson <gbenson@redhat.com>
2647 * ada-lang.c: Do not include exceptions.h.
2648 * ada-valprint.c: Likewise.
2649 * amd64-tdep.c: Likewise.
2650 * auto-load.c: Likewise.
2651 * block.c: Likewise.
2652 * break-catch-throw.c: Likewise.
2653 * breakpoint.c: Likewise.
2654 * btrace.c: Likewise.
2655 * c-lang.c: Likewise.
2656 * cli/cli-cmds.c: Likewise.
2657 * cli/cli-interp.c: Likewise.
2658 * cli/cli-script.c: Likewise.
2659 * completer.c: Likewise.
2660 * corefile.c: Likewise.
2661 * corelow.c: Likewise.
2662 * cp-abi.c: Likewise.
2663 * cp-support.c: Likewise.
2664 * cp-valprint.c: Likewise.
2665 * darwin-nat.c: Likewise.
2666 * dwarf2-frame-tailcall.c: Likewise.
2667 * dwarf2-frame.c: Likewise.
2668 * dwarf2loc.c: Likewise.
2669 * dwarf2read.c: Likewise.
2671 * event-loop.c: Likewise.
2672 * event-top.c: Likewise.
2673 * f-valprint.c: Likewise.
2674 * frame-unwind.c: Likewise.
2675 * frame.c: Likewise.
2676 * gdbtypes.c: Likewise.
2677 * gnu-v2-abi.c: Likewise.
2678 * gnu-v3-abi.c: Likewise.
2679 * guile/scm-auto-load.c: Likewise.
2680 * guile/scm-breakpoint.c: Likewise.
2681 * guile/scm-cmd.c: Likewise.
2682 * guile/scm-frame.c: Likewise.
2683 * guile/scm-lazy-string.c: Likewise.
2684 * guile/scm-param.c: Likewise.
2685 * guile/scm-symbol.c: Likewise.
2686 * guile/scm-type.c: Likewise.
2687 * hppa-hpux-tdep.c: Likewise.
2688 * i386-tdep.c: Likewise.
2689 * inf-loop.c: Likewise.
2690 * infcall.c: Likewise.
2691 * infcmd.c: Likewise.
2692 * infrun.c: Likewise.
2693 * interps.c: Likewise.
2694 * interps.h: Likewise.
2696 * linespec.c: Likewise.
2697 * linux-nat.c: Likewise.
2698 * linux-thread-db.c: Likewise.
2699 * m32r-rom.c: Likewise.
2701 * memory-map.c: Likewise.
2702 * mi/mi-cmd-break.c: Likewise.
2703 * mi/mi-cmd-stack.c: Likewise.
2704 * mi/mi-interp.c: Likewise.
2705 * mi/mi-main.c: Likewise.
2706 * monitor.c: Likewise.
2707 * nto-procfs.c: Likewise.
2708 * objc-lang.c: Likewise.
2709 * p-valprint.c: Likewise.
2710 * parse.c: Likewise.
2711 * ppc-linux-tdep.c: Likewise.
2712 * printcmd.c: Likewise.
2713 * probe.c: Likewise.
2714 * python/py-auto-load.c: Likewise.
2715 * python/py-breakpoint.c: Likewise.
2716 * python/py-cmd.c: Likewise.
2717 * python/py-finishbreakpoint.c: Likewise.
2718 * python/py-frame.c: Likewise.
2719 * python/py-framefilter.c: Likewise.
2720 * python/py-function.c: Likewise.
2721 * python/py-gdb-readline.c: Likewise.
2722 * python/py-inferior.c: Likewise.
2723 * python/py-infthread.c: Likewise.
2724 * python/py-lazy-string.c: Likewise.
2725 * python/py-linetable.c: Likewise.
2726 * python/py-param.c: Likewise.
2727 * python/py-prettyprint.c: Likewise.
2728 * python/py-symbol.c: Likewise.
2729 * python/py-type.c: Likewise.
2730 * python/py-value.c: Likewise.
2731 * python/python-internal.h: Likewise.
2732 * python/python.c: Likewise.
2733 * record-btrace.c: Likewise.
2734 * record-full.c: Likewise.
2735 * regcache.c: Likewise.
2736 * remote-fileio.c: Likewise.
2737 * remote-mips.c: Likewise.
2738 * remote.c: Likewise.
2739 * rs6000-aix-tdep.c: Likewise.
2740 * rs6000-nat.c: Likewise.
2742 * solib-darwin.c: Likewise.
2743 * solib-dsbt.c: Likewise.
2744 * solib-frv.c: Likewise.
2745 * solib-ia64-hpux.c: Likewise.
2746 * solib-spu.c: Likewise.
2747 * solib-svr4.c: Likewise.
2748 * solib.c: Likewise.
2749 * spu-tdep.c: Likewise.
2750 * stack.c: Likewise.
2751 * stap-probe.c: Likewise.
2752 * symfile-mem.c: Likewise.
2753 * symmisc.c: Likewise.
2754 * target.c: Likewise.
2755 * thread.c: Likewise.
2757 * tracepoint.c: Likewise.
2758 * tui/tui-interp.c: Likewise.
2759 * typeprint.c: Likewise.
2760 * utils.c: Likewise.
2761 * valarith.c: Likewise.
2762 * valops.c: Likewise.
2763 * valprint.c: Likewise.
2764 * value.c: Likewise.
2765 * varobj.c: Likewise.
2766 * windows-nat.c: Likewise.
2767 * xml-support.c: Likewise.
2769 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2771 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2773 (extended_mips16_next_pc): Update accordingly.
2775 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2777 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2779 (micromips_instruction_is_compact_branch): Likewise.
2780 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2781 or a compact jump, reaching a jump delay slot, or seeing a
2782 second non-prologue instruction.
2783 (micromips_scan_prologue): Also terminate scanning upon seeing a
2784 compact branch or jump, or reaching a branch or jump delay slot.
2785 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2786 or jump delay slot, or seeing a second non-prologue instruction.
2787 (mips32_instruction_has_delay_slot): Retain instruction
2788 examination code only, update arguments accordingly and move
2789 instruction fetch pieces to...
2790 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2791 (micromips_instruction_has_delay_slot): Likewise and to...
2792 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2793 (mips16_instruction_has_delay_slot): Likewise and to...
2794 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2795 (mips_single_step_through_delay): Update accordingly.
2796 (mips_adjust_breakpoint_address): Likewise.
2798 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2800 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2801 !mustbe32 also return 1 for 32-bit instructions.
2802 (mips16_instruction_has_delay_slot): Likewise. Add an
2803 explanatory comment.
2805 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2807 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2810 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2812 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2814 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2815 for the breakpoint's address. Don't preinitialize `placed_size'.
2816 (insert_bp_location): Set `reqstd_address' rather than
2818 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2819 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2821 (bkpt_remove_location): Likewise.
2822 (deprecated_insert_raw_breakpoint): Likewise.
2823 (deprecated_remove_raw_breakpoint): Likewise.
2824 (find_single_step_breakpoint): Likewise.
2825 * mem-break.c (default_memory_insert_breakpoint): Use
2826 `reqstd_address' for the breakpoint's address. Don't set
2827 `placed_address' or `placed_size' if breakpoint contents couldn't
2828 have been determined.
2829 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2830 the breakpoint's address.
2831 (remote_insert_hw_breakpoint): Likewise. Don't set
2832 `placed_address' or `placed_size' if breakpoint couldn't have been
2834 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2835 `reqstd_address' for the breakpoint's address.
2836 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2837 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2838 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2839 * microblaze-linux-tdep.c
2840 (microblaze_linux_memory_remove_breakpoint): Likewise.
2841 * monitor.c (monitor_insert_breakpoint): Likewise.
2842 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2843 (procfs_insert_hw_breakpoint): Likewise.
2844 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2845 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2846 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2847 * remote-mips.c (mips_insert_breakpoint): Likewise.
2848 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2850 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2852 * valops.c (value_assign): Check for bit field assignments
2853 before calling architecture-specific register value
2854 conversion functions.
2856 2014-10-03 Pierre Muller <muller@sourceware.org>
2858 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2860 2014-10-02 Pedro Alves <palves@redhat.com>
2862 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2863 threads_are_executing.
2864 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2866 * gdbthread.h (threads_are_executing): Declare.
2867 (handle_signal_stop) <random signals>: Don't print about the
2868 signal here if stopping.
2869 (end_stepping_range): Don't notify observers here.
2870 (normal_stop): Update the thread list. If stopped by a random
2871 signal or a stepping range ended, notify observers.
2872 * thread.c (threads_executing): New global.
2873 (init_thread_list): Clear 'threads_executing'.
2874 (set_executing): Set or clear 'threads_executing'.
2875 (threads_are_executing): New function.
2876 (update_threads_executing): New function.
2877 (update_thread_list): Use it.
2879 2014-10-02 Pedro Alves <palves@redhat.com>
2881 PR breakpoints/17431
2882 * breakpoint.c (update_breakpoints_after_exec): Don't create
2883 overlay, longjmp, std terminate nor exception breakpoints here.
2885 2014-10-02 Pedro Alves <palves@redhat.com>
2887 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2889 * inferior.c (find_inferior_for_program_space): Give preference to
2890 the current inferior.
2891 * inferior.h (find_inferior_for_program_space): Update comment.
2892 * progspace.c (switch_to_program_space_and_thread): Prefer the
2893 current inferior if it's bound to the program space requested. If
2894 the inferior found doesn't have a PID yet, don't bother looking up
2896 * progspace.h (switch_to_program_space_and_thread): Adjust
2898 * thread.c (any_thread_of_process, any_live_thread_of_process):
2899 Give preference to the current thread.
2901 2014-10-01 Pedro Alves <palves@redhat.com>
2903 * breakpoint.c (insert_bp_location): Error out if inserting a
2904 software breakpoint at a read-only address.
2905 * target.c (memory_xfer_check_region): New function, factored out
2907 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2909 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2910 against the memory region attributes.
2912 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2914 * NEWS: Announce new exit-code field in -list-thread-groups
2916 * inferior.c (exit_inferior_1): Don't clear exit code.
2917 (inferior_appeared): Clear exit code.
2918 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2921 2014-10-01 Pedro Alves <palves@redhat.com>
2923 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2924 GENERATED" along with emacs/vi read-only markers.
2925 * regformats/aarch64.dat: Regenerate.
2926 * regformats/arm-with-iwmmxt.dat: Regenerate.
2927 * regformats/arm-with-neon.dat: Regenerate.
2928 * regformats/arm-with-vfpv2.dat: Regenerate.
2929 * regformats/arm-with-vfpv3.dat: Regenerate.
2930 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2931 * regformats/i386/amd64-avx.dat: Regenerate.
2932 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2933 * regformats/i386/amd64-avx512.dat: Regenerate.
2934 * regformats/i386/amd64-linux.dat: Regenerate.
2935 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2936 * regformats/i386/amd64-mpx.dat: Regenerate.
2937 * regformats/i386/amd64.dat: Regenerate.
2938 * regformats/i386/i386-avx-linux.dat: Regenerate.
2939 * regformats/i386/i386-avx.dat: Regenerate.
2940 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2941 * regformats/i386/i386-avx512.dat: Regenerate.
2942 * regformats/i386/i386-linux.dat: Regenerate.
2943 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2944 * regformats/i386/i386-mmx.dat: Regenerate.
2945 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2946 * regformats/i386/i386-mpx.dat: Regenerate.
2947 * regformats/i386/i386.dat: Regenerate.
2948 * regformats/i386/x32-avx-linux.dat: Regenerate.
2949 * regformats/i386/x32-avx.dat: Regenerate.
2950 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2951 * regformats/i386/x32-avx512.dat: Regenerate.
2952 * regformats/i386/x32-linux.dat: Regenerate.
2953 * regformats/i386/x32.dat: Regenerate.
2954 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2955 * regformats/mips-dsp-linux.dat: Regenerate.
2956 * regformats/mips-linux.dat: Regenerate.
2957 * regformats/mips64-dsp-linux.dat: Regenerate.
2958 * regformats/mips64-linux.dat: Regenerate.
2959 * regformats/nios2-linux.dat: Regenerate.
2960 * regformats/rs6000/powerpc-32.dat: Regenerate.
2961 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2962 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2963 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2964 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2965 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2966 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2967 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2968 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2969 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2970 * regformats/s390-linux32.dat: Regenerate.
2971 * regformats/s390-linux32v1.dat: Regenerate.
2972 * regformats/s390-linux32v2.dat: Regenerate.
2973 * regformats/s390-linux64.dat: Regenerate.
2974 * regformats/s390-linux64v1.dat: Regenerate.
2975 * regformats/s390-linux64v2.dat: Regenerate.
2976 * regformats/s390-te-linux64.dat: Regenerate.
2977 * regformats/s390x-linux64.dat: Regenerate.
2978 * regformats/s390x-linux64v1.dat: Regenerate.
2979 * regformats/s390x-linux64v2.dat: Regenerate.
2980 * regformats/s390x-te-linux64.dat: Regenerate.
2981 * regformats/tic6x-c62x-linux.dat: Regenerate.
2982 * regformats/tic6x-c62x.dat: Regenerate.
2983 * regformats/tic6x-c64x-linux.dat: Regenerate.
2984 * regformats/tic6x-c64x.dat: Regenerate.
2985 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2986 * regformats/tic6x-c64xp.dat: Regenerate.
2988 2014-10-01 Pedro Alves <palves@redhat.com>
2990 * features/Makefile: Update comments.
2991 (XMLTOC): List all xml files we build C files from.
2992 (clean-cfiles): New rule.
2994 2014-10-01 Pedro Alves <palves@redhat.com>
2996 * features/i386/amd64-avx512-linux.c: Regenerate.
2997 * features/i386/amd64-avx512.c: Regenerate.
2998 * features/i386/x32-avx512-linux.c: Regenerate.
2999 * features/i386/x32-avx512.c: Regenerate.
3001 2014-10-01 Pedro Alves <palves@redhat.com>
3003 * features/Makefile (WHICH): Remove arm-with-m,
3004 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3006 2014-10-01 Pedro Alves <palves@redhat.com>
3008 * features/Makefile (clean): New rule.
3010 2014-10-01 Pedro Alves <palves@redhat.com>
3012 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3013 (zmm14h): Add missing end quotes.
3015 2014-10-01 Pedro Alves <palves@redhat.com>
3017 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3018 * features/aarch64.c: Regenerate.
3020 2014-09-30 Don Breazeal <donb@codesourcery.com>
3022 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3023 code so as to work with follow_fork_inferior.
3024 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3025 (inf_ttrace_create_inferior): Remove reference to
3026 inf_ttrace_vfork_ppid.
3027 (inf_ttrace_attach): Ditto.
3028 (inf_ttrace_detach): Ditto.
3029 (inf_ttrace_kill): Use current_inferior instead of
3030 inf_ttrace_vfork_ppid.
3031 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3032 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3033 inferior away from the parent.
3034 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3036 (follow_fork_inferior): New function.
3037 (follow_inferior_reset_breakpoints): Make function static.
3038 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3039 * linux-nat.c (linux_child_follow_fork): Move target-independent
3040 code to infrun.c:follow_fork_inferior.
3042 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3044 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3045 * gdbarch.c: Regenerate.
3046 * gdbarch.h: Likewise.
3047 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3048 gdbarch method 'regset_from_core_section'.
3049 (get_core_register_section): Remove handling for the case that
3050 regset == NULL and regset_from_core_section is defined.
3051 (get_core_registers): Drop check for deleted method.
3052 * procfs.c (procfs_do_thread_registers): Adjust comment.
3054 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3056 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3057 (linux_nat_make_corefile_notes): Remove.
3058 (linux_target_install_ops): Do not set target method
3059 'make_corefile_notes'.
3060 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3062 (linux_corefile_thread_callback): Instead of args->collect, call
3063 linux_collect_thread_registers.
3064 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3065 NULL unless there is a regset iterator.
3066 (linux_make_corefile_notes_1): Remove.
3067 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3068 by linux_make_corefile_notes.
3069 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3071 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3073 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3074 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3076 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3080 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3081 (xtensa_iterate_over_regset_sections): New.
3082 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3086 * vax-tdep.c (vax_regset_from_core_section): Remove.
3087 (vax_iterate_over_regset_sections): New.
3088 (vax_gdbarch_init): Adjust gdbarch initialization.
3090 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3093 (tilegx_regset_from_core_section): Remove.
3094 (tilegx_iterate_over_regset_sections): New.
3095 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3097 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3099 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3100 (sparc_iterate_over_regset_sections): New.
3101 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3102 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3104 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3105 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3106 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3107 target method 'make_corefile_notes'.
3109 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3111 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3112 'sizeof_gregset' and 'sizeof_fpregset'.
3113 * sh-tdep.c (sh_regset_from_core_section): Remove.
3114 (sh_iterate_over_regset_sections): New.
3115 (sh_gdbarch_init): Adjust gdbarch initialization.
3116 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3118 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3123 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3124 (score7_linux_iterate_over_regset_sections): New.
3125 (score_gdbarch_init): Adjust gdbarch initialization.
3127 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3129 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3131 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3132 method 'make_corefile_notes'.
3133 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3134 (ppcfbsd_regset_from_core_section): Remove.
3135 (ppcfbsd_iterate_over_regset_sections): New.
3136 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3138 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3139 (ppcnbsd_iterate_over_regset_sections): New.
3140 (ppcnbsd_init_abi): Adjust.
3141 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3142 (ppcobsd_iterate_over_regset_sections): New.
3143 (ppcobsd_init_abi): Adjust.
3144 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3145 (rs6000_aix_iterate_over_regset_sections): New.
3146 (rs6000_aix_init_osabi): Adjust.
3148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3150 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3151 (nios2_regset_from_core_section): Remove.
3152 (nios2_iterate_over_regset_sections): New.
3153 (nios2_linux_init_abi): Adjust gdbarch initialization.
3155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3157 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3158 (am33_iterate_over_regset_sections): New.
3159 (am33_linux_init_osabi): Adjust gdbarch initialization.
3161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3163 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3164 (mips_linux_iterate_over_regset_sections): New.
3165 (mips_linux_init_abi): Adjust gdbarch initialization.
3166 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3167 (mips64obsd_iterate_over_regset_sections): New.
3168 (mips64obsd_init_abi): Adjust.
3169 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3170 (mipsnbsd_iterate_over_regset_sections): New.
3171 (mipsnbsd_init_abi): Adjust.
3173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3175 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3176 (m88k_iterate_over_regset_sections): New.
3177 (m88k_gdbarch_init): Adjust gdbarch initialization.
3179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3181 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3182 (ia64_linux_iterate_over_regset_sections): New.
3183 (ia64_linux_init_abi): Adjust gdbarch initialization.
3185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3187 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3188 (m68kbsd_iterate_over_regset_sections): New.
3189 (m68kbsd_init_abi): Adjust gdbarch initialization.
3190 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3191 (m68k_linux_iterate_over_regset_sections): New.
3192 (m68k_linux_init_abi): Adjust gdbarch initialization.
3194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3196 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3197 (m32r_linux_regset_from_core_section): Remove.
3198 (m32r_linux_iterate_over_regset_sections): New.
3199 (m32r_linux_init_abi): Adjust gdbarch initialization.
3201 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3203 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3204 (amd64obsd_iterate_over_regset_sections): New.
3205 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3206 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3208 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3209 regset_from_core_section initialization.
3210 * i386-tdep.c (i386_regset_from_core_section): Remove.
3211 (i386_iterate_over_regset_sections): New.
3212 (i386_gdbarch_init): Adjust gdbarch initialization.
3213 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3214 (i386_iterate_over_regset_sections): New prototype.
3215 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3217 (i386obsd_aout_iterate_over_regset_sections): New.
3218 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3219 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3221 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3222 (amd64fbsd_init_abi): Call fbsd_init_abi.
3223 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3224 (i386fbsd4_init_abi): Call fbsd_init_abi.
3225 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3226 target method 'make_corefile_notes'.
3227 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3229 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3232 (hppa_hpux_iterate_over_regset_sections): New.
3233 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3234 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3235 (hppa_linux_iterate_over_regset_sections): New.
3236 (hppa_linux_init_abi): Adjust.
3237 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3238 (hppanbsd_iterate_over_regset_sections): New.
3239 (hppanbsd_init_abi): Adjust.
3240 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3241 (hppaobsd_iterate_over_regset_sections): New.
3242 (hppaobsd_init_abi): Adjust.
3244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3246 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3247 (frv_linux_iterate_over_regset_sections): New.
3248 (frv_linux_init_abi): Adjust gdbarch initialization.
3250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3252 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3253 (armbsd_iterate_over_regset_sections): New prototype.
3254 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3255 (armbsd_iterate_over_regset_sections): New.
3256 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3261 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3262 (alpha_linux_iterate_over_regset_sections): New.
3263 (alpha_linux_init_abi): Adjust gdbarch initialization.
3264 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3266 (alphanbsd_iterate_over_regset_sections): New prototype.
3268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3270 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3272 (aarch64_linux_iterate_over_regset_sections): New.
3273 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277 * fbsd-tdep.c: New file.
3278 * fbsd-tdep.h: New file.
3279 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3280 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3281 (ALLDEPFILES): Add fbsd-tdep.c.
3283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3285 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3287 * gdbarch.h: Regenerate.
3288 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3290 (get_core_register_section): Add parameter 'regset' and use it, if
3291 set. Add parameter 'min_size' and verify the bfd section size
3293 (get_core_registers_cb): Add parameter 'regset' and pass it to
3294 get_core_register section. For the "standard" register sections
3295 ".reg" and ".reg2", set an appropriate default for human_name.
3296 (get_core_registers): Don't abort when the gdbarch has an iterator
3297 but no regset_from_core_section. Add NULL/0 for parameters
3298 'regset'/'min_size' in calls to get_core_register_section.
3299 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3300 'regset' and use it instead of calling the
3301 regset_from_core_section gdbarch method.
3302 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3303 * i386-tdep.c (i386_supply_xstateregset)
3304 (i386_collect_xstateregset, i386_xstateregset): Moved to
3306 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3308 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3309 core file support only if the regset iterator hasn't been set.
3310 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3311 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3312 Moved from i386-tdep.c and renamed to *_linux*.
3313 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3314 each callback invocation. Allow any .reg-xstate size when reading
3316 * amd64-tdep.c (amd64_supply_xstateregset)
3317 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3319 (amd64_regset_from_core_section): Remove.
3320 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3321 install an amd64-specific regset_from_core_section gdbarch method.
3322 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3323 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3324 Moved from amd64-tdep.c and renamed to *_linux*.
3325 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3326 to each callback invocation. Allow any .reg-xstate size when
3327 reading from a core file.
3328 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3329 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3330 each callback invocation.
3331 (arm_linux_init_abi): No longer set the regset_from_core_section
3333 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3334 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3335 each callback invocation.
3336 (ppc_linux_init_abi): No longer set the regset_from_core_section
3338 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3339 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3340 (s390_regset_from_core_section): Remove.
3341 (s390_iterate_over_regset_sections): Add regset parameter to each
3342 callback invocation.
3343 (s390_gdbarch_init): No longer set the regset_from_core_section
3344 gdbarch method. Drop initialization of deleted tdep fields.
3346 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3348 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3349 (amd64_linux_iterate_over_regset_sections): New.
3350 (amd64_linux_init_abi_common): Don't install the regset section
3351 list, but the new iterator in gdbarch.
3352 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3353 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3354 (arm_linux_iterate_over_regset_sections): ...here. New function.
3355 (arm_linux_init_abi): Set iterator instead of section list.
3356 * corelow.c (get_core_registers_cb): New function, logic moved
3358 (get_core_registers): ...loop body here. Use new iterator method
3359 instead of walking through the regset section list.
3360 * gdbarch.sh: Remove 'core_regset_sections'. New method
3361 'iterate_over_regset_sections'. New typedef
3362 'iterate_over_regset_sections_cb'.
3363 * gdbarch.c: Regenerate.
3364 * gdbarch.h: Likewise.
3365 * i386-linux-tdep.c (i386_linux_regset_sections)
3366 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3368 (i386_linux_iterate_over_regset_sections): New.
3369 (i386_linux_init_abi): Don't choose a regset section list, but
3370 install new iterator in gdbarch.
3371 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3372 (linux_collect_regset_section_cb): New function, logic moved
3374 (linux_collect_thread_registers): ...loop body here. Use iterator
3375 method instead of walking through list.
3376 (linux_make_corefile_notes_1): Check for presence of iterator
3377 method instead of regset section list.
3378 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3379 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3380 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3381 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3382 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3383 (ppc_linux_init_abi): Don't choose from above regset section
3384 lists, but install new iterator in gdbarch.
3385 * regset.h (struct core_regset_section): Remove.
3386 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3387 have_linux_v1, have_linux_v2, and have_tdb.
3388 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3389 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3390 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3391 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3392 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3393 (s390_iterate_over_regset_sections): ...here. New function. Use
3395 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3396 regset section lists, but install new iterator.
3398 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3400 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3402 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3404 * progspace.c (print_program_space): Don't prune program spaces
3405 before printing them.
3407 2014-09-25 Pedro Alves <palves@redhat.com>
3409 * infrun.c (user_visible_resume_ptid): Don't check
3410 singlestep_breakpoints_inserted_p.
3412 2014-09-25 Pedro Alves <palves@redhat.com>
3414 * breakpoint.c (should_be_inserted): Add debug output.
3416 2014-09-25 Pedro Alves <palves@redhat.com>
3418 * infrun.c (stepping_past_instruction_at)
3419 (clear_exit_convenience_vars): Point at infrun.h instead of
3421 (handle_signal_stop): Fix typo.
3423 2014-09-24 Yao Qi <yao@codesourcery.com>
3425 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3428 2014-09-22 Gary Benson <gbenson@redhat.com>
3430 * target.c (target_stop): Updated comment.
3432 2014-09-22 Gary Benson <gbenson@redhat.com>
3434 * target/target.h (target_stop_ptid): Renamed as...
3435 (target_stop_and_wait): New function. Updated comment.
3437 (target_continue_ptid): Renamed as...
3438 (target_continue_no_signal): New function. Updated comment.
3441 2014-09-22 Pedro Alves <palves@redhat.com>
3443 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3445 * breakpoint.c (enum ugll_insert_mode): New enum.
3446 (always_inserted_mode): Now a plain boolean.
3447 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3448 (breakpoints_always_inserted_mode): Delete.
3449 (breakpoints_should_be_inserted_now): New function.
3450 (insert_breakpoints): Pass UGLL_INSERT to
3451 update_global_location_list instead of calling
3452 insert_breakpoint_locations manually.
3453 (create_solib_event_breakpoint_1): New, factored out from ...
3454 (create_solib_event_breakpoint): ... this.
3455 (create_and_insert_solib_event_breakpoint): Use
3456 create_solib_event_breakpoint_1 instead of calling
3457 insert_breakpoint_locations manually.
3458 (update_global_location_list): Change parameter type from boolean
3459 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3460 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3461 (update_global_location_list_nothrow): Change parameter type from
3462 boolean to enum ugll_insert_mode.
3463 (_initialize_breakpoint): "breakpoint always-inserted" option is
3464 now a boolean command. Update help text.
3465 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3466 (breakpoints_should_be_inserted_now): New declaration.
3467 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3468 Remove breakpoints_always_inserted_mode check.
3469 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3470 * remote.c (remote_start_remote): Likewise.
3472 2014-09-22 Pedro Alves <palves@redhat.com>
3474 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3475 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3476 Instead, pass UGLL_INSERT to update_global_location_list.
3477 (update_global_location_list): Change parameter type from boolean
3478 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3479 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3480 (create_solib_event_breakpoint_1): New, factored out from ...
3481 (create_solib_event_breakpoint): ... this.
3482 (create_and_insert_solib_event_breakpoint): Use
3483 create_solib_event_breakpoint_1 instead of calling
3484 insert_breakpoint_locations manually.
3485 (update_global_location_list): Handle UGLL_INSERT.
3487 2014-09-22 Pedro Alves <palves@redhat.com>
3489 * breakpoint.c (enum ugll_insert_mode): New enum.
3490 (update_global_location_list)
3491 (update_global_location_list_nothrow): Change parameter type from
3492 boolean to enum ugll_insert_mode. All callers adjusted.
3494 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3496 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3497 SystemTap support in GDB.
3499 2014-09-19 Don Breazeal <donb@codesourcery.com>
3501 * linux-nat.c (linux_handle_extended_wait): Call
3502 linux_ptrace_get_extended_event.
3503 (wait_lwp): Call linux_is_extended_waitstatus.
3504 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3505 and linux_is_extended_waitstatus.
3506 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3507 linux_ptrace_get_extended_event.
3508 (linux_ptrace_get_extended_event): New function.
3509 (linux_is_extended_waitstatus): New function.
3510 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3511 (linux_is_extended_waitstatus): New declarations.
3513 2014-09-19 Yao Qi <yao@codesourcery.com>
3515 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3516 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3517 comments. Callers update.
3518 (dwarf_decode_lines): Likewise.
3519 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3520 comments. Skip the line table if 'lowpc' is greater than
3521 'address'. Don't check
3522 dwarf2_per_objfile->has_section_at_zero.
3524 2014-09-18 Doug Evans <dje@google.com>
3526 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3527 * python/py-symtab.c (stpy_get_producer): New function.
3528 (symtab_object_getset): Add "producer" attribute.
3530 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3533 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3534 (do_captured_read_memory_integer): Remove.
3535 (safe_read_memory_integer): Use target_read_memory directly instead
3536 of catching errors in do_captured_read_memory_integer.
3538 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3540 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3543 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3545 * objc-lang.c (find_implementation_from_class): Remove dead code.
3547 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3550 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3551 "fprintf_unfiltered (gdb_stdlog...)".
3553 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3555 PR breakpoints/12526
3556 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3558 * breakpoint.c (watch_command_1): Use these fields to retain
3559 bitfield information.
3560 (extract_bitfield_from_watchpoint_value): New function.
3561 (watchpoint_check): Use it.
3562 (update_watchpoint): Use it. Optimize the address and length of a
3563 HW watchpoint pointing to a bitfield.
3564 * value.h (unpack_value_bitfield): New prototype.
3565 * value.c (unpack_value_bitfield): Make extern.
3567 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3569 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3571 * gnu-nat.c (inf_threads): New function.
3572 * gnu-nat.h (inf_threads_ftype): New typedef.
3573 (inf_threads): New declaration.
3574 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3575 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3576 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3577 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3578 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3579 (i386_gnu_dr_get_control): New functions.
3580 (reg_addr): New structure.
3581 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3582 i386 debugging register hooks.
3583 * NEWS: Mention this.
3585 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3587 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3588 vector data transfer instructions.
3589 (arm_record_coproc_data_proc): Updated.
3591 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3593 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3594 arm_record_exreg_ld_st_insn.
3595 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3598 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3600 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3601 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3602 processing instructions.
3604 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3606 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3607 for advance SIMD struct ld/st insn.
3608 (thumb2_record_decode_insn_handler): Replace stub handler with
3609 thumb2_record_asimd_struct_ld_st.
3611 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3613 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3614 for asimd, vfp and coprocessor insns.
3615 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3616 and coprocessor insns.
3617 (thumb2_record_coproc_insn): New function.
3618 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3620 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3623 2014-09-13 Doug Evans <xdje42@gmail.com>
3625 * NEWS: Mention new "queue-signal" command.
3626 * infcmd.c (queue_signal_command): New function.
3627 (_initialize_infcmd): Add new queue-signal command.
3629 2014-09-13 Doug Evans <xdje42@gmail.com>
3631 * linux-nat.c (wait_lwp): Add debugging printf.
3632 (linux_nat_wait_1): Ditto.
3634 2014-09-12 Pedro Alves <palves@redhat.com>
3636 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3637 (create_and_insert_solib_event_breakpoint): New functions.
3638 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3639 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3640 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3641 (remove_dbx_link_breakpoint): Delete function.
3642 (insert_dbx_link_bpt_in_file): Use
3643 create_and_insert_solib_event_breakpoint instead of
3644 deprecated_insert_raw_breakpoint.
3645 (procfs_wait): Don't check whether we hit __dbx_link here.
3646 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3648 * solib-irix.c (base_breakpoint): Delete global.
3649 (disable_break): Delete function.
3650 (enable_break): Use create_solib_event_breakpoint
3651 instead of deprecated_insert_raw_breakpoint.
3652 (irix_solib_handle_event): New function.
3653 (irix_solib_create_inferior_hook): Don't run the target or disable
3654 the mapping-complete breakpoint here.
3655 (_initialize_irix_solib): Install irix_solib_handle_event as
3656 so_ops->handle_event hook.
3658 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3659 Ulrich Weigand <uweigand@de.ibm.com>
3662 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3663 instead of read_memory_unsigned_integer.
3665 2014-09-12 Gary Benson <gbenson@redhat.com>
3667 * nat/linux-waitpid.c: Include common-defs.h.
3668 [GDBSERVER]: Add FIXME comment.
3669 [!GDBSERVER]: Don't include defs.h or signal.h.
3670 (linux_debug) [!GDBSERVER]: Remove empty block.
3672 2014-09-12 Gary Benson <gbenson@redhat.com>
3674 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3675 Don't include defs.h or server.h.
3677 2014-09-12 Gary Benson <gbenson@redhat.com>
3679 * nat/linux-btrace.c: Include common-defs.h.
3680 Don't include defs.h, server.h or gdbthread.h.
3681 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3683 2014-09-12 Gary Benson <gbenson@redhat.com>
3685 * common/agent.c: Include common-defs.h.
3686 Don't include defs.h or server.h.
3687 * common/buffer.c: Likewise.
3688 * common/common-debug.c: Likewise.
3689 * common/common-utils.c: Likewise.
3690 * common/errors.c: Likewise.
3691 * common/filestuff.c: Likewise.
3692 * common/format.c: Likewise.
3693 * common/gdb_vecs.c: Likewise.
3694 * common/print-utils.c: Likewise.
3695 * common/ptid.c: Likewise.
3696 * common/rsp-low.c: Likewise.
3697 * common/signals.c: Likewise.
3698 * common/vec.c: Likewise.
3699 * common/xml-utils.c: Likewise.
3700 * nat/linux-osdata.c: Likewise.
3701 * nat/linux-procfs.c: Likewise.
3702 * nat/linux-ptrace.c: Likewise.
3703 * nat/mips-linux-watch.c: Likewise.
3704 * target/waitstatus.c: Likewise.
3706 2014-09-12 Tom Tromey <tromey@redhat.com>
3707 Gary Benson <gbenson@redhat.com>
3709 * common/common-regcache.h: New file.
3710 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3711 * regcache.h: Include common-regcache.h.
3712 (regcache_read_pc): Don't declare.
3713 * regcache.c (get_thread_regcache_for_ptid): New function.
3714 * nat/linux-btrace.c: Don't include regcache.h.
3715 Include common-regcache.h.
3716 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3718 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3720 * regcache.h (struct regset): Declare.
3722 2014-09-11 Pedro Alves <palves@redhat.com>
3725 * main.c: Include "infrun.h".
3726 (catch_command_errors, catch_command_errors_const): Wait for the
3727 foreground command to complete.
3728 * top.c (maybe_wait_sync_command_done): New function, factored out
3730 (maybe_wait_sync_command_done): ... here.
3731 * top.h (maybe_wait_sync_command_done): New declaration.
3733 2014-09-11 Tom Tromey <tromey@redhat.com>
3734 Gary Benson <gbenson@redhat.com>
3736 * common/symbol.h: New file.
3737 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3738 * minsyms.c (find_minimal_symbol_address): New function.
3739 * common/agent.c: Include common/symbol.h.
3740 [!GDBSERVER]: Don't include objfiles.h.
3741 (agent_look_up_symbols): Use find_minimal_symbol_address.
3743 2014-09-11 Gary Benson <gbenson@redhat.com>
3745 * target/target.h (target_stop_ptid, target_continue_ptid):
3747 * target.c (target_stop_ptid, target_continue_ptid): New
3749 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3750 (agent_run_command): Always use target_stop_ptid and
3751 target_continue_ptid.
3753 2014-09-11 Tom Tromey <tromey@redhat.com>
3754 Gary Benson <gbenson@redhat.com>
3756 * target/target.h: New file.
3757 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3758 * target.h: Include target/target.h.
3759 (target_read_memory, target_write_memory): Don't declare.
3760 * target.c (target_read_uint32): New function.
3761 * common/agent.c: Include target/target.h.
3762 [!GDBSERVER]: Don't include target.h.
3763 (helper_thread_id): Type changed to uint32_t.
3764 (agent_get_helper_thread_id): Use target_read_uint32.
3765 (agent_run_command): Always use target_read_memory and
3766 target_write_memory.
3767 (agent_capability): Type changed to uint32_t.
3768 (agent_capability_check): Use target_read_uint32.
3770 2014-09-11 Gary Benson <gbenson@redhat.com>
3772 * common/common-debug.h (show_debug_regs): Declare.
3773 * common/common-debug.c (show_debug_regs): Define.
3774 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3775 all uses with show_debug_regs. Replace all uses that considered
3776 debug_hw_points as a multi-value integer with straight boolean
3778 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3779 with show_debug_regs.
3780 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3781 all uses with show_debug_regs.
3782 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3783 uses with show_debug_regs.
3785 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3787 * findvar.c (address_from_register): Handle targets requiring
3788 a special conversion routine even for plain pointer types.
3790 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3792 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3793 (store_register): Do not call exec_one_dummy_insn.
3795 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3797 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3798 dereference it first. Use value_enclosing_type instead of
3800 (ada_array_length): Likewise.
3802 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3804 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3805 Adjust function implementation and documentation accordingly.
3806 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3807 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3808 Update call to ada_value_ptr_subscript.
3810 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3812 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3813 instead of VAL's type.
3815 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3817 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3819 2014-09-09 Doug Evans <xdje42@gmail.com>
3822 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3823 last parameter to pkg-config, not first.
3824 * configure.ac: Pass --with-guile provided pkg-config path to
3825 GDB_GUILE_PROGRAM_NAMES.
3826 * configure: Regenerate.
3828 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3830 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3833 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3835 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3836 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3837 the list of sections determining GDB_OSABI_IRIX.
3839 2014-09-09 James Hogan <james.hogan@imgtec.com>
3841 * MAINTAINERS (Write After Approval): Add "James Hogan".
3843 2014-09-09 James Hogan <james.hogan@imgtec.com>
3845 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3847 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3849 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3851 2014-09-08 Doug Evans <xdje42@gmail.com>
3854 * guile.c: #include <signal.h>.
3855 (_initialize_guile): Block SIGCHLD while initializing Guile.
3857 Replaces the following, which is reverted.
3859 2014-07-26 Doug Evans <xdje42@gmail.com>
3862 * configure.ac: Add check for header gc/gc.h.
3863 Add check for function setenv.
3864 * configure: Regenerate.
3865 * config.in: Regenerate.
3866 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3868 2014-09-08 Doug Evans <xdje42@gmail.com>
3870 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3871 with named constant. Fix style of pointer comparison.
3872 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3874 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3877 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3878 decide whether we display the command on "show user".
3879 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3880 printing command name.
3881 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3882 * cli/cli-decode.c (cli_user_command_p): Create helper function
3883 to verify whether cmd_list_element is a user-defined command.
3885 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3888 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3889 Fix goto out of TRY_CATCH.
3891 2014-09-06 Doug Evans <xdje42@gmail.com>
3892 Tom Tromey <tromey@redhat.com>
3895 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3896 $_any_caller_matches.
3897 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3898 * python/lib/gdb/function/caller_is.py: New file.
3900 2014-09-06 Doug Evans <xdje42@gmail.com>
3902 * infcmd.c (program_info): Fix typo.
3904 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3907 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3908 'number'. New variable 'has_digit'. Rewrite code to deal with
3909 subexpressions on SDT probes.
3911 2014-09-04 Pedro Alves <palves@redhat.com>
3913 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3914 the input is only one character long.
3916 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3919 * f-valprint.c (f_val_print): Specify the correct print option to
3920 use when printing integer values.
3922 2014-09-04 Gary Benson <gbenson@redhat.com>
3924 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3925 Remove code to cope with LWPs wrapped as PIDs.
3926 Add assertions to ensure no wrapped LWPs are passed.
3928 2014-09-04 Pedro Alves <palves@redhat.com>
3930 * value.c (value_ranges_copy_adjusted): New function, factored out
3932 (value_contents_copy_raw): ... here.
3933 (unpack_value_bits_as_long_1): Rename back to ...
3934 (unpack_bits_as_long): ... this. Remove 'original_value' and
3935 'result' parameters. Change return type to LONGEST.
3936 (unpack_value_bits_as_long): Delete.
3937 (unpack_value_field_as_long_1): Delete.
3938 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3939 (unpack_value_bitfield): New function.
3940 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3941 (value_fetch_lazy): Use unpack_value_bitfield.
3942 * value.h (unpack_value_bits_as_long): Delete declaration.
3944 2014-09-03 Sasha Smundak <asmundak@google.com>
3946 * python/py-frame.c (frapy_read_register): New function.
3948 2014-09-03 James Hogan <james.hogan@imgtec.com>
3950 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3951 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3953 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3956 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3958 (add_cmd): Set "completer_handle_brkchars" to NULL.
3959 * cli/cli-decode.h (struct cmd_list_element)
3960 <completer_handle_brkchars>: New field.
3961 * command.h (completer_ftype_void): New typedef.
3962 (set_cmd_completer_handle_brkchars): New prototype.
3963 * completer.c (set_gdb_completion_word_break_characters): New
3965 (complete_line_internal): Call "completer_handle_brkchars"
3966 callback from command.
3967 * completer.h: Include "command.h".
3968 (set_gdb_completion_word_break_characters): New prototype.
3969 * python/py-cmd.c (cmdpy_completer_helper): New function.
3970 (cmdpy_completer_handle_brkchars): New function.
3971 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3972 (cmdpy_init): Set completer_handle_brkchars to
3973 cmdpy_completer_handle_brkchars.
3975 2014-09-03 Gary Benson <gbenson@redhat.com>
3977 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3978 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3979 Loop conditions changed to equivalent form.
3980 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3981 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3982 ALL_DEBUG_ADDRESS_REGISTERS.
3984 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3986 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3989 2014-09-02 Doug Evans <dje@google.com>
3991 * typeprint.c (find_global_typedef): Fix comment.
3993 2014-09-02 Gary Benson <gbenson@redhat.com>
3995 * i386-nat.h: Renamed as...
3996 * x86-nat.h: New file. All type, function and variable name
3997 prefixes changed from "i386_" to "x86_". All references updated.
3998 * i386-nat.c: Renamed as...
3999 * x86-nat.c: New file. All type, function and variable name
4000 prefixes changed from "i386_" to "x86_". All references updated.
4001 * common/i386-xstate.h: Renamed as...
4002 * common/x86-xstate.h: New file. All type, function and variable
4003 name prefixes changed from "i386_" to "x86_". All references
4005 * nat/i386-cpuid.h: Renamed as...
4006 * nat/x86-cpuid.h: New file. All type, function and variable name
4007 prefixes changed from "i386_" to "x86_". All references updated.
4008 * nat/i386-gcc-cpuid.h: Renamed as...
4009 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4010 name prefixes changed from "i386_" to "x86_". All references
4012 * nat/i386-dregs.h: Renamed as...
4013 * nat/x86-dregs.h: New file. All type, function and variable name
4014 prefixes changed from "i386_" to "x86_". All references updated.
4015 * nat/i386-dregs.c: Renamed as...
4016 * nat/x86-dregs.c: New file. All type, function and variable name
4017 prefixes changed from "i386_" to "x86_". All references updated.
4019 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4021 * varobj.c (_initialize_varobj): Move to the end of file.
4023 2014-08-29 Gary Benson <gbenson@redhat.com>
4025 * common/common-exceptions.h: New file.
4026 * common/common-exceptions.c: Likewise.
4027 * Makefile.in (SFILES): Add common/common-exceptions.c.
4028 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4029 (COMMON_OBS): Add common-exceptions.o.
4030 (common-exceptions.o): New rule.
4031 * exceptions.h (common-exceptions.h): Include.
4032 (gdb_setjmp.h): Do not include.
4033 (return_reason): Moved to common-exceptions.h.
4034 (enum return_reason): Likewise.
4035 (RETURN_MASK): Likewise.
4036 (typedef return_mask): Likewise.
4037 (enum errors): Likewise.
4038 (struct gdb_exception): Likewise.
4039 (exceptions_state_mc_init): Likewise.
4040 (exceptions_state_mc_action_iter): Likewise.
4041 (exceptions_state_mc_action_iter_1): Likewise.
4042 (TRY_CATCH): Likewise.
4043 (throw_exception): Likewise.
4044 (throw_verror): Likewise.
4045 (throw_vquit): Likewise.
4046 (throw_error): Likewise.
4047 (throw_quit): Likewise.
4048 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4049 (enum catcher_action): Likewise.
4050 (struct catcher): Likewise.
4051 (current_catcher): Likewise.
4052 (catcher_list_size): Likewise.
4053 (exceptions_state_mc_init): Likewise.
4054 (catcher_pop): Likewise.
4055 (exceptions_state_mc): Likewise.
4056 (exceptions_state_mc_action_iter): Likewise.
4057 (exceptions_state_mc_action_iter_1): Likewise.
4058 (throw_exception): Likewise.
4059 (exception_messages): Likewise.
4060 (exception_messages_size): Likewise.
4061 (throw_it): Likewise.
4062 (throw_verror): Likewise.
4063 (throw_vquit): Likewise.
4064 (throw_error): Likewise.
4065 (throw_quit): Likewise.
4066 (prepare_to_throw_exception): New function.
4068 2014-08-29 Gary Benson <gbenson@redhat.com>
4070 * common/gdb_setjmp.h: New file.
4071 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4072 * configure.ac: Move sigsetjmp check...
4073 * common/common.m4: ...here.
4074 * configure: Regenerate.
4075 * cp-support.c (SIGJMP_BUF): Delete.
4076 (SIGSETJMP): Likewise.
4077 (SIGLONGJMP): Likewise.
4078 * exceptions.h (gdb_setjmp.h): Include.
4079 (setjmp.h): Do not include.
4080 (EXCEPTIONS_SIGJMP_BUF): Delete.
4081 (EXCEPTIONS_SIGSETJMP): Likewise.
4082 (EXCEPTIONS_SIGLONGJMP): Likewise.
4083 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4085 * exceptions.c: Likewise.
4087 2014-08-29 Gary Benson <gbenson@redhat.com>
4089 * cleanups.h: Moved to...
4090 * common/cleanups.h: New file.
4091 * cleanups.c: Moved to...
4092 * common/cleanups.c: New file. Include common-defs.h and
4093 cleanups.h. Do not include defs.h.
4094 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4095 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4096 (cleanups.o): New rule.
4098 2014-08-29 Gary Benson <gbenson@redhat.com>
4100 * common/errors.h (internal_warning): New declaration.
4101 (internal_vwarning): Likewise.
4102 * common/errors.c (internal_warning): New function.
4103 * utils.h (internal_warning): Don't declare.
4104 (internal_vwarning): Likewise.
4105 * utils.c (internal_warning): Removed.
4107 2014-08-29 Gary Benson <gbenson@redhat.com>
4109 * main.c (captured_main): Use warning during startup.
4110 Prefix startup warning messages with command name.
4112 2014-08-29 Gary Benson <gbenson@redhat.com>
4114 * main.c (captured_main): Handle usage errors with error.
4116 2014-08-29 Gary Benson <gbenson@redhat.com>
4118 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4119 exit pair with a call to error. Wrap the message with _().
4121 2014-08-29 Gary Benson <gbenson@redhat.com>
4123 * main.c (captured_main): Replace a fprintf/exit
4124 pair with a call to error. Wrap the message with _().
4126 2014-08-29 Gary Benson <gbenson@redhat.com>
4128 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4129 pairs with calls to error. Wrap the message with _().
4131 2014-08-29 Gary Benson <gbenson@redhat.com>
4133 * utils.c (vwarning): Protect calls to target_terminal_ours
4136 2014-08-29 Gary Benson <gbenson@redhat.com>
4138 * exceptions.c (print_flush): Protect calls to
4139 target_terminal_ours and wrap_here.
4141 2014-08-29 Gary Benson <gbenson@redhat.com>
4143 * utils.h (filtered_printing_initialized): New declaration.
4144 * utils.c (abort_with_message): New function.
4145 (internal_vproblem): Use abort_with_message for first level
4146 recursive internal problems, and if gdb_stderr is not set up.
4147 Protect calls to target_terminal_ours, begin_line and query.
4149 2014-08-28 Doug Evans <dje@google.com>
4151 * symtab.c (in_prologue): Move definition to better spot.
4152 (skip_prologue_using_sal): Ditto.
4154 2014-08-28 Doug Evans <dje@google.com>
4156 * symtab.c (find_function_start_sal): Move definition to better spot.
4158 2014-08-28 Yao Qi <yao@codesourcery.com>
4160 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4161 found_stack_adjust in forward scan. Remove condition check
4162 on found_stack_adjust which is always true. Indent the code.
4164 2014-08-28 Yao Qi <yao@codesourcery.com>
4166 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4167 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4168 (dwarf_decode_lines): Remove argument
4169 want_line_info. Remove condition check on want_line_info.
4172 2014-08-27 Doug Evans <dje@google.com>
4174 * dwarf2read.c (dwarf_record_line): Fix typo.
4176 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4178 * target.h (struct target_ops::to_terminal_save_ours): Remove
4180 (target_terminal_save_ours): Remove macro.
4181 * target-delegates.c: Regenerate.
4182 * inf-child.c (inf_child_target): Don't set the nonexistent
4183 field to_terminal_save_ours.
4184 * inferior.h (child_terminal_save_ours): Remove declaration.
4185 * terminal.h (gdb_save_tty_state): New declaration.
4186 * inflow.c (child_terminal_save_ours): Rename to ...
4187 (gdb_save_tty_state): ... this.
4188 * tui/tui.c: Include terminal.h.
4189 (tui_enable): Use gdb_save_tty_state instead of
4190 target_terminal_save_ours.
4191 (tui_disable): Likewise.
4193 2014-08-25 Doug Evans <dje@google.com>
4195 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4196 Pass NULL instead of 0 for context pointer.
4198 2014-08-25 Yao Qi <yao@codesourcery.com>
4200 * dwarf2read.c: Fix grammatical error.
4202 2014-08-24 Yao Qi <yao@codesourcery.com>
4204 * dwarf2read.c (scan_partial_symbols): Update comments.
4205 Rename argument 'need_pc' with 'set_addrmap'.
4206 (add_partial_namespace): Rename argument 'need_pc' with
4208 (add_partial_module): Likewise.
4209 (add_partial_subprogram): Likewise. Update comments.
4210 (dwarf2_name): Fix typo.
4212 2014-08-22 Doug Evans <dje@google.com>
4215 * dwarf2read.c (dwarf_record_line_p): New function.
4216 (dwarf_decode_lines_1): Ignore subsequent line number entries
4217 for the same line if any entry had a non-zero discriminator.
4219 2014-08-22 Doug Evans <dje@google.com>
4221 * buildsym.h (record_line_ftype): New typedef.
4222 (record_line): Use it.
4223 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4224 (dwarf_decode_lines_1): Call them.
4226 2014-08-22 Yao Qi <yao@codesourcery.com>
4228 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4229 (ctf_end): Remove code.
4231 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4233 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4234 (linux_make_corefile_notes): call update_thread_list, protected against
4237 2014-08-21 Pedro Alves <palves@redhat.com>
4239 * infcmd.c (attach_command): Remove comment.
4241 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4243 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4244 unsigned LONGEST to ULONGEST.
4246 2014-08-20 Pedro Alves <palves@redhat.com>
4248 * Makefile.in (check-read1): New rule.
4250 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4252 * value.c (value_from_contents_and_address): Strip resolved_type's
4253 typedef layers before checking its TYPE_DATA_LOCATION.
4255 2014-08-20 Pedro Alves <palves@redhat.com>
4257 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4259 2014-08-20 Yao Qi <yao@codesourcery.com>
4261 * amd64-tdep.c (amd64_classify): Add a blank line after the
4262 example. Move "*/" to a new line.
4263 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4264 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4265 * dwarf2read.c (psymtab_include_file_name): Likewise.
4267 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4268 Pedro Alves <palves@redhat.com>
4272 * ada-lang.c (coerce_unspec_val_to_type): Use
4273 value_contents_copy_raw.
4274 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4275 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4276 * cp-valprint.c (cp_print_value_fields): Let the common printing
4277 code handle optimized out values.
4278 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4279 * d-valprint.c (dynamic_array_type): Use
4280 value_bits_any_optimized_out.
4281 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4282 check_any_valid fields.
4283 (check_pieced_value_bits): Delete and inline ...
4284 (check_pieced_synthetic_pointer): ... here.
4285 (check_pieced_value_validity): Delete.
4286 (check_pieced_value_invalid): Delete.
4287 (pieced_value_funcs): Remove check_validity and check_any_valid
4289 (read_pieced_value): Use mark_value_bits_optimized_out.
4290 (write_pieced_value): Switch to use
4291 mark_value_bytes_optimized_out.
4292 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4293 of assuming the whole value is optimized out.
4294 * findvar.c (read_frame_register_value): Remove special handling
4295 of optimized out registers.
4296 (value_from_register): Use mark_value_bytes_optimized_out.
4297 * frame-unwind.c (frame_unwind_got_optimized): Use
4298 mark_value_bytes_optimized_out.
4299 * jv-valprint.c (java_value_print): Adjust.
4300 (java_print_value_fields): Let the common printing code handle
4301 optimized out values.
4302 * mips-tdep.c (mips_print_register): Remove special handling of
4303 optimized out registers.
4304 * opencl-lang.c (lval_func_check_validity): Delete.
4305 (lval_func_check_any_valid): Delete.
4306 (opencl_value_funcs): Remove check_validity and check_any_valid
4308 * p-valprint.c (pascal_object_print_value_fields): Let the common
4309 printing code handle optimized out values.
4310 * stack.c (read_frame_arg): Remove special handling of optimized
4311 out values. Fetch both VAL and ENTRYVAL before comparing
4312 contents. Adjust to value_available_contents_eq rename.
4313 * valprint.c (valprint_check_validity)
4314 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4315 (val_print_array_elements): Adjust.
4316 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4317 (value_bits_any_optimized_out): New function.
4318 (value_entirely_covered_by_range_vector): New function, factored
4319 out from value_entirely_unavailable.
4320 (value_entirely_unavailable): Reimplement.
4321 (value_entirely_optimized_out): New function.
4322 (insert_into_bit_range_vector): New function, factored out from
4323 mark_value_bits_unavailable.
4324 (mark_value_bits_unavailable): Reimplement.
4325 (struct ranges_and_idx): New struct.
4326 (find_first_range_overlap_and_match): New function, factored out
4327 from value_available_contents_bits_eq.
4328 (value_available_contents_bits_eq): Rename to ...
4329 (value_contents_bits_eq): ... this. Check both unavailable
4330 contents and optimized out contents.
4331 (value_available_contents_eq): Rename to ...
4332 (value_contents_eq): ... this.
4333 (allocate_value_lazy): Remove reference to the old optimized_out
4335 (allocate_optimized_out_value): Use
4336 mark_value_bytes_optimized_out.
4337 (require_not_optimized_out): Adjust to check whether the
4338 optimized_out vec is empty.
4339 (ranges_copy_adjusted): New function, factored out from
4340 value_contents_copy_raw.
4341 (value_contents_copy_raw): Also copy the optimized out ranges.
4342 Assert the destination ranges aren't optimized out.
4343 (value_contents_copy): Update comment, remove call to
4344 require_not_optimized_out.
4345 (value_contents_equal): Adjust to check whether the optimized_out
4347 (set_value_optimized_out, value_optimized_out_const): Delete.
4348 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4350 (value_entirely_optimized_out, value_bits_valid): Delete.
4351 (value_copy): Take a VEC copy of the 'optimized_out' field.
4352 (value_primitive_field): Remove special handling of optimized out.
4353 (value_fetch_lazy): Assert that lazy values have no unavailable
4354 regions. Use value_bits_any_optimized_out. Remove some special
4355 handling for optimized out values.
4356 * value.h: Add intro comment about <optimized out> and
4358 (struct lval_funcs): Remove check_validity and check_any_valid
4360 (set_value_optimized_out, value_optimized_out_const): Remove.
4361 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4363 (value_bits_any_optimized_out): New declaration.
4364 (value_bits_valid): Delete declaration.
4365 (value_available_contents_eq): Rename to ...
4366 (value_contents_eq): ... this, and extend comments.
4368 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 Fix -fsanitize=address on unreadable inferior strings.
4371 * valprint.c (val_print_string): Fix access before BUFFER.
4373 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4375 * target.c (target_struct_size): Remove.
4376 (target_struct_allocsize): Remove.
4377 (DEFAULT_ALLOCSIZE): Remove.
4378 (target_ops_p): New typedef.
4379 (DEF_VEC_P (target_ops_p)): New vector type.
4380 (target_structs): Change type to VEC (target_ops_p).
4381 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4382 (find_default_run_target): Rewrite for loop following changes to
4385 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4387 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4388 Adjust code accordingly. Adjust function description comment.
4390 2014-08-19 Yao Qi <yao@codesourcery.com>
4392 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4395 2014-08-19 Alan Modra <amodra@gmail.com>
4397 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4398 * config.in: Regenerate.
4399 * configure: Regenerate.
4401 2014-08-19 Tom Tromey <tromey@redhat.com>
4402 Gary Benson <gbenson@redhat.com>
4404 * common/common-debug.h: New file.
4405 * common/common-debug.c: Likewise.
4406 * debug.c: Likewise.
4407 * Makefile.in (SFILES): Add common/common-debug.c.
4408 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4409 (COMMON_OBS): Add common-debug.o and debug.o.
4410 (common-debug.o): New rule.
4411 * common/common-defs.h: Include common-debug.h.
4412 * common/agent.c (debug_agent_printf): New function.
4413 (DEBUG_AGENT): Redefine.
4414 * nat/i386-dregs.c (debug_printf): Undefine.
4416 2014-08-19 Gary Benson <gbenson@redhat.com>
4418 * common/common-defs.h: Include print-utils.h.
4419 * utils.h: Do not include print-utils.h.
4421 2014-08-19 Tom Tromey <tromey@redhat.com>
4422 Gary Benson <gbenson@redhat.com>
4424 * common/common-types.h: New file.
4425 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4426 * common/common-defs.h: Include common-types.h.
4427 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4430 2014-08-19 Tom Tromey <tromey@redhat.com>
4431 Gary Benson <gbenson@redhat.com>
4433 * common/errors.h: New file.
4434 * common/errors.c: Likewise.
4435 * Makefile.in (SFILES): Add common/errors.c.
4436 (HFILES_NO_SRCDIR): Add common/errors.h.
4437 (COMMON_OBS): Add errors.o.
4438 (errors.o): New rule.
4439 * common/common-defs.h: Include errors.h.
4440 * utils.h (perror_with_name, error, verror, warning, vwarning):
4442 * common/common-utils.h: (malloc_failure, internal_error):
4445 2014-08-19 Gary Benson <gbenson@redhat.com>
4447 * utils.c (internal_vproblem): Always print the message.
4449 2014-08-18 Doug Evans <dje@google.com>
4451 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4453 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4455 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4456 Return 0 if TYPE is dynamic.
4457 (print_range): Add handling of dynamic ranges.
4459 2014-08-18 Keven Boell <keven.boell@intel.com>
4460 Joel Brobecker <brobecker@adacore.com>
4462 * gdbtypes.h (struct main_type): Add field "data_location".
4463 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4464 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4465 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4466 a dynamic data location.
4467 (resolve_dynamic_type): Add DW_AT_data_location handling.
4468 (copy_recursive, copy_type): Copy the data_location information
4470 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4471 * value.c (value_from_contents_and_address): Add
4472 DW_AT_data_location handling.
4474 2014-08-18 Keven Boell <keven.boell@intel.com>
4475 Joel Brobecker <brobecker@adacore.com>
4477 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4478 field "get_object_address".
4479 * dwarf2expr.c (execute_stack_op): Add handling for
4480 DW_OP_push_object_address.
4481 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4482 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4483 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4484 (dwarf_expr_get_obj_addr): New function.
4485 (dwarf_expr_ctx_funcs): Add get_object_address field.
4486 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4487 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4488 (dwarf2_evaluate_property): Add parameter "address". Use it.
4489 (needs_get_obj_addr): New function.
4490 (needs_frame_ctx_funcs): Add get_object_address field.
4491 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4492 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4493 (resolve_dynamic_array): Likewise.
4495 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4497 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4498 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4499 fixed value for records and unions for which some GNAT encodings
4502 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4504 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4505 rewrite to avoid "else if" and "else" constructs. Should be
4506 a no-op in practice.
4508 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4510 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4513 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4516 * eval.c: Update all calls to find_overload_match.
4517 * valarith.c: Likewise.
4518 (value_user_defined_cpp_op, value_user_defined_op): New
4519 argument NOSIDE. Update all callers.
4520 * valops.c (find_overload_match): New argument NOSIDE.
4521 * value.h (find_overload_match): Update signature.
4523 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4525 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4526 'items' methods instead of 'iteritems' method on dictionaries.
4528 2014-08-15 Doug Evans <dje@google.com>
4530 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4533 2014-08-15 Doug Evans <dje@google.com>
4535 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4537 2014-08-15 Doug Evans <dje@google.com>
4539 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4541 2014-08-15 Doug Evans <dje@google.com>
4543 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4546 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4548 * dcache.h: Include target.h, to avoid compile time warnings.
4550 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4552 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4553 frame_info" partial declaration.
4554 * gdbarch.h: Regenerate.
4556 2014-08-15 Yao Qi <yao@codesourcery.com>
4558 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4559 Add parameter 'decode_for_pst_p'. Callers update.
4561 2014-08-13 Yao Qi <yao@codesourcery.com>
4564 * configure.ac: Use local variable 'pos'.
4565 * configure: Regenerated.
4567 2014-08-11 Doug Evans <dje@google.com>
4569 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4570 message, it is redundant with "Reading symbols from ..." message.
4572 2014-08-10 Doug Evans <xdje42@gmail.com>
4574 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4576 2014-08-09 Yao Qi <yao@codesourcery.com>
4579 * remote.c (remote_xfer_partial): Remove dead code.
4581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4583 * ia64-linux-tdep.c: Include "regset.h".
4584 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4585 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4586 (ia64_linux_supply_fpregset): New function.
4587 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4588 (ia64_linux_regset_from_core_section): New function.
4589 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4592 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4594 * m68klinux-tdep.c: Include "regset.h".
4595 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4596 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4597 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4598 (m68k_linux_regset_from_core_section): New function.
4599 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4602 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4604 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4605 function. Move logic to...
4606 (tilegx_linux_regmap): ... this new register map.
4607 (tilegx_linux_regset): Refer to register map, replace supply
4608 method by regcache_supply_regset, and add collect method.
4609 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4610 TILEGX_FIRST_EASY_REGNUM.
4612 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4614 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4615 that calls regcache_supply_regset and handles the EPC register
4616 separately. Move main logic to...
4617 (score7_linux_gregmap): ... this new register map.
4618 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4619 (score7_linux_gregset): Refer to register map. Add collect method.
4620 (score7_linux_regset_from_core_section): Replace
4621 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4622 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4623 (struct regset): Delete unused forward declaraction.
4624 (struct pt_regs): Delete structure definition.
4625 (elf_gregset_t): Delete typedef.
4627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4629 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4630 (nios2_core_regset): Add collect method.
4632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4634 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4635 platform-independent and don't write to read-only input buffer.
4636 (m32r_linux_collect_gregset): New function.
4637 (m32r_linux_gregset): Add collect method.
4639 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4641 * hppa-linux-tdep.c (greg_map): Rename to...
4642 (hppa_linux_gregmap): ... this. Also convert to
4643 regcache_map_entry format.
4644 (hppa_linux_supply_regset): Delete function.
4645 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4646 (hppa_linux_fpregmap): ... this new register map.
4647 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4648 register map, replace supply method by regcache_supply_regset, and
4649 add collect method regcache_collect_regset.
4651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4653 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4654 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4655 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4656 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4657 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4658 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4659 (frv_linux_supply_gregset): Replace main logic by call to
4660 regcache_supply_regset, but keep clearing gr32-gr63.
4661 (frv_linux_supply_fpregset): Delete function.
4662 (frv_linux_gregset): Refer to appropriate register map and add
4663 regcache_collect_regset as the collect method.
4664 (frv_linux_fpregset): Likewise. Also exchange the supply method
4665 by regcache_supply_regset.
4667 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4669 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4670 by call to alpha_supply_int_regs.
4671 (alpha_linux_collect_gregset): New function.
4672 (alpha_linux_supply_fpregset): Replace logic by call to
4673 alpha_supply_fp_regs.
4674 (alpha_linux_collect_fpregset): New function.
4675 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4679 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4680 by call to regcache_collect_regset.
4681 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4682 instead of aarch64_linux_supply_gregset/_fpregset.
4683 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4684 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4685 header file instead.
4686 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4687 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4688 functions. Move logic to ...
4689 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4691 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4692 refer to new register maps, replace *_regset_from_core by
4693 regcache_supply_regset, and also use regcache_collect_regset.
4694 * aarch64-linux-tdep.h: Include "regset.h".
4695 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4697 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4698 macros, moved from C source file.
4699 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4700 variable declarations.
4702 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4704 * s390-linux-nat.c: Include "regset.h".
4705 (regmap_gregset): Delete macro.
4706 (s390_64_regmap_gregset): New register map for
4707 regcache_supply/_collect_regset.
4708 (s390_64_gregset): New regset.
4709 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4710 (regmap_fpregset): Delete macro.
4711 (s390_native_supply, s390_native_collect): Delete functions.
4712 (supply_gregset, fill_gregset): Replace s390-specific regmap
4713 handling by a call to regcache_supply/_collect_regset.
4714 (supply_fpregset, fill_fpregset): Call regcache_supply/
4715 _collect_regset instead of s390_native_supply/_collect.
4716 (fetch_regset, store_regset): Likewise. Also change the last
4717 parameter to a regset instead of a regmap.
4718 (s390_linux_fetch_inferior_registers)
4719 (390_linux_store_inferior_registers): Adjust last parameter in
4720 calls to fetch_regset and store_regset.
4721 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4722 (s390_gregmap): ... this. Also make static const and convert to
4723 regcache_map_entry format.
4724 (s390x_regmap_gregset): Delete.
4725 (s390_regmap_fpregset): Rename to...
4726 (s390_fpregmap): ... this. Make static const and convert to
4727 regcache_map_entry format.
4728 (s390_regmap_upper, s390_regmap_last_break)
4729 (s390x_regmap_last_break, s390_regmap_system_call)
4730 (s390_regmap_tdb): Likewise.
4731 (s390_supply_regset, s390_collect_regset): Remove functions.
4732 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4734 (s390_gregset, s390_fpregset, s390_upper_regset)
4735 (s390_last_break_regset, s390x_last_break_regset)
4736 (s390_system_call_regset, s390_tdb_regset): Make global and
4737 replace s390_supply/_collect_regset by regcache_supply/
4739 (s390x_gregset): Delete.
4740 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4741 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4742 (s390_regmap_fpregset, s390_regmap_last_break)
4743 (s390x_regmap_last_break, s390_regmap_system_call)
4744 (s390_regmap_tdb): Delete global variable declarations.
4745 (s390_gregset, s390_fpregset, s390_last_break_regset)
4746 (s390x_last_break_regset, s390_system_call_regset)
4747 (s390_tdb_regset): New global variable declarations.
4749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4751 * regcache.c: Include "regset.h".
4752 (regcache_transfer_regset): New local function.
4753 (regcache_supply_regset, regcache_collect_regset): New functions.
4754 * regcache.h (struct regcache_map_entry): New structure.
4755 (REGCACHE_MAP_SKIP): New enum value.
4756 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4758 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4760 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4761 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4762 (ppc_linux_collect_gregset ): Likewise.
4763 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4764 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4765 (ppc_collect_vrregset): Likewise.
4766 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4769 2014-08-07 Yao Qi <yao@codesourcery.com>
4771 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4772 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4773 * remote.c (remote_read_bytes): Likewise.
4775 2014-08-07 Yao Qi <yao@codesourcery.com>
4777 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4779 2014-08-07 Yao Qi <yao@codesourcery.com>
4782 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4783 TARGET_XFER_OK instead of 0.
4785 2014-08-07 Gary Benson <gbenson@redhat.com>
4787 * common/common-defs.h: Include errno.h.
4788 * defs.h: Do not include errno.h.
4789 * ada-typeprint.c: Likewise.
4790 * c-typeprint.c: Likewise.
4791 * core-regset.c: Likewise.
4792 * corefile.c: Likewise.
4793 * corelow.c: Likewise.
4794 * event-loop.c: Likewise.
4795 * f-typeprint.c: Likewise.
4796 * gnu-nat.c: Likewise.
4797 * go32-nat.c: Likewise.
4798 * i386gnu-nat.c: Likewise.
4799 * m2-typeprint.c: Likewise.
4800 * nat/linux-btrace.c: Likewise.
4801 * p-typeprint.c: Likewise.
4802 * procfs.c: Likewise.
4803 * remote-sim.c: Likewise.
4804 * rs6000-nat.c: Likewise.
4805 * target.c: Likewise.
4806 * typeprint.c: Likewise.
4807 * ui-file.c: Likewise.
4808 * valops.c: Likewise.
4809 * valprint.c: Likewise.
4811 2014-08-07 Gary Benson <gbenson@redhat.com>
4813 * common/common-defs.h: Include string.h.
4814 * aarch64-tdep.c: Do not include string.h.
4815 * ada-exp.y: Likewise.
4816 * ada-lang.c: Likewise.
4817 * ada-lex.l: Likewise.
4818 * ada-typeprint.c: Likewise.
4819 * ada-valprint.c: Likewise.
4820 * aix-thread.c: Likewise.
4821 * alpha-linux-tdep.c: Likewise.
4822 * alpha-mdebug-tdep.c: Likewise.
4823 * alpha-nat.c: Likewise.
4824 * alpha-osf1-tdep.c: Likewise.
4825 * alpha-tdep.c: Likewise.
4826 * alphanbsd-tdep.c: Likewise.
4827 * amd64-dicos-tdep.c: Likewise.
4828 * amd64-linux-tdep.c: Likewise.
4829 * amd64-nat.c: Likewise.
4830 * amd64-sol2-tdep.c: Likewise.
4831 * amd64fbsd-tdep.c: Likewise.
4832 * amd64obsd-tdep.c: Likewise.
4833 * arch-utils.c: Likewise.
4834 * arm-linux-nat.c: Likewise.
4835 * arm-linux-tdep.c: Likewise.
4836 * arm-tdep.c: Likewise.
4837 * arm-wince-tdep.c: Likewise.
4838 * armbsd-tdep.c: Likewise.
4839 * armnbsd-nat.c: Likewise.
4840 * armnbsd-tdep.c: Likewise.
4841 * armobsd-tdep.c: Likewise.
4842 * avr-tdep.c: Likewise.
4843 * ax-gdb.c: Likewise.
4844 * ax-general.c: Likewise.
4845 * bcache.c: Likewise.
4846 * bfin-tdep.c: Likewise.
4847 * breakpoint.c: Likewise.
4848 * build-id.c: Likewise.
4849 * buildsym.c: Likewise.
4850 * c-exp.y: Likewise.
4851 * c-lang.c: Likewise.
4852 * c-typeprint.c: Likewise.
4853 * c-valprint.c: Likewise.
4854 * charset.c: Likewise.
4855 * cli-out.c: Likewise.
4856 * cli/cli-cmds.c: Likewise.
4857 * cli/cli-decode.c: Likewise.
4858 * cli/cli-dump.c: Likewise.
4859 * cli/cli-interp.c: Likewise.
4860 * cli/cli-logging.c: Likewise.
4861 * cli/cli-script.c: Likewise.
4862 * cli/cli-setshow.c: Likewise.
4863 * cli/cli-utils.c: Likewise.
4864 * coffread.c: Likewise.
4865 * common/agent.c: Likewise.
4866 * common/buffer.c: Likewise.
4867 * common/buffer.h: Likewise.
4868 * common/common-utils.c: Likewise.
4869 * common/filestuff.c: Likewise.
4870 * common/filestuff.c: Likewise.
4871 * common/format.c: Likewise.
4872 * common/print-utils.c: Likewise.
4873 * common/rsp-low.c: Likewise.
4874 * common/signals.c: Likewise.
4875 * common/vec.h: Likewise.
4876 * common/xml-utils.c: Likewise.
4877 * core-regset.c: Likewise.
4878 * corefile.c: Likewise.
4879 * corelow.c: Likewise.
4880 * cp-abi.c: Likewise.
4881 * cp-name-parser.y: Likewise.
4882 * cp-support.c: Likewise.
4883 * cp-valprint.c: Likewise.
4884 * cris-tdep.c: Likewise.
4885 * d-exp.y: Likewise.
4886 * darwin-nat.c: Likewise.
4887 * dbxread.c: Likewise.
4888 * dcache.c: Likewise.
4889 * demangle.c: Likewise.
4890 * dicos-tdep.c: Likewise.
4891 * disasm.c: Likewise.
4892 * doublest.c: Likewise.
4893 * dsrec.c: Likewise.
4894 * dummy-frame.c: Likewise.
4895 * dwarf2-frame.c: Likewise.
4896 * dwarf2loc.c: Likewise.
4897 * dwarf2read.c: Likewise.
4898 * elfread.c: Likewise.
4899 * environ.c: Likewise.
4901 * event-loop.c: Likewise.
4902 * exceptions.c: Likewise.
4904 * expprint.c: Likewise.
4905 * f-exp.y: Likewise.
4906 * f-lang.c: Likewise.
4907 * f-typeprint.c: Likewise.
4908 * f-valprint.c: Likewise.
4909 * fbsd-nat.c: Likewise.
4910 * findcmd.c: Likewise.
4911 * findvar.c: Likewise.
4912 * fork-child.c: Likewise.
4913 * frame.c: Likewise.
4914 * frv-linux-tdep.c: Likewise.
4915 * frv-tdep.c: Likewise.
4917 * gdb_bfd.c: Likewise.
4918 * gdbarch.c: Likewise.
4919 * gdbarch.sh: Likewise.
4920 * gdbtypes.c: Likewise.
4921 * gnu-nat.c: Likewise.
4922 * gnu-v2-abi.c: Likewise.
4923 * gnu-v3-abi.c: Likewise.
4924 * go-exp.y: Likewise.
4925 * go-lang.c: Likewise.
4926 * go32-nat.c: Likewise.
4927 * guile/guile.c: Likewise.
4928 * guile/scm-auto-load.c: Likewise.
4929 * hppa-hpux-tdep.c: Likewise.
4930 * hppa-linux-nat.c: Likewise.
4931 * hppanbsd-tdep.c: Likewise.
4932 * hppaobsd-tdep.c: Likewise.
4933 * i386-cygwin-tdep.c: Likewise.
4934 * i386-dicos-tdep.c: Likewise.
4935 * i386-linux-tdep.c: Likewise.
4936 * i386-nto-tdep.c: Likewise.
4937 * i386-sol2-tdep.c: Likewise.
4938 * i386-tdep.c: Likewise.
4939 * i386bsd-tdep.c: Likewise.
4940 * i386gnu-nat.c: Likewise.
4941 * i386nbsd-tdep.c: Likewise.
4942 * i386obsd-tdep.c: Likewise.
4943 * i387-tdep.c: Likewise.
4944 * ia64-libunwind-tdep.c: Likewise.
4945 * ia64-linux-nat.c: Likewise.
4946 * inf-child.c: Likewise.
4947 * inf-ptrace.c: Likewise.
4948 * inf-ttrace.c: Likewise.
4949 * infcall.c: Likewise.
4950 * infcmd.c: Likewise.
4951 * inflow.c: Likewise.
4952 * infrun.c: Likewise.
4953 * interps.c: Likewise.
4954 * iq2000-tdep.c: Likewise.
4955 * irix5-nat.c: Likewise.
4956 * jv-exp.y: Likewise.
4957 * jv-lang.c: Likewise.
4958 * jv-typeprint.c: Likewise.
4959 * jv-valprint.c: Likewise.
4960 * language.c: Likewise.
4961 * linux-fork.c: Likewise.
4962 * linux-nat.c: Likewise.
4963 * lm32-tdep.c: Likewise.
4964 * m2-exp.y: Likewise.
4965 * m2-typeprint.c: Likewise.
4966 * m32c-tdep.c: Likewise.
4967 * m32r-linux-nat.c: Likewise.
4968 * m32r-linux-tdep.c: Likewise.
4969 * m32r-rom.c: Likewise.
4970 * m32r-tdep.c: Likewise.
4971 * m68hc11-tdep.c: Likewise.
4972 * m68k-tdep.c: Likewise.
4973 * m68kbsd-tdep.c: Likewise.
4974 * m68klinux-nat.c: Likewise.
4975 * m68klinux-tdep.c: Likewise.
4976 * m88k-tdep.c: Likewise.
4977 * machoread.c: Likewise.
4978 * macrocmd.c: Likewise.
4980 * mdebugread.c: Likewise.
4981 * mem-break.c: Likewise.
4982 * memattr.c: Likewise.
4983 * memory-map.c: Likewise.
4984 * mep-tdep.c: Likewise.
4985 * mi/mi-cmd-break.c: Likewise.
4986 * mi/mi-cmd-disas.c: Likewise.
4987 * mi/mi-cmd-env.c: Likewise.
4988 * mi/mi-cmd-stack.c: Likewise.
4989 * mi/mi-cmd-var.c: Likewise.
4990 * mi/mi-cmds.c: Likewise.
4991 * mi/mi-console.c: Likewise.
4992 * mi/mi-getopt.c: Likewise.
4993 * mi/mi-interp.c: Likewise.
4994 * mi/mi-main.c: Likewise.
4995 * mi/mi-parse.c: Likewise.
4996 * microblaze-rom.c: Likewise.
4997 * microblaze-tdep.c: Likewise.
4998 * mingw-hdep.c: Likewise.
4999 * minidebug.c: Likewise.
5000 * minsyms.c: Likewise.
5001 * mips-irix-tdep.c: Likewise.
5002 * mips-linux-tdep.c: Likewise.
5003 * mips-tdep.c: Likewise.
5004 * mips64obsd-tdep.c: Likewise.
5005 * mipsnbsd-tdep.c: Likewise.
5006 * mipsread.c: Likewise.
5007 * mn10300-linux-tdep.c: Likewise.
5008 * mn10300-tdep.c: Likewise.
5009 * monitor.c: Likewise.
5010 * moxie-tdep.c: Likewise.
5011 * mt-tdep.c: Likewise.
5012 * nat/linux-btrace.c: Likewise.
5013 * nat/linux-osdata.c: Likewise.
5014 * nat/linux-procfs.c: Likewise.
5015 * nat/linux-ptrace.c: Likewise.
5016 * nat/linux-waitpid.c: Likewise.
5017 * nbsd-tdep.c: Likewise.
5018 * nios2-linux-tdep.c: Likewise.
5019 * nto-procfs.c: Likewise.
5020 * nto-tdep.c: Likewise.
5021 * objc-lang.c: Likewise.
5022 * objfiles.c: Likewise.
5023 * opencl-lang.c: Likewise.
5024 * osabi.c: Likewise.
5025 * osdata.c: Likewise.
5026 * p-exp.y: Likewise.
5027 * p-lang.c: Likewise.
5028 * p-typeprint.c: Likewise.
5029 * parse.c: Likewise.
5030 * posix-hdep.c: Likewise.
5031 * ppc-linux-nat.c: Likewise.
5032 * ppc-sysv-tdep.c: Likewise.
5033 * ppcfbsd-tdep.c: Likewise.
5034 * ppcnbsd-tdep.c: Likewise.
5035 * ppcobsd-tdep.c: Likewise.
5036 * printcmd.c: Likewise.
5037 * procfs.c: Likewise.
5038 * prologue-value.c: Likewise.
5039 * python/py-auto-load.c: Likewise.
5040 * python/py-gdb-readline.c: Likewise.
5041 * ravenscar-thread.c: Likewise.
5042 * regcache.c: Likewise.
5043 * registry.c: Likewise.
5044 * remote-fileio.c: Likewise.
5045 * remote-m32r-sdi.c: Likewise.
5046 * remote-mips.c: Likewise.
5047 * remote-notif.c: Likewise.
5048 * remote-sim.c: Likewise.
5049 * remote.c: Likewise.
5050 * reverse.c: Likewise.
5051 * rs6000-aix-tdep.c: Likewise.
5052 * ser-base.c: Likewise.
5053 * ser-go32.c: Likewise.
5054 * ser-mingw.c: Likewise.
5055 * ser-pipe.c: Likewise.
5056 * ser-tcp.c: Likewise.
5057 * ser-unix.c: Likewise.
5058 * serial.c: Likewise.
5059 * sh-tdep.c: Likewise.
5060 * sh64-tdep.c: Likewise.
5061 * shnbsd-tdep.c: Likewise.
5063 * sol-thread.c: Likewise.
5064 * solib-dsbt.c: Likewise.
5065 * solib-frv.c: Likewise.
5066 * solib-osf.c: Likewise.
5067 * solib-som.c: Likewise.
5068 * solib-spu.c: Likewise.
5069 * solib-target.c: Likewise.
5070 * solib.c: Likewise.
5071 * somread.c: Likewise.
5072 * source.c: Likewise.
5073 * sparc-nat.c: Likewise.
5074 * sparc-sol2-tdep.c: Likewise.
5075 * sparc-tdep.c: Likewise.
5076 * sparc64-tdep.c: Likewise.
5077 * sparc64fbsd-tdep.c: Likewise.
5078 * sparc64nbsd-tdep.c: Likewise.
5079 * sparcnbsd-tdep.c: Likewise.
5080 * spu-linux-nat.c: Likewise.
5081 * spu-multiarch.c: Likewise.
5082 * spu-tdep.c: Likewise.
5083 * stabsread.c: Likewise.
5084 * stack.c: Likewise.
5085 * std-regs.c: Likewise.
5086 * symfile.c: Likewise.
5087 * symmisc.c: Likewise.
5088 * symtab.c: Likewise.
5089 * target.c: Likewise.
5090 * thread.c: Likewise.
5091 * tilegx-linux-nat.c: Likewise.
5092 * tilegx-tdep.c: Likewise.
5094 * tracepoint.c: Likewise.
5095 * tui/tui-command.c: Likewise.
5096 * tui/tui-data.c: Likewise.
5097 * tui/tui-disasm.c: Likewise.
5098 * tui/tui-file.c: Likewise.
5099 * tui/tui-layout.c: Likewise.
5100 * tui/tui-out.c: Likewise.
5101 * tui/tui-regs.c: Likewise.
5102 * tui/tui-source.c: Likewise.
5103 * tui/tui-stack.c: Likewise.
5104 * tui/tui-win.c: Likewise.
5105 * tui/tui-windata.c: Likewise.
5106 * tui/tui-winsource.c: Likewise.
5107 * typeprint.c: Likewise.
5108 * ui-file.c: Likewise.
5109 * ui-out.c: Likewise.
5110 * user-regs.c: Likewise.
5111 * utils.c: Likewise.
5112 * v850-tdep.c: Likewise.
5113 * valarith.c: Likewise.
5114 * valops.c: Likewise.
5115 * valprint.c: Likewise.
5116 * value.c: Likewise.
5117 * varobj.c: Likewise.
5118 * vax-tdep.c: Likewise.
5119 * vaxnbsd-tdep.c: Likewise.
5120 * vaxobsd-tdep.c: Likewise.
5121 * windows-nat.c: Likewise.
5122 * xcoffread.c: Likewise.
5123 * xml-support.c: Likewise.
5124 * xstormy16-tdep.c: Likewise.
5125 * xtensa-linux-nat.c: Likewise.
5127 2014-08-07 Gary Benson <gbenson@redhat.com>
5129 * common/common-defs.h: Include gdb_assert.h.
5130 * aarch64-tdep.c: Do not include gdb_assert.h.
5131 * addrmap.c: Likewise.
5132 * aix-thread.c: Likewise.
5133 * alpha-linux-tdep.c: Likewise.
5134 * alpha-mdebug-tdep.c: Likewise.
5135 * alphanbsd-tdep.c: Likewise.
5136 * amd64-nat.c: Likewise.
5137 * amd64-tdep.c: Likewise.
5138 * amd64bsd-nat.c: Likewise.
5139 * amd64fbsd-nat.c: Likewise.
5140 * amd64fbsd-tdep.c: Likewise.
5141 * amd64nbsd-nat.c: Likewise.
5142 * amd64nbsd-tdep.c: Likewise.
5143 * amd64obsd-nat.c: Likewise.
5144 * amd64obsd-tdep.c: Likewise.
5145 * arch-utils.c: Likewise.
5146 * arm-tdep.c: Likewise.
5147 * armbsd-tdep.c: Likewise.
5149 * bcache.c: Likewise.
5150 * bfin-tdep.c: Likewise.
5151 * blockframe.c: Likewise.
5152 * breakpoint.c: Likewise.
5153 * bsd-kvm.c: Likewise.
5154 * bsd-uthread.c: Likewise.
5155 * buildsym.c: Likewise.
5156 * c-exp.y: Likewise.
5157 * c-lang.c: Likewise.
5158 * charset.c: Likewise.
5159 * cleanups.c: Likewise.
5160 * cli-out.c: Likewise.
5161 * cli/cli-decode.c: Likewise.
5162 * cli/cli-dump.c: Likewise.
5163 * cli/cli-logging.c: Likewise.
5164 * cli/cli-script.c: Likewise.
5165 * cli/cli-utils.c: Likewise.
5166 * coffread.c: Likewise.
5167 * common/common-utils.c: Likewise.
5168 * common/queue.h: Likewise.
5169 * common/signals.c: Likewise.
5170 * common/vec.h: Likewise.
5171 * complaints.c: Likewise.
5172 * completer.c: Likewise.
5173 * corelow.c: Likewise.
5174 * cp-abi.c: Likewise.
5175 * cp-name-parser.y: Likewise.
5176 * cp-namespace.c: Likewise.
5177 * cp-support.c: Likewise.
5178 * cris-tdep.c: Likewise.
5179 * dbxread.c: Likewise.
5180 * dictionary.c: Likewise.
5181 * doublest.c: Likewise.
5182 * dsrec.c: Likewise.
5183 * dummy-frame.c: Likewise.
5184 * dwarf2-frame-tailcall.c: Likewise.
5185 * dwarf2-frame.c: Likewise.
5186 * dwarf2expr.c: Likewise.
5187 * dwarf2loc.c: Likewise.
5188 * dwarf2read.c: Likewise.
5190 * event-loop.c: Likewise.
5191 * exceptions.c: Likewise.
5192 * expprint.c: Likewise.
5193 * f-valprint.c: Likewise.
5194 * fbsd-nat.c: Likewise.
5195 * findvar.c: Likewise.
5196 * frame-unwind.c: Likewise.
5197 * frame.c: Likewise.
5198 * frv-tdep.c: Likewise.
5199 * gcore.c: Likewise.
5200 * gdb-dlfcn.c: Likewise.
5201 * gdb_bfd.c: Likewise.
5202 * gdbarch.c: Likewise.
5203 * gdbarch.sh: Likewise.
5204 * gdbtypes.c: Likewise.
5205 * gnu-nat.c: Likewise.
5206 * gnu-v3-abi.c: Likewise.
5207 * go-lang.c: Likewise.
5208 * guile/scm-exception.c: Likewise.
5209 * guile/scm-gsmob.c: Likewise.
5210 * guile/scm-lazy-string.c: Likewise.
5211 * guile/scm-math.c: Likewise.
5212 * guile/scm-pretty-print.c: Likewise.
5213 * guile/scm-safe-call.c: Likewise.
5214 * guile/scm-utils.c: Likewise.
5215 * guile/scm-value.c: Likewise.
5216 * h8300-tdep.c: Likewise.
5217 * hppa-hpux-nat.c: Likewise.
5218 * hppa-tdep.c: Likewise.
5219 * hppanbsd-tdep.c: Likewise.
5220 * hppaobsd-tdep.c: Likewise.
5221 * i386-darwin-nat.c: Likewise.
5222 * i386-darwin-tdep.c: Likewise.
5223 * i386-nto-tdep.c: Likewise.
5224 * i386-tdep.c: Likewise.
5225 * i386bsd-nat.c: Likewise.
5226 * i386fbsd-tdep.c: Likewise.
5227 * i386gnu-nat.c: Likewise.
5228 * i386nbsd-tdep.c: Likewise.
5229 * i386obsd-tdep.c: Likewise.
5230 * i387-tdep.c: Likewise.
5231 * ia64-libunwind-tdep.c: Likewise.
5232 * ia64-tdep.c: Likewise.
5233 * inf-ptrace.c: Likewise.
5234 * inf-ttrace.c: Likewise.
5235 * infcall.c: Likewise.
5236 * infcmd.c: Likewise.
5237 * infrun.c: Likewise.
5238 * inline-frame.c: Likewise.
5239 * interps.c: Likewise.
5240 * jv-lang.c: Likewise.
5241 * jv-typeprint.c: Likewise.
5242 * linux-fork.c: Likewise.
5243 * linux-nat.c: Likewise.
5244 * linux-thread-db.c: Likewise.
5245 * m32c-tdep.c: Likewise.
5246 * m32r-linux-nat.c: Likewise.
5247 * m32r-tdep.c: Likewise.
5248 * m68k-tdep.c: Likewise.
5249 * m68kbsd-nat.c: Likewise.
5250 * m68kbsd-tdep.c: Likewise.
5251 * m88k-tdep.c: Likewise.
5252 * machoread.c: Likewise.
5253 * macroexp.c: Likewise.
5254 * macrotab.c: Likewise.
5255 * maint.c: Likewise.
5256 * mdebugread.c: Likewise.
5257 * memory-map.c: Likewise.
5258 * mep-tdep.c: Likewise.
5259 * mi/mi-common.c: Likewise.
5260 * microblaze-tdep.c: Likewise.
5261 * mingw-hdep.c: Likewise.
5262 * mips-linux-nat.c: Likewise.
5263 * mips-linux-tdep.c: Likewise.
5264 * mips-tdep.c: Likewise.
5265 * mips64obsd-tdep.c: Likewise.
5266 * mipsnbsd-tdep.c: Likewise.
5267 * mn10300-linux-tdep.c: Likewise.
5268 * mn10300-tdep.c: Likewise.
5269 * moxie-tdep.c: Likewise.
5270 * mt-tdep.c: Likewise.
5271 * nat/linux-btrace.c: Likewise.
5272 * nat/linux-osdata.c: Likewise.
5273 * nat/linux-ptrace.c: Likewise.
5274 * nat/mips-linux-watch.c: Likewise.
5275 * nios2-linux-tdep.c: Likewise.
5276 * nios2-tdep.c: Likewise.
5277 * objc-lang.c: Likewise.
5278 * objfiles.c: Likewise.
5279 * obsd-nat.c: Likewise.
5280 * opencl-lang.c: Likewise.
5281 * osabi.c: Likewise.
5282 * parse.c: Likewise.
5283 * ppc-linux-nat.c: Likewise.
5284 * ppc-sysv-tdep.c: Likewise.
5285 * ppcfbsd-nat.c: Likewise.
5286 * ppcfbsd-tdep.c: Likewise.
5287 * ppcnbsd-nat.c: Likewise.
5288 * ppcnbsd-tdep.c: Likewise.
5289 * ppcobsd-nat.c: Likewise.
5290 * ppcobsd-tdep.c: Likewise.
5291 * printcmd.c: Likewise.
5292 * procfs.c: Likewise.
5293 * prologue-value.c: Likewise.
5294 * psymtab.c: Likewise.
5295 * python/py-lazy-string.c: Likewise.
5296 * python/py-value.c: Likewise.
5297 * regcache.c: Likewise.
5298 * reggroups.c: Likewise.
5299 * registry.c: Likewise.
5300 * remote-sim.c: Likewise.
5301 * remote.c: Likewise.
5302 * rs6000-aix-tdep.c: Likewise.
5303 * rs6000-tdep.c: Likewise.
5304 * s390-linux-tdep.c: Likewise.
5305 * score-tdep.c: Likewise.
5306 * ser-base.c: Likewise.
5307 * ser-mingw.c: Likewise.
5308 * sh-tdep.c: Likewise.
5309 * sh64-tdep.c: Likewise.
5310 * solib-darwin.c: Likewise.
5311 * solib-spu.c: Likewise.
5312 * solib-svr4.c: Likewise.
5313 * source.c: Likewise.
5314 * sparc-nat.c: Likewise.
5315 * sparc-sol2-tdep.c: Likewise.
5316 * sparc-tdep.c: Likewise.
5317 * sparc64-sol2-tdep.c: Likewise.
5318 * sparc64-tdep.c: Likewise.
5319 * sparc64fbsd-tdep.c: Likewise.
5320 * sparc64nbsd-tdep.c: Likewise.
5321 * sparc64obsd-tdep.c: Likewise.
5322 * sparcnbsd-tdep.c: Likewise.
5323 * sparcobsd-tdep.c: Likewise.
5324 * spu-multiarch.c: Likewise.
5325 * spu-tdep.c: Likewise.
5326 * stabsread.c: Likewise.
5327 * stack.c: Likewise.
5328 * symfile.c: Likewise.
5329 * symtab.c: Likewise.
5330 * target-descriptions.c: Likewise.
5331 * target-memory.c: Likewise.
5332 * target.c: Likewise.
5333 * tic6x-linux-tdep.c: Likewise.
5334 * tic6x-tdep.c: Likewise.
5335 * tilegx-linux-nat.c: Likewise.
5336 * tilegx-tdep.c: Likewise.
5338 * tramp-frame.c: Likewise.
5339 * tui/tui-out.c: Likewise.
5340 * tui/tui-winsource.c: Likewise.
5341 * ui-out.c: Likewise.
5342 * user-regs.c: Likewise.
5343 * utils.c: Likewise.
5344 * v850-tdep.c: Likewise.
5345 * valops.c: Likewise.
5346 * value.c: Likewise.
5347 * varobj.c: Likewise.
5348 * vax-nat.c: Likewise.
5349 * xml-syscall.c: Likewise.
5350 * xml-tdesc.c: Likewise.
5351 * xstormy16-tdep.c: Likewise.
5352 * xtensa-linux-nat.c: Likewise.
5353 * xtensa-tdep.c: Likewise.
5355 2014-08-07 Gary Benson <gbenson@redhat.com>
5357 * common/common-defs.h: Include common-utils.h.
5358 * defs.h: Do not include common-utils.h.
5359 * common/gdb_assert.h: Likewise.
5360 * darwin-nat.h: Likewise.
5361 * nat/linux-btrace.c: Likewise.
5362 * target/waitstatus.h: Likewise.
5364 2014-08-07 Gary Benson <gbenson@redhat.com>
5366 * common/common-defs.h: Include ptid.h.
5367 * defs.h: Do not include ptid.h.
5368 * inferior.h: Likewise.
5369 * infrun.h: Likewise.
5370 * nat/linux-btrace.h: Likewise.
5371 * nat/linux-osdata.h: Likewise.
5372 * target/waitstatus.h: Likewise.
5374 2014-08-07 Gary Benson <gbenson@redhat.com>
5376 * common/common-defs.h: Include gdb_locale.h.
5377 * defs.h: Do not include gdb_locale.h.
5379 2014-08-07 Gary Benson <gbenson@redhat.com>
5381 * common/common-defs.h: Include gdb/signals.h.
5382 * defs.h: Do not include gdb/signals.h.
5384 2014-08-07 Gary Benson <gbenson@redhat.com>
5386 * common/common-defs.h: Include pathmax.h.
5387 * defs.h: Do not include pathmax.h.
5389 2014-08-07 Gary Benson <gbenson@redhat.com>
5391 * common/common-defs.h: Include libiberty.h.
5392 * defs.h: Do not include libiberty.h.
5393 * common/queue.h: Likewise.
5394 * cp-name-parser.y: Likewise.
5395 * mi/mi-cmd-catch.c: Likewise.
5396 * python/python.c: Likewise.
5398 2014-08-07 Gary Benson <gbenson@redhat.com>
5400 * common/common-defs.h: Include ansidecl.h.
5401 * defs.h: Do not include ansidecl.h.
5402 * common/buffer.h: Likewise.
5403 * common/common-utils.h: Likewise.
5405 2014-08-07 Gary Benson <gbenson@redhat.com>
5407 * common/common-defs.h: Include stddef.h.
5408 * defs.h: Do not include stddef.h.
5409 * common/common-utils.h: Likewise.
5410 * amd64fbsd-nat.c: Likewise.
5411 * bcache.c: Likewise.
5412 * charset.c: Likewise.
5413 * common/buffer.h: Likewise.
5414 * common/vec.h: Likewise.
5415 * i386bsd-nat.c: Likewise.
5416 * nat/linux-btrace.h: Likewise.
5417 * ppcfbsd-nat.c: Likewise.
5418 * ppcnbsd-tdep.h: Likewise.
5419 * ppcobsd-nat.c: Likewise.
5420 * ppcobsd-tdep.h: Likewise.
5421 * python/py-gdb-readline.c: Likewise.
5423 2014-08-07 Gary Benson <gbenson@redhat.com>
5425 * common/common-defs.h: Include stdarg.h.
5426 * defs.h: Do not include stdarg.h.
5427 * ada-lang.c: Likewise.
5428 * common/common-utils.h: Likewise.
5429 * guile/scm-string.c: Likewise.
5430 * guile/scm-utils.c: Likewise.
5431 * m32c-tdep.c: Likewise.
5433 2014-08-07 Gary Benson <gbenson@redhat.com>
5435 * common/common-defs.h: Include stdlib.h.
5436 * defs.h: Do not include stdlib.h.
5437 * addrmap.c: Likewise.
5438 * bcache.c: Likewise.
5439 * common/buffer.c: Likewise.
5440 * common/common-utils.c: Likewise.
5441 * cp-name-parser.y: Likewise.
5442 * go32-nat.c: Likewise.
5443 * mn10300-linux-tdep.c: Likewise.
5444 * nat/linux-osdata.c: Likewise.
5445 * tui/tui.c: Likewise.
5446 * windows-nat.c: Likewise.
5448 2014-08-07 Gary Benson <gbenson@redhat.com>
5450 * common/common-defs.h: Include stdio.h.
5451 * defs.h: Do not include stdio.h.
5452 * ada-lang.c: Likewise.
5453 * common/buffer.c: Likewise.
5454 * common/common-utils.c: Likewise.
5455 * cp-name-parser.y: Likewise.
5456 * gnu-nat.c: Likewise.
5457 * go32-nat.c: Likewise.
5458 * i386gnu-nat.c: Likewise.
5459 * proc-api.c: Likewise.
5460 * proc-events.c: Likewise.
5461 * proc-flags.c: Likewise.
5462 * proc-why.c: Likewise.
5463 * python/python-internal.h: Likewise.
5464 * target-memory.c: Likewise.
5465 * tui/tui-io.c: Likewise.
5466 * tui/tui.c: Likewise.
5468 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5470 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5471 (scan_dyntag_auxv): Same.
5473 2014-08-06 Yao Qi <yao@codesourcery.com>
5475 * amd64-linux-nat.c: Remove duplicated include
5477 * i386-linux-nat.c: Likewise.
5479 2014-08-06 Yao Qi <yao@codesourcery.com>
5481 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5482 operand" with "Special opcode" in comments.
5484 2014-08-05 Gary Benson <gbenson@redhat.com>
5486 * interps.c (initialize_interps): Remove prototype.
5487 (interpreter_initialized): Remove static global.
5488 (interp_add): Do not call initialize_interps.
5489 (initialize_interps): Remove function.
5491 2014-08-05 Gary Benson <gbenson@redhat.com>
5493 * utils.c (vwarning): Remove spurious va_end.
5495 2014-08-05 Alan Modra <amodra@gmail.com>
5497 * charset.c (convert_between_encodings): Cast result of obstack_base.
5498 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5499 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5500 (read_unwind_info): Use size_t for some locals.
5501 * jit.c (finalize_symtab): Likewise.
5502 * utils.c (hashtab_obstack_allocate): Likewise.
5503 * symmisc.c (print_objfile_statistics): Update format strings.
5505 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5508 (Changes in GDB 7.8): ... here.
5510 2014-08-04 Tom Tromey <tromey@redhat.com>
5512 * target.c (set_targetdebug): New function.
5513 (initialize_targets): Pass set_targetdebug when creating "set
5516 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5518 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5519 if detecting a variable-sized field that is not the last field.
5520 Fix struct type length computation.
5522 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5524 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5527 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5529 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5530 Remove "+ 8" offset in computation of CHAIN_VMA.
5532 2014-07-31 Doug Evans <dje@google.com>
5534 * inflow.c (child_terminal_inferior): Add comment.
5535 (child_terminal_ours_for_output): Add comment.
5536 (child_terminal_ours): Add comment.
5537 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5538 (linux_nat_terminal_ours): Add comment.
5540 2014-07-31 Gary Benson <gbenson@redhat.com>
5542 * common/btrace-common.h: Do not include defs.h or server.h.
5543 * nat/mips-linux-watch.h: Likewise.
5544 * gdb-dlfcn.h: Do not include defs.h.
5545 * tracefile.h: Likewise.
5547 2014-07-30 Roland McGrath <mcgrathr@google.com>
5549 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5551 2014-07-30 Tom Tromey <tromey@redhat.com>
5553 * bsd-kvm.c (bsd_kvm_open): Constify.
5554 * corelow.c (core_open): Constify.
5555 * ctf.c (ctf_open): Constify.
5556 * dbug-rom.c (dbug_open): Constify.
5557 * exec.c (exec_open): Constify.
5558 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5559 * microblaze-rom.c (picobug_open): Constify.
5560 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5562 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5563 * record-btrace.c (record_btrace_open): Constify.
5564 * record-full.c (record_full_core_open_1, record_full_open_1)
5565 (record_full_open): Constify.
5566 * remote-m32r-sdi.c (m32r_open): Constify.
5567 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5568 (rockhopper_open, lsi_open): Constify.
5569 * remote-sim.c (gdbsim_open): Constify.
5570 * remote.c (remote_open, extended_remote_open, remote_open_1):
5572 * target.h (struct target_ops) <to_open>: Make "arg" const.
5573 * tracefile-tfile.c (tfile_open): Constify.
5575 2014-07-30 Tom Tromey <tromey@redhat.com>
5577 * breakpoint.c (map_breakpoint_numbers): Update.
5578 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5579 (get_number_const): New function.
5580 (get_number): Rewrite using get_number_const.
5581 (init_number_or_range): Make "string" const.
5582 (number_is_in_list): Make "list" const.
5583 * cli/cli-utils.h (get_number_const): Declare.
5584 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5585 (init_number_or_range, number_is_in_list): Update.
5586 * printcmd.c (map_display_numbers): Update.
5587 * value.c (value_from_history_ref): Constify.
5588 * value.h (value_from_history_ref): Update.
5590 2014-07-30 Tom Tromey <tromey@redhat.com>
5592 * corefile.c (hook_type, call_extra_exec_file_hooks)
5593 (specify_exec_file_hook): Constify.
5594 * exec.c (exec_file_attach): Make "filename" const.
5595 * gdbcore.h (deprecated_exec_file_display_hook)
5596 (specify_exec_file_hook, exec_file_attach): Constify.
5597 * main.c (captured_main): Use catch_command_errors_const.
5599 2014-07-30 Tom Tromey <tromey@redhat.com>
5601 * target.c (open_target): New function.
5602 (add_target_with_completer, add_deprecated_target_alias): Use
5603 set_cmd_sfunc, set_cmd_context.
5604 (debug_to_open): Remove.
5605 (setup_target_debug): Update.
5607 2014-07-30 Yao Qi <yao@codesourcery.com>
5609 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5611 * parse.c (exp_iterate): Update comments.
5613 2014-07-30 Gary Benson <gbenson@redhat.com>
5615 * common/common-defs.h: New file.
5616 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5617 * defs.h: Include common-defs.h.
5618 Do not include config.h or build-gnulib/config.h.
5620 2014-07-30 Gary Benson <gbenson@redhat.com>
5622 * common/common-utils.h: Do not include config.h.
5623 * nat/linux-btrace.h: Likewise.
5625 2014-07-30 Gary Benson <gbenson@redhat.com>
5627 * btrace.c: Include defs.h.
5628 * common/ptid.c: Include defs.h or server.h as appropriate.
5629 * nat/mips-linux-watch.c: Likewise.
5631 2014-07-29 Tom Tromey <tromey@redhat.com>
5633 * target.c (target_is_pushed): Simplify.
5635 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5639 2014-07-29 Yao Qi <yao@codesourcery.com>
5642 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5644 2014-07-28 Doug Evans <xdje42@gmail.com>
5647 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5648 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5651 2014-07-28 Will Newton <will.newton@linaro.org>
5653 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5654 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5655 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5656 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5657 (THUMB2_EABI_SYSCALL): Likewise.
5658 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5660 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5661 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5663 2014-07-27 Doug Evans <xdje42@gmail.com>
5665 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5667 2014-07-27 Doug Evans <xdje42@gmail.com>
5669 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5671 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5672 Doug Evans <xdje42@gmail.com>
5675 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5676 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5677 * configure.ac: Try to use guild to compile an scm file, if it fails
5678 then disable guile support.
5679 * configure: Regenerate.
5680 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5682 (GUILE_COMPILED_FILES): New variable.
5683 (GUILE_FILES) Update.
5684 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5685 (stamp-guile): Compile scm files.
5686 * guile/guile.c (boot_guile_support): New function.
5687 (standard_throw_args_p): New function.
5688 (print_standard_throw_error, print_throw_error): New functions.
5689 (handle_boot_error): New function.
5690 (initialize_scheme_side): Rewrite to call boot_guile_support.
5691 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5692 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5694 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5695 Doug Evans <xdje42@gmail.com>
5698 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5699 * guile/lib/gdb/support.scm: New file.
5700 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5701 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5703 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5705 (%assert-type): Ditto, and renamed to assert-type.
5706 (%exception-print-style): Delete.
5708 2014-07-26 Doug Evans <xdje42@gmail.com>
5711 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5712 * configure: Regenerate.
5713 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5715 (PYTHON_FILES): New variable.
5716 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5717 (GUILE_FILES): New variable.
5718 (stamp-python, install-python, uninstall-python): Handle empty
5720 (stamp-guile, install-guile, uninstall-guile): Ditto.
5722 2014-07-26 Doug Evans <xdje42@gmail.com>
5725 * guile/lib/gdb.scm (pretty-printers): Export.
5726 (set-pretty-printers!): Export.
5727 * guile/lib/gdb/printing.scm (gdb module): Update.
5728 (prepend-pretty-printer!, append-pretty-printer!): Update.
5729 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5730 (pretty_printer_list_var): Delete.
5731 (pretty_printer_list): New static global.
5732 (gdbscm_pretty_printers): New function.
5733 (gdbscm_set_pretty_printers_x): New function.
5734 (ppscm_find_pretty_printer_from_gdb): Update.
5735 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5736 (gdbscm_initialize_pretty_printers): Update.
5738 2014-07-26 Doug Evans <xdje42@gmail.com>
5741 * configure.ac: Add check for header gc/gc.h.
5742 Add check for function setenv.
5743 * configure: Regenerate.
5744 * config.in: Regenerate.
5745 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5747 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5749 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5750 variation in gdbarch matching.
5752 2014-07-25 Tom Tromey <tromey@redhat.com>
5754 * exec.c (using_exec_ops): Remove.
5755 (exec_close_1): Update. Remove extraneous block, reindent.
5756 (add_target_sections): Use target_is_pushed.
5758 2014-07-25 Pedro Alves <palves@redhat.com>
5760 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5761 * monitor.c (monitor_create_inferior): Likewise.
5762 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5763 * remote-sim.c (gdbsim_create_inferior): Likewise.
5764 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5765 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5766 * windows-nat.c (do_initial_windows_stuff): Likewise.
5768 2014-07-25 Pedro Alves <palves@redhat.com>
5770 * NEWS: Mention signal passing and "signal" command changes.
5771 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5773 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5775 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5776 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5777 (jump_command): Adjust clear_proceed_status call.
5778 (signal_command): Warn if other thread that are resumed have
5779 signals that will be delivered. Adjust clear_proceed_status call.
5780 (until_next_command, finish_command)
5781 (proceed_after_attach_callback, attach_command_post_wait)
5782 (attach_command): Adjust clear_proceed_status call.
5783 * infrun.c (proceed_after_vfork_done): Likewise.
5784 (proceed_after_attach_callback): Adjust comment.
5785 (clear_proceed_status_thread): Clear stop_signal if not in pass
5787 (clear_proceed_status_callback): Delete.
5788 (clear_proceed_status): New 'step' parameter. Only clear the
5789 proceed status of threads the command being prepared is about to
5791 (proceed): If passed in an explicit signal, override stop_signal
5792 with it. Don't pass the last stop signal to the thread we're
5794 (init_wait_for_inferior): Adjust clear_proceed_status call.
5795 (switch_back_to_stepped_thread): Clear the signal if it should not
5797 * infrun.h (clear_proceed_status): New 'step' parameter.
5798 (user_visible_resume_ptid): Add comment.
5799 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5800 signal is in pass state.
5801 * remote.c (append_pending_thread_resumptions): Likewise.
5802 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5804 2014-07-25 Tom Tromey <tromey@redhat.com>
5806 * target.h (target_stopped_data_address)
5807 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5810 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5812 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5814 (avr_pointer_to_address): Likewise.
5816 2014-07-24 Tom Tromey <tromey@redhat.com>
5818 * monitor.c (compile_pattern): Update.
5819 * target.h (struct target_ops) <to_shortname, to_longname,
5822 2014-07-24 Tom Tromey <tromey@redhat.com>
5824 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5825 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5826 (add_info_alias, add_com): Make "doc" const.
5827 (print_doc_line): Make "str" const.
5828 (delete_cmd): Update.
5829 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5830 (print_doc_line): Update.
5831 * cli/cli-script.c (document_command): Update.
5832 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5833 (add_com, add_info, add_info_alias): Update.
5834 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5835 * python/py-cmd.c (cmdpy_destroyer): Update.
5837 2014-07-24 Tom Tromey <tromey@redhat.com>
5839 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5840 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5841 (help_cmd_list): Constify.
5842 (lookup_cmd): Update.
5843 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5845 (help_cmd_list, apropos_cmd): Update.
5846 * cli/cli-script.c (show_user): Update.
5847 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5848 * cli/cli-setshow.h (cmd_show_list): Update.
5849 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5850 (cmd_show_list): Update.
5851 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5852 * python/py-cmd.c (cmdpy_destroyer): Update.
5854 2014-07-24 Tom Tromey <tromey@redhat.com>
5856 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5857 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5859 * command.h (deprecate_cmd): Update.
5860 * maint.c (maintenance_do_deprecate): Add casts.
5862 2014-07-24 Tom Tromey <tromey@redhat.com>
5864 * cli/cli-decode.c (help_cmd): Make parameter "const".
5865 * cli/cli-decode.h (help_cmd): Update.
5867 2014-07-24 Tom Tromey <tromey@redhat.com>
5869 * stack.c (up_silently_base, down_silently_base): Make argument
5872 2014-07-24 Tom Tromey <tromey@redhat.com>
5874 * solib.c (solib_add): Make "pattern" const.
5875 * solib.h (solib_add): Update.
5877 2014-07-24 Tom Tromey <tromey@redhat.com>
5879 * remote.c (remote_serial_open, print_packet, putpkt)
5880 (putpkt_binary): Constify.
5881 * remote.h (putpkt): Update.
5883 2014-07-24 Tom Tromey <tromey@redhat.com>
5885 * monitor.c (monitor_open): Make "args" const.
5886 * monitor.h (monitor_open): Update.
5888 2014-07-24 Tom Tromey <tromey@redhat.com>
5890 * maint.c (match_bfd_flags): Make "string" const.
5891 (print_bfd_section_info): Remove casts.
5892 (print_objfile_section_info): Make "string" const.
5894 2014-07-24 Tom Tromey <tromey@redhat.com>
5896 * inf-child.c (inf_child_open_target): Make "arg" const.
5897 * inf-child.h (inf_child_open_target): Update.
5899 2014-07-24 Tom Tromey <tromey@redhat.com>
5901 * environ.c (unset_in_environ): Make "var" const.
5902 * environ.h (unset_in_environ): Update.
5904 2014-07-24 Tom Tromey <tromey@redhat.com>
5906 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5908 (scan_filename_with_cleanup): Likewise.
5909 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5910 Make arguments const.
5911 (restore_command): Update.
5913 2014-07-24 Pedro Alves <palves@redhat.com>
5915 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5917 2014-07-24 Tom Tromey <tromey@redhat.com>
5918 Gary Benson <gbenson@redhat.com>
5920 * nat/linux-ptrace.c (additional_flags): New global.
5921 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5922 additional_flags; don't check GDBSERVER.
5923 (linux_ptrace_set_additional_flags): New function.
5924 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5926 * linux-nat.c (_initialize_linux_nat): Call
5927 linux_ptrace_set_additional_flags.
5929 2014-07-24 Tom Tromey <tromey@redhat.com>
5931 * make-target-delegates (munge_type, write_debugmethod): New
5933 (debug_names): New global.
5934 ($TARGET_DEBUG_PRINTER): New global.
5935 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5937 Write debug methods. Generate init_debug_target.
5938 * target-debug.h: New file.
5939 * target-delegates.c: Rebuild.
5940 * target.c: Include target-debug.h.
5941 (debug_target): Hoist definition.
5942 (target_kill, target_get_section_table, target_memory_map)
5943 (target_flash_erase, target_flash_done, target_detach)
5944 (target_disconnect, target_wait, target_resume)
5945 (target_pass_signals, target_program_signals, target_follow_fork)
5946 (target_mourn_inferior, target_search_memory)
5947 (target_thread_address_space, target_close)
5948 (target_find_new_threads, target_core_of_thread)
5949 (target_verify_memory, target_insert_mask_watchpoint)
5950 (target_remove_mask_watchpoint): Remove targetdebug code.
5951 (debug_to_post_attach, debug_to_prepare_to_store)
5952 (debug_to_files_info, debug_to_insert_breakpoint)
5953 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5954 (debug_to_region_ok_for_hw_watchpoint)
5955 (debug_to_can_accel_watchpoint_condition)
5956 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5957 (debug_to_watchpoint_addr_within_range)
5958 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5959 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5960 (debug_to_terminal_init, debug_to_terminal_inferior)
5961 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5962 (debug_to_terminal_save_ours, debug_to_terminal_info)
5963 (debug_to_load, debug_to_post_startup_inferior)
5964 (debug_to_insert_fork_catchpoint)
5965 (debug_to_remove_fork_catchpoint)
5966 (debug_to_insert_vfork_catchpoint)
5967 (debug_to_remove_vfork_catchpoint)
5968 (debug_to_insert_exec_catchpoint)
5969 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5970 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5971 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5972 (setup_target_debug): Call init_debug_target.
5973 * target.h (TARGET_DEBUG_PRINTER): New macro.
5974 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5975 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5977 2014-07-24 Gary Benson <gbenson@redhat.com>
5979 * exceptions.h (throw_vfatal): Renamed to...
5980 (throw_vquit): New declaration.
5981 (throw_quit): Likewise.
5982 * exceptions.c (throw_vfatal): Renamed to...
5983 (throw_vquit): New function.
5984 (throw_quit): Likewise.
5985 (throw_error): Call throw_verror rather than throw_it.
5986 * utils.h (vfatal): Removed.
5988 * utils.c (vfatal): Removed.
5990 (internal_verror): Replaced call to fatal with call to throw_quit.
5991 (quit): Replaced calls to fatal with calls to throw_quit.
5993 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5995 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5998 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6000 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6001 less than zero in conditional expression.
6003 2014-07-23 Tom Tromey <tromey@redhat.com>
6005 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6006 ($INTRO_PART): Don't match whitespace.
6007 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6009 ($METHOD): Add $METHOD_TRAILER.
6011 (scan_target_h): New sub.
6012 Change main loop not to collect state.
6013 * target-delegates.c: Rebuild.
6015 2014-07-23 Gary Benson <gbenson@redhat.com>
6017 * cp-support.c (gdb_demangle): Fix build on systems without
6020 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6022 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6023 for reference entry value target data value.
6025 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6027 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6028 value_available_contents_eq.
6030 2014-07-22 Pedro Alves <palves@redhat.com>
6032 * value.c (allocate_optimized_out_value): Don't mark value as
6035 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6037 * MAINTAINERS (Write After Approval): Update my email address.
6039 2014-07-20 Doug Evans <dje@google.com>
6042 * remote.c (putpkt_binary): Add text to error message.
6044 2014-07-20 Yao Qi <yao@codesourcery.com>
6046 * eval.c: Remove "Chill" from comments.
6047 * gdbtypes.h: Likewise.
6048 * symtab.h: Likewise.
6050 2014-07-20 Yao Qi <yao@codesourcery.com>
6052 * std-operator.def: Update comments to TERNOP_SLICE.
6054 2014-07-20 Yao Qi <yao@codesourcery.com>
6056 * std-operator.def: Remove BINOP_RANGE.
6057 * breakpoint.c (watchpoint_exp_is_const): Update.
6058 * expprint.c (dump_subexp_body_standard): Likewise.
6059 * eval.c (init_array_element): Remove dead code.
6060 (evaluate_subexp_standard): Likewise.
6062 2014-07-20 Yao Qi <yao@codesourcery.com>
6064 * std-operator.def: Remove BINOP_IN.
6065 * breakpoint.c (watchpoint_exp_is_const): Update.
6066 * eval.c (evaluate_subexp_standard): Likewise.
6067 * expprint.c (dump_subexp_body_standard): Likewise.
6069 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6071 * microblaze-tdep.c (microblaze_register_names): Add
6072 the rshr and rslr register names.
6073 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6074 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6075 Use of tdesc_numbered_register. Use of
6076 microblaze_register_g_packet_guesses. Use of
6077 tdesc_use_registers. Use of set_gdbarch_register_type.
6078 (microblaze_register_g_packet_guesses): New.
6079 * microblaze-tdep.h (microblaze_reg_num): Add
6080 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6081 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6082 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6083 * features/microblaze-core.xml: New file.
6084 * features/microblaze-stack-protect.xml: New file.
6085 * features/microblaze-with-stack-protect.c: New file.
6086 * features/microblaze-with-stack-protect.xml: New file.
6087 * features/microblaze.xml: New file.
6088 * features/microblaze.c: New file.
6089 * features/Makefile (microblaze-with-stack-protect): Add
6090 microblaze-with-stack-protect microblaze and microblaze-expedite.
6091 * regformats/microblaze-with-stack-protect.dat: New file.
6092 * regformats/microblaze.dat: New file.
6093 * doc/gdb.texinfo (MicroBlaze Features): Added.
6095 2014-07-18 Tom Tromey <tromey@redhat.com>
6097 * exec.c (exec_ops): Now static.
6098 * exec.h (exec_ops): Don't declare.
6100 2014-07-18 Tom Tromey <tromey@redhat.com>
6102 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6103 to find_target_beneath.
6104 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6105 find_target_beneath.
6106 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6108 2014-07-18 Tom Tromey <tromey@redhat.com>
6111 * utils.c (quit): Use target_supports_terminal_ours.
6112 * target.h (target_supports_terminal_ours): Declare.
6113 * target.c (target_supports_delete_record): Don't check
6114 to_delete_record against NULL.
6115 (target_supports_terminal_ours): New function.
6117 2014-07-18 Tom Tromey <tromey@redhat.com>
6120 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6121 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6122 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6123 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6124 * windows-nat.c (windows_xfer_partial): Always delegate.
6125 * record-btrace.c (record_btrace_xfer_partial): Simplify
6127 (record_btrace_fetch_registers, record_btrace_store_registers)
6128 (record_btrace_prepare_to_store, record_btrace_resume)
6129 (record_btrace_wait, record_btrace_find_new_threads)
6130 (record_btrace_thread_alive): Likewise.
6131 * procfs.c (procfs_xfer_partial): Always delegate.
6132 * corelow.c (core_xfer_partial): Always delegate.
6133 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6135 2014-07-18 Tom Tromey <tromey@redhat.com>
6137 * exec.c (exec_make_note_section): Move earlier.
6139 2014-07-17 Doug Evans <dje@google.com>
6142 * maint.c (count_symtabs_and_blocks): Handle NULL
6143 current_program_space.
6144 (report_command_stats): Check global enabled flag in addition to
6145 recorded enabled flag.
6146 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6148 2014-07-16 Pedro Alves <palves@redhat.com>
6150 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6152 2014-07-16 Tom Tromey <tromey@redhat.com>
6154 * target.h (struct target_ops) <to_delete_record>: Reformat
6157 2014-07-16 Tom Tromey <tromey@redhat.com>
6159 * target-delegates.c: Rebuild.
6161 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6163 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6164 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6165 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6166 (avr_pointer_to_address): Likewise.
6167 (avr_address_class_type_flags): New function.
6168 (avr_address_class_type_flags_to_name): Likewise.
6169 (avr_address_class_name_to_type_flags): Likewise.
6170 (avr_gdbarch_init): Set address_class_type_flags,
6171 address_class_type_flags_to_name and
6172 address_class_name_to_type_flags.
6174 2014-07-15 Pedro Alves <palves@redhat.com>
6176 * linux-nat.c (kill_callback): Save errno and work with saved
6179 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6181 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6183 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6185 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6186 breakpoint support correctly.
6188 2014-07-14 Pedro Alves <palves@redhat.com>
6190 * utils.c (prompt_for_continue): Call target_terminal_ours.
6192 2014-07-14 Pedro Alves <palves@redhat.com>
6194 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6195 catch_errors. Don't re-enable stdin or notify observers where,
6197 (fetch_inferior_event_wrapper): Delete.
6199 2014-07-14 Pedro Alves <palves@redhat.com>
6202 * top.c: Include "inf-loop.h".
6203 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6205 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6207 (gdb_readline_wrapper): Store whether the target is async, and
6210 2014-07-14 Pedro Alves <palves@redhat.com>
6213 * top.c (gdb_readline_wrapper_line): Tweak comment.
6214 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6215 the input handler callback.
6217 2014-07-14 Pedro Alves <palves@redhat.com>
6220 * main.c: Include event-top.h.
6221 (handle_command_errors): New function.
6222 (catch_command_errors, catch_command_errors_const): Use it.
6224 2014-07-14 Pedro Alves <palves@redhat.com>
6226 * exceptions.c (catch_command_errors, catch_command_errors_const):
6228 * exceptions.h (catch_command_errors_ftype)
6229 (catch_command_errors_const_ftype): Moved to main.c.
6230 (catch_command_errors, catch_command_errors_const): Delete
6232 * main.c (catch_command_errors_ftype)
6233 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6234 (catch_command_errors, catch_command_errors_const)): Moved here
6235 from exceptions.c and make static.
6237 2014-07-14 Pedro Alves <palves@redhat.com>
6239 * exceptions.c (print_any_exception): Delete.
6240 (catch_exceptions_with_msg): Use exception_print instead of
6241 print_any_exception.
6242 (catch_errors): Use exception_fprintf instead of
6243 print_any_exception.
6244 (catch_command_errors, catch_command_errors_const): Use
6245 exception_print instead of print_any_exception.
6247 2014-07-14 Pedro Alves <palves@redhat.com>
6249 * infcall.c (run_inferior_call): Set 'sync_execution' while
6250 running the inferior call.
6252 2014-07-14 Pedro Alves <palves@redhat.com>
6254 * value.c (value_contents_equal): Delete function.
6255 * value.h (value_contents_equal): Delete declaration.
6257 2014-07-14 Tom Tromey <tromey@redhat.com>
6260 * gdbtypes.c (is_dynamic_type_internal): New function, from
6262 (is_dynamic_type): Rewrite.
6263 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6264 (resolve_dynamic_struct): Likewise.
6265 (resolve_dynamic_type_internal): New function, from
6266 resolve_dynamic_type.
6267 (resolve_dynamic_type): Rewrite.
6269 2014-07-14 Tom Tromey <tromey@redhat.com>
6271 * target.c (target_require_runnable): Also check record_stratum.
6274 2014-07-11 Yao Qi <yao@codesourcery.com>
6276 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6277 thumb_instruction_restores_sp return true.
6279 2014-07-11 Yao Qi <yao@codesourcery.com>
6281 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6282 (thumb_in_function_epilogue_p): Call
6283 thumb_instruction_restores_sp.
6285 2014-07-11 Yao Qi <yao@codesourcery.com>
6287 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6289 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6291 2014-07-11 Gary Benson <gbenson@redhat.com>
6293 * amd64-linux-nat.c (gdbcore.h): Remove include.
6294 (regset.h): Likewise.
6295 (nat/linux-btrace.h): Likewise.
6296 (btrace.h): Likewise.
6297 (gdb_assert.h): Likewise.
6298 (string.h): Likewise.
6299 (sys/uio.h): Likewise.
6300 (sys/debugreg.h): Likewise.
6301 (sys/syscall.h): Likewise.
6302 (sys/procfs.h): Likewise.
6303 (sys/user.h): Likewise.
6304 (asm/ptrace.h): Likewise.
6305 (i386-nat.h): Likewise.
6306 * i386-linux-nat.c (i386-nat.h): Likewise.
6307 (regset.h): Likewise.
6308 (target.h): Likewise.
6309 (linux-nat.h): Likewise.
6310 (nat/linux-btrace.h): Likewise.
6311 (btrace.h): Likewise.
6312 (gdb_assert.h): Likewise.
6313 (string.h): Likewise.
6314 (sys/uio.h): Likewise.
6315 (sys/user.h): Likewise.
6316 (sys/procfs.h): Likewise.
6317 (sys/reg.h): Likewise.
6318 (sys/debugreg.h): Likewise.
6319 (ORIG_EAX): Remove definition.
6321 2014-07-11 Gary Benson <gbenson@redhat.com>
6323 * i386-linux-nat.h: New file.
6324 * x86-linux-nat.h: Likewise.
6325 * x86-linux-nat.c: Likewise.
6326 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6327 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6328 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6329 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6330 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6331 (PTRACE_SETREGSET): Likewise.
6332 (arch_lwp_info): Now in x86-linux-nat.c.
6333 (have_ptrace_getregset): Now in x86-linux-nat.h.
6334 (x86_linux_dr_get): Now in x86-linux-nat.c.
6335 (x86_linux_dr_set): Likewise.
6336 (x86_linux_dr_get_addr): Likewise.
6337 (x86_linux_dr_get_control): Likewise.
6338 (x86_linux_dr_get_status): Likewise.
6339 (update_debug_registers_callback): Likewise.
6340 (x86_linux_dr_set_control): Likewise.
6341 (x86_linux_dr_set_addr): Likewise.
6342 (x86_linux_prepare_to_resume): Likewise.
6343 (x86_linux_new_thread): Likewise.
6344 (x86_linux_new_fork): Likewise.
6345 (x86_linux_get_thread_area): Likewise.
6346 (super_post_startup_inferior): Likewise.
6347 (x86_linux_child_post_startup_inferior): Likewise.
6348 (AMD64_LINUX_USER64_CS): Likewise.
6349 (AMD64_LINUX_X32_DS): Likewise.
6350 (x86_linux_read_description): Likewise.
6351 (x86_linux_enable_btrace): Likewise.
6352 (x86_linux_disable_btrace): Likewise.
6353 (x86_linux_teardown_btrace): Likewise.
6354 (x86_linux_read_btrace): Likewise.
6355 (x86_linux_create_target): Likewise.
6356 (x86_linux_add_target): Likewise.
6357 * i386-linux-nat.c (x86-linux-nat.h): New include.
6358 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6359 (PTRACE_SETREGSET): Likewise.
6360 (arch_lwp_info): Now in x86-linux-nat.c.
6361 (have_ptrace_getregset): Now in x86-linux-nat.h.
6362 (x86_linux_dr_get): Now in x86-linux-nat.c.
6363 (x86_linux_dr_set): Likewise.
6364 (x86_linux_dr_get_addr): Likewise.
6365 (x86_linux_dr_get_control): Likewise.
6366 (x86_linux_dr_get_status): Likewise.
6367 (update_debug_registers_callback): Likewise.
6368 (x86_linux_dr_set_control): Likewise.
6369 (x86_linux_dr_set_addr): Likewise.
6370 (x86_linux_prepare_to_resume): Likewise.
6371 (x86_linux_new_thread): Likewise.
6372 (x86_linux_new_fork): Likewise.
6373 (x86_linux_get_thread_area): Likewise.
6374 (super_post_startup_inferior): Likewise.
6375 (x86_linux_child_post_startup_inferior): Likewise.
6376 (AMD64_LINUX_USER64_CS): Likewise.
6377 (AMD64_LINUX_X32_DS): Likewise.
6378 (x86_linux_read_description): Likewise.
6379 (x86_linux_enable_btrace): Likewise.
6380 (x86_linux_disable_btrace): Likewise.
6381 (x86_linux_teardown_btrace): Likewise.
6382 (x86_linux_read_btrace): Likewise.
6383 (x86_linux_create_target): Likewise.
6384 (x86_linux_add_target): Likewise.
6386 2014-07-11 Gary Benson <gbenson@redhat.com>
6388 * amd64-linux-nat.c: Comment and whitespace changes.
6389 * i386-linux-nat.c: Comment and whitespace changes.
6391 2014-07-11 Gary Benson <gbenson@redhat.com>
6393 * amd64-linux-nat.c (x86_linux_create_target): New function.
6394 (x86_linux_add_target): Likewise.
6395 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6396 * i386-linux-nat.c (x86_linux_create_target): New function.
6397 (x86_linux_add_target): Likewise.
6398 (_initialize_i386_linux_nat): Delegate to the above new functions.
6400 2014-07-11 Gary Benson <gbenson@redhat.com>
6402 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6403 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6404 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6405 (ps_get_thread_area): Delegate to the above.
6407 2014-07-11 Gary Benson <gbenson@redhat.com>
6409 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6410 x86_linux_read_description. All uses updated. amd64-specific
6411 code conditionalized. Conditionalized i386-specific code added.
6412 Redundant cast removed.
6413 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6414 x86_linux_read_description. All uses updated. i386-specific
6415 code conditionalized. Conditionalized amd64-specific code added.
6416 One sizeof replaced with the actual type it is describing.
6418 2014-07-11 Gary Benson <gbenson@redhat.com>
6420 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6421 x86_linux_dr_get. All uses updated.
6422 (amd64_linux_dr_set): Renamed to
6423 x86_linux_dr_set. All uses updated.
6424 (amd64_linux_dr_get_addr): Renamed to
6425 x86_linux_dr_get_addr. All uses updated.
6426 (amd64_linux_dr_get_control): Renamed to
6427 x86_linux_dr_get_control. All uses updated.
6428 (amd64_linux_dr_get_status): Renamed to
6429 x86_linux_dr_get_status. All uses updated.
6430 (amd64_linux_dr_set_control): Renamed to
6431 x86_linux_dr_set_control. All uses updated.
6432 (amd64_linux_dr_set_addr): Renamed to
6433 x86_linux_dr_set_addr. All uses updated.
6434 (amd64_linux_prepare_to_resume): Renamed to
6435 x86_linux_prepare_to_resume. All uses updated.
6436 (amd64_linux_new_thread): Renamed to
6437 x86_linux_new_thread. All uses updated.
6438 (amd64_linux_new_fork): Renamed to
6439 x86_linux_new_fork. All uses updated.
6440 (amd64_linux_child_post_startup_inferior): Renamed to
6441 x86_linux_child_post_startup_inferior. All uses updated.
6442 (amd64_linux_enable_btrace): Renamed to
6443 x86_linux_enable_btrace. All uses updated.
6444 (amd64_linux_disable_btrace): Renamed to
6445 x86_linux_disable_btrace. All uses updated.
6446 (amd64_linux_teardown_btrace): Renamed to
6447 x86_linux_teardown_btrace. All uses updated.
6448 (amd64_linux_read_btrace): Renamed to
6449 x86_linux_read_btrace. All uses updated.
6450 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6451 x86_linux_dr_get. All uses updated.
6452 (i386_linux_dr_set): Renamed to
6453 x86_linux_dr_set. All uses updated.
6454 (i386_linux_dr_get_addr): Renamed to
6455 x86_linux_dr_get_addr. All uses updated.
6456 (i386_linux_dr_get_control): Renamed to
6457 x86_linux_dr_get_control. All uses updated.
6458 (i386_linux_dr_get_status): Renamed to
6459 x86_linux_dr_get_status. All uses updated.
6460 (i386_linux_dr_set_control): Renamed to
6461 x86_linux_dr_set_control. All uses updated.
6462 (i386_linux_dr_set_addr): Renamed to
6463 x86_linux_dr_set_addr. All uses updated.
6464 (i386_linux_prepare_to_resume): Renamed to
6465 x86_linux_prepare_to_resume. All uses updated.
6466 (i386_linux_new_thread): Renamed to
6467 x86_linux_new_thread. All uses updated.
6468 (i386_linux_new_fork): Renamed to
6469 x86_linux_new_fork. All uses updated.
6470 (i386_linux_child_post_startup_inferior): Renamed to
6471 x86_linux_child_post_startup_inferior. All uses updated.
6472 (i386_linux_enable_btrace): Renamed to
6473 x86_linux_enable_btrace. All uses updated.
6474 (i386_linux_disable_btrace): Renamed to
6475 x86_linux_disable_btrace. All uses updated.
6476 (i386_linux_teardown_btrace): Renamed to
6477 x86_linux_teardown_btrace. All uses updated.
6478 (i386_linux_read_btrace): Renamed to
6479 x86_linux_read_btrace. All uses updated.
6481 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6483 * remote.c (extended_remote_post_attach): New function.
6484 (init_extended_remote_ops): Install it as to_post_attach method.
6486 2014-07-09 Pedro Alves <palves@redhat.com>
6488 * infcmd.c (attach_command_post_wait): Don't call
6489 target_terminal_inferior here.
6490 (attach_command): Call it here instead.
6492 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6494 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6496 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6497 from varobj.c, with additional checks.
6498 (c_varobj_ops): Fill in is_path_expr_parent field.
6499 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6500 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6502 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6504 (varobj_default_is_path_expr_parent): New function.
6505 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6506 (varobj_default_is_path_expr_parent): Declare new function.
6508 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6510 * infcmd.c (finish_backward): Turn internal error into normal error.
6512 2014-07-07 Pedro Alves <palves@redhat.com>
6515 * remote.c (async_handle_remote_sigint)
6516 (async_handle_remote_sigint_twice): Call
6517 gdb_call_async_signal_handler instead of
6518 mark_async_signal_handler.
6520 2014-07-07 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_info_record): Remove.
6524 * record.c (info_record_command): Unconditionally call
6526 * target.h (struct target_ops) <to_info_record>: Use
6527 TARGET_DEFAULT_IGNORE.
6528 (target_info_record): Remove.
6530 2014-07-07 Tom Tromey <tromey@redhat.com>
6532 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6533 TARGET_DEFAULT_NORETURN.
6534 * target.c (generic_tls_error): New function.
6535 (target_translate_tls_address): Don't search target stack.
6536 * target-delegates.c: Rebuild.
6537 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6539 * linux-thread-db.c (thread_db_get_thread_local_address):
6540 Unconditionally call beneath target.
6542 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6544 * cli/cli-logging.c (pop_output_files): Assign targerr to
6547 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6549 * MAINTAINERS (Write After Approval): Update my email address.
6551 2014-07-02 Gary Benson <gbenson@redhat.com>
6553 * proc-service.c (ps_xfer_memory): Update comment.
6554 (ps_pstop): Remove unused function.
6555 (ps_pcontinue): Likewise.
6556 (ps_lstop): Likewise.
6557 (ps_lcontinue): Likewise.
6558 (ps_lgetxregsize): Likewise.
6559 (ps_lgetxregs): Likewise.
6560 (ps_lsetxregs): Likewise.
6561 (ps_plog): Likewise.
6562 (ps_ptread): Likewise.
6563 (ps_ptwrite): Likewise.
6565 2014-07-01 Mark Wielaard <mjw@redhat.com>
6567 * dwarf2read.c (add_array_cv_type): New function.
6568 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6569 (read_tag_volatile_type): Likewise.
6571 2014-07-01 Tom Tromey <tromey@redhat.com>
6573 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6574 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6575 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6576 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6577 * command.h (cmd_cfunc_ftype): Move earlier.
6578 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6579 (add_com, add_info): Use cmd_cfunc_ftype.
6581 2014-06-30 Tom Tromey <tromey@redhat.com>
6583 * symtab.c (operator_chars): Make parameters and return type
6585 (file_matches): Make "files" const.
6586 (struct search_symbols_data) <files>: Now const.
6587 (search_symbols): Make "regexp" and "files" parameters const.
6589 (symtab_symbol_info): Remove cast.
6590 (rbreak_command): Update.
6591 * symtab.h (search_symbols): Update.
6593 2014-06-27 Yao Qi <yao@codesourcery.com>
6595 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6596 Change parameter type to 'struct thread_info *'. Caller
6598 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6600 * dummy-frame.c (struct dummy_frame_id): New.
6601 (dummy_frame_id_eq): New function.
6602 (struct dummy_frame) <id>: Change its type to 'struct
6604 (dummy_frame_push): Add parameter ptid and save it in
6606 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6608 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6610 (lookup_dummy_frame): Change parameter type to 'struct
6611 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6612 instead of frame_id_eq.
6613 (dummy_frame_pop): Add parameter ptid. Callers updated.
6614 Update comments. Compose dummy_frame_id and pass it to
6616 (dummy_frame_discard): Add parameter ptid.
6617 (dummy_frame_sniffer): Compose dummy_frame_id and call
6618 dummy_frame_id_eq instead of frame_id_eq.
6619 (fprint_dummy_frames): Print ptid.
6620 * dummy-frame.h: Remove comments.
6621 (dummy_frame_push): Add ptid in declaration.
6622 (dummy_frame_pop, dummy_frame_discard): Likewise.
6624 2014-06-26 Tom Tromey <tromey@redhat.com>
6626 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6627 * command.h (error_no_arg): Update.
6629 2014-06-26 Tom Tromey <tromey@redhat.com>
6631 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6632 (do_show_command): Make "arg" const.
6633 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6635 2014-06-26 Tom Tromey <tromey@redhat.com>
6637 * record-full.c (record_full_get_bookmark): Make "args" const.
6638 (record_full_goto_bookmark): Make "raw_bookmark" const.
6639 * record.c (record_goto): New function.
6640 (cmd_record_goto): Use it. Now static.
6641 * record.h (record_goto): Declare.
6642 (cmd_record_goto): Remove declaration.
6643 * target-delegates.c: Rebuild.
6644 * target.h (struct target_ops) <to_get_bookmark,
6645 to_goto_bookmark>: Make parameter const.
6647 2014-06-26 Tom Tromey <tromey@redhat.com>
6649 * defs.h (generic_load): Update.
6650 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6651 * monitor.c (monitor_load): Make "args" const.
6652 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6653 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6655 (mips_load): Make "file" const.
6656 * remote-sim.c (gdbsim_load): Make "args" const.
6657 * remote.c (remote_load): Make "name" const.
6658 * symfile.c (generic_load): Make "args" const.
6659 * target-delegates.c: Rebuild.
6660 * target.c (target_load): Make "arg" const.
6661 (debug_to_load): Make "args" const.
6662 * target.h (struct target_ops) <to_load>: Make parameter const.
6663 (target_load): Update.
6665 2014-06-26 Tom Tromey <tromey@redhat.com>
6668 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6669 (dwarf2_physname, read_partial_die)
6670 (guess_partial_die_structure_name, fixup_partial_die)
6671 (guess_full_die_structure_name, anonymous_struct_prefix)
6672 (dwarf2_name): Use per-BFD obstack.
6674 2014-06-26 Yao Qi <yao@codesourcery.com>
6676 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6677 dummyframe and this_id into inner block below.
6679 2014-06-26 Yao Qi <yao@codesourcery.com>
6681 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6682 with "signal_pass[0]" in the initialization of signal_pass.
6684 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6686 * record-btrace.c (record_btrace_generating_corefile)
6687 (record_btrace_prepare_to_generate_core)
6688 (record_btrace_done_generating_core): New.
6689 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6690 (record_btrace_store_registers, record_btrace_prepare_to_store):
6691 Forward request when generating a core file.
6692 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6693 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6694 to_done_generating_core.
6696 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6698 * target.h (target_ops) <to_prepare_to_generate_core>
6699 <to_done_generating_core>: New.
6700 (target_prepare_to_generate_core, target_done_generating_core): New.
6701 * target.c (target_prepare_to_generate_core)
6702 (target_done_generating_core): New.
6703 * target-delegates.c: Regenerate.
6704 * gcore.c: (write_gcore_file): Rename to ...
6705 (write_gcore_file_1): ...this.
6706 (write_gcore_file): Call target_prepare_to_generate_core
6707 and target_done_generating_core.
6709 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6711 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6712 * gcore.c (write_gcore_file): Free memory returned from
6713 make_corefile_notes.
6714 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6715 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6717 2014-06-24 Yao Qi <yao@codesourcery.com>
6719 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6720 (arm_linux_init_abi): Set skip_trampoline_code with
6721 gdbarch_skip_trampoline_code instead of
6722 find_solib_trampoline_target.
6724 2014-06-24 Yao Qi <yao@codesourcery.com>
6726 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6727 arm_skip_bx_reg returns non-zero.
6729 2014-06-24 Yao Qi <yao@codesourcery.com>
6731 * arm-tdep.c (arm_skip_bx_reg): New function.
6732 (arm_skip_stub): Call arm_skip_bx_reg.
6734 2014-06-23 Don Breazeal <donb@codesourcery.com>
6736 * MAINTAINERS: Add myself as write-after-approval maintainer.
6738 2014-06-23 Pedro Alves <palves@redhat.com>
6740 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6741 DR_CONTROL before setting DR0..DR3.
6742 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6743 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6744 bits of DR_CONTROL related to the debug register slot being
6745 disabled. If all slots are vacant, clear local slowdown as well,
6746 and assert DR_CONTROL is 0.
6748 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6750 * python/lib/gdb/command/xmethods.py
6751 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6752 current progspace only if the string "progspace" matches LOCUS_RE.
6754 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6756 Fix --with-system-readline with readline-6.3 patch 5.
6757 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6758 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6761 2014-06-20 Tom Tromey <tromey@redhat.com>
6763 * dwarf2read.c (dw2_get_real_path): Use correct type in
6765 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6767 2014-06-20 Gary Benson <gbenson@redhat.com>
6769 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6770 * common/glibc_thread_db.h: Likewise.
6771 * common/i386-cpuid.h: Likewise.
6772 * common/i386-gcc-cpuid.h: Likewise.
6773 * common/linux-btrace.h: Likewise.
6774 * common/linux-osdata.h: Likewise.
6775 * common/linux-procfs.h: Likewise.
6776 * common/linux-ptrace.h: Likewise.
6777 * common/mips-linux-watch.h: Likewise.
6778 * common/linux-btrace.c: Moved to nat.
6779 * common/linux-osdata.c: Likewise.
6780 * common/linux-procfs.c: Likewise.
6781 * common/linux-ptrace.c: Likewise.
6782 * common/mips-linux-watch.c: Likewise.
6783 * nat/gdb_thread_db.h: Moved from common.
6784 * nat/glibc_thread_db.h: Likewise.
6785 * nat/i386-cpuid.h: Likewise.
6786 * nat/i386-gcc-cpuid.h: Likewise.
6787 * nat/linux-btrace.c: Likewise.
6788 * nat/linux-btrace.h: Likewise.
6789 * nat/linux-osdata.c: Likewise.
6790 * nat/linux-osdata.h: Likewise.
6791 * nat/linux-procfs.c: Likewise.
6792 * nat/linux-procfs.h: Likewise.
6793 * nat/linux-ptrace.c: Likewise.
6794 * nat/linux-ptrace.h: Likewise.
6795 * nat/mips-linux-watch.c: Likewise.
6796 * nat/mips-linux-watch.h: Likewise.
6797 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6798 (object file files): Reordered.
6799 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6800 of glibc_thread_db.h.
6802 2014-06-20 Gary Benson <gbenson@redhat.com>
6804 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6805 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6806 (i386_dr_low): Likewise.
6807 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6808 (i386_dr_low_set_addr): Likewise.
6809 (i386_dr_low_get_addr): Likewise.
6810 (i386_dr_low_can_set_control): Likewise.
6811 (i386_dr_low_set_control): Likewise.
6812 (i386_dr_low_get_control): Likewise.
6813 (i386_dr_low_get_status): Likewise.
6814 (i386_get_debug_register_length): Likewise.
6815 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6816 (i386_dr_low): Likewise.
6817 * nat/i386-dregs.c (i386-low.h): Remove include.
6818 (i386-nat.h): Likewise.
6819 (nat/i386-dregs.h): New include.
6820 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6821 (i386_dr_low_set_addr): Likewise.
6822 (i386_dr_low_get_addr): Likewise.
6823 (i386_dr_low_can_set_control): Likewise.
6824 (i386_dr_low_set_control): Likewise.
6825 (i386_dr_low_get_control): Likewise.
6826 (i386_dr_low_get_status): Likewise.
6827 (i386_get_debug_register_length): Likewise.
6828 (debug_hw_points): Likewise.
6830 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6832 * Makefile.in (SFILES): Add d-exp.y.
6833 (YYFILES): Add d-exp.c.
6834 (YYOBJ): Add d-exp.o.
6835 (local-maintainer-clean): Delete d-exp.c.
6836 * d-exp.y: New file.
6837 * d-lang.h (d_parse): New declaration.
6838 (d_error): New declaration.
6839 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6840 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6841 PREC_ORDER operators.
6842 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6844 2014-06-19 Yao Qi <yao@codesourcery.com>
6846 * gdbthread.h (any_running): Remove the declaration.
6847 * thread.c (any_running): Remove.
6849 2014-06-19 Yao Qi <yao@codesourcery.com>
6851 * gdbthread.h (struct thread_info) <state>: Change its type to
6852 'enum thread_state'. Update comments.
6854 2014-06-19 Pedro Alves <palves@redhat.com>
6856 * gdbthread.h (ALL_THREADS): Delete.
6857 (ALL_NON_EXITED_THREADS): New macro.
6858 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6859 instead of ALL_THREADS.
6860 * infrun.c (find_thread_needs_step_over)
6861 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6862 instead of ALL_THREADS.
6863 * record-btrace.c (record_btrace_open)
6864 (record_btrace_stop_recording, record_btrace_close)
6865 (record_btrace_is_replaying, record_btrace_resume)
6866 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6867 * remote.c (append_pending_thread_resumptions): Likewise.
6868 * thread.c (thread_apply_all_command): Likewise.
6870 2014-06-19 Gary Benson <gbenson@redhat.com>
6872 * i386-nat.c (i386_stopped_by_watchpoint):
6873 Use i386_dr_stopped_by_watchpoint.
6874 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6875 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6877 2014-06-19 Gary Benson <gbenson@redhat.com>
6879 * nat/i386-dregs.c: New file.
6880 * Makefile.in (i386-dregs.o): New rule.
6881 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6882 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6883 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6884 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6885 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6886 * config/i386/go32.mh (NATDEPFILES): Likewise.
6887 * config/i386/linux.mh (NATDEPFILES): Likewise.
6888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6889 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6890 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6891 * i386-nat.h (debug_hw_points): New declaration.
6892 * i386-nat.c (breakpoint.h): Remove include.
6893 (command.h): Likewise.
6894 (target.h): Likewise.
6895 (gdb_assert.h): Likewise.
6896 (debug_hw_points): Made nonstatic.
6897 (debug_printf): Now in i386-dregs.c.
6898 (TARGET_HAS_DR_LEN_8): Likewise.
6899 (DR_CONTROL_SHIFT): Likewise.
6900 (DR_CONTROL_SIZE): Likewise.
6901 (DR_RW_EXECUTE): Likewise.
6902 (DR_RW_WRITE): Likewise.
6903 (DR_RW_READ): Likewise.
6904 (DR_RW_IORW): Likewise.
6905 (DR_LEN_1): Likewise.
6906 (DR_LEN_2): Likewise.
6907 (DR_LEN_4): Likewise.
6908 (DR_LEN_8): Likewise.
6909 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6910 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6911 (DR_ENABLE_SIZE): Likewise.
6912 (DR_LOCAL_SLOWDOWN): Likewise.
6913 (DR_GLOBAL_SLOWDOWN): Likewise.
6914 (DR_CONTROL_RESERVED): Likewise.
6915 (I386_DR_CONTROL_MASK): Likewise.
6916 (I386_DR_VACANT): Likewise.
6917 (I386_DR_LOCAL_ENABLE): Likewise.
6918 (I386_DR_GLOBAL_ENABLE): Likewise.
6919 (I386_DR_DISABLE): Likewise.
6920 (I386_DR_SET_RW_LEN): Likewise.
6921 (I386_DR_GET_RW_LEN): Likewise.
6922 (I386_DR_WATCH_HIT): Likewise.
6923 (i386_wp_op_t): Likewise.
6924 (i386_show_dr): Likewise.
6925 (i386_length_and_rw_bits): Likewise.
6926 (i386_insert_aligned_watchpoint): Likewise.
6927 (i386_remove_aligned_watchpoint): Likewise.
6928 (i386_handle_nonaligned_watchpoint): Likewise.
6929 (i386_update_inferior_debug_regs): Likewise.
6930 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6931 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6932 (i386_region_ok_for_watchpoint):
6933 Use i386_dr_region_ok_for_watchpoint.
6934 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6936 2014-06-19 Gary Benson <gbenson@redhat.com>
6938 * i386-nat.c (i386_insert_hw_breakpoint): Use
6939 i386_insert_watchpoint.
6940 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6942 2014-06-19 Gary Benson <gbenson@redhat.com>
6944 * i386-nat.c (i386_dr_show): Renamed to
6945 i386_show_dr and made static. All uses updated.
6946 (i386_dr_length_and_rw_bits): Renamed to
6947 i386_length_and_rw_bits and made static.
6949 (i386_dr_insert_aligned_watchpoint): Renamed to
6950 i386_insert_aligned_watchpoint and made static.
6952 (i386_dr_remove_aligned_watchpoint): Renamed to
6953 i386_remove_aligned_watchpoint and made static.
6955 (i386_dr_update_inferior_debug_regs): Renamed to
6956 i386_update_inferior_debug_regs and made static.
6958 * nat/i386-dregs.h (i386_dr_show): Removed.
6959 (i386_dr_length_and_rw_bits): Likewise.
6960 (i386_dr_insert_aligned_watchpoint): Likewise.
6961 (i386_dr_remove_aligned_watchpoint): Likewise.
6962 (i386_dr_update_inferior_debug_regs): Likewise.
6964 2014-06-19 Gary Benson <gbenson@redhat.com>
6966 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6967 * configure: Regenerate.
6968 * config.in: Likewise.
6969 * main.c (signal.h): New include.
6970 (setup_alternate_signal_stack): New function.
6971 (captured_main): Call the above.
6972 * cp-support.c (signal.h): New include.
6973 (catch_demangler_crashes): New flag.
6974 (SIGJMP_BUF): New define.
6975 (SIGSETJMP): Likewise.
6976 (SIGLONGJMP): Likewise.
6977 (gdb_demangle_jmp_buf): New static global.
6978 (gdb_demangle_attempt_core_dump): Likewise.
6979 (gdb_demangle_signal_handler): New function.
6980 (gdb_demangle): If catch_demangler_crashes is set, install the
6981 above signal handler before calling bfd_demangle, and restore
6982 the original signal handler afterwards. Display the offending
6983 symbol and call demangler_warning the first time a segmentation
6985 (_initialize_cp_support): New maint set/show command.
6987 2014-06-19 Gary Benson <gbenson@redhat.com>
6989 * utils.h (resource_limit_kind): New enum.
6990 (can_dump_core): New declaration.
6991 (warn_cant_dump_core): Likewise.
6992 (dump_core): Likewise.
6993 * utils.c (dump_core): Made nonstatic. Added new
6994 parameter "limit_kind".
6995 (can_dump_core): Made nonstatic. Moved printing code to...
6996 (warn_cant_dump_core): New function.
6997 (can_dump_core_warn): Likewise.
6998 (internal_vproblem): Replace calls to can_dump_core with
6999 calls to can_dump_core_warn. Supply new argument to each.
7001 2014-06-19 Gary Benson <gbenson@redhat.com>
7003 * utils.h (demangler_vwarning): New declaration.
7004 (demangler_warning): Likewise.
7005 * utils.c (struct internal_problem)
7006 <user_settable_should_quit>: New field.
7007 <user_settable_should_dump_core>: Likewise
7008 (internal_error_problem): Add values for above new fields.
7009 (internal_warning_problem): Likewise.
7010 (demangler_warning_problem): New static global.
7011 (demangler_vwarning): New function.
7012 (demangler_warning): Likewise.
7013 (add_internal_problem_command): Selectively add commands.
7014 (_initialize_utils): New internal problem command.
7015 * maint.c (maintenance_demangler_warning): New function.
7016 (_initialize_maint_cmds): New command.
7018 2014-06-18 Tom Tromey <tromey@redhat.com>
7020 * f-valprint.c (info_common_command_for_block): Update.
7021 * symtab.h (struct general_symbol_info) <common_block>: Now
7024 2014-06-18 Tom Tromey <tromey@redhat.com>
7026 * symtab.h (struct symtab) <blockvector>: Now const.
7027 * ada-lang.c (ada_add_global_exceptions): Update.
7028 * buildsym.c (augment_type_symtab): Update.
7029 * dwarf2read.c (dw2_lookup_symbol): Update.
7030 * jit.c (finalize_symtab): Update.
7031 * jv-lang.c (add_class_symtab_symbol): Update.
7032 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7034 * objfiles.c (objfile_relocate1): Update.
7035 * psymtab.c (lookup_symbol_aux_psymtabs)
7036 (maintenance_check_psymtabs): Update.
7037 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7039 * spu-tdep.c (spu_catch_start): Update.
7040 * symmisc.c (dump_symtab_1): Update.
7041 * symtab.c (lookup_global_symbol_from_objfile)
7042 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7043 (basic_lookup_transparent_type_quick)
7044 (basic_lookup_transparent_type, find_pc_sect_symtab)
7045 (find_pc_sect_line, search_symbols): Update.
7046 * block.c (find_block_in_blockvector): Make "bl" const.
7047 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7049 (blockvector_contains_pc): Make "bv" const.
7050 (block_for_pc_sect): Update.
7051 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7052 (blockvector_contains_pc): Update.
7053 * breakpoint.c (resolve_sal_pc): Update.
7054 * inline-frame.c (block_starting_point_at): Update.
7056 2014-06-18 Tom Tromey <tromey@redhat.com>
7058 * completer.c (complete_line): Make "line_buffer" const.
7059 * completer.h (complete_line): Update.
7061 2014-06-18 Tom Tromey <tromey@redhat.com>
7063 * symtab.c (add_macro_name): Remove unneeded cast.
7065 2014-06-18 Tom Tromey <tromey@redhat.com>
7067 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7068 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7070 2014-06-18 Tom Tromey <tromey@redhat.com>
7072 * probe.c (info_probes_for_ops): Make "arg" const.
7073 * probe.h (info_probes_for_ops): Update.
7075 2014-06-18 Tom Tromey <tromey@redhat.com>
7077 * varobj.c (varobj_create): Update.
7078 * valops.c (value_of_this): Update.
7079 * tracepoint.c (add_local_symbols, scope_info): Update.
7080 * symtab.h (struct general_symbol_info) <block>: Now const.
7081 * symtab.c (skip_prologue_sal)
7082 (default_make_symbol_completion_list_break_on)
7083 (skip_prologue_using_sal): Update.
7084 * stack.h (iterate_over_block_locals)
7085 (iterate_over_block_local_vars): Update.
7086 * stack.c (print_frame_args): Update.
7087 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7089 (get_selected_block): Make return type const.
7090 * python/py-frame.c (frapy_block): Update.
7091 * python/py-block.c (gdbpy_block_for_pc): Update.
7092 * p-exp.y (%union) <bval>: Now const.
7093 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7094 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7095 * m2-exp.y (%union) <bval>: Now const.
7096 * linespec.c (get_current_search_block): Make return type const.
7097 (create_sals_line_offset, find_label_symbols): Update.
7098 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7100 (block_starting_point_at): Make "block" const.
7101 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7102 (check_exception_resume): Update.
7103 * guile/scm-frame.c (gdbscm_frame_block): Update.
7104 * guile/scm-block.c (gdbscm_lookup_block): Update.
7105 * frame.h (get_frame_block): Update.
7106 (get_selected_block): Make return type const.
7107 * frame.c (frame_id_inner): Update.
7108 * f-valprint.c (info_common_command_for_block)
7109 (info_common_command): Update.
7110 * dwarf2loc.c (dwarf2_find_location_expression)
7111 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7112 (locexpr_describe_location_piece): Update.
7113 * c-exp.y (%union) <bval>: Now const.
7114 * breakpoint.c (resolve_sal_pc): Update.
7115 * blockframe.c (get_frame_block):Make return type const.
7116 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7117 (block_innermost_frame): Update.
7118 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7119 (block_for_pc, block_for_pc_sect): Update.
7120 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7122 (block_for_pc_sect, block_for_pc): Make return type const.
7123 * ax-gdb.c (gen_expr): Update.
7124 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7125 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7126 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7127 (ada_read_var_value): Update.
7128 * ada-exp.y (struct name_info) <block>: Now const.
7130 (block_lookup): Constify.
7132 2014-06-18 Gary Benson <gbenson@redhat.com>
7134 * nat/i386-dregs.h: New file.
7135 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7136 * i386-nat.h (i386-dregs.h): New include.
7137 (DR_FIRSTADDR): Now in i386-dregs.h.
7138 (DR_LASTADDR): Likewise.
7139 (DR_NADDR): Likewise.
7140 (DR_STATUS): Likewise.
7141 (DR_CONTROL): Likewise.
7142 (i386_debug_reg_state): Likewise.
7143 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7145 2014-06-18 Don Breazeal <donb@codesourcery.com>
7147 * breakpoint.c (set_longjmp_breakpoint): Call
7148 momentary_breakpoint_from_master with additional argument.
7149 (set_longjmp_breakpoint_for_call_dummy): Call
7150 momentary_breakpoint_from_master with additional argument.
7151 (set_std_terminate_breakpoint): Call
7152 momentary_breakpoint_from_master with additional argument.
7153 (momentary_breakpoint_from_master): Add argument to function
7154 definition and use it to initialize structure member flag.
7155 (clone_momentary_breakpoint): Call
7156 momentary_breakpoint_from_master with additional argument.
7157 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7158 member flags set in momentary_breakpoint_from_master.
7160 2014-06-18 Gary Benson <gbenson@redhat.com>
7162 * i386-nat.c (i386_show_dr): Renamed to
7163 i386_dr_show and made nonstatic. All uses updated.
7164 (i386_length_and_rw_bits): Renamed to
7165 i386_dr_length_and_rw_bits and made nonstatic.
7167 (i386_insert_aligned_watchpoint): Renamed to
7168 i386_dr_insert_aligned_watchpoint and made nonstatic.
7170 (i386_remove_aligned_watchpoint): Renamed to
7171 i386_dr_remove_aligned_watchpoint and made nonstatic.
7173 (i386_update_inferior_debug_regs): Renamed to
7174 i386_dr_update_inferior_debug_regs and made nonstatic.
7177 2014-06-18 Gary Benson <gbenson@redhat.com>
7179 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7180 (i386_dr_low_can_set_control): Likewise.
7181 (i386_dr_low_set_addr): Likewise.
7182 (i386_dr_low_set_control): Likewise.
7183 (i386_dr_low_get_addr): Likewise.
7184 (i386_dr_low_get_status): Likewise.
7185 (i386_dr_low_get_control): Likewise.
7186 (i386_insert_aligned_watchpoint): Use new macros.
7187 (i386_update_inferior_debug_regs): Likewise.
7188 (i386_stopped_data_address): Likewise.
7190 2014-06-18 Gary Benson <gbenson@redhat.com>
7192 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7193 New parameter. All uses updated.
7195 2014-06-18 Gary Benson <gbenson@redhat.com>
7197 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7200 2014-06-18 Gary Benson <gbenson@redhat.com>
7202 * i386-nat.c (debug_printf): New macro.
7203 (i386_get_debug_register_length): Likewise.
7204 (TARGET_HAS_DR_LEN_8): Use above macro.
7205 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7206 and printf_unfiltered. Use phex to format values.
7208 2014-06-18 Gary Benson <gbenson@redhat.com>
7210 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7213 2014-06-18 Gary Benson <gbenson@redhat.com>
7215 * i386-nat.c: Comment changes.
7217 2014-06-18 Gary Benson <gbenson@redhat.com>
7219 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7221 2014-06-18 Gary Benson <gbenson@redhat.com>
7223 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7224 (i386_insert_aligned_watchpoint): Likewise.
7225 (i386_remove_aligned_watchpoint): Likewise.
7226 (i386_handle_nonaligned_watchpoint): Likewise.
7228 2014-06-18 Gary Benson <gbenson@redhat.com>
7230 * i386-nat.c: Whitespace changes.
7232 2014-06-17 Samuel Bronson <naesten@gmail.com>
7234 * MAINTAINERS: Update Roland McGrath's email address.
7235 Thanks to Sergio Durigan Junior for pointing out that he left
7236 Red Hat a while ago, and giving me a current address.
7238 2014-06-17 Tom Tromey <tromey@redhat.com>
7240 * utils.h (savestring): Remove declaration.
7242 2014-06-17 Tom Tromey <tromey@redhat.com>
7244 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7246 2014-06-16 Keith Seitz <keiths@redhat.com>
7249 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7250 to update the varobj if inferior_ptid is null_ptid.
7252 2014-06-16 Tom Tromey <tromey@redhat.com>
7254 * target.h (struct target_ops) <to_info_proc>: Make parameter
7256 (target_info_proc): Update.
7257 * target.c (target_info_proc): Make "args" const.
7258 * procfs.c (procfs_info_proc): Update.
7259 * linux-tdep.c (linux_info_proc): Update.
7260 (linux_core_info_proc_mappings): Make "args" const.
7261 (linux_core_info_proc): Update.
7262 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7263 * gdbarch.c: Rebuild.
7264 * gdbarch.h: Rebuild.
7265 * corelow.c (core_info_proc): Update.
7267 2014-06-16 Tom Tromey <tromey@redhat.com>
7269 * target.h (struct target_ops) <to_disconnect>: Make parameter
7271 (target_disconnect): Update.
7272 * target.c (target_disconnect): Make "args" const.
7273 * target-delegates.c: Rebuild.
7274 * remote.c (remote_disconnect): Update.
7275 * record.h (record_disconnect): Update.
7276 * record.c (record_disconnect): Update.
7277 * inf-child.c (inf_child_disconnect): Update.
7279 2014-06-16 Tom Tromey <tromey@redhat.com>
7281 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7282 * target.c (debug_to_rcmd, default_rcmd): Update.
7283 * target-delegates.c: Rebuild.
7284 * remote.c (remote_rcmd): Update.
7285 * monitor.c (monitor_rcmd): Update.
7287 2014-06-16 Pedro Alves <palves@redhat.com>
7289 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7290 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7291 have OBJF_SHARED set.
7292 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7293 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7294 instead of OBJF_USERLOADED.
7295 * objfiles.h (OBJF_SHARED): Update comment.
7296 (userloaded_objfile_contains_address_p): Rename to ...
7297 (shared_objfile_contains_address_p): ... this, and update
7299 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7301 (remove_symbol_file_command): Skip objfiles that don't have
7304 2014-06-16 Tom Tromey <tromey@redhat.com>
7306 * minsyms.h (prim_record_minimal_symbol)
7307 (prim_record_minimal_symbol_and_info): Update comments.
7309 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7311 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7312 or --without-guile, according to how GDB was built.
7314 2014-06-13 Tom Tromey <tromey@redhat.com>
7316 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7318 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7320 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7322 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7323 help_list.Pass all_commands, not -1, to help_list.
7324 * cli/cli-dump.c (dump_command, append_command)
7325 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7326 (binary_dump_command, binary_append_command): Pass all_commands,
7327 not -1, to help_list.
7328 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7330 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7332 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7334 * top.c (set_history): Pass all_commands, not -1, to help_list.
7335 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7336 all_commands, not -1, to help_list.
7337 * symfile.c (overlay_command): Pass all_commands, not -1, to
7339 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7341 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7343 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7345 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7346 not -1, to help_list.
7347 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7348 not -1, to help_list.
7349 * maint.c (maintenance_command, maintenance_info_command)
7350 (maintenance_print_command, maintenance_set_cmd): Pass
7351 all_commands, not -1, to help_list.
7352 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7354 * language.c (set_check): Pass all_commands, not -1, to help_list.
7355 * infcmd.c (unset_command): Pass all_commands, not -1, to
7357 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7359 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7361 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7363 * breakpoint.c (save_command): Pass all_commands, not -1, to
7365 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7366 all_commands, not -1, to help_list.
7368 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7370 * regcache.c (struct register_to_invalidate): New structure.
7371 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7373 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7375 2014-06-12 Yao Qi <yao@codesourcery.com>
7377 * varobj.c (varobj_get_num_children): Call
7378 varobj_is_dynamic_p.
7379 (varobj_list_children): Likewise.
7380 (varobj_update): Likewise. Update comments.
7382 2014-06-12 Yao Qi <yao@codesourcery.com>
7384 * varobj.c (varobj_pretty_printed_p): Rename to ...
7385 (varobj_is_dynamic_p): ... this. New function.
7386 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7387 (varobj_is_dynamic_p): Declare.
7388 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7389 (mi_print_value_p, varobj_update_one): Likewise.
7391 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7392 Yao Qi <yao@codesourcery.com>
7394 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7395 (varobj_get_iterator): Wrap up code for pretty-printer by
7396 "#if HAVE_PYTHON" and "#endif".
7397 (update_dynamic_varobj_children): Likewise.
7399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7400 Yao Qi <yao@codesourcery.com>
7402 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7403 gdb_python_initialized is false. Move some code from varobj.c.
7404 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7405 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7406 (struct varobj_item): Moved to varobj-iter.h".
7407 (varobj_clear_saved_item): New function.
7408 (update_dynamic_varobj_children): Move python-related code to
7410 (free_variable): Call varobj_clear_saved_item and
7413 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7414 Yao Qi <yao@codesourcery.com>
7416 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7417 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7418 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7419 (py-varobj.o): New rule.
7420 * python/py-varobj.c: New file.
7421 * python/python-internal.h (py_varobj_get_iterator): Declare.
7422 * varobj-iter.h: New file.
7423 * varobj.c: Include "varobj-iter.h"
7424 (struct varobj) <child_iter>: Change its type from "PyObject *"
7425 to "struct varobj_iter *".
7426 <saved_item>: Likewise.
7427 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7428 [HAVE_PYTHON] (varobj_get_iterator): New function.
7429 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7430 python-specific code to python/py-varobj.c.
7431 (install_visualizer): Call varobj_iter_delete instead of
7433 * varobj.h (varobj_ensure_python_env): Declare.
7435 2014-06-12 Yao Qi <yao@codesourcery.com>
7437 * varobj.c (struct varobj_item): New structure.
7438 (create_child_with_value): Update declaration.
7439 (varobj_add_child): Replace arguments 'name' and 'value' with
7440 'item'. All callers updated.
7441 (install_dynamic_child): Likewise.
7442 (update_dynamic_varobj_children): Likewise.
7443 (varobj_add_child): Likewise.
7444 (create_child_with_value): Likewise.
7446 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7448 * NEWS: Create a new section for the next release branch.
7449 Rename the section of the current branch, now that it has
7452 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7454 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7455 * version.in: Bump version to 7.8.50.DATE-cvs.
7457 2014-06-11 Pedro Alves <palves@redhat.com>
7460 * ser-mingw.c (net_windows_socket_check_pending): New function.
7461 (net_windows_select_thread): Ignore spurious wakeups. Use
7462 net_windows_socket_check_pending.
7463 (net_windows_wait_handle): Check for pending events with
7464 ioctlsocket, through net_windows_socket_check_pending, instead of
7465 checking the socket's event.
7467 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7469 * python/python-internal.h (gdb_PyObject_GetAttrString)
7470 (gdb_PyObject_HasAttrString): New inline function definitions.
7471 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7472 char * of the second argument to PyObject_GetAttrString.
7474 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7476 * serial.c (serial_write): Fix index of character to be printed
7477 in call to serial_logchar when serial debug traces are enabled.
7479 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7481 * gdbtypes (resolve_dynamic_range): Add function description.
7483 2014-06-09 Pedro Alves <palves@redhat.com>
7485 * linux-nat.c (linux_child_follow_fork): Initialize status with
7486 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7487 inner block. Only pass the signal to PTRACE_DETACH if in pass
7490 2014-06-09 Gary Benson <gbenson@redhat.com>
7492 * common/signals.c (gdb_signal_from_host): Reorder to separate
7493 the always-available ANSI-standard signals from the signals that
7495 (do_gdb_signal_to_host): Likewise.
7496 * proc-events.c (signal_table): Likewise.
7498 2014-06-08 Hui Zhu <hui@codesourcery.com>
7500 * common/linux-ptrace.c (linux_disable_event_reporting): New
7502 * common/linux-ptrace.h (linux_disable_event_reporting): New
7504 * linux-nat.c (linux_child_follow_fork): Do a single step before
7507 2014-06-07 Keith Seitz <keiths@redhat.com>
7511 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7512 from symbol_matches_domain in symtab.c. All local callers
7513 of symbol_matches_domain updated.
7514 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7515 search STRUCT_DOMAIN.
7516 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7517 independently. standard_lookup will do that automatically.
7518 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7520 (cp_lookup_symbol_in_namespace): Likewise.
7521 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7522 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7523 may return a STRUCT_DOMAIN match.
7524 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7525 * cp-support.c: Include language.h.
7526 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7528 * psymtab.c (match_partial_symbol): Compare the requested
7529 domain with the symbol's domain directly.
7530 (lookup_partial_symbol): Likewise.
7531 * symtab.c (lookup_symbol_in_language): Explain when/why
7532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7533 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7534 appropriate languages.
7535 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7536 and moved to ada-lang.c
7537 (lookup_block_symbol): Explain that this function only returns
7538 symbol matching the requested DOMAIN.
7539 Compare the requested domain with the symbol's domain directly.
7540 (iterate_over_symbols): Compare the requested domain with the
7541 symbol's domain directly.
7542 * symtab.h (symbol_matches_domain): Remove.
7544 2014-06-06 Doug Evans <xdje42@gmail.com>
7546 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7547 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7548 (gdbscm_guile_version_is_at_least): Declare.
7549 (gdbscm_scm_string_to_int): Declare.
7550 * guile/guile.c (gdbscm_guile_major_version): New global.
7551 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7552 (guile_datadir): New static global.
7553 (gdbscm_guile_data_directory): New function.
7554 (initialize_scheme_side): Update.
7555 (misc_guile_functions): Add guile-data-directory.
7556 (initialize_gdb_module): Fetch guile version number.
7557 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7558 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7559 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7560 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7562 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7563 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7564 * guile/scm-value.c (gdbscm_value_to_string): Only call
7565 scm_port_conversion_strategy if Guile version >= 2.0.6.
7567 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7569 * main.c (print_gdb_help): Add -q and --silent.
7571 2014-06-06 Gary Benson <gbenson@redhat.com>
7573 * common/signals.c: Remove preprocessor conditionals for
7574 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7575 SIGSEGV and SIGTERM.
7576 * proc-events.c: Likewise.
7578 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7580 * symfile.c (symfile_free_objfile): Remove restriction to
7582 * symfile-mem.c (symbol_file_add_from_memory): Call
7583 add_target_sections_of_objfile.
7585 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7587 * guile/scm-value.c (gdbscm_history_append_x): Use
7588 'vlscm_get_value_smob_arg_unsafe' instead of
7589 'vlscm_scm_to_value'.
7591 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7594 * utils.c (printchar): Don't escape at all if quoter is NUL.
7595 Update function documentation to clarify effect of parameter
7597 * remote.c (escape_buffer): Pass '\\' as the quoter to
7598 fputstrn_unfiltered.
7599 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7600 generate the output.
7601 (mi_solib_unloaded): Same.
7603 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7605 * development.sh: Delete.
7606 * Makefile.in (config.status): Adjust dependency on development.sh.
7607 * configure.ac: Adjust development.sh source call.
7608 * configure: Regenerate.
7610 2014-06-04 Doug Evans <xdje42@gmail.com>
7612 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7613 is_scheme_bkpt, spec.
7614 (bpscm_make_breakpoint_smob): Initialize new members.
7615 (gdbscm_create_breakpoint_x): Split into two ...
7616 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7617 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7618 (scheme_function breakpoint_functions): Update.
7619 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7620 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7621 register-breakpoint!.
7623 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7626 * mem-break.c (z_type_supported): Return zero if
7627 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7629 2014-06-04 Tom Tromey <tromey@redhat.com>
7631 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7632 value_from_contents_and_address_unresolved.
7633 (ada_template_to_fixed_record_type_1): Likewise.
7634 (ada_which_variant_applies): Likewise.
7635 * value.h (value_from_contents_and_address_unresolved): Declare.
7636 * value.c (value_from_contents_and_address_unresolved): New
7638 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7639 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7640 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7642 2014-06-04 Tom Tromey <tromey@redhat.com>
7644 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7646 2014-06-04 Tom Tromey <tromey@redhat.com>
7648 * procfs.c (procfs_attach): Make "args" const.
7649 * windows-nat.c (windows_attach): Make "args" const.
7650 * nto-procfs.c (procfs_attach): Make "args" const.
7651 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7652 * go32-nat.c (go32_attach): Make "args" const.
7653 * gnu-nat.c (gnu_attach): Make "args" const.
7654 * darwin-nat.c (darwin_attach): Make "args" const.
7655 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7656 * linux-nat.c (linux_nat_attach): Make "args" const.
7657 * remote.c (extended_remote_attach_1, extended_remote_attach):
7659 * target.h (struct target_ops) <to_attach>: Make "args" const.
7660 (find_default_attach): Likewise.
7661 * utils.c (parse_pid_to_attach): Make "args" const.
7662 * utils.h (parse_pid_to_attach): Update.
7664 2014-06-04 Tom Tromey <tromey@redhat.com>
7666 * target-delegates.c: Rebuild.
7667 * target.c (default_thread_address_space): New function.
7668 (target_thread_address_space): Simplify.
7669 * target.h (struct target_ops) <to_thread_address_space>: Add
7670 TARGET_DEFAULT_FUNC.
7672 2014-06-04 Doug Evans <xdje42@gmail.com>
7674 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7676 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7678 * record-btrace.c: Include event-loop.h and inf-loop.h.
7679 (record_btrace_resume_exec_dir)
7680 (record_btrace_async_inferior_event_handler)
7681 (record_btrace_handle_async_inferior_event): New.
7682 (record_btrace_open): Create async event handler.
7683 (record_btrace_close): Delete async event handler.
7684 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7685 Mark async event handler.
7686 (record_btrace_execution_direction): New.
7687 (init_record_btrace_ops): Initialize to_execution_direction.
7689 2014-06-03 Doug Evans <xdje42@gmail.com>
7691 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7692 (gdbscm_make_parameter): Ditto.
7694 2014-06-03 Doug Evans <dje@google.com>
7696 * exec.c (exec_close_1): Call clear_section_table instead of
7697 resize_section_table.
7698 (clear_section_table): New function.
7699 (resize_section_table): Make static. Rename arg num_added to
7701 * exec.h (clear_section_table): Declare.
7702 (resize_section_table): Delete.
7703 * progspace.c (release_program_space): Call clear_section_table
7704 instead of resize_section_table.
7706 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7708 * NEWS (Python Scripting): Add entry about the new xmethods
7711 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7713 * python/py-xmethods.c: New file.
7714 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7715 (objfpy_dealloc): XDECREF on the new xmethods field.
7716 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7718 (objfpy_get_xmethods): New function.
7719 (objfile_getset): New entry 'xmethods'.
7720 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7721 (pspy_dealloc): XDECREF on the new xmethods field.
7722 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7724 (pspy_get_xmethods): New function.
7725 (pspace_getset): New entry 'xmethods'.
7726 * python/python-internal.h: Add declarations for new functions.
7727 * python/python.c (_initialize_python): Invoke
7728 gdbpy_initialize_xmethods.
7729 * python/lib/gdb/__init__.py (xmethods): New
7731 * python/lib/gdb/xmethod.py: New file.
7732 * python/lib/gdb/command/xmethods.py: New file.
7734 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7736 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7737 best match method returned by find_overload_match is an xmethod.
7738 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7739 the best matching operator returned by find_overload_match is an
7741 * valops.c: #include "extension.h".
7742 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7743 Return void. The list of matching source methods is returned in
7744 "fn_list" and a vector of matching debug method workers is
7745 returned in "xm_worker_vec". Update all callers.
7746 (value_find_oload_method_list): Likewise.
7747 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7748 non-NULL, then the index of the best matching method in this
7749 vector is returned. Update all callers.
7750 (find_overload_match): Include xmethods while performing overload
7753 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7755 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7756 * extension-priv.h (struct extension_language_ops): Add the
7758 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7759 get_matching_xmethod_workers, get_xmethod_argtypes,
7760 invoke_xmethod, free_xmethod_worker,
7761 free_xmethod_worker_vec): New functions.
7762 * extension.h: #include "common/vec.h".
7763 New function declarations.
7764 (struct xmethod_worker): New struct.
7765 (VEC (xmethod_worker_ptr)): New vector type.
7766 (xmethod_worker_ptr): New typedef.
7767 (xmethod_worker_vec): Likewise.
7768 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7770 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7771 (struct builtin_type): New field "xmethod".
7772 * valarith.c (value_ptradd): Assert that the value argument is not
7774 * valops.c (value_must_coerce_to_target): Return 0 for
7775 lval_xcallable values.
7776 * value.c (struct value): New field XM_WORKER in the field
7778 (value_address, value_raw_address): Return 0 for lval_xcallable
7780 (set_value_address): Assert that the value is not an
7782 (value_free): Free the associated xmethod worker when freeing
7783 lval_xcallable values.
7784 (set_value_component_location): Assert that the WHOLE value is not
7786 (value_of_xmethod, call_xmethod): New functions.
7787 * value.h: Declare "struct xmethod_worker".
7788 Declare new functions value_of_xmethod, call_xmethod.
7790 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7791 Pedro Alves <palves@redhat.com>
7793 PR breakpoints/17000
7794 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7795 New function, extracted from software_breakpoint_inserted_here_p.
7796 (software_breakpoint_inserted_here_p): Replace factored out code
7797 by call to find_non_raw_software_breakpoint_inserted_here.
7798 (bp_target_info_copy_insertion_state): New function.
7799 (bkpt_insert_location): Handle the case of a single-step
7800 breakpoint already inserted at the same address.
7801 (bkpt_remove_location): Handle the case of a single-step
7802 breakpoint still inserted at the same address.
7803 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7804 breakpoint already inserted at the same address.
7805 (deprecated_remove_raw_breakpoint): Handle the case of a
7806 non-raw breakpoint still inserted at the same address.
7807 (find_single_step_breakpoint): New function, extracted from
7808 single_step_breakpoint_inserted_here_p.
7809 (find_single_step_breakpoint): New function,
7810 factored out from single_step_breakpoint_inserted_here_p.
7811 (single_step_breakpoint_inserted_here_p): Reimplement.
7813 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7815 Pushed by Joel Brobecker <brobecker@adacore.com>
7816 * source.c (show_substitute_path_command): Fix display of matching
7819 2014-06-03 Gary Benson <gbenson@redhat.com>
7821 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7823 2014-06-02 Doug Evans <xdje42@gmail.com>
7825 Add parameter support for Guile.
7826 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7827 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7828 (scm-param.o): New rule.
7829 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7830 (gdbscm_misc_error): Declare.
7831 (gdbscm_canonicalize_command_name): Declare.
7832 (gdbscm_scm_to_host_string): Declare.
7833 (gdbscm_scm_from_host_string): Declare.
7834 (gdbscm_initialize_parameters): Declare.
7835 * guile/guile.c (initialize_gdb_module): Call
7836 gdbscm_initialize_parameters.
7837 * guile/lib/gdb.scm: Export parameter symbols.
7838 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7839 cmdscm_canonicalize_name and made public. All callers updated.
7840 * guile/scm-exception.c (gdbscm_misc_error): New function.
7841 * guile/scm-param.c: New file.
7842 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7843 (gdbscm_scm_to_host_string): New function.
7844 (gdbscm_scm_from_host_string): New function.
7845 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7847 2014-06-02 Doug Evans <xdje42@gmail.com>
7849 Add command support for Guile.
7850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7851 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7852 (scm-cmd.o): New rule.
7853 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7854 (gdbscm_user_error_p): Declare.
7855 (gdbscm_parse_command_name): Declare.
7856 (gdbscm_valid_command_class_p): Declare.
7857 (gdbscm_initialize_commands): Declare.
7858 * guile/guile.c (initialize_gdb_module): Call
7859 gdbscm_initialize_commands.
7860 * guile/lib/gdb.scm: Export command symbols.
7861 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7862 (throw-user-error): New function.
7863 * guile/scm-cmd.c: New file.
7864 * guile/scm-exception.c (user_error_symbol): New static global.
7865 (gdbscm_user_error_p): New function.
7866 (gdbscm_initialize_exceptions): Set user_error_symbol.
7867 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7869 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7871 * top.c (command_loop): Handle comments here...
7872 (command_line_input): ... not here.
7874 2014-06-02 Doug Evans <xdje42@gmail.com>
7876 Add progspace support for Guile.
7877 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7878 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7879 (scm-progspace.o): New rule.
7880 * guile/guile-internal.h (pspace_smob): New typedef.
7881 (psscm_pspace_smob_pretty_printers): Declare.
7882 (psscm_pspace_smob_from_pspace): Declare.
7883 (psscm_scm_from_pspace): Declare.
7884 * guile/guile.c (initialize_gdb_module): Call
7885 gdbscm_initialize_pspaces.
7886 * guile/lib/gdb.scm: Export progspace symbols.
7887 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7889 (append-pretty-printer!): Ditto.
7890 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7892 * guile/scm-progspace.c: New file.
7894 2014-06-03 Alan Modra <amodra@gmail.com>
7896 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7897 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7899 2014-06-02 Doug Evans <dje@google.com>
7901 Add support for skeletonless type units.
7902 * dwarf2read.c (struct dwarf2_per_objfile): New member
7903 n_allocated_type_units.
7904 (struct dwarf2_per_objfile) <tu_stats>: New member
7905 nr_all_type_units_reallocs.
7906 (create_signatured_type_table_from_index): Initialize
7907 n_allocated_type_units
7908 (create_all_type_units): Ditto.
7909 (add_type_unit): Move up in file. New arg slot.
7910 All callers updated. Increase space for all_type_units more
7912 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7913 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7914 (lookup_dwp_signatured_type): Ditto.
7915 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7916 All callers updated.
7917 (build_type_psymtabs_1): Leave type_unit_groups as
7918 NULL if no TUs present.
7919 (print_tu_stats): New function.
7920 (process_skeletonless_type_unit): New function.
7921 (process_dwo_file_for_skeletonless_type_units): New
7923 (process_skeletonless_type_units): New function.
7924 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7925 Call print tu_stats if debugging enabled.
7927 2014-06-02 Pedro Alves <palves@redhat.com>
7929 * breakpoint.c (build_target_command_list): Don't build a command
7930 list if we have any duplicate location that isn't a dprintf.
7932 2014-06-02 Pedro Alves <palves@redhat.com>
7934 * breakpoint.c (dprintf_breakpoint_hit): New function.
7935 (initialize_breakpoint_ops): Install it as dprintf's
7936 breakpoint_hit method.
7938 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7940 * source.c (substitute_path_rule_matches): Simplify using
7941 filename_ncmp instead of FILENAME_CMP.
7943 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7945 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7947 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7949 * configure.ac: When Guile is available, check for the
7950 availability of 'scm_new_smob'.
7951 * configure, config.h.in: Regenerate.
7952 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7955 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7957 * frame.c (struct frame_info): Add stop_string field.
7958 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7959 (get_prev_frame_always): Old content moved into
7960 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7961 TRY_CATCH, handle MEMORY_ERROR exceptions.
7962 (frame_stop_reason_string): New function definition.
7963 * frame.h (unwind_stop_reason_to_string): Extend comment to
7964 mention frame_stop_reason_string.
7965 (frame_stop_reason_string): New function declaration.
7966 * stack.c (frame_info): Switch to frame_stop_reason_string.
7967 (backtrace_command_1): Switch to frame_stop_reason_string.
7968 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7969 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7970 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7972 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7974 * frame.c (frame_stop_reason_string): Rename to ...
7975 (unwind_stop_reason_to_string): this.
7976 * frame.h (frame_stop_reason_string): Rename to ...
7977 (unwind_stop_reason_to_string): this.
7978 * stack.c (frame_info): Update call to frame_stop_reason_string.
7979 (backtrace_command_1): Likewise.
7980 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7981 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7983 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7985 * frame.c (remove_prev_frame): New function.
7986 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7989 2014-05-29 Pedro Alves <palves@redhat.com>
7991 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7992 and make it const. When a single-step decays to a continue,
7993 clear 'step', not 'hw_step'. Pass whether the caller wanted
7994 to step to user_visible_resume_ptid, not what we ask the
7997 2014-05-29 Pedro Alves <palves@redhat.com>
7999 * infrun.c (process_event_stop_test, handle_step_into_function)
8000 (handle_step_into_function_backward): Adjust.
8001 Don't set the even thread's stop_step and call stop_waiting before
8002 calling end_stepping_range. Instead do that ...
8003 (end_stepping_range): ... here. Take an ecs pointer parameter.
8005 2014-05-29 Pedro Alves <palves@redhat.com>
8007 * infrun.c (stop_stepping): Rename to ...
8008 (stop_waiting): ... this.
8009 (proceed): Update comment.
8010 (process_event_stop_test, handle_inferior_event)
8011 (handle_signal_stop, handle_step_into_function)
8012 (handle_step_into_function_backward): Update.
8014 2014-05-29 Pedro Alves <palves@redhat.com>
8016 * infcall.c (run_inferior_call): Don't check whether the current
8017 thread is running after the proceed call.
8019 2014-05-29 Pedro Alves <palves@redhat.com>
8020 Tom Tromey <tromey@redhat.com>
8022 * NEWS: Mention "maint set target-async", "set mi-async", and that
8023 background execution commands are now always available.
8024 * target.h (target_async_permitted): Update comment.
8025 * target.c (target_async_permitted, target_async_permitted_1):
8027 (set_target_async_command): Rename to ...
8028 (maint_set_target_async_command): ... this.
8029 (show_target_async_command): Rename to ...
8030 (maint_show_target_async_command): ... this.
8031 (_initialize_target): Adjust.
8032 * infcmd.c (prepare_execution_command): Make extern.
8033 * inferior.h (prepare_execution_command): Declare.
8034 * infrun.c (set_observer_mode): Leave target async alone.
8035 * mi/mi-interp.c (mi_interpreter_init): Install
8036 mi_on_sync_execution_done as sync_execution_done observer.
8037 (mi_on_sync_execution_done): New function.
8038 (mi_execute_command_input_handler): Don't print the prompt if we
8039 just started a synchronous command with an async target.
8040 (mi_on_resume): Check sync_execution before printing prompt.
8041 * mi/mi-main.h (mi_async_p): Declare.
8042 * mi/mi-main.c: Include gdbcmd.h.
8043 (mi_async_p): New function.
8044 (mi_async, mi_async_1): New globals.
8045 (set_mi_async_command, show_mi_async_command, mi_async): New
8047 (exec_continue): Call prepare_execution_command.
8048 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8049 (mi_execute_async_cli_command): Use mi_async_p.
8050 (_initialize_mi_main): Install "set mi-async". Make
8051 "target-async" a deprecated alias.
8053 2014-05-29 Pedro Alves <palves@redhat.com>
8055 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8056 (_initialize_cli_interp): Adjust.
8057 * event-loop.c: Include "observer.h".
8058 (start_event_loop): Notify 'command_error' observers instead of
8059 calling display_gdb_prompt. Remove FIXME comment.
8060 * event-top.c (display_gdb_prompt): Remove call into the
8062 * inf-loop.c: Include "observer.h".
8063 (inferior_event_handler): Notify 'command_error' observers instead
8064 of calling display_gdb_prompt.
8065 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8066 observers instead of calling display_gdb_prompt.
8067 * interps.c (interp_set): Don't call display_gdb_prompt.
8068 (current_interp_display_prompt_p): Delete.
8069 * interps.h (interp_prompt_p): Delete declaration.
8070 (interp_prompt_p_ftype): Delete.
8071 (struct interp_procs) <prompt_proc_p>: Delete field.
8072 (current_interp_display_prompt_p): Delete declaration.
8073 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8074 (_initialize_mi_interp): Adjust.
8075 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8076 'command_error' observers.
8077 (tui_on_sync_execution_done, tui_on_command_error): New
8079 (tui_display_prompt_p): Delete.
8080 (_initialize_tui_interp): Adjust.
8082 2014-05-29 Pedro Alves <palves@redhat.com>
8085 * cli/cli-interp.c: Include infrun.h and observer.h.
8086 (cli_uiout, cli_interp): New globals.
8087 (cli_on_signal_received, cli_on_end_stepping_range)
8088 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8090 (cli_interpreter_init): Install them as 'end_stepping_range',
8091 'signal_received' 'signal_exited', 'exited' and 'no_history'
8093 (_initialize_cli_interp): Remove cli_interp local.
8094 * infrun.c (handle_inferior_event): Call the several stop reason
8095 observers instead of printing the stop reason directly.
8096 (end_stepping_range): New function.
8097 (print_end_stepping_range_reason, print_signal_exited_reason)
8098 (print_exited_reason, print_signal_received_reason)
8099 (print_no_history_reason): Make static, and add an uiout
8100 parameter. Print to that instead of to CURRENT_UIOUT.
8101 * infrun.h (print_end_stepping_range_reason)
8102 (print_signal_exited_reason, print_exited_reason)
8103 (print_signal_received_reason print_no_history_reason): New
8105 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8107 <cli_uiout>: New field.
8108 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8109 uiout for CLI output. Install 'signal_received',
8110 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8112 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8113 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8114 (mi_on_no_history): New functions.
8115 (ui_out_free_cleanup): Delete function.
8116 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8117 instead use the one already stored in the MI interpreter data.
8118 (mi_ui_out): Adjust.
8119 * tui/tui-interp.c: Include infrun.h and observer.h.
8120 (tui_interp): New global.
8121 (tui_on_signal_received, tui_on_end_stepping_range)
8122 (tui_on_signal_exited, tui_on_exited)
8123 (tui_on_no_history): New functions.
8124 (tui_init): Install them as 'end_stepping_range',
8125 'signal_received' 'signal_exited', 'exited' and 'no_history'
8127 (_initialize_tui_interp): Delete tui_interp local.
8129 2014-05-29 Pedro Alves <palves@redhat.com>
8132 * linux-nat.c (linux_nat_resume_callback): Rename the second
8133 parameter to 'except'. Skip LP if it points to EXCEPT.
8134 (linux_nat_resume): Don't mark the event lwp as not stopped
8135 before resuming sibling lwps. Instead ask
8136 linux_nat_resume_callback to skip the event lwp. Mark it as not
8137 stopped after actually resuming it.
8138 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8140 (wait_lwp): Mark the lwp as stopped here.
8141 (stop_wait_callback): Mark the lwp as not stopped right after
8142 resuming it. Don't mark lwps as stopped here.
8143 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8144 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8146 2014-05-29 Pedro Alves <palves@redhat.com>
8149 * infrun.c (resume): Determine how much to resume depending on
8150 whether the caller wanted a step, not whether we can hardware step
8151 the target. Mark all threads that we intend to run as running,
8152 unless we're calling an inferior function.
8153 (normal_stop): If the thread is running an infcall, don't finish
8155 * target.c (target_resume): Don't mark threads as running here.
8157 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8159 * serial.c (_initialize_serial): Remove support for
8160 the "set remotebaud" and "show remotebaud" commands.
8161 * NEWS: Add entry documenting the removal of that command.
8163 2014-05-28 Yao Qi <yao@codesourcery.com>
8165 * charset.c: Fix typo in comments.
8167 2014-05-27 Gary Benson <gbenson@redhat.com>
8169 * utils.c (internal_vproblem): Prompt for a bug report.
8171 2014-05-26 Andy Wingo <wingo@igalia.com>
8173 * guile/scm-arch.c (arscm_mark_arch_smob):
8174 * guile/scm-block.c (bkscm_mark_block_smob)
8175 (bkscm_mark_block_syms_progress_smob):
8176 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8177 * guile/scm-exception.c (exscm_mark_exception_smob):
8178 * guile/scm-frame.c (frscm_mark_frame_smob):
8179 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8180 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8181 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8182 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8183 (ppscm_mark_pretty_printer_worker_smob):
8184 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8185 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8186 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8187 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8189 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8192 2014-05-26 Andy Wingo <wingo@igalia.com>
8193 Doug Evans <xdje42@gmail.com>
8195 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8196 empty_base_class. All uses updated.
8197 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8198 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8200 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8201 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8202 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8203 (gdbscm_gsmob_has_property_p, add_property_name)
8204 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8205 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8206 (gdb-object-has-property?, gdb-object-properties): Remove.
8207 (gdb-object-kind): Renamed from gsmob-kind.
8209 2014-05-26 Andy Wingo <wingo@igalia.com>
8211 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8212 * configure: Regenerate.
8214 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8216 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8218 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8220 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8221 (replay_memory_access_read_only, replay_memory_access_read_write)
8222 (replay_memory_access_types, replay_memory_access)
8223 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8224 (cmd_set_record_btrace, cmd_show_record_btrace)
8225 (cmd_show_replay_memory_access): New.
8226 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8227 (record_btrace_remove_breakpoint): Replace
8228 record_btrace_allow_memory_access with replay_memory_access.
8229 (_initialize_record_btrace): Add commands.
8230 * NEWS: Announce it.
8232 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8234 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8236 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8238 * MAINTAINERS (Write After Approval): Move self back from
8241 2014-05-22 Pedro Alves <palves@redhat.com>
8243 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8244 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8245 (disable_randomization, enum exec_direction_kind)
8246 (execution_direction, stop_registers, start_remote)
8247 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8248 (wait_for_inferior, normal_stop, get_last_target_status)
8249 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8250 (insert_step_resume_breakpoint_at_sal)
8251 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8252 (set_step_info, print_stop_event, signal_stop_state)
8253 (signal_print_state, signal_pass_state, signal_stop_update)
8254 (signal_print_update, signal_pass_update)
8255 (update_signals_program_target, clear_exit_convenience_vars)
8256 (displaced_step_dump_bytes, update_observer_mode)
8257 (signal_catch_update, gdb_signal_from_command): Move
8259 * infrun.h: ... to this new file.
8260 * amd64-tdep.c: Include infrun.h.
8261 * annotate.c: Include infrun.h.
8262 * arch-utils.c: Include infrun.h.
8263 * arm-linux-tdep.c: Include infrun.h.
8264 * arm-tdep.c: Include infrun.h.
8265 * break-catch-sig.c: Include infrun.h.
8266 * breakpoint.c: Include infrun.h.
8267 * common/agent.c: Include infrun.h instead of inferior.h.
8268 * corelow.c: Include infrun.h.
8269 * event-top.c: Include infrun.h.
8270 * go32-nat.c: Include infrun.h.
8271 * i386-tdep.c: Include infrun.h.
8272 * inf-loop.c: Include infrun.h.
8273 * infcall.c: Include infrun.h.
8274 * infcmd.c: Include infrun.h.
8275 * infrun.c: Include infrun.h.
8276 * linux-fork.c: Include infrun.h.
8277 * linux-nat.c: Include infrun.h.
8278 * linux-thread-db.c: Include infrun.h.
8279 * monitor.c: Include infrun.h.
8280 * nto-tdep.c: Include infrun.h.
8281 * procfs.c: Include infrun.h.
8282 * record-btrace.c: Include infrun.h.
8283 * record-full.c: Include infrun.h.
8284 * remote-m32r-sdi.c: Include infrun.h.
8285 * remote-mips.c: Include infrun.h.
8286 * remote-notif.c: Include infrun.h.
8287 * remote-sim.c: Include infrun.h.
8288 * remote.c: Include infrun.h.
8289 * reverse.c: Include infrun.h.
8290 * rs6000-tdep.c: Include infrun.h.
8291 * s390-linux-tdep.c: Include infrun.h.
8292 * solib-irix.c: Include infrun.h.
8293 * solib-osf.c: Include infrun.h.
8294 * solib-svr4.c: Include infrun.h.
8295 * target.c: Include infrun.h.
8296 * top.c: Include infrun.h.
8297 * windows-nat.c: Include infrun.h.
8298 * mi/mi-interp.c: Include infrun.h.
8299 * mi/mi-main.c: Include infrun.h.
8300 * python/py-threadevent.c: Include infrun.h.
8302 2014-05-22 Pedro Alves <palves@redhat.com>
8304 * infrun.c (handle_inferior_event): Store the exit code for
8305 --return-child-result here, instead of ...
8306 (print_exited_reason): ... here.
8308 2014-05-21 Pedro Alves <palves@redhat.com>
8311 * gdbthread.h (struct thread_control_state): New field
8313 * infrun.c (follow_fork): Copy the new thread control field to the
8315 (clear_proceed_status_thread): Clear the new thread control field.
8316 (proceed): Set the new thread control field.
8317 * interps.h (command_interp): Declare.
8318 * interps.c (command_interpreter): New global.
8319 (command_interp): New function.
8320 (interp_exec): Set `command_interpreter' while here.
8321 * cli-out.c (cli_uiout_dtor): New function.
8322 (cli_ui_out_impl): Install it.
8323 * mi/mi-interp.c: Include cli-out.h.
8324 (mi_cmd_interpreter_exec): Add comment.
8325 (restore_current_uiout_cleanup): New function.
8326 (ui_out_free_cleanup): New function.
8327 (mi_on_normal_stop): If finishing an execution command started by
8328 a CLI command, or any kind of breakpoint-like event triggered,
8329 print the stop event to the output (CLI) stream.
8330 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8332 2014-05-21 Pedro Alves <palves@redhat.com>
8334 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8335 current source line having changed.
8336 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8337 * infrun.c (normal_stop): Adjust call to
8338 set_current_sal_from_frame.
8339 * source.c (clear_lines_listed_range): New function.
8340 (set_current_source_symtab_and_line, identify_source_line): Clear
8341 the lines listed range.
8342 (line_info): Handle the first "info line" after the current source
8343 line having changed.
8344 * stack.c (print_stack_frame): Remove center handling.
8345 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8348 2014-05-21 Pedro Alves <palves@redhat.com>
8350 * inf-child.c (inf_child_mourn_inferior): New function.
8351 * inf-child.h (inf_child_mourn_inferior): New declaration.
8352 * darwin-nat.c (darwin_mourn_inferior): Use
8353 inf_child_mourn_inferior.
8354 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8355 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8356 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8357 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8358 * windows-nat.c (windows_mourn_inferior): Likewise.
8360 2014-05-21 Doug Evans <xdje42@gmail.com>
8362 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8364 2014-05-21 Doug Evans <xdje42@gmail.com>
8366 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8367 (gdbscm_out_of_range_error): Ditto.
8368 (gdbscm_memory_error): Ditto.
8369 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8370 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8371 (gdbscm_out_of_range_error): Update.
8372 (gdbscm_memory_error): Update.
8373 (gdbscm_scm_to_target_string_unsafe): Delete.
8375 2014-05-21 Pedro Alves <palves@redhat.com>
8377 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8379 (inf_child_open_target): New function.
8380 (inf_child_open): Use inf_child_open_target to push the target
8381 instead of erroring out.
8382 (inf_child_disconnect, inf_child_close)
8383 (inf_child_maybe_unpush_target): New functions.
8384 (inf_child_target): Install inf_child_disconnect and
8385 inf_child_close. Store a pointer to the returned object.
8386 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8388 * target.c (auto_connect_native_target): New global.
8389 (show_default_run_target): New function.
8390 (find_default_run_target): Return NULL if automatically connecting
8391 to the native target is disabled.
8392 (_initialize_target): Install set/show auto-connect-native-target.
8393 * NEWS: Mention "set auto-connect-native-target", and "target
8395 * linux-nat.c (super_close): New global.
8396 (linux_nat_close): Call super_close.
8397 (linux_nat_add_target): Store a pointer to the base class's
8399 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8400 inf_child_maybe_unpush.
8401 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8403 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8404 the inferior. Use inf_child_maybe_unpush_target.
8405 (inf_ttrace_attach): Don't push the target if it is already
8407 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8408 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8409 after mourning the inferior. Use inf_child_maybe_unpush_target.
8410 (darwin_attach_pid): Don't push the target if it is already
8412 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8413 mourning the inferior. Use inf_child_maybe_unpush_target.
8414 (gnu_detach): Use inf_child_maybe_unpush_target.
8415 * go32-nat.c (go32_create_inferior): Don't push the target if it
8417 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8418 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8419 (procfs_open): Rename to ...
8420 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8421 comments. Can target_preopen before changing node. Call
8422 inf_child_open_target to push the target explicitly.
8423 (procfs_attach): Don't push the target if it is already pushed.
8424 (procfs_detach): Use inf_child_maybe_unpush_target.
8425 (procfs_create_inferior): Don't push the target if it is already
8427 (nto_native_ops): New global.
8428 (procfs_open): Reimplement.
8429 (procfs_native_open): New function.
8430 (init_procfs_targets): Install procfs_native_open as to_open of
8431 "target native". Store a pointer to the "native" target in
8433 * procfs.c (procfs_attach): Don't push the target if it is already
8435 (procfs_detach): Use inf_child_maybe_unpush_target.
8436 (procfs_mourn_inferior): Only unpush the target after mourning the
8437 inferior. Use inf_child_maybe_unpush_target.
8438 (procfs_init_inferior): Don't push the target if it is already
8440 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8441 if it is already pushed.
8443 2014-05-21 Pedro Alves <palves@redhat.com>
8445 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8446 and "procfs" targets are now called "native" instead.
8448 2014-05-21 Pedro Alves <palves@redhat.com>
8450 * go32-nat.c (go32_open): Delete.
8451 (go32_target): Don't override the to_open method.
8453 2014-05-21 Pedro Alves <palves@redhat.com>
8455 * nto-procfs.c (procfs_can_run): New function.
8456 (nto_procfs_ops): New global.
8457 (init_procfs_targets): New, based on procfs_target. Install
8458 "target native" in addition to "target procfs".
8459 (_initialize_procfs): Call init_procfs_targets instead of adding
8462 2014-05-21 Pedro Alves <palves@redhat.com>
8464 * windows-nat.c (windows_target): Don't override to_shortname,
8465 to_longname or to_doc.
8467 2014-05-21 Pedro Alves <palves@redhat.com>
8469 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8472 2014-05-21 Pedro Alves <palves@redhat.com>
8474 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8475 to_shortname, to_longname or to_doc.
8477 2014-05-21 Pedro Alves <palves@redhat.com>
8479 * go32-nat.c (go32_target): Don't override to_shortname,
8480 to_longname or to_doc.
8482 2014-05-21 Pedro Alves <palves@redhat.com>
8484 * inf-child.c (inf_child_open): Remove mention of "child".
8485 (inf_child_target): Rename target to "native" instead of "child".
8487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8489 * Makefile.in (SFILES): Delete "regset.c".
8490 (COMMON_OBS): Delete "regset.o".
8492 * regset.h (regset_alloc): Delete prototype.
8494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8496 * sparc-linux-tdep.c (sparc32_linux_gregset)
8497 (sparc32_linux_fpregset): New static regset structures.
8498 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8499 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8501 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8502 (sparc64_linux_fpregset): New static regset structures.
8503 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8504 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8505 New static regset structures.
8506 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8507 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8508 New static regset structures.
8509 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8510 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8511 New static regset structures.
8512 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8513 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8514 New static regset structures.
8515 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8519 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8520 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8521 register maps ("regmaps") from "*regset" to "*regmap". Do this
8522 for all regmap types and variables.
8523 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8524 (sparc32_linux_supply_core_gregset)
8525 (sparc32_linux_collect_core_gregset)
8526 (sparc32_linux_supply_core_fpregset)
8527 (sparc32_linux_collect_core_fpregset): Likewise.
8528 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8529 (sparc_gregmap, sparc_fpregmap): ... these.
8530 (sparc_supply_gregset, sparc_collect_gregset)
8531 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8532 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8533 (_initialize_sparc_nat): Rename regmaps.
8534 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8535 (sparc_gregmap, sparc_fpregmap): ... these.
8536 (sparc_supply_gregset, sparc_collect_gregset)
8537 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8538 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8540 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8541 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8543 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8545 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8546 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8547 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8549 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8550 (sparc32_bsd_fpregset): Rename to...
8551 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8552 (sparc32_bsd_fpregmap): ... these.
8553 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8554 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8555 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8556 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8557 (struct sparc_gregmap, struct sparc_fpregmap)
8558 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8559 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8560 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8561 (sparc32_supply_regset, sparc32_collect_gregset)
8562 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8564 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8565 (sparc64_linux_ptrace_gregmap): ... this.
8566 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8567 (_initialize_sparc64_linux_nat): Rename regmaps.
8568 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8569 (sparc64_linux_core_gregmap): ... this.
8570 (sparc64_linux_supply_core_gregset)
8571 (sparc64_linux_collect_core_gregset)
8572 (sparc64_linux_supply_core_fpregset)
8573 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8574 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8575 (sparc64_sol2_fpregset): Rename to...
8576 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8577 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8578 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8580 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8581 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8582 (sparc64_bsd_fpregset): Rename to...
8583 (struct sparc_gregmap, sparc64_sol2_gregmap)
8584 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8585 (sparc64_bsd_fpregmap): ... these.
8586 (sparc64_supply_gregset, sparc64_collect_gregset)
8587 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8589 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8590 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8591 (sparc64fbsd_gregmap): ... this.
8592 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8593 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8595 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8596 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8597 (sparc64nbsd_collect_fpregset): Likewise.
8598 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8599 (sparc64nbsd_gregmap): ... this.
8600 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8602 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8603 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8604 (sparc64obsd_gregmap): ... this.
8605 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8607 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8608 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8609 (sparc32nbsd_gregmap): ... this.
8610 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8613 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8615 * score-tdep.c (score7_linux_gregset): New static regset
8617 (score7_linux_regset_from_core_section): Remove dynamic regset
8619 (score_gdbarch_init): Drop allocation of tdep structure.
8620 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8622 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8624 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8626 (am33_regset_from_core_section): Remove dynamic regset
8629 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8631 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8632 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8634 (mips_linux_regset_from_core_section): Remove dynamic regset
8636 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8637 'gregset64', 'fpregset', and 'fpregset64'.
8638 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8639 deleted tdep fields.
8641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8643 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8645 (amd64_regset_from_core_section): Remove dynamic regset
8647 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8649 (amd64obsd_regset_from_core_section): Remove dynamic regset
8651 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8653 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8654 x86-common regset supply function.
8655 * i386-tdep.c (i386_collect_gregset): Make static.
8656 (i386_gregset): New global regset structure.
8657 (i386_fpregset, i386_xstateregset): New static regset structures.
8658 (i386_regset_from_core_section): Remove dynamic regset
8660 (i386_gdbarch_init): Remove initialization of tdep fields
8661 'gregset', 'fpregset', and 'xstateregset'.
8662 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8663 'fpregset', and 'xstateregset'.
8664 (i386_collect_gregset): Remove prototype.
8665 (i386_gregset): New declaration.
8666 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8668 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8673 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8674 (arm_linux_vfpregset): New static regset structures.
8675 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8677 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8678 and 'vfpregset' fields.
8680 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8682 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8683 (aarch64_linux_fpregset): New static regset structures.
8684 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8685 of regset structures.
8686 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8691 * regset.h (struct regset): Remove gdbarch field.
8692 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8693 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8694 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8696 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8697 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8698 (ppc32_linux_vsxregset): Likewise.
8699 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8700 via the regcache instead of the regset.
8701 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8702 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8703 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8704 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8707 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8709 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8710 Constify structures.
8711 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8712 (alphanbsd_aout_gregset): Likewise.
8713 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8714 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8716 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8717 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8719 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8720 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8721 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8722 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8723 * m88k-tdep.c (m88k_gregset): Likewise.
8724 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8725 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8726 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8727 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8728 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8729 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8730 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8731 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8732 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8734 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8735 * sh-tdep.h (sh_corefile_gregset): Likewise.
8736 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8737 * vax-tdep.c (vax_gregset): Likewise.
8739 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8741 Fix TLS access for -static -pthread.
8742 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8743 (try_thread_db_load_1): Initialize it.
8744 (thread_db_get_thread_local_address): Call it if LM is zero.
8745 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8746 * target.h (struct target_ops) (to_get_thread_local_address): Add
8747 load_module_addr comment.
8749 2014-05-21 Pedro Alves <palves@redhat.com>
8751 * dcache.c (dcache_read_memory_partial): If reading the cache line
8752 fails, fallback to reading just the memory the caller wanted.
8754 2014-05-20 Doug Evans <dje@google.com>
8756 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8757 instead of get_current_arch.
8759 2014-05-20 Pedro Alves <palves@redhat.com>
8761 * NEWS: Mention that compare-sections now works with all targets.
8763 * remote.c (PACKET_qCRC): New enum value.
8764 (remote_verify_memory): Don't send qCRC if the target has no
8765 execution. Use packet_support/packet_ok. If the target doesn't
8766 support the qCRC packet, fallback to a deep memory copy.
8767 (compare_sections_command): Say "target image" instead of "remote
8769 (_initialize_remote): Add PACKET_qCRC to the list of config
8770 packets that have no associated command. Extend comment.
8771 * target.c (simple_verify_memory, default_verify_memory): New
8773 * target.h (struct target_ops) <to_verify_memory>: Default to
8774 default_verify_memory.
8775 (simple_verify_memory): New declaration.
8776 * target-delegates.c: Regenerate.
8778 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8780 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8782 2014-05-20 Hui Zhu <hui@codesourcery.com>
8783 Yao Qi <yao@codesourcery.com>
8786 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8787 and change address of sp and pc.
8789 2014-05-19 Tom Tromey <tromey@redhat.com>
8791 * gdbtypes.c (rank_function): Use XNEWVEC.
8792 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8794 2014-05-19 Doug Evans <dje@google.com>
8796 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8797 build_type_unit_groups and moved closer to only caller. Remove
8798 arguments. All references updated. Remove outdated .gdb_index
8800 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8801 build_type_psymtabs_1.
8803 2014-05-19 Doug Evans <dje@google.com>
8805 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8806 n_type_unit_groups, all_type_unit_groups. All uses removed.
8807 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8808 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8809 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8810 (add_type_unit_group_to_table): Delete.
8812 2014-05-19 Doug Evans <dje@google.com>
8814 * eval.c (evaluate_subexp_standard): Add some comments.
8816 2014-05-17 Doug Evans <xdje42@gmail.com>
8818 * progspace.c (remove_program_space): Delete, unused.
8819 * progspace.h (remove_program_space): Ditto.
8821 2014-05-17 Doug Evans <xdje42@gmail.com>
8823 * inferior.c (prune_inferiors): Fix comment.
8824 (remove_inferior_command): Call prune_program_spaces.
8826 2014-05-16 Doug Evans <dje@google.com>
8828 New command line option -D.
8830 * main.c (set_gdb_data_directory): New function.
8831 (captured_main): Recognize -D. Flag error for --data-directory "".
8832 Call set_gdb_data_directory.
8833 (print_gdb_help): Print --data-directory, -D.
8834 * main.h (set_gdb_data_directory): Declare.
8835 * top.c (staged_gdb_datadir): New static global.
8836 (set_gdb_datadir): Call set_gdb_data_directory
8837 (show_gdb_datadir): New function.
8838 (init_main): Update init of data-directory parameter.
8840 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8842 Import the "dirfd" gnulib module.
8843 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8844 * gnulib/aclocal.m4: Update.
8845 * gnulib/config.in: Update.
8846 * gnulib/configure: Update.
8847 * gnulib/import/Makefile.am: Update.
8848 * gnulib/import/Makefile.in: Update.
8849 * gnulib/import/dirfd.c: New.
8850 * gnulib/import/m4/dirfd.m4: New.
8851 * gnulib/import/m4/gnulib-cache.m4: Update.
8852 * gnulib/import/m4/gnulib-comp.m4: Update.
8854 2014-05-16 Pierre Muller <muller@sourceware.org>
8855 Yao Qi <yao@codesourcery.com>
8857 * valprint.c (print_wchar): Move the code on checking whether
8858 W is a printable wide char to the default branch of switch
8859 statement below. Call wchar_printable instead of gdb_iswprint.
8861 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8863 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8864 ldr.w and ldrd instructions.
8866 2014-05-15 Doug Evans <dje@google.com>
8868 * dwarf2read.c (read_structure_type): Delete outdated comments.
8870 2014-05-14 Tom Tromey <tromey@redhat.com>
8872 * macrocmd.c (print_macro_definition): Reindent.
8874 2014-05-13 Doug Evans <xdje42@gmail.com>
8876 * python/py-cmd.c (cmdpy_completer): Add comment.
8877 (completers): Make const.
8879 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8881 * infrun.c (resume): Remove should_resume (unused). Move up
8882 declaration of resume_ptid.
8884 2014-05-13 Tom Tromey <tromey@redhat.com>
8886 * language.h (unop_type_check): Remove.
8887 (binop_type_check): Don't declare.
8889 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8891 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8892 call to regcache_raw_collect.
8894 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8896 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8897 mi_console->quote as the quoting character.
8899 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8901 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8903 2014-04-29 Tom Tromey <tromey@redhat.com>
8905 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8906 "show debug varobj".
8908 2014-05-07 Kyle McMartin <kyle@redhat.com>
8910 Pushed by Joel Brobecker <brobecker@adacore.com>.
8911 * aarch64-tdep.c (aarch64_software_single_step): New function.
8912 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8913 with aarch64_software_single_step.
8915 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8919 2014-05-05 Keith Seitz <keiths@redhat.com>
8921 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8922 variable or history value is successfully parsed.
8924 2014-05-05 Yao Qi <yao@codesourcery.com>
8925 Pedro Alves <palves@redhat.com>
8927 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8928 address of blocks that intersects the requested range. Trim
8929 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8931 * ctf.c (ctf_xfer_partial): Likewise.
8933 2014-05-05 Yao Qi <yao@codesourcery.com>
8935 * printcmd.c (display_command): Remove the check to
8936 target_has_execution.
8938 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8940 * ppcobsd-nat.c: Include "obsd-nat.h".
8941 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8943 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8945 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8947 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8948 and 16-bit signed and unsigned arguments. Update comment.
8949 (stap_parse_probe_arguments): Extend code to handle such
8950 arguments. Use warning instead of complaint to notify about
8951 unrecognized bitness.
8953 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8955 PR breakpoints/16889
8956 * stap-probe.c (stap_parse_probe_arguments): Simplify
8957 check for non-prefixed probes (i.e., probes whose
8958 arguments do not start with "N@"). Always set the
8959 argument type to a sane value.
8961 2014-05-01 David Taylor <dtaylor@emc.com>
8963 * remote.c (compare_sections_command): Add -r option to compare
8964 all loadable read-only sections.
8966 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8968 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8969 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8971 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8972 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8973 Remove unused CORE_ADDR argument. Update all callers.
8975 2014-04-29 Pedro Alves <palves@redhat.com>
8977 * remote.c (struct packet_config) <detect>: Extend comment.
8978 (add_packet_config_cmd): Don't set the config's detect or support
8980 (init_all_packet_configs): Also initialize the config's 'detect'
8982 (reset_all_packet_configs_support): New function.
8983 (remote_open_1): Call reset_all_packet_configs_support instead of
8984 init_all_packet_configs.
8985 (_initialize_remote): Initialize all packet configs. Assert that
8986 all packets have an associated command, except a few known
8989 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8991 * dwarf2read.c (read_subrange_type): Handle dynamic
8992 DW_AT_lower_bound attributes.
8994 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8996 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8997 dynamic bounds before computing its upper bound.
8998 (ada_discrete_type_low_bound): Same as above with the lower bound.
9000 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9002 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9003 range types. Adjust the array handling implementation to
9004 take advantage of this change.
9005 (resolve_dynamic_range): New function, mostly extracted from
9006 resolve_dynamic_bounds.
9007 (resolve_dynamic_array): New function, mostly extracted from
9008 resolve_dynamic_bounds.
9009 (resolve_dynamic_bounds): Delete.
9010 (resolve_dynamic_type): Reimplement. Add handling of
9011 TYPE_CODE_RANGE types.
9013 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9015 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9016 handling of parallel ___XA types.
9018 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9020 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9021 unnecessary second call to static_unwrap_type.
9023 2014-04-27 Hui Zhu <hui@codesourcery.com>
9025 * stack.c (print_frame_info): Call do_gdb_disassembly with
9026 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9028 2014-04-26 Doug Evans <xdje42@gmail.com>
9030 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9032 2014-04-25 Pedro Alves <palves@redhat.com>
9035 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9036 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9037 and newline from built string.
9038 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9039 (linux_ptrace_attach_fail_reason): ... this.
9040 * linux-nat.c (linux_nat_attach): Adjust to use
9041 linux_ptrace_attach_fail_reason.
9043 2014-04-25 Pedro Alves <palves@redhat.com>
9045 * remote.c (struct remote_state): Remove multi_process_aware,
9046 non_stop_aware, cond_tracepoints, cond_breakpoints,
9047 breakpoint_commands, fast_tracepoints, static_tracepoints,
9048 install_in_trace, disconnected_tracing,
9049 enable_disable_tracepoints, string_tracing, and
9050 augmented_libraries_svr4_read fields.
9051 (remote_multi_process_p): Move further below in the file.
9052 (struct packet_config): Add comments.
9053 (update_packet_config): Delete function.
9054 (show_packet_config_cmd): Use packet_config_support.
9055 (add_packet_config_cmd): Use NULL as set callback.
9056 (packet_ok): "set remote foo-packet"-style commands no longer
9057 change config->supported -- adjust.
9058 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9059 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9060 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9061 (PACKET_QNonStop, PACKET_multiprocess_feature)
9062 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9063 (PACKET_DisconnectedTracing_feature)
9064 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9065 (set_remote_protocol_packet_cmd): Delete function.
9066 (packet_config_support, packet_support): New functions.
9067 (set_remote_protocol_Z_packet_cmd): Don't call
9068 update_packet_config.
9069 (remote_query_attached, remote_pass_signals)
9070 (remote_program_signals, remote_threads_info)
9071 (remote_threads_extra_info, remote_start_remote): Use
9073 (remote_start_remote): Use packet_config_support and
9075 (init_all_packet_configs): Set all packets to unknown support,
9076 instead of calling update_packet_config.
9077 (remote_check_symbols): Use packet_support.
9078 (remote_supported_packet): Unconditionally set the packet config's
9080 (remote_multi_process_feature, remote_non_stop_feature)
9081 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9082 (remote_breakpoint_commands_feature)
9083 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9084 (remote_install_in_trace_feature)
9085 (remote_disconnected_tracing_feature)
9086 (remote_enable_disable_tracepoint_feature)
9087 (remote_string_tracing_feature)
9088 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9089 (remote_protocol_features): Adjust to use remote_supported_packet
9090 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9091 "ConditionalTracepoints", "ConditionalBreakpoints",
9092 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9093 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9094 "EnableDisableTracepoints", and "tracenz".
9095 (remote_query_supported): Use packet_support.
9096 (remote_open_1): Adjust.
9097 (extended_remote_attach_1): Use packet_support. Switch on the
9098 result of packet_ok instead of checking whether the packet ended
9100 (remote_vcont_resume): Use packet_support.
9101 (remote_resume, remote_stop_ns, fetch_register_using_p)
9102 (remote_prepare_to_store, store_register_using_P)
9103 (check_binary_download, remote_write_bytes): Use packet_support.
9104 (remote_vkill): Use packet_support. Switch on the result of
9105 packet_ok instead of checking whether the packet ended up
9107 (extended_remote_supports_disable_randomization): Use
9109 (extended_remote_run): Switch on the result of packet_ok instead
9110 of checking whether the packet ended up disabled.
9111 (remote_insert_breakpoint, remote_remove_breakpoint)
9112 (remote_insert_watchpoint, remote_remove_watchpoint)
9113 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9115 (remote_search_memory): Use packet_config_support.
9116 (remote_get_thread_local_address, remote_get_tib_address)
9117 (remote_hostio_send_command, remote_can_execute_reverse): Use
9119 (remote_supports_cond_tracepoints)
9120 (remote_supports_cond_breakpoints)
9121 (remote_supports_fast_tracepoints)
9122 (remote_supports_static_tracepoints)
9123 (remote_supports_install_in_trace)
9124 (remote_supports_enable_disable_tracepoint)
9125 (remote_supports_string_tracing)
9126 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9127 the packet config says the feature is enabled or disabled.
9128 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9129 (remote_get_trace_status): Use packet_support.
9130 (remote_set_disconnected_tracing): Adjust to check whether the
9131 feature is enabled with packet_support.
9132 (remote_set_trace_buffer_size, remote_use_agent)
9133 (remote_can_use_agent, remote_supports_btrace): Use
9135 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9136 Use packet_config_support.
9137 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9138 the packet config says the feature is enabled or disabled.
9139 (set_range_stepping): Use packet_support.
9141 2014-04-25 Tom Tromey <tromey@redhat.com>
9143 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9146 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9148 * NEWS: Mention support for C99 variable length arrays.
9150 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9152 * ada-lang.c (standard_exc): Expand introductory comment.
9154 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9155 Walfred Tedeschi <walfred.tedeschi@intel.com>
9157 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9159 (amd64_linux_read_description): Add code to handle AVX512 xstate
9160 mask and return respective tdesc.
9161 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9162 and features/i386/x32-avx512-linux.c.
9163 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9164 (amd64_linux_core_read_description): Add code to handle AVX512
9165 xstate mask and return respective tdesc.
9166 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9167 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9169 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9170 (tdesc_amd64_avx512_linux): New prototype.
9171 (tdesc_x32_avx512_linux): Likewise.
9172 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9173 features/i386/x32-avx512.c.
9174 (amd64_ymm_avx512_names): New register names for pseudo
9176 (amd64_ymmh_avx512_names): New register names for raw registers
9178 (amd64_k_names): New register names for K registers.
9179 (amd64_zmmh_names): New register names for ZMM raw registers.
9180 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9181 (amd64_xmm_avx512_names): New register names for XMM16-31
9183 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9185 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9186 if feature is present.
9187 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9188 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9189 (AMD64_NUM_REGS): Adjust to new number of registers.
9190 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9191 registers supplied via XSTATE by AVX512 registers.
9192 (i386_linux_read_description): Add case for AVX512.
9193 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9194 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9195 (i386_linux_core_read_description): Add case for AVX512.
9196 (i386_linux_init_abi): Install supported register note section
9198 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9200 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9201 registers to be number of zmm7h + 1.
9202 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9203 * i386-tdep.c: Include features/i386/i386-avx512.c.
9204 (i386_zmm_names): Add ZMM pseudo register names array.
9205 (i386_zmmh_names): Add ZMM raw register names array.
9206 (i386_k_names): Add K raw register names array.
9207 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9208 registers. AVX512 has 16 more ZMM registers than there are YMM
9210 (i386_zmmh_regnum_p): Add function to look up register number of
9212 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9213 (i386_k_regnum_p): Likewise for K raw registers.
9214 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9215 registers added by AVX512.
9216 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9217 registers added by AVX512.
9218 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9220 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9221 (i386_pseudo_register_name): Add ZMM pseudo registers.
9222 (i386_zmm_type): Construct and return vector registers type for ZMM
9224 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9225 ZMM0-31 pseudo registers and K registers.
9226 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9227 and YMM16-31 registers from register cache.
9228 (i386_pseudo_register_write): Add code to write K, ZMM and
9230 (i386_register_reggroup_p): Add code to include/exclude AVX512
9231 registers in/from respective register groups.
9232 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9233 registers if feature is present in xcr0.
9234 (i386_gdbarch_init): Add code to initialize AVX512 feature
9235 variables in tdep structure, wire in pseudo registers and call
9236 initialize_tdesc_i386_avx512.
9237 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9239 (i386_regnum): Add AVX512 registers.
9240 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9241 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9242 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9243 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9245 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9246 (i386_ymm_avx512_regnum_p): Likewise.
9247 (i386_k_regnum_p): Likewise.
9248 (i386_zmm_regnum_p): Likewise.
9249 (i386_zmmh_regnum_p): Likewise.
9250 * i387-tdep.c : Update year in copyright notice.
9251 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9253 (XSAVE_YMM_AVX512_ADDR): New macro.
9254 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9256 (XSAVE_XMM_AVX512_ADDR): New macro.
9257 (xsave_avx512_k_offset): New table for K register offsets in
9259 (XSAVE_AVX512_K_ADDR): New macro.
9260 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9262 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9263 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9265 (i387_collect_xsave): Add code to collect AVX512 registers from
9267 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9268 of XMM16-31 registers.
9269 (I387_NUM_K_REGS): New define for number of K registers.
9270 (I387_K0_REGNUM): New define for K0 register number.
9271 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9272 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9273 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9275 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9276 (I387_XMM16_REGNUM): New define for XMM16 register number.
9277 (I387_YMM0_REGNUM): New define for YMM0 register number.
9278 (I387_KEND_REGNUM): New define for last K register number.
9279 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9280 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9282 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9284 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9286 * features/Makefile: Add AVX512 related files.
9287 * features/i386/32bit-avx512.xml: New file.
9288 * features/i386/64bit-avx512.xml: Likewise.
9289 * features/i386/amd64-avx512-linux.c: Likewise.
9290 * features/i386/amd64-avx512-linux.xml: Likewise.
9291 * features/i386/amd64-avx512.c: Likewise.
9292 * features/i386/amd64-avx512.xml: Likewise.
9293 * features/i386/i386-avx512-linux.c: Likewise.
9294 * features/i386/i386-avx512-linux.xml: Likewise.
9295 * features/i386/i386-avx512.c: Likewise.
9296 * features/i386/i386-avx512.xml: Likewise.
9297 * features/i386/x32-avx512-linux.c: Likewise.
9298 * features/i386/x32-avx512-linux.xml: Likewise.
9299 * features/i386/x32-avx512.c: Likewise.
9300 * features/i386/x32-avx512.xml: Likewise.
9301 * regformats/i386/amd64-avx512-linux.dat: New file.
9302 * regformats/i386/amd64-avx512.dat: Likewise.
9303 * regformats/i386/i386-avx512-linux.dat: Likewise.
9304 * regformats/i386/i386-avx512.dat: Likewise.
9305 * regformats/i386/x32-avx512-linux.dat: Likewise.
9306 * regformats/i386/x32-avx512.dat: Likewise.
9307 * NEWS: Add note about new support for AVX512.
9310 2014-04-23 Pedro Alves <palves@redhat.com>
9312 * breakpoint.c (insert_bp_location): Tolerate errors if the
9313 breakpoint is set in a user-loaded objfile.
9314 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9315 location is marked shlib_disabled. If the breakpoint is set in a
9316 user-loaded objfile is a GDB-side memory breakpoint, validate it
9317 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9318 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9320 * mem-break.c (memory_validate_breakpoint): New function.
9321 * objfiles.c (userloaded_objfile_contains_address_p): New
9323 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9324 * target.h (memory_validate_breakpoint): New declaration.
9326 2014-04-23 Pedro Alves <palves@redhat.com>
9328 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9329 the breakpoint is set in a shared library, only suppress
9330 errors for software breakpoints, not hardware breakpoints.
9332 2014-04-22 Pedro Alves <palves@redhat.com>
9334 * infrun.c (schedlock_applies): New function, factored out from
9335 find_thread_needs_step_over.
9336 (find_thread_needs_step_over): Use it.
9337 (switch_back_to_stepped_thread): Always clear trap_expected if the
9338 step over is finished. Return early if scheduler locking applies.
9339 Look for the stepping thread and a potential step-over thread with
9341 (currently_stepping_or_nexting_callback): Delete.
9343 2014-04-22 Nick Clifton <nickc@redhat.com>
9345 * NEWS: Mention that ARM sim now supports tracing.
9347 2014-04-22 Yao Qi <yao@codesourcery.com>
9349 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9351 * tracefile.c (tracefile_fetch_registers): ... it. New
9353 * tracefile.h (tracefile_fetch_registers): Declare.
9354 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9355 tracefile_fetch_registers.
9357 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9360 * windows-nat.c (thread_rec): Don't display a warning when
9361 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9362 fails for any reason, set th->suspended to -1, so that we don't
9363 try to resume such a thread. Also, don't return NULL in these
9364 cases, to avoid completely ruin the session due to "PC register is
9365 not available" error.
9366 (do_windows_fetch_inferior_registers): Check errors in
9367 GetThreadContext call.
9368 (windows_continue): Accept an additional argument KILLED; if not
9369 zero, ignore errors in the SetThreadContext call, since the
9370 inferior was killed and is shutting down.
9371 (windows_resume, get_windows_debug_event)
9372 (windows_create_inferior, windows_mourn_inferior)
9373 (windows_kill_inferior): All callers of windows_continue changed
9374 to adjust to its new calling sequence.
9376 2014-04-19 Yao Qi <yao@codesourcery.com>
9378 * ctf.c (ctf_open): Call post_create_inferior.
9380 2014-04-19 Yao Qi <yao@codesourcery.com>
9382 * ctf.c (handle_id): New static variable.
9383 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9384 value. Get the declaration of event "register" and get length
9385 of field "contents".
9387 2014-04-19 Yao Qi <yao@codesourcery.com>
9389 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9391 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9393 * valops.c (oload_method_static): Remove unnecessary argument
9394 METHOD. Update all callers.
9396 2014-04-18 Pedro alves <palves@redhat.com>
9397 Tom Tromey <tromey@redhat.com>
9400 * frame.c (get_prev_frame_1): Rename to ...
9401 (get_prev_frame_always): ... this, and make extern. Adjust.
9402 (skip_artificial_frames): Use get_prev_frame_always.
9403 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9404 (get_frame_unwind_stop_reason): Adjust to rename.
9405 * frame.h (get_prev_frame_always): Declare.
9406 * inline-frame.c: Include frame.h.
9407 (inline_frame_this_id): Use get_prev_frame_always.
9409 2014-04-18 Tristan Gingold <gingold@adacore.com>
9411 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9412 code by using bfd_mach_o_get_base_address.
9414 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9416 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9417 (spu_ax_pseudo_register_collect): New function.
9418 (spu_ax_pseudo_register_push_stack): Likewise.
9419 (spu_dwarf_reg_to_regnum): Likewise.
9420 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9422 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9424 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9425 Replace FRAME argument with FRAME_ID.
9426 * gdbarch.c, gdbarch.h: Regenerate.
9427 * findvar.c (default_value_from_register): Add GDBARCH argument;
9428 replace FRAME by FRAME_ID. No longer call get_frame_id.
9429 (value_from_register): Update call to gdbarch_value_from_register.
9430 * value.h (default_value_from_register): Update prototype.
9431 * s390-linux-tdep.c (s390_value_from_register): Update interface
9432 and call to default_value_from_register.
9433 * spu-tdep.c (spu_value_from_register): Likewise.
9435 * findvar.c (address_from_register): Remove TYPE argument.
9436 Do not call value_from_register; use gdbarch_value_from_register
9437 with null_frame_id instead.
9438 * value.h (address_from_register): Update prototype.
9439 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9440 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9441 address_from_register interface change.
9443 2014-04-17 Yao Qi <yao@codesourcery.com>
9445 * gdbtypes.h: Update comments to link to types and macros'
9448 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9450 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9452 2014-04-16 Keith Seitz <keiths@redhat.com>
9455 * dwarf2read.c (skip_one_die): Check that all relative-offset
9456 sibling DIEs fall within range of the current reader's buffer.
9457 (read_partial_die): Likewise.
9459 2014-04-16 Keith Seitz <keiths@redhat.com>
9462 * cp-namespace.c (lookup_symbol_file): If the type name of
9463 `this' is NULL, return immediately.
9465 2014-04-14 Keith Seitz <keiths@redhat.com>
9468 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9469 from symbol_matches_domain in symtab.c. All local callers
9470 of symbol_matches_domain updated.
9471 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9472 search STRUCT_DOMAIN.
9473 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9474 independently. standard_lookup will do that automatically.
9475 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9477 (cp_lookup_symbol_in_namespace): Likewise.
9478 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9479 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9480 may return a STRUCT_DOMAIN match.
9481 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9482 * cp-support.c: Include language.h.
9483 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9485 * psymtab.c (match_partial_symbol): Compare the requested
9486 domain with the symbol's domain directly.
9487 (lookup_partial_symbol): Likewise.
9488 * symtab.c (lookup_symbol_in_language): Explain when/why
9489 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9490 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9491 appropriate languages.
9492 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9493 and moved to ada-lang.c
9494 (lookup_block_symbol): Explain that this function only returns
9495 symbol matching the requested DOMAIN.
9496 Compare the requested domain with the symbol's domain directly.
9497 (iterate_over_symbols): Compare the requested domain with the
9498 symbol's domain directly.
9499 * symtab.h (symbol_matches_domain): Remove.
9501 2014-04-14 Tom Tromey <tromey@redhat.com>
9504 * c-exp.y (type_aggregate_p): New function.
9505 (qualified_name, classify_inner_name): Use it.
9506 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9507 and TYPE_TARGET_TYPE of an enum type.
9508 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9510 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9511 handle TYPE_DECLARED_CLASS.
9512 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9514 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9515 * valops.c (enum_constant_from_type): New function.
9516 (value_aggregate_elt): Use it.
9517 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9520 2014-04-14 Tom Tromey <tromey@redhat.com>
9522 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9523 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9525 * value.h (value_aggregate_elt): Update.
9527 2014-04-14 Tom Tromey <tromey@redhat.com>
9529 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9531 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9533 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9534 (evaluate_subexp_standard): Pass noside argument.
9535 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9536 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9537 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9538 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9539 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9541 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9543 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9544 points to a constant blob.
9546 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9548 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9549 property and store it as the high bound and flag the range accordingly.
9550 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9551 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9552 * gdbtypes.h (enum range_flags): New enum.
9553 (struct range_bounds): Add flags member.
9555 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9557 * c-typeprint.c (c_type_print_varspec_suffix): Added
9558 check for not yet resolved high bound. If unresolved, print
9559 "variable length" string to the console instead of random
9562 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9564 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9566 (ada_template_to_fixed_record_type_1): Likewise.
9567 (ada_to_fixed_type_1): Likewise.
9568 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9569 (cp_print_value): Likewise.
9570 * d-valprint.c (dynamic_array_type): Likewise.
9571 * findvar.c (address_of_variable): Likewise.
9572 * jv-valprint.c (java_value_print): Likewise.
9573 * valops.c (value_ind): Likewise.
9574 * value.c (coerce_ref): Likewise.
9576 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9578 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9579 value and retrieve the dynamic type size.
9581 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9583 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9584 passed to sizeof is dynamic evaluate the argument to compute the length.
9586 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9587 Joel Brobecker <brobecker@adacore.com>
9589 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9590 (dwarf2_evaluate_property): New function.
9591 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9592 * dwarf2read.c (attr_to_dynamic_prop): New function.
9593 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9595 * gdbtypes.c: Include dwarf2loc.h.
9596 (is_dynamic_type): New function.
9597 (resolve_dynamic_type): New function.
9598 (resolve_dynamic_bounds): New function.
9599 (get_type_length): New function.
9600 (check_typedef): Use get_type_length to compute type length.
9601 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9602 (TYPE_LOW_BOUND_KIND): New macro.
9603 (is_dynamic_type): New function prototype.
9604 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9605 to resolve dynamic properties of the type. Update comment.
9606 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9608 2014-04-14 Richard Henderson <rth@redhat.com>
9610 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9612 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9613 Doug Evans <xdje42@gmail.com>
9615 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9616 dereference TYPE_CODE_REF values.
9618 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9620 Revert the following changes due to regressions:
9622 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9623 (dwarf2_evaluate_property): New function.
9624 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9625 * dwarf2read.c (attr_to_dynamic_prop): New function.
9626 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9628 * gdbtypes.c: Include dwarf2loc.h.
9629 (is_dynamic_type): New function.
9630 (resolve_dynamic_type): New function.
9631 (resolve_dynamic_bounds): New function.
9632 (get_type_length): New function.
9633 (check_typedef): Use get_type_length to compute type length.
9634 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9635 (TYPE_LOW_BOUND_KIND): New macro.
9636 (is_dynamic_type): New function prototype.
9637 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9638 to resolve dynamic properties of the type. Update comment.
9639 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9641 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9642 passed to sizeof is dynamic evaluate the argument to compute the length.
9644 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9645 value and retrieve the dynamic type size.
9647 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9648 (ada_template_to_fixed_record_type_1): Likewise.
9649 (ada_to_fixed_type_1): Likewise.
9650 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9651 (cp_print_value): Likewise.
9652 * d-valprint.c (dynamic_array_type): Likewise.
9653 * eval.c (evaluate_subexp_with_coercion): Likewise.
9654 * findvar.c (address_of_variable): Likewise.
9655 * jv-valprint.c (java_value_print): Likewise.
9656 * valops.c (value_ind): Likewise.
9657 * value.c (coerce_ref): Likewise.
9659 * c-typeprint.c (c_type_print_varspec_suffix): Added
9660 check for not yet resolved high bound. If unresolved, print
9661 "variable length" string to the console instead of random
9664 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9665 property and store it as the high bound and flag the range accordingly.
9666 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9667 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9668 * gdbtypes.h (enum range_flags): New enum.
9669 (struct range_bounds): Add flags member.
9671 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9672 points to a constant blob.
9674 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9675 (evaluate_subexp_standard): Pass noside argument.
9676 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9677 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9678 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9679 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9680 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9682 2014-04-11 Keith Seitz <keiths@redhat.com>
9685 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9686 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9689 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9691 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9692 (evaluate_subexp_standard): Pass noside argument.
9693 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9694 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9695 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9696 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9697 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9699 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9701 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9702 points to a constant blob.
9704 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9706 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9707 property and store it as the high bound and flag the range accordingly.
9708 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9709 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9710 * gdbtypes.h (enum range_flags): New enum.
9711 (struct range_bounds): Add flags member.
9713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9715 * c-typeprint.c (c_type_print_varspec_suffix): Added
9716 check for not yet resolved high bound. If unresolved, print
9717 "variable length" string to the console instead of random
9720 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9722 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9723 (ada_template_to_fixed_record_type_1): Likewise.
9724 (ada_to_fixed_type_1): Likewise.
9725 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9726 (cp_print_value): Likewise.
9727 * d-valprint.c (dynamic_array_type): Likewise.
9728 * eval.c (evaluate_subexp_with_coercion): Likewise.
9729 * findvar.c (address_of_variable): Likewise.
9730 * jv-valprint.c (java_value_print): Likewise.
9731 * valops.c (value_ind): Likewise.
9732 * value.c (coerce_ref): Likewise.
9734 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9736 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9737 value and retrieve the dynamic type size.
9739 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9741 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9742 passed to sizeof is dynamic evaluate the argument to compute the length.
9744 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9746 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9747 (dwarf2_evaluate_property): New function.
9748 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9749 * dwarf2read.c (attr_to_dynamic_prop): New function.
9750 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9752 * gdbtypes.c: Include dwarf2loc.h.
9753 (is_dynamic_type): New function.
9754 (resolve_dynamic_type): New function.
9755 (resolve_dynamic_bounds): New function.
9756 (get_type_length): New function.
9757 (check_typedef): Use get_type_length to compute type length.
9758 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9759 (TYPE_LOW_BOUND_KIND): New macro.
9760 (is_dynamic_type): New function prototype.
9761 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9762 to resolve dynamic properties of the type. Update comment.
9763 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9765 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9767 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9768 declaring high/low bounds and change uses accordingly. Call
9769 create_range_type instead of create_static_range_type.
9770 * gdbtypes.c (create_range_type): New function.
9771 (create_range_type): Convert bounds into struct bound_prop and pass
9772 them to create_range_type.
9773 * gdbtypes.h (struct bound_prop): New struct.
9774 (create_range_type): New function prototype.
9775 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9776 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9777 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9779 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9781 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9783 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9784 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9785 * ada-lang.c: All uses of create_range_type updated.
9786 * coffread.c: All uses of create_range_type updated.
9787 * dwarf2read.c: All uses of create_range_type updated.
9788 * f-exp.y: All uses of create_range_type updated.
9789 * m2-valprint.c: All uses of create_range_type updated.
9790 * mdebugread.c: All uses of create_range_type updated.
9791 * stabsread.c: All uses of create_range_type updated.
9792 * valops.c: All uses of create_range_type updated.
9793 * valprint.c: All uses of create_range_type updated.
9795 2014-04-10 Pedro Alves <palves@redhat.com>
9797 * breakpoint.c (single_step_breakpoints)
9798 (single_step_gdbarch): Move up in the file.
9799 (one_breakpoint_xfer_memory): New function, factored out from ...
9800 (breakpoint_xfer_memory): ... here. Also process single-step
9803 2014-04-09 Tristan Gingold <gingold@adacore.com>
9805 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9807 (darwin_decode_exception_message): Free port only after use.
9809 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9811 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9812 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9813 when setting the size of call_length.
9815 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9817 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9818 dereference TYPE_CODE_REF values.
9820 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9822 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9823 end of warning message.
9825 2014-04-03 Doug Evans <dje@google.com>
9827 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9828 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9830 2014-04-02 Alan Modra <amodra@gmail.com>
9832 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9833 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9834 (struct symbol_file_add_from_memory_args): Add size field.
9835 (find_vdso_size): New function.
9836 (add_vsyscall_page): Attempt to find vdso size.
9838 2014-04-01 Doug Evans <dje@google.com>
9840 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9842 2014-04-01 Tristan Gingold <gingold@adacore.com>
9844 * darwin-nat.c (darwin_encode_reply): Add prototype.
9845 (darwin_decode_exception_message): Reply to unknown inferiors.
9846 (darwin_decode_message): Handle message by id. Ignore message
9847 to unknown inferior.
9848 (darwin_wait): Discard unknown messages, add debug trace.
9850 2014-03-31 Doug Evans <dje@google.com>
9852 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9855 2014-03-31 Doug Evans <dje@google.com>
9857 New option "set print symbol-loading".
9859 * solib.c (solib_read_symbols): Only print symbol loading messages
9861 (solib_add): If symbol loading is in "brief" mode, notify user
9862 symbols are being loaded.
9863 (reload_shared_libraries_1): Ditto.
9864 * symfile.c (print_symbol_loading_off): New static global.
9865 (print_symbol_loading_brief): New static global.
9866 (print_symbol_loading_full): New static global.
9867 (print_symbol_loading_enums): New static global.
9868 (print_symbol_loading): New static global.
9869 (print_symbol_loading_p): New function.
9870 (symbol_file_add_with_addrs): Only print symbol loading messages
9872 (_initialize_symfile): Register "print symbol-loading" set/show
9874 * symfile.h (print_symbol_loading_p): Declare.
9876 2014-03-30 Doug Evans <xdje42@gmail.com>
9878 * infrun.c (set_last_target_status): New function.
9879 (handle_inferior_event): Call it.
9881 2014-03-30 Doug Evans <xdje42@gmail.com>
9883 * inferior.h (enum stop_kind): Improve comment.
9885 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9887 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9888 a reference, strip the reference layer before calling
9889 the lang_ops value_has_mutated callback.
9891 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9893 Remove some globals from our parser.
9894 * language.c (unk_lang_parser): Add "struct parser_state"
9896 * language.h (struct language_defn) <la_parser>: Likewise.
9897 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9898 (initialize_expout): Add "struct parser_state" argument.
9899 Rewrite function to use the parser state.
9900 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9901 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9902 write_exp_elt_longcst, write_exp_elt_dblcst,
9903 write_exp_elt_decfloatcst, write_exp_elt_type,
9904 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9905 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9906 write_dollar_variable): Likewise.
9907 (parse_exp_in_context_1): Use parser state.
9908 (insert_type_address_space): Add "struct parser_state" argument.
9910 (increase_expout_size): New function.
9911 * parser-defs.h: Forward declare "struct language_defn" and
9912 "struct parser_state".
9913 (expout, expout_size, expout_ptr): Remove extern declarations.
9914 (parse_gdbarch, parse_language): Rewrite macro declarations to
9915 accept the parser state.
9916 (struct parser_state): New struct.
9917 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9918 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9919 write_exp_elt_decfloatcst, write_exp_elt_type,
9920 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9921 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9922 write_exp_msymbol, write_dollar_variable,
9923 mark_struct_expression, insert_type_address_space): Add "struct
9924 parser_state" argument.
9925 (increase_expout_size): New function.
9926 * utils.c (do_clear_parser_state): New function.
9927 (make_cleanup_clear_parser_state): Likewise.
9928 * utils.h (make_cleanup_clear_parser_state): New function
9930 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9931 Update calls to write_exp* in order to pass the parser state.
9932 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9933 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9934 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9935 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9936 * stap-probe.c (stap_parse_register_operand): Likewise.
9937 (stap_parse_single_operand): Likewise.
9938 (stap_parse_argument_1): Likewise.
9939 (stap_parse_argument): Use parser state.
9940 * stap-probe.h: Include "parser-defs.h".
9941 (struct stap_parse_info) <pstate>: New field.
9942 * c-exp.y (parse_type): Rewrite to use parser state.
9943 (yyparse): Redefine to c_parse_internal.
9944 (pstate): New global variable.
9945 (parse_number): Add "struct parser_state" argument.
9946 (write_destructor_name): Likewise.
9947 (type_exp): Update calls to write_exp* and similars in order to
9949 (exp1, exp, variable, qualified_name, space_identifier,
9950 typename, typebase): Likewise.
9951 (write_destructor_name, parse_number, lex_one_token,
9952 classify_name, classify_inner_name, c_parse): Add "struct
9953 parser_state" argument. Update function to use parser state.
9954 * c-lang.h: Forward declare "struct parser_state".
9955 (c_parse): Add "struct parser_state" argument.
9956 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9957 (yyparse): Redefine macro to ada_parse_internal.
9958 (pstate): New variable.
9959 (write_int, write_object_renaming, write_var_or_type,
9960 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9961 type_int, type_long, type_long_long, type_float, type_double,
9962 type_long_double, type_char, type_boolean, type_system_address):
9963 Add "struct parser_state" argument.
9964 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9965 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9966 var_or_type, aggregate, aggregate_component_list,
9967 positional_list, others, component_group,
9968 component_associations): Update calls to write_exp* and similar
9969 functions in order to use parser state.
9970 (ada_parse, write_var_from_sym, write_int,
9971 write_exp_op_with_string, write_object_renaming,
9972 find_primitive_type, write_selectors, write_ambiguous_var,
9973 write_var_or_type, write_name_assoc, type_int, type_long,
9974 type_long_long, type_float, type_double, type_long_double,
9975 type_char, type_boolean, type_system_address): Add "struct
9976 parser_state" argument. Adjust function to use parser state.
9977 * ada-lang.c (parse): Likewise.
9978 * ada-lang.h: Forward declare "struct parser_state".
9979 (ada_parse): Add "struct parser_state" argument.
9980 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9981 calls to both functions.
9982 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9984 (yyparse): Redefine macro to f_parse_internal.
9985 (pstate): New variable.
9986 (parse_number): Add "struct parser_state" argument.
9987 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9988 and similars in order to use parser state.
9989 (parse_number): Adjust code to use parser state.
9991 (f_parse): New function.
9992 * f-lang.h: Forward declare "struct parser_state".
9993 (f_parse): Add "struct parser_state" argument.
9994 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9996 (yyparse): Redefine macro for java_parse_internal.
9997 (pstate): New variable.
9998 (push_expression_name, push_expression_name, insert_exp): Add
9999 "struct parser_state" argument.
10000 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10001 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10002 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10003 PostIncrementExpression, PostDecrementExpression,
10004 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10005 UnaryExpressionNotPlusMinus, CastExpression,
10006 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10007 RelationalExpression, EqualityExpression, AndExpression,
10008 ExclusiveOrExpression, InclusiveOrExpression,
10009 ConditionalAndExpression, ConditionalOrExpression,
10010 ConditionalExpression, Assignment, LeftHandSide): Update
10011 calls to write_exp* and similars in order to use parser state.
10012 (parse_number): Ajust code to use parser state.
10014 (java_parse): New function.
10015 (push_variable): Add "struct parser_state" argument. Adjust
10016 code to user parser state.
10017 (push_fieldnames, push_qualified_expression_name,
10018 push_expression_name, insert_exp): Likewise.
10019 * jv-lang.h: Forward declare "struct parser_state".
10020 (java_parse): Add "struct parser_state" argument.
10021 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10023 (yyparse): Redefine macro to m2_parse_internal.
10024 (pstate): New variable.
10025 (type_exp, exp, fblock, variable, type): Update calls to
10026 write_exp* and similars to use parser state.
10028 (m2_parse): New function.
10029 * m2-lang.h: Forward declare "struct parser_state".
10030 (m2_parse): Add "struct parser_state" argument.
10031 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10032 * objc-lang.h: Forward declare "struct parser_state".
10033 (end_msglist): Add "struct parser_state" argument.
10034 * p-exp.y (parse_type): Rewrite macro to use parser state.
10035 (yyparse): Redefine macro to pascal_parse_internal.
10036 (pstate): New variable.
10037 (parse_number): Add "struct parser_state" argument.
10038 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10039 write_exp* and similars in order to use parser state.
10040 (parse_number, yylex): Adjust code to use parser state.
10041 (pascal_parse): New function.
10042 * p-lang.h: Forward declare "struct parser_state".
10043 (pascal_parse): Add "struct parser_state" argument.
10044 * go-exp.y (parse_type): Rewrite macro to use parser state.
10045 (yyparse): Redefine macro to go_parse_internal.
10046 (pstate): New variable.
10047 (parse_number): Add "struct parser_state" argument.
10048 (type_exp, exp1, exp, variable, type): Update calls to
10049 write_exp* and similars in order to use parser state.
10050 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10051 to use parser state.
10052 (go_parse): Likewise.
10053 * go-lang.h: Forward declare "struct parser_state".
10054 (go_parse): Add "struct parser_state" argument.
10056 2014-03-27 Doug Evans <dje@google.com>
10058 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10060 2014-03-27 Doug Evans <dje@google.com>
10062 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10063 Remove argument abbrev_section. All callers updated.
10065 2014-03-27 Doug Evans <dje@google.com>
10067 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10068 addr_base, ranges_base.
10070 2014-03-26 Keith Seitz <keiths@redhat.com>
10072 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10073 types, not VAR_DOMAIN.
10075 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10077 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10079 * features/nios2-linux.c: Regenerated.
10080 * features/nios2.c: Regenerated.
10082 2014-03-25 Pedro Alves <palves@redhat.com>
10084 * cli/cli-script.c (script_from_file): Force the interpreter to
10087 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10089 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10090 small stack allocation.
10092 2014-03-24 Tristan Gingold <gingold@adacore.com>
10094 * darwin-nat.c (exc_server): Remove unused prototype.
10095 (darwin_dump_message): Correctly display data on x86_64.
10096 (darwin_encode_reply): Fix style.
10097 Add comments and fix indentation.
10099 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10101 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10103 2014-03-22 Doug Evans <xdje42@gmail.com>
10105 * infcmd.c: Whitespace fixes.
10106 (interrupt_command): Merge two function comments into one.
10108 2014-03-22 Doug Evans <xdje42@gmail.com>
10110 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10113 2014-03-22 Yao Qi <yao@codesourcery.com>
10115 * remote.c (target_read_live_memory): Remove.
10116 (memory_xfer_live_readonly_partial): Rename it to
10117 remote_xfer_live_readonly_partial. Remove argument 'object'.
10118 All callers updated. Call remote_read_bytes_1
10119 instead of target_read_live_memory.
10120 * tracepoint.c (set_traceframe_number): Remove.
10121 (make_cleanup_restore_traceframe_number): Likewise .
10122 * tracepoint.h (set_traceframe_number): Remove declaration.
10123 (make_cleanup_restore_traceframe_number): Likewise.
10125 2014-03-22 Yao Qi <yao@codesourcery.com>
10127 * remote.c (remote_read_bytes): Move code on reading from the
10129 (remote_read_bytes_1): ... here. New function.
10131 2014-03-22 Yao Qi <yao@codesourcery.com>
10133 * ctf.c (ctf_xfer_partial): Check the return value of
10134 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10135 return TARGET_XFER_UNAVAILABLE.
10136 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10137 * target.c (target_read_live_memory): Move it to remote.c.
10138 (memory_xfer_live_readonly_partial): Likewise.
10139 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10140 * remote.c (target_read_live_memory): Moved from target.c.
10141 (memory_xfer_live_readonly_partial): Likewise.
10142 (remote_read_bytes): Factored out from
10143 memory_xfer_partial_1.
10145 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10147 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10150 2014-03-21 Pedro Alves <palves@redhat.com>
10152 * infrun.c (normal_stop): Extend comment.
10154 2014-03-21 Hui Zhu <hui@codesourcery.com>
10155 Pedro Alves <palves@redhat.com>
10157 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10159 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10160 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10161 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10163 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10165 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10166 `z' formatted output modifier.
10168 2014-03-20 Tom Tromey <tromey@redhat.com>
10169 Sergio Durigan Junior <sergiodj@redhat.com>
10171 * probe.c (parse_probes): Turn assert into an ordinary error.
10172 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10173 exceptions when parsing probes. Rearrange the code for clarity.
10175 2014-03-20 Tom Tromey <tromey@redhat.com>
10178 * top.c (execute_command): Only dispatch events if the command
10179 started the target.
10181 2014-03-20 Tom Tromey <tromey@redhat.com>
10184 * infcall.c: Include event-top.h.
10185 (run_inferior_call): Call async_disable_stdin if needed.
10187 2014-03-20 Pedro Alves <palves@redhat.com>
10189 * infrun.c (prepare_to_proceed): Delete.
10190 (thread_still_needs_step_over): New function.
10191 (find_thread_needs_step_over): New function.
10192 (proceed): If the current thread needs a step-over, set its
10193 steping_over_breakpoint flag. Adjust to use
10194 find_thread_needs_step_over instead of prepare_to_proceed.
10195 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10196 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10198 (switch_back_to_stepped_thread): Step over breakpoints of all
10199 threads not the stepping thread, before switching back to the
10202 2014-03-20 Pedro Alves <palves@redhat.com>
10204 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10206 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10207 * infrun.c (saved_singlestep_ptid)
10208 (stepping_past_singlestep_breakpoint): Delete.
10209 (resume): Remove stepping_past_singlestep_breakpoint handling.
10210 (proceed): Store the prev_pc of the stepping thread too.
10211 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10213 (enum infwait_states): Delete infwait_thread_hop_state.
10214 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10216 (handle_inferior_event): Adjust.
10217 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10218 handling and the thread-hop code. Before removing single-step
10219 breakpoints, check whether the thread hit a single-step breakpoint
10220 of another thread. If it did, the trap is not a random signal.
10221 (switch_back_to_stepped_thread): If the event thread hit a
10222 single-step breakpoint, unblock it before switching to the
10223 stepping thread. Handle the case of the stepped thread having
10225 (keep_going): Handle the case of the current thread moving past a
10226 single-step breakpoint.
10228 2014-03-20 Pedro Alves <palves@redhat.com>
10230 PR breakpoints/7143
10231 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10232 are being stepped over.
10233 (breakpoint_address_match): Make extern.
10234 * breakpoint.h (breakpoint_address_match): New declaration.
10235 * inferior.h (stepping_past_instruction_at): New declaration.
10236 * infrun.c (struct step_over_info): New type.
10237 (step_over_info): New global.
10238 (set_step_over_info, clear_step_over_info)
10239 (stepping_past_instruction_at): New functions.
10240 (handle_inferior_event): Clear the step-over info when
10241 trap_expected is cleared.
10242 (resume): Remove now stale comment.
10243 (clear_proceed_status): Clear step-over info.
10244 (proceed): Adjust step-over handling to set or clear the step-over
10245 info instead of removing all breakpoints.
10246 (handle_signal_stop): When setting up a thread-hop, don't remove
10248 (stop_stepping): Clear step-over info.
10249 (keep_going): Adjust step-over handling to set or clear step-over
10250 info and then always inserting breakpoints, instead of removing
10251 all breakpoints when stepping over one.
10253 2014-03-20 Pedro Alves <palves@redhat.com>
10255 * infrun.c (previous_inferior_ptid): Adjust comment.
10256 (deferred_step_ptid): Delete.
10257 (infrun_thread_ptid_changed, prepare_to_proceed)
10258 (init_wait_for_inferior): Adjust.
10259 (handle_signal_stop): Delete deferred_step_ptid handling.
10261 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10264 * defs.h (sync_quit_force_run): New declaration.
10265 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10266 * event-top.c (async_sigterm_handler): New declaration.
10267 (async_sigterm_token): New variable.
10268 (async_init_signals): Create also async_sigterm_token.
10269 (async_sigterm_handler): New function.
10270 (sync_quit_force_run): New variable.
10271 (handle_sigterm): Replace quit_force call by other calls.
10272 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10274 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10276 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10277 offset into SPE pseudo registers.
10279 2014-03-18 Pedro Alves <palves@redhat.com>
10282 * inferior.h (print_stop_event): Declare.
10283 * infrun.c (print_stop_event): New, factored out from ...
10284 (normal_stop): ... this.
10285 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10286 of bpstat_print/print_stack_frame.
10288 2014-03-17 Tom Tromey <tromey@redhat.com>
10290 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10292 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10294 * ada-lang.c (decode_constrained_packed_array): Perform a
10295 minimal coercion for reference with coerce_ref instead of
10298 2014-03-17 Tristan Gingold <gingold@adacore.com>
10300 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10301 (darwin_solib_create_inferior_hook): Emit a warning if version
10304 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10306 * python/py-value.c (get_field_flag): Cast flag_name argument to
10307 PyObject_GetAttrString to support Python 2.4.
10309 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10311 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10312 (Global Maintainers): Remove Jan Kratochvil.
10314 2014-03-14 Pedro Alves <palves@redhat.com>
10316 * inferior.h (terminal_ours_for_output): Rename to ...
10317 (child_terminal_ours_for_output): ... this.
10318 (terminal_save_ours): Rename to ...
10319 (child_terminal_save_ours): ... this.
10320 (terminal_ours): Rename to ...
10321 (child_terminal_ours): ... this.
10322 (terminal_inferior): Rename to ...
10323 (child_terminal_inferior): ... this.
10324 (terminal_init_inferior): Rename to ...
10325 (child_terminal_init_inferior): ... this.
10326 (terminal_init_inferior_with_pgrp): Rename to ...
10327 (child_terminal_init_inferior_with_pgrp): ... this.
10328 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10329 (child_terminal_init_with_pgrp): ... this.
10330 (terminal_save_ours): Rename to ...
10331 (child_terminal_save_ours): ... this.
10332 (terminal_init_inferior): Rename to ...
10333 (child_terminal_init): ... this. Adjust.
10334 (terminal_inferior): Rename to ...
10335 (child_terminal_inferior): ... this.
10336 (terminal_ours_for_output): Rename to ...
10337 (child_terminal_ours_for_output): ... this. Adjust.
10338 (terminal_ours): Rename to ...
10339 (child_terminal_ours): ... this.
10340 (terminal_ours_1): Rename to ...
10341 (child_terminal_ours_1): ... this. Adjust.
10342 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10343 * windows-nat.c (do_initial_windows_stuff): Adjust.
10344 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10345 (gnu_terminal_init): ... this. Adjust.
10346 (gnu_target): Adjust.
10347 * inf-child.c (inf_child_target): Adjust.
10349 2014-03-13 Doug Evans <xdje42@gmail.com>
10352 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10355 2014-03-13 Doug Evans <xdje42@gmail.com>
10357 * value.c (record_latest_value): Call release_value_or_incref
10358 instead of release_value.
10360 2014-03-13 Pedro Alves <palves@redhat.com>
10362 * procfs.c (procfs_target): Don't override to_shortname,
10363 to_longname or to_doc.
10365 2014-03-13 Pedro Alves <palves@redhat.com>
10367 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10368 Unix in user visible strings.
10370 2014-03-12 Stan Shebs <stan@codesourcery.com>
10372 * gdbtypes.h: Annotate comments for Doxygen, add a page
10373 block comment with some general info.
10375 2014-03-12 Pedro Alves <palves@redhat.com>
10377 * infcmd.c (prepare_execution_command): New function, factored out
10378 from several execution commands.
10379 (run_command_1, continue_command, step_1, jump_command)
10380 (signal_command, until_command, advance_command, finish_command)
10381 (attach_command): Use prepare_execution_command.
10383 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10385 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10386 (MAX_BPTS): Define.
10387 (MAX_WPTS): Define.
10388 (struct arm_linux_thread_points): Removed.
10389 (struct arm_linux_process_info): New.
10390 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10391 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10392 (arm_linux_find_breakpoints_by_tid): Removed.
10393 (struct arch_lwp_info): New.
10394 (arm_linux_find_process_pid): New functions.
10395 (arm_linux_add_process): New functions.
10396 (arm_linux_process_info_get): New functions.
10397 (arm_linux_forget_process): New function.
10398 (arm_linux_get_debug_reg_state): New function.
10399 (struct update_registers_data): New.
10400 (update_registers_callback): New function.
10401 (arm_linux_insert_hw_breakpoint1): Updated.
10402 (arm_linux_remove_hw_breakpoint1): Updated.
10403 (arm_linux_insert_hw_breakpoint): Updated.
10404 (arm_linux_remove_hw_breakpoint): Updated.
10405 (arm_linux_insert_watchpoint): Updated.
10406 (arm_linux_remove_watchpoint): Updated.
10407 (arm_linux_new_thread): Updated.
10408 (arm_linux_prepare_to_resume): New function.
10409 (arm_linux_new_fork): New function.
10410 (_initialize_arm_linux_nat): Updated.
10412 2014-03-12 Pedro Alves <palves@redhat.com>
10414 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10416 2014-03-12 Tom Tromey <tromey@redhat.com>
10418 * inf-child.c (return_zero): New function.
10419 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10420 * aix-thread.c (aix_thread_inferior_created): New function.
10421 (aix_thread_attach): Remove.
10422 (init_aix_thread_ops): Don't set to_attach.
10423 (_initialize_aix_thread): Register inferior_created observer.
10424 * corelow.c (init_core_ops): Don't set to_attach or
10425 to_create_inferior.
10426 * exec.c (init_exec_ops): Don't set to_attach or
10427 to_create_inferior.
10428 * infcmd.c (run_command_1): Use find_run_target. Make direct
10430 (attach_command): Use find_attach_target. Make direct target
10432 * record-btrace.c (init_record_btrace_ops): Don't set
10433 to_create_inferior.
10434 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10436 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10437 set to_create_inferior.
10438 * target.c (complete_target_initialization): Add assertion.
10439 (target_create_inferior): Remove.
10440 (find_default_attach, find_default_create_inferior): Remove.
10441 (find_attach_target, find_run_target): New functions.
10442 (find_default_is_async_p, find_default_can_async_p)
10443 (target_supports_non_stop, target_attach): Remove.
10444 (init_dummy_target): Don't set to_create_inferior or
10445 to_supports_non_stop.
10446 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10447 TARGET_DEFAULT_FUNC.
10448 <to_create_inferior>: Add comment.
10449 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10450 TARGET_DEFAULT_RETURN.
10451 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10452 (find_attach_target, find_run_target): Declare.
10453 (target_create_inferior): Remove.
10454 (target_has_execution_1): Update comment.
10455 (target_supports_non_stop): Remove.
10456 * target-delegates.c: Rebuild.
10458 2014-03-12 Pedro Alves <palves@redhat.com>
10460 * inf-child.h: Update comment to not mention Unix.
10462 2014-03-12 Pedro Alves <palves@redhat.com>
10464 * inf-child.c: Update top comment to not mention Unix. Add
10465 generic comment describing how this target is meant to be used.
10466 (inf_child_post_attach, inf_child_post_startup_inferior)
10467 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10470 2014-03-12 Pedro Alves <palves@redhat.com>
10472 * nto-procfs.c: Include inf-child.h.
10473 (procfs_ops): Delete global.
10474 (procfs_can_run): Delete method.
10475 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10476 target pointer instead of referencing procfs_ops.
10477 (procfs_prepare_to_store): Delete.
10478 (init_procfs_ops): Delete function.
10479 (procfs_target): New function, based on init_procfs_ops, but
10480 inherit inf_child_target.
10481 (_initialize_procfs): Use procfs_target.
10483 2014-03-12 Pedro Alves <palves@redhat.com>
10485 * windows-nat.c: Include inf-child.h.
10486 (windows_ops): Delete global.
10487 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10489 (init_windows_ops): Delete function.
10490 (windows_target): New function, based on init_windows_ops, but
10491 inherit inf_child_target.
10492 (_initialize_windows_nat): Use windows_target. Install x86
10493 specific target methods here.
10495 2014-03-10 Doug Evans <xdje42@gmail.com>
10497 * guile/guile.c (call_initialize_gdb_module): New function.
10498 (initialize_guile): Replace call to scm_init_guile with call to
10501 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10503 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10504 in call to TYPE_CODE macro.
10506 2014-03-10 Jerome Guitton <guitton@adacore.com>
10508 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10509 Resolve tagged types to full view.
10511 2014-03-10 Hui Zhu <hui@codesourcery.com>
10513 * target.h (target_insert_breakpoint): Remove "hardware" from its
10516 2014-03-07 Doug Evans <dje@google.com>
10518 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10520 2014-03-07 Doug Evans <dje@google.com>
10522 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10523 Remove unused local comp_dir_attr. Assert exactly one of
10524 stub_comp_unit_die, stub_comp_dir is non-NULL.
10526 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10528 * target.h (complete_target_initialization, add_target):
10531 2014-03-07 Pedro Alves <palves@redhat.com>
10533 * go32-nat.c: Include inf-child.h.
10534 (go32_ops): Delete global.
10535 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10537 (go32_create_inferior): Push the passed in target pointer instead
10538 of referencing go32_ops.
10539 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10540 (go32_target): New function, based on init_go32_ops, but inherit
10542 (_initialize_go32_nat): Use go32_target. Move parts of
10543 init_go32_ops here.
10545 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10547 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10548 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10549 SYMBOL_VALUE_ADDRESS.
10550 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10552 2014-03-06 Yao Qi <yao@codesourcery.com>
10554 * breakpoint.c (get_tracepoint_by_number): Remove argument
10555 optional_p. All callers updated. Adjust comments. Update
10557 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10559 2014-03-06 Yao Qi <yao@codesourcery.com>
10561 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10562 early if get_number returns zero. Use 'p' instead of 'args'.
10564 2014-03-06 Yao Qi <yao@codesourcery.com>
10566 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10569 2014-03-06 Yao Qi <yao@codesourcery.com>
10571 PR breakpoints/16508
10572 * tracepoint.c (check_trace_running): New function.
10573 (trace_find_command): Move code to check_trace_running and
10574 call check_trace_running.
10575 (trace_find_pc_command): Likewise.
10576 (trace_find_tracepoint_command): Likewise.
10577 (trace_find_line_command): Likewise.
10578 (trace_find_range_command): Likewise.
10579 * tracepoint.h (check_trace_running): Likewise.
10580 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10582 2014-03-06 Yao Qi <yao@codesourcery.com>
10584 * target.h (struct target_ops) <to_traceframe_info>: Use
10585 TARGET_DEFAULT_NORETURN (tcomplain ()).
10586 * target-delegates.c: Regenerated.
10588 2014-03-05 Pedro Alves <palves@redhat.com>
10591 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10592 void. Update comment.
10593 (dcache_xfer_memory): Delete.
10594 (dcache_read_memory_partial): New, based on the read bits of
10595 dcache_xfer_memory.
10596 (dcache_update): Add status parameter. Use ULONGEST for len, and
10597 adjust. Discard cache lines if the reason for the update was
10599 * dcache.h (dcache_xfer_memory): Delete declaration.
10600 (dcache_read_memory_partial): New declaration.
10601 (dcache_update): Update prototype.
10602 * target.c (raw_memory_xfer_partial): Update the dcache here.
10603 (memory_xfer_partial_1): Don't handle dcache writes here.
10605 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10607 * remote-sim.c (gdbsim_load): Add const to prog.
10609 2014-03-03 Tom Tromey <tromey@redhat.com>
10611 * elfread.c (probe_key): Change to bfd_data.
10612 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10613 now per-BFD, not per-objfile.
10614 * stap-probe.c (stap_probe_destroy): Update comment.
10615 (handle_stap_probe): Allocate on the per-BFD obstack.
10617 2014-03-03 Tom Tromey <tromey@redhat.com>
10619 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10620 * breakpoint.c (create_longjmp_master_breakpoint): Use
10622 (add_location_to_breakpoint, bkpt_probe_insert_location)
10623 (bkpt_probe_remove_location): Update.
10624 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10625 * elfread.c (elf_symfile_relocate_probe): Remove.
10626 (elf_probe_fns): Update.
10627 (insert_exception_resume_breakpoint): Change type of "probe"
10628 parameter to bound_probe.
10629 (check_exception_resume): Update.
10630 * objfiles.c (objfile_relocate1): Don't relocate probes.
10631 * probe.c (bound_probe_s): New typedef.
10632 (parse_probes): Use get_probe_address. Set sal's objfile.
10633 (find_probe_by_pc): Return a bound_probe.
10634 (collect_probes): Return a VEC(bound_probe_s).
10635 (compare_probes): Update.
10636 (gen_ui_out_table_header_info): Change type of "probes"
10638 (info_probes_for_ops): Update.
10639 (get_probe_address): New function.
10640 (probe_safe_evaluate_at_pc): Update.
10641 * probe.h (struct probe_ops) <get_probe_address>: New field.
10642 <set_semaphore, clear_semaphore>: Add objfile parameter.
10643 (struct probe) <objfile>: Remove field.
10645 <address>: Update comment.
10646 (struct bound_probe): New.
10647 (find_probe_by_pc): Return a bound_probe.
10648 (get_probe_address): Declare.
10649 * solib-svr4.c (struct probe_and_action) <address>: New field.
10650 (hash_probe_and_action, equal_probe_and_action): Update.
10651 (register_solib_event_probe): Add address parameter.
10652 (solib_event_probe_at): Update.
10653 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10655 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10656 (stap_get_probe_address): New function.
10657 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10658 (compile_probe_arg): Update.
10659 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10661 (handle_stap_probe): Don't relocate the probe.
10662 (stap_relocate): Remove.
10663 (stap_gen_info_probes_table_values): Update.
10664 (stap_probe_ops): Remove stap_relocate.
10665 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10666 (debug_sym_probe_fns): Update.
10667 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10668 * symtab.c (init_sal): Use memset.
10669 * symtab.h (struct symtab_and_line) <objfile>: New field.
10670 * tracepoint.c (start_tracing, stop_tracing): Update.
10672 2014-03-03 Tom Tromey <tromey@redhat.com>
10674 * probe.h (parse_probes, find_probe_by_pc)
10675 (find_probes_in_objfile): Fix comments.
10677 2014-03-02 Doug Evans <xdje42@gmail.com>
10679 * infrun.c (handle_signal_stop): Replace test for
10680 TARGET_WAITKIND_STOPPED with an assert.
10682 2014-03-02 Doug Evans <xdje42@gmail.com>
10684 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10686 2014-03-02 Doug Evans <xdje42@gmail.com>
10688 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10690 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10692 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10694 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10696 * i386obsd-nat.c: Include "obsd-nat.h".
10697 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10699 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10701 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10703 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10705 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10707 * mips64obsd-nat.c: Include "obsd-nath".
10708 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10710 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10712 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10714 * amd64obsd-nat.c: Include "obsd-nat,h.
10715 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10717 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10719 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10721 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10722 (find_overload_match): Update call to find_oload_champ.
10723 (find_oload_champ_namespace_loop): Likewise
10725 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10727 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10729 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10730 * config/sparc/obsd64.mh: New file.
10731 * sparc64obsd-nat.c: New file.
10733 * obsd-nat.h: New file.
10734 * obsd-nat.c: New file.
10735 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10736 (ALLDEPFILES): Add obsd-nat.c.
10738 2014-02-28 Tom Tromey <tromey@redhat.com>
10740 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10741 * cli-out.h (cli_ui_out_impl): Now const.
10742 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10743 * ui-out.c (struct ui_out) <impl>: Now const.
10744 (default_ui_out_impl): Now const.
10745 (ui_out_new): Make 'impl' parameter const.
10746 * ui-out.h (ui_out_new): Update.
10748 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10750 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10752 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10754 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10756 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10758 Additional PR 8882 fix.
10759 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10761 2014-02-27 Pedro Alves <palves@redhat.com>
10763 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10766 2014-02-27 Pedro Alves <palves@redhat.com>
10769 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10770 * nat/linux-waitpid.c: Include string.h.
10771 (status_to_str): Moved here and made extern.
10772 * nat/linux-waitpid.h (status_to_str): New declaration.
10774 2014-02-27 Hui Zhu <hui@codesourcery.com>
10777 * infrun.c (ptid_match): Move ...
10778 * common/ptid.c (ptid_match): ... here.
10779 * inferior.h (ptid_match): Move ...
10780 * common/ptid.h (ptid_match): ... here.
10782 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10784 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10785 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10788 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10790 * obsd-tdep.c (obsd_auxv_parse): New function.
10791 (obsd_init_abi): Set auxv_parse.
10793 * gdbarch.sh (auxv_parse): New.
10794 * gdbarch.h: Regenerated.
10795 * gdbarch.c: Regenerated.
10796 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10798 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10800 * guile/scm-value.c (gdbscm_history_append_x): New function.
10801 (value_functions): Add it.
10803 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10805 * dwarf2read.c (attr_value_as_address): New function.
10806 (dwarf2_find_base_address, read_call_site_scope): Use
10807 attr_value_as_address in place of DW_ADDR.
10808 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10809 the low and high addresses. Slight rework of the handling
10810 of the high pc being a constant form, and limit it to
10811 DWARF verson 4 or higher.
10812 (dwarf2_record_block_ranges): Likewise.
10813 (read_partial_die): Likewise.
10814 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10816 2014-02-26 Tom Tromey <tromey@redhat.com>
10818 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10820 2014-02-26 Tom Tromey <tromey@redhat.com>
10822 * elfread.c (elf_read_minimal_symbols): Return early if
10823 minimal symbols have already been read. Add "ei" parameter.
10824 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10825 * minsyms.c (prim_record_minimal_symbol_full): Update.
10826 * objfiles.h (struct objstats) <n_minsyms>: Move...
10827 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10828 * symmisc.c (print_objfile_statistics): Update.
10830 2014-02-26 Tom Tromey <tromey@redhat.com>
10832 * elfread.c (elf_read_minimal_symbols): New function, from
10834 (elf_symfile_read): Call it.
10836 2014-02-26 Tom Tromey <tromey@redhat.com>
10838 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10839 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10840 (lookup_minimal_symbol_solib_trampoline)
10841 (lookup_minimal_symbol_by_pc_section_1)
10842 (lookup_minimal_symbol_and_objfile): Update.
10843 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10844 Don't allocate a minimal symbol if minsyms have already been read.
10845 (build_minimal_symbol_hash_tables): Update.
10846 (install_minimal_symbols): Do nothing if minsyms already read.
10847 Use the per-BFD obstack.
10848 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10849 * objfiles.c (allocate_objfile): Call
10850 terminate_minimal_symbol_table later.
10851 (have_minimal_symbols): Update.
10852 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10853 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10854 Move from struct objfile.
10855 <minsyms_read>: New field.
10856 (struct objfile) <msymbols, minimal_symbol_count,
10857 msymbol_hash, msymbol_demangled_hash>: Move.
10858 (ALL_OBJFILE_MSYMBOLS): Update.
10859 * symfile.c (read_symbols): Set minsyms_read.
10860 (reread_symbols): Update.
10861 * symmisc.c (dump_objfile, dump_msymbols): Update.
10863 2014-02-26 Tom Tromey <tromey@redhat.com>
10865 * minsyms.c (msymbols_sort): Remove.
10866 * minsyms.h (msymbols_sort): Remove.
10867 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10868 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10869 * elfread.c (elf_symtab_read): Don't add section offsets.
10870 * xcoffread.c (record_minimal_symbol): Don't add section offset
10871 to minimal symbol address.
10872 * somread.c (text_offset, data_offset): Remove.
10873 (som_symtab_read): Don't add section offsets to minimal symbol
10875 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10876 Don't add section offsets to minimal symbols.
10877 * coffread.c (coff_symtab_read): Don't add section offsets
10878 to minimal symbol addresses.
10879 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10880 to minimal symbol addresses.
10881 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10882 section offset to minimal symbol addresses.
10883 * mdebugread.c (parse_partial_symbols): Don't add section
10884 offset to minimal symbol addresses.
10885 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10886 offset to minimal symbol addresses.
10888 2014-02-26 Tom Tromey <tromey@redhat.com>
10890 * ada-lang.c (ada_main_name): Update.
10891 (ada_add_standard_exceptions): Update.
10892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10893 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10894 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10895 * auxv.c (ld_so_xfer_auxv): Update.
10896 * avr-tdep.c (avr_scan_prologue): Update.
10897 * ax-gdb.c (gen_var_ref): Update.
10898 * blockframe.c (get_pc_function_start)
10899 (find_pc_partial_function_gnu_ifunc): Update.
10900 * breakpoint.c (create_overlay_event_breakpoint)
10901 (create_longjmp_master_breakpoint)
10902 (create_std_terminate_master_breakpoint)
10903 (create_exception_master_breakpoint): Update.
10904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10905 * c-valprint.c (c_val_print): Update.
10906 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10907 * common/agent.c (agent_look_up_symbols): Update.
10908 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10909 * dwarf2loc.c (call_site_to_target_addr): Update.
10910 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10911 * elfread.c (elf_gnu_ifunc_record_cache)
10912 (elf_gnu_ifunc_resolve_by_got): Update.
10913 * findvar.c (default_read_var_value): Update.
10914 * frame.c (inside_main_func): Update.
10915 * frv-tdep.c (frv_frame_this_id): Update.
10916 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10917 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10919 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10920 (hppa_hpux_find_dummy_bpaddr): Update.
10921 * hppa-tdep.c (hppa_symbol_address): Update.
10922 * infcmd.c (until_next_command): Update.
10923 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10925 * linespec.c (minsym_found, add_minsym): Update.
10926 * linux-nat.c (get_signo): Update.
10927 * linux-thread-db.c (inferior_has_bug): Update.
10928 * m32c-tdep.c (m32c_return_value)
10929 (m32c_m16c_address_to_pointer): Update.
10930 * m32r-tdep.c (m32r_frame_this_id): Update.
10931 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10932 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10933 * maint.c (maintenance_translate_address): Update.
10934 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10935 (frob_address): New function.
10936 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10937 frob_address. Rename parameter to "pc_in".
10938 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10940 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10942 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10943 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10944 * objc-lang.c (find_objc_msgsend): Update.
10945 * objfiles.c (objfile_relocate1): Update.
10946 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10947 * p-valprint.c (pascal_val_print): Update.
10948 * parse.c (write_exp_msymbol): Update.
10949 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10950 (ppc_elfv2_skip_entrypoint): Update.
10951 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10952 * printcmd.c (build_address_symbolic, msym_info)
10953 (address_info): Update.
10954 * proc-service.c (ps_pglobal_lookup): Update.
10955 * psymtab.c (find_pc_sect_psymtab_closer)
10956 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10957 Change msymbol parameter to bound_minimal_symbol.
10958 * ravenscar-thread.c (get_running_thread_id): Update.
10959 * remote.c (remote_check_symbols): Update.
10960 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10962 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10963 * solib-dsbt.c (lm_base): Update.
10964 * solib-frv.c (lm_base, main_got): Update.
10965 * solib-irix.c (locate_base): Update.
10966 * solib-som.c (som_solib_create_inferior_hook)
10967 (link_map_start): Update.
10968 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10969 * solib-svr4.c (elf_locate_base, enable_break): Update.
10970 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10971 (flush_ea_cache): Update.
10972 * stabsread.c (define_symbol, scan_file_globals): Update.
10973 * stack.c (find_frame_funname): Update.
10974 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10975 (debug_qf_find_pc_sect_symtab): Update.
10976 * symfile.c (simple_read_overlay_table)
10977 (simple_overlay_update): Update.
10978 * symfile.h (struct quick_symbol_functions)
10979 <find_pc_sect_symtab>: Change type of msymbol to
10980 bound_minimal_symbol.
10981 * symmisc.c (dump_msymbols): Update.
10982 * symtab.c (find_pc_sect_symtab_via_partial)
10983 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10984 (search_symbols, print_msymbol_info): Update.
10985 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10986 (MSYMBOL_VALUE_ADDRESS): Redefine.
10987 (BMSYMBOL_VALUE_ADDRESS): New macro.
10988 * tracepoint.c (scope_info): Update.
10989 * tui/tui-disasm.c (tui_find_disassembly_address)
10990 (tui_get_begin_asm_address): Update.
10991 * valops.c (find_function_in_inferior): Update.
10992 * value.c (value_static_field, value_fn_field): Update.
10994 2014-02-26 Tom Tromey <tromey@redhat.com>
10996 * ada-lang.c (ada_update_initial_language): Update.
10997 (ada_main_name, ada_has_this_exception_support): Update.
10998 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10999 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11000 * arm-tdep.c (arm_skip_stub): Update.
11001 * auxv.c (ld_so_xfer_auxv): Update.
11002 * avr-tdep.c (avr_scan_prologue): Update.
11003 * ax-gdb.c (gen_var_ref): Update.
11004 * breakpoint.c (struct breakpoint_objfile_data)
11005 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11006 type to bound_minimal_symbol.
11007 (create_overlay_event_breakpoint)
11008 (create_longjmp_master_breakpoint)
11009 (create_std_terminate_master_breakpoint)
11010 (create_exception_master_breakpoint): Update.
11011 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11012 * c-exp.y (classify_name): Update.
11013 * coffread.c (coff_symfile_read): Update.
11014 * common/agent.c (agent_look_up_symbols): Update.
11015 * d-lang.c (d_main_name): Update.
11016 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11017 * dec-thread.c (enable_dec_thread): Update.
11018 * dwarf2loc.c (call_site_to_target_addr): Update.
11019 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11020 * eval.c (evaluate_subexp_standard): Update.
11021 * findvar.c (struct minsym_lookup_data) <result>: Change type
11022 to bound_minimal_symbol.
11024 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11025 * frame.c (inside_main_func): Update.
11026 * frv-tdep.c (frv_frame_this_id): Update.
11027 * gcore.c (call_target_sbrk): Update.
11028 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11029 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11031 * go-lang.c (go_main_name): Update.
11032 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11033 (hppa_hpux_find_import_stub_for_addr): Update.
11034 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11035 Update. Change return type.
11036 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11038 * jit.c (jit_breakpoint_re_set_internal): Update.
11039 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11041 * linux-nat.c (get_signo): Update.
11042 * linux-thread-db.c (inferior_has_bug): Update
11043 * m32c-tdep.c (m32c_return_value)
11044 (m32c_m16c_address_to_pointer): Update.
11045 * m32r-tdep.c (m32r_frame_this_id): Update.
11046 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11047 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11048 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11049 lookup_minimal_symbol. Change return type.
11050 (lookup_minimal_symbol): Remove.
11051 (lookup_bound_minimal_symbol): Update.
11052 (lookup_minimal_symbol_text): Change return type.
11053 (lookup_minimal_symbol_solib_trampoline): Change return type.
11054 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11055 (lookup_minimal_symbol_solib_trampoline): Change return type.
11056 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11057 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11058 (value_nsstring, find_imps): Update.
11059 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11060 * p-lang.c (pascal_main_name): Update.
11061 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11062 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11063 * proc-service.c (ps_pglobal_lookup): Update.
11064 * ravenscar-thread.c (get_running_thread_msymbol): Change
11066 (has_ravenscar_runtime, get_running_thread_id): Update.
11067 * remote.c (remote_check_symbols): Update.
11068 * sol-thread.c (ps_pglobal_lookup): Update.
11069 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11070 * solib-dsbt.c (lm_base): Update.
11071 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11073 * solib-irix.c (locate_base): Update.
11074 * solib-som.c (som_solib_create_inferior_hook)
11075 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11077 * solib-spu.c (spu_enable_break): Update.
11078 * solib-svr4.c (elf_locate_base, enable_break): Update.
11079 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11080 (flush_ea_cache): Update.
11081 * stabsread.c (define_symbol): Update.
11082 * symfile.c (simple_read_overlay_table): Update.
11083 * symtab.c (find_pc_sect_line): Update.
11084 * tracepoint.c (scope_info): Update.
11085 * tui-disasm.c (tui_get_begin_asm_address): Update.
11086 * value.c (value_static_field): Update.
11088 2014-02-26 Tom Tromey <tromey@redhat.com>
11090 * minsyms.c (prim_record_minimal_symbol_full): Use
11091 SET_MSYMBOL_VALUE_ADDRESS.
11092 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11093 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11094 SET_MSYMBOL_VALUE_ADDRESS.
11095 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11096 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11098 2014-02-26 Tom Tromey <tromey@redhat.com>
11100 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11101 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11102 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11103 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11104 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11105 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11106 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11107 * ada-lang.c (ada_main_name): Update.
11108 (ada_lookup_simple_minsym): Update.
11109 (ada_make_symbol_completion_list): Update.
11110 (ada_add_standard_exceptions): Update.
11111 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11112 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11113 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11114 * arm-tdep.c (skip_prologue_function): Update.
11115 (arm_skip_stack_protector, arm_skip_stub): Update.
11116 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11117 (arm_wince_skip_main_prologue): Update.
11118 * auxv.c (ld_so_xfer_auxv): Update.
11119 * avr-tdep.c (avr_scan_prologue): Update.
11120 * ax-gdb.c (gen_var_ref): Update.
11121 * block.c (call_site_for_pc): Update.
11122 * blockframe.c (get_pc_function_start): Update.
11123 (find_pc_partial_function_gnu_ifunc): Update.
11124 * breakpoint.c (create_overlay_event_breakpoint): Update.
11125 (create_longjmp_master_breakpoint): Update.
11126 (create_std_terminate_master_breakpoint): Update.
11127 (create_exception_master_breakpoint): Update.
11128 (resolve_sal_pc): Update.
11129 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11130 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11132 * c-valprint.c (c_val_print): Update.
11133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11134 * coffread.c (coff_symfile_read): Update.
11135 * common/agent.c (agent_look_up_symbols): Update.
11136 * dbxread.c (find_stab_function_addr): Update.
11137 (end_psymtab): Update.
11138 * dwarf2loc.c (call_site_to_target_addr): Update.
11139 (func_verify_no_selftailcall): Update.
11140 (tailcall_dump): Update.
11141 (call_site_find_chain_1): Update.
11142 (dwarf_expr_reg_to_entry_parameter): Update.
11143 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11144 (elf_gnu_ifunc_resolve_by_got): Update.
11145 * f-valprint.c (info_common_command): Update.
11146 * findvar.c (read_var_value): Update.
11147 * frame.c (get_prev_frame_1): Update.
11148 (inside_main_func): Update.
11149 * frv-tdep.c (frv_skip_main_prologue): Update.
11150 (frv_frame_this_id): Update.
11151 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11152 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11153 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11154 (gnuv3_skip_trampoline): Update.
11155 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11156 (hppa64_hpux_in_solib_call_trampoline): Update.
11157 (hppa_hpux_skip_trampoline_code): Update.
11158 (hppa64_hpux_search_dummy_call_sequence): Update.
11159 (hppa_hpux_find_import_stub_for_addr): Update.
11160 (hppa_hpux_find_dummy_bpaddr): Update.
11161 * hppa-tdep.c (hppa_symbol_address)
11162 (hppa_lookup_stub_minimal_symbol): Update.
11163 * i386-tdep.c (i386_skip_main_prologue): Update.
11164 (i386_pe_skip_trampoline_code): Update.
11165 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11166 * infcall.c (get_function_name): Update.
11167 * infcmd.c (until_next_command): Update.
11168 * jit.c (jit_breakpoint_re_set_internal): Update.
11169 (jit_inferior_init): Update.
11170 * linespec.c (minsym_found): Update.
11171 (add_minsym): Update.
11172 * linux-fork.c (info_checkpoints_command): Update.
11173 * linux-nat.c (get_signo): Update.
11174 * linux-thread-db.c (inferior_has_bug): Update.
11175 * m32c-tdep.c (m32c_return_value): Update.
11176 (m32c_m16c_address_to_pointer): Update.
11177 (m32c_m16c_pointer_to_address): Update.
11178 * m32r-tdep.c (m32r_frame_this_id): Update.
11179 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11180 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11181 * maint.c (maintenance_translate_address): Update.
11182 * minsyms.c (add_minsym_to_hash_table): Update.
11183 (add_minsym_to_demangled_hash_table): Update.
11184 (msymbol_objfile): Update.
11185 (lookup_minimal_symbol): Update.
11186 (iterate_over_minimal_symbols): Update.
11187 (lookup_minimal_symbol_text): Update.
11188 (lookup_minimal_symbol_by_pc_name): Update.
11189 (lookup_minimal_symbol_solib_trampoline): Update.
11190 (lookup_minimal_symbol_by_pc_section_1): Update.
11191 (lookup_minimal_symbol_and_objfile): Update.
11192 (prim_record_minimal_symbol_full): Update.
11193 (compare_minimal_symbols): Update.
11194 (compact_minimal_symbols): Update.
11195 (build_minimal_symbol_hash_tables): Update.
11196 (install_minimal_symbols): Update.
11197 (terminate_minimal_symbol_table): Update.
11198 (find_solib_trampoline_target): Update.
11199 (minimal_symbol_upper_bound): Update.
11200 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11201 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11202 (mips_skip_pic_trampoline_code): Update.
11203 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11204 * objc-lang.c (selectors_info): Update.
11205 (classes_info): Update.
11206 (find_methods): Update.
11207 (find_imps): Update.
11208 (find_objc_msgsend): Update.
11209 * objfiles.c (objfile_relocate1): Update.
11210 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11211 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11212 * p-valprint.c (pascal_val_print): Update.
11213 * parse.c (write_exp_msymbol): Update.
11214 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11215 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11217 * printcmd.c (build_address_symbolic): Update.
11218 (sym_info): Update.
11219 (address_info): Update.
11220 * proc-service.c (ps_pglobal_lookup): Update.
11221 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11222 (find_pc_sect_psymtab): Update.
11223 * python/py-framefilter.c (py_print_frame): Update.
11224 * ravenscar-thread.c (get_running_thread_id): Update.
11225 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11227 * remote.c (remote_check_symbols): Update.
11228 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11229 (rs6000_skip_trampoline_code): Update.
11230 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11231 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11232 * solib-dsbt.c (lm_base): Update.
11233 * solib-frv.c (lm_base): Update.
11234 (main_got): Update.
11235 * solib-irix.c (locate_base): Update.
11236 * solib-som.c (som_solib_create_inferior_hook): Update.
11237 (som_solib_desire_dynamic_linker_symbols): Update.
11238 (link_map_start): Update.
11239 * solib-spu.c (spu_enable_break): Update.
11240 (ocl_enable_break): Update.
11241 * solib-svr4.c (elf_locate_base): Update.
11242 (enable_break): Update.
11243 * spu-tdep.c (spu_get_overlay_table): Update.
11244 (spu_catch_start): Update.
11245 (flush_ea_cache): Update.
11246 * stabsread.c (define_symbol): Update.
11247 (scan_file_globals): Update.
11248 * stack.c (find_frame_funname): Update.
11249 (frame_info): Update.
11250 * symfile.c (simple_read_overlay_table): Update.
11251 (simple_overlay_update): Update.
11252 * symmisc.c (dump_msymbols): Update.
11253 * symtab.c (fixup_section): Update.
11254 (find_pc_sect_line): Update.
11255 (skip_prologue_sal): Update.
11256 (search_symbols): Update.
11257 (print_msymbol_info): Update.
11258 (rbreak_command): Update.
11259 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11260 (completion_list_objc_symbol): Update.
11261 (default_make_symbol_completion_list_break_on): Update.
11262 * tracepoint.c (scope_info): Update.
11263 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11264 (tui_get_begin_asm_address): Update.
11265 * valops.c (find_function_in_inferior): Update.
11266 * value.c (value_static_field): Update.
11267 (value_fn_field): Update.
11269 2014-02-26 Tom Tromey <tromey@redhat.com>
11271 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11272 bound minimal symbols. Move code that knows about minsym
11274 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11276 * minsyms.h (minimal_symbol_upper_bound): Declare.
11277 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11278 minimal_symbol_upper_bound.
11280 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11282 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11283 Use the type's name if its basic type does not have a tag.
11285 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11287 * dwarf2read.c (read_subrange_type): Add comment.
11289 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11291 * dwarf2read.c (update_enumeration_type_from_children): New
11292 function, mostly extracted from process_structure_scope.
11293 (read_enumeration_type): Call update_enumeration_type_from_children.
11294 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11295 and flag_flag_enum fields.
11297 2014-02-26 Pedro Alves <palves@redhat.com>
11299 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11300 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11301 to_xfer_partial method.
11303 2014-02-26 Pedro Alves <palves@redhat.com>
11305 * target.c (complete_target_initialization): Don't install
11306 default_xfer_partial as to_xfer_partial hook.
11307 (nomemory): Delete.
11308 (update_current_target): Don't INHERIT nor de_fault
11309 deprecated_xfer_memory. Delete de_fault macro.
11310 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11311 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11312 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11315 2014-02-26 Pedro Alves <palves@redhat.com>
11317 * go32-nat.c (my_write_child): New function.
11318 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11319 (go32_xfer_partial): New function.
11320 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11321 Instead install a to_xfer_partial hook.
11323 2014-02-26 Pedro Alves <palves@redhat.com>
11325 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11326 to_xfer_partial helper. Rewrite.
11327 (procfs_xfer_partial): New function.
11328 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11329 Install a to_xfer_partial hook.
11331 2014-02-26 Pedro Alves <palves@redhat.com>
11333 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11334 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11335 (m32r_xfer_partial): New function.
11336 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11337 Install a to_xfer_partial hook.
11339 2014-02-26 Pedro Alves <palves@redhat.com>
11341 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11343 (mips_xfer_partial): New function.
11344 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11345 hook. Install a to_xfer_partial hook.
11347 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11349 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11350 * gdbtypes.c (create_array_type_with_stride): New function,
11351 renaming create_array_type, but with an added parameter
11352 called "bit_stride".
11353 (create_array_type): Re-implement using
11354 create_array_type_with_stride.
11355 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11356 and DW_AT_bit_stride attributes.
11358 2014-02-26 Pedro Alves <palves@redhat.com>
11360 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11361 task-specific breakpoints.
11363 2014-02-25 Pedro Alves <palves@redhat.com>
11365 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11366 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11368 2014-02-25 Stan Shebs <stan@codesourcery.com>
11370 * defs.h: Annotate comments for Doxygen.
11372 2014-02-25 Tom Tromey <tromey@redhat.com>
11374 * target.h (target_ignore): Don't declare.
11375 * target.c (target_ignore): Remove.
11377 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11380 * auto-load.c (auto_load_objfile_script_1): Change filename to
11383 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11385 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11386 documentation. Adjust prototype to match the target_ops
11387 to_xfer_partial method. Adjust implementation accordingly.
11389 2014-02-25 Hui Zhu <hui@codesourcery.com>
11391 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11392 to_traceframe_info.
11394 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11396 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11397 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11398 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11399 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11400 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11401 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11402 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11403 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11405 (rl78_register_type): Use a data pointer type for SP and
11406 new pseudo registers mentioned above. Use a 16 bit integer
11407 type for all other register pairs.
11408 (rl78_register_name, rl78_g10_register_name): Update for
11409 new pseudo registers.
11410 (rl78_pseudo_register_read): Likewise.
11411 (rl78_pseudo_register_write): Likewise.
11412 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11413 to the newly added pseudo registers.
11415 2014-02-24 Doug Evans <dje@google.com>
11417 * value.c (record_latest_value): Fix comment.
11418 * printcmd.c (print_command_1): Remove code to handle -1 return from
11419 record_latest_value.
11421 2014-02-24 Pedro Alves <palves@redhat.com>
11423 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11424 deprecated_xfer_memory hook.
11425 (procfs_xfer_partial): Call procfs_xfer_memory instead
11426 of the deprecated_xfer_memory target hook.
11427 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11430 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11432 * windows-nat.c (windows_xfer_shared_libraries): Return
11433 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11434 requested object is TARGET_OBJECT_LIBRARIES.
11436 2014-02-24 Yao Qi <yao@codesourcery.com>
11438 * target.h (enum target_xfer_status)
11439 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11440 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11442 * corefile.c (memory_error_message): User updated.
11443 * exec.c (section_table_read_available_memory): Likewise.
11444 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11445 * target.c (target_xfer_status_to_string): Likewise.
11446 (raw_memory_xfer_partial): Likewise.
11447 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11448 * valops.c (read_value_memory): Likewise.
11449 * exec.h: Update comments.
11451 2014-02-24 Yao Qi <yao@codesourcery.com>
11453 * target.c (target_xfer_status_to_string): Rename argument err
11455 * target.h (target_xfer_status_to_string): Update declaration.
11456 Replace target_xfer_error_to_string with
11457 target_xfer_status_to_string in comment.
11459 2014-02-24 Yao Qi <yao@codesourcery.com>
11461 * mips-linux-nat.c (super_close): Update its type.
11462 (mips_linux_close): Pass 'self' to super_close.
11464 2014-02-24 Yao Qi <yao@codesourcery.com>
11466 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11467 * corefile.c (read_memory): Adjusted.
11468 * target.c (target_write_with_progress): Adjusted.
11470 2014-02-23 Yao Qi <yao@codesourcery.com>
11472 Revert two patches:
11474 2013-10-25 Yao Qi <yao@codesourcery.com>
11476 * remote.c (remote_traceframe_info): Return early if
11477 traceframe is not selected.
11479 2013-07-19 Yao Qi <yao@codesourcery.com>
11481 * target.c (update_current_target): Change the default action
11482 of 'to_traceframe_info' from tcomplain to return_zero.
11483 * target.h (struct target_ops) <to_traceframe_info>: Add more
11486 2014-02-23 Yao Qi <yao@codesourcery.com>
11488 * valops.c (read_value_memory): Rewrite it. Call
11489 target_xfer_partial in a loop.
11490 * exec.h (section_table_available_memory): Remove declaration.
11491 Move comments to ...
11492 * exec.c (section_table_available_memory): ... here. Make it
11495 2014-02-23 Yao Qi <yao@codesourcery.com>
11497 * exec.c (section_table_read_available_memory): New function.
11498 * exec.h (section_table_read_available_memory): Declare.
11499 * ctf.c (ctf_xfer_partial): Call
11500 section_table_read_available_memory.
11501 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11503 2014-02-23 Yao Qi <yao@codesourcery.com>
11505 * ctf.c (ctf_xfer_partial): Move code to ...
11506 * exec.c (exec_read_partial_read_only): ... it. New function.
11507 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11508 * tracefile.c: Include "exec.h".
11509 * exec.h (exec_read_partial_read_only): Declare.
11511 2014-02-23 Yao Qi <yao@codesourcery.com>
11513 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11514 (tfile_has_memory): Remove.
11515 (init_tfile_ops): Don't set fields to_has_all_memory and
11516 to_has_memory of tfile_ops.
11517 * tracefile.c (tracefile_has_all_memory): New function.
11518 (tracefile_has_memory): New function.
11519 (init_tracefile_ops): Initialize fields to_has_all_memory and
11520 to_has_memory of 'ops'.
11522 2014-02-23 Yao Qi <yao@codesourcery.com>
11524 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11525 (ctf_thread_alive, ctf_get_trace_status): Remove.
11526 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11527 init_tracefile_ops.
11528 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11529 (tfile_has_stack, tfile_has_registers): Remove.
11530 (tfile_thread_alive): Remove.
11531 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11532 init_tracefile_ops.
11533 * tracefile.c (tracefile_has_stack): New function.
11534 (tracefile_has_registers): New function.
11535 (tracefile_thread_alive): New function.
11536 (tracefile_get_trace_status): New function.
11537 (init_tracefile_ops): New function.
11538 * tracefile.h (init_tracefile_ops): Declare.
11540 2014-02-23 Yao Qi <yao@codesourcery.com>
11542 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11543 (O_LARGEFILE): Likewise.
11544 (tfile_ops): Likewise.
11545 (TRACE_HEADER_SIZE): Likewise.
11546 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11547 (cur_data_size): Likewise.
11548 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11549 (tfile_close, tfile_files_info): Likewise.
11550 (tfile_get_trace_status): Likewise.
11551 (tfile_get_tracepoint_status): Likewise.
11552 (tfile_get_traceframe_address): Likewise.
11553 (tfile_trace_find, match_blocktype): Likewise.
11554 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11555 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11556 (tfile_get_trace_state_variable_value): Likewise.
11557 (tfile_has_all_memory, tfile_has_memory): Likewise.
11558 (tfile_has_stack, tfile_has_registers): Likewise.
11559 (tfile_thread_alive, build_traceframe_info): Likewise.
11560 (tfile_traceframe_info, init_tfile_ops): Likewise.
11561 (_initialize_tracepoint): Don't call init_tfile_ops
11562 and add_target_with_completer.
11563 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11564 exec.h, completer.h and filenames.h.
11565 (_initialize_tracefile_tfile): New function.
11567 2014-02-23 Yao Qi <yao@codesourcery.com>
11569 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11571 (HFILES_NO_SRCDIR): Add tracefile.h.
11572 * ctf.c: Include "tracefile.h".
11573 * tracefile.h: New file.
11574 * tracefile.c: New file
11575 * tracefile-tfile.c: New file.
11576 * tracepoint.c: Include "tracefile.h".
11577 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11578 (stop_reason_names): Add const.
11579 (trace_file_writer_xfree): Move it to tracefile.c.
11580 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11581 (trace_save_ctf): Likewise.
11582 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11583 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11584 (tfile_write_header, tfile_write_regblock_type): Likewise.
11585 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11586 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11587 (tfile_write_raw_data, tfile_end): Likewise.
11588 (tfile_trace_file_writer_new): Likewise.
11589 (free_uploaded_tp): Make it extern.
11590 (free_uploaded_tsv): Make it extern.
11591 (_initialize_tracepoint): Move code to register command 'tsave'
11593 * tracepoint.h (stop_reason_names): Declare.
11594 (struct trace_frame_write_ops): Move it to tracefile.h.
11595 (struct trace_file_write_ops): Likewise.
11596 (struct trace_file_writer): Likewise.
11597 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11599 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11602 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11604 (get_cores_used_by_process): New parameter num_cores, use it.
11605 (linux_xfer_osdata_processes): Pass num_cores to it.
11606 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11609 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11611 * target.c (memory_xfer_partial): Fix length arg in call to
11612 breakpoint_xfer_memory.
11614 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11617 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11618 number comes after the + or - signs. Adjust length of register
11619 name to be extracted.
11621 2014-02-20 Tom Tromey <tromey@redhat.com>
11623 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11624 (ada_varobj_ops): Mark "extern".
11626 2014-02-20 Tom Tromey <tromey@redhat.com>
11628 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11630 2014-02-20 Doug Evans <xdje42@gmail.com>
11632 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11633 All callers updated.
11634 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11635 All callers updated.
11636 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11637 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11639 2014-02-20 lin zuojian <manjian2006@gmail.com>
11640 Joel Brobecker <brobecker@adacore.com>
11641 Doug Evans <xdje42@gmail.com>
11644 * dwarf2read.c (struct die_info): New member in_process.
11645 (reset_die_in_process): New function.
11646 (process_die): Set it at the start, reset when returning.
11647 (inherit_abstract_dies): Only call process_die if origin_child_die
11648 not already being processed.
11650 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11652 * windows-nat.c (handle_unload_dll): Add function documentation.
11653 (do_initial_windows_stuff): Add comment explaining why we wait
11654 until after inferior initialization has finished before
11655 processing all DLLs.
11657 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11659 * windows-nat.c (get_module_name): Delete.
11660 (windows_get_exec_module_filename): New function, mostly
11661 inspired from get_module_name.
11662 (windows_pid_to_exec_file): Replace call to get_module_name
11663 by call to windows_get_exec_module_filename.
11665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11667 * windows-nat.c (handle_load_dll): Rewrite this function's
11668 introductory comment. Remove code using get_module_name
11669 to get the DLL's name.
11671 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11673 * windows-nat.c (get_windows_debug_event): Ignore
11674 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11675 if windows_initialization_done == 0.
11676 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11677 Adjust implementation to always load all DLLs.
11678 (do_initial_windows_stuff): Replace call to
11679 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11681 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11683 * windows-nat.c (_initialize_windows_nat): Deprecate the
11684 "dll-symbols" command. Turn the "add-shared-symbol-files"
11685 and "assf" aliases into commands, and deprecate them as well.
11686 * NEWS: Add entry explaining that "dll-symbols" and its two
11687 aliases are now deprecated.
11689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11691 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11692 new-line in debug string. Remove trailing spaces.
11694 2014-02-19 Stan Shebs <stan@codesourcery.com>
11696 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11698 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11700 * NEWS: Add entry for the new feature
11701 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11704 2014-02-19 Stan Shebs <stan@codesourcery.com>
11706 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11708 2014-02-19 Pedro Alves <palves@redhat.com>
11710 * common/ptid.h (struct ptid): Mention that process_stratum
11711 targets should prefer ptid.lwp.
11713 2014-02-19 Pedro Alves <palves@redhat.com>
11715 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11716 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11717 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11718 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11719 store remote thread ids rather than ptid.tid.
11720 (_initialize_remote): Adjust.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.c (target_get_unwinder): Rewrite.
11725 (target_get_tailcall_unwinder): Rewrite.
11726 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11727 (record_btrace_to_get_tailcall_unwinder): New function.
11728 (init_record_btrace_ops): Update.
11729 * target.h (struct target_ops) <to_get_unwinder,
11730 to_get_tailcall_unwinder>: Now function pointers. Use
11731 TARGET_DEFAULT_RETURN.
11733 2014-02-19 Tom Tromey <tromey@redhat.com>
11735 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11737 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11743 * target-delegates.c: Rebuild.
11744 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11745 TARGET_DEFAULT_FUNC.
11746 * target.c (default_target_decr_pc_after_break): Rename from
11747 forward_target_decr_pc_after_break. Simplify.
11748 (target_decr_pc_after_break): Rely on delegation.
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11752 * target.c (update_current_target): Do not INHERIT to_doc or
11753 to_magic. Do not de_fault to_open or to_close.
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11757 * gcore.h (objfile_find_memory_regions): Declare.
11758 * gcore.c (objfile_find_memory_regions): No longer static. Add
11760 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11761 * exec.c: Include gcore.h.
11762 (exec_set_find_memory_regions): Remove.
11763 (exec_find_memory_regions): Remove.
11764 (exec_do_find_memory_regions): Remove.
11765 (init_exec_ops): Update.
11766 * defs.h (exec_set_find_memory_regions): Remove.
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11770 * target-delegates.c: Rebuild.
11771 * target.h (struct target_ops) <to_extra_thread_info,
11772 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11773 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11774 not 0, in TARGET_DEFAULT_RETURN.
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11778 * target.c (complete_target_initialization): Remove casts. Use
11779 return_zero_has_execution.
11780 (return_zero): Add "ignore" argument.
11781 (return_zero_has_execution): New function.
11782 (init_dummy_target): Remove casts. Use
11783 return_zero_has_execution.
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.c (update_current_target): Update comments. Do not
11788 INHERIT to_stratum.
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11792 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11794 * corelow.c (core_read_description): Delegate when needed.
11795 * remote.c (remote_read_description): Delegate when needed.
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_read_description): Rewrite.
11798 * target.h (struct target_ops) <to_read_description>: Update
11799 comment. Use TARGET_DEFAULT_RETURN.
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11803 * target-delegates.c: Rebuild.
11804 * target.c (update_current_target): Don't inherit or default
11806 (find_default_run_target): Check against delegate_can_run.
11807 * target.h (struct target_ops) <to_can_run>: Use
11808 TARGET_DEFAULT_RETURN.
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_disconnect): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_disconnect>: Use
11815 TARGET_DEFAULT_NORETURN.
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11819 * record.c (record_stop): Unconditionally delegate.
11820 * target-delegates.c: Rebuild.
11821 * target.c (target_stop_recording): Unconditionally delegate.
11822 * target.h (struct target_ops) <to_stop_recording>: Use
11823 TARGET_DEFAULT_IGNORE.
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target-delegates.c: Rebuild.
11828 * target.c (target_enable_btrace): Unconditionally delegate.
11829 * target.h (struct target_ops) <to_enable_btrace>: Use
11830 TARGET_DEFAULT_NORETURN.
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11834 * target-delegates.c: Rebuild.
11835 * target.c (target_read_btrace): Unconditionally delegate.
11836 * target.h (struct target_ops) <to_read_btrace>: Use
11837 TARGET_DEFAULT_NORETURN.
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target-delegates.c: Rebuild.
11842 * target.c (target_teardown_btrace): Unconditionally delegate.
11843 * target.h (struct target_ops) <to_teardown_btrace>: Use
11844 TARGET_DEFAULT_NORETURN.
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11848 * target-delegates.c: Rebuild.
11849 * target.c (target_disable_btrace): Unconditionally delegate.
11850 * target.h (struct target_ops) <to_disable_btrace>: Use
11851 TARGET_DEFAULT_NORETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * target-delegates.c: Rebuild.
11856 * target.c (default_search_memory): New function.
11857 (simple_search_memory): Update comment.
11858 (target_search_memory): Unconditionally delegate.
11859 * target.h (struct target_ops) <to_search_memory>: Use
11860 TARGET_DEFAULT_FUNC.
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11864 * auxv.c (default_auxv_parse): No longer static.
11865 (target_auxv_parse): Unconditionally delegate.
11866 * auxv.h (default_auxv_parse): Declare.
11867 * target-delegates.c: Rebuild.
11868 * target.c: Include auxv.h.
11869 * target.h (struct target_ops) <to_auxv_parse>: Use
11870 TARGET_DEFAULT_FUNC.
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11874 * target-delegates.c: Rebuild.
11875 * target.c (target_memory_map): Unconditionally delegate.
11876 * target.h (struct target_ops) <to_memory_map>: Use
11877 TARGET_DEFAULT_RETURN.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * target-delegates.c: Rebuild.
11882 * target.c (target_thread_alive): Unconditionally delegate.
11883 * target.h (struct target_ops) <to_thread_alive>: Use
11884 TARGET_DEFAULT_RETURN.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target-delegates.c: Rebuild.
11889 * target.c (target_save_record): Unconditionally delegate.
11890 * target.h (struct target_ops) <to_save_record>: Use
11891 TARGET_DEFAULT_NORETURN.
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target-delegates.c: Rebuild.
11896 * target.c (target_delete_record): Unconditionally delegate.
11897 * target.h (struct target_ops) <to_delete_record>: Use
11898 TARGET_DEFAULT_NORETURN.
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11902 * target-delegates.c: Rebuild.
11903 * target.c (target_record_is_replaying): Unconditionally
11905 * target.h (struct target_ops) <to_record_is_replaying>: Use
11906 TARGET_DEFAULT_RETURN.
11908 2014-02-19 Tom Tromey <tromey@redhat.com>
11910 * target-delegates.c: Rebuild.
11911 * target.c (target_goto_record_begin): Unconditionally delegate.
11912 * target.h (struct target_ops) <to_goto_record_begin>: Use
11913 TARGET_DEFAULT_NORETURN.
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11917 * target-delegates.c: Rebuild.
11918 * target.c (target_goto_record_end): Unconditionally delegate.
11919 * target.h (struct target_ops) <to_goto_record_end>: Use
11920 TARGET_DEFAULT_NORETURN.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * target-delegates.c: Rebuild.
11925 * target.c (target_goto_record): Unconditionally delegate.
11926 * target.h (struct target_ops) <to_goto_record>: Use
11927 TARGET_DEFAULT_NORETURN.
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11931 * target-delegates.c: Rebuild.
11932 * target.c (target_insn_history): Unconditionally delegate.
11933 * target.h (struct target_ops) <to_insn_history>: Use
11934 TARGET_DEFAULT_NORETURN.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target-delegates.c: Rebuild.
11939 * target.c (target_insn_history_from): Unconditionally delegate.
11940 * target.h (struct target_ops) <to_insn_history_from>: Use
11941 TARGET_DEFAULT_NORETURN.
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11945 * target-delegates.c: Rebuild.
11946 * target.c (target_insn_history_range): Unconditionally delegate.
11947 * target.h (struct target_ops) <to_insn_history_range>: Use
11948 TARGET_DEFAULT_NORETURN.
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11952 * target-delegates.c: Rebuild.
11953 * target.c (target_call_history): Unconditionally delegate.
11954 * target.h (struct target_ops) <to_call_history>: Use
11955 TARGET_DEFAULT_NORETURN.
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11959 * target-delegates.c: Rebuild.
11960 * target.c (target_call_history_from): Unconditionally delegate.
11961 * target.h (struct target_ops) <to_call_history_from>: Use
11962 TARGET_DEFAULT_NORETURN.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target-delegates.c: Rebuild.
11967 * target.c (target_call_history_range): Unconditionally delegate.
11968 * target.h (struct target_ops) <to_call_history_range>: Use
11969 TARGET_DEFAULT_NORETURN.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target-delegates.c: Rebuild.
11974 * target.c (target_verify_memory): Unconditionally delegate.
11975 * target.h (struct target_ops) <to_verify_memory>: Use
11976 TARGET_DEFAULT_NORETURN.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: Rebuild.
11981 * target.c (target_core_of_thread): Unconditionally delegate.
11982 * target.h (struct target_ops) <to_core_of_thread>: Use
11983 TARGET_DEFAULT_RETURN.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target-delegates.c: Rebuild.
11988 * target.c (target_flash_done): Unconditionally delegate.
11989 * target.h (struct target_ops) <to_flash_done>: Use
11990 TARGET_DEFAULT_NORETURN.
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_flash_erase): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_flash_erase>: Use
11997 TARGET_DEFAULT_NORETURN.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target-delegates.c: Rebuild.
12002 * target.c (target_get_section_table): Unconditionally delegate.
12003 * target.h (struct target_ops) <to_get_section_table>: Use
12004 TARGET_DEFAULT_RETURN.
12006 2014-02-19 Tom Tromey <tromey@redhat.com>
12008 * target-delegates.c: Rebuild.
12009 * target.c (target_pid_to_str): Unconditionally delegate.
12010 (init_dummy_target): Don't initialize to_pid_to_str.
12011 (default_pid_to_str): Rename from dummy_pid_to_str.
12012 * target.h (struct target_ops) <to_pid_to_str>: Use
12013 TARGET_DEFAULT_FUNC.
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12017 * target-delegates.c: Rebuild.
12018 * target.c (target_find_new_threads): Unconditionally delegate.
12019 * target.h (struct target_ops) <to_find_new_threads>: Use
12020 TARGET_DEFAULT_RETURN.
12022 2014-02-19 Tom Tromey <tromey@redhat.com>
12024 * target-delegates.c: Rebuild.
12025 * target.c (target_program_signals): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_program_signals>: Use
12027 TARGET_DEFAULT_IGNORE.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target-delegates.c: Rebuild.
12032 * target.c (target_pass_signals): Unconditionally delegate.
12033 * target.h (struct target_ops) <to_pass_signals>: Use
12034 TARGET_DEFAULT_IGNORE.
12036 2014-02-19 Tom Tromey <tromey@redhat.com>
12038 * target-delegates.c: Rebuild.
12039 * target.c (default_mourn_inferior): New function.
12040 (target_mourn_inferior): Unconditionally delegate.
12041 * target.h (struct target_ops) <to_mourn_inferior>: Use
12042 TARGET_DEFAULT_FUNC.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target-delegates.c: Rebuild.
12047 * target.c (default_follow_fork): New function.
12048 (target_follow_fork): Unconditionally delegate.
12049 * target.h (struct target_ops) <to_follow_fork>: Use
12050 TARGET_DEFAULT_FUNC.
12052 2014-02-19 Tom Tromey <tromey@redhat.com>
12054 * target-delegates.c: Rebuild.
12055 * target.c (target_kill): Unconditionally delegate.
12056 * target.h (struct target_ops) <to_kill>: Use
12057 TARGET_DEFAULT_NORETURN.
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12061 * target-delegates.c: Rebuild.
12062 * target.c (target_masked_watch_num_registers): Unconditionally
12064 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12065 Use TARGET_DEFAULT_RETURN.
12067 2014-02-19 Tom Tromey <tromey@redhat.com>
12069 * target-delegates.c: Rebuild.
12070 * target.c (target_remove_mask_watchpoint): Unconditionally
12072 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12073 TARGET_DEFAULT_RETURN.
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12077 * target-delegates.c: Rebuild.
12078 * target.c (target_insert_mask_watchpoint): Unconditionally
12080 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12081 TARGET_DEFAULT_RETURN.
12083 2014-02-19 Tom Tromey <tromey@redhat.com>
12085 * target-delegates.c: Rebuild.
12086 * target.c (target_ranged_break_num_registers): Unconditionally
12088 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12089 Use TARGET_DEFAULT_RETURN.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * target-delegates.c: Rebuild.
12094 * target.c (target_fetch_registers): Unconditionally delegate.
12095 * target.h (struct target_ops) <to_fetch_registers>: Use
12096 TARGET_DEFAULT_NORETURN.
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12103 * target.h (struct target_ops) <to_stop>: Use
12104 TARGET_DEFAULT_IGNORE.
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_can_run_breakpoint_commands.
12111 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12112 Use TARGET_DEFAULT_RETURN.
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_supports_evaluation_of_breakpoint_conditions.
12119 * target.h (struct target_ops)
12120 <to_supports_evaluation_of_breakpoint_conditions>: Use
12121 TARGET_DEFAULT_RETURN.
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12127 to_augmented_libraries_svr4_read.
12128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12129 Use TARGET_DEFAULT_RETURN.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12136 * target.h (struct target_ops) <to_can_use_agent>: Use
12137 TARGET_DEFAULT_RETURN.
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12144 * target.h (struct target_ops) <to_use_agent>: Use
12145 TARGET_DEFAULT_NORETURN.
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_traceframe_info.
12152 (return_null): Remove.
12153 * target.h (struct target_ops) <to_traceframe_info>: Use
12154 TARGET_DEFAULT_RETURN.
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12158 * target-delegates.c: Rebuild.
12159 * target.c (update_current_target): Don't inherit or default
12160 to_static_tracepoint_markers_by_strid.
12161 * target.h (struct target_ops)
12162 <to_static_tracepoint_markers_by_strid>: Use
12163 TARGET_DEFAULT_NORETURN.
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target-delegates.c: Rebuild.
12168 * target.c (update_current_target): Don't inherit or default
12169 to_static_tracepoint_marker_at.
12170 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12171 Use TARGET_DEFAULT_RETURN.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * target-delegates.c: Rebuild.
12176 * target.c (update_current_target): Don't inherit or default
12177 to_set_permissions.
12178 * target.h (struct target_ops) <to_set_permissions>: Use
12179 TARGET_DEFAULT_IGNORE.
12181 2014-02-19 Tom Tromey <tromey@redhat.com>
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_get_tib_address.
12186 * target.h (struct target_ops) <to_get_tib_address>: Use
12187 TARGET_DEFAULT_NORETURN.
12189 2014-02-19 Tom Tromey <tromey@redhat.com>
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12193 to_set_trace_notes.
12194 * target.h (struct target_ops) <to_set_trace_notes>: Use
12195 TARGET_DEFAULT_RETURN.
12197 2014-02-19 Tom Tromey <tromey@redhat.com>
12199 * target-delegates.c: Rebuild.
12200 * target.c (update_current_target): Don't initialize
12201 to_set_trace_buffer_size.
12202 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12203 TARGET_DEFAULT_IGNORE.
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_set_circular_trace_buffer.
12210 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12211 TARGET_DEFAULT_IGNORE.
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_set_disconnected_tracing.
12218 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12219 TARGET_DEFAULT_IGNORE.
12221 2014-02-19 Tom Tromey <tromey@redhat.com>
12223 * target-delegates.c: Rebuild.
12224 * target.c (update_current_target): Don't inherit or default
12225 to_get_min_fast_tracepoint_insn_len.
12226 (return_minus_one): Remove.
12227 * target.h (struct target_ops)
12228 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12230 2014-02-19 Tom Tromey <tromey@redhat.com>
12232 * target-delegates.c: Rebuild.
12233 * target.c (update_current_target): Don't inherit or default
12234 to_get_raw_trace_data.
12235 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12236 TARGET_DEFAULT_NORETURN.
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12240 * target-delegates.c: Rebuild.
12241 * target.c (update_current_target): Don't inherit or default
12242 to_upload_trace_state_variables.
12243 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12244 Use TARGET_DEFAULT_RETURN.
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12248 * target-delegates.c: Rebuild.
12249 * target.c (update_current_target): Don't inherit or default
12250 to_upload_tracepoints.
12251 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12252 TARGET_DEFAULT_RETURN.
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12256 * target-delegates.c: Rebuild.
12257 * target.c (update_current_target): Don't inherit or default
12258 to_save_trace_data.
12259 * target.h (struct target_ops) <to_save_trace_data>: Use
12260 TARGET_DEFAULT_NORETURN.
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12264 * target-delegates.c: Rebuild.
12265 * target.c (update_current_target): Don't inherit or default
12266 to_get_trace_state_variable_value.
12267 * target.h (struct target_ops)
12268 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target-delegates.c: Rebuild.
12273 * target.c (update_current_target): Don't inherit or default
12275 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12282 * target.h (struct target_ops) <to_trace_stop>: Use
12283 TARGET_DEFAULT_NORETURN.
12285 2014-02-19 Tom Tromey <tromey@redhat.com>
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_get_tracepoint_status.
12290 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12291 TARGET_DEFAULT_NORETURN.
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_get_trace_status.
12298 * target.h (struct target_ops) <to_get_trace_status>: Use
12299 TARGET_DEFAULT_RETURN.
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12306 * target.h (struct target_ops) <to_trace_start>: Use
12307 TARGET_DEFAULT_NORETURN.
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_trace_set_readonly_regions.
12314 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12315 Use TARGET_DEFAULT_NORETURN.
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_disable_tracepoint.
12322 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12323 TARGET_DEFAULT_NORETURN.
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_enable_tracepoint.
12330 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12331 TARGET_DEFAULT_NORETURN.
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_download_trace_state_variable.
12338 * target.h (struct target_ops) <to_download_trace_state_variable>:
12339 Use TARGET_DEFAULT_NORETURN.
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_can_download_tracepoint.
12346 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12347 TARGET_DEFAULT_RETURN.
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12351 * target-delegates.c: Rebuild.
12352 * target.c (update_current_target): Don't inherit or default
12353 to_download_tracepoint.
12354 * target.h (struct target_ops) <to_download_tracepoint>: Use
12355 TARGET_DEFAULT_NORETURN.
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12359 * target-delegates.c: Rebuild.
12360 * target.c (update_current_target): Don't inherit or default
12362 * target.h (struct target_ops) <to_trace_init>: Use
12363 TARGET_DEFAULT_RETURN.
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12367 * target-delegates.c: Rebuild.
12368 * target.c (update_current_target): Don't inherit or default
12369 to_supports_string_tracing.
12370 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12371 TARGET_DEFAULT_RETURN.
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12375 * target-delegates.c: Rebuild.
12376 * target.c (update_current_target): Don't inherit or default
12377 to_supports_enable_disable_tracepoint.
12378 * target.h (struct target_ops)
12379 <to_supports_enable_disable_tracepoint>: Use
12380 TARGET_DEFAULT_RETURN.
12382 2014-02-19 Tom Tromey <tromey@redhat.com>
12384 * target-delegates.c: Rebuild.
12385 * target.c (update_current_target): Don't inherit or default
12386 to_supports_multi_process.
12387 * target.h (struct target_ops) <to_supports_multi_process>: Use
12388 TARGET_DEFAULT_RETURN.
12390 2014-02-19 Tom Tromey <tromey@redhat.com>
12392 * target-delegates.c: Rebuild.
12393 * target.c (update_current_target): Don't inherit or default
12394 to_get_ada_task_ptid.
12395 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12396 TARGET_DEFAULT_FUNC.
12398 2014-02-19 Tom Tromey <tromey@redhat.com>
12400 * target-delegates.c: Rebuild.
12401 * target.c (update_current_target): Don't inherit or default
12402 to_thread_architecture.
12403 * target.h (struct target_ops) <to_thread_architecture>: Use
12404 TARGET_DEFAULT_FUNC.
12406 2014-02-19 Tom Tromey <tromey@redhat.com>
12408 * target-delegates.c: Rebuild.
12409 * target.c (update_current_target): Don't inherit or default
12410 to_execution_direction.
12411 * target.h (struct target_ops) <to_execution_direction>: Use
12412 TARGET_DEFAULT_FUNC.
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12416 * target-delegates.c: Rebuild.
12417 * target.c (update_current_target): Don't inherit or default
12418 to_can_execute_reverse.
12419 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12420 TARGET_DEFAULT_RETURN.
12421 (target_can_execute_reverse): Unconditionally delegate.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12428 (dummy_goto_bookmark): Remove.
12429 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12430 * target.h (struct target_ops) <to_goto_bookmark>: Use
12431 TARGET_DEFAULT_NORETURN.
12433 2014-02-19 Tom Tromey <tromey@redhat.com>
12435 * target-delegates.c: Rebuild.
12436 * target.c (update_current_target): Don't inherit or default
12438 (dummy_get_bookmark): Remove.
12439 (init_dummy_target): Don't inherit or default to_get_bookmark.
12440 * target.h (struct target_ops) <to_get_bookmark>: Use
12441 TARGET_DEFAULT_NORETURN
12443 2014-02-19 Tom Tromey <tromey@redhat.com>
12445 * target-delegates.c: Rebuild.
12446 * target.c (update_current_target): Don't inherit or default
12447 to_make_corefile_notes.
12448 (init_dummy_target): Don't initialize to_make_corefile_notes.
12449 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12450 TARGET_DEFAULT_FUNC.
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12454 * target-delegates.c: Rebuild.
12455 * target.c (update_current_target): Don't inherit or default
12456 to_find_memory_regions.
12457 (init_dummy_target): Don't initialize to_find_memory_regions.
12458 * target.h (struct target_ops) <to_find_memory_regions>: Use
12459 TARGET_DEFAULT_FUNC.
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12466 * target.h (struct target_ops) <to_log_command>: Use
12467 TARGET_DEFAULT_IGNORE.
12468 (target_log_command): Unconditionally delegate.
12470 2014-02-19 Tom Tromey <tromey@redhat.com>
12472 * target-delegates.c: Rebuild.
12473 * target.c (update_current_target): Don't inherit or default
12474 to_pid_to_exec_file.
12475 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12476 TARGET_DEFAULT_RETURN.
12478 2014-02-19 Tom Tromey <tromey@redhat.com>
12480 * target-delegates.c: Rebuild.
12481 * target.c (update_current_target): Don't inherit or default
12483 (target_thread_name): Unconditionally delegate.
12484 * target.h (struct target_ops) <to_thread_name>: Use
12485 TARGET_DEFAULT_RETURN.
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12489 * target-delegates.c: Rebuild.
12490 * target.c (update_current_target): Don't inherit or default
12491 to_extra_thread_info.
12492 * target.h (struct target_ops) <to_extra_thread_info>: Use
12493 TARGET_DEFAULT_RETURN.
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12497 * target-delegates.c: Rebuild.
12498 * target.c (update_current_target): Don't inherit or default
12500 * target.h (struct target_ops) <to_has_exited>: Use
12501 TARGET_DEFAULT_RETURN..
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12505 * target-delegates.c: Rebuild.
12506 * target.c (update_current_target): Don't inherit or default
12507 to_set_syscall_catchpoint.
12508 (return_one): Remove.
12509 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12510 TARGET_DEFAULT_RETURN.
12512 2014-02-19 Tom Tromey <tromey@redhat.com>
12514 * target-delegates.c: Rebuild.
12515 * target.c (update_current_target): Don't inherit or default
12516 to_insert_exec_catchpoint.
12517 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12518 TARGET_DEFAULT_RETURN.
12520 2014-01-08 Tom Tromey <tromey@redhat.com>
12522 * target-delegates.c: Rebuild.
12523 * target.c (update_current_target): Don't inherit or default
12524 to_insert_exec_catchpoint.
12525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12526 TARGET_DEFAULT_RETURN.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target-delegates.c: Rebuild.
12531 * target.c (update_current_target): Don't inherit or default
12532 to_remove_vfork_catchpoint.
12533 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12534 TARGET_DEFAULT_RETURN.
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12538 * target-delegates.c: Rebuild.
12539 * target.c (update_current_target): Don't inherit or default
12540 to_insert_vfork_catchpoint.
12541 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12542 TARGET_DEFAULT_RETURN.
12544 2014-02-19 Tom Tromey <tromey@redhat.com>
12546 * target-delegates.c: Rebuild.
12547 * target.c (update_current_target): Don't inherit or default
12548 to_remove_fork_catchpoint.
12549 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12550 TARGET_DEFAULT_RETURN.
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12554 * target-delegates.c: Rebuild.
12555 * target.c (update_current_target): Don't inherit or default
12556 to_insert_fork_catchpoint.
12557 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12558 TARGET_DEFAULT_RETURN.
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12562 * target-delegates.c: Rebuild.
12563 * target.c (update_current_target): Don't inherit or default
12564 to_post_startup_inferior.
12565 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12566 TARGET_DEFAULT_IGNORE.
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12570 * target-delegates.c: Rebuild.
12571 * target.c (update_current_target): Don't inherit or default
12573 * target.h (struct target_ops) <to_load>: Use
12574 TARGET_DEFAULT_NORETURN.
12576 2014-02-19 Tom Tromey <tromey@redhat.com>
12578 * target-delegates.c: Rebuild.
12579 * target.c (update_current_target): Don't inherit or default
12581 * target.h (struct target_ops) <to_terminal_info>: Use
12582 TARGET_DEFAULT_FUNC.
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12586 * target-delegates.c: Rebuild.
12587 * target.c (update_current_target): Don't inherit or default
12588 to_terminal_save_ours.
12589 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12590 TARGET_DEFAULT_IGNORE.
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12594 * target-delegates.c: Rebuild.
12595 * target.c (update_current_target): Don't inherit or default
12597 * target.h (struct target_ops) <to_terminal_ours>: Use
12598 TARGET_DEFAULT_IGNORE.
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12602 * target-delegates.c: Rebuild.
12603 * target.c (update_current_target): Don't inherit or default
12604 to_terminal_ours_for_output.
12605 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12606 TARGET_DEFAULT_IGNORE.
12608 2014-02-19 Tom Tromey <tromey@redhat.com>
12610 * target-delegates.c: Rebuild.
12611 * target.c (update_current_target): Don't inherit or default
12612 to_terminal_inferior.
12613 * target.h (struct target_ops) <to_terminal_inferior>: Use
12614 TARGET_DEFAULT_IGNORE.
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12618 * target-delegates.c: Rebuild.
12619 * target.c (update_current_target): Don't inherit or default
12621 * target.h (struct target_ops) <to_terminal_init>: Use
12622 TARGET_DEFAULT_IGNORE.
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target-delegates.c: Rebuild.
12627 * target.c (update_current_target): Don't inherit or default
12628 to_can_accel_watchpoint_condition.
12629 * target.h (struct target_ops)
12630 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12632 2014-02-19 Tom Tromey <tromey@redhat.com>
12634 * target-delegates.c: Rebuild.
12635 * target.c (update_current_target): Don't inherit or default
12636 to_region_ok_for_hw_watchpoint.
12637 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12638 Use TARGET_DEFAULT_FUNC.
12640 2014-02-19 Tom Tromey <tromey@redhat.com>
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_watchpoint_addr_within_range.
12645 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12646 Use TARGET_DEFAULT_FUNC.
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12650 * target-delegates.c: Rebuild.
12651 * target.c (update_current_target): Don't inherit or default
12652 to_remove_watchpoint.
12653 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12654 TARGET_DEFAULT_NORETURN.
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12658 * target-delegates.c: Rebuild.
12659 * target.c (update_current_target): Don't inherit or default
12660 to_insert_watchpoint.
12661 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12662 TARGET_DEFAULT_RETURN.
12664 2014-02-19 Tom Tromey <tromey@redhat.com>
12666 * target-delegates.c: Rebuild.
12667 * target.c (update_current_target): Don't inherit or default
12668 to_remove_hw_breakpoint.
12669 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12670 TARGET_DEFAULT_RETURN.
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12674 * target-delegates.c: Rebuild.
12675 * target.c (update_current_target): Don't inherit or default
12676 to_insert_hw_breakpoint.
12677 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12678 TARGET_DEFAULT_RETURN.
12680 2014-02-19 Tom Tromey <tromey@redhat.com>
12682 * target-delegates.c: Rebuild.
12683 * target.c (update_current_target): Don't inherit or default
12684 to_can_use_hw_breakpoint.
12685 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12686 TARGET_DEFAULT_RETURN.
12688 2014-02-19 Tom Tromey <tromey@redhat.com>
12690 * target-delegates.c: Rebuild.
12691 * target.c (update_current_target): Don't inherit or default
12693 * target.h (struct target_ops) <to_files_info>: Use
12694 TARGET_DEFAULT_IGNORE.
12696 2014-02-19 Tom Tromey <tromey@redhat.com>
12698 * target-delegates.c: Rebuild.
12699 * target.c (update_current_target): Don't inherit or default
12701 * target.h (struct target_ops) <to_store>: Use
12702 TARGET_DEFAULT_NORETURN.
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12706 * target-delegates.c: Rebuild.
12707 * target.c (update_current_target): Don't inherit or default
12709 * target.h (struct target_ops) <to_post_attach>: Use
12710 TARGET_DEFAULT_IGNORE.
12712 2014-02-19 Tom Tromey <tromey@redhat.com>
12714 * target-delegates.c: Rebuild.
12715 * target.c (update_current_target): Don't inherit or default
12717 (default_rcmd): New function.
12718 (do_monitor_command): Unconditionally delegate.
12719 * target.h (struct target_ops) <to_rmcd>: Use
12720 TARGET_DEFAULT_FUNC.
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12724 * target-delegates.c: Rebuild.
12725 * target.c (init_dummy_target): Don't initialize to_attach.
12726 (target_attach): Unconditionally delegate.
12727 * target.h (struct target_ops) <to_attach>: Use
12728 TARGET_DEFAULT_FUNC.
12730 2014-02-19 Tom Tromey <tromey@redhat.com>
12732 * target-delegates.c: Rebuild.
12733 * target.c (target_detach): Unconditionally delegate.
12734 (init_dummy_target): Don't initialize to_detach.
12735 * target.h (struct target_ops) <to_detach>: Use
12736 TARGET_DEFAULT_IGNORE.
12738 2014-02-19 Tom Tromey <tromey@redhat.com>
12740 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12742 (target_augmented_libraries_svr4_read): Add argument.
12743 * target.c (update_current_target): Update.
12744 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12747 2014-02-19 Tom Tromey <tromey@redhat.com>
12749 * target.h (struct target_ops) <to_call_history_range>: Add
12751 * target.c (target_call_history_range): Add argument.
12752 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12754 (record_btrace_call_history_from): Update.
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12758 * target.h (struct target_ops) <to_call_history_from>: Add
12760 * target.c (target_call_history_from): Add argument.
12761 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12764 2014-02-19 Tom Tromey <tromey@redhat.com>
12766 * target.h (struct target_ops) <to_call_history>: Add argument.
12767 * target.c (target_call_history): Add argument.
12768 * record-btrace.c (record_btrace_call_history): Add 'self'
12771 2014-02-19 Tom Tromey <tromey@redhat.com>
12773 * target.h (struct target_ops) <to_insn_history_range>: Add
12775 * target.c (target_insn_history_range): Add argument.
12776 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12778 (record_btrace_insn_history_from): Update.
12780 2014-02-19 Tom Tromey <tromey@redhat.com>
12782 * target.h (struct target_ops) <to_insn_history_from>: Add
12784 * target.c (target_insn_history_from): Add argument.
12785 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12788 2014-02-19 Tom Tromey <tromey@redhat.com>
12790 * target.h (struct target_ops) <to_insn_history>: Add argument.
12791 * target.c (target_insn_history): Add argument.
12792 * record-btrace.c (record_btrace_insn_history): Add 'self'
12795 2014-02-19 Tom Tromey <tromey@redhat.com>
12797 * target.h (struct target_ops) <to_goto_record>: Add argument.
12798 * target.c (target_goto_record): Add argument.
12799 * record-full.c (record_full_goto): Add 'self' argument.
12800 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12804 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12805 * target.c (target_goto_record_end): Add argument.
12806 * record-full.c (record_full_goto_end): Add 'self' argument.
12807 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12811 * target.h (struct target_ops) <to_goto_record_begin>: Add
12813 * target.c (target_goto_record_begin): Add argument.
12814 * record-full.c (record_full_goto_begin): Add 'self' argument.
12815 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target.h (struct target_ops) <to_record_is_replaying>: Add
12822 * target.c (target_record_is_replaying): Add argument.
12823 * record-full.c (record_full_is_replaying): Add 'self' argument.
12824 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12826 (record_btrace_xfer_partial, record_btrace_store_registers)
12827 (record_btrace_prepare_to_store, record_btrace_resume)
12828 (record_btrace_wait, record_btrace_decr_pc_after_break)
12829 (record_btrace_find_new_threads, record_btrace_thread_alive):
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target.h (struct target_ops) <to_delete_record>: Add argument.
12835 * target.c (target_delete_record): Add argument.
12836 * record-full.c (record_full_delete): Add 'self' argument.
12838 2014-02-19 Tom Tromey <tromey@redhat.com>
12840 * target.h (struct target_ops) <to_save_record>: Add argument.
12841 * target.c (target_save_record): Add argument.
12842 * record-full.c (record_full_save): Add 'self' argument.
12843 (record_full_save): Add 'self' argument.
12845 2014-02-19 Tom Tromey <tromey@redhat.com>
12847 * target.h (struct target_ops) <to_info_record>: Add argument.
12848 * target.c (target_info_record): Add argument.
12849 * record.c (info_record_command): Add argument.
12850 * record-full.c (record_full_info): Add 'self' argument.
12851 * record-btrace.c (record_btrace_info): Add 'self' argument.
12853 2014-02-19 Tom Tromey <tromey@redhat.com>
12855 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12856 * target.c (target_stop_recording): Add argument.
12857 * record.c (record_stop): Add argument.
12858 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12861 2014-02-19 Tom Tromey <tromey@redhat.com>
12863 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12864 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12865 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12867 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12868 (_initialize_amd64_linux_nat): Use it.
12869 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12870 (_initialize_i386_linux_nat): Use it.
12872 2014-02-19 Tom Tromey <tromey@redhat.com>
12874 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12875 * target.c (target_teardown_btrace): Add argument.
12876 * remote.c (remote_teardown_btrace): Add 'self' argument.
12877 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12879 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12882 2014-02-19 Tom Tromey <tromey@redhat.com>
12884 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12885 * target.c (target_disable_btrace): Add argument.
12886 * remote.c (remote_disable_btrace): Add 'self' argument.
12887 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12889 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12892 2014-02-19 Tom Tromey <tromey@redhat.com>
12894 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12895 * target.c (target_enable_btrace): Add argument.
12896 * remote.c (remote_enable_btrace): Add 'self' argument.
12897 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12899 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12904 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12905 (target_can_use_agent): Add argument.
12906 * target.c (update_current_target): Update.
12907 * remote.c (remote_can_use_agent): Add 'self' argument.
12908 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12912 * target.h (struct target_ops) <to_use_agent>: Add argument.
12913 (target_use_agent): Add argument.
12914 * target.c (update_current_target): Update.
12915 * remote.c (remote_use_agent): Add 'self' argument.
12916 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12920 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12921 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12922 (target_traceframe_info): Add argument.
12923 * target.c (update_current_target): Update.
12924 * remote.c (remote_traceframe_info): Add 'self' argument.
12925 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12927 2014-02-19 Tom Tromey <tromey@redhat.com>
12929 * target.h (target_static_tracepoint_markers_by_strid): Add
12931 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12933 * target.c (update_current_target): Update.
12934 * remote.c (struct target_ops)
12935 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12936 * linux-nat.c (struct target_ops)
12937 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12939 2014-02-19 Tom Tromey <tromey@redhat.com>
12941 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12943 (target_static_tracepoint_marker_at): Add argument.
12944 * target.c (update_current_target): Update.
12945 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12948 2014-02-19 Tom Tromey <tromey@redhat.com>
12950 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12951 (target_set_permissions): Add argument.
12952 * target.c (update_current_target): Update.
12953 * remote.c (remote_set_permissions): Add 'self' argument.
12954 (remote_start_remote): Update.
12956 2014-02-19 Tom Tromey <tromey@redhat.com>
12958 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12959 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12960 (target_get_tib_address): Add argument.
12961 * target.c (update_current_target): Update.
12962 * remote.c (remote_get_tib_address): Add 'self' argument.
12964 2014-02-19 Tom Tromey <tromey@redhat.com>
12966 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12967 (target_set_trace_notes): Add argument.
12968 * target.c (update_current_target): Update.
12969 * remote.c (remote_set_trace_notes): Add 'self' argument.
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12973 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12975 (target_set_trace_buffer_size): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12981 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12983 (target_set_circular_trace_buffer): Add argument.
12984 * target.c (update_current_target): Update.
12985 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12988 2014-02-19 Tom Tromey <tromey@redhat.com>
12990 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12992 (target_set_disconnected_tracing): Add argument.
12993 * target.c (update_current_target): Update.
12994 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12996 2014-02-19 Tom Tromey <tromey@redhat.com>
12998 * target.h (struct target_ops)
12999 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13000 (target_get_min_fast_tracepoint_insn_len): Add argument.
13001 * target.c (update_current_target): Update.
13002 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13005 2014-02-19 Tom Tromey <tromey@redhat.com>
13007 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13009 (target_get_raw_trace_data): Add argument.
13010 * target.c (update_current_target): Update.
13011 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13013 2014-02-19 Tom Tromey <tromey@redhat.com>
13015 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13017 (target_upload_trace_state_variables): Add argument.
13018 * target.c (update_current_target): Update.
13019 * remote.c (remote_upload_trace_state_variables): Add 'self'
13021 (remote_start_remote): Update.
13023 2014-02-19 Tom Tromey <tromey@redhat.com>
13025 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13027 (target_upload_tracepoints): Add argument.
13028 * target.c (update_current_target): Update.
13029 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13030 (remote_start_remote): Update.
13032 2014-02-19 Tom Tromey <tromey@redhat.com>
13034 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13035 (target_save_trace_data): Add argument.
13036 * target.c (update_current_target): Update.
13037 * remote.c (remote_save_trace_data): Add 'self' argument.
13039 2014-02-19 Tom Tromey <tromey@redhat.com>
13041 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13043 * target.h (struct target_ops)
13044 <to_get_trace_state_variable_value>: Add argument.
13045 (target_get_trace_state_variable_value): Add argument.
13046 * target.c (update_current_target): Update.
13047 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13049 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13051 2014-02-19 Tom Tromey <tromey@redhat.com>
13053 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13054 * target.h (struct target_ops) <to_trace_find>: Add argument.
13055 (target_trace_find): Add argument.
13056 * target.c (update_current_target): Update.
13057 * remote.c (remote_trace_find): Add 'self' argument.
13058 * ctf.c (ctf_trace_find): Add 'self' argument.
13060 2014-02-19 Tom Tromey <tromey@redhat.com>
13062 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13063 (target_trace_stop): Add argument.
13064 * target.c (update_current_target): Update.
13065 * remote.c (remote_trace_stop): Add 'self' argument.
13067 2014-02-19 Tom Tromey <tromey@redhat.com>
13069 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13070 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13072 (target_get_tracepoint_status): Add argument.
13073 * target.c (update_current_target): Update.
13074 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13079 * target.h (struct target_ops) <to_get_trace_status>: Add
13081 (target_get_trace_status): Add argument.
13082 * target.c (update_current_target): Update.
13083 * remote.c (remote_get_trace_status): Add 'self' argument.
13084 (remote_start_remote, remote_can_download_tracepoint): Update.
13085 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13087 2014-02-19 Tom Tromey <tromey@redhat.com>
13089 * target.h (struct target_ops) <to_trace_start>: Add argument.
13090 (target_trace_start): Add argument.
13091 * target.c (update_current_target): Update.
13092 * remote.c (remote_trace_start): Add 'self' argument.
13094 2014-02-19 Tom Tromey <tromey@redhat.com>
13096 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13098 (target_trace_set_readonly_regions): Add argument.
13099 * target.c (update_current_target): Update.
13100 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13103 2014-02-19 Tom Tromey <tromey@redhat.com>
13105 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13107 (target_disable_tracepoint): Add argument.
13108 * target.c (update_current_target): Update.
13109 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13111 2014-02-19 Tom Tromey <tromey@redhat.com>
13113 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13115 (target_enable_tracepoint): Add argument.
13116 * target.c (update_current_target): Update.
13117 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13119 2014-02-19 Tom Tromey <tromey@redhat.com>
13121 * target.h (struct target_ops) <to_download_trace_state_variable>:
13123 (target_download_trace_state_variable): Add argument.
13124 * target.c (update_current_target): Update.
13125 * remote.c (remote_download_trace_state_variable): Add 'self'
13128 2014-02-19 Tom Tromey <tromey@redhat.com>
13130 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13132 (target_can_download_tracepoint): Add argument.
13133 * target.c (update_current_target): Update.
13134 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13136 2014-02-19 Tom Tromey <tromey@redhat.com>
13138 * target.h (struct target_ops) <to_download_tracepoint>: Add
13140 (target_download_tracepoint): Add argument.
13141 * target.c (update_current_target): Update.
13142 * remote.c (remote_download_tracepoint): Add 'self' argument.
13144 2014-02-19 Tom Tromey <tromey@redhat.com>
13146 * target.h (struct target_ops) <to_trace_init>: Add argument.
13147 (target_trace_init): Add argument.
13148 * target.c (update_current_target): Update.
13149 * remote.c (remote_trace_init): Add 'self' argument.
13151 2014-02-19 Tom Tromey <tromey@redhat.com>
13153 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13154 * target.c (target_fileio_readlink): Add argument.
13155 * remote.c (remote_hostio_readlink): Add 'self' argument.
13156 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13158 2014-02-19 Tom Tromey <tromey@redhat.com>
13160 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13161 * target.c (target_fileio_unlink): Add argument.
13162 * remote.c (remote_hostio_unlink): Add 'self' argument.
13163 (remote_file_delete): Update.
13164 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13166 2014-02-19 Tom Tromey <tromey@redhat.com>
13168 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13169 * target.c (target_fileio_close): Add argument.
13170 * remote.c (remote_hostio_close): Add 'self' argument.
13171 (remote_hostio_close_cleanup): Update.
13172 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13174 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13176 2014-02-19 Tom Tromey <tromey@redhat.com>
13178 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13179 * target.c (target_fileio_pread): Add argument.
13180 * remote.c (remote_hostio_pread): Add 'self' argument.
13181 (remote_bfd_iovec_pread, remote_file_get): Update.
13182 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13184 2014-02-19 Tom Tromey <tromey@redhat.com>
13186 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13187 * target.c (target_fileio_pwrite): Add argument.
13188 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13189 (remote_file_put): Update.
13190 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13192 2014-02-19 Tom Tromey <tromey@redhat.com>
13194 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13195 * target.c (target_fileio_open): Add argument.
13196 * remote.c (remote_hostio_open): Add 'self' argument.
13197 (remote_bfd_iovec_open): Add 'self' argument.
13198 (remote_file_put): Add 'self' argument.
13199 (remote_file_get): Add 'self' argument.
13200 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13202 2014-02-19 Tom Tromey <tromey@redhat.com>
13204 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13206 (target_can_run_breakpoint_commands): Add argument.
13207 * target.c (update_current_target): Update.
13208 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13210 (remote_insert_breakpoint): Add 'self' argument.
13211 (remote_insert_hw_breakpoint): Add 'self' argument.
13212 (remote_can_run_breakpoint_commands): Add 'self' argument.
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13216 * target.h (struct target_ops)
13217 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13218 (target_supports_evaluation_of_breakpoint_conditions): Add
13220 * target.c (update_current_target): Update.
13221 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13223 (remote_insert_breakpoint): Add 'self' argument.
13224 (remote_insert_hw_breakpoint): Add 'self' argument.
13225 (remote_supports_cond_breakpoints): Add 'self' argument.
13227 2014-02-19 Tom Tromey <tromey@redhat.com>
13229 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13231 (target_supports_string_tracing): Add argument.
13232 * target.c (update_current_target): Update.
13233 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13235 2014-02-19 Tom Tromey <tromey@redhat.com>
13237 * target.h (struct target_ops)
13238 <to_supports_disable_randomization>: Add argument.
13239 * target.c (find_default_supports_disable_randomization): Add
13241 (target_supports_disable_randomization): Add argument.
13242 (find_default_supports_disable_randomization): Add 'self'
13244 * remote.c (extended_remote_supports_disable_randomization): Add
13246 (remote_supports_disable_randomization): Add 'self' argument.
13247 (extended_remote_create_inferior): Update.
13248 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13251 2014-02-19 Tom Tromey <tromey@redhat.com>
13253 * target.h (struct target_ops)
13254 <to_supports_enable_disable_tracepoint>: Add argument.
13255 (target_supports_enable_disable_tracepoint): Add argument.
13256 * target.c (update_current_target): Update.
13257 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13260 2014-02-19 Tom Tromey <tromey@redhat.com>
13262 * target.h (struct target_ops) <to_supports_multi_process>: Add
13264 (target_supports_multi_process): Add argument.
13265 * target.c (update_current_target): Update.
13266 * remote.c (remote_supports_multi_process): Add 'self' argument.
13267 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13269 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13272 2014-02-19 Tom Tromey <tromey@redhat.com>
13274 * target.h (struct target_ops) <to_execution_direction>: Add
13276 (target_execution_direction): Add argument.
13277 * target.c (default_execution_direction): Add 'self' argument.
13278 * record-full.c (record_full_execution_direction): Add 'self'
13281 2014-02-19 Tom Tromey <tromey@redhat.com>
13283 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13285 (target_can_execute_reverse): Add argument.
13286 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13287 * record-full.c (record_full_can_execute_reverse): Add 'self'
13289 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13292 2014-02-19 Tom Tromey <tromey@redhat.com>
13294 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13295 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13297 (target_get_ada_task_ptid): Add argument.
13298 * target.c (update_current_target): Update.
13299 (default_get_ada_task_ptid): Add 'self' argument.
13300 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13301 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13302 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13304 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13306 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13308 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13310 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13311 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13314 2014-02-19 Tom Tromey <tromey@redhat.com>
13316 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13317 (target_goto_bookmark): Add argument.
13318 * target.c (dummy_goto_bookmark): Add 'self' argument.
13319 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13321 2014-02-19 Tom Tromey <tromey@redhat.com>
13323 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13324 (target_get_bookmark): Add argument.
13325 * target.c (dummy_get_bookmark): Add 'self' argument.
13326 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13328 2014-02-19 Tom Tromey <tromey@redhat.com>
13330 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13332 (target_make_corefile_notes): Add argument.
13333 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13334 * procfs.c (procfs_make_note_section): Add 'self' argument.
13335 (procfs_make_note_section): Add 'self' argument.
13336 (procfs_make_note_section): Add 'self' argument.
13337 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13339 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13340 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13341 * exec.c (exec_make_note_section): Add 'self' argument.
13342 (exec_make_note_section): Add 'self' argument.
13344 2014-02-19 Tom Tromey <tromey@redhat.com>
13346 * target.h (struct target_ops) <to_find_memory_regions>: Add
13348 (target_find_memory_regions): Add argument.
13349 * target.c (dummy_find_memory_regions): Add 'self' argument.
13350 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13351 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13352 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13353 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13354 * exec. (exec_do_find_memory_regions): New global.
13355 (exec_set_find_memory_regions): Rewrite.
13356 (exec_find_memory_regions): New function.
13357 (init_exec_ops): Use exec_find_memory_regions.
13359 2014-02-19 Tom Tromey <tromey@redhat.com>
13361 * target.h (struct target_ops) <to_supports_non_stop>: Add
13363 * target.c (find_default_supports_non_stop): Add argument.
13364 (target_supports_non_stop): Add argument.
13365 (find_default_supports_non_stop): Add 'self' argument.
13366 * remote.c (remote_supports_non_stop): Add 'self' argument.
13367 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13369 2014-02-19 Tom Tromey <tromey@redhat.com>
13371 * target.h (struct target_ops) <to_log_command>: Add argument.
13372 (target_log_command): Add argument.
13373 * serial.h (serial_log_command): Add 'self' argument.
13374 * serial.c (serial_log_command): Add 'self' argument.
13376 2014-02-19 Tom Tromey <tromey@redhat.com>
13378 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13379 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13381 (target_pid_to_exec_file): Add argument.
13382 * target.c (debug_to_pid_to_exec_file): Add argument.
13383 (update_current_target): Update.
13384 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13385 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13386 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13387 (linux_handle_extended_wait): Update.
13388 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13389 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13390 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13391 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13393 2014-02-19 Tom Tromey <tromey@redhat.com>
13395 * target.h (struct target_ops) <to_rcmd>: Add argument.
13396 (target_rcmd): Add argument.
13397 * target.c (debug_to_rcmd): Add argument.
13398 (update_current_target, do_monitor_command): Update.
13399 * remote.c (remote_rcmd): Add 'self' argument.
13400 * monitor.c (monitor_rcmd): Add 'self' argument.
13402 2014-02-19 Tom Tromey <tromey@redhat.com>
13404 * windows-nat.c (windows_stop): Add 'self' argument.
13405 * target.h (struct target_ops) <to_stop>: Add argument.
13406 * target.c (target_stop): Add argument.
13407 (debug_to_stop): Add argument.
13408 (update_current_target): Update.
13409 * remote.c (remote_stop): Add 'self' argument.
13410 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13411 (gdbsim_cntrl_c): Update.
13412 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13413 * procfs.c (procfs_stop): Add 'self' argument.
13414 * nto-procfs.c (procfs_stop): Add 'self' argument.
13415 * monitor.c (monitor_stop): Add 'self' argument.
13416 (monitor_open): Update.
13417 * linux-nat.c (linux_nat_stop): Add argument.
13418 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13419 * gnu-nat.c (gnu_stop): Add 'self' argument.
13420 * darwin-nat.c (darwin_stop): Add 'self' argument.
13422 2014-02-19 Tom Tromey <tromey@redhat.com>
13424 * target.h (struct target_ops) <to_thread_name>: Add argument.
13425 * target.c (target_thread_name): Add argument.
13426 (update_current_target): Update.
13427 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13429 2014-02-19 Tom Tromey <tromey@redhat.com>
13431 * target.h (struct target_ops) <to_extra_thread_info>: Add
13433 (target_extra_thread_info): Add argument.
13434 * target.c (update_current_target): Update.
13435 * remote.c (remote_threads_extra_info): Add 'self' argument.
13436 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13438 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13439 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13440 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13442 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13444 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13446 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13449 2014-02-19 Tom Tromey <tromey@redhat.com>
13451 * target.h (struct target_ops) <to_program_signals>: Add argument.
13452 * target.c (target_program_signals): Add argument.
13453 * remote.c (remote_program_signals): Add 'self' argument.
13455 2014-02-19 Tom Tromey <tromey@redhat.com>
13457 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13458 * target.c (target_pass_signals): Add argument.
13459 * remote.c (remote_pass_signals): Add 'self' argument.
13460 (remote_start_remote): Update.
13461 * procfs.c (procfs_pass_signals): Add 'self' argument.
13462 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13463 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13464 (linux_nat_create_inferior, linux_nat_attach): Update.
13466 2014-02-19 Tom Tromey <tromey@redhat.com>
13468 * windows-nat.c (windows_can_run): Add 'self' argument.
13469 * target.h (struct target_ops) <to_can_run>: Add argument.
13470 (target_can_run): Add argument.
13471 * target.c (debug_to_can_run): Add argument.
13472 (update_current_target): Update.
13473 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13474 * inf-child.c (inf_child_can_run): Add 'self' argument.
13475 * go32-nat.c (go32_can_run): Add 'self' argument.
13477 2014-02-19 Tom Tromey <tromey@redhat.com>
13479 * target.h (struct target_ops) <to_has_exited>: Add argument.
13480 (target_has_exited): Add argument.
13481 * target.c (debug_to_has_exited): Add argument.
13482 (update_current_target): Update.
13484 2014-02-19 Tom Tromey <tromey@redhat.com>
13486 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13488 (target_set_syscall_catchpoint): Add argument.
13489 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13491 * target.c (update_current_target): Update.
13493 2014-02-19 Tom Tromey <tromey@redhat.com>
13495 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13497 (target_remove_exec_catchpoint): Add argument.
13498 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13499 (update_current_target): Update.
13500 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13503 2014-02-19 Tom Tromey <tromey@redhat.com>
13505 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13507 (target_insert_exec_catchpoint): Add argument.
13508 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13509 (update_current_target): Update.
13510 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13515 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13517 (target_remove_vfork_catchpoint): Add argument.
13518 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13519 (update_current_target): Update.
13520 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13523 2014-02-19 Tom Tromey <tromey@redhat.com>
13525 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13527 (target_insert_vfork_catchpoint): Add argument.
13528 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13529 (update_current_target): Update.
13530 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13533 2014-02-19 Tom Tromey <tromey@redhat.com>
13535 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13537 (target_remove_fork_catchpoint): Add argument.
13538 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13539 (update_current_target): Update.
13540 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13543 2014-02-19 Tom Tromey <tromey@redhat.com>
13545 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13547 (target_insert_fork_catchpoint): Add argument.
13548 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13549 (update_current_target): Update.
13550 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13553 2014-02-19 Tom Tromey <tromey@redhat.com>
13555 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13557 (target_post_startup_inferior): Add argument.
13558 * target.c (debug_to_post_startup_inferior): Add argument.
13559 (update_current_target): Update.
13560 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13562 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13564 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13566 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13568 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13570 (super_post_startup_inferior): Likewise.
13571 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13573 (super_post_startup_inferior): Likewise.
13574 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13575 Add 'self' argument.
13576 (super_post_startup_inferior): Likewise.
13578 2014-02-19 Tom Tromey <tromey@redhat.com>
13580 * target.h (struct target_ops) <to_load>: Add argument.
13581 * target.c (target_load): Add argument.
13582 (debug_to_load): Add argument.
13583 (update_current_target): Update.
13584 * remote.c (remote_load): Add 'self' argument.
13585 * remote-sim.c (gdbsim_load): Add 'self' argument.
13586 * remote-mips.c (mips_load): Add 'self' argument.
13587 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13588 * monitor.c (monitor_load): Add 'self' argument.
13589 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13591 2014-02-19 Tom Tromey <tromey@redhat.com>
13593 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13594 (target_terminal_info): Add argument.
13595 * target.c (debug_to_terminal_info): Add argument.
13596 (default_terminal_info): Likewise.
13597 * inflow.c (child_terminal_info): Add 'self' argument.
13598 * inferior.h (child_terminal_info): Add 'self' argument.
13599 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13601 2014-02-19 Tom Tromey <tromey@redhat.com>
13603 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13605 (target_terminal_save_ours): Add argument.
13606 * target.c (debug_to_terminal_save_ours): Add argument.
13607 (update_current_target): Update.
13608 * inflow.c (terminal_save_ours): Add 'self' argument.
13609 * inferior.h (terminal_save_ours): Add 'self' argument.
13611 2014-02-19 Tom Tromey <tromey@redhat.com>
13613 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13614 (target_terminal_ours): Add argument.
13615 * target.c (debug_to_terminal_ours): Add argument.
13616 (update_current_target): Update.
13617 * remote.c (remote_terminal_ours): Add 'self' argument.
13618 (remote_close): Update.
13619 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13620 * inflow.c (terminal_ours): Add 'self' argument.
13621 * inferior.h (terminal_ours): Add 'self' argument.
13622 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13624 2014-02-19 Pedro Alves <palves@redhat.com>
13625 Tom Tromey <tromey@redhat.com>
13627 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13629 (target_terminal_ours_for_output): Add argument.
13630 * target.c (debug_to_terminal_ours_for_output): Add argument.
13631 (update_current_target): Update.
13632 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13633 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13634 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13636 2014-02-19 Tom Tromey <tromey@redhat.com>
13638 * target.h (struct target_ops) <to_terminal_inferior>: Add
13640 * target.c (target_terminal_inferior): Add argument.
13641 (update_current_target): Update.
13642 * remote.c (remote_terminal_inferior): Add 'self' argument.
13643 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13644 * inflow.c (terminal_inferior): Add 'self' argument.
13645 * inferior.h (terminal_inferior): Add 'self' argument.
13646 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13647 (go32_terminal_inferior): Add 'self' argument.
13649 2014-02-19 Tom Tromey <tromey@redhat.com>
13651 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13652 (target_terminal_init): Add argument.
13653 * target.c (debug_to_terminal_init): Add argument.
13654 (update_current_target): Update.
13655 * inflow.c (terminal_init_inferior): Add 'self' argument.
13656 * inferior.h (terminal_init_inferior): Add 'self' argument.
13657 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13658 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13660 2014-02-19 Tom Tromey <tromey@redhat.com>
13662 * target.h (struct target_ops)
13663 <to_can_accel_watchpoint_condition>: Add argument.
13664 (target_can_accel_watchpoint_condition): Add argument.
13665 * target.c (debug_to_can_accel_watchpoint_condition): Add
13667 (update_current_target): Update.
13668 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13671 2014-02-19 Tom Tromey <tromey@redhat.com>
13673 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13675 (target_region_ok_for_hw_watchpoint): Add argument.
13676 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13677 (default_region_ok_for_hw_watchpoint): Add argument.
13678 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13679 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13681 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13683 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13685 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13687 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13689 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13691 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13692 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13694 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13695 Add 'self' argument.
13697 2014-02-19 Tom Tromey <tromey@redhat.com>
13699 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13701 (target_insert_watchpoint): Add argument.
13702 * target.c (debug_to_insert_watchpoint): Add argument.
13703 (update_current_target): Update.
13704 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13705 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13706 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13707 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13708 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13709 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13711 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13712 (procfs_insert_hw_watchpoint): Add 'self' argument.
13713 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13715 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13717 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13719 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13720 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13722 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13725 2014-02-19 Tom Tromey <tromey@redhat.com>
13727 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13729 (target_remove_watchpoint): Add argument.
13730 * target.c (debug_to_remove_watchpoint): Add argument.
13731 (update_current_target): Update.
13732 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13733 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13734 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13735 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13736 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13737 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13739 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13740 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13742 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13744 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13746 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13747 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13749 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13752 2014-02-19 Tom Tromey <tromey@redhat.com>
13754 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13756 (target_remove_hw_breakpoint): Add argument.
13757 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13758 (update_current_target): Update.
13759 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13760 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13762 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13763 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13765 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13768 2014-02-19 Tom Tromey <tromey@redhat.com>
13770 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13772 (target_insert_hw_breakpoint): Add argument.
13773 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13774 (update_current_target): Update.
13775 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13776 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13778 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13779 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13780 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13782 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13785 2014-02-19 Tom Tromey <tromey@redhat.com>
13787 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13789 (target_can_use_hardware_watchpoint): Add argument.
13790 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13791 (update_current_target): Update.
13792 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13794 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13796 * remote.c (remote_check_watch_resources): Add 'self' argument.
13797 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13798 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13800 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13801 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13803 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13805 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13807 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13809 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13811 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13813 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13814 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13816 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13819 2014-02-19 Tom Tromey <tromey@redhat.com>
13821 * target.h (struct target_ops) <to_post_attach>: Add argument.
13822 (target_post_attach): Add argument.
13823 * target.c (debug_to_post_attach): Add argument.
13824 (update_current_target): Update.
13825 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13826 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13827 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13828 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13829 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13831 2014-02-19 Tom Tromey <tromey@redhat.com>
13833 * windows-nat.c (windows_close): Add 'self' argument.
13834 * tracepoint.c (tfile_close): Add 'self' argument.
13835 * target.h (struct target_ops) <to_close>: Add argument.
13836 * target.c (target_close): Add argument.
13837 (update_current_target): Update.
13838 * remote.c (remote_close): Add 'self' argument.
13839 * remote-sim.c (gdbsim_close): Add 'self' argument.
13840 * remote-mips.c (mips_close): Add 'self' argument.
13841 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13842 * record-full.c (record_full_close): Add 'self' argument.
13843 * record-btrace.c (record_btrace_close): Add 'self' argument.
13844 * monitor.h (monitor_close): Add 'self' argument.
13845 * monitor.c (monitor_close): Add 'self' argument.
13846 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13847 * linux-nat.c (linux_nat_close): Add argument.
13848 * go32-nat.c (go32_close): Add 'self' argument.
13849 * exec.c (exec_close_1): Add 'self' argument.
13850 * ctf.c (ctf_close): Add 'self' argument.
13851 * corelow.c (core_close): Add 'self' argument.
13852 (core_close_cleanup): Update.
13853 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13854 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13856 2014-02-19 Tom Tromey <tromey@redhat.com>
13858 * remote.c (remote_load): New function.
13859 (init_remote_ops): Use it.
13861 2014-02-19 Tom Tromey <tromey@redhat.com>
13863 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13865 * common/linux-btrace.h (linux_supports_btrace): Update.
13866 * remote.c (remote_supports_btrace): Add "self" argument.
13867 * target-delegates.c: Rebuild.
13868 * target.c (target_supports_btrace): Remove.
13869 * target.h (struct target_ops) <to_supports_btrace>: Add
13870 target_ops argument.
13871 (target_supports_btrace): New define.
13873 2014-02-19 Tom Tromey <tromey@redhat.com>
13875 * record-full.c (record_full_beneath_to_resume_ops)
13876 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13877 (record_full_beneath_to_wait)
13878 (record_full_beneath_to_store_registers_ops)
13879 (record_full_beneath_to_store_registers)
13880 (record_full_beneath_to_xfer_partial_ops)
13881 (record_full_beneath_to_xfer_partial)
13882 (record_full_beneath_to_insert_breakpoint_ops)
13883 (record_full_beneath_to_insert_breakpoint)
13884 (record_full_beneath_to_remove_breakpoint_ops)
13885 (record_full_beneath_to_remove_breakpoint)
13886 (record_full_beneath_to_stopped_by_watchpoint)
13887 (record_full_beneath_to_stopped_data_address)
13888 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13889 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13890 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13891 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13892 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13893 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13894 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13895 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13896 (record_full_resume, record_full_wait_1)
13897 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13898 (record_full_store_registers, record_full_xfer_partial)
13899 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13900 (record_full_async, record_full_core_xfer_partial): Use target
13902 * target-delegates.c: Rebuild.
13903 * target.c (current_xfer_partial): Remove.
13904 (update_current_target): Do not INHERIT or de_fault
13905 to_insert_breakpoint, to_remove_breakpoint,
13906 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13907 to_is_async_p, to_async. Do not set to_xfer_partial field.
13908 (default_xfer_partial): Simplify.
13909 (current_xfer_partial): Remove.
13910 (target_wait, target_resume): Simplify.
13911 (find_default_can_async_p, find_default_is_async_p): Update.
13912 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13913 to_xfer_partial, to_stopped_by_watchpoint,
13914 to_stopped_data_address.
13915 (target_store_registers): Simplify.
13916 (forward_target_remove_breakpoint)
13917 (forward_target_insert_breakpoint): Remove.
13918 (target_remove_breakpoint, target_insert_breakpoint)
13919 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13920 * target.h (struct target_ops) <to_resume, to_wait,
13921 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13922 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13923 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13925 (forward_target_remove_breakpoint)
13926 (forward_target_insert_breakpoint): Remove.
13927 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13929 (record_btrace_insert_breakpoint): Delegate directly.
13931 2014-02-19 Tom Tromey <tromey@redhat.com>
13934 * target-delegates.c: New file.
13935 * target.c: Include target-delegates.c.
13936 (init_dummy_target): Call install_dummy_methods.
13937 (complete_target_initialization): Call install_delegators.
13938 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13939 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13940 * make-target-delegates: New file.
13942 2014-02-19 Tom Tromey <tromey@redhat.com>
13944 * record.c (find_record_target): Use find_target_at.
13945 * target.c (find_target_at): New function.
13946 * target.h (find_target_at): Declare.
13948 2014-02-19 Tom Tromey <tromey@redhat.com>
13950 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13951 Add 'ops' argument.
13952 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13954 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13955 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13957 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13959 * linux-nat.c (save_sigtrap): Update.
13960 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13961 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13962 (linux_nat_close): Update.
13963 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13965 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13967 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13968 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13969 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13970 (tmp_to_async): Add 'ops' argument.
13971 (record_full_stopped_by_watchpoint, record_full_async)
13972 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13974 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13975 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13976 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13977 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13978 (remote_is_async_p, remote_async): Add 'ops' argument.
13979 (remote_stopped_data_address): Update.
13980 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13981 * target.c (update_current_target)
13982 (find_default_can_async_p, find_default_is_async_p): Update.
13983 (init_dummy_target): Update.
13984 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13985 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13986 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13987 (target_can_async_p, target_is_async_p, target_async)
13988 (target_stopped_by_watchpoint): Update.
13990 2014-02-19 Yao Qi <yao@codesourcery.com>
13993 * gdbarch.sh: Remove startup_gdbarch.
13994 * gdbarch.c: Regenerated.
13995 * gdbarch.h: Likewise.
13997 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13999 * rl78-tdep.c (rl78_g10_register_name): New function.
14000 (rl78_return_value): Add g10 support.
14001 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14004 2014-02-17 Doug Evans <xdje42@gmail.com>
14006 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14007 (SUBDIR_GUILE_SRCS): Ditto.
14008 (scm-gsmob.o): Ditto.
14010 2014-02-17 Yao Qi <yao@codesourcery.com>
14012 * gnu-nat.c (ILL_RPC): Declare defined function.
14014 2014-02-17 Yao Qi <yao@codesourcery.com>
14016 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14017 mach_msg_type_number_t.
14018 (gnu_write_inferior): Likewise.
14020 2014-02-17 Yao Qi <yao@codesourcery.com>
14022 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14024 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14025 (inf_validate_procs, inf_signal): Likewise.
14026 (S_exception_raise_request): Likewise.
14027 (do_mach_notify_dead_name): Likewise.
14028 (steal_exc_port): Likewise.
14029 (gnu_read_inferior): Change 'copy_count''s type to
14030 mach_msg_type_number_t.
14031 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14034 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14036 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14037 flag. Adjust all users; in particular...
14038 (gnu_wait): ..., don't decrement its value in here...
14039 (gnu_create_inferior): ..., and instead set the flag in here,
14040 around the startup_inferior call, and call that one with
14041 START_INFERIOR_TRAPS_EXPECTED.
14043 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14044 (ILL_RPC): ... new macro.
14045 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14046 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14047 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14048 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14049 functions with ILL_RPC macro.
14050 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14051 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14052 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14053 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14054 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14055 (S_proc_getlogin_reply, S_proc_getsid_reply)
14056 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14057 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14058 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14059 (S_proc_getnports_reply, S_proc_is_important_reply)
14060 (S_proc_get_code_reply): New stub functions, generated with
14063 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14064 collected the type check structures.
14066 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14068 2014-02-14 Doug Evans <dje@google.com>
14070 * target.c (target_write_partial): Fix result type.
14072 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14074 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14075 the proper offsets to access fpregset_t.
14077 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14079 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14080 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14081 * h8300-tdep.c (setmachinelist): Remove global.
14082 * hppa-tdep.c (hppa_sigtramp): Remove global.
14083 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14084 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14085 * ravenscar-thread.c (update_target_observer): Remove global.
14086 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14088 2014-02-12 Tom Tromey <tromey@redhat.com>
14090 * common/rsp-low.c: Update comments.
14091 * common/rsp-low.h: Update comments.
14093 2014-02-12 Tom Tromey <tromey@redhat.com>
14095 * common/rsp-low.c (convert_ascii_to_int): Remove.
14096 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14098 2014-02-12 Tom Tromey <tromey@redhat.com>
14100 * common/rsp-low.h (unhexify): Don't declare.
14101 * common/rsp-low.c (unhexify): Remove.
14103 2014-02-12 Tom Tromey <tromey@redhat.com>
14105 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14106 * common/rsp-low.c (convert_int_to_ascii): Remove.
14108 2014-02-12 Tom Tromey <tromey@redhat.com>
14110 * common/rsp-low.h (hexify): Don't declare.
14111 * common/rsp-low.c (hexify): Remove.
14113 2014-02-12 Tom Tromey <tromey@redhat.com>
14115 * common/rsp-low.c (hexify): Never take strlen of argument.
14117 2014-02-12 Tom Tromey <tromey@redhat.com>
14119 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14120 * remote.c (extended_remote_run, remote_rcmd)
14121 (remote_download_trace_state_variable, remote_save_trace_data)
14122 (remote_set_trace_notes): Update.
14123 * tracepoint.c (encode_source_string, tfile_write_status)
14124 (tfile_write_uploaded_tsv): Update.
14126 2014-02-12 Tom Tromey <tromey@redhat.com>
14128 * tracepoint.c: Include rsp-low.h.
14129 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14130 * remote.c: Include rsp-low.h.
14131 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14132 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14133 (remote_unescape_input): Move to common/rsp-low.c.
14134 * common/rsp-low.h: New file.
14135 * common/rsp-low.c: New file.
14136 * Makefile.in (SFILES): Add common/rsp-low.c.
14137 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14138 (COMMON_OBS): Add rsp-low.o.
14139 (rsp-low.o): New target.
14141 2014-02-12 Tom Tromey <tromey@redhat.com>
14143 * utils.h: Include print-utils.h.
14144 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14145 (int_string, core_addr_to_string, core_addr_to_string_nz)
14146 (hex_string, hex_string_custom): Don't declare.
14147 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14148 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14149 (hex_string_custom, int_string, core_addr_to_string)
14150 (core_addr_to_string_nz, host_address_to_string): Move to
14151 common/print-utils.c.
14152 * common/print-utils.h: New file.
14153 * common/print-utils.c: New file
14154 * Makefile.in (SFILES): Add common/print-utils.c.
14155 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14156 (COMMON_OBS): Add print-utils.o.
14157 (print-utils.o): New target.
14159 2014-02-12 Tom Tromey <tromey@redhat.com>
14161 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14163 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14165 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14167 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14169 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14170 if a PT_IO ptrace request returns sucessfully but indicates that 0
14171 bytes were transferred.
14173 2014-02-12 Pedro Alves <palves@redhat.com>
14174 Kevin Buettner <kevinb@redhat.com>
14176 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14177 TYPE_INSTANCE_FLAG_CODE_SPACE.
14179 2014-02-12 Pedro Alves <palves@redhat.com>
14181 * h8300-tdep.c (pseudo_from_raw_register)
14182 (raw_from_pseudo_register): New functions.
14183 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14186 2014-02-12 Pedro Alves <palves@redhat.com>
14188 * h8300-tdep.c (h8300_register_sim_regno): New function.
14189 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14190 gdbarch_register_sim_regno hook.
14192 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14194 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14196 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14198 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14200 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14202 * obsd-tdep.h (obsd_init_abi): New prototype.
14203 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14204 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14205 (obsd_init_abi): New functions.
14206 * i386obsd-tdep.c: Include "obsd-tdep.h".
14207 (i386obsd_init_abi): Call obsd_init_abi.
14208 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14209 (amd64obsd_init_abi): Call obsd_init_abi.
14210 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14211 obsd-tdep.c to gdb_target_obs.
14213 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14215 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14216 double float arguments to 16-byte in the argument slots.
14218 2014-02-11 Doug Evans <xdje42@gmail.com>
14220 * configure.ac: Don't crash if pkg-config is not found and guile
14221 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14223 * configure: Regenerate.
14225 2014-02-11 Yao Qi <yao@codesourcery.com>
14227 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14228 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14229 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14230 * gnu-nat.c (gnu_xfer_memory): Likewise.
14231 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14232 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14233 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14234 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14236 2014-02-11 Yao Qi <yao@codesourcery.com>
14238 * target.h (enum target_xfer_error): Rename to ...
14239 (enum target_xfer_status): ... it. New. All users updated.
14240 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14242 (TARGET_XFER_STATUS_ERROR_P): New macro.
14243 (target_xfer_error_to_string): Remove declaration.
14244 (target_xfer_status_to_string): Declare.
14245 (target_xfer_partial_ftype): Adjust it.
14246 (struct target_ops) <to_xfer_partial>: Return
14247 target_xfer_status. Add argument xfered_len. Update
14249 * target.c (target_xfer_error_to_string): Rename to ...
14250 (target_xfer_status_to_string): ... it. New. All callers
14252 (target_read_live_memory): Likewise. Call target_xfer_partial
14253 instead of target_read.
14254 (memory_xfer_live_readonly_partial): Return
14255 target_xfer_status. Add argument xfered_len.
14256 (raw_memory_xfer_partial): Likewise.
14257 (memory_xfer_partial_1): Likewise.
14258 (memory_xfer_partial): Likewise.
14259 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14260 properly. Update debug message.
14261 (default_xfer_partial, current_xfer_partial): Likewise.
14262 (target_write_partial): Likewise.
14263 (target_read_partial): Likewise. All callers updated.
14264 (read_whatever_is_readable): Likewise.
14265 (target_write_with_progress): Likewise.
14266 (target_read_alloc_1): Likewise.
14268 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14269 * auxv.c (procfs_xfer_auxv): Likewise.
14270 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14271 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14272 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14273 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14274 * corefile.c (read_memory): Adjust.
14275 * corelow.c (core_xfer_partial): Likewise.
14276 * ctf.c (ctf_xfer_partial): Likewise.
14277 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14279 (darwin_xfer_partial): Likewise.
14280 * exec.c (section_table_xfer_memory_partial): Likewise. All
14282 (exec_xfer_partial): Likewise.
14283 * exec.h (section_table_xfer_memory_partial): Update
14285 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14287 (gnu_xfer_partial): Likewise.
14288 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14289 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14290 (ia64_hpux_xfer_solib_got): Likewise.
14291 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14292 type of 'partial_len' to ULONGEST.
14293 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14294 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14295 (linux_nat_xfer_partial): Likewise.
14296 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14297 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14298 * monitor.c (monitor_xfer_memory): Likewise.
14299 (monitor_xfer_partial): Likewise.
14300 * procfs.c (procfs_xfer_partial): Likewise.
14301 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14302 * record-full.c (record_full_xfer_partial): Likewise.
14303 (record_full_core_xfer_partial): Likewise.
14304 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14305 (gdbsim_xfer_partial): Likewise.
14306 * remote.c (remote_write_bytes_aux): Likewise. All callers
14308 (remote_write_bytes, remote_read_bytes): Likewise. All
14310 (remote_flash_erase): Likewise. All callers updated.
14311 (remote_write_qxfer): Likewise. All callers updated.
14312 (remote_read_qxfer): Likewise. All callers updated.
14313 (remote_xfer_partial): Likewise.
14314 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14315 (rs6000_xfer_shared_libraries): Likewise.
14316 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14317 (sol_thread_xfer_partial): Likewise.
14318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14319 (sparc_xfer_partial): Likewise.
14320 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14322 (spu_xfer_partial): Likewise.
14323 * spu-multiarch.c (spu_xfer_partial): Likewise.
14324 * tracepoint.c (tfile_xfer_partial): Likewise.
14325 * windows-nat.c (windows_xfer_memory): Likewise.
14326 (windows_xfer_shared_libraries): Likewise.
14327 (windows_xfer_partial): Likewise.
14328 * valprint.c: Replace 'target_xfer_error' with
14329 'target_xfer_status' in comments.
14331 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14333 Checked in by Joel Brobecker <brobecker@adacore.com>.
14334 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14336 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14338 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14339 function parameters.
14341 2014-02-10 Will Newton <will.newton@linaro.org>
14343 * elfread.c (elf_rel_plt_read): Look for a .got section if
14344 looking up .got.plt fails.
14345 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14346 on address passed to elf_gnu_ifunc_record_cache.
14347 (elf_gnu_ifunc_resolve_addr): Likewise.
14348 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14350 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14352 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14353 (X_RETTURN): New macro.
14354 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14356 * sparc64-tdep.c (sparc64_init_abi): Hook
14357 sparc_in_function_epilogue_p.
14359 2014-02-10 Gary Benson <gbenson@redhat.com>
14361 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14362 Rename name_matcher to symbol_matcher.
14364 2014-02-10 Gary Benson <gbenson@redhat.com>
14366 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14367 Use expand_symtabs_file_matcher_ftype and
14368 expand_symtabs_symbol_matcher_ftype.
14370 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14372 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14373 (struct ada_symbol_cache): New.
14374 (ada_free_symbol_cache): Forward declare.
14375 (struct ada_pspace_data): New.
14376 (ada_pspace_data_handle): New static global.
14377 (get_ada_pspace_data, ada_pspace_data_cleanup)
14378 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14379 (cache_space, cache): Delete, now folded inside struct
14381 (ada_get_symbol_cache): New function.
14382 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14384 (_initialize_ada_language): Remove initialization of cache_space.
14385 Move call to observer_attach_inferior_exit up, grouping it
14386 with the other observer registrations inside this function.
14387 Rename command to be more general. Add call to
14388 register_program_space_data_with_cleanup.
14390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14392 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14393 ada_new_objfile_observer.
14394 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14395 (_initialize_tasks): Update uses of ada_new_objfile_observer
14396 and ada_tasks_normal_stop_observer.
14398 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14400 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14401 returned by the 'Length attribute to integer.
14403 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14405 * ada-lang.c (_initialize_ada_language): Initialize
14406 cache_space obstack.
14408 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14410 * ada-lang.c (HASH_SIZE): New macro.
14411 (struct cache_entry): New type.
14412 (cache_space, cache): New static globals.
14413 (ada_clear_symbol_cache, find_entry): New functions.
14414 (lookup_cached_symbol, cache_symbol): Implement.
14415 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14416 (_initialize_ada_language): Attach ada_new_objfile_observer
14417 and ada_free_objfile_observer.
14419 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14421 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14422 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14423 struct block * parameter.
14424 (ada_lookup_symbol_list_worker): Constify local variable "block".
14425 Remove cast which is no longer necessary.
14427 2014-02-10 Doug Evans <xdje42@gmail.com>
14429 Add Guile as an extension language.
14430 * NEWS: Mention Guile scripting.
14431 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14432 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14433 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14434 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14435 (CLIBS): Add GUILE_LIBS.
14436 (install-guile): New rule.
14437 (guile.o): New rule.
14438 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14439 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14440 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14441 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14442 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14443 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14444 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14445 * configure.ac: New option --with-guile.
14446 * configure: Regenerate.
14447 * config.in: Regenerate.
14448 * auto-load.c: Remove #include "python/python.h". Add #include
14449 "gdb/section-scripts.h".
14450 (source_section_scripts): Handle Guile scripts.
14451 (_initialize_auto_load): Add name of Guile objfile script to
14452 scripts-directory help text.
14453 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14454 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14455 (struct breakpoint): New member scm_bp_object.
14456 * defs.h (enum command_control_type): New value guile_control.
14457 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14459 (show_user): Update comment.
14460 (_initialize_cli_cmds): Update help text for "show user". Update help
14461 text for max-user-call-depth.
14462 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14464 (multi_line_command_p): Add guile_control.
14465 (print_command_lines): Handle guile_control.
14466 (execute_control_command, recurse_read_control_structure): Ditto.
14467 (process_next_line): Recognize "guile" commands.
14468 * disasm.c (gdb_disassemble_info): Make non-static.
14469 * disasm.h: #include "dis-asm.h".
14470 (struct gdbarch): Add forward decl.
14471 (gdb_disassemble_info): Declare.
14472 * extension.c: #include "guile/guile.h".
14473 (extension_languages): Add guile.
14474 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14475 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14476 * gdbtypes.c (get_unsigned_type_max): New function.
14477 (get_signed_type_minmax): New function.
14478 * gdbtypes.h (get_unsigned_type_max): Declare.
14479 (get_signed_type_minmax): Declare.
14480 * guile/README: New file.
14481 * guile/guile-internal.h: New file.
14482 * guile/guile.c: New file.
14483 * guile/guile.h: New file.
14484 * guile/scm-arch.c: New file.
14485 * guile/scm-auto-load.c: New file.
14486 * guile/scm-block.c: New file.
14487 * guile/scm-breakpoint.c: New file.
14488 * guile/scm-disasm.c: New file.
14489 * guile/scm-exception.c: New file.
14490 * guile/scm-frame.c: New file.
14491 * guile/scm-gsmob.c: New file.
14492 * guile/scm-iterator.c: New file.
14493 * guile/scm-lazy-string.c: New file.
14494 * guile/scm-math.c: New file.
14495 * guile/scm-objfile.c: New file.
14496 * guile/scm-ports.c: New file.
14497 * guile/scm-pretty-print.c: New file.
14498 * guile/scm-safe-call.c: New file.
14499 * guile/scm-string.c: New file.
14500 * guile/scm-symbol.c: New file.
14501 * guile/scm-symtab.c: New file.
14502 * guile/scm-type.c: New file.
14503 * guile/scm-utils.c: New file.
14504 * guile/scm-value.c: New file.
14505 * guile/lib/gdb.scm: New file.
14506 * guile/lib/gdb/boot.scm: New file.
14507 * guile/lib/gdb/experimental.scm: New file.
14508 * guile/lib/gdb/init.scm: New file.
14509 * guile/lib/gdb/iterator.scm: New file.
14510 * guile/lib/gdb/printing.scm: New file.
14511 * guile/lib/gdb/types.scm: New file.
14512 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14513 (VPATH): Add $(GUILE_SRCDIR).
14514 (GUILE_DIR): New variable.
14515 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14516 (all): Add stamp-guile dependency.
14517 (stamp-guile): New rule.
14518 (clean-guile, install-guile, uninstall-guile): New rules.
14519 (install-only): Add install-guile dependency.
14520 (uninstall): Add uninstall-guile dependency.
14521 (clean): Add clean-guile dependency.
14523 2014-02-09 Doug Evans <xdje42@gmail.com>
14525 Revert this patch (which I approved, mea culpa).
14527 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14529 * Makefile.in (all-lib): Remove.
14530 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14532 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14534 Fix Python stack corruption.
14535 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14538 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14540 * Makefile.in (all-lib): Remove.
14541 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14543 2014-02-07 Doug Evans <dje@google.com>
14545 * extension-priv.h (extension_language_script_ops): Add comment.
14546 (extension_language_ops): Add comment.
14547 (active_ext_lang_state): Fix typo in comment.
14549 2014-02-07 Pedro Alves <palves@redhat.com>
14551 PR breakpoints/16292
14552 * infrun.c (handle_signal_stop) <signal arrives while stepping
14553 over a breakpoint>: Switch back to the stepping thread.
14555 2014-02-07 Yao Qi <yao@codesourcery.com>
14557 * target.c (target_xfer_partial): Return zero if LEN is zero.
14559 2014-02-07 Yao Qi <yao@codesourcery.com>
14561 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14562 (ld_so_xfer_auxv): Likewise.
14563 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14564 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14565 * corelow.c (core_xfer_partial): Likewise.
14566 * ctf.c (ctf_xfer_partial): Likewise.
14567 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14568 (darwin_xfer_partial): Likewise.
14569 * exec.c (exec_xfer_partial): Likewise.
14570 * gnu-nat.c (gnu_xfer_partial): Likewise.
14571 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14572 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14573 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14574 * linux-nat.c (linux_xfer_siginfo): Likewise.
14575 (linux_proc_xfer_spu): Likewise.
14576 * procfs.c (procfs_xfer_partial): Likewise.
14577 * record-full.c (record_full_xfer_partial): Likewise.
14578 (record_full_core_xfer_partial): Likewise.
14579 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14580 * remote.c (remote_write_qxfer): Likewise.
14581 (remote_write_qxfer, remote_read_qxfer): Likewise.
14582 (remote_xfer_partial): Likewise.
14583 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14584 (rs6000_xfer_shared_libraries): Likewise.
14585 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14586 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14587 (spu_xfer_partial): Likewise.
14588 * target.c (memory_xfer_partial_1): Likewise.
14589 * tracepoint.c (tfile_xfer_partial): Likewise.
14590 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14591 (windows_xfer_partial): Likewise.
14593 2014-02-07 Yao Qi <yao@codesourcery.com>
14595 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14597 (core_xfer_shared_libraries_aix): Likewise.
14598 * gdbarch.c, gdbarch.h: Regenerated.
14599 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14600 ULONGEST. Change 'len_avail' type to ULONGEST.
14601 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14602 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14604 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14606 2014-02-07 Yao Qi <yao@codesourcery.com>
14608 * corefile.c (memory_error): Get 'exception' from ERR and pass
14609 'exception' to throw_error.
14611 2014-02-06 Doug Evans <xdje42@gmail.com>
14613 * configure.ac (libpython checking): Remove all but python.o from
14614 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14615 * configure: Regenerate.
14617 * Makefile.in (SFILES): Add extension.c.
14618 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14619 (COMMON_OBS): Add extension.o.
14620 * extension.h: New file.
14621 * extension-priv.h: New file.
14622 * extension.c: New file.
14624 * python/python-internal.h: #include "extension.h".
14625 (gdbpy_auto_load_enabled): Declare.
14626 (gdbpy_apply_val_pretty_printer): Declare.
14627 (gdbpy_apply_frame_filter): Declare.
14628 (gdbpy_preserve_values): Declare.
14629 (gdbpy_breakpoint_cond_says_stop): Declare.
14630 (gdbpy_breakpoint_has_cond): Declare.
14631 (void source_python_script_for_objfile): Delete.
14632 * python/python.c: #include "extension-priv.h".
14633 Delete inclusion of "observer.h".
14634 (extension_language_python): Moved here and renamed from
14635 script_language_python in py-auto-load.c.
14636 Redefined to be of type extension_language_defn.
14637 (python_extension_script_ops): New global.
14638 (python_extension_ops): New global.
14639 (struct python_env): New member previous_active.
14640 (restore_python_env): Call restore_active_ext_lang.
14641 (ensure_python_env): Call set_active_ext_lang.
14642 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14644 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14646 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14648 (gdbpy_eval_from_control_command): Renamed from
14649 eval_python_from_control_command, made static. New arg extlang.
14650 (gdbpy_source_script) Renamed from source_python_script, made static.
14652 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14653 result to int. New arg extlang.
14654 (gdbpy_source_objfile_script): Renamed from
14655 source_python_script_for_objfile, made static. New arg extlang.
14656 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14657 static. New args extlang, extlang_printers. Change result type to
14659 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14660 static. New arg extlang. Rename arg printers to extlang_printers
14661 and change type to ext_lang_type_printers *.
14662 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14663 static. Replace argument arg with extlang, extlang_printers.
14664 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14665 (!HAVE_PYTHON, source_python_script): Delete.
14666 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14667 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14668 (!HAVE_PYTHON, start_type_printers): Delete.
14669 (!HAVE_PYTHON, apply_type_printers): Delete.
14670 (!HAVE_PYTHON, free_type_printers): Delete.
14671 (_initialize_python): Delete call to observer_attach_before_prompt.
14672 (finalize_python): Set/restore active extension language.
14673 (gdbpy_finish_initialization) Renamed from
14674 finish_python_initialization, made static. New arg extlang.
14675 (gdbpy_initialized): New function.
14676 * python/python.h: #include "extension.h". Delete #include
14677 "value.h", "mi/mi-cmds.h".
14678 (extension_language_python): Declare.
14679 (GDBPY_AUTO_FILE_NAME): Delete.
14680 (enum py_bt_status): Moved to extension.h and renamed to
14681 ext_lang_bt_status.
14682 (enum frame_filter_flags): Moved to extension.h.
14683 (enum py_frame_args): Moved to extension.h and renamed to
14684 ext_lang_frame_args.
14685 (finish_python_initialization): Delete.
14686 (eval_python_from_control_command): Delete.
14687 (source_python_script): Delete.
14688 (apply_val_pretty_printer): Delete.
14689 (apply_frame_filter): Delete.
14690 (preserve_python_values): Delete.
14691 (gdbpy_script_language_defn): Delete.
14692 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14693 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14695 * auto-load.c: #include "extension.h".
14696 (GDB_AUTO_FILE_NAME): Delete.
14697 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14698 (script_language_gdb): Delete, moved to extension.c and renamed to
14699 extension_language_gdb.
14700 (source_gdb_script_for_objfile): Delete.
14701 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14702 (loaded_script): Change type of language member to
14703 struct extension_language_defn *.
14704 (init_loaded_scripts_info): Initialize
14705 unsupported_script_warning_printed.
14706 (maybe_add_script): Make static. Change type of language arg to
14707 struct extension_language_defn *.
14708 (clear_section_scripts): Reset unsupported_script_warning_printed.
14709 (auto_load_objfile_script_1): Rewrite to use extension language API.
14710 (auto_load_objfile_script): Make public. Remove support-compiled-in
14711 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14712 (source_section_scripts): Rewrite to use extension language API.
14713 (load_auto_scripts_for_objfile): Rewrite to use
14714 auto_load_scripts_for_objfile.
14715 (collect_matching_scripts_data): Change type of language member to
14716 struct extension_language_defn *.
14717 (auto_load_info_scripts): Change type of language arg to
14718 struct extension_language_defn *.
14719 (unsupported_script_warning_print): New function.
14720 (script_not_found_warning_print): Make static.
14721 (_initialize_auto_load): Rewrite construction of scripts-directory
14723 * auto-load.h (struct objfile): Add forward decl.
14724 (struct script_language): Delete.
14725 (struct auto_load_pspace_info): Add forward decl.
14726 (struct extension_language_defn): Add forward decl.
14727 (maybe_add_script): Delete.
14728 (auto_load_objfile_script): Declare.
14729 (script_not_found_warning_print): Delete.
14730 (auto_load_info_scripts): Update prototype.
14731 (auto_load_gdb_scripts_enabled): Declare.
14732 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14733 auto_load_python_scripts_enabled and made public.
14734 (script_language_python): Delete, moved to python.c.
14735 (gdbpy_script_language_defn): Delete.
14736 (info_auto_load_python_scripts): Update to use
14737 extension_language_python.
14739 * breakpoint.c (condition_command): Replace call to
14740 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14741 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14742 with call to breakpoint_ext_lang_cond_says_stop.
14743 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14744 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14745 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14746 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14748 (local_setattro): Print name of extension language with existing
14751 * valprint.c (val_print, value_print): Update to call
14752 apply_ext_lang_val_pretty_printer.
14753 * cp-valprint.c (cp_print_value): Update call to
14754 apply_ext_lang_val_pretty_printer.
14755 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14756 (gdbpy_apply_val_pretty_printer): Renamed from
14757 apply_val_pretty_printer. New arg extlang.
14758 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14760 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14761 extension language API.
14762 * cli/cli-script.c (execute_control_command): Update to call
14763 eval_ext_lang_from_control_command.
14765 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14766 enum ext_lang_bt_status values. Update call to
14767 apply_ext_lang_frame_filter.
14768 (mi_cmd_stack_list_locals): Ditto.
14769 (mi_cmd_stack_list_args): Ditto.
14770 (mi_cmd_stack_list_variables): Ditto.
14771 * mi/mi-main.c: Delete #include "python/python-internal.h".
14772 Add #include "extension.h".
14773 (mi_cmd_list_features): Replace reference to python internal variable
14774 gdb_python_initialized with call to ext_lang_initialized_p.
14776 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14777 Update to use enum ext_lang_frame_args. Update to call
14778 apply_ext_lang_frame_filter.
14779 * python/py-framefilter.c (extract_sym): Update to use enum
14780 ext_lang_bt_status.
14781 (extract_value, py_print_type, py_print_value): Ditto.
14782 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14783 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14784 (py_print_frame): Ditto.
14785 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14786 New arg extlang. Update to use enum ext_lang_bt_status.
14788 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14789 finish_python_initialization. Replace with call to
14790 finish_ext_lang_initialization.
14792 * typeprint.c (do_free_global_table): Update to call
14793 free_ext_lang_type_printers.
14794 (create_global_typedef_table): Update to call
14795 start_ext_lang_type_printers.
14796 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14797 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14798 (type_print_options): Change type of global_printers from "void *"
14799 to "struct ext_lang_type_printers *".
14801 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14802 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14803 (gdbpy_preserve_values): Renamed from preserve_python_values.
14805 (!HAVE_PYTHON, preserve_python_values): Delete.
14807 * utils.c (quit_flag): Delete, moved to extension.c.
14808 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14811 * eval.c: Delete #include "python/python.h".
14812 * main.c: Delete #include "python/python.h".
14814 * defs.h: Update comment.
14816 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14820 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14822 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14825 2014-02-05 Yao Qi <yao@codesourcery.com>
14827 * remote.c (remote_pass_signals): Remove local 'buf' and use
14829 (remote_program_signals): Likewise.
14831 2014-02-05 Yao Qi <yao@codesourcery.com>
14833 * ctf.c: Include "inferior.h" and "gdbthread.h".
14834 (CTF_PID): A new macro.
14835 (ctf_open): Call inferior_appeared and add_thread_silent.
14836 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14837 (ctf_thread_alive): New function.
14838 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14840 2014-02-05 Yao Qi <yao@codesourcery.com>
14844 2013-05-24 Yao Qi <yao@codesourcery.com>
14846 * tracepoint.c (TFILE_PID): Remove.
14847 (tfile_open): Don't add thread and inferior.
14848 (tfile_close): Don't set 'inferior_ptid'. Don't call
14849 exit_inferior_silent.
14850 (tfile_thread_alive): Remove.
14851 (init_tfile_ops): Don't set field 'to_thread_alive' of
14854 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14856 * remote.c (remote_start_remote): Call remote_check_symbols even
14857 if only symbol-file (not file) has been given.
14859 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14861 * gdbarch.sh (skip_entrypoint): New callback.
14862 * gdbarch.c, gdbarch.h: Regenerate.
14863 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14864 * infrun.c (fill_in_stop_func): Likewise.
14865 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14866 (ppc_elfv2_elf_make_msymbol_special): New function.
14867 (ppc_elfv2_skip_entrypoint): Likewise.
14868 (ppc_linux_init_abi): Install them for ELFv2.
14870 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14872 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14873 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14874 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14875 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14876 structures returned in GPRs.
14878 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14880 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14881 offset to the stack parameter list for the ELFv2 ABI.
14883 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14885 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14886 set_gdbarch_convert_from_func_ptr_addr and
14887 set_gdbarch_elf_make_msymbol_special for ELFv1.
14888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14889 function descriptors on ELFv1.
14890 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14891 set up r12 at function entry.
14893 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14895 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14896 (struct gdbarch_tdep): New member elf_abi.
14898 * rs6000-tdep.c: Include "elf/ppc64.h".
14899 (rs6000_gdbarch_init): Detect ELF ABI version.
14901 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14903 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14904 within a register pair holding a DFP 128-bit value on little-endian.
14905 (ppc64_sysv_abi_return_value_base): Likewise.
14906 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14907 (dfp_pseudo_register_write): Likewise.
14909 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14912 offset on little-endian when passing _Decimal32.
14913 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14915 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14917 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14918 of the overlapped FP register within the VSX register on little-
14920 (efpr_pseudo_register_write): Likewise.
14922 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14925 offset on little-endian when passing small structures.
14927 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14929 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14930 (struct ppc64_sysv_argpos): New data structure.
14931 (ppc64_sysv_abi_push_float): Remove.
14932 (ppc64_sysv_abi_push_val): New function.
14933 (ppc64_sysv_abi_push_integer): Likewise.
14934 (ppc64_sysv_abi_push_freg): Likewise.
14935 (ppc64_sysv_abi_push_vreg): Likewise.
14936 (ppc64_sysv_abi_push_param): Likewise.
14937 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14938 (ppc64_sysv_abi_return_value_base): New function.
14939 (ppc64_sysv_abi_return_value): Refactor to use it.
14941 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14943 * NEWS: Document new target powerpc64le-*-linux*.
14945 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14947 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14948 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14950 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14951 register set used in ELF core dumps. Add floating-point register set.
14953 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14955 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14956 dwarf2_to_gdb[] table using symbolic constants. Adjust
14957 penultimate entry from number representing the PC register
14958 to symbolic constant representing the MDR register. Add
14959 constant for the PC register to the end of the table.
14961 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14963 * bsd-kvm.c: Include <sys/param.h>
14965 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14967 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14969 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14971 * ada-lang.h (clear_ada_sym_cache): Delete.
14973 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14975 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14977 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14979 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14980 the sigreturn register save area only if the syscall is
14983 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14985 * valops.c (value_slice): Minor reformatting.
14987 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
14989 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14991 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14993 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14994 New static globals.
14995 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14996 (ada_ignore_descriptive_types_p): New static global.
14997 (find_parallel_type_by_descriptive_type): Return immediately
14998 if ada_ignore_descriptive_types_p is set.
14999 (_initialize_ada_language): Register new commands "maintenance
15000 set ada", "maintenance show ada", "maintenance set ada
15001 ignore-descriptive-types" and "maintenance show ada
15002 ignore-descriptive-types".
15003 * NEWS: Add entry for new "maint ada set/show
15004 ignore-descriptive-types" commands.
15006 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15008 * record-btrace.c (record_btrace_close): Call btrace_teardown
15011 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15013 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15016 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15018 * ada-typeprint (type_is_full_subrange_of_target_type):
15020 (print_range): Add parameter bounds_prefered_p. If not set,
15021 try printing range types using the name of their base type.
15022 (print_range_type): Add parameter bounds_prefered_p.
15023 Use it in call to print_range.
15024 (print_array_type, ada_print_type): Update calls to print_range
15025 and print_range_type.
15027 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15029 * ada-typeprint.c (print_array_type, print_choices, print_range)
15030 (print_range_bound, print_dynamic_range_bound, print_range_type):
15031 Remove declaration.
15033 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15035 * ada-typeprint.c (print_range): Add missing empty line
15036 after local declaration.
15038 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15040 * ada-valprint.c (print_optional_low_bound): Get index_type's
15041 target type for as long as it is a TYPE_CODE_RANGE.
15043 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15045 * procfs.c (procfs_make_note_section): Remove assertion and
15046 associated comment.
15048 2014-01-24 Yao Qi <yao@codesourcery.com>
15050 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15051 * corelow.c (get_core_siginfo): Likewise.
15053 2014-01-24 Yao Qi <yao@codesourcery.com>
15055 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15056 ULONGEST. Don't check 'len' is negative.
15057 (remote_write_bytes): Change type of 'len' to ULONGEST.
15059 2014-01-23 Tom Tromey <tromey@redhat.com>
15062 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15063 Handle exception from frame.block.
15064 (FrameVars.fetch_frame_locals): Likewise.
15066 2014-01-23 Tom Tromey <tromey@redhat.com>
15069 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15070 on a NULL pointer. Move "goto error" to correct place.
15072 2014-01-23 Tom Tromey <tromey@redhat.com>
15075 * python/py-framefilter.c (apply_frame_filter): Call
15076 ensure_python_env after computing gdbarch.
15078 2014-01-23 Yao Qi <yao@codesourcery.com>
15080 * target.c (raw_memory_xfer_partial): Change argument type
15081 from void * to gdb_byte *.
15082 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15084 2014-01-22 Doug Evans <dje@google.com>
15086 New gdbserver option --debug-format=timestamp.
15087 * NEWS: Mention it.
15089 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15091 * syscalls/s390x-linux.xml: New file.
15092 * syscalls/s390-linux.xml: New file.
15093 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15094 (XML_SYSCALL_FILENAME_S390X): Likewise.
15095 (op_svc): New enum value for SVC opcode.
15096 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15097 (s390_linux_get_syscall_number): New function.
15098 (s390_gdbarch_init): Register '*get_syscall_number' and the
15099 syscall xml file name.
15100 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15101 "s390-linux.xml" and "s390x-linux.xml".
15102 * NEWS: Announce new feature.
15104 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15106 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15108 2014-01-22 Pedro Alves <palves@redhat.com>
15110 * xtensa-config.c: Include defs.h.
15112 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15114 * common/common-utils.h: Add "ARI:" comment beside __func__
15117 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15119 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15120 documentation a bit.
15122 2014-01-21 Roland McGrath <mcgrathr@google.com>
15124 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15125 * configure: Regenerate.
15126 * aclocal.m4: Regenerate.
15127 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15128 New substituted variables.
15129 (install-strip): New target.
15130 (INSTALL_SCRIPT): New substituted variable.
15131 (FLAGS_TO_PASS): Add it.
15132 (install-only): Use $(INSTALL_SCRIPT) rather than
15133 $(INSTALL_PROGRAM) for gcore.
15135 2014-01-20 Tom Tromey <tromey@redhat.com>
15137 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15140 2014-01-20 Tom Tromey <tromey@redhat.com>
15142 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15143 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15144 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15145 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15146 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15147 (struct cmd_list_element) <flags>: Remove.
15148 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15149 doc_allocated>: New fields.
15150 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15152 * maint.c (maintenance_do_deprecate): Update.
15153 * top.c (execute_command): Update.
15155 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15157 * xtensa-linux-nat.c: Include asm/ptrace.h.
15159 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15161 * Makefile.in (SFILES): Add d-support.c.
15162 (COMMON_OBS): Add d-support.o.
15163 * d-lang.h (d_parse_symbol): Add comment, now defined in
15165 * d-lang.c (parse_call_convention)
15166 (parse_attributes, parse_function_types)
15167 (parse_function_args, parse_type, parse_identifier)
15168 (call_convention_p, d_parse_symbol): Move functions to ...
15169 * d-support.c: ... New file.
15171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15173 * d-lang.h (d_parse_symbol): Add declaration.
15174 * d-lang.c (extract_identifiers)
15175 (extract_type_info): Remove functions.
15176 (parse_call_convention, parse_attributes)
15177 (parse_function_types, parse_function_args)
15178 (parse_type, parse_identifier, call_convention_p)
15179 (d_parse_symbol): New functions.
15180 (d_demangle): Use d_parse_symbol to demangle D symbols.
15182 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15184 * d-lang.h (struct builtin_d_type): New data type.
15185 (builtin_d_type): Add declaration.
15186 * d-lang.c (d_language_arch_info, build_d_types)
15187 (builtin_d_type): New functions.
15188 (enum d_primitive_types): New data type.
15189 (d_language_defn): Change c_language_arch_info to
15190 d_language_arch_info.
15191 (d_type_data): New static variable.
15192 (_initialize_d_language): Initialize d_type_data.
15194 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15196 * d-lang.h (d_main_name): Add declaration.
15197 * d-lang.c (d_main_name): New function.
15198 * symtab.c (find_main_name): Add call to d_main_name.
15200 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15202 * d-lang.c (d_language_defn): Change macro_expansion_c to
15203 macro_expansion_no.
15205 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15207 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15209 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15211 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15212 gdb_exception" declaration.
15213 * remote.c (getpkt_or_notif_sane): Likewise.
15215 2014-01-17 Doug Evans <dje@google.com>
15217 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15218 function, contents of dirnames_to_char_ptr_vec_append moved here.
15219 (delim_string_to_char_ptr_vec): New function.
15220 (dirnames_to_char_ptr_vec_append): Rewrite.
15221 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15223 2014-01-17 Doug Evans <dje@google.com>
15225 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15227 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15228 #include "common-utils.h".
15229 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15230 * common/vec.h (VEC_ASSERT_PASS): Update.
15231 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15232 (MACH_CHECK_ERROR): Update.
15234 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15236 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15238 * gdbarch.h: Regenerate.
15240 2014-01-16 Tom Tromey <tromey@redhat.com>
15242 * value.c (struct value) <regnum>: Move earlier.
15244 2014-01-16 Tom Tromey <tromey@redhat.com>
15246 * remote.c (extended_remote_create_inferior): Rename from
15247 extended_remote_create_inferior_1. Add "ops" argument. Remove
15248 old implementation.
15250 2014-01-16 Pedro Alves <palves@redhat.com>
15252 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15253 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15256 2014-01-16 Doug Evans <dje@google.com>
15258 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15262 * btrace.h (btrace_thread_flag): New.
15263 (struct btrace_thread_info) <flags>: New.
15264 * record-btrace.c (record_btrace_resume_thread)
15265 (record_btrace_find_thread_to_move, btrace_step_no_history)
15266 (btrace_step_stopped, record_btrace_start_replaying)
15267 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15268 (record_btrace_find_resume_thread): New.
15269 (record_btrace_resume, record_btrace_wait): Extend.
15270 (record_btrace_can_execute_reverse): New.
15271 (record_btrace_open): Fail in non-stop mode.
15272 (record_btrace_set_replay): Split into this, ...
15273 (record_btrace_stop_replaying): ... this, ...
15274 (record_btrace_clear_histories): ... and this.
15275 (init_record_btrace_ops): Init to_can_execute_reverse.
15276 * NEWS: Announce it.
15278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15280 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15281 (forward_target_decr_pc_after_break)
15282 (target_decr_pc_after_break): New.
15283 * target.c (forward_target_decr_pc_after_break)
15284 (target_decr_pc_after_break): New.
15285 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15286 instead of gdbarch_decr_pc_after_break.
15287 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15288 instead of gdbarch_decr_pc_after_break.
15289 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15290 instead of gdbarch_decr_pc_after_break.
15291 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15292 instead of gdbarch_decr_pc_after_break.
15293 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15294 instead of gdbarch_decr_pc_after_break.
15295 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15296 instead of gdbarch_decr_pc_after_break.
15298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15300 * btrace.c: Include regcache.h.
15301 (btrace_add_pc): New.
15302 (btrace_enable): Call btrace_add_pc.
15303 (btrace_is_empty): New.
15304 * btrace.h (btrace_is_empty): New.
15305 * record-btrace.c (require_btrace, record_btrace_info): Call
15308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15310 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15311 Support delta reads.
15312 (linux_disable_btrace): Change return type.
15313 * common/linux-btrace.h (linux_read_btrace): Change parameters
15314 and return type to allow error reporting. Update users.
15315 (linux_disable_btrace): Change return type. Update users.
15316 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15318 (btrace_error): New.
15319 (btrace_block) <begin>: Comment on BEGIN == 0.
15320 * btrace.c (btrace_compute_ftrace): Start from the end of
15322 (btrace_stitch_trace, btrace_clear_history): New.
15323 (btrace_fetch): Read delta trace, return if replaying.
15324 (btrace_clear): Move clear history code to btrace_clear_history.
15325 (parse_xml_btrace): Throw an error if parsing failed.
15326 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15327 and return type to allow error reporting.
15328 (target_read_btrace): Change parameters and return type to allow
15330 * target.c (target_read_btrace): Update.
15331 * remote.c (remote_read_btrace): Support delta reads. Pass
15333 * NEWS: Announce it.
15335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15337 * record.h (record_btrace_frame_unwind)
15338 (record_btrace_tailcall_frame_unwind): New declarations.
15339 * dwarf2-frame: Include record.h
15340 (dwarf2_frame_cfa): Throw an error for btrace frames.
15341 * record-btrace.c: Include hashtab.h.
15342 (btrace_get_bfun_name): New.
15343 (btrace_call_history): Call btrace_get_bfun_name.
15344 (struct btrace_frame_cache): New.
15346 (bfcache_hash, bfcache_eq, bfcache_new): New.
15347 (btrace_get_frame_function): New.
15348 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15349 (record_btrace_frame_this_id): Compute own id.
15350 (record_btrace_frame_prev_register): Provide PC, throw_error
15351 for all other registers.
15352 (record_btrace_frame_sniffer): Detect btrace frames.
15353 (record_btrace_tailcall_frame_sniffer): New.
15354 (record_btrace_frame_dealloc_cache): New.
15355 (record_btrace_frame_unwind): Add new functions.
15356 (record_btrace_tailcall_frame_unwind): New.
15357 (_initialize_record_btrace): Allocate cache.
15358 * btrace.c (btrace_clear): Call reinit_frame_cache.
15359 * NEWS: Announce it.
15361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15363 * record-btrace.c (record_btrace_set_replay)
15364 (record_btrace_goto_begin, record_btrace_goto_end)
15365 (record_btrace_goto): New.
15366 (init_record_btrace_ops): Initialize them.
15367 * NEWS: Announce it.
15369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15371 * record-btrace.c (record_btrace_find_new_threads)
15372 (record_btrace_thread_alive): New.
15373 (init_record_btrace_ops): Initialize to_find_new_threads and
15376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15378 * record-btrace.c (record_btrace_resume): New.
15379 (record_btrace_wait): New.
15380 (init_record_btrace_ops): Initialize to_wait and to_resume.
15382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15384 * record-btrace.c (record_btrace_xfer_partial)
15385 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15386 (record_btrace_allow_memory_access): New.
15387 (init_record_btrace_ops): Initialize new methods.
15388 * target.c (raw_memory_xfer_partial): Bail out if target reports
15389 that this memory is not available.
15391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15393 * target.h (target_ops) <to_insert_breakpoint>
15394 <to_remove_breakpoint>: Add target_ops parameter.
15395 (forward_target_insert_breakpoint): New.
15396 (forward_target_remove_breakpoint): New.
15397 (memory_remove_breakpoint, memory_insert_breakpoint):
15398 Add target_ops parameter.
15399 * target.c (target_insert_breakpoint): Split into this and ...
15400 (forward_target_insert_breakpoint): ... this.
15401 (target_remove_breakpoint): Split into this and ...
15402 (forward_target_remove_breakpoint): ... this.
15403 (debug_to_insert_breakpoint): Add target_ops parameter.
15404 Call forward_target_insert_breakpoint.
15405 (debug_to_remove_breakpoint): Add target_ops parameter.
15406 Call forward_target_remove_breakpoint.
15407 (update_current_target): Do not inherit or default to_insert_breakpoint
15408 and to_remove_breakpoint.
15409 * corelow.c (ignore): Add target_ops parameter.
15410 * exec.c (ignore): Add target_ops parameter.
15411 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15412 Add target_ops parameter.
15413 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15414 Add target_ops parameter.
15415 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15416 Add target_ops parameter.
15417 * record-full.c (record_full_beneath_to_insert_breakpoint)
15418 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15419 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15420 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15421 (record_full_core_remove_breakpoint): Add target_ops parameter.
15423 (record_full_beneath_to_insert_breakpoint_ops)
15424 (record_full_beneath_to_remove_breakpoint_ops)
15425 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15426 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15427 tmp_to_remove_breakpoint_ops,
15428 record_full_beneath_to_insert_breakpoint_ops, and
15429 record_full_beneath_to_remove_breakpoint_ops.
15430 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15431 (m32r_remove_breakpoint): Add target_ops parameter.
15432 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15433 Add target_ops parameter.
15434 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15435 Add target_ops parameter.
15437 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15438 Markus Metzger <markus.t.metzger@intel.com>
15440 * record-btrace.c: Include frame-unwind.h.
15441 (record_btrace_frame_unwind_stop_reason)
15442 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15443 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15445 (init_record_btrace_ops): Install it.
15447 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15449 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15452 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15454 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15457 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15459 * frame-unwind.c: Include target.h.
15460 (frame_unwind_try_unwinder): New function with code from ...
15461 (frame_unwind_find_by_frame): ... here. New variable
15462 unwinder_from_target, call also target_get_unwinder)
15463 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15464 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15465 * target.h (struct target_ops): New fields to_get_unwinder and
15466 to_get_tailcall_unwinder.
15467 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15471 * record-btrace.c (record_btrace_fetch_registers)
15472 (record_btrace_store_registers)
15473 (record_btrace_to_prepare_to_store): New.
15474 (init_record_btrace_ops): Add the above.
15476 2014-01-16 Tom Tromey <tromey@redhat.com>
15478 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15479 * target.h (struct target_ops) <to_prepare_to_store>: Add
15481 (target_prepare_to_store): Add argument.
15482 * target.c (debug_to_prepare_to_store): Add argument.
15483 (update_current_target): Update.
15484 * remote.c (remote_prepare_to_store): Add 'self' argument.
15485 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15486 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15487 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15488 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15490 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15491 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15492 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15493 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15494 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15498 * btrace.h (replay) <replay>: New.
15499 (btrace_is_replaying): New.
15500 * btrace.c (btrace_clear): Free replay iterator.
15501 (btrace_is_replaying): New.
15502 * record-btrace.c (record_btrace_is_replaying): New.
15503 (record_btrace_info): Print insn number if replaying.
15504 (record_btrace_insn_history): Start at replay position.
15505 (record_btrace_call_history): Start at replay position.
15506 (init_record_btrace_ops): Init to_record_is_replaying.
15508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15510 * record-btrace.c (record_btrace_insn_history_range): Include
15512 (record_btrace_insn_history_from): Adjust range.
15513 (record_btrace_call_history_range): Include
15515 (record_btrace_call_history_from): Adjust range.
15516 * NEWS: Announce changes.
15518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15520 * record.h (enum record_print_flag)
15521 <record_print_indent_calls>: New.
15522 * record.c (get_call_history_modifiers): Recognize /c modifier.
15523 (_initialize_record): Document /c modifier.
15524 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15525 Reorder fields. Optionally indent the function name. Update
15527 * NEWS: Announce changes.
15529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15531 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15535 * btrace.c (ftrace_new_function): Start counting at one.
15536 * record-btrace.c (record_btrace_info): Adjust number of calls
15538 * NEWS: Announce it.
15540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15542 * record-btrace.c (btrace_call_history_insn_range): Print
15543 insn range as [begin, end].
15545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15547 * btrace.h (struct btrace_func_link): New.
15548 (enum btrace_function_flag): New.
15549 (struct btrace_inst): Rename to ...
15550 (struct btrace_insn): ...this. Update all users.
15551 (struct btrace_func) <ibegin, iend>: Remove.
15552 (struct btrace_func_link): New.
15553 (struct btrace_func): Rename to ...
15554 (struct btrace_function): ...this. Update all users.
15555 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15556 (number, level, flags>: New.
15557 (struct btrace_insn_iterator): Rename to ...
15558 (struct btrace_insn_history): ...this.
15560 (struct btrace_insn_iterator, btrace_call_iterator): New.
15561 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15562 (struct btrace_target_info) <begin, end, level>
15563 <insn_history, call_history>: New.
15564 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15565 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15566 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15567 (btrace_call_number, btrace_call_begin, btrace_call_end)
15568 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15569 (btrace_find_function_by_number, btrace_set_insn_history)
15570 (btrace_set_call_history): New.
15571 * btrace.c (btrace_init_insn_iterator)
15572 (btrace_init_func_iterator, compute_itrace): Remove.
15573 (ftrace_print_function_name, ftrace_print_filename)
15574 (ftrace_skip_file): Change
15575 parameter to const.
15576 (ftrace_init_func): Remove.
15577 (ftrace_debug): Use new btrace_function fields.
15578 (ftrace_function_switched): Also consider gaining and
15579 losing symbol information).
15580 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15581 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15582 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15584 (ftrace_new_function): Move. Remove debug print.
15585 (ftrace_update_lines, ftrace_update_insns): New.
15586 (ftrace_update_function): Check for call, ret, and jump.
15587 (compute_ftrace): Renamed to ...
15588 (btrace_compute_ftrace): ...this. Rewritten to compute call
15590 (btrace_fetch, btrace_clear): Updated.
15591 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15592 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15593 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15594 (btrace_call_number, btrace_call_begin, btrace_call_end)
15595 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15596 (btrace_find_function_by_number, btrace_set_insn_history)
15597 (btrace_set_call_history): New.
15598 * record-btrace.c (require_btrace): Use new btrace thread
15600 (record_btrace_info, btrace_insn_history)
15601 (record_btrace_insn_history, record_btrace_insn_history_range):
15602 Use new btrace thread info fields and new iterator.
15603 (btrace_func_history_src_line): Rename to ...
15604 (btrace_call_history_src_line): ...this. Use new btrace
15605 thread info fields.
15606 (btrace_func_history): Rename to ...
15607 (btrace_call_history): ...this. Use new btrace thread info
15608 fields and new iterator.
15609 (record_btrace_call_history, record_btrace_call_history_range):
15610 Use new btrace thread info fields and new iterator.
15612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15614 * frame.h (frame_id_build_unavailable_stack_special): New.
15615 * frame.c (frame_id_build_unavailable_stack_special): New.
15617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15619 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15620 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15621 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15623 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15624 (i386_insn_is_jump, i386_jmp_p): New.
15625 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15626 insn_is_jump to gdbarch.
15627 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15628 * gdbarch.h: Regenerated.
15629 * gdbarch.c: Regenerated.
15630 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15631 (default_insn_is_jump): New.
15632 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15633 (default_insn_is_jump): New.
15635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15637 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15639 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15640 (btrace_read_type) <btrace_read_new>: Change to ...
15641 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15645 * common/linux-btrace.c (linux_read_btrace): Free trace from
15646 previous iteration.
15648 2014-01-15 Doug Evans <dje@google.com>
15650 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15653 2014-01-15 Tom Tromey <tromey@redhat.com>
15655 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15656 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15657 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15658 (set_objfile_main_name): New function.
15659 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15660 language_of_main>: New fields.
15661 (set_objfile_main_name): Declare.
15662 * symtab.c (find_main_name): Loop over objfiles to find the main
15664 (set_main_name): Now static.
15665 (get_main_info): Add comment.
15666 * symtab.h (set_main_name): Don't declare.
15668 2014-01-15 Tom Tromey <tromey@redhat.com>
15670 * symtab.c (main_progspace_key): New global.
15671 (struct main_info): New.
15672 (name_of_main, language_of_main): Remove.
15673 (get_main_info, main_info_cleanup): New function.
15674 (set_main_name, main_name, main_language): Use get_main_info.
15675 (_initialize_symtab): Initialize main_progspace_key.
15677 2014-01-15 Tom Tromey <tromey@redhat.com>
15679 * dbxread.c (process_one_symbol): Update.
15680 * dwarf2read.c (read_partial_die): Update.
15681 * symfile.c (set_initial_language): Call main_language.
15682 * symtab.c (language_of_main): Now static.
15683 (set_main_name): Add 'lang' parameter.
15684 (find_main_name): Update.
15685 (main_language): New function.
15686 (symtab_observer_executable_changed): Update.
15687 * symtab.h (set_main_name): Update.
15688 (language_of_main): Remove.
15689 (main_language): Declare.
15691 2014-01-15 Tom Tromey <tromey@redhat.com>
15693 * symfile.c (init_entry_point_info): Use new "initialized" field.
15695 * objfiles.h (struct entry_point) <initialized>: New field.
15696 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15697 (struct objfile) <ei>: ...here. Remove.
15698 * objfiles.c (entry_point_address_query): Update.
15700 2014-01-15 Tom Tromey <tromey@redhat.com>
15702 * objfiles.c (entry_point_address_query): Relocate entry point
15704 (objfile_relocate1): Do not relocate entry point address.
15705 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15706 <the_bfd_section_index>: New field.
15707 * symfile.c (init_entry_point_info): Find the entry point's
15710 2014-01-15 Tom Tromey <tromey@redhat.com>
15712 * solib-frv.c (enable_break): Use entry_point_address_query.
15714 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15716 * NEWS: Add note on improved process record-replay on
15717 arm*-linux* targets.
15719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15721 * arm-tdep.c (enum arm_record_result): New enum.
15722 (arm_record_unsupported_insn): New function.
15723 (arm_record_coproc_data_proc): Removed.
15724 (thumb2_record_ld_st_multiple): New function.
15725 (thumb2_record_ld_st_dual_ex_tbb): New function.
15726 (thumb2_record_data_proc_sreg_mimm): New function.
15727 (thumb2_record_ps_dest_generic): New function.
15728 (thumb2_record_branch_misc_cntrl): New function.
15729 (thumb2_record_str_single_data): New function.
15730 (thumb2_record_ld_mem_hints): New function.
15731 (thumb2_record_ld_word): New function.
15732 (thumb2_record_lmul_lmla_div): New function.
15733 (thumb2_record_decode_insn_handler): New function.
15734 (decode_insn): Add thumb32 instruction handlers.
15736 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15738 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15739 (struct arm_linux_record_tdep): Declare.
15740 (arm_canonicalize_syscall): New function.
15741 (arm_all_but_pc_registers_record): New function.
15742 (arm_linux_syscall_record): New function.
15743 (arm_linux_init_abi): Add syscall recording constructs.
15744 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15745 decoding. (arm_record_coproc_data_proc): Update arm syscall
15747 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15748 <arm_syscall_record>: New field.
15749 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15752 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15754 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15755 register for push instruction recording.
15757 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15759 * arm-tdep.c (thumb_record_misc): Update to correct logical
15760 error while recording ldm, ldmia and pop instructions.
15762 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15764 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15766 2014-01-15 Pedro Alves <palves@redhat.com>
15768 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15769 (go32_resume, go32_fetch_registers, store_register)
15770 (go32_store_registers, go32_prepare_to_store)
15771 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15772 (go32_create_inferior, go32_can_run, go32_terminal_init)
15773 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15776 2014-01-15 Tom Tromey <tromey@redhat.com>
15778 * target.h (async_callback_ftype): New typedef.
15779 (struct target_ops) <to_async>: Use it.
15781 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15783 * python/py-value.c (get_field_type): Remove unnecessary curly
15784 braces for single-statement if block.
15786 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15788 * python/py-type.c (convert_field): Add missing empty line
15789 after declarations.
15791 2014-01-14 Doug Evans <dje@google.com>
15793 * symfile.h (expand_symtabs_matching): Renamed from
15794 expand_partial_symbol_names. Update prototype.
15795 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15796 * symfile.c (expand_symtabs_matching): Renamed from
15797 expand_partial_symbol_names. New args file_matcher, kind.
15798 Rename arg fun to symbol_matcher.
15799 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15800 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15801 ada_expand_partial_symbol_name.
15802 (ada_make_symbol_completion_list): Update to call
15803 expand_symtabs_matching.
15804 (ada_add_global_exceptions): Call expand_symtabs_matching.
15805 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15806 call map_symbol_filenames.
15807 * symtab.c (sources_info): Update to call map_symbol_filenames.
15808 (search_symbols): Call expand_symtabs_matching.
15809 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15810 (default_make_symbol_completion_list_break_on): Update to call
15811 expand_symtabs_matching.
15812 (make_source_files_completion_list): Update to call
15813 map_symbol_filenames.
15815 2014-01-14 Doug Evans <dje@google.com>
15817 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15818 (expand_symtabs_symbol_matcher_ftype): New typedef.
15819 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15820 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15821 * symfile.c (expand_partial_symbol_names): Update to use
15822 expand_symtabs_symbol_matcher_ftype.
15823 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15824 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15825 Arg name_matcher renamed to symbol_matcher.
15826 * psymtab.c (recursively_search_psymtabs): Update to use
15827 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15829 (expand_symtabs_matching_via_partial): Update to use
15830 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15831 Arg name_matcher renamed to symbol_matcher.
15833 2014-01-14 Doug Evans <dje@google.com>
15835 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15836 (map_partial_symbol_filenames): Ditto.
15837 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15838 (map_partial_symbol_filenames): Ditto.
15839 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15840 (map_partial_symbol_filenames): Ditto.
15841 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15842 (map_partial_symbol_filenames): Ditto.
15843 * symtab.c: Delete #include "psymtab.h".
15845 2014-01-14 Pedro Alves <palves@redhat.com>
15846 Tom Tromey <tromey@redhat.com>
15848 * infrun.c (use_displaced_stepping): Use find_record_target
15849 instead of RECORD_IS_USED.
15850 (adjust_pc_after_break): Use record_full_is_used instead of
15852 * record-btrace.c (record_btrace_open): Call record_preopen
15853 instead of checking RECORD_IS_USED.
15854 * record-full.c (record_full_shortname)
15855 (record_full_core_shortname): New globals.
15856 (record_full_is_used): New function.
15857 (find_full_open): Call record_preopen instead of checking
15859 (init_record_full_ops): Set the target's shortname to
15860 record_full_shortname.
15861 (init_record_full_core_ops): Set the target's shortname to
15862 record_full_core_shortname.
15863 * record-full.h (record_full_is_used): Declare.
15864 * record.c (find_record_target): Make extern.
15865 (record_preopen): New function.
15866 * record.h (RECORD_IS_USED): Delete macro.
15867 (find_record_target, record_preopen): Declare functions.
15869 2014-01-14 Yao Qi <yao@codesourcery.com>
15871 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15872 'len''s type to ULONGEST.
15873 (core_xfer_shared_libraries_aix): Likewise.
15874 * gdbarch.c, gdbarch.h: Regenerated.
15875 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15876 Change type of 'len' to ULONGEST.
15877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15878 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15880 2014-01-14 Yao Qi <yao@codesourcery.com>
15882 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15883 type of 'len' to ULONGEST.
15884 (linux_xfer_osdata_processgroups): Likewise.
15885 (linux_xfer_osdata_threads): Likewise.
15886 (linux_xfer_osdata_fds): Likewise.
15887 (linux_xfer_osdata_isockets): Likewise.
15888 (linux_xfer_osdata_shm): Likewise.
15889 (linux_xfer_osdata_sem): Likewise.
15890 (linux_xfer_osdata_msg): Likewise.
15891 (linux_common_xfer_osdata): Likewise.
15892 (struct osdata_type) <getter>: Likewise.
15893 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15896 2014-01-14 Yao Qi <yao@codesourcery.com>
15898 * target.h (target_xfer_partial_ftype): Update.
15899 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15901 * aix-thread.c (aix_thread_xfer_partial): Change type of
15902 argument 'len' to ULONGEST.
15903 * auxv.c (procfs_xfer_auxv): Likewise.
15904 (ld_so_xfer_auxv): Likewise.
15905 (memory_xfer_auxv): Likewise.
15906 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15907 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15908 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15909 * corelow.c (core_xfer_partial): Likewise.
15910 * ctf.c (ctf_xfer_partial): Likewise.
15911 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15913 (darwin_read_dyld_info): Likewise.
15914 (darwin_xfer_partial): Likewise.
15915 * exec.c (section_table_xfer_memory_partial): Likewise.
15916 (exec_xfer_partial): Likewise.
15917 * exec.h (section_table_xfer_memory_partial): Update
15919 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15920 instead of plongest.
15921 (gnu_xfer_partial): Likewise.
15922 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15923 (ia64_hpux_xfer_solib_got): Likewise.
15924 (ia64_hpux_xfer_partial): Likewise.
15925 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15926 * inf-ptrace.c (inf_ptrace_xfer_partial):
15927 * inf-ttrace.c (inf_ttrace_xfer_partial):
15928 * linux-nat.c (linux_xfer_siginfo): Likewise.
15929 (linux_nat_xfer_partial): Likewise.
15930 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15931 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15932 * monitor.c (monitor_xfer_memory): Likewise.
15933 (monitor_xfer_partial): Likewise.
15934 * procfs.c (procfs_xfer_partial): Likewise.
15935 * record-full.c (record_full_xfer_partial): Likewise.
15936 (record_full_core_xfer_partial): Likewise.
15937 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15938 instead of plongest.
15939 (gdbsim_xfer_partial): Likewise.
15940 * remote.c (remote_xfer_partial): Likewise.
15941 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15942 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15944 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15945 (rs6000_xfer_shared_libraries): Likewise.
15946 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15948 (sparc_xfer_partial): Likewise.
15949 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15950 (spu_xfer_partial): Likewise.
15951 * spu-multiarch.c (spu_xfer_partial): Likewise.
15952 * target.c (target_read_live_memory): Likewise.
15953 (memory_xfer_live_readonly_partial): Likewise.
15954 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15955 (target_xfer_partial, default_xfer_partial): Likewise.
15956 (current_xfer_partial): Likewise.
15957 * tracepoint.c (tfile_xfer_partial): Likewise.
15958 * windows-nat.c (windows_xfer_memory): Likewise. Call
15959 pulongest instead of plongest.
15960 (windows_xfer_partial): Likewise.
15961 (windows_xfer_shared_libraries): Likewise.
15963 2014-01-14 Yao Qi <yao@codesourcery.com>
15965 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15966 target_xfer_partial_ftype.
15968 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15972 * valops.c (value_struct_elt_bitpos): New function
15973 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15974 object to 'None' if the field name is an empty string ("").
15975 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15976 attribute to look for a field when 'name' is 'None'.
15977 (get_field_type): New function
15979 2014-01-13 Doug Evans <dje@google.com>
15982 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15983 (try_open_dwop_file): Ditto.
15984 * gdb_bfd.c: #include "vec.h".
15985 (bfdp): New typedef.
15986 (struct gdb_bfd_data): New member included_bfds.
15987 (gdb_bfd_unref): Unref all included bfds.
15988 (gdb_bfd_record_inclusion): New function.
15989 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15991 2014-01-13 Tom Tromey <tromey@redhat.com>
15993 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15995 2014-01-13 Tom Tromey <tromey@redhat.com>
15997 * defs.h (use_windows): Remove.
15998 * gdb.c (main): Update.
15999 * main.c (captured_main, gdb_main): Update.
16000 * main.h (struct captured_main_args) <use_windows>: Remove.
16001 * top.c (use_windows): Remove.
16003 2014-01-13 Tom Tromey <tromey@redhat.com>
16005 * defs.h (deprecated_flush_hook): Remove.
16007 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16010 * linux-thread-db.c (try_thread_db_load): Add parameter
16011 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16012 (try_thread_db_load_from_pdir_1): Move it there from here.
16013 (try_thread_db_load_from_sdir): Update caller.
16014 (try_thread_db_load_from_dir): Move it there from here.
16016 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16018 * regformats/regdat.sh: Always rewrite the register file.
16020 2014-01-13 Pedro Alves <palves@redhat.com>
16022 * Makefile.in (CHECK_HEADERS): New variable.
16023 (check-headers:): New rule.
16025 2014-01-13 Tom Tromey <tromey@redhat.com>
16027 * cli/cli-setshow.c (do_set_command): Update.
16028 * defs.h (deprecated_set_hook): Remove.
16029 * top.c (deprecated_set_hook): Remove.
16031 2014-01-13 Pedro Alves <palves@redhat.com>
16033 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16034 the tracepoint if the PC is a pseudo-register.
16036 2014-01-13 Tom Tromey <tromey@redhat.com>
16038 * defs.h (XCALLOC): Remove.
16039 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16040 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16041 * dwarf2loc.c (allocate_piece_closure): Likewise.
16042 * elfread.c (elf_symfile_segments): Likewise.
16043 (elf_symfile_segments): Likewise.
16044 * gdbtypes.c (copy_type_recursive): Likewise.
16045 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16046 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16047 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16049 * mt-tdep.c (mt_gdbarch_init): Likewise.
16050 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16052 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16053 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16054 * registry.c (registry_alloc_data): Likewise.
16055 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16056 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16057 * serial.c (serial_fdopen_ops): Likewise.
16058 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16060 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16061 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16064 2014-01-13 Tom Tromey <tromey@redhat.com>
16066 * defs.h (XMALLOC): Remove.
16067 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16068 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16069 * cli-out.c (struct ui_out *): Likewise.
16070 * cli/cli-dump.c (add_dump_command): Likewise.
16071 (add_dump_command): Likewise.
16072 * complaints.c (get_complaints): Likewise.
16073 (find_complaint): Likewise.
16074 * dwarf2-frame.c (execute_cfa_program): Likewise.
16075 * dwarf2read.c (abbrev_table_read_table): Likewise.
16076 * gdbarch.sh: Likewise.
16077 * gdbarch.c: Rebuild.
16078 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16079 * interps.c (interp_new): Likewise.
16080 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16081 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16082 * mi/mi-console.c (mi_console_file_new): Likewise.
16083 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16084 * mi/mi-out.c (mi_out_new): Likewise.
16085 * mi/mi-parse.c (mi_parse): Likewise.
16086 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16087 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16088 * observer.c (xalloc_observer_list_node): Likewise.
16089 * regcache.c (regcache_xmalloc_1): Likewise.
16090 * reggroups.c (reggroup_new): Likewise.
16091 (_initialize_reggroup): Likewise.
16092 * registry.c (register_data_with_cleanup): Likewise.
16093 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16094 * ser-base.c (serial_ttystate): Likewise.
16095 * ser-mingw.c (make_pipe_state): Likewise.
16096 * ser-pipe.c (pipe_open): Likewise.
16097 * serial.c (serial_open): Likewise.
16098 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16099 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16100 (tui_alloc_win_info): Likewise.
16101 (tui_add_content_elements): Likewise.
16102 * tui/tui-file.c (tui_file_new): Likewise.
16103 * tui/tui-out.c (tui_out_new): Likewise.
16104 * ui-file.c (mem_file_new): Likewise.
16105 * ui-out.c (push_level): Likewise.
16106 (make_cleanup_ui_out_end): Likewise.
16107 (append_header_to_list): Likewise.
16108 (ui_out_new): Likewise.
16109 * user-regs.c (user_reg_add_builtin): Likewise.
16111 2014-01-13 Tom Tromey <tromey@redhat.com>
16113 * defs.h (XZALLOC): Remove.
16114 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16115 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16116 (get_ada_tasks_inferior_data): Likewise.
16117 * auto-load.c (get_auto_load_pspace_data): Likewise.
16118 * auxv.c (get_auxv_inferior_data): Likewise.
16119 * bfd-target.c (target_bfd_reopen): Likewise.
16120 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16121 (deprecated_insert_raw_breakpoint): Likewise.
16122 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16123 * corelow.c (core_open): Likewise.
16124 * darwin-nat.c (darwin_check_new_threads): Likewise.
16125 (darwin_attach_pid): Likewise.
16126 * dummy-frame.c (dummy_frame_push): Likewise.
16127 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16128 * dwarf2loc.c (allocate_piece_closure): Likewise.
16129 * elfread.c (elf_symfile_segments): Likewise.
16130 * eval.c (ptrmath_type_p): Likewise.
16131 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16132 * gdbtypes.c (alloc_type_arch): Likewise.
16133 (alloc_type_instance): Likewise.
16134 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16135 * inf-child.c (inf_child_can_use_agent): Likewise.
16136 * inflow.c (get_inflow_inferior_data): Likewise.
16137 * infrun.c (save_infcall_suspend_state): Likewise.
16138 * jit.c (jit_reader_load): Likewise.
16139 (get_jit_objfile_data): Likewise.
16140 (get_jit_program_space_data): Likewise.
16141 (jit_object_open_impl): Likewise.
16142 (jit_symtab_open_impl): Likewise.
16143 (jit_block_open_impl): Likewise.
16144 (jit_frame_sniffer): Likewise.
16145 * linux-fork.c (add_fork): Likewise.
16146 * maint.c (make_command_stats_cleanup): Likewise.
16147 * objfiles.c (get_objfile_pspace_data): Likewise.
16148 * opencl-lang.c (struct lval_closure): Likewise.
16149 * osdata.c (osdata_start_osdata): Likewise.
16150 * progspace.c (new_address_space): Likewise.
16151 (add_program_space): Likewise.
16152 * remote-sim.c (get_sim_inferior_data): Likewise.
16153 * sh-tdep.c (sh_gdbarch_init): Likewise.
16154 * skip.c (Ignore): Likewise.
16155 (skip_delete_command): Likewise.
16156 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16157 (library_list_start_library): Likewise.
16158 (solib_aix_current_sos): Likewise.
16159 * solib-darwin.c (get_darwin_info): Likewise.
16160 (darwin_current_sos): Likewise.
16161 * solib-dsbt.c (get_dsbt_info): Likewise.
16162 * solib-ia64-hpux.c (new_so_list): Likewise.
16163 (ia64_hpux_get_solib_linkage_addr): Likewise.
16164 * solib-spu.c (append_ocl_sos): Likewise.
16165 (spu_current_sos): Likewise.
16166 * solib-svr4.c (get_svr4_info): Likewise.
16167 (svr4_keep_data_in_core): Likewise.
16168 (library_list_start_library): Likewise.
16169 (svr4_default_sos): Likewise.
16170 (svr4_read_so_list): Likewise.
16171 * solib-target.c (library_list_start_library): Likewise.
16172 (solib_target_current_sos): Likewise.
16173 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16174 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16175 * symfile.c (default_symfile_segments): Likewise.
16176 * target-descriptions.c (tdesc_data_init): Likewise.
16177 (tdesc_create_reg): Likewise.
16178 (struct tdesc_type *): Likewise.
16179 (tdesc_create_vector): Likewise.
16180 (tdesc_set_struct_size): Likewise.
16181 (struct tdesc_type *): Likewise.
16182 (tdesc_free_feature): Likewise.
16183 (tdesc_create_feature): Likewise.
16184 * windows-nat.c (windows_add_thread): Likewise.
16185 (windows_make_so): Likewise.
16186 * xml-support.c (gdb_xml_body_text): Likewise.
16187 (gdb_xml_create_parser_and_cleanup): Likewise.
16188 (xml_process_xincludes): Likewise.
16189 * xml-syscall.c (allocate_syscalls_info): Likewise.
16190 (syscall_create_syscall_desc): Likewise.
16192 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16194 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16195 function, with code from i386_stap_parse_special_token.
16196 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16197 (i386_stap_parse_special_token): Move code to the two functions
16198 above; simplify it.
16200 2014-01-09 Pedro Alves <palves@redhat.com>
16201 Hui Zhu <hui@codesourcery.com>
16204 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16205 bp_err_string. Don't mark the location shlib_disabled if the
16206 error thrown wasn't a generic or memory error. Catch errors
16207 thrown while inserting breakpoints in overlayed code. Output
16208 error message of software breakpoints.
16209 * remote.c (remote_insert_breakpoint): If this breakpoint has
16210 target-side commands but this stub doesn't support Z0 packets,
16211 throw NOT_SUPPORTED_ERROR error.
16212 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16213 * target.h (target_insert_breakpoint): Extend comment.
16214 (target_insert_hw_breakpoint): Add comment.
16216 2014-01-08 Pedro Alves <palves@redhat.com>
16218 * remote.c (remote_add_thread): Add threads silently if starting
16220 (remote_notice_new_inferior): If in all-stop, and starting up,
16221 don't call notice_new_inferior.
16222 (get_current_thread): New function, factored out from ...
16223 (add_current_inferior_and_thread): ... this. Adjust.
16224 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16225 found any thread, then select the remote's current thread as GDB's
16226 current thread too.
16228 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16230 * NEWS: Create a new section for the next release branch.
16231 Rename the section of the current branch, now that it has
16234 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16236 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16237 * version.in: Bump version to 7.7.50.DATE-cvs.
16239 2014-01-08 Yao Qi <yao@codesourcery.com>
16241 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16242 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16243 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16245 2014-01-08 Yao Qi <yao@codesourcery.com>
16247 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16248 return value of bfd_get_filename to symbol_file_add_from_bfd.
16250 2014-01-08 Pierre Muller <muller@sourceware.org>
16253 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16254 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16255 to prim_record_mininal_symbol_and_info.
16256 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16257 in call to prim_record_minimal_symbol_and_info.
16258 (read_pe_exported_syms): Set index field of section_data.
16260 2014-01-07 Andrew Pinski <apinski@cavium.com>
16262 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16263 * features/aarch64.c: Regenerate.
16265 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16267 * target.c (return_null): Define.
16268 (update_current_target): Use it instead of return_zero for
16269 functions that return a pointer.
16271 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16273 * source.c (add_path): Fix check for duplicated paths in the previously
16276 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16278 * ada-lang.c: Remove duplicated include statements.
16279 * alphabsd-nat.c: Ditto.
16280 * amd64-darwin-tdep.c: Ditto.
16281 * amd64fbsd-nat.c: Ditto.
16282 * auto-load.c: Ditto.
16284 * breakpoint.c: Ditto.
16285 * dbxread.c: Ditto.
16286 * fork-child.c: Ditto.
16287 * gdb_usleep.c: Ditto.
16288 * i386-darwin-tdep.c: Ditto.
16289 * i386fbsd-nat.c: Ditto.
16291 * inferior.c: Ditto.
16292 * jv-lang.c: Ditto.
16293 * linux-nat.c: Ditto.
16294 * linux-tdep.c: Ditto.
16295 * m68kbsd-nat.c: Ditto.
16296 * m68klinux-nat.c: Ditto.
16297 * microblaze-tdep.c: Ditto.
16298 * mips-linux-tdep.c: Ditto.
16299 * mn10300-tdep.c: Ditto.
16300 * nto-tdep.c: Ditto.
16301 * opencl-lang.c: Ditto.
16303 * printcmd.c: Ditto.
16304 * regcache.c: Ditto.
16305 * remote-m32r-sdi.c: Ditto.
16307 * symfile.c: Ditto.
16309 * tilegx-linux-nat.c: Ditto.
16310 * tilegx-tdep.c: Ditto.
16311 * tracepoint.c: Ditto.
16313 * vaxbsd-nat.c: Ditto.
16314 * windows-nat.c: Ditto.
16315 * xtensa-tdep.c: Ditto.
16317 2014-01-07 Yao Qi <yao@codesourcery.com>
16319 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16321 2014-01-07 Yao Qi <yao@codesourcery.com>
16322 Joel Brobecker <brobecker@adacore.com>
16324 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16325 (pdc_write_regs): Likewise.
16326 (fetch_regs_kernel_thread): Likewise.
16327 (store_regs_kernel_thread): Likewise.
16329 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16331 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16332 tagged type objects to their actual type.
16334 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16336 * ada-valprint.c (print_field_values): Add "language" parameter.
16337 Update calls to print_field_values and print_variant_part.
16338 Pass new parameter "language" in call to val_print instead
16339 of "current_language". Replace call to ada_val_print by call
16341 (print_variant_part): Add "language" parameter.
16342 (ada_val_print_struct_union): Update call to print_field_values.
16344 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16346 * ada-valprint.c (ui_memcpy): Delete.
16347 (ada_print_floating): Update documentation. Add empty line
16348 between between function documentation and implementation.
16349 Delete variable "buffer". Use ui_file_xstrdup in place of
16350 ui_file_put. Minor adjustments following this change.
16352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16354 * ada-valprint.c (ada_val_print_string): New function,
16355 extracted from ada_val_print_array.
16356 (ada_val_print_array): Replace extracted code by call
16357 to ada_val_print_string followed by a return. Move
16358 "else" branch to the function's top block.
16360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16362 * ada-valprint.c (ada_val_print_array): Move implementation
16363 down. Rename parameter "offset" and "val" into "offset_aligned"
16364 and "original_value" respectively. Add parameter "offset".
16366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16368 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16369 re-organizing the code. Change the "???" message printed
16370 when target type is a TYPE_CODE_UNDEF into
16371 "<ref to undefined type>".
16373 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16375 * ada-valprint.c (print_record): Delete, implementation inlined...
16376 (ada_val_print_struct_union): ... here. Remove call to
16377 ada_check_typedef in inlined implementation.
16379 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16381 * ada-valprint.c (ada_val_print_gnat_array): New function,
16382 extracted from ada_val_print_1;
16383 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16384 (ada_val_print_flt, ada_val_print_struct_union)
16385 (ada_val_print_ref): Likewise.
16386 (ada_val_print_1): Delete variables i and elttype.
16387 Replace extracted-out code by call to corresponding
16390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16392 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16396 * ada-valprint.c (ada_val_print_1): Replace calls to
16397 ada_val_print_1 by calls to val_print.
16399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16401 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16402 Update calls to self accordingly. Replace calls to c_val_print
16403 by calls to val_print.
16405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16407 * ada-valprint.c (print_record): Delete declaration.
16408 (adjust_type_signedness, ada_val_print_1): Likewise.
16409 (ada_val_print): Move function implementation down.
16410 (print_variant_part, print_field_values, print_record):
16411 Move function implementation up.
16413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16415 * python/py-type.c (typy_get_name): New function.
16416 (type_object_getset): Add entry for attribute "name".
16417 * NEWS: Add entry mentioning this new attribute.
16419 2014-01-07 Yao Qi <yao@codesourcery.com>
16421 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16424 2014-01-07 Yao Qi <yao@codesourcery.com>
16426 * gnu-nat.c (info_port_rights): Add qualifier const to
16429 2014-01-07 Yao Qi <yao@codesourcery.com>
16431 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16433 2014-01-07 Yao Qi <yao@codesourcery.com>
16435 * gnu-nat.c (make_inf) Update declaration.
16436 (make_inf): Make it static.
16437 (inf_set_traced): Likewise.
16438 (inf_port_to_thread, inf_task_died_status): Likewise.
16440 2014-01-07 Yao Qi <yao@codesourcery.com>
16442 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16444 2014-01-07 Yao Qi <yao@codesourcery.com>
16446 * gnu-nat.c (_initialize_gnu_nat): Declare.
16448 2014-01-07 Yao Qi <yao@codesourcery.com>
16450 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16452 (struct gdbarch_info) <byte_order>: Change type to
16454 <byte_order_for_code>: Likewise.
16455 * gdbarch.c, gdbarch.h: Regenerated.
16457 2014-01-06 Sasha Smundak <asmundak@google.com>
16459 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16461 2014-01-06 Tom Tromey <tromey@redhat.com>
16463 * doublest.c (convert_doublest_to_floatformat): Use const, not
16465 * somread.c (som_symtab_read): Likewise.
16467 2014-01-07 Hui Zhu <hui@codesourcery.com>
16469 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16470 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16471 (gdb_bfd_fopen): Ditto.
16472 (gdb_bfd_openr): Ditto.
16473 (gdb_bfd_openw): Ditto.
16474 (gdb_bfd_openr_iovec): Ditto.
16475 (gdb_bfd_fdopenr): Ditto.
16476 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16477 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16479 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16481 * symfile-mem.c (symbol_file_add_from_memory): Removed
16482 gdb_bfd_stash_filename.
16484 2014-01-03 Doug Evans <dje@google.com>
16486 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16489 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16491 Update year range in copyright notice of all files.
16493 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16495 * top.c (print_gdb_version): Set copyright year to 2014.
16497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16499 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16501 For older changes see ChangeLog-2013.
16507 version-control: never