1 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3 * arm-tdep.c (arm_gdbarch_init): Explicitely handle value 3 of
4 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
5 switch handling the different values of Tag_ABI_VFP_args.
7 2014-12-23 Doug Evans <xdje42@gmail.com>
9 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
11 (cache_symbol): Ignore symbols that are not objfile-owned.
12 * block.c (block_objfile): New function.
13 (block_gdbarch): New function.
14 * block.h (block_objfile): Declare.
15 (block_gdbarch): Declare.
16 * c-exp.y (classify_name): Remove call to
17 language_lookup_primitive_type. No longer necessary.
18 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
19 Remove call to language_lookup_primitive_type. No longer necessary.
20 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
21 (syscm_gdbarch_data): New struct.
22 (syscm_init_arch_symbols): New function.
23 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
24 All callers updated. Handle symbols owned by arches.
25 (gdbscm_symbol_symtab): Handle symbols owned by arches.
26 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
27 * language.c (language_lookup_primitive_type_1): New function.
28 (language_lookup_primitive_type): Call it.
29 (language_alloc_type_symbol): New function.
30 (language_init_primitive_type_symbols): New function.
31 (language_lookup_primitive_type_as_symbol): New function.
32 * language.h (struct language_arch_info) <primitive_type_symbols>:
34 (language_lookup_primitive_type): Add function comment.
35 (language_lookup_primitive_type_as_symbol): Declare.
36 * printcmd.c (address_info): Handle arch-owned symbols.
37 * python/py-symbol.c (sympy_get_symtab): Ditto.
39 (sympy_dealloc): Ditto.
40 * symmisc.c (print_symbol): Ditto.
41 * symtab.c (fixup_symbol_section): Ditto.
42 (lookup_symbol_aux): Initialize block_found.
43 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
45 (initialize_objfile_symbol_1): New function.
46 (initialize_objfile_symbol): Call it.
47 (allocate_symbol): Call it.
48 (allocate_template_symbol): Call it.
49 (symbol_objfile): Assert symbol is objfile-owned.
50 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
51 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
52 (struct symbol) <is_objfile_owned>: New member.
53 (SYMBOL_OBJFILE_OWNED): New macro.
54 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
55 All callers updated. Try to find the symbol as a primitive type.
56 (lookup_namespace_scope): New arg langdef. All callers updated.
57 Call cp_lookup_bare_symbol directly for simple bare symbols.
59 2014-12-23 Doug Evans <xdje42@gmail.com>
61 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
62 (struct symbol) <domain>: Use it.
64 2014-12-23 Doug Evans <xdje42@gmail.com>
66 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
69 2014-12-23 Doug Evans <xdje42@gmail.com>
71 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
72 New arg language_defn. All uses updated.
74 2014-12-23 Doug Evans <xdje42@gmail.com>
76 * symtab.h (SYMBOL_SYMTAB): Delete
77 (SYMBOL_OBJFILE): Delete.
78 (symbol_symtab, symbol_set_symtab): Declare.
79 (symbol_objfile, symbol_arch): Declare.
80 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
81 All references to symbol->symtab redirected through here.
82 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
83 redirected through here.
84 (symbol_arch): New function.
85 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
87 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
89 * findvar.c (default_read_var_value): Call symbol_arch.
90 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
91 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
92 * printcmd.c (address_info): Call symbol_arch.
93 * tracepoint.c (scope_info): Call symbol_arch.
95 2014-12-22 Doug Evans <xdje42@gmail.com>
97 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
98 (cp_lookup_symbol_namespace): Call it.
99 (cp_lookup_symbol_nonlocal): Ditto.
101 2014-12-22 Doug Evans <xdje42@gmail.com>
103 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
104 "search_scope_first". All callers updated.
106 2014-12-22 Doug Evans <xdje42@gmail.com>
108 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
109 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
110 arg "search". All callers updated.
111 (cp_lookup_bare_symbol): New function.
112 (cp_search_static_and_baseclasses): New function.
113 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
114 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
115 (cp_lookup_nested_symbol): Ditto.
117 2014-12-22 Doug Evans <xdje42@gmail.com>
119 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
121 2014-12-22 Doug Evans <xdje42@gmail.com>
123 * cp-namespace.c: Whitespace cleanup.
125 2014-12-20 Keith Seitz <keiths@redhat.com>
126 Mihail-Marian Nistor <mihail.nistor@freescale.com>
129 * linespec.c (struct collect_minsyms): Add new member `symtab'.
130 (add_minsym): Handle cases where info.symtab is non-NULL.
131 (search_minsyms_for_name): Add new parameter `symtab'.
132 Handle limiting searches to a specific symtab.
133 (add_matching_symtabs_to_info): Search through minimal symbols
134 for language_asm files for which no new symbols are found.
136 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
137 Nigel Stephens <nigel@mips.com>
138 Chris Dearman <chris@mips.com>
139 Luis Machado <lgustavo@codesourcery.com>
141 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
142 (ALLDEPFILES): Add mips-sde-tdep.c.
143 * mips-sde-tdep.c: New file containg SDE specific code.
144 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
146 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
147 * osabi.c (gdb_osabi_names): Add SDE.
148 * NEWS: Mention the change.
150 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
152 * elfread.c (elf_symfile_init): Remove stale comment.
153 (elf_symfile_read): Same.
154 * symfile.h (struct sym_fns): Same.
156 2014-12-18 Nigel Stephens <nigel@mips.com>
157 Maciej W. Rozycki <macro@codesourcery.com>
159 * mips-tdep.c (print_fpu_flags): New function.
160 (mips_print_float_info): Likewise.
161 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
162 print_float_info routine.
164 2014-12-18 Yao Qi <yao@codesourcery.com>
166 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
167 * gdbarch.c: Re-generated.
168 * gdbarch.h: Likewise.
169 * infcmd.c (default_print_float_info): New function.
170 (print_float_info): Removed. Move code to
171 default_print_float_info.
172 (float_info): Adjust to call gdbarch_print_float_info.
173 * inferior.h (default_print_float_info): Declare it.
175 2014-12-18 Yao Qi <yao@codesourcery.com>
177 * h8300-tdep.c (h8300_print_float_info): Remove.
178 (h8300_gdbarch_init): Remove the call to
179 set_gdbarch_print_float_info.
181 2014-12-18 Doug Evans <xdje42@gmail.com>
183 * infcmd.c (jump_command): Minor simplification.
185 2014-12-18 Doug Evans <xdje42@gmail.com>
187 * language.c (language_lookup_primitive_type): Renamed from
188 language_lookup_primitive_type_by_name. All callers updated.
190 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
192 Fix MinGW compilation.
193 * compile/compile.c (get_compile_file_tempdir): Call error if
195 * config.in: Regenerate.
196 * configure: Regenerate.
197 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
199 2014-12-17 Doug Evans <xdje42@gmail.com>
201 * valops.c (value_maybe_namespace_elt): Remove redundant call to
202 lookup_static_symbol.
204 2014-12-17 Doug Evans <xdje42@gmail.com>
206 New parameter "debug symbol-lookup".
208 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
210 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
211 (cp_lookup_nested_symbol): Ditto.
212 * language.c (language_lookup_primitive_type_by_name): Add debug
214 * minsyms.c (lookup_minimal_symbol): Add debug output.
215 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
216 * symfile-debug.c (debug_objfile_name): ... from here. All callers
218 * objfiles.h (objfile_debug_name): Declare.
219 * symtab.h (symbol_lookup_debug): Declare.
220 * symtab.c (symbol_lookup_debug): New global.
221 (lookup_language_this): Add debug output.
222 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
223 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
224 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
225 (_initialize_symtab): Add new parameter "debug symbol-lookup".
227 2014-12-16 Doug Evans <xdje42@gmail.com>
229 * buildsym.c: Add comments describing how the buildsym machinery
230 is used by the various file formats.
231 (really_free_pendings): Enhance function comment.
232 See pending_macros to NULL. Simplify resetting pending_addrmap.
233 Call free_buildsym_compunit.
234 (free_buildsym_compunit): Set current_subfile to NULL.
235 (prepare_for_building): New function.
236 (start_symtab): Call it. Remove call to set_last_source_file.
237 (restart_symtab): New arg "cust". All callers updated.
238 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
239 (reset_symtab_globals): Enhance function comment.
240 Set local_symbols, file_symbols, global_symbols to NULL.
241 Set pending_macros to NULL. Simplify resetting pending_addrmap.
242 Call free_buildysym_compunit.
243 (end_symtab_without_blockvector): Delete. All callers updated.
244 (end_symtab_with_blockvector): Remove redundant call to
245 free_buildsym_compunit.
246 (augment_type_symtab): Remove arg "cust". All callers updated.
247 (buildsym_init): Remove resetting of free_pendings, file_symbols,
248 global_symbols, pending_blocks, pending_macros. Instead make
249 handling consistent with pending_addrmap: Assert value was reset
250 at end of previous symtab building. Initialize context_stack here.
252 2014-12-16 Doug Evans <xdje42@gmail.com>
254 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
255 cp_lookup_symbol_imports. All callers updated.
257 2014-12-16 Doug Evans <xdje42@gmail.com>
259 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
260 find_type_baseclass_by_name. All callers updated.
262 2014-12-16 Doug Evans <xdje42@gmail.com>
264 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
265 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
266 (print_symbol_info): Delete arg symtab. All callers updated.
267 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
269 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
271 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
272 "Name" columns. Assure that the output is always indented.
274 2014-12-16 Joel Brobecker <brobecker@adacore.com>
276 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
278 (linux_enable_event_reporting): Add parameter "attached".
279 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
280 declaration. New function.
281 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
282 (linux_enable_event_reporting): Add new parameter "attached".
283 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
285 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
286 Use it. Update function description.
287 (linux_child_post_attach, linux_child_post_startup_inferior):
288 Update call to linux_enable_event_reporting.
290 2014-12-16 Yao Qi <yao@codesourcery.com>
292 * NEWS: Move some entries to "Changes since GDB 7.8" section.
294 2014-12-16 Yao Qi <yao@codesourcery.com>
296 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
299 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
301 * inferior.c (find_inferior_ptid): New function.
302 * inferior.h (find_inferior_ptid): New declaration.
303 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
304 * corelow.c (core_pid_to_str): Same.
305 * darwin-nat.c (darwin_resume): Same.
306 * infrun.c (fetch_inferior_event): Same.
307 (get_inferior_stop_soon): Same.
308 (handle_inferior_event): Same.
309 (handle_signal_stop): Same.
310 * linux-nat.c (resume_lwp): Same.
311 (stop_wait_callback): Same.
312 * mi/mi-interp.c (mi_new_thread): Same.
313 (mi_thread_exit): Same.
314 * proc-service.c (ps_pglobal_lookup): Same.
315 * record-btrace.c (record_btrace_step_thread): Same.
316 * remote-sim.c (gdbsim_close_inferior): Same.
317 (gdbsim_resume): Same.
319 * sol2-tdep.c (sol2_core_pid_to_str): Same.
320 * target.c (memory_xfer_partial_1): Same.
321 (default_thread_address_space): Same.
322 * thread.c (thread_change_ptid): Same.
323 (switch_to_thread): Same.
324 (do_restore_current_thread_cleanup): Same.
326 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
328 * defs.h (gdb_readline): Constify argument.
329 (gdb_readline_wrapper): Same.
330 (command_line_input): Same.
331 (deprecated_readline_hook): Same.
332 * top.c (deprecated_readline_hook): Same.
333 (gdb_readline): Same.
334 (gdb_readline_wrapper): Same.
335 (command_line_input): Constify argument. Pass prompt_arg to called
336 functions instead of local_prompt, overwriting prompt_arg if necessary.
337 * event-top.h (display_gdb_prompt): Constify argument.
338 * event-top.c (display_gdb_prompt): Same.
339 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
340 if building with Python 3.4 and up.
342 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
344 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
347 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
350 * memattr.c (mem_info_command): Remove "unsigned long" casts.
352 2014-12-13 Doug Evans <xdje42@gmail.com>
354 * utils.c (make_hex_string): Fix off-by-one error.
356 2014-12-13 Joel Brobecker <brobecker@adacore.com>
358 * ada-lang.h (ada_ensure_varsize_limit): Declare.
359 * ada-lang.c (check_size): Remove advance declaration.
360 (ada_ensure_varsize_limit): Renames check_size.
361 Replace calls to check_size by calls to ada_ensure_varsize_limit
363 * ada-valprint.c (ada_val_print_ref): Add call to
364 ada_ensure_varsize_limit. Add comment explaining why.
366 2014-12-13 Joel Brobecker <brobecker@adacore.com>
368 * utils.c (make_hex_string): Replace use of sprintf by use of
371 2014-12-13 Joel Brobecker <brobecker@adacore.com>
373 * compile/compile-object-load.c (link_callbacks_multiple_definition)
374 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
375 newline at end of warning message.
377 2014-12-13 Joel Brobecker <brobecker@adacore.com>
379 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
380 new "EXTRA-ARGS" parameter.
381 * configure.ac: If large-file support is disabled in GDB,
382 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
383 * configure: Regenerate.
385 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
388 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
389 TYPE if not TYPE_CODE_TYPEDEF.
391 2014-12-13 Joel Brobecker <brobecker@adacore.com>
394 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
395 the frame unwinder must either be the dwarf2_frame_unwind
396 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
397 stack_addr is valid before calling get_frame_base. Throw
398 an error if not valid.
400 2014-12-12 Doug Evans <xdje42@gmail.com>
402 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
405 2014-12-12 Doug Evans <xdje42@gmail.com>
407 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
408 All callers updated. Rename arg "namespace" to "symbol_name".
410 2014-12-12 Doug Evans <xdje42@gmail.com>
412 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
413 partial_map_symtabs_matching_filename. All uses updated.
414 (psym_find_pc_sect_compunit_symtab): Renamed from
415 find_pc_sect_compunit_symtab_from_partial. All uses updated.
416 Add function comment.
417 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
418 All uses updated. Add function comment.
419 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
420 Add function comment.
421 (psym_find_last_source_symtab): Renamed from
422 find_last_source_symtab_from_partial. All uses updated.
423 Add function comment.
424 (psym_forget_cached_source_info): Renamed from
425 forget_cached_source_info_partial. All uses updated.
426 Add function comment.
427 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
428 All uses updated. Add function comment.
429 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
430 updated. Add function comment.
431 (psym_expand_symtabs_for_function): Renamed from
432 read_symtabs_for_function. All uses updated. Update function comment.
433 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
434 All uses updated. Add function comment.
435 (psym_expand_symtabs_with_fullname): Renamed from
436 read_psymtabs_with_fullname. All uses updated. Add function comment.
437 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
438 All uses updated. Add function comment.
439 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
441 (psym_expand_symtabs_matching): Renamed from
442 expand_symtabs_matching_via_partial. All uses updated.
443 Add function comment.
444 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
445 Add function comment.
447 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
448 Jan Kratochvil <jan.kratochvil@redhat.com>
449 Tom Tromey <tromey@redhat.com>
452 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
454 * p-lang.c (pascal_language_defn): Update.
455 * opencl-lang.c (opencl_language_defn): Update.
456 * objc-lang.c (objc_language_defn): Update.
457 * m2-lang.c (m2_language_defn): Update.
458 * language.h (struct language_defn) <la_get_compile_instance,
459 la_compute_program>: New fields.
460 * language.c (unknown_language_defn, auto_language_defn)
461 (local_language_defn): Update.
462 * jv-lang.c (java_language_defn): Update.
463 * go-lang.c (go_language_defn): Update.
464 * f-lang.c (f_language_defn): Update.
465 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
466 * dwarf2loc.c (dwarf2_compile_property_to_c)
467 (locexpr_generate_c_location, loclist_generate_c_location): New
469 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
470 * defs.h (enum compile_i_scope_types): New.
471 (enum command_control_type) <compile_control>: New constant.
472 (struct command_line) <control_u>: New field.
473 * d-lang.c (d_language_defn): Update.
474 * compile/compile.c: New file.
475 * compile/compile-c-support.c: New file.
476 * compile/compile-c-symbols.c: New file.
477 * compile/compile-c-types.c: New file.
478 * compile/compile.h: New file.
479 * compile/compile-internal.h: New file.
480 * compile/compile-loc2c.c: New file.
481 * compile/compile-object-load.c: New file.
482 * compile/compile-object-load.h: New file.
483 * compile/compile-object-run.c: New file.
484 * compile/compile-object-run.h: New file.
485 * cli/cli-script.c (multi_line_command_p, print_command_lines)
486 (execute_control_command, process_next_line)
487 (recurse_read_control_structure): Handle compile_control.
488 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
489 * c-lang.c (c_language_defn, cplus_language_defn)
490 (asm_language_defn, minimal_language_defn): Update.
491 * ada-lang.c (ada_language_defn): Update.
492 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
494 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
495 (HFILES_NO_SRCDIR): Add compile.h.
496 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
497 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
498 (compile.o, compile-c-types.o, compile-c-symbols.o)
499 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
500 (compile-c-support.o): New targets.
502 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
504 * s390-linux-tdep.c (s390_gcc_target_options): New function.
505 (s390_gdbarch_init): Add it to gdbarch.
507 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
509 * linux-tdep.c: Include objfiles.h and infcall.h.
510 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
512 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
514 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
516 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
517 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
518 translate_register. Now public.
519 (dwarf2_compile_expr_to_ax): Update.
521 2014-12-12 Tom Tromey <tromey@redhat.com>
522 Jan Kratochvil <jan.kratochvil@redhat.com>
524 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
525 (dwarf_expr_frame_base): Update caller.
526 (dwarf_expr_frame_base_1): Rename to ...
527 (func_get_frame_base_dwarf_block): ... this and make it public.
528 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
530 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
532 2014-12-12 Tom Tromey <tromey@redhat.com>
534 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
536 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
537 dwarf2_compile_cfa_to_ax.
538 (dwarf2_compile_cfa_to_ax): Remove.
539 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
540 (dwarf2_compile_cfa_to_ax): Remove.
542 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
544 * infcall.h (call_function_by_hand_dummy): Declare.
545 * infcall.c (call_function_by_hand): Use
546 call_function_by_hand_dummy.
547 (call_function_by_hand_dummy): Rename from call_function_by_hand.
548 Add arguments. Register a destructor.
550 2014-12-12 Tom Tromey <tromey@redhat.com>
551 Jan Kratochvil <jan.kratochvil@redhat.com>
553 * osabi.h (osabi_triplet_regexp): Declare.
554 * osabi.c (struct osabi_names): New.
555 (gdb_osabi_names): Change type to struct osabi_names. Update
557 (gdbarch_osabi_name): Update.
558 (osabi_triplet_regexp): New function.
559 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
560 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
561 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
562 set_gdbarch_gnu_triplet_regexp.
563 * gdbarch.sh (gnu_triplet_regexp): New method.
564 * gdbarch.c, gdbarch.h: Rebuild.
565 * arch-utils.h (default_gnu_triplet_regexp): Declare.
566 * arch-utils.c (default_gnu_triplet_regexp): New function.
568 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
570 * arch-utils.c (default_infcall_mmap)
571 (default_gcc_target_options): New functions.
572 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
573 (GDB_MMAP_PROT_EXEC): Define.
574 (default_infcall_mmap, default_gcc_target_options): Declare.
575 * gdbarch.h: Rebuild.
576 * gdbarch.c: Rebuild.
577 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
579 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
581 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
583 (pop_dummy_frame): Call the destructor if it exists.
584 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
586 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
587 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
589 2014-12-12 Tom Tromey <tromey@redhat.com>
591 * gdbtypes.h (make_unqualified_type): Declare.
592 * gdbtypes.c (make_unqualified_type): New function.
594 2014-12-12 Tom Tromey <tromey@redhat.com>
596 * ui-file.h (ui_file_write_for_put): Declare.
597 * ui-file.c (ui_file_write_for_put): New function.
598 * mi/mi-out.c (do_write): Remove.
599 (mi_out_put): Use ui_file_write_for_put.
601 2014-12-12 Doug Evans <dje@google.com>
603 * NEWS: Mention gdb.lookup_objfile.
604 * python/python.c (GdbMethods): Add lookup_objfile.
605 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
606 * python/py-objfile.c: #include "symtab.h".
607 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
608 (objfpy_lookup_objfile_by_name): New function.
609 (objfpy_lookup_objfile_by_build_id): New function.
610 (gdbpy_lookup_objfile): New function.
612 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
614 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
615 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
616 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
618 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
621 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
623 * completer.c: Include "target.h", "reggroups.h", and
625 (reg_or_group_completer): New.
626 * completer.h (reg_or_group_completer): Declare.
627 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
628 the "info registers" and "info all-registers" commands and the
629 dbx-mode "lr" command.
631 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
633 * user-regs.c: Include "arch-utils.h", "command.h", and
635 (maintenance_print_user_registers): New.
636 (_initialize_user_regs): Register new "maint print user-registers"
638 * NEWS: Mention new GDB command "maint print user-registers".
640 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
641 Maciej W. Rozycki <macro@mips.com>
642 Pedro Alves <pedro@codesourcery.com>
644 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
645 remove `predefault' and `invalid_p' initializers.
646 (make_symbol_special): New architecture method.
647 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
648 (objfile, symbol): New declarations.
649 * arch-utils.h (default_elf_make_msymbol_special): Remove
651 (default_make_symbol_special): New prototype.
652 (default_adjust_dwarf2_addr): Likewise.
653 (default_adjust_dwarf2_line): Likewise.
654 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
655 * arch-utils.c (default_elf_make_msymbol_special): Remove
657 (default_make_symbol_special): New function.
658 (default_adjust_dwarf2_addr): Likewise.
659 (default_adjust_dwarf2_line): Likewise.
660 * dwarf2-frame.c (decode_frame_entry_1): Call
661 `gdbarch_adjust_dwarf2_addr'.
662 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
663 * dwarf2read.c (create_addrmap_from_index): Likewise.
664 (process_psymtab_comp_unit_reader): Likewise.
665 (add_partial_symbol): Likewise.
666 (add_partial_subprogram): Likewise.
667 (process_full_comp_unit): Likewise.
668 (read_file_scope): Likewise.
669 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
670 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
671 (read_call_site_scope): Likewise.
672 (dwarf2_ranges_read): Likewise.
673 (dwarf2_record_block_ranges): Likewise.
674 (read_attribute_value): Likewise.
675 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
676 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
677 * elfread.c (elf_symtab_read): Don't call
678 `gdbarch_elf_make_msymbol_special' if unset.
679 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
680 the ISA bit from the PC.
681 * mips-tdep.c (mips_unmake_compact_addr): New function.
682 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
683 address appropriately.
684 (mips_make_symbol_special): New function.
685 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
686 (mips_pc_is_mips16): Likewise.
687 (mips_pc_is_micromips): Likewise.
688 (mips_pc_isa): Likewise.
689 (mips_adjust_dwarf2_addr): New function.
690 (mips_adjust_dwarf2_line): Likewise.
691 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
692 (mips_addr_bits_remove): Likewise.
693 (mips_skip_trampoline_code): Likewise.
694 (mips_write_pc): Don't set the ISA bit.
695 (mips_eabi_push_dummy_call): Likewise.
696 (mips_o64_push_dummy_call): Likewise.
697 (mips_gdbarch_init): Install `mips_make_symbol_special',
698 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
700 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
701 target-specific symbol address adjustments.
702 * gdbarch.h: Regenerate.
703 * gdbarch.c: Regenerate.
705 2014-12-12 Yao Qi <yao@codesourcery.com>
708 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
709 'skip_pc'. Remove code skipping prologue instructions, use
710 arm_analyze_prologue instead.
711 (arm_analyze_prologue): Stop the scanning for unrecognized
712 instruction when skipping prologue.
714 2014-12-12 Yao Qi <yao@codesourcery.com>
716 * arm-tdep.c (arm_instruction_restores_sp): New function.
717 (arm_analyze_prologue): Call arm_instruction_restores_sp.
718 (arm_in_function_epilogue_p): Move code to
719 arm_instruction_restores_sp.
721 2014-12-11 Doug Evans <xdje42@gmail.com>
723 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
725 2014-12-11 Doug Evans <xdje42@gmail.com>
727 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
728 (symbol *lookup_symbol_via_quick_fns): Ditto.
729 (lookup_symbol_in_objfile): Add forward decl.
730 (lookup_global_symbol_from_objfile): Simplify, call
731 lookup_symbol_in_objfile.
733 2014-12-11 Doug Evans <xdje42@gmail.com>
735 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
737 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
740 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
741 it is marked as persistent.
743 2014-12-10 Doug Evans <xdje42@gmail.com>
745 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
746 closer to its subroutines.
748 2014-12-10 Doug Evans <xdje42@gmail.com>
750 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
752 2014-12-10 Doug Evans <xdje42@gmail.com>
754 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
755 * cp-support.h (cp_lookup_symbol_imports): Delete.
757 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
760 * target.c (cleanup_restore_target_terminal): New function.
761 (make_cleanup_restore_target_terminal): New function.
762 * target.h (make_cleanup_restore_target_terminal): New declaration.
763 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
765 2014-12-08 Doug Evans <dje@google.com>
767 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
769 2014-12-08 Doug Evans <dje@google.com>
771 * NEWS: Mention gdb.Objfile.owner.
772 * python/py-objfile.c (objfpy_get_owner): New function.
773 (objfile_getset): Add "owner".
775 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
777 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
778 (lookup_global_symbol_from_objfile): Call it.
780 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
782 Remove const from struct objfile *.
783 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
784 symtab.c, symtab.h: In these files.
786 2014-12-05 Andreas From <andreas.from@ericsson.com>
788 * MAINTAINERS (Write After Approval): Add "Andreas From"
790 2014-12-05 Doug Evans <xdje42@gmail.com>
794 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
796 2014-12-04 Doug Evans <dje@google.com>
798 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
799 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
800 (objfile_getset): Add "add_separate_debug_file".
802 2014-12-04 Doug Evans <dje@google.com>
804 * NEWS: Mention gdb.Objfile.build_id.
805 * build-id.c (build_id_bfd_get): Make non-static.
806 * build-id.h (build_id_bfd_get): Add declaration.
807 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
808 (OBJFPY_REQUIRE_VALID): New macro.
809 (objfpy_get_build_id): New function.
810 (objfile_getset): Add "build_id".
811 * utils.c (make_hex_string): New function.
812 * utils.h (make_hex_string): Add declaration.
814 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
816 * block.c (block_lookup_symbol_primary): New function.
817 * block.h (block_lookup_symbol_primary): New declaration.
818 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
819 Call block_lookup_symbol_primary.
821 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
823 * tramp-frame.h (tramp_frame): Add `validate' member.
824 * tramp-frame.c (tramp_frame_start): Validate trampoline before
826 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
827 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
828 (mips_linux_o32_sigframe): Initialize `validate' member.
829 (mips_linux_o32_rt_sigframe): Likewise.
830 (mips_linux_n32_rt_sigframe): Likewise.
831 (mips_linux_n64_rt_sigframe): Likewise.
832 (micromips_linux_o32_sigframe): New variable.
833 (micromips_linux_o32_rt_sigframe): Likewise.
834 (micromips_linux_n32_rt_sigframe): Likewise.
835 (micromips_linux_n64_rt_sigframe): Likewise.
836 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
837 (mips_linux_n32n64_sigframe_init): Likewise.
838 (mips_linux_sigframe_validate): New function.
839 (micromips_linux_sigframe_validate): Likewise.
840 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
842 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
844 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
845 * sparc-sol2-tdep.c: Include "regset.h".
846 (sparc32_sol2_supply_core_gregset): New function.
847 (sparc32_sol2_collect_core_gregset): Likewise.
848 (sparc32_sol2_supply_core_fpregset): Likewise.
849 (sparc32_sol2_collect_core_fpregset): Likewise.
850 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
851 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
852 tdep->fpregset/sizeof_fpregset.
853 * sparc64-sol2-tdep.c: Include "regset.h".
854 (sparc64_sol2_supply_core_gregset): New function.
855 (sparc64_sol2_collect_core_gregset): Likewise.
856 (sparc64_sol2_supply_core_fpregset): Likewise.
857 (sparc64_sol2_collect_core_fpregset): Likewise.
858 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
859 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
860 tdep->fpregset/sizeof_fpregset.
862 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
864 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
867 2014-12-02 Doug Evans <dje@google.com>
869 * symtab.c (symbol_init_cplus_specific): Delete.
870 (symbol_set_demangled_name): Remove special c++ support.
871 (symbol_get_demangled_name, symbol_set_language): Ditto.
872 * symtab.h (struct cplus_specific): Delete.
873 (struct general_symbol_info) <language_specific>: Remove
876 2014-12-02 Doug Evans <dje@google.com>
879 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
881 2014-12-02 Doug Evans <dje@google.com>
884 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
887 2014-12-02 Doug Evans <dje@google.com>
889 * dwarf2read.c (peek_die_abbrev): Improve error message text.
891 2014-12-02 Doug Evans <dje@google.com>
893 * valops.c (do_search_struct_field): Remove remnant of Chill support.
894 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
896 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
898 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
900 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
902 * NEWS: Mention new Python events.
903 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
904 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
905 (py-infevents.o): New rule.
906 * doc/observer.texi (inferior_call_pre, inferior_call_post)
907 (memory_changed, register_changed): New observers.
908 * infcall.c (call_function_by_hand): Notify observer before and
910 * python/py-event.h (inferior_call_kind): New enum.
911 (emit_inferior_call_event): New prototype.
912 (emit_register_changed_event): New prototype.
913 (emit_memory_changed_event): New prototype.
914 * python/py-events.h (events_object): New registries
915 inferior_call, memory_changed and register_changed.
916 * python/py-evts.c (gdbpy_initialize_py_events): Add the
917 inferior_call, memory_changed and register_changed registries.
918 * python/py-infevents.c: New.
919 * python/py-inferior.c (python_on_inferior_call_pre)
920 (python_on_inferior_call_post, python_on_register_change)
921 (python_on_memory_change): New functions.
922 (gdbpy_initialize_inferior): Attach python handler to new
924 * python/py-infthread.c(gdbpy_create_ptid_object): New.
925 (thpy_get_ptid) Use gdbpy_create_ptid_object.
926 * python/python-internal.h:
927 (gdbpy_create_ptid_object)
928 (gdbpy_initialize_inferior_call_pre_event)
929 (gdbpy_initialize_inferior_call_post_event)
930 (gdbpy_initialize_register_changed_event)
931 (gdbpy_initialize_memory_changed_event): New prototypes.
932 * python/python.c (_initialize_python): Initialize new events.
933 * valops.c (value_assign): Notify register_changed observer.
935 2014-12-02 Doug Evans <dje@google.com>
937 * python/py-infthread.c: Whitespace fixes.
939 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
941 * features/Makefile (s390-te-linux64-expedite): Replace
942 non-existant r14 and r15 by r14l and r15l, respectively.
943 * regformats/s390-te-linux64.dat: Regenerate.
945 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
947 * objfiles.c (allocate_objfile): Remove duplicate comment.
949 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
951 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
952 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
953 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
954 (supply_gregset, supply_fpregset): Remove.
955 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
956 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
959 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
961 Add add-auto-load-scripts-directory.
962 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
963 * auto-load.c (add_auto_load_dir): New function.
964 (_initialize_auto_load): Install it.
966 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
968 Pushed by Joel Brobecker <brobecker@adacore.com>.
969 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
971 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
973 * eval.c (evaluate_subexp): Check that the thread stack temporaries
974 are not already enabled before enabling them.
976 2014-11-29 Yao Qi <yao@codesourcery.com>
978 * arm-tdep.c (arm_analyze_prologue): Move local variables
979 'framereg' and 'framesize' to inner block. Move code to
982 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
984 * eval.c: Include gdbthread.h.
985 (evaluate_subexp): Enable thread stack temporaries before
986 evaluating a complete expression and clean them up after the
987 evaluation is complete.
988 * gdbthread.h: Include common/vec.h.
989 (value_ptr): New typedef.
990 (VEC (value_ptr)): New vector type.
991 (value_vec): New typedef.
992 (struct thread_info): Add new fields stack_temporaries_enabled
993 and stack_temporaries.
994 (enable_thread_stack_temporaries)
995 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
996 (get_last_thread_stack_temporary)
997 (value_in_thread_stack_temporaries): Declare.
998 * gdbtypes.c (class_or_union_p): New function.
999 * gdbtypes.h (class_or_union_p): Declare.
1000 * infcall.c (call_function_by_hand): Store return values of class
1001 type as temporaries on stack.
1002 * thread.c (enable_thread_stack_temporaries): New function.
1003 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1004 (get_last_thread_stack_temporary): Likewise.
1005 (value_in_thread_stack_temporaries): Likewise.
1006 * value.c (value_force_lval): New function.
1007 * value.h (value_force_lval): Declare.
1009 2014-11-28 Pierre Muller <muller@sourceware.org>
1011 Pushed by Joel Brobecker <brobecker@adacore.com>.
1012 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1015 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1017 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1018 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1019 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1020 * m68klinux-nat.c (fetch_core_registers): Remove.
1021 (linux_elf_core_fns): Remove.
1022 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1024 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1026 * utils.c (gdb_realpath): Rework comment about handling on
1029 2014-11-28 Yao Qi <yao@codesourcery.com>
1031 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1033 * gnulib/aclocal.m4: Re-generated.
1034 * gnulib/config.in: Re-generated.
1035 * gnulib/configure: Re-generated.
1036 * gnulib/import/Makefile.am: Re-generated.
1037 * gnulib/import/Makefile.in: Re-generated.
1038 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1039 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1040 * import/basename-lgpl.c: New file.
1041 * import/dirname-lgpl.c: New file.
1042 * import/dirname.h: New file.
1043 * import/m4/dirname.m4: New file.
1044 * import/m4/malloc.m4: New file.
1045 * import/m4/rename.m4: New file.
1046 * import/m4/rmdir.m4: New file.
1047 * import/m4/stdio_h.m4: New file.
1048 * import/malloc.c: New file.
1049 * import/rename.c: New file.
1050 * import/rmdir.c: New file.
1051 * import/same-inode.h: New file.
1052 * import/stdio.c: New file.
1053 * import/stdio.in.h: New file.
1054 * import/stripslash.c: New file.
1056 2014-11-28 Yao Qi <yao@codesourcery.com>
1058 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1060 * config.in: Re-generated.
1061 * configure: Re-generated.
1062 * utils.c (gdb_realpath): Remove code calling realpath,
1063 canonicalize_file_name and pathconf.
1064 [!_WIN32]: Call canonicalize_file_name.
1066 2014-11-28 Yao Qi <yao@codesourcery.com>
1068 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1070 * aclocal.m4: Re-generated.
1071 * config.in: Re-generated.
1072 * configure: Re-generated.
1073 * import/Makefile.am: Re-generated.
1074 * import/Makefile.in: Re-generated.
1075 * import/m4/gnulib-cache.m4: Re-generated.
1076 * import/m4/gnulib-comp.m4: Re-generated.
1077 * import/canonicalize-lgpl.c: New file.
1078 * import/extra/snippet/_Noreturn.h: New file.
1079 * import/m4/canonicalize.m4: New file.
1080 * import/m4/double-slash-root.m4: New file.
1081 * import/m4/eealloc.m4: New file.
1082 * import/m4/malloca.m4: New file.
1083 * import/m4/nocrash.m4: New file.
1084 * import/m4/stdlib_h.m4: New file.
1085 * import/malloca.c: New file.
1086 * import/malloca.h: New file.
1087 * import/malloca.valgrind: New file.
1089 2014-11-28 Yao Qi <yao@codesourcery.com>
1091 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1092 * config.in, configure: Regenerate.
1093 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1094 code checking HAVE_LSTAT is defined.
1096 2014-11-28 Yao Qi <yao@codesourcery.com>
1098 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1100 * gnulib/aclocal.m4: Re-generated.
1101 * gnulib/config.in: Re-generated.
1102 * gnulib/configure: Re-generated.
1103 * gnulib/import/Makefile.am: Re-generated.
1104 * gnulib/import/Makefile.in: Re-generated.
1105 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1106 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1107 * gnulib/import/lstat.c: New file.
1108 * gnulib/import/m4/lstat.m4: New file.
1110 2014-11-28 Yao Qi <yao@codesourcery.com>
1112 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1113 * config.in, configure: Re-generate.
1114 * inf-child.c (inf_child_fileio_readlink): Don't check
1115 HAVE_READLINK is defined.
1117 2014-11-28 Yao Qi <yao@codesourcery.com>
1119 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1120 * gnulib/aclocal.m4: Re-generated.
1121 * gnulib/config.in: Likewise.
1122 * gnulib/configure: Likewise.
1123 * gnulib/import/Makefile.am: Likewise.
1124 * gnulib/import/Makefile.in: Likewise.
1125 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1126 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1127 * gnulib/import/dosname.h: New file
1128 * gnulib/import/m4/largefile.m4: New file.
1129 * gnulib/import/m4/readlink.m4: New file.
1130 * gnulib/import/m4/stat.m4: New file.
1131 * gnulib/import/readlink.c: New file.
1132 * gnulib/import/stat.c: New file.
1134 2014-11-26 Mark Wielaard <mjw@redhat.com>
1136 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1137 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1139 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1141 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1142 that there can be only one stack adjustment in the prologue
1143 with tests to detect specific disallowed stack adjustments.
1145 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1147 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1150 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1152 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1153 the instruction as well as reading it from memory.
1154 (nios2_match_add): New.
1155 (nios2_match_sub): New.
1156 (nios2_match_addi): New.
1157 (nios2_match_orhi): New.
1158 (nios2_match_stw): New.
1159 (nios2_match_ldw): New.
1160 (nios2_match_rdctl): New.
1161 (enum branch_condition): New.
1162 (nios2_match_branch): New.
1163 (nios2_match_jmpi): New.
1164 (nios2_match_calli): New.
1165 (nios2_match_jmpr): New.
1166 (nios2_match_callr): New.
1167 (nios2_match_break): New.
1168 (nios2_match_trap): New.
1169 (nios2_in_epilogue_p): Rewrite to use new functions.
1170 (nios2_analyze_prologue): Likewise.
1171 (nios2_skip_prologue): Delete unused local limit_pc.
1172 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1173 (nios2_get_next_pc): Rewrite to use new functions.
1175 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1177 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1179 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1181 Pushed by Joel Brobecker <brobecker@adacore.com>
1182 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1183 elements pi_len by the size of the elements before calling
1185 (inf_validate_task_sc): Likewise, and properly deallocate the
1188 2014-11-23 Doug Evans <xdje42@gmail.com>
1190 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1191 number and name if present. All callers updated.
1192 (dump_fn_fieldlists): Fix indentation of args.
1194 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1196 * MAINTAINERS (Write After Approval): Add myself.
1198 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1200 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1201 to a bp_call_dummy breakpoint type.
1203 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1205 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1206 registering the signal handler.
1208 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1210 * event-top.h (call_stdin_event_handler_again_p): Declare.
1211 * event-top.c (call_stdin_event_handler_again_p): Define.
1212 (stdin_event_handler): Use it.
1213 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1214 handler again if there is pending input following a
1217 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1219 Pushed by Joel Brobecker <brobecker@adacore.com>
1220 * linux-fork.c (checkpoint_command): Print index of new
1221 checkpoint in response message.
1223 2014-11-23 Yao Qi <yao@codesourcery.com>
1225 * valprint.c (read_string): Move local variables 'found_nul',
1226 'chunksize' and 'limit' to inner scope. Update comments.
1228 2014-11-22 Doug Evans <xdje42@gmail.com>
1230 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1232 (search_symbols): Fix comments and whitespace.
1234 2014-11-22 Doug Evans <xdje42@gmail.com>
1236 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1238 2014-11-21 Doug Evans <dje@google.com>
1240 * psymtab.c (psymtab_search_name): Fix whitespace.
1242 2014-11-21 Yao Qi <yao@codesourcery.com>
1244 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1246 * gnulib/import/Makefile.am: Re-generated.
1247 * gnulib/import/Makefile.in: Likewise.
1248 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1250 2014-11-21 Yao Qi <yao@codesourcery.com>
1252 * gdb_wchar.h: Include wchar.h and wctype.h.
1253 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1254 include wchar.h and wctype.h.
1255 Don't check HAVE_WCHAR_H.
1257 2014-11-21 Yao Qi <yao@codesourcery.com>
1259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1261 * gnulib/import/Makefile.am: Re-generated.
1262 * gnulib/import/Makefile.in: Likewise.
1263 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1265 2014-11-21 Yao Qi <yao@codesourcery.com>
1267 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1269 * gnulib/import/Makefile.am: Re-generated.
1270 * gnulib/import/Makefile.in: Likewise.
1271 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1273 2014-11-21 Yao Qi <yao@codesourcery.com>
1275 * common/common-defs.h: Include alloca.h
1276 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1277 * configure: Re-generated.
1278 * defs.h: Remove code handling alloca.
1279 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1282 2014-11-21 Yao Qi <yao@codesourcery.com>
1284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1286 * gnulib/import/Makefile.am: Re-generated.
1287 * gnulib/import/Makefile.in: Likewise..
1288 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1290 2014-11-21 Yao Qi <yao@codesourcery.com>
1292 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1295 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1297 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1298 flag_unsigned if HIGH_BOUND is constant and negative.
1300 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1302 PR breakpoints/10737
1303 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1304 modifier from "struct gdbarch" when compiling without Expat (XML)
1306 (get_syscall_by_number): Likewise.
1307 (get_syscall_by_name): Likewise.
1308 (get_syscall_names): Likewise.
1310 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1312 PR breakpoints/10737
1313 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1314 set_xml_syscall_file_name to provide gdbarch.
1315 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1316 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1317 * breakpoint.c (print_it_catch_syscall): Adjust call to
1318 get_syscall_by_number to provide gdbarch.
1319 (print_one_catch_syscall): Likewise.
1320 (print_mention_catch_syscall): Likewise.
1321 (print_recreate_catch_syscall): Likewise.
1322 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1323 and get_syscall_by_name to provide gdbarch.
1324 (catch_syscall_completer): Adjust call to get_syscall_names to
1326 * gdbarch.c: Regenerate.
1327 * gdbarch.h: Likewise.
1328 * gdbarch.sh: Forward declare "struct syscalls_info".
1329 (xml_syscall_file): New variable.
1330 (syscalls_info): Likewise.
1331 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1332 set_xml_syscall_file_name to provide gdbarch.
1333 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1334 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1335 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1336 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1337 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1338 * xml-syscall.c: Include gdbarch.h.
1339 (set_xml_syscall_file_name): Accept gdbarch parameter.
1340 (get_syscall_by_number): Likewise.
1341 (get_syscall_by_name): Likewise.
1342 (get_syscall_names): Likewise.
1343 (my_gdb_datadir): Delete global variable.
1344 (struct syscalls_info) <my_gdb_datadir>: New variable.
1345 (struct syscalls_info) <sysinfo>: Rename variable to
1347 (sysinfo): Delete global variable.
1348 (have_initialized_sysinfo): Likewise.
1349 (xml_syscall_file): Likewise.
1350 (sysinfo_free_syscalls_desc): Rename to...
1351 (syscalls_info_free_syscalls_desc): ... this.
1352 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1353 code to the new layout of "struct syscalls_info".
1354 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1356 (syscall_create_syscall_desc): Likewise.
1357 (syscall_start_syscall): Likewise.
1358 (syscall_parse_xml): Likewise.
1359 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1360 (init_sysinfo): Rename to...
1361 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1362 Adjust function to deal with gdbarch.
1363 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1364 gdbarch as a parameter. Adjust code.
1365 (xml_get_syscall_name): Likewise.
1366 (xml_list_of_syscalls): Likewise.
1367 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1368 (get_syscall_by_number): Likewise.
1369 (get_syscall_by_name): Likewise.
1370 (get_syscall_names): Likewise.
1371 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1372 (get_syscall_by_number): Likewise.
1373 (get_syscall_by_name): Likewise.
1374 (get_syscall_names): Likewise.
1376 2014-11-20 Doug Evans <xdje42@gmail.com>
1378 Split struct symtab into two: struct symtab and compunit_symtab.
1379 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1380 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1381 to "struct compunit_symtab *". All callers updated.
1382 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1383 "struct symtab *" argument to "struct compunit_symtab *".
1384 All callers updated.
1385 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1386 result to "struct compunit_symtab *". All callers updated.
1387 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1388 Change result to "struct compunit_symtab *". All callers updated.
1389 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1390 hange type to "struct compunit_symtab *". All uses updated.
1391 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1392 Change type to "struct compunit_symtab *". All uses updated.
1393 * buildsym.c (struct buildsym_compunit): New struct.
1394 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1395 (buildsym_compunit): New static global.
1396 (finish_block_internal): Update to fetch objfile from
1398 (make_blockvector): Delete objfile argument.
1399 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1400 debugformat, producer.
1401 (start_buildsym_compunit): New function.
1402 (free_buildsym_compunit): Renamed from free_subfiles_list.
1403 All callers updated.
1404 (patch_subfile_names): Rewrite to use buildsym_compunit.
1405 (get_compunit_symtab): New function.
1406 (get_macro_table): Delete argument comp_dir. All callers updated.
1407 (start_symtab): Change result to "struct compunit_symtab *".
1408 All callers updated. Create the subfile of the main source file.
1409 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1410 (reset_symtab_globals): Update.
1411 (end_symtab_get_static_block): Update to use buildsym_compunit.
1412 (end_symtab_without_blockvector): Rewrite.
1413 (end_symtab_with_blockvector): Change result to
1414 "struct compunit_symtab *". All callers updated.
1415 Update to use buildsym_compunit. Don't set symtab->dirname,
1416 instead set it in the compunit.
1417 Explicitly make sure main symtab is first in its list.
1418 Set debugformat, producer, blockvector, block_line_section, and
1419 macrotable in the compunit.
1420 (end_symtab_from_static_block): Change result to
1421 "struct compunit_symtab *". All callers updated.
1422 (end_symtab, end_expandable_symtab): Ditto.
1423 (set_missing_symtab): Change symtab argument to
1424 "struct compunit_symtab *". All callers updated.
1425 (augment_type_symtab): Ditto.
1426 (record_debugformat): Update to use buildsym_compunit.
1427 (record_producer): Update to use buildsym_compunit.
1428 * buildsym.h (struct subfile) <dirname>: Delete.
1429 <producer, debugformat>: Delete.
1430 <buildsym_compunit>: New member.
1431 (get_compunit_symtab): Declare.
1432 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1433 from primary_symtab. Change type to "struct compunit_symtab *".
1435 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1436 All callers updated.
1437 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1438 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1439 symtab. Change type to "struct compunit_symtab *". All uses updated.
1440 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1441 All callers updated.
1442 (dw2_find_last_source_symtab): Ditto.
1443 (dw2_lookup_symbol): Ditto.
1444 (recursively_find_pc_sect_compunit_symtab): Renamed from
1445 recursively_find_pc_sect_symtab. Change result to
1446 "struct compunit_symtab *". All callers updated.
1447 (dw2_find_pc_sect_compunit_symtab): Renamed from
1448 dw2_find_pc_sect_symtab. Change result to
1449 "struct compunit_symtab *". All callers updated.
1450 (get_compunit_symtab): Renamed from get_symtab. Change result to
1451 "struct compunit_symtab *". All callers updated.
1452 (recursively_compute_inclusions): Change type of immediate_parent
1453 argument to "struct compunit_symtab *". All callers updated.
1454 (compute_compunit_symtab_includes): Renamed from
1455 compute_symtab_includes. All callers updated. Rewrite to compute
1456 includes of compunit_symtabs and not symtabs.
1457 (process_full_comp_unit): Update to work with struct compunit_symtab.
1458 (process_full_type_unit): Ditto.
1459 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1460 (dwarf_decode_lines): Remove special case handling of main subfile.
1461 (macro_start_file): Delete argument comp_dir. All callers updated.
1462 (dwarf_decode_macro_bytes): Ditto.
1463 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1464 use struct compunit_symtab.
1465 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1466 * jit.c (finalize_symtab): Build compunit_symtab.
1467 * jv-lang.c (get_java_class_symtab): Change result to
1468 "struct compunit_symtab *". All callers updated.
1469 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1470 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1471 comp_dir. Change type to "struct compunit_symtab *".
1473 (new_macro_table): Change comp_dir argument to cust,
1474 "struct compunit_symtab *". All callers updated.
1475 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1476 nr_primary_symtabs. All uses updated.
1477 (count_symtabs_and_blocks): Update to handle compunits.
1478 (report_command_stats): Update output, "primary symtabs" renamed to
1480 * mdebugread.c (new_symtab): Change result to
1481 "struct compunit_symtab *". All callers updated.
1482 (parse_procedure): Change type of search_symtab argument to
1483 "struct compunit_symtab *". All callers updated.
1484 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1486 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1487 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1488 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1490 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1492 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1493 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1494 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1495 symtab. Change type to "struct compunit_symtab *". All uses updated.
1496 * psymtab.c (psymtab_to_symtab): Change result type to
1497 "struct compunit_symtab *". All callers updated.
1498 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1499 find_pc_sect_symtab_from_partial. Change result type to
1500 "struct compunit_symtab *". All callers updated.
1501 (lookup_symbol_aux_psymtabs): Change result type to
1502 "struct compunit_symtab *". All callers updated.
1503 (find_last_source_symtab_from_partial): Ditto.
1504 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1505 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1506 and macro_table from compunit.
1507 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1508 type to "struct compunit_symtab *". All callers updated.
1509 (debug_qf_lookup_symbol): Ditto.
1510 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1511 debug_qf_find_pc_sect_symtab, change result type to
1512 "struct compunit_symtab *". All callers updated.
1513 * symfile.c (allocate_symtab): Delete objfile argument.
1515 (allocate_compunit_symtab): New function.
1516 (add_compunit_symtab_to_objfile): New function.
1517 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1518 Change result type to "struct compunit_symtab *". All uses updated.
1519 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1520 Change result type to "struct compunit_symtab *". All uses updated.
1521 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1523 (dump_symtab_1): Update test for primary source symtab.
1524 (maintenance_info_symtabs): Update to handle compunit symtabs.
1525 (maintenance_check_symtabs): Ditto.
1526 * symtab.c (set_primary_symtab): Delete.
1527 (compunit_primary_filetab): New function.
1528 (compunit_language): New function.
1529 (iterate_over_some_symtabs): Change type of arguments "first",
1530 "after_last" to "struct compunit_symtab *". All callers updated.
1531 Update to loop over symtabs in each compunit.
1532 (error_in_psymtab_expansion): Rename symtab argument to cust,
1533 and change type to "struct compunit_symtab *". All callers updated.
1534 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1535 Change result type to "struct compunit_symtab *". All callers updated.
1536 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1537 Change result type to "struct compunit_symtab *". All callers updated.
1538 (find_pc_sect_line): Only loop over symtabs within selected compunit
1539 instead of all symtabs in the objfile.
1540 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1541 <compunit_symtab> New member.
1542 <block_line_section>: Moved to compunit_symtab.
1543 <locations_valid>: Ditto.
1544 <epilogue_unwind_valid>: Ditto.
1545 <macro_table>: Ditto.
1547 <debugformat>: Ditto.
1550 <call_site_htab>: Ditto.
1554 (SYMTAB_COMPUNIT): New macro.
1555 (SYMTAB_BLOCKVECTOR): Update definition.
1556 (SYMTAB_OBJFILE): Update definition.
1557 (SYMTAB_DIRNAME): Update definition.
1558 (struct compunit_symtab): New type. Common members among all source
1559 symtabs within a compilation unit moved here. All uses updated.
1560 (COMPUNIT_OBJFILE): New macro.
1561 (COMPUNIT_FILETABS): New macro.
1562 (COMPUNIT_DEBUGFORMAT): New macro.
1563 (COMPUNIT_PRODUCER): New macro.
1564 (COMPUNIT_DIRNAME): New macro.
1565 (COMPUNIT_BLOCKVECTOR): New macro.
1566 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1567 (COMPUNIT_LOCATIONS_VALID): New macro.
1568 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1569 (COMPUNIT_CALL_SITE_HTAB): New macro.
1570 (COMPUNIT_MACRO_TABLE): New macro.
1571 (ALL_COMPUNIT_FILETABS): New macro.
1572 (compunit_symtab_ptr): New typedef.
1573 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1575 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1577 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1578 if the TYPE_CODE of range_type's base type does not match
1579 the TYPE_CODE of encoding_type's base type.
1581 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1583 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1586 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1588 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1589 (ada_is_redundant_index_type_desc): New function.
1590 (to_fixed_array_type): Ignore parallel XA type if redundant.
1592 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1594 * ada-lang.c (constrained_packed_array_type): Set the length
1595 of the return array as if both bounds where zero if that
1596 returned array's index type is dynamic.
1598 2014-11-19 Yao Qi <yao@codesourcery.com>
1600 * config/i386/go32.mh (CC): Remove.
1602 2014-11-18 Doug Evans <xdje42@gmail.com>
1604 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1607 2014-11-18 Doug Evans <xdje42@gmail.com>
1609 * buildsym.c (buildsym_objfile): New static global.
1610 (buildsym_comp_dir): New static global.
1611 (finish_block_internal): Delete arg objfile. All callers updated.
1612 (finish_block): Delete arg objfile. All callers updated.
1613 (start_subfile): Delete arg dirname. All callers updated.
1614 (patch_subfile_names): Update buildsym_comp_dir.
1615 (get_macro_table): Delete arg objfile. All callers updated.
1616 (start_symtab): New arg objfile. All callers updated.
1617 Rename arg dirname to comp_dir.
1618 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1619 (end_symtab_get_static_block): Delete arg objfile. All callers
1621 (end_symtab_without_blockvector): Ditto.
1622 (end_symtab_with_blockvector): Ditto.
1623 (end_symtab_from_static_block): Ditto.
1624 (end_symtab): Ditto.
1625 (end_expandable_symtab): Ditto.
1626 (augment_type_symtab): Ditto.
1627 * coffread.c (coff_start_symtab): New arg objfile. All callers
1630 2014-11-18 Doug Evans <xdje42@gmail.com>
1632 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1635 2014-11-18 Doug Evans <xdje42@gmail.com>
1637 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1638 symtab.dirname updated to use it.
1640 2014-11-18 Doug Evans <xdje42@gmail.com>
1642 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1643 symtab.objfile updated to use it.
1645 2014-11-18 Doug Evans <xdje42@gmail.com>
1647 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1649 2014-11-18 Doug Evans <xdje42@gmail.com>
1651 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1653 * findvar.c (default_read_var_value): Ditto.
1654 * jv-lang.c (add_class_symtab_symbol): Ditto.
1655 * parse.c (operator_check_standard): Ditto.
1656 * printcmd.c (address_info): Ditto.
1657 * symtab.c (fixup_symbol_section): Ditto.
1658 (skip_prologue_sal): Ditto.
1659 * tracepoint.c (scope_info): Ditto.
1660 * valops.c (find_function_in_inferior): Ditto.
1661 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1662 * python/py-symbol.c (set_symbol): Ditto.
1664 2014-11-18 Doug Evans <xdje42@gmail.com>
1666 * buildsym.c (main_subfile): New static global.
1667 (free_subfiles_list): New function.
1668 (start_symtab): Set main_subfile.
1669 (restart_symtab): Replace init of subfiles, current_subfile with
1670 call to free_subfiles_list.
1671 (watch_main_source_file_lossage): Use main_subfile.
1672 (reset_symtab_globals): Replace init of current_subfile with call
1673 to free_subfiles_list.
1674 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1675 functions, split out from ...
1676 (end_symtab_from_static_block): ... here. Rewrite to call them.
1678 2014-11-18 Doug Evans <xdje42@gmail.com>
1680 The result of symtab expansion is always a primary symtab.
1681 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1682 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1683 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1684 (psymtab_to_symtab): Add comment and assert.
1685 (map_matching_symbols_psymtab): Remove unnecessary test for
1688 2014-11-15 Doug Evans <xdje42@gmail.com>
1691 * symtab.c (find_pc_line_symtab): New function.
1692 * symtab.h (find_pc_line_symtab): Declare.
1693 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1695 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1696 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1697 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1698 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1699 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1700 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1702 2014-11-15 Doug Evans <xdje42@gmail.com>
1704 * symtab.c (expand_symtab_containing_pc): Renamed from
1705 find_pc_sect_symtab_via_partial. All callers updated.
1707 2014-11-15 Yao Qi <yao@codesourcery.com>
1709 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1711 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1713 * common/common-defs.h: Move <stdarg.h> #include ahead of
1716 2014-11-14 Pedro Alves <palves@redhat.com>
1718 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1719 [!PHONY_ICONV] (gdb_iconv): New function.
1720 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1722 2014-11-13 Doug Evans <dje@google.com>
1725 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1726 "(anonymous namespace)".
1728 2014-11-13 Doug Evans <dje@google.com>
1730 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1733 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1735 * NEWS (maint set target-async): Fix typo.
1737 2014-11-12 Pedro Alves <palves@redhat.com>
1739 * infrun.c (enum infwait_states, infwait_state): Delete.
1741 2014-11-12 Pedro Alves <palves@redhat.com>
1743 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1744 Rewrite stepping over a permanent breakpoint.
1745 (thread_still_needs_step_over, proceed): Don't set
1746 stepping_over_breakpoint for permanent breakpoints.
1747 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1748 single-step breakpoints out of the target on hardware step
1750 (process_event_stop_test): If stepping a permanent breakpoint
1751 doesn't hit the step-resume breakpoint, delete the step-resume
1753 (switch_back_to_stepped_thread): Also check if the stepped thread
1754 has advanced already on hardware step targets.
1755 (currently_stepping): Return true if the thread stepped a
1758 2014-11-12 Pedro Alves <palves@redhat.com>
1760 Mark locations as permanent, not the whole breakpoint.
1761 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1762 (mark_breakpoints_out): Don't mark permanent breakpoints as
1764 (breakpoint_init_inferior): Use mark_breakpoints_out.
1765 (breakpoint_here_p): Adjust.
1766 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1767 of permanent breakpoints.
1768 (make_breakpoint_permanent): Mark each location as permanent,
1769 instead of marking the breakpoint.
1770 (add_location_to_breakpoint): If the location is permanent, mark
1771 it as such, and as inserted.
1772 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1773 (bp_location_compare, update_global_location_list): Adjust.
1774 (update_breakpoint_locations): Don't make the breakpoint permanent
1776 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1778 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1779 (struct bp_location) <permanent>: New field.
1780 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1781 reference to bp_permanent.
1783 2014-11-12 Pedro Alves <palves@redhat.com>
1785 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1786 * arch-utils.h (default_skip_permanent_breakpoint): New
1788 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1789 Install default_skip_permanent_breakpoint as default method.
1790 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1791 (i386_gdbarch_init): Don't install it.
1792 * infrun.c (resume): Assume there's always a
1793 gdbarch_skip_permanent_breakpoint implementation.
1794 * gdbarch.h, gdbarch.c: Regenerate.
1796 2014-11-11 Daniel Colascione <dancol@dancol.org>
1798 Warn about cross-PID-namespace debugging.
1799 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1800 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1801 * linux-thread-db.c (check_pid_namespace_match): New function.
1802 (thread_db_inferior_created): Call it.
1804 2014-11-10 Doug Evans <xdje42@gmail.com>
1806 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1807 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1809 2014-11-10 Doug Evans <xdje42@gmail.com>
1811 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1813 2014-11-10 Doug Evans <xdje42@gmail.com>
1816 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1817 (lookup_static_symbol): Move definition to new location and rewrite.
1818 (lookup_symbol_in_objfile): New function.
1819 (lookup_symbol_global_iterator_cb): Call it.
1821 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1823 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1825 2014-11-07 Pedro Alves <palves@redhat.com>
1827 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1828 check if we did a "nexti" inside a prologue.
1829 * symtab.c (in_prologue): Delete function.
1830 * symtab.h (in_prologue): Delete declaration.
1832 2014-11-06 Doug Evans <xdje42@gmail.com>
1834 * symtab.h (lookup_global_symbol): Improve function comment.
1836 2014-11-06 Doug Evans <xdje42@gmail.com>
1838 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1839 All callers updated.
1840 * symtab.h (lookup_global_symbol): Update decl.
1841 (lookup_static_symbol): Move decl to better location.
1843 2014-11-06 Doug Evans <xdje42@gmail.com>
1845 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1847 2014-11-06 Doug Evans <xdje42@gmail.com>
1849 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1850 All callers updated.
1851 (lookup_symbol_in_all_objfiles): Renamed from
1852 lookup_symbol_aux_symtabs. All callers updated.
1853 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1854 All callers updated.
1855 (lookup_symbol_in_objfile_symtabs): Renamed from
1856 lookup_symbol_aux_objfile. All callers updated.
1858 2014-11-06 Doug Evans <xdje42@gmail.com>
1860 * symtab.c (lookup_symbol_in_block): Renamed from
1861 lookup_symbol_aux_block. All callers updated.
1863 2014-11-06 Doug Evans <xdje42@gmail.com>
1865 * symtab.c (lookup_static_symbol): Renamed from
1866 lookup_static_symbol_aux. All callers updated.
1867 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1868 All callers updated.
1870 2014-11-06 Doug Evans <xdje42@gmail.com>
1872 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1873 * block.c (block_lookup_symbol): Use it.
1874 * cp-support.c (make_symbol_overload_list_block): Use it.
1875 * symtab.c (iterate_over_symbols): Use it.
1877 2014-11-06 Doug Evans <xdje42@gmail.com>
1879 * symtab.c (lookup_block_symbol): Moved to ...
1880 * block.c (block_lookup_symbol): ... here and renamed.
1881 All callers updated.
1882 * block.h (block_lookup_symbol): Declare.
1883 * symtab.h (lookup_block_symbol): Delete.
1885 2014-11-06 Doug Evans <xdje42@gmail.com>
1887 * ada-lang.c (ada_make_symbol_completion_list): Use
1888 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1889 * symtab.c (lookup_objfile_from_block): Ditto.
1891 2014-11-06 Doug Evans <xdje42@gmail.com>
1893 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1896 2014-11-06 Doug Evans <xdje42@gmail.com>
1898 * objfiles.c (get_objfile_arch): Constify.
1899 * objfiles.h (get_objfile_arch): Update prototype.
1900 * solib.c (solib_global_lookup): Fetch arch from objfile,
1903 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1905 * nios2-tdep.c (wild_insn): Delete.
1906 (profiler_insn, irqentry_insn): Delete.
1907 (nios2_match_sequence): Delete.
1908 (nios2_analyze_prologue): Update comments. Remove matching
1909 of obsolete profiler_insn and irqentry_insn sequences.
1911 2014-11-05 Alan Modra <amodra@gmail.com>
1913 * charset.c (convert_between_encodings): Shrink obstack using
1915 * minsyms.c (install_minimal_symbols): Likewise.
1916 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1917 to char* before doing pointer arithmetic.
1919 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1921 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1923 2014-11-04 Pedro Alves <palves@redhat.com>
1925 * breakpoint.c (breakpoint_thread_match): Delete function.
1926 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1928 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1931 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1932 the method args also under EVAL_SKIP when evaluating method
1933 calls under EVAL_SKIP.
1935 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1937 * dwarf2loc.c (read_pieced_value): Do big endian
1938 processing only if gdb_regnum is not -1.
1939 (write_pieced_value): Ditto.
1941 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1943 * arm-linux-tdep.c (arm_linux_init_abi): Use
1944 info.byte_order_for_code to choose endianity of breakpoint
1945 instructions snippets.
1947 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1949 * arm-tdep.c (extract_arm_insn): Use
1950 gdbarch_byte_order_for_code to read arm instruction.
1952 2014-11-02 Doug Evans <xdje42@gmail.com>
1954 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1956 2014-11-02 Doug Evans <xdje42@gmail.com>
1958 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1959 main_subfile before returning.
1961 2014-10-31 Doug Evans <xdje42@gmail.com>
1963 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1964 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1966 2014-10-31 Doug Evans <xdje42@gmail.com>
1968 * valops.c (value_cast_pointers): Fix whitespace.
1969 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1972 2014-10-30 Doug Evans <dje@google.com>
1974 * NEWS: Mention ability add attributes to gdb.Objfile and
1975 gdb.Progspace objects.
1976 * python/py-objfile.c (objfile_object): New member dict.
1977 (objfpy_dealloc): Py_XDECREF dict.
1978 (objfpy_initialize): Initialize dict.
1979 (objfile_getset): Add __dict__.
1980 (objfile_object_type): Set tp_dictoffset member.
1981 * python/py-progspace.c (progspace_object): New member dict.
1982 (pspy_dealloc): Py_XDECREF dict.
1983 (pspy_initialize): Initialize dict.
1984 (pspace_getset): Add __dict__.
1985 (pspace_object_type): Set tp_dictoffset member.
1987 2014-10-30 Yao Qi <yao@codesourcery.com>
1989 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1990 replace '\\' with '\\\\'.
1992 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1996 2014-10-29 Pedro Alves <palves@redhat.com>
1999 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2000 instead of assuming a thread with a stepping range is always
2003 2014-10-29 Pedro Alves <palves@redhat.com>
2006 * event-top.c (change_line_handler): Call
2007 gdb_rl_callback_handler_remove instead of
2008 rl_callback_handler_remove.
2009 (callback_handler_installed): New global.
2010 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2011 (gdb_rl_callback_handler_reinstall): New functions.
2012 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2013 gdb_rl_callback_handler_install instead of
2014 rl_callback_handler_remove and rl_callback_handler_install.
2015 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2016 instead of rl_callback_handler_remove.
2017 * event-top.h (gdb_rl_callback_handler_remove)
2018 (gdb_rl_callback_handler_install)
2019 (gdb_rl_callback_handler_reinstall): New declarations.
2020 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2022 (fetch_inferior_event): Install it.
2023 * top.c (gdb_readline_wrapper_line) Call
2024 gdb_rl_callback_handler_remove instead of
2025 rl_callback_handler_remove.
2026 (gdb_readline_wrapper_cleanup): Don't call
2027 rl_callback_handler_install.
2029 2014-10-29 Pedro Alves <palves@redhat.com>
2031 * event-top.c (command_line_handler): Clear the first byte of
2032 linebuffer, when it is first allocated.
2034 2014-10-29 Pedro Alves <palves@redhat.com>
2036 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2039 2014-10-29 Pedro Alves <palves@redhat.com>
2043 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2044 (tui_allowed_p): Delete function.
2045 * tui/tui.c: Include "interps.h".
2046 (tui_enable): Don't use tui_allowed_p. Error out here with
2047 detailed error messages if the TUI is the top level interpreter,
2048 or if output is not a terminal. Use newterm instead of initscr,
2049 and error out if initializing the terminal fails. Also error out if
2050 the terminal doesn't support cursor addressing.
2051 * tui/tui.h (tui_allowed_p): Delete declaration.
2053 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2055 * arm-tdep.c (arm_skip_stack_protector): Return early if
2056 address loaded by first "ldr" instruction does not have
2057 a corresponding minimal symbol. Update comment.
2059 2014-10-29 Yao Qi <yao@codesourcery.com>
2061 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2062 loaded address correctly of ldr instruction.
2064 2014-10-28 Pedro Alves <palves@redhat.com>
2067 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2069 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2070 thread's stepped_breakpoint field. Skip if reverse debugging.
2072 (init_thread_stepping_state, handle_signal_stop): Clear the
2073 thread's stepped_breakpoint field.
2075 2014-10-27 Pedro Alves <palves@redhat.com>
2077 * remote.c (remote_thread_alive): New, factored out from ...
2078 (remote_thread_alive): ... this.
2079 (remote_update_thread_list): Bail out before deleting threads if
2080 the target returned an empty list, and, the current thread has a
2083 2014-10-27 Pedro Alves <palves@redhat.com>
2085 * infrun.c (handle_signal_stop): Also skip handlers when a random
2086 signal arrives while handling a "stepi" or a "nexti". Set the
2087 thread's 'step_after_step_resume_breakpoint' flag.
2089 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2091 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2092 (arm_record_ld_st_imm_offset): Reimplement to cover all
2093 load/store cases for ARM opcode 010.
2094 (arm_record_ld_st_multiple): Reimplement to cover all
2095 load/store cases for ARM opcode 100.
2097 2014-10-26 Doug Evans <xdje42@gmail.com>
2099 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2101 2014-10-26 Doug Evans <xdje42@gmail.com>
2103 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2104 parameter "kind" to "block_index".
2105 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2107 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2109 2014-10-26 Doug Evans <xdje42@gmail.com>
2111 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2113 2014-10-26 Doug Evans <xdje42@gmail.com>
2115 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2118 2014-10-26 Doug Evans <xdje42@gmail.com>
2120 * parser-defs.h (block_found): Move decl from here ...
2121 * symtab.h (block_found): ... to here.
2123 2014-10-26 Doug Evans <xdje42@gmail.com>
2125 * symtab.h (struct field_of_this_result): Fix typo in comment.
2126 (lookup_symbol_in_language): Move function comment here.
2127 (lookup_symbol): Improve function comment.
2128 (basic_lookup_symbol_nonlocal): Ditto.
2129 (lookup_symbol_static, lookup_symbol_global): Ditto.
2130 (lookup_symbol_aux_block): Ditto.
2131 (lookup_language_this): Add function comment.
2132 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2134 (lookup_block_symbol): Improve function comment.
2135 (lookup_struct): Fix capitalization in function comment.
2136 (lookup_transparent_type): Add function comment.
2137 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2138 Improve function comment.
2139 (lookup_objfile_from_block): Add function comment.
2140 * symtab.c (lookup_symbol_in_language): Update function comment.
2141 (lookup_symbol, lookup_language_this): Ditto.
2142 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2143 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2144 (basic_lookup_symbol_nonlocal): Ditto.
2145 (lookup_symbol_static, lookup_symbol_global): Ditto.
2146 (lookup_transparent_type, lookup_block_symbol): Ditto.
2148 2014-10-25 Doug Evans <xdje42@gmail.com>
2150 * symtab.c (types_info): Delete forward decl.
2151 (functions_info, variables_info, sources_info): Ditto.
2152 (_initialize_symtab): Rewrite forward decl to use
2153 initialize_file_ftype.
2155 2014-10-25 Doug Evans <xdje42@gmail.com>
2157 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2159 2014-10-25 Doug Evans <xdje42@gmail.com>
2161 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2162 of local var child_die.
2164 2014-10-24 Don Breazeal <donb@codesourcery.com>
2166 * infrun.c (follow_fork_inferior): Update fork message printing
2167 to use target_terminal_ours_for_output instead of
2168 target_terminal_ours, to use _() for all format strings, to print
2169 "vfork" instead of "fork" for vforks, and to add a detach message.
2170 (handle_vfork_child_exec_or_exit): Update message printing to use
2171 target_terminal_ours_for_output instead of target_terminal_ours, to
2172 use _() for all format strings, and to fix some formatting.
2174 2014-10-24 Pedro Alves <palves@redhat.com>
2176 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2177 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2178 * config/vax/vax.mh: Delete.
2179 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2180 obsolete configurations section.
2181 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2182 * vax-nat.c: Delete file.
2184 2014-10-24 Pedro Alves <palves@redhat.com>
2186 * NEWS (Removed targets): Add OS/arch column.
2188 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2190 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2191 on the arg type of a constructor only if it is of reference type.
2193 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2195 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2196 accessors and constants from nios2 opcodes update.
2197 (nios2_get_next_pc): Likewise.
2199 2014-10-19 Doug Evans <xdje42@gmail.com>
2201 * gdbthread.h (set_running): Fix comment.
2202 (set_executing, finish_thread_state): Fix comment.
2204 2014-10-18 Doug Evans <xdje42@gmail.com>
2206 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2208 2014-10-17 Doug Evans <dje@google.com>
2210 * NEWS: Mention new event gdb.clear_objfiles.
2211 * python/py-event.h (emit_clear_objfiles_event): Clear
2212 * python/py-events.h (events_object): New member clear_objfiles.
2213 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2215 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2216 emit clear_objfiles event.
2217 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2219 (emit_clear_objfiles_event): New function.
2220 (clear_objfiles): New event.
2221 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2223 * python/python.c (_initialize_python): Call
2224 gdbpy_initialize_clear_objfiles_event.
2226 2014-10-17 Doug Evans <dje@google.com>
2228 * NEWS: Mention new gdb.Objfile.progspace attribute.
2229 * python/py-objfile.c (objfpy_get_progspace): New function.
2230 (objfile_getset): New entry for "progspace".
2232 2014-10-17 Pedro Alves <palves@redhat.com>
2235 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2236 returns a copy of the input.
2237 (run_command_1, continue_command, step_1, jump_command)
2238 (signal_command, until_command, advance_command, finish_command)
2239 (attach_command): Adjust and install a cleanup to free the
2242 2014-10-17 Pedro Alves <palves@redhat.com>
2245 * infcmd.c (continue_1): If continuing all threads in the
2246 foreground, make sure the inferior's terminal settings are put in
2249 2014-10-17 Pedro Alves <palves@redhat.com>
2252 * annotate.c (annotate_breakpoints_invalid): Use
2253 target_terminal_our_for_output instead of target_terminal_ours.
2254 Give back the terminal to the target.
2255 (annotate_frames_invalid): Likewise.
2257 2014-10-17 Pedro Alves <palves@redhat.com>
2259 * target.c (enum terminal_state): New enum.
2260 (terminal_state): New global.
2261 (target_terminal_init): New function.
2262 (target_terminal_inferior): Skip if inferior already owns the
2264 (target_terminal_ours, target_terminal_ours_for_output): New
2266 * target.h (target_terminal_init): Convert to function prototype.
2267 (target_terminal_ours_for_output): Convert to function prototype
2269 (target_terminal_ours): Convert to function prototype and tweak
2271 * windows-nat.c (do_initial_windows_stuff): Call
2272 target_terminal_init instead of child_terminal_init_with_pgrp.
2274 2014-10-17 Pedro Alves <palves@redhat.com>
2276 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2277 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2278 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2280 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2281 * ada-lang.h [__alpha__ && __osf__]
2282 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2283 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2284 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2286 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2288 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2289 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2290 * configure: Regenerate.
2291 * configure.ac: Remove references to osf.
2292 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2293 section. Remove all other references to osf.
2294 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2295 Remove all other references to osf.
2296 * dec-thread.c: Delete file.
2297 * defs.h (GDB_OSABI_OSF1): Delete.
2298 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2300 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2301 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2303 (unconditionally_kill_inferior)
2304 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2305 * solib-osf.c: Delete file.
2307 2014-10-17 Pedro Alves <palves@redhat.com>
2309 * remote.c (clear_threads_listing_context): Move higher up, out of
2310 the HAVE_LIBEXPAT guard.
2312 2014-10-16 Tristan Gingold <gingold@adacore.com>
2314 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2315 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2318 2014-10-15 Pedro Alves <palves@redhat.com>
2320 * dec-thread.c (dec_thread_count_gdb_threads)
2321 (dec_thread_add_gdb_thread): Delete.
2322 (dec_thread_update_thread_list): Delete.
2323 (dec_thread_find_new_threads): Rename to ...
2324 (dec_thread_update_thread_list): ... this. Delete GDB-size
2325 threads that are no longer found in dec_thread_list.
2326 (resync_thread_list): Delete.
2327 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2330 2014-10-15 Pedro Alves <palves@redhat.com>
2332 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2333 * remote.c (remote_update_thread_list): Skip calling prune_threads
2334 if any thread listing method is supported, and instead walk over
2335 the set of remote threads listed, deleting those that are not
2336 found in GDB's thread list.
2338 2014-10-15 Pedro Alves <palves@redhat.com>
2340 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2341 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2342 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2343 (bsd_uthread_target): Adjust.
2344 * corelow.c (core_open): Adjust.
2345 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2346 (dec_thread_update_thread_list): New function.
2347 (init_dec_thread_ops): Adjust.
2348 * gdbthread.h (prune_threads): New declaration.
2349 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2350 (thread_db_update_thread_list): ... this. Call prune_threads.
2351 (init_thread_db_ops): Adjust.
2352 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2353 (procfs_update_thread_list): ... this. Call prune_threads.
2354 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2356 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2357 (obsd_update_thread_list): ... this. Call prune_threads.
2358 (obsd_add_target): Adjust.
2359 * procfs.c (procfs_target): Adjust.
2360 (procfs_notice_thread): Update comment.
2361 (procfs_find_new_threads): Rename to ...
2362 (procfs_update_thread_list): ... this. Call prune_threads.
2363 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2365 (ravenscar_wait): Adjust.
2366 (ravenscar_find_new_threads): Rename to ...
2367 (ravenscar_update_thread_list): ... this. Call prune_threads.
2368 (init_ravenscar_thread_ops): Adjust.
2369 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2370 (record_btrace_update_thread_list): ... this. Adjust comment.
2371 (init_record_btrace_ops): Adjust.
2372 * remote.c (remote_threads_info): Rename to ...
2373 (remote_update_thread_list): ... this. Call prune_threads.
2374 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2376 * sol-thread.c (check_for_thread_db): Adjust.
2377 (sol_find_new_threads_callback): Rename to ...
2378 (sol_update_thread_list_callback): ... this.
2379 (sol_find_new_threads): Rename to ...
2380 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2381 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2382 * target-delegates.c: Regenerate.
2383 * target.c (target_find_new_threads): Rename to ...
2384 (target_update_thread_list): ... this.
2385 * target.h (struct target_ops): Rename to_find_new_threads field
2386 to to_update_thread_list.
2387 (target_find_new_threads): Rename to ...
2388 (target_update_thread_list): ... this.
2389 * thread.c (prune_threads): Make extern.
2390 (update_thread_list): Adjust.
2392 2014-10-15 Pedro Alves <palves@redhat.com>
2394 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2395 Add describing comment. Return -1 if the qL packet is not
2397 (struct thread_item, thread_item_t): Move higher up in
2398 the file. Add comments.
2399 (struct threads_parsing_context): Move higher up in
2400 the file, add comments, and remote to ...
2401 (struct threads_listing_context): ... this.
2402 (remote_newthread_step): Don't add the thread to GDB's thread
2403 database here. Instead push it to the thread_listing_context
2405 (remote_find_new_threads): Rename to ...
2406 (remote_get_threads_with_ql): ... this. Add target_ops and
2407 targets_listing_context parameters. Pass down context.
2408 (start_thread): Adjust.
2409 (clear_threads_parsing_context): Rename to ...
2410 (clear_threads_listing_context): ... this.
2411 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2412 remote_threads_info.
2413 (remote_get_threads_with_qthreadinfo): Ditto.
2414 (remote_threads_info): Reimplement.
2416 2014-10-15 Pedro Alves <palves@redhat.com>
2418 * infrun.c (resume): Don't force displaced-stepping for all
2419 single-steps on software single-stepping archs.
2421 2014-10-15 Pedro Alves <palves@redhat.com>
2423 * breakpoint.c (single_step_breakpoints): Delete global.
2424 (insert_single_step_breakpoint): Adjust to store the breakpoint
2425 pointer in the current thread.
2426 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2427 (cancel_single_step_breakpoints): Delete functions.
2428 (breakpoint_has_location_inserted_here): Make extern.
2429 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2431 * breakpoint.h (breakpoint_has_location_inserted_here): New
2433 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2434 (cancel_single_step_breakpoints): Remove declarations.
2435 * gdbthread.h (struct thread_control_state)
2436 <single_step_breakpoints>: New field.
2437 (delete_single_step_breakpoints)
2438 (thread_has_single_step_breakpoints_set)
2439 (thread_has_single_step_breakpoint_here): New declarations.
2440 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2441 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2442 (singlestep_pc): Delete globals.
2443 (infrun_thread_ptid_changed): Remove references to removed
2445 (resume_cleanups): Delete the current thread's single-step
2447 (maybe_software_singlestep): Remove references to removed globals.
2448 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2449 delete_single_step_breakpoints.
2450 (init_wait_for_inferior): Remove references to removed globals.
2451 (delete_thread_infrun_breakpoints): Delete the thread's
2452 single-step breakpoints too.
2453 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2454 single-step breakpoints here.
2455 (delete_stopped_threads_single_step_breakpoints): New function.
2456 (adjust_pc_after_break): Adjust to use
2457 thread_has_single_step_breakpoints_set.
2458 (handle_inferior_event): Remove references to removed globals.
2459 Use delete_stopped_threads_single_step_breakpoints.
2460 (handle_signal_stop): Adjust to per-thread single-step
2461 breakpoints. Swap test order to do cheaper tests first.
2462 (switch_back_to_stepped_thread): Extend debug output. Remove
2463 references to removed globals.
2464 * record-full.c (record_full_wait_1): Adjust to per-thread
2465 single-step breakpoints.
2466 * thread.c (delete_single_step_breakpoints)
2467 (thread_has_single_step_breakpoints_set)
2468 (thread_has_single_step_breakpoint_here): New functions.
2469 (clear_thread_inferior_resources): Also delete the thread's
2470 single-step breakpoints.
2472 2014-10-15 Pedro Alves <palves@redhat.com>
2474 * thread.c (delete_thread_breakpoint): New function.
2475 (delete_step_resume_breakpoint)
2476 (delete_exception_resume_breakpoint): Use it.
2477 (delete_at_next_stop): New function.
2478 (clear_thread_inferior_resources): Use delete_at_next_stop.
2480 2014-10-15 Pedro Alves <palves@redhat.com>
2482 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2483 (breakpoint_inserted_here_p): ... here. Remove special case for
2484 software single-step breakpoints.
2485 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2486 (software_breakpoint_inserted_here_p): ... here. Remove special
2487 case for software single-step breakpoints.
2488 (bp_target_info_copy_insertion_state)
2489 (deprecated_insert_raw_breakpoint)
2490 (deprecated_remove_raw_breakpoint): Delete functions.
2491 * breakpoint.h (deprecated_insert_raw_breakpoint)
2492 (deprecated_remove_raw_breakpoint): Remove declarations.
2494 2014-10-15 Pedro Alves <palves@redhat.com>
2497 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2498 Delete array globals.
2499 (single_step_breakpoints): New global.
2500 (breakpoint_xfer_memory): Remove special handling for single-step
2502 (update_breakpoints_after_exec): Delete bp_single_step
2504 (detach_breakpoints): Remove special handling for single-step
2506 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2507 (bpstat_stop_status): Add comment.
2508 (bpstat_what, bptype_string, print_one_breakpoint_location)
2509 (adjust_breakpoint_address, init_bp_location): Handle
2511 (new_single_step_breakpoint): New function.
2512 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2513 handling for single-step breakpoints.
2514 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2515 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2517 (detach_single_step_breakpoints, find_single_step_breakpoint):
2519 (breakpoint_has_location_inserted_here): New function.
2520 (single_step_breakpoint_inserted_here_p): Rewrite.
2521 * breakpoint.h: Remove FIXME.
2522 (enum bptype) <bp_single_step>: New enum value.
2523 (insert_single_step_breakpoint): Update comment.
2524 * infrun.c (resume_cleanups)
2525 (delete_step_thread_step_resume_breakpoint): Remove single-step
2527 (fetch_inferior_event): Install a cleanup that removes infrun
2529 (switch_back_to_stepped_thread) <expect thread advanced also>:
2530 Clear step-over info.
2532 2014-10-15 Pedro Alves <palves@redhat.com>
2534 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2535 (delete_thread_infrun_breakpoints): New function, with parts
2536 salvaged from delete_step_resume_breakpoint_callback.
2537 (delete_step_thread_step_resume_breakpoint): Delete.
2538 (for_each_just_stopped_thread_callback_func): New typedef.
2539 (for_each_just_stopped_thread): New function.
2540 (delete_just_stopped_threads_infrun_breakpoints): New function.
2541 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2542 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2544 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2546 2014-10-15 Pedro Alves <palves@redhat.com>
2548 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2549 trying to step past a non-steppable watchpoint.
2550 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2552 * infrun.c (struct step_over_info): Add new field
2553 'nonsteppable_watchpoint_p' and adjust comments.
2554 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2556 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2557 (stepping_past_nonsteppable_watchpoint): New function.
2558 (step_over_info_valid_p): Also return true if stepping past a
2559 nonsteppable watchpoint.
2560 (proceed): Adjust call to set_step_over_info. Remove reference to
2562 (init_wait_for_inferior): Remove reference to init_infwait_state.
2563 (waiton_ptid): Delete global.
2564 (struct execution_control_state)
2565 <stepped_after_stopped_by_watchpoint>: Delete field.
2566 (wait_for_inferior, fetch_inferior_event): Always pass
2567 minus_one_ptid to target_wait.
2568 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2570 (init_infwait_state): Delete function.
2571 (handle_inferior_event): Remove infwait_state handling.
2572 (handle_signal_stop) <watchpoints handling>: Adjust after
2573 stepped_after_stopped_by_watchpoint removal. Don't remove
2574 breakpoints here nor set infwait_state. Set the thread's
2575 stepping_over_watchpoint flag, and call keep_going instead.
2576 (keep_going): Handle stepping_over_watchpoint. Adjust
2577 set_step_over_info calls.
2578 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2581 2014-10-15 Pedro Alves <palves@redhat.com>
2583 * infrun.c (step_over_info_valid_p): New function.
2584 (resume): Use step_over_info_valid_p instead of checking the
2585 threads's trap_expected flag.
2587 2014-10-15 Doug Evans <dje@google.com>
2588 Walfred Tedeschi <walfred.tedeschi@intel.com>
2591 * python/lib/gdb/__init__.py (packages): Add "printer".
2592 * python/lib/gdb/command/bound_registers.py: Moved to ...
2593 * python/lib/gdb/printer/bound_registers.py: ... here.
2594 Add printer to global set of builtin printers. Rename printer from
2595 "bound" to "mpx_bound128".
2596 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2597 registered as global "builtin" printer.
2598 (add_builtin_pretty_printer): New function.
2599 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2600 gdb/printer/__init__.py.
2602 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2604 * Makefile.in (SFILES): Remove d-support.c.
2605 (COMMON_OBS): Remove d-support.o.
2606 * d-lang.h (d_parse_symbol): Remove declaration.
2607 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2608 * d-support.c: Remove file.
2610 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2612 * gdb/infrun.c (process_event_stop_test): Apply
2613 gdbarch_addr_bits_remove to longjmp resume address.
2615 2014-10-15 Pedro Alves <palves@redhat.com>
2617 * regformats/microblaze.dat: Delete file.
2619 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2621 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2622 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2624 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2626 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2629 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2633 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2634 with qualified args.
2636 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2638 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2639 of the case where the second operand is a pointer.
2640 <BINOP_SUB>: Likewise.
2642 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2644 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2645 only if it is not NULL.
2646 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2647 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2648 (struct probe_ops) <clear_semaphore>: Likewise.
2649 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2651 (stop_tracing): Likewise, for clear_semaphore.
2653 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2655 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2656 using language_c, instead of current_language.
2658 2014-10-13 Doug Evans <dje@google.com>
2660 * python/py-objfile.c (objfpy_initialize): New function.
2661 (objfpy_new, objfile_to_objfile_object): Call it.
2662 * python/py-progspace.c (pspy_initialize): New function.
2663 (pspy_new, pspace_to_pspace_object): Call it.
2665 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2666 Jan Kratochvil <jan.kratochvil@redhat.com>
2668 Fix "save breakpoints" for "catch" command.
2669 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2672 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2674 Fix "save breakpoints" for "disable $bpnum" command.
2675 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2677 2014-10-10 Pedro Alves <palves@redhat.com>
2679 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2680 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2681 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2682 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2684 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2685 * configure.ac: Remove references to IRIX.
2686 * configure.host: Add *-*-irix* to the obsolete hosts section.
2687 Remove all other references to irix.
2688 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2691 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2693 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2694 isn't valid, release the tdesc arch data and return NULL.
2696 2014-10-10 Pedro Alves <palves@redhat.com>
2698 * linux-tdep.c: Include observer.h.
2699 (linux_inferior_data): New global.
2700 (struct linux_info): New structure.
2701 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2702 (get_linux_inferior_data): New functions.
2703 (linux_vsyscall_range): Rename to ...
2704 (linux_vsyscall_range_raw): ... this.
2705 (linux_vsyscall_range): New function; handles caching.
2706 (_initialize_linux_tdep): Register linux_inferior_data. Install
2707 inferior_exit and inferior_appeared observers.
2709 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 Pedro Alves <palves@redhat.com>
2713 * solib-svr4.c (svr4_read_so_list): Rename to ...
2714 (svr4_current_sos_1): ... this and change the function comment.
2715 (svr4_current_sos): New function.
2717 2014-10-10 Pedro Alves <palves@redhat.com>
2719 * arch-utils.c (default_vsyscall_range): New function.
2720 * arch-utils.h (default_vsyscall_range): New declaration.
2721 * gdbarch.sh (vsyscall_range): New hook.
2722 * gdbarch.h, gdbarch.c: Regenerate.
2723 * linux-tdep.c (linux_vsyscall_range): New function.
2724 (linux_init_abi): Install linux_vsyscall_range as
2725 vsyscall_range gdbarch hook.
2726 * memrange.c (address_in_mem_range): New function.
2727 * memrange.h (address_in_mem_range): New declaration.
2728 * symfile-mem.c (find_vdso_size): Delete function.
2729 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2731 2014-10-10 Pedro Alves <palves@redhat.com>
2733 * infrun.c (normal_stop): Fix typo in comment.
2735 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2738 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2739 typo when using logical AND to determine instruction type.
2741 2014-10-09 Yao Qi <yao@codesourcery.com>
2743 * infrun.c (handle_signal_stop): Remove local variable
2746 2014-10-08 Stan Shebs <stan@codesourcery.com>
2748 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2750 2014-10-08 Gary Benson <gbenson@redhat.com>
2752 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2754 2014-10-08 Gary Benson <gbenson@redhat.com>
2756 * common/common-defs.h: Include common-exceptions.h.
2757 * exceptions.h: Do not include common-exceptions.h.
2759 2014-10-08 Gary Benson <gbenson@redhat.com>
2761 * common/common-defs.h: Include cleanups.h.
2762 * common/common-exceptions.c: Do not include cleanups.h.
2763 * utils.h: Likewise.
2765 2014-10-08 Gary Benson <gbenson@redhat.com>
2767 * ada-lang.c: Do not include exceptions.h.
2768 * ada-valprint.c: Likewise.
2769 * amd64-tdep.c: Likewise.
2770 * auto-load.c: Likewise.
2771 * block.c: Likewise.
2772 * break-catch-throw.c: Likewise.
2773 * breakpoint.c: Likewise.
2774 * btrace.c: Likewise.
2775 * c-lang.c: Likewise.
2776 * cli/cli-cmds.c: Likewise.
2777 * cli/cli-interp.c: Likewise.
2778 * cli/cli-script.c: Likewise.
2779 * completer.c: Likewise.
2780 * corefile.c: Likewise.
2781 * corelow.c: Likewise.
2782 * cp-abi.c: Likewise.
2783 * cp-support.c: Likewise.
2784 * cp-valprint.c: Likewise.
2785 * darwin-nat.c: Likewise.
2786 * dwarf2-frame-tailcall.c: Likewise.
2787 * dwarf2-frame.c: Likewise.
2788 * dwarf2loc.c: Likewise.
2789 * dwarf2read.c: Likewise.
2791 * event-loop.c: Likewise.
2792 * event-top.c: Likewise.
2793 * f-valprint.c: Likewise.
2794 * frame-unwind.c: Likewise.
2795 * frame.c: Likewise.
2796 * gdbtypes.c: Likewise.
2797 * gnu-v2-abi.c: Likewise.
2798 * gnu-v3-abi.c: Likewise.
2799 * guile/scm-auto-load.c: Likewise.
2800 * guile/scm-breakpoint.c: Likewise.
2801 * guile/scm-cmd.c: Likewise.
2802 * guile/scm-frame.c: Likewise.
2803 * guile/scm-lazy-string.c: Likewise.
2804 * guile/scm-param.c: Likewise.
2805 * guile/scm-symbol.c: Likewise.
2806 * guile/scm-type.c: Likewise.
2807 * hppa-hpux-tdep.c: Likewise.
2808 * i386-tdep.c: Likewise.
2809 * inf-loop.c: Likewise.
2810 * infcall.c: Likewise.
2811 * infcmd.c: Likewise.
2812 * infrun.c: Likewise.
2813 * interps.c: Likewise.
2814 * interps.h: Likewise.
2816 * linespec.c: Likewise.
2817 * linux-nat.c: Likewise.
2818 * linux-thread-db.c: Likewise.
2819 * m32r-rom.c: Likewise.
2821 * memory-map.c: Likewise.
2822 * mi/mi-cmd-break.c: Likewise.
2823 * mi/mi-cmd-stack.c: Likewise.
2824 * mi/mi-interp.c: Likewise.
2825 * mi/mi-main.c: Likewise.
2826 * monitor.c: Likewise.
2827 * nto-procfs.c: Likewise.
2828 * objc-lang.c: Likewise.
2829 * p-valprint.c: Likewise.
2830 * parse.c: Likewise.
2831 * ppc-linux-tdep.c: Likewise.
2832 * printcmd.c: Likewise.
2833 * probe.c: Likewise.
2834 * python/py-auto-load.c: Likewise.
2835 * python/py-breakpoint.c: Likewise.
2836 * python/py-cmd.c: Likewise.
2837 * python/py-finishbreakpoint.c: Likewise.
2838 * python/py-frame.c: Likewise.
2839 * python/py-framefilter.c: Likewise.
2840 * python/py-function.c: Likewise.
2841 * python/py-gdb-readline.c: Likewise.
2842 * python/py-inferior.c: Likewise.
2843 * python/py-infthread.c: Likewise.
2844 * python/py-lazy-string.c: Likewise.
2845 * python/py-linetable.c: Likewise.
2846 * python/py-param.c: Likewise.
2847 * python/py-prettyprint.c: Likewise.
2848 * python/py-symbol.c: Likewise.
2849 * python/py-type.c: Likewise.
2850 * python/py-value.c: Likewise.
2851 * python/python-internal.h: Likewise.
2852 * python/python.c: Likewise.
2853 * record-btrace.c: Likewise.
2854 * record-full.c: Likewise.
2855 * regcache.c: Likewise.
2856 * remote-fileio.c: Likewise.
2857 * remote-mips.c: Likewise.
2858 * remote.c: Likewise.
2859 * rs6000-aix-tdep.c: Likewise.
2860 * rs6000-nat.c: Likewise.
2862 * solib-darwin.c: Likewise.
2863 * solib-dsbt.c: Likewise.
2864 * solib-frv.c: Likewise.
2865 * solib-ia64-hpux.c: Likewise.
2866 * solib-spu.c: Likewise.
2867 * solib-svr4.c: Likewise.
2868 * solib.c: Likewise.
2869 * spu-tdep.c: Likewise.
2870 * stack.c: Likewise.
2871 * stap-probe.c: Likewise.
2872 * symfile-mem.c: Likewise.
2873 * symmisc.c: Likewise.
2874 * target.c: Likewise.
2875 * thread.c: Likewise.
2877 * tracepoint.c: Likewise.
2878 * tui/tui-interp.c: Likewise.
2879 * typeprint.c: Likewise.
2880 * utils.c: Likewise.
2881 * valarith.c: Likewise.
2882 * valops.c: Likewise.
2883 * valprint.c: Likewise.
2884 * value.c: Likewise.
2885 * varobj.c: Likewise.
2886 * windows-nat.c: Likewise.
2887 * xml-support.c: Likewise.
2889 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2891 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2893 (extended_mips16_next_pc): Update accordingly.
2895 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2897 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2899 (micromips_instruction_is_compact_branch): Likewise.
2900 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2901 or a compact jump, reaching a jump delay slot, or seeing a
2902 second non-prologue instruction.
2903 (micromips_scan_prologue): Also terminate scanning upon seeing a
2904 compact branch or jump, or reaching a branch or jump delay slot.
2905 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2906 or jump delay slot, or seeing a second non-prologue instruction.
2907 (mips32_instruction_has_delay_slot): Retain instruction
2908 examination code only, update arguments accordingly and move
2909 instruction fetch pieces to...
2910 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2911 (micromips_instruction_has_delay_slot): Likewise and to...
2912 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2913 (mips16_instruction_has_delay_slot): Likewise and to...
2914 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2915 (mips_single_step_through_delay): Update accordingly.
2916 (mips_adjust_breakpoint_address): Likewise.
2918 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2920 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2921 !mustbe32 also return 1 for 32-bit instructions.
2922 (mips16_instruction_has_delay_slot): Likewise. Add an
2923 explanatory comment.
2925 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2927 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2930 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2932 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2934 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2935 for the breakpoint's address. Don't preinitialize `placed_size'.
2936 (insert_bp_location): Set `reqstd_address' rather than
2938 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2939 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2941 (bkpt_remove_location): Likewise.
2942 (deprecated_insert_raw_breakpoint): Likewise.
2943 (deprecated_remove_raw_breakpoint): Likewise.
2944 (find_single_step_breakpoint): Likewise.
2945 * mem-break.c (default_memory_insert_breakpoint): Use
2946 `reqstd_address' for the breakpoint's address. Don't set
2947 `placed_address' or `placed_size' if breakpoint contents couldn't
2948 have been determined.
2949 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2950 the breakpoint's address.
2951 (remote_insert_hw_breakpoint): Likewise. Don't set
2952 `placed_address' or `placed_size' if breakpoint couldn't have been
2954 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2955 `reqstd_address' for the breakpoint's address.
2956 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2957 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2958 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2959 * microblaze-linux-tdep.c
2960 (microblaze_linux_memory_remove_breakpoint): Likewise.
2961 * monitor.c (monitor_insert_breakpoint): Likewise.
2962 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2963 (procfs_insert_hw_breakpoint): Likewise.
2964 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2965 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2966 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2967 * remote-mips.c (mips_insert_breakpoint): Likewise.
2968 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2970 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2972 * valops.c (value_assign): Check for bit field assignments
2973 before calling architecture-specific register value
2974 conversion functions.
2976 2014-10-03 Pierre Muller <muller@sourceware.org>
2978 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2980 2014-10-02 Pedro Alves <palves@redhat.com>
2982 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2983 threads_are_executing.
2984 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2986 * gdbthread.h (threads_are_executing): Declare.
2987 (handle_signal_stop) <random signals>: Don't print about the
2988 signal here if stopping.
2989 (end_stepping_range): Don't notify observers here.
2990 (normal_stop): Update the thread list. If stopped by a random
2991 signal or a stepping range ended, notify observers.
2992 * thread.c (threads_executing): New global.
2993 (init_thread_list): Clear 'threads_executing'.
2994 (set_executing): Set or clear 'threads_executing'.
2995 (threads_are_executing): New function.
2996 (update_threads_executing): New function.
2997 (update_thread_list): Use it.
2999 2014-10-02 Pedro Alves <palves@redhat.com>
3001 PR breakpoints/17431
3002 * breakpoint.c (update_breakpoints_after_exec): Don't create
3003 overlay, longjmp, std terminate nor exception breakpoints here.
3005 2014-10-02 Pedro Alves <palves@redhat.com>
3007 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3009 * inferior.c (find_inferior_for_program_space): Give preference to
3010 the current inferior.
3011 * inferior.h (find_inferior_for_program_space): Update comment.
3012 * progspace.c (switch_to_program_space_and_thread): Prefer the
3013 current inferior if it's bound to the program space requested. If
3014 the inferior found doesn't have a PID yet, don't bother looking up
3016 * progspace.h (switch_to_program_space_and_thread): Adjust
3018 * thread.c (any_thread_of_process, any_live_thread_of_process):
3019 Give preference to the current thread.
3021 2014-10-01 Pedro Alves <palves@redhat.com>
3023 * breakpoint.c (insert_bp_location): Error out if inserting a
3024 software breakpoint at a read-only address.
3025 * target.c (memory_xfer_check_region): New function, factored out
3027 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3029 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3030 against the memory region attributes.
3032 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3034 * NEWS: Announce new exit-code field in -list-thread-groups
3036 * inferior.c (exit_inferior_1): Don't clear exit code.
3037 (inferior_appeared): Clear exit code.
3038 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3041 2014-10-01 Pedro Alves <palves@redhat.com>
3043 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3044 GENERATED" along with emacs/vi read-only markers.
3045 * regformats/aarch64.dat: Regenerate.
3046 * regformats/arm-with-iwmmxt.dat: Regenerate.
3047 * regformats/arm-with-neon.dat: Regenerate.
3048 * regformats/arm-with-vfpv2.dat: Regenerate.
3049 * regformats/arm-with-vfpv3.dat: Regenerate.
3050 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3051 * regformats/i386/amd64-avx.dat: Regenerate.
3052 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3053 * regformats/i386/amd64-avx512.dat: Regenerate.
3054 * regformats/i386/amd64-linux.dat: Regenerate.
3055 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3056 * regformats/i386/amd64-mpx.dat: Regenerate.
3057 * regformats/i386/amd64.dat: Regenerate.
3058 * regformats/i386/i386-avx-linux.dat: Regenerate.
3059 * regformats/i386/i386-avx.dat: Regenerate.
3060 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3061 * regformats/i386/i386-avx512.dat: Regenerate.
3062 * regformats/i386/i386-linux.dat: Regenerate.
3063 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3064 * regformats/i386/i386-mmx.dat: Regenerate.
3065 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3066 * regformats/i386/i386-mpx.dat: Regenerate.
3067 * regformats/i386/i386.dat: Regenerate.
3068 * regformats/i386/x32-avx-linux.dat: Regenerate.
3069 * regformats/i386/x32-avx.dat: Regenerate.
3070 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3071 * regformats/i386/x32-avx512.dat: Regenerate.
3072 * regformats/i386/x32-linux.dat: Regenerate.
3073 * regformats/i386/x32.dat: Regenerate.
3074 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3075 * regformats/mips-dsp-linux.dat: Regenerate.
3076 * regformats/mips-linux.dat: Regenerate.
3077 * regformats/mips64-dsp-linux.dat: Regenerate.
3078 * regformats/mips64-linux.dat: Regenerate.
3079 * regformats/nios2-linux.dat: Regenerate.
3080 * regformats/rs6000/powerpc-32.dat: Regenerate.
3081 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3082 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3083 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3084 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3085 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3086 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3087 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3088 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3089 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3090 * regformats/s390-linux32.dat: Regenerate.
3091 * regformats/s390-linux32v1.dat: Regenerate.
3092 * regformats/s390-linux32v2.dat: Regenerate.
3093 * regformats/s390-linux64.dat: Regenerate.
3094 * regformats/s390-linux64v1.dat: Regenerate.
3095 * regformats/s390-linux64v2.dat: Regenerate.
3096 * regformats/s390-te-linux64.dat: Regenerate.
3097 * regformats/s390x-linux64.dat: Regenerate.
3098 * regformats/s390x-linux64v1.dat: Regenerate.
3099 * regformats/s390x-linux64v2.dat: Regenerate.
3100 * regformats/s390x-te-linux64.dat: Regenerate.
3101 * regformats/tic6x-c62x-linux.dat: Regenerate.
3102 * regformats/tic6x-c62x.dat: Regenerate.
3103 * regformats/tic6x-c64x-linux.dat: Regenerate.
3104 * regformats/tic6x-c64x.dat: Regenerate.
3105 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3106 * regformats/tic6x-c64xp.dat: Regenerate.
3108 2014-10-01 Pedro Alves <palves@redhat.com>
3110 * features/Makefile: Update comments.
3111 (XMLTOC): List all xml files we build C files from.
3112 (clean-cfiles): New rule.
3114 2014-10-01 Pedro Alves <palves@redhat.com>
3116 * features/i386/amd64-avx512-linux.c: Regenerate.
3117 * features/i386/amd64-avx512.c: Regenerate.
3118 * features/i386/x32-avx512-linux.c: Regenerate.
3119 * features/i386/x32-avx512.c: Regenerate.
3121 2014-10-01 Pedro Alves <palves@redhat.com>
3123 * features/Makefile (WHICH): Remove arm-with-m,
3124 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3126 2014-10-01 Pedro Alves <palves@redhat.com>
3128 * features/Makefile (clean): New rule.
3130 2014-10-01 Pedro Alves <palves@redhat.com>
3132 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3133 (zmm14h): Add missing end quotes.
3135 2014-10-01 Pedro Alves <palves@redhat.com>
3137 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3138 * features/aarch64.c: Regenerate.
3140 2014-09-30 Don Breazeal <donb@codesourcery.com>
3142 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3143 code so as to work with follow_fork_inferior.
3144 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3145 (inf_ttrace_create_inferior): Remove reference to
3146 inf_ttrace_vfork_ppid.
3147 (inf_ttrace_attach): Ditto.
3148 (inf_ttrace_detach): Ditto.
3149 (inf_ttrace_kill): Use current_inferior instead of
3150 inf_ttrace_vfork_ppid.
3151 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3152 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3153 inferior away from the parent.
3154 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3156 (follow_fork_inferior): New function.
3157 (follow_inferior_reset_breakpoints): Make function static.
3158 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3159 * linux-nat.c (linux_child_follow_fork): Move target-independent
3160 code to infrun.c:follow_fork_inferior.
3162 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3165 * gdbarch.c: Regenerate.
3166 * gdbarch.h: Likewise.
3167 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3168 gdbarch method 'regset_from_core_section'.
3169 (get_core_register_section): Remove handling for the case that
3170 regset == NULL and regset_from_core_section is defined.
3171 (get_core_registers): Drop check for deleted method.
3172 * procfs.c (procfs_do_thread_registers): Adjust comment.
3174 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3176 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3177 (linux_nat_make_corefile_notes): Remove.
3178 (linux_target_install_ops): Do not set target method
3179 'make_corefile_notes'.
3180 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3182 (linux_corefile_thread_callback): Instead of args->collect, call
3183 linux_collect_thread_registers.
3184 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3185 NULL unless there is a regset iterator.
3186 (linux_make_corefile_notes_1): Remove.
3187 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3188 by linux_make_corefile_notes.
3189 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3193 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3194 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3196 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3201 (xtensa_iterate_over_regset_sections): New.
3202 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3204 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3206 * vax-tdep.c (vax_regset_from_core_section): Remove.
3207 (vax_iterate_over_regset_sections): New.
3208 (vax_gdbarch_init): Adjust gdbarch initialization.
3210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3212 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3213 (tilegx_regset_from_core_section): Remove.
3214 (tilegx_iterate_over_regset_sections): New.
3215 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3217 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3219 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3220 (sparc_iterate_over_regset_sections): New.
3221 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3222 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3224 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3225 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3226 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3227 target method 'make_corefile_notes'.
3229 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3232 'sizeof_gregset' and 'sizeof_fpregset'.
3233 * sh-tdep.c (sh_regset_from_core_section): Remove.
3234 (sh_iterate_over_regset_sections): New.
3235 (sh_gdbarch_init): Adjust gdbarch initialization.
3236 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3238 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3241 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3243 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3244 (score7_linux_iterate_over_regset_sections): New.
3245 (score_gdbarch_init): Adjust gdbarch initialization.
3247 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3249 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3251 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3252 method 'make_corefile_notes'.
3253 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3254 (ppcfbsd_regset_from_core_section): Remove.
3255 (ppcfbsd_iterate_over_regset_sections): New.
3256 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3258 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3259 (ppcnbsd_iterate_over_regset_sections): New.
3260 (ppcnbsd_init_abi): Adjust.
3261 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3262 (ppcobsd_iterate_over_regset_sections): New.
3263 (ppcobsd_init_abi): Adjust.
3264 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3265 (rs6000_aix_iterate_over_regset_sections): New.
3266 (rs6000_aix_init_osabi): Adjust.
3268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3270 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3271 (nios2_regset_from_core_section): Remove.
3272 (nios2_iterate_over_regset_sections): New.
3273 (nios2_linux_init_abi): Adjust gdbarch initialization.
3275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3278 (am33_iterate_over_regset_sections): New.
3279 (am33_linux_init_osabi): Adjust gdbarch initialization.
3281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3283 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3284 (mips_linux_iterate_over_regset_sections): New.
3285 (mips_linux_init_abi): Adjust gdbarch initialization.
3286 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3287 (mips64obsd_iterate_over_regset_sections): New.
3288 (mips64obsd_init_abi): Adjust.
3289 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3290 (mipsnbsd_iterate_over_regset_sections): New.
3291 (mipsnbsd_init_abi): Adjust.
3293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3295 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3296 (m88k_iterate_over_regset_sections): New.
3297 (m88k_gdbarch_init): Adjust gdbarch initialization.
3299 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3301 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3302 (ia64_linux_iterate_over_regset_sections): New.
3303 (ia64_linux_init_abi): Adjust gdbarch initialization.
3305 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3307 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3308 (m68kbsd_iterate_over_regset_sections): New.
3309 (m68kbsd_init_abi): Adjust gdbarch initialization.
3310 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3311 (m68k_linux_iterate_over_regset_sections): New.
3312 (m68k_linux_init_abi): Adjust gdbarch initialization.
3314 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3316 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3317 (m32r_linux_regset_from_core_section): Remove.
3318 (m32r_linux_iterate_over_regset_sections): New.
3319 (m32r_linux_init_abi): Adjust gdbarch initialization.
3321 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3323 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3324 (amd64obsd_iterate_over_regset_sections): New.
3325 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3326 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3328 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3329 regset_from_core_section initialization.
3330 * i386-tdep.c (i386_regset_from_core_section): Remove.
3331 (i386_iterate_over_regset_sections): New.
3332 (i386_gdbarch_init): Adjust gdbarch initialization.
3333 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3334 (i386_iterate_over_regset_sections): New prototype.
3335 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3337 (i386obsd_aout_iterate_over_regset_sections): New.
3338 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3339 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3341 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3342 (amd64fbsd_init_abi): Call fbsd_init_abi.
3343 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3344 (i386fbsd4_init_abi): Call fbsd_init_abi.
3345 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3346 target method 'make_corefile_notes'.
3347 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3349 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3351 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3352 (hppa_hpux_iterate_over_regset_sections): New.
3353 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3354 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3355 (hppa_linux_iterate_over_regset_sections): New.
3356 (hppa_linux_init_abi): Adjust.
3357 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3358 (hppanbsd_iterate_over_regset_sections): New.
3359 (hppanbsd_init_abi): Adjust.
3360 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3361 (hppaobsd_iterate_over_regset_sections): New.
3362 (hppaobsd_init_abi): Adjust.
3364 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3366 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3367 (frv_linux_iterate_over_regset_sections): New.
3368 (frv_linux_init_abi): Adjust gdbarch initialization.
3370 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3372 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3373 (armbsd_iterate_over_regset_sections): New prototype.
3374 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3375 (armbsd_iterate_over_regset_sections): New.
3376 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3379 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3381 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3382 (alpha_linux_iterate_over_regset_sections): New.
3383 (alpha_linux_init_abi): Adjust gdbarch initialization.
3384 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3386 (alphanbsd_iterate_over_regset_sections): New prototype.
3388 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3390 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3392 (aarch64_linux_iterate_over_regset_sections): New.
3393 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3395 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3397 * fbsd-tdep.c: New file.
3398 * fbsd-tdep.h: New file.
3399 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3400 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3401 (ALLDEPFILES): Add fbsd-tdep.c.
3403 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3405 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3407 * gdbarch.h: Regenerate.
3408 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3410 (get_core_register_section): Add parameter 'regset' and use it, if
3411 set. Add parameter 'min_size' and verify the bfd section size
3413 (get_core_registers_cb): Add parameter 'regset' and pass it to
3414 get_core_register section. For the "standard" register sections
3415 ".reg" and ".reg2", set an appropriate default for human_name.
3416 (get_core_registers): Don't abort when the gdbarch has an iterator
3417 but no regset_from_core_section. Add NULL/0 for parameters
3418 'regset'/'min_size' in calls to get_core_register_section.
3419 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3420 'regset' and use it instead of calling the
3421 regset_from_core_section gdbarch method.
3422 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3423 * i386-tdep.c (i386_supply_xstateregset)
3424 (i386_collect_xstateregset, i386_xstateregset): Moved to
3426 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3428 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3429 core file support only if the regset iterator hasn't been set.
3430 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3431 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3432 Moved from i386-tdep.c and renamed to *_linux*.
3433 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3434 each callback invocation. Allow any .reg-xstate size when reading
3436 * amd64-tdep.c (amd64_supply_xstateregset)
3437 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3439 (amd64_regset_from_core_section): Remove.
3440 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3441 install an amd64-specific regset_from_core_section gdbarch method.
3442 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3443 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3444 Moved from amd64-tdep.c and renamed to *_linux*.
3445 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3446 to each callback invocation. Allow any .reg-xstate size when
3447 reading from a core file.
3448 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3449 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3450 each callback invocation.
3451 (arm_linux_init_abi): No longer set the regset_from_core_section
3453 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3454 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3455 each callback invocation.
3456 (ppc_linux_init_abi): No longer set the regset_from_core_section
3458 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3459 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3460 (s390_regset_from_core_section): Remove.
3461 (s390_iterate_over_regset_sections): Add regset parameter to each
3462 callback invocation.
3463 (s390_gdbarch_init): No longer set the regset_from_core_section
3464 gdbarch method. Drop initialization of deleted tdep fields.
3466 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3468 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3469 (amd64_linux_iterate_over_regset_sections): New.
3470 (amd64_linux_init_abi_common): Don't install the regset section
3471 list, but the new iterator in gdbarch.
3472 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3473 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3474 (arm_linux_iterate_over_regset_sections): ...here. New function.
3475 (arm_linux_init_abi): Set iterator instead of section list.
3476 * corelow.c (get_core_registers_cb): New function, logic moved
3478 (get_core_registers): ...loop body here. Use new iterator method
3479 instead of walking through the regset section list.
3480 * gdbarch.sh: Remove 'core_regset_sections'. New method
3481 'iterate_over_regset_sections'. New typedef
3482 'iterate_over_regset_sections_cb'.
3483 * gdbarch.c: Regenerate.
3484 * gdbarch.h: Likewise.
3485 * i386-linux-tdep.c (i386_linux_regset_sections)
3486 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3488 (i386_linux_iterate_over_regset_sections): New.
3489 (i386_linux_init_abi): Don't choose a regset section list, but
3490 install new iterator in gdbarch.
3491 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3492 (linux_collect_regset_section_cb): New function, logic moved
3494 (linux_collect_thread_registers): ...loop body here. Use iterator
3495 method instead of walking through list.
3496 (linux_make_corefile_notes_1): Check for presence of iterator
3497 method instead of regset section list.
3498 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3499 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3500 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3501 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3502 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3503 (ppc_linux_init_abi): Don't choose from above regset section
3504 lists, but install new iterator in gdbarch.
3505 * regset.h (struct core_regset_section): Remove.
3506 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3507 have_linux_v1, have_linux_v2, and have_tdb.
3508 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3509 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3510 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3511 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3512 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3513 (s390_iterate_over_regset_sections): ...here. New function. Use
3515 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3516 regset section lists, but install new iterator.
3518 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3522 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3524 * progspace.c (print_program_space): Don't prune program spaces
3525 before printing them.
3527 2014-09-25 Pedro Alves <palves@redhat.com>
3529 * infrun.c (user_visible_resume_ptid): Don't check
3530 singlestep_breakpoints_inserted_p.
3532 2014-09-25 Pedro Alves <palves@redhat.com>
3534 * breakpoint.c (should_be_inserted): Add debug output.
3536 2014-09-25 Pedro Alves <palves@redhat.com>
3538 * infrun.c (stepping_past_instruction_at)
3539 (clear_exit_convenience_vars): Point at infrun.h instead of
3541 (handle_signal_stop): Fix typo.
3543 2014-09-24 Yao Qi <yao@codesourcery.com>
3545 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3548 2014-09-22 Gary Benson <gbenson@redhat.com>
3550 * target.c (target_stop): Updated comment.
3552 2014-09-22 Gary Benson <gbenson@redhat.com>
3554 * target/target.h (target_stop_ptid): Renamed as...
3555 (target_stop_and_wait): New function. Updated comment.
3557 (target_continue_ptid): Renamed as...
3558 (target_continue_no_signal): New function. Updated comment.
3561 2014-09-22 Pedro Alves <palves@redhat.com>
3563 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3565 * breakpoint.c (enum ugll_insert_mode): New enum.
3566 (always_inserted_mode): Now a plain boolean.
3567 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3568 (breakpoints_always_inserted_mode): Delete.
3569 (breakpoints_should_be_inserted_now): New function.
3570 (insert_breakpoints): Pass UGLL_INSERT to
3571 update_global_location_list instead of calling
3572 insert_breakpoint_locations manually.
3573 (create_solib_event_breakpoint_1): New, factored out from ...
3574 (create_solib_event_breakpoint): ... this.
3575 (create_and_insert_solib_event_breakpoint): Use
3576 create_solib_event_breakpoint_1 instead of calling
3577 insert_breakpoint_locations manually.
3578 (update_global_location_list): Change parameter type from boolean
3579 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3580 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3581 (update_global_location_list_nothrow): Change parameter type from
3582 boolean to enum ugll_insert_mode.
3583 (_initialize_breakpoint): "breakpoint always-inserted" option is
3584 now a boolean command. Update help text.
3585 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3586 (breakpoints_should_be_inserted_now): New declaration.
3587 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3588 Remove breakpoints_always_inserted_mode check.
3589 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3590 * remote.c (remote_start_remote): Likewise.
3592 2014-09-22 Pedro Alves <palves@redhat.com>
3594 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3595 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3596 Instead, pass UGLL_INSERT to update_global_location_list.
3597 (update_global_location_list): Change parameter type from boolean
3598 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3599 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3600 (create_solib_event_breakpoint_1): New, factored out from ...
3601 (create_solib_event_breakpoint): ... this.
3602 (create_and_insert_solib_event_breakpoint): Use
3603 create_solib_event_breakpoint_1 instead of calling
3604 insert_breakpoint_locations manually.
3605 (update_global_location_list): Handle UGLL_INSERT.
3607 2014-09-22 Pedro Alves <palves@redhat.com>
3609 * breakpoint.c (enum ugll_insert_mode): New enum.
3610 (update_global_location_list)
3611 (update_global_location_list_nothrow): Change parameter type from
3612 boolean to enum ugll_insert_mode. All callers adjusted.
3614 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3616 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3617 SystemTap support in GDB.
3619 2014-09-19 Don Breazeal <donb@codesourcery.com>
3621 * linux-nat.c (linux_handle_extended_wait): Call
3622 linux_ptrace_get_extended_event.
3623 (wait_lwp): Call linux_is_extended_waitstatus.
3624 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3625 and linux_is_extended_waitstatus.
3626 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3627 linux_ptrace_get_extended_event.
3628 (linux_ptrace_get_extended_event): New function.
3629 (linux_is_extended_waitstatus): New function.
3630 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3631 (linux_is_extended_waitstatus): New declarations.
3633 2014-09-19 Yao Qi <yao@codesourcery.com>
3635 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3636 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3637 comments. Callers update.
3638 (dwarf_decode_lines): Likewise.
3639 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3640 comments. Skip the line table if 'lowpc' is greater than
3641 'address'. Don't check
3642 dwarf2_per_objfile->has_section_at_zero.
3644 2014-09-18 Doug Evans <dje@google.com>
3646 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3647 * python/py-symtab.c (stpy_get_producer): New function.
3648 (symtab_object_getset): Add "producer" attribute.
3650 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3653 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3654 (do_captured_read_memory_integer): Remove.
3655 (safe_read_memory_integer): Use target_read_memory directly instead
3656 of catching errors in do_captured_read_memory_integer.
3658 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3660 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3663 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3665 * objc-lang.c (find_implementation_from_class): Remove dead code.
3667 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3670 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3671 "fprintf_unfiltered (gdb_stdlog...)".
3673 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3675 PR breakpoints/12526
3676 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3678 * breakpoint.c (watch_command_1): Use these fields to retain
3679 bitfield information.
3680 (extract_bitfield_from_watchpoint_value): New function.
3681 (watchpoint_check): Use it.
3682 (update_watchpoint): Use it. Optimize the address and length of a
3683 HW watchpoint pointing to a bitfield.
3684 * value.h (unpack_value_bitfield): New prototype.
3685 * value.c (unpack_value_bitfield): Make extern.
3687 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3689 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3691 * gnu-nat.c (inf_threads): New function.
3692 * gnu-nat.h (inf_threads_ftype): New typedef.
3693 (inf_threads): New declaration.
3694 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3695 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3696 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3697 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3698 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3699 (i386_gnu_dr_get_control): New functions.
3700 (reg_addr): New structure.
3701 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3702 i386 debugging register hooks.
3703 * NEWS: Mention this.
3705 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3707 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3708 vector data transfer instructions.
3709 (arm_record_coproc_data_proc): Updated.
3711 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3713 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3714 arm_record_exreg_ld_st_insn.
3715 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3718 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3720 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3721 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3722 processing instructions.
3724 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3726 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3727 for advance SIMD struct ld/st insn.
3728 (thumb2_record_decode_insn_handler): Replace stub handler with
3729 thumb2_record_asimd_struct_ld_st.
3731 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3733 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3734 for asimd, vfp and coprocessor insns.
3735 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3736 and coprocessor insns.
3737 (thumb2_record_coproc_insn): New function.
3738 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3740 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3743 2014-09-13 Doug Evans <xdje42@gmail.com>
3745 * NEWS: Mention new "queue-signal" command.
3746 * infcmd.c (queue_signal_command): New function.
3747 (_initialize_infcmd): Add new queue-signal command.
3749 2014-09-13 Doug Evans <xdje42@gmail.com>
3751 * linux-nat.c (wait_lwp): Add debugging printf.
3752 (linux_nat_wait_1): Ditto.
3754 2014-09-12 Pedro Alves <palves@redhat.com>
3756 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3757 (create_and_insert_solib_event_breakpoint): New functions.
3758 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3759 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3760 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3761 (remove_dbx_link_breakpoint): Delete function.
3762 (insert_dbx_link_bpt_in_file): Use
3763 create_and_insert_solib_event_breakpoint instead of
3764 deprecated_insert_raw_breakpoint.
3765 (procfs_wait): Don't check whether we hit __dbx_link here.
3766 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3768 * solib-irix.c (base_breakpoint): Delete global.
3769 (disable_break): Delete function.
3770 (enable_break): Use create_solib_event_breakpoint
3771 instead of deprecated_insert_raw_breakpoint.
3772 (irix_solib_handle_event): New function.
3773 (irix_solib_create_inferior_hook): Don't run the target or disable
3774 the mapping-complete breakpoint here.
3775 (_initialize_irix_solib): Install irix_solib_handle_event as
3776 so_ops->handle_event hook.
3778 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3779 Ulrich Weigand <uweigand@de.ibm.com>
3782 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3783 instead of read_memory_unsigned_integer.
3785 2014-09-12 Gary Benson <gbenson@redhat.com>
3787 * nat/linux-waitpid.c: Include common-defs.h.
3788 [GDBSERVER]: Add FIXME comment.
3789 [!GDBSERVER]: Don't include defs.h or signal.h.
3790 (linux_debug) [!GDBSERVER]: Remove empty block.
3792 2014-09-12 Gary Benson <gbenson@redhat.com>
3794 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3795 Don't include defs.h or server.h.
3797 2014-09-12 Gary Benson <gbenson@redhat.com>
3799 * nat/linux-btrace.c: Include common-defs.h.
3800 Don't include defs.h, server.h or gdbthread.h.
3801 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3803 2014-09-12 Gary Benson <gbenson@redhat.com>
3805 * common/agent.c: Include common-defs.h.
3806 Don't include defs.h or server.h.
3807 * common/buffer.c: Likewise.
3808 * common/common-debug.c: Likewise.
3809 * common/common-utils.c: Likewise.
3810 * common/errors.c: Likewise.
3811 * common/filestuff.c: Likewise.
3812 * common/format.c: Likewise.
3813 * common/gdb_vecs.c: Likewise.
3814 * common/print-utils.c: Likewise.
3815 * common/ptid.c: Likewise.
3816 * common/rsp-low.c: Likewise.
3817 * common/signals.c: Likewise.
3818 * common/vec.c: Likewise.
3819 * common/xml-utils.c: Likewise.
3820 * nat/linux-osdata.c: Likewise.
3821 * nat/linux-procfs.c: Likewise.
3822 * nat/linux-ptrace.c: Likewise.
3823 * nat/mips-linux-watch.c: Likewise.
3824 * target/waitstatus.c: Likewise.
3826 2014-09-12 Tom Tromey <tromey@redhat.com>
3827 Gary Benson <gbenson@redhat.com>
3829 * common/common-regcache.h: New file.
3830 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3831 * regcache.h: Include common-regcache.h.
3832 (regcache_read_pc): Don't declare.
3833 * regcache.c (get_thread_regcache_for_ptid): New function.
3834 * nat/linux-btrace.c: Don't include regcache.h.
3835 Include common-regcache.h.
3836 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3838 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3840 * regcache.h (struct regset): Declare.
3842 2014-09-11 Pedro Alves <palves@redhat.com>
3845 * main.c: Include "infrun.h".
3846 (catch_command_errors, catch_command_errors_const): Wait for the
3847 foreground command to complete.
3848 * top.c (maybe_wait_sync_command_done): New function, factored out
3850 (maybe_wait_sync_command_done): ... here.
3851 * top.h (maybe_wait_sync_command_done): New declaration.
3853 2014-09-11 Tom Tromey <tromey@redhat.com>
3854 Gary Benson <gbenson@redhat.com>
3856 * common/symbol.h: New file.
3857 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3858 * minsyms.c (find_minimal_symbol_address): New function.
3859 * common/agent.c: Include common/symbol.h.
3860 [!GDBSERVER]: Don't include objfiles.h.
3861 (agent_look_up_symbols): Use find_minimal_symbol_address.
3863 2014-09-11 Gary Benson <gbenson@redhat.com>
3865 * target/target.h (target_stop_ptid, target_continue_ptid):
3867 * target.c (target_stop_ptid, target_continue_ptid): New
3869 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3870 (agent_run_command): Always use target_stop_ptid and
3871 target_continue_ptid.
3873 2014-09-11 Tom Tromey <tromey@redhat.com>
3874 Gary Benson <gbenson@redhat.com>
3876 * target/target.h: New file.
3877 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3878 * target.h: Include target/target.h.
3879 (target_read_memory, target_write_memory): Don't declare.
3880 * target.c (target_read_uint32): New function.
3881 * common/agent.c: Include target/target.h.
3882 [!GDBSERVER]: Don't include target.h.
3883 (helper_thread_id): Type changed to uint32_t.
3884 (agent_get_helper_thread_id): Use target_read_uint32.
3885 (agent_run_command): Always use target_read_memory and
3886 target_write_memory.
3887 (agent_capability): Type changed to uint32_t.
3888 (agent_capability_check): Use target_read_uint32.
3890 2014-09-11 Gary Benson <gbenson@redhat.com>
3892 * common/common-debug.h (show_debug_regs): Declare.
3893 * common/common-debug.c (show_debug_regs): Define.
3894 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3895 all uses with show_debug_regs. Replace all uses that considered
3896 debug_hw_points as a multi-value integer with straight boolean
3898 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3899 with show_debug_regs.
3900 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3901 all uses with show_debug_regs.
3902 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3903 uses with show_debug_regs.
3905 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3907 * findvar.c (address_from_register): Handle targets requiring
3908 a special conversion routine even for plain pointer types.
3910 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3912 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3913 (store_register): Do not call exec_one_dummy_insn.
3915 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3917 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3918 dereference it first. Use value_enclosing_type instead of
3920 (ada_array_length): Likewise.
3922 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3924 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3925 Adjust function implementation and documentation accordingly.
3926 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3927 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3928 Update call to ada_value_ptr_subscript.
3930 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3932 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3933 instead of VAL's type.
3935 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3937 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3939 2014-09-09 Doug Evans <xdje42@gmail.com>
3942 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3943 last parameter to pkg-config, not first.
3944 * configure.ac: Pass --with-guile provided pkg-config path to
3945 GDB_GUILE_PROGRAM_NAMES.
3946 * configure: Regenerate.
3948 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3950 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3953 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3955 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3956 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3957 the list of sections determining GDB_OSABI_IRIX.
3959 2014-09-09 James Hogan <james.hogan@imgtec.com>
3961 * MAINTAINERS (Write After Approval): Add "James Hogan".
3963 2014-09-09 James Hogan <james.hogan@imgtec.com>
3965 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3967 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3969 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3971 2014-09-08 Doug Evans <xdje42@gmail.com>
3974 * guile.c: #include <signal.h>.
3975 (_initialize_guile): Block SIGCHLD while initializing Guile.
3977 Replaces the following, which is reverted.
3979 2014-07-26 Doug Evans <xdje42@gmail.com>
3982 * configure.ac: Add check for header gc/gc.h.
3983 Add check for function setenv.
3984 * configure: Regenerate.
3985 * config.in: Regenerate.
3986 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3988 2014-09-08 Doug Evans <xdje42@gmail.com>
3990 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3991 with named constant. Fix style of pointer comparison.
3992 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3994 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3997 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3998 decide whether we display the command on "show user".
3999 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4000 printing command name.
4001 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4002 * cli/cli-decode.c (cli_user_command_p): Create helper function
4003 to verify whether cmd_list_element is a user-defined command.
4005 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4008 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4009 Fix goto out of TRY_CATCH.
4011 2014-09-06 Doug Evans <xdje42@gmail.com>
4012 Tom Tromey <tromey@redhat.com>
4015 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4016 $_any_caller_matches.
4017 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4018 * python/lib/gdb/function/caller_is.py: New file.
4020 2014-09-06 Doug Evans <xdje42@gmail.com>
4022 * infcmd.c (program_info): Fix typo.
4024 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4027 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4028 'number'. New variable 'has_digit'. Rewrite code to deal with
4029 subexpressions on SDT probes.
4031 2014-09-04 Pedro Alves <palves@redhat.com>
4033 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4034 the input is only one character long.
4036 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4039 * f-valprint.c (f_val_print): Specify the correct print option to
4040 use when printing integer values.
4042 2014-09-04 Gary Benson <gbenson@redhat.com>
4044 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4045 Remove code to cope with LWPs wrapped as PIDs.
4046 Add assertions to ensure no wrapped LWPs are passed.
4048 2014-09-04 Pedro Alves <palves@redhat.com>
4050 * value.c (value_ranges_copy_adjusted): New function, factored out
4052 (value_contents_copy_raw): ... here.
4053 (unpack_value_bits_as_long_1): Rename back to ...
4054 (unpack_bits_as_long): ... this. Remove 'original_value' and
4055 'result' parameters. Change return type to LONGEST.
4056 (unpack_value_bits_as_long): Delete.
4057 (unpack_value_field_as_long_1): Delete.
4058 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4059 (unpack_value_bitfield): New function.
4060 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4061 (value_fetch_lazy): Use unpack_value_bitfield.
4062 * value.h (unpack_value_bits_as_long): Delete declaration.
4064 2014-09-03 Sasha Smundak <asmundak@google.com>
4066 * python/py-frame.c (frapy_read_register): New function.
4068 2014-09-03 James Hogan <james.hogan@imgtec.com>
4070 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4071 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4073 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4076 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4078 (add_cmd): Set "completer_handle_brkchars" to NULL.
4079 * cli/cli-decode.h (struct cmd_list_element)
4080 <completer_handle_brkchars>: New field.
4081 * command.h (completer_ftype_void): New typedef.
4082 (set_cmd_completer_handle_brkchars): New prototype.
4083 * completer.c (set_gdb_completion_word_break_characters): New
4085 (complete_line_internal): Call "completer_handle_brkchars"
4086 callback from command.
4087 * completer.h: Include "command.h".
4088 (set_gdb_completion_word_break_characters): New prototype.
4089 * python/py-cmd.c (cmdpy_completer_helper): New function.
4090 (cmdpy_completer_handle_brkchars): New function.
4091 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4092 (cmdpy_init): Set completer_handle_brkchars to
4093 cmdpy_completer_handle_brkchars.
4095 2014-09-03 Gary Benson <gbenson@redhat.com>
4097 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4098 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4099 Loop conditions changed to equivalent form.
4100 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4101 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4102 ALL_DEBUG_ADDRESS_REGISTERS.
4104 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4106 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4109 2014-09-02 Doug Evans <dje@google.com>
4111 * typeprint.c (find_global_typedef): Fix comment.
4113 2014-09-02 Gary Benson <gbenson@redhat.com>
4115 * i386-nat.h: Renamed as...
4116 * x86-nat.h: New file. All type, function and variable name
4117 prefixes changed from "i386_" to "x86_". All references updated.
4118 * i386-nat.c: Renamed as...
4119 * x86-nat.c: New file. All type, function and variable name
4120 prefixes changed from "i386_" to "x86_". All references updated.
4121 * common/i386-xstate.h: Renamed as...
4122 * common/x86-xstate.h: New file. All type, function and variable
4123 name prefixes changed from "i386_" to "x86_". All references
4125 * nat/i386-cpuid.h: Renamed as...
4126 * nat/x86-cpuid.h: New file. All type, function and variable name
4127 prefixes changed from "i386_" to "x86_". All references updated.
4128 * nat/i386-gcc-cpuid.h: Renamed as...
4129 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4130 name prefixes changed from "i386_" to "x86_". All references
4132 * nat/i386-dregs.h: Renamed as...
4133 * nat/x86-dregs.h: New file. All type, function and variable name
4134 prefixes changed from "i386_" to "x86_". All references updated.
4135 * nat/i386-dregs.c: Renamed as...
4136 * nat/x86-dregs.c: New file. All type, function and variable name
4137 prefixes changed from "i386_" to "x86_". All references updated.
4139 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4141 * varobj.c (_initialize_varobj): Move to the end of file.
4143 2014-08-29 Gary Benson <gbenson@redhat.com>
4145 * common/common-exceptions.h: New file.
4146 * common/common-exceptions.c: Likewise.
4147 * Makefile.in (SFILES): Add common/common-exceptions.c.
4148 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4149 (COMMON_OBS): Add common-exceptions.o.
4150 (common-exceptions.o): New rule.
4151 * exceptions.h (common-exceptions.h): Include.
4152 (gdb_setjmp.h): Do not include.
4153 (return_reason): Moved to common-exceptions.h.
4154 (enum return_reason): Likewise.
4155 (RETURN_MASK): Likewise.
4156 (typedef return_mask): Likewise.
4157 (enum errors): Likewise.
4158 (struct gdb_exception): Likewise.
4159 (exceptions_state_mc_init): Likewise.
4160 (exceptions_state_mc_action_iter): Likewise.
4161 (exceptions_state_mc_action_iter_1): Likewise.
4162 (TRY_CATCH): Likewise.
4163 (throw_exception): Likewise.
4164 (throw_verror): Likewise.
4165 (throw_vquit): Likewise.
4166 (throw_error): Likewise.
4167 (throw_quit): Likewise.
4168 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4169 (enum catcher_action): Likewise.
4170 (struct catcher): Likewise.
4171 (current_catcher): Likewise.
4172 (catcher_list_size): Likewise.
4173 (exceptions_state_mc_init): Likewise.
4174 (catcher_pop): Likewise.
4175 (exceptions_state_mc): Likewise.
4176 (exceptions_state_mc_action_iter): Likewise.
4177 (exceptions_state_mc_action_iter_1): Likewise.
4178 (throw_exception): Likewise.
4179 (exception_messages): Likewise.
4180 (exception_messages_size): Likewise.
4181 (throw_it): Likewise.
4182 (throw_verror): Likewise.
4183 (throw_vquit): Likewise.
4184 (throw_error): Likewise.
4185 (throw_quit): Likewise.
4186 (prepare_to_throw_exception): New function.
4188 2014-08-29 Gary Benson <gbenson@redhat.com>
4190 * common/gdb_setjmp.h: New file.
4191 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4192 * configure.ac: Move sigsetjmp check...
4193 * common/common.m4: ...here.
4194 * configure: Regenerate.
4195 * cp-support.c (SIGJMP_BUF): Delete.
4196 (SIGSETJMP): Likewise.
4197 (SIGLONGJMP): Likewise.
4198 * exceptions.h (gdb_setjmp.h): Include.
4199 (setjmp.h): Do not include.
4200 (EXCEPTIONS_SIGJMP_BUF): Delete.
4201 (EXCEPTIONS_SIGSETJMP): Likewise.
4202 (EXCEPTIONS_SIGLONGJMP): Likewise.
4203 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4205 * exceptions.c: Likewise.
4207 2014-08-29 Gary Benson <gbenson@redhat.com>
4209 * cleanups.h: Moved to...
4210 * common/cleanups.h: New file.
4211 * cleanups.c: Moved to...
4212 * common/cleanups.c: New file. Include common-defs.h and
4213 cleanups.h. Do not include defs.h.
4214 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4215 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4216 (cleanups.o): New rule.
4218 2014-08-29 Gary Benson <gbenson@redhat.com>
4220 * common/errors.h (internal_warning): New declaration.
4221 (internal_vwarning): Likewise.
4222 * common/errors.c (internal_warning): New function.
4223 * utils.h (internal_warning): Don't declare.
4224 (internal_vwarning): Likewise.
4225 * utils.c (internal_warning): Removed.
4227 2014-08-29 Gary Benson <gbenson@redhat.com>
4229 * main.c (captured_main): Use warning during startup.
4230 Prefix startup warning messages with command name.
4232 2014-08-29 Gary Benson <gbenson@redhat.com>
4234 * main.c (captured_main): Handle usage errors with error.
4236 2014-08-29 Gary Benson <gbenson@redhat.com>
4238 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4239 exit pair with a call to error. Wrap the message with _().
4241 2014-08-29 Gary Benson <gbenson@redhat.com>
4243 * main.c (captured_main): Replace a fprintf/exit
4244 pair with a call to error. Wrap the message with _().
4246 2014-08-29 Gary Benson <gbenson@redhat.com>
4248 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4249 pairs with calls to error. Wrap the message with _().
4251 2014-08-29 Gary Benson <gbenson@redhat.com>
4253 * utils.c (vwarning): Protect calls to target_terminal_ours
4256 2014-08-29 Gary Benson <gbenson@redhat.com>
4258 * exceptions.c (print_flush): Protect calls to
4259 target_terminal_ours and wrap_here.
4261 2014-08-29 Gary Benson <gbenson@redhat.com>
4263 * utils.h (filtered_printing_initialized): New declaration.
4264 * utils.c (abort_with_message): New function.
4265 (internal_vproblem): Use abort_with_message for first level
4266 recursive internal problems, and if gdb_stderr is not set up.
4267 Protect calls to target_terminal_ours, begin_line and query.
4269 2014-08-28 Doug Evans <dje@google.com>
4271 * symtab.c (in_prologue): Move definition to better spot.
4272 (skip_prologue_using_sal): Ditto.
4274 2014-08-28 Doug Evans <dje@google.com>
4276 * symtab.c (find_function_start_sal): Move definition to better spot.
4278 2014-08-28 Yao Qi <yao@codesourcery.com>
4280 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4281 found_stack_adjust in forward scan. Remove condition check
4282 on found_stack_adjust which is always true. Indent the code.
4284 2014-08-28 Yao Qi <yao@codesourcery.com>
4286 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4287 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4288 (dwarf_decode_lines): Remove argument
4289 want_line_info. Remove condition check on want_line_info.
4292 2014-08-27 Doug Evans <dje@google.com>
4294 * dwarf2read.c (dwarf_record_line): Fix typo.
4296 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4298 * target.h (struct target_ops::to_terminal_save_ours): Remove
4300 (target_terminal_save_ours): Remove macro.
4301 * target-delegates.c: Regenerate.
4302 * inf-child.c (inf_child_target): Don't set the nonexistent
4303 field to_terminal_save_ours.
4304 * inferior.h (child_terminal_save_ours): Remove declaration.
4305 * terminal.h (gdb_save_tty_state): New declaration.
4306 * inflow.c (child_terminal_save_ours): Rename to ...
4307 (gdb_save_tty_state): ... this.
4308 * tui/tui.c: Include terminal.h.
4309 (tui_enable): Use gdb_save_tty_state instead of
4310 target_terminal_save_ours.
4311 (tui_disable): Likewise.
4313 2014-08-25 Doug Evans <dje@google.com>
4315 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4316 Pass NULL instead of 0 for context pointer.
4318 2014-08-25 Yao Qi <yao@codesourcery.com>
4320 * dwarf2read.c: Fix grammatical error.
4322 2014-08-24 Yao Qi <yao@codesourcery.com>
4324 * dwarf2read.c (scan_partial_symbols): Update comments.
4325 Rename argument 'need_pc' with 'set_addrmap'.
4326 (add_partial_namespace): Rename argument 'need_pc' with
4328 (add_partial_module): Likewise.
4329 (add_partial_subprogram): Likewise. Update comments.
4330 (dwarf2_name): Fix typo.
4332 2014-08-22 Doug Evans <dje@google.com>
4335 * dwarf2read.c (dwarf_record_line_p): New function.
4336 (dwarf_decode_lines_1): Ignore subsequent line number entries
4337 for the same line if any entry had a non-zero discriminator.
4339 2014-08-22 Doug Evans <dje@google.com>
4341 * buildsym.h (record_line_ftype): New typedef.
4342 (record_line): Use it.
4343 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4344 (dwarf_decode_lines_1): Call them.
4346 2014-08-22 Yao Qi <yao@codesourcery.com>
4348 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4349 (ctf_end): Remove code.
4351 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4353 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4354 (linux_make_corefile_notes): call update_thread_list, protected against
4357 2014-08-21 Pedro Alves <palves@redhat.com>
4359 * infcmd.c (attach_command): Remove comment.
4361 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4363 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4364 unsigned LONGEST to ULONGEST.
4366 2014-08-20 Pedro Alves <palves@redhat.com>
4368 * Makefile.in (check-read1): New rule.
4370 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4372 * value.c (value_from_contents_and_address): Strip resolved_type's
4373 typedef layers before checking its TYPE_DATA_LOCATION.
4375 2014-08-20 Pedro Alves <palves@redhat.com>
4377 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4379 2014-08-20 Yao Qi <yao@codesourcery.com>
4381 * amd64-tdep.c (amd64_classify): Add a blank line after the
4382 example. Move "*/" to a new line.
4383 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4384 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4385 * dwarf2read.c (psymtab_include_file_name): Likewise.
4387 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4388 Pedro Alves <palves@redhat.com>
4392 * ada-lang.c (coerce_unspec_val_to_type): Use
4393 value_contents_copy_raw.
4394 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4395 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4396 * cp-valprint.c (cp_print_value_fields): Let the common printing
4397 code handle optimized out values.
4398 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4399 * d-valprint.c (dynamic_array_type): Use
4400 value_bits_any_optimized_out.
4401 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4402 check_any_valid fields.
4403 (check_pieced_value_bits): Delete and inline ...
4404 (check_pieced_synthetic_pointer): ... here.
4405 (check_pieced_value_validity): Delete.
4406 (check_pieced_value_invalid): Delete.
4407 (pieced_value_funcs): Remove check_validity and check_any_valid
4409 (read_pieced_value): Use mark_value_bits_optimized_out.
4410 (write_pieced_value): Switch to use
4411 mark_value_bytes_optimized_out.
4412 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4413 of assuming the whole value is optimized out.
4414 * findvar.c (read_frame_register_value): Remove special handling
4415 of optimized out registers.
4416 (value_from_register): Use mark_value_bytes_optimized_out.
4417 * frame-unwind.c (frame_unwind_got_optimized): Use
4418 mark_value_bytes_optimized_out.
4419 * jv-valprint.c (java_value_print): Adjust.
4420 (java_print_value_fields): Let the common printing code handle
4421 optimized out values.
4422 * mips-tdep.c (mips_print_register): Remove special handling of
4423 optimized out registers.
4424 * opencl-lang.c (lval_func_check_validity): Delete.
4425 (lval_func_check_any_valid): Delete.
4426 (opencl_value_funcs): Remove check_validity and check_any_valid
4428 * p-valprint.c (pascal_object_print_value_fields): Let the common
4429 printing code handle optimized out values.
4430 * stack.c (read_frame_arg): Remove special handling of optimized
4431 out values. Fetch both VAL and ENTRYVAL before comparing
4432 contents. Adjust to value_available_contents_eq rename.
4433 * valprint.c (valprint_check_validity)
4434 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4435 (val_print_array_elements): Adjust.
4436 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4437 (value_bits_any_optimized_out): New function.
4438 (value_entirely_covered_by_range_vector): New function, factored
4439 out from value_entirely_unavailable.
4440 (value_entirely_unavailable): Reimplement.
4441 (value_entirely_optimized_out): New function.
4442 (insert_into_bit_range_vector): New function, factored out from
4443 mark_value_bits_unavailable.
4444 (mark_value_bits_unavailable): Reimplement.
4445 (struct ranges_and_idx): New struct.
4446 (find_first_range_overlap_and_match): New function, factored out
4447 from value_available_contents_bits_eq.
4448 (value_available_contents_bits_eq): Rename to ...
4449 (value_contents_bits_eq): ... this. Check both unavailable
4450 contents and optimized out contents.
4451 (value_available_contents_eq): Rename to ...
4452 (value_contents_eq): ... this.
4453 (allocate_value_lazy): Remove reference to the old optimized_out
4455 (allocate_optimized_out_value): Use
4456 mark_value_bytes_optimized_out.
4457 (require_not_optimized_out): Adjust to check whether the
4458 optimized_out vec is empty.
4459 (ranges_copy_adjusted): New function, factored out from
4460 value_contents_copy_raw.
4461 (value_contents_copy_raw): Also copy the optimized out ranges.
4462 Assert the destination ranges aren't optimized out.
4463 (value_contents_copy): Update comment, remove call to
4464 require_not_optimized_out.
4465 (value_contents_equal): Adjust to check whether the optimized_out
4467 (set_value_optimized_out, value_optimized_out_const): Delete.
4468 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4470 (value_entirely_optimized_out, value_bits_valid): Delete.
4471 (value_copy): Take a VEC copy of the 'optimized_out' field.
4472 (value_primitive_field): Remove special handling of optimized out.
4473 (value_fetch_lazy): Assert that lazy values have no unavailable
4474 regions. Use value_bits_any_optimized_out. Remove some special
4475 handling for optimized out values.
4476 * value.h: Add intro comment about <optimized out> and
4478 (struct lval_funcs): Remove check_validity and check_any_valid
4480 (set_value_optimized_out, value_optimized_out_const): Remove.
4481 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4483 (value_bits_any_optimized_out): New declaration.
4484 (value_bits_valid): Delete declaration.
4485 (value_available_contents_eq): Rename to ...
4486 (value_contents_eq): ... this, and extend comments.
4488 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4490 Fix -fsanitize=address on unreadable inferior strings.
4491 * valprint.c (val_print_string): Fix access before BUFFER.
4493 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4495 * target.c (target_struct_size): Remove.
4496 (target_struct_allocsize): Remove.
4497 (DEFAULT_ALLOCSIZE): Remove.
4498 (target_ops_p): New typedef.
4499 (DEF_VEC_P (target_ops_p)): New vector type.
4500 (target_structs): Change type to VEC (target_ops_p).
4501 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4502 (find_default_run_target): Rewrite for loop following changes to
4505 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4507 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4508 Adjust code accordingly. Adjust function description comment.
4510 2014-08-19 Yao Qi <yao@codesourcery.com>
4512 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4515 2014-08-19 Alan Modra <amodra@gmail.com>
4517 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4518 * config.in: Regenerate.
4519 * configure: Regenerate.
4521 2014-08-19 Tom Tromey <tromey@redhat.com>
4522 Gary Benson <gbenson@redhat.com>
4524 * common/common-debug.h: New file.
4525 * common/common-debug.c: Likewise.
4526 * debug.c: Likewise.
4527 * Makefile.in (SFILES): Add common/common-debug.c.
4528 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4529 (COMMON_OBS): Add common-debug.o and debug.o.
4530 (common-debug.o): New rule.
4531 * common/common-defs.h: Include common-debug.h.
4532 * common/agent.c (debug_agent_printf): New function.
4533 (DEBUG_AGENT): Redefine.
4534 * nat/i386-dregs.c (debug_printf): Undefine.
4536 2014-08-19 Gary Benson <gbenson@redhat.com>
4538 * common/common-defs.h: Include print-utils.h.
4539 * utils.h: Do not include print-utils.h.
4541 2014-08-19 Tom Tromey <tromey@redhat.com>
4542 Gary Benson <gbenson@redhat.com>
4544 * common/common-types.h: New file.
4545 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4546 * common/common-defs.h: Include common-types.h.
4547 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4550 2014-08-19 Tom Tromey <tromey@redhat.com>
4551 Gary Benson <gbenson@redhat.com>
4553 * common/errors.h: New file.
4554 * common/errors.c: Likewise.
4555 * Makefile.in (SFILES): Add common/errors.c.
4556 (HFILES_NO_SRCDIR): Add common/errors.h.
4557 (COMMON_OBS): Add errors.o.
4558 (errors.o): New rule.
4559 * common/common-defs.h: Include errors.h.
4560 * utils.h (perror_with_name, error, verror, warning, vwarning):
4562 * common/common-utils.h: (malloc_failure, internal_error):
4565 2014-08-19 Gary Benson <gbenson@redhat.com>
4567 * utils.c (internal_vproblem): Always print the message.
4569 2014-08-18 Doug Evans <dje@google.com>
4571 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4573 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4575 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4576 Return 0 if TYPE is dynamic.
4577 (print_range): Add handling of dynamic ranges.
4579 2014-08-18 Keven Boell <keven.boell@intel.com>
4580 Joel Brobecker <brobecker@adacore.com>
4582 * gdbtypes.h (struct main_type): Add field "data_location".
4583 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4584 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4585 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4586 a dynamic data location.
4587 (resolve_dynamic_type): Add DW_AT_data_location handling.
4588 (copy_recursive, copy_type): Copy the data_location information
4590 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4591 * value.c (value_from_contents_and_address): Add
4592 DW_AT_data_location handling.
4594 2014-08-18 Keven Boell <keven.boell@intel.com>
4595 Joel Brobecker <brobecker@adacore.com>
4597 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4598 field "get_object_address".
4599 * dwarf2expr.c (execute_stack_op): Add handling for
4600 DW_OP_push_object_address.
4601 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4602 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4603 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4604 (dwarf_expr_get_obj_addr): New function.
4605 (dwarf_expr_ctx_funcs): Add get_object_address field.
4606 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4607 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4608 (dwarf2_evaluate_property): Add parameter "address". Use it.
4609 (needs_get_obj_addr): New function.
4610 (needs_frame_ctx_funcs): Add get_object_address field.
4611 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4612 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4613 (resolve_dynamic_array): Likewise.
4615 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4617 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4618 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4619 fixed value for records and unions for which some GNAT encodings
4622 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4624 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4625 rewrite to avoid "else if" and "else" constructs. Should be
4626 a no-op in practice.
4628 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4630 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4633 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4636 * eval.c: Update all calls to find_overload_match.
4637 * valarith.c: Likewise.
4638 (value_user_defined_cpp_op, value_user_defined_op): New
4639 argument NOSIDE. Update all callers.
4640 * valops.c (find_overload_match): New argument NOSIDE.
4641 * value.h (find_overload_match): Update signature.
4643 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4645 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4646 'items' methods instead of 'iteritems' method on dictionaries.
4648 2014-08-15 Doug Evans <dje@google.com>
4650 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4653 2014-08-15 Doug Evans <dje@google.com>
4655 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4657 2014-08-15 Doug Evans <dje@google.com>
4659 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4661 2014-08-15 Doug Evans <dje@google.com>
4663 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4666 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4668 * dcache.h: Include target.h, to avoid compile time warnings.
4670 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4672 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4673 frame_info" partial declaration.
4674 * gdbarch.h: Regenerate.
4676 2014-08-15 Yao Qi <yao@codesourcery.com>
4678 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4679 Add parameter 'decode_for_pst_p'. Callers update.
4681 2014-08-13 Yao Qi <yao@codesourcery.com>
4684 * configure.ac: Use local variable 'pos'.
4685 * configure: Regenerated.
4687 2014-08-11 Doug Evans <dje@google.com>
4689 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4690 message, it is redundant with "Reading symbols from ..." message.
4692 2014-08-10 Doug Evans <xdje42@gmail.com>
4694 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4696 2014-08-09 Yao Qi <yao@codesourcery.com>
4699 * remote.c (remote_xfer_partial): Remove dead code.
4701 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4703 * ia64-linux-tdep.c: Include "regset.h".
4704 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4705 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4706 (ia64_linux_supply_fpregset): New function.
4707 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4708 (ia64_linux_regset_from_core_section): New function.
4709 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4714 * m68klinux-tdep.c: Include "regset.h".
4715 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4716 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4717 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4718 (m68k_linux_regset_from_core_section): New function.
4719 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4722 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4724 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4725 function. Move logic to...
4726 (tilegx_linux_regmap): ... this new register map.
4727 (tilegx_linux_regset): Refer to register map, replace supply
4728 method by regcache_supply_regset, and add collect method.
4729 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4730 TILEGX_FIRST_EASY_REGNUM.
4732 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4734 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4735 that calls regcache_supply_regset and handles the EPC register
4736 separately. Move main logic to...
4737 (score7_linux_gregmap): ... this new register map.
4738 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4739 (score7_linux_gregset): Refer to register map. Add collect method.
4740 (score7_linux_regset_from_core_section): Replace
4741 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4742 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4743 (struct regset): Delete unused forward declaraction.
4744 (struct pt_regs): Delete structure definition.
4745 (elf_gregset_t): Delete typedef.
4747 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4749 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4750 (nios2_core_regset): Add collect method.
4752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4754 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4755 platform-independent and don't write to read-only input buffer.
4756 (m32r_linux_collect_gregset): New function.
4757 (m32r_linux_gregset): Add collect method.
4759 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4761 * hppa-linux-tdep.c (greg_map): Rename to...
4762 (hppa_linux_gregmap): ... this. Also convert to
4763 regcache_map_entry format.
4764 (hppa_linux_supply_regset): Delete function.
4765 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4766 (hppa_linux_fpregmap): ... this new register map.
4767 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4768 register map, replace supply method by regcache_supply_regset, and
4769 add collect method regcache_collect_regset.
4771 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4773 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4774 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4775 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4776 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4777 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4778 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4779 (frv_linux_supply_gregset): Replace main logic by call to
4780 regcache_supply_regset, but keep clearing gr32-gr63.
4781 (frv_linux_supply_fpregset): Delete function.
4782 (frv_linux_gregset): Refer to appropriate register map and add
4783 regcache_collect_regset as the collect method.
4784 (frv_linux_fpregset): Likewise. Also exchange the supply method
4785 by regcache_supply_regset.
4787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4789 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4790 by call to alpha_supply_int_regs.
4791 (alpha_linux_collect_gregset): New function.
4792 (alpha_linux_supply_fpregset): Replace logic by call to
4793 alpha_supply_fp_regs.
4794 (alpha_linux_collect_fpregset): New function.
4795 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4797 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4799 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4800 by call to regcache_collect_regset.
4801 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4802 instead of aarch64_linux_supply_gregset/_fpregset.
4803 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4804 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4805 header file instead.
4806 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4807 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4808 functions. Move logic to ...
4809 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4811 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4812 refer to new register maps, replace *_regset_from_core by
4813 regcache_supply_regset, and also use regcache_collect_regset.
4814 * aarch64-linux-tdep.h: Include "regset.h".
4815 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4817 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4818 macros, moved from C source file.
4819 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4820 variable declarations.
4822 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4824 * s390-linux-nat.c: Include "regset.h".
4825 (regmap_gregset): Delete macro.
4826 (s390_64_regmap_gregset): New register map for
4827 regcache_supply/_collect_regset.
4828 (s390_64_gregset): New regset.
4829 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4830 (regmap_fpregset): Delete macro.
4831 (s390_native_supply, s390_native_collect): Delete functions.
4832 (supply_gregset, fill_gregset): Replace s390-specific regmap
4833 handling by a call to regcache_supply/_collect_regset.
4834 (supply_fpregset, fill_fpregset): Call regcache_supply/
4835 _collect_regset instead of s390_native_supply/_collect.
4836 (fetch_regset, store_regset): Likewise. Also change the last
4837 parameter to a regset instead of a regmap.
4838 (s390_linux_fetch_inferior_registers)
4839 (390_linux_store_inferior_registers): Adjust last parameter in
4840 calls to fetch_regset and store_regset.
4841 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4842 (s390_gregmap): ... this. Also make static const and convert to
4843 regcache_map_entry format.
4844 (s390x_regmap_gregset): Delete.
4845 (s390_regmap_fpregset): Rename to...
4846 (s390_fpregmap): ... this. Make static const and convert to
4847 regcache_map_entry format.
4848 (s390_regmap_upper, s390_regmap_last_break)
4849 (s390x_regmap_last_break, s390_regmap_system_call)
4850 (s390_regmap_tdb): Likewise.
4851 (s390_supply_regset, s390_collect_regset): Remove functions.
4852 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4854 (s390_gregset, s390_fpregset, s390_upper_regset)
4855 (s390_last_break_regset, s390x_last_break_regset)
4856 (s390_system_call_regset, s390_tdb_regset): Make global and
4857 replace s390_supply/_collect_regset by regcache_supply/
4859 (s390x_gregset): Delete.
4860 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4861 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4862 (s390_regmap_fpregset, s390_regmap_last_break)
4863 (s390x_regmap_last_break, s390_regmap_system_call)
4864 (s390_regmap_tdb): Delete global variable declarations.
4865 (s390_gregset, s390_fpregset, s390_last_break_regset)
4866 (s390x_last_break_regset, s390_system_call_regset)
4867 (s390_tdb_regset): New global variable declarations.
4869 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4871 * regcache.c: Include "regset.h".
4872 (regcache_transfer_regset): New local function.
4873 (regcache_supply_regset, regcache_collect_regset): New functions.
4874 * regcache.h (struct regcache_map_entry): New structure.
4875 (REGCACHE_MAP_SKIP): New enum value.
4876 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4878 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4880 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4881 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4882 (ppc_linux_collect_gregset ): Likewise.
4883 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4884 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4885 (ppc_collect_vrregset): Likewise.
4886 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4889 2014-08-07 Yao Qi <yao@codesourcery.com>
4891 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4892 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4893 * remote.c (remote_read_bytes): Likewise.
4895 2014-08-07 Yao Qi <yao@codesourcery.com>
4897 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4899 2014-08-07 Yao Qi <yao@codesourcery.com>
4902 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4903 TARGET_XFER_OK instead of 0.
4905 2014-08-07 Gary Benson <gbenson@redhat.com>
4907 * common/common-defs.h: Include errno.h.
4908 * defs.h: Do not include errno.h.
4909 * ada-typeprint.c: Likewise.
4910 * c-typeprint.c: Likewise.
4911 * core-regset.c: Likewise.
4912 * corefile.c: Likewise.
4913 * corelow.c: Likewise.
4914 * event-loop.c: Likewise.
4915 * f-typeprint.c: Likewise.
4916 * gnu-nat.c: Likewise.
4917 * go32-nat.c: Likewise.
4918 * i386gnu-nat.c: Likewise.
4919 * m2-typeprint.c: Likewise.
4920 * nat/linux-btrace.c: Likewise.
4921 * p-typeprint.c: Likewise.
4922 * procfs.c: Likewise.
4923 * remote-sim.c: Likewise.
4924 * rs6000-nat.c: Likewise.
4925 * target.c: Likewise.
4926 * typeprint.c: Likewise.
4927 * ui-file.c: Likewise.
4928 * valops.c: Likewise.
4929 * valprint.c: Likewise.
4931 2014-08-07 Gary Benson <gbenson@redhat.com>
4933 * common/common-defs.h: Include string.h.
4934 * aarch64-tdep.c: Do not include string.h.
4935 * ada-exp.y: Likewise.
4936 * ada-lang.c: Likewise.
4937 * ada-lex.l: Likewise.
4938 * ada-typeprint.c: Likewise.
4939 * ada-valprint.c: Likewise.
4940 * aix-thread.c: Likewise.
4941 * alpha-linux-tdep.c: Likewise.
4942 * alpha-mdebug-tdep.c: Likewise.
4943 * alpha-nat.c: Likewise.
4944 * alpha-osf1-tdep.c: Likewise.
4945 * alpha-tdep.c: Likewise.
4946 * alphanbsd-tdep.c: Likewise.
4947 * amd64-dicos-tdep.c: Likewise.
4948 * amd64-linux-tdep.c: Likewise.
4949 * amd64-nat.c: Likewise.
4950 * amd64-sol2-tdep.c: Likewise.
4951 * amd64fbsd-tdep.c: Likewise.
4952 * amd64obsd-tdep.c: Likewise.
4953 * arch-utils.c: Likewise.
4954 * arm-linux-nat.c: Likewise.
4955 * arm-linux-tdep.c: Likewise.
4956 * arm-tdep.c: Likewise.
4957 * arm-wince-tdep.c: Likewise.
4958 * armbsd-tdep.c: Likewise.
4959 * armnbsd-nat.c: Likewise.
4960 * armnbsd-tdep.c: Likewise.
4961 * armobsd-tdep.c: Likewise.
4962 * avr-tdep.c: Likewise.
4963 * ax-gdb.c: Likewise.
4964 * ax-general.c: Likewise.
4965 * bcache.c: Likewise.
4966 * bfin-tdep.c: Likewise.
4967 * breakpoint.c: Likewise.
4968 * build-id.c: Likewise.
4969 * buildsym.c: Likewise.
4970 * c-exp.y: Likewise.
4971 * c-lang.c: Likewise.
4972 * c-typeprint.c: Likewise.
4973 * c-valprint.c: Likewise.
4974 * charset.c: Likewise.
4975 * cli-out.c: Likewise.
4976 * cli/cli-cmds.c: Likewise.
4977 * cli/cli-decode.c: Likewise.
4978 * cli/cli-dump.c: Likewise.
4979 * cli/cli-interp.c: Likewise.
4980 * cli/cli-logging.c: Likewise.
4981 * cli/cli-script.c: Likewise.
4982 * cli/cli-setshow.c: Likewise.
4983 * cli/cli-utils.c: Likewise.
4984 * coffread.c: Likewise.
4985 * common/agent.c: Likewise.
4986 * common/buffer.c: Likewise.
4987 * common/buffer.h: Likewise.
4988 * common/common-utils.c: Likewise.
4989 * common/filestuff.c: Likewise.
4990 * common/filestuff.c: Likewise.
4991 * common/format.c: Likewise.
4992 * common/print-utils.c: Likewise.
4993 * common/rsp-low.c: Likewise.
4994 * common/signals.c: Likewise.
4995 * common/vec.h: Likewise.
4996 * common/xml-utils.c: Likewise.
4997 * core-regset.c: Likewise.
4998 * corefile.c: Likewise.
4999 * corelow.c: Likewise.
5000 * cp-abi.c: Likewise.
5001 * cp-name-parser.y: Likewise.
5002 * cp-support.c: Likewise.
5003 * cp-valprint.c: Likewise.
5004 * cris-tdep.c: Likewise.
5005 * d-exp.y: Likewise.
5006 * darwin-nat.c: Likewise.
5007 * dbxread.c: Likewise.
5008 * dcache.c: Likewise.
5009 * demangle.c: Likewise.
5010 * dicos-tdep.c: Likewise.
5011 * disasm.c: Likewise.
5012 * doublest.c: Likewise.
5013 * dsrec.c: Likewise.
5014 * dummy-frame.c: Likewise.
5015 * dwarf2-frame.c: Likewise.
5016 * dwarf2loc.c: Likewise.
5017 * dwarf2read.c: Likewise.
5018 * elfread.c: Likewise.
5019 * environ.c: Likewise.
5021 * event-loop.c: Likewise.
5022 * exceptions.c: Likewise.
5024 * expprint.c: Likewise.
5025 * f-exp.y: Likewise.
5026 * f-lang.c: Likewise.
5027 * f-typeprint.c: Likewise.
5028 * f-valprint.c: Likewise.
5029 * fbsd-nat.c: Likewise.
5030 * findcmd.c: Likewise.
5031 * findvar.c: Likewise.
5032 * fork-child.c: Likewise.
5033 * frame.c: Likewise.
5034 * frv-linux-tdep.c: Likewise.
5035 * frv-tdep.c: Likewise.
5037 * gdb_bfd.c: Likewise.
5038 * gdbarch.c: Likewise.
5039 * gdbarch.sh: Likewise.
5040 * gdbtypes.c: Likewise.
5041 * gnu-nat.c: Likewise.
5042 * gnu-v2-abi.c: Likewise.
5043 * gnu-v3-abi.c: Likewise.
5044 * go-exp.y: Likewise.
5045 * go-lang.c: Likewise.
5046 * go32-nat.c: Likewise.
5047 * guile/guile.c: Likewise.
5048 * guile/scm-auto-load.c: Likewise.
5049 * hppa-hpux-tdep.c: Likewise.
5050 * hppa-linux-nat.c: Likewise.
5051 * hppanbsd-tdep.c: Likewise.
5052 * hppaobsd-tdep.c: Likewise.
5053 * i386-cygwin-tdep.c: Likewise.
5054 * i386-dicos-tdep.c: Likewise.
5055 * i386-linux-tdep.c: Likewise.
5056 * i386-nto-tdep.c: Likewise.
5057 * i386-sol2-tdep.c: Likewise.
5058 * i386-tdep.c: Likewise.
5059 * i386bsd-tdep.c: Likewise.
5060 * i386gnu-nat.c: Likewise.
5061 * i386nbsd-tdep.c: Likewise.
5062 * i386obsd-tdep.c: Likewise.
5063 * i387-tdep.c: Likewise.
5064 * ia64-libunwind-tdep.c: Likewise.
5065 * ia64-linux-nat.c: Likewise.
5066 * inf-child.c: Likewise.
5067 * inf-ptrace.c: Likewise.
5068 * inf-ttrace.c: Likewise.
5069 * infcall.c: Likewise.
5070 * infcmd.c: Likewise.
5071 * inflow.c: Likewise.
5072 * infrun.c: Likewise.
5073 * interps.c: Likewise.
5074 * iq2000-tdep.c: Likewise.
5075 * irix5-nat.c: Likewise.
5076 * jv-exp.y: Likewise.
5077 * jv-lang.c: Likewise.
5078 * jv-typeprint.c: Likewise.
5079 * jv-valprint.c: Likewise.
5080 * language.c: Likewise.
5081 * linux-fork.c: Likewise.
5082 * linux-nat.c: Likewise.
5083 * lm32-tdep.c: Likewise.
5084 * m2-exp.y: Likewise.
5085 * m2-typeprint.c: Likewise.
5086 * m32c-tdep.c: Likewise.
5087 * m32r-linux-nat.c: Likewise.
5088 * m32r-linux-tdep.c: Likewise.
5089 * m32r-rom.c: Likewise.
5090 * m32r-tdep.c: Likewise.
5091 * m68hc11-tdep.c: Likewise.
5092 * m68k-tdep.c: Likewise.
5093 * m68kbsd-tdep.c: Likewise.
5094 * m68klinux-nat.c: Likewise.
5095 * m68klinux-tdep.c: Likewise.
5096 * m88k-tdep.c: Likewise.
5097 * machoread.c: Likewise.
5098 * macrocmd.c: Likewise.
5100 * mdebugread.c: Likewise.
5101 * mem-break.c: Likewise.
5102 * memattr.c: Likewise.
5103 * memory-map.c: Likewise.
5104 * mep-tdep.c: Likewise.
5105 * mi/mi-cmd-break.c: Likewise.
5106 * mi/mi-cmd-disas.c: Likewise.
5107 * mi/mi-cmd-env.c: Likewise.
5108 * mi/mi-cmd-stack.c: Likewise.
5109 * mi/mi-cmd-var.c: Likewise.
5110 * mi/mi-cmds.c: Likewise.
5111 * mi/mi-console.c: Likewise.
5112 * mi/mi-getopt.c: Likewise.
5113 * mi/mi-interp.c: Likewise.
5114 * mi/mi-main.c: Likewise.
5115 * mi/mi-parse.c: Likewise.
5116 * microblaze-rom.c: Likewise.
5117 * microblaze-tdep.c: Likewise.
5118 * mingw-hdep.c: Likewise.
5119 * minidebug.c: Likewise.
5120 * minsyms.c: Likewise.
5121 * mips-irix-tdep.c: Likewise.
5122 * mips-linux-tdep.c: Likewise.
5123 * mips-tdep.c: Likewise.
5124 * mips64obsd-tdep.c: Likewise.
5125 * mipsnbsd-tdep.c: Likewise.
5126 * mipsread.c: Likewise.
5127 * mn10300-linux-tdep.c: Likewise.
5128 * mn10300-tdep.c: Likewise.
5129 * monitor.c: Likewise.
5130 * moxie-tdep.c: Likewise.
5131 * mt-tdep.c: Likewise.
5132 * nat/linux-btrace.c: Likewise.
5133 * nat/linux-osdata.c: Likewise.
5134 * nat/linux-procfs.c: Likewise.
5135 * nat/linux-ptrace.c: Likewise.
5136 * nat/linux-waitpid.c: Likewise.
5137 * nbsd-tdep.c: Likewise.
5138 * nios2-linux-tdep.c: Likewise.
5139 * nto-procfs.c: Likewise.
5140 * nto-tdep.c: Likewise.
5141 * objc-lang.c: Likewise.
5142 * objfiles.c: Likewise.
5143 * opencl-lang.c: Likewise.
5144 * osabi.c: Likewise.
5145 * osdata.c: Likewise.
5146 * p-exp.y: Likewise.
5147 * p-lang.c: Likewise.
5148 * p-typeprint.c: Likewise.
5149 * parse.c: Likewise.
5150 * posix-hdep.c: Likewise.
5151 * ppc-linux-nat.c: Likewise.
5152 * ppc-sysv-tdep.c: Likewise.
5153 * ppcfbsd-tdep.c: Likewise.
5154 * ppcnbsd-tdep.c: Likewise.
5155 * ppcobsd-tdep.c: Likewise.
5156 * printcmd.c: Likewise.
5157 * procfs.c: Likewise.
5158 * prologue-value.c: Likewise.
5159 * python/py-auto-load.c: Likewise.
5160 * python/py-gdb-readline.c: Likewise.
5161 * ravenscar-thread.c: Likewise.
5162 * regcache.c: Likewise.
5163 * registry.c: Likewise.
5164 * remote-fileio.c: Likewise.
5165 * remote-m32r-sdi.c: Likewise.
5166 * remote-mips.c: Likewise.
5167 * remote-notif.c: Likewise.
5168 * remote-sim.c: Likewise.
5169 * remote.c: Likewise.
5170 * reverse.c: Likewise.
5171 * rs6000-aix-tdep.c: Likewise.
5172 * ser-base.c: Likewise.
5173 * ser-go32.c: Likewise.
5174 * ser-mingw.c: Likewise.
5175 * ser-pipe.c: Likewise.
5176 * ser-tcp.c: Likewise.
5177 * ser-unix.c: Likewise.
5178 * serial.c: Likewise.
5179 * sh-tdep.c: Likewise.
5180 * sh64-tdep.c: Likewise.
5181 * shnbsd-tdep.c: Likewise.
5183 * sol-thread.c: Likewise.
5184 * solib-dsbt.c: Likewise.
5185 * solib-frv.c: Likewise.
5186 * solib-osf.c: Likewise.
5187 * solib-som.c: Likewise.
5188 * solib-spu.c: Likewise.
5189 * solib-target.c: Likewise.
5190 * solib.c: Likewise.
5191 * somread.c: Likewise.
5192 * source.c: Likewise.
5193 * sparc-nat.c: Likewise.
5194 * sparc-sol2-tdep.c: Likewise.
5195 * sparc-tdep.c: Likewise.
5196 * sparc64-tdep.c: Likewise.
5197 * sparc64fbsd-tdep.c: Likewise.
5198 * sparc64nbsd-tdep.c: Likewise.
5199 * sparcnbsd-tdep.c: Likewise.
5200 * spu-linux-nat.c: Likewise.
5201 * spu-multiarch.c: Likewise.
5202 * spu-tdep.c: Likewise.
5203 * stabsread.c: Likewise.
5204 * stack.c: Likewise.
5205 * std-regs.c: Likewise.
5206 * symfile.c: Likewise.
5207 * symmisc.c: Likewise.
5208 * symtab.c: Likewise.
5209 * target.c: Likewise.
5210 * thread.c: Likewise.
5211 * tilegx-linux-nat.c: Likewise.
5212 * tilegx-tdep.c: Likewise.
5214 * tracepoint.c: Likewise.
5215 * tui/tui-command.c: Likewise.
5216 * tui/tui-data.c: Likewise.
5217 * tui/tui-disasm.c: Likewise.
5218 * tui/tui-file.c: Likewise.
5219 * tui/tui-layout.c: Likewise.
5220 * tui/tui-out.c: Likewise.
5221 * tui/tui-regs.c: Likewise.
5222 * tui/tui-source.c: Likewise.
5223 * tui/tui-stack.c: Likewise.
5224 * tui/tui-win.c: Likewise.
5225 * tui/tui-windata.c: Likewise.
5226 * tui/tui-winsource.c: Likewise.
5227 * typeprint.c: Likewise.
5228 * ui-file.c: Likewise.
5229 * ui-out.c: Likewise.
5230 * user-regs.c: Likewise.
5231 * utils.c: Likewise.
5232 * v850-tdep.c: Likewise.
5233 * valarith.c: Likewise.
5234 * valops.c: Likewise.
5235 * valprint.c: Likewise.
5236 * value.c: Likewise.
5237 * varobj.c: Likewise.
5238 * vax-tdep.c: Likewise.
5239 * vaxnbsd-tdep.c: Likewise.
5240 * vaxobsd-tdep.c: Likewise.
5241 * windows-nat.c: Likewise.
5242 * xcoffread.c: Likewise.
5243 * xml-support.c: Likewise.
5244 * xstormy16-tdep.c: Likewise.
5245 * xtensa-linux-nat.c: Likewise.
5247 2014-08-07 Gary Benson <gbenson@redhat.com>
5249 * common/common-defs.h: Include gdb_assert.h.
5250 * aarch64-tdep.c: Do not include gdb_assert.h.
5251 * addrmap.c: Likewise.
5252 * aix-thread.c: Likewise.
5253 * alpha-linux-tdep.c: Likewise.
5254 * alpha-mdebug-tdep.c: Likewise.
5255 * alphanbsd-tdep.c: Likewise.
5256 * amd64-nat.c: Likewise.
5257 * amd64-tdep.c: Likewise.
5258 * amd64bsd-nat.c: Likewise.
5259 * amd64fbsd-nat.c: Likewise.
5260 * amd64fbsd-tdep.c: Likewise.
5261 * amd64nbsd-nat.c: Likewise.
5262 * amd64nbsd-tdep.c: Likewise.
5263 * amd64obsd-nat.c: Likewise.
5264 * amd64obsd-tdep.c: Likewise.
5265 * arch-utils.c: Likewise.
5266 * arm-tdep.c: Likewise.
5267 * armbsd-tdep.c: Likewise.
5269 * bcache.c: Likewise.
5270 * bfin-tdep.c: Likewise.
5271 * blockframe.c: Likewise.
5272 * breakpoint.c: Likewise.
5273 * bsd-kvm.c: Likewise.
5274 * bsd-uthread.c: Likewise.
5275 * buildsym.c: Likewise.
5276 * c-exp.y: Likewise.
5277 * c-lang.c: Likewise.
5278 * charset.c: Likewise.
5279 * cleanups.c: Likewise.
5280 * cli-out.c: Likewise.
5281 * cli/cli-decode.c: Likewise.
5282 * cli/cli-dump.c: Likewise.
5283 * cli/cli-logging.c: Likewise.
5284 * cli/cli-script.c: Likewise.
5285 * cli/cli-utils.c: Likewise.
5286 * coffread.c: Likewise.
5287 * common/common-utils.c: Likewise.
5288 * common/queue.h: Likewise.
5289 * common/signals.c: Likewise.
5290 * common/vec.h: Likewise.
5291 * complaints.c: Likewise.
5292 * completer.c: Likewise.
5293 * corelow.c: Likewise.
5294 * cp-abi.c: Likewise.
5295 * cp-name-parser.y: Likewise.
5296 * cp-namespace.c: Likewise.
5297 * cp-support.c: Likewise.
5298 * cris-tdep.c: Likewise.
5299 * dbxread.c: Likewise.
5300 * dictionary.c: Likewise.
5301 * doublest.c: Likewise.
5302 * dsrec.c: Likewise.
5303 * dummy-frame.c: Likewise.
5304 * dwarf2-frame-tailcall.c: Likewise.
5305 * dwarf2-frame.c: Likewise.
5306 * dwarf2expr.c: Likewise.
5307 * dwarf2loc.c: Likewise.
5308 * dwarf2read.c: Likewise.
5310 * event-loop.c: Likewise.
5311 * exceptions.c: Likewise.
5312 * expprint.c: Likewise.
5313 * f-valprint.c: Likewise.
5314 * fbsd-nat.c: Likewise.
5315 * findvar.c: Likewise.
5316 * frame-unwind.c: Likewise.
5317 * frame.c: Likewise.
5318 * frv-tdep.c: Likewise.
5319 * gcore.c: Likewise.
5320 * gdb-dlfcn.c: Likewise.
5321 * gdb_bfd.c: Likewise.
5322 * gdbarch.c: Likewise.
5323 * gdbarch.sh: Likewise.
5324 * gdbtypes.c: Likewise.
5325 * gnu-nat.c: Likewise.
5326 * gnu-v3-abi.c: Likewise.
5327 * go-lang.c: Likewise.
5328 * guile/scm-exception.c: Likewise.
5329 * guile/scm-gsmob.c: Likewise.
5330 * guile/scm-lazy-string.c: Likewise.
5331 * guile/scm-math.c: Likewise.
5332 * guile/scm-pretty-print.c: Likewise.
5333 * guile/scm-safe-call.c: Likewise.
5334 * guile/scm-utils.c: Likewise.
5335 * guile/scm-value.c: Likewise.
5336 * h8300-tdep.c: Likewise.
5337 * hppa-hpux-nat.c: Likewise.
5338 * hppa-tdep.c: Likewise.
5339 * hppanbsd-tdep.c: Likewise.
5340 * hppaobsd-tdep.c: Likewise.
5341 * i386-darwin-nat.c: Likewise.
5342 * i386-darwin-tdep.c: Likewise.
5343 * i386-nto-tdep.c: Likewise.
5344 * i386-tdep.c: Likewise.
5345 * i386bsd-nat.c: Likewise.
5346 * i386fbsd-tdep.c: Likewise.
5347 * i386gnu-nat.c: Likewise.
5348 * i386nbsd-tdep.c: Likewise.
5349 * i386obsd-tdep.c: Likewise.
5350 * i387-tdep.c: Likewise.
5351 * ia64-libunwind-tdep.c: Likewise.
5352 * ia64-tdep.c: Likewise.
5353 * inf-ptrace.c: Likewise.
5354 * inf-ttrace.c: Likewise.
5355 * infcall.c: Likewise.
5356 * infcmd.c: Likewise.
5357 * infrun.c: Likewise.
5358 * inline-frame.c: Likewise.
5359 * interps.c: Likewise.
5360 * jv-lang.c: Likewise.
5361 * jv-typeprint.c: Likewise.
5362 * linux-fork.c: Likewise.
5363 * linux-nat.c: Likewise.
5364 * linux-thread-db.c: Likewise.
5365 * m32c-tdep.c: Likewise.
5366 * m32r-linux-nat.c: Likewise.
5367 * m32r-tdep.c: Likewise.
5368 * m68k-tdep.c: Likewise.
5369 * m68kbsd-nat.c: Likewise.
5370 * m68kbsd-tdep.c: Likewise.
5371 * m88k-tdep.c: Likewise.
5372 * machoread.c: Likewise.
5373 * macroexp.c: Likewise.
5374 * macrotab.c: Likewise.
5375 * maint.c: Likewise.
5376 * mdebugread.c: Likewise.
5377 * memory-map.c: Likewise.
5378 * mep-tdep.c: Likewise.
5379 * mi/mi-common.c: Likewise.
5380 * microblaze-tdep.c: Likewise.
5381 * mingw-hdep.c: Likewise.
5382 * mips-linux-nat.c: Likewise.
5383 * mips-linux-tdep.c: Likewise.
5384 * mips-tdep.c: Likewise.
5385 * mips64obsd-tdep.c: Likewise.
5386 * mipsnbsd-tdep.c: Likewise.
5387 * mn10300-linux-tdep.c: Likewise.
5388 * mn10300-tdep.c: Likewise.
5389 * moxie-tdep.c: Likewise.
5390 * mt-tdep.c: Likewise.
5391 * nat/linux-btrace.c: Likewise.
5392 * nat/linux-osdata.c: Likewise.
5393 * nat/linux-ptrace.c: Likewise.
5394 * nat/mips-linux-watch.c: Likewise.
5395 * nios2-linux-tdep.c: Likewise.
5396 * nios2-tdep.c: Likewise.
5397 * objc-lang.c: Likewise.
5398 * objfiles.c: Likewise.
5399 * obsd-nat.c: Likewise.
5400 * opencl-lang.c: Likewise.
5401 * osabi.c: Likewise.
5402 * parse.c: Likewise.
5403 * ppc-linux-nat.c: Likewise.
5404 * ppc-sysv-tdep.c: Likewise.
5405 * ppcfbsd-nat.c: Likewise.
5406 * ppcfbsd-tdep.c: Likewise.
5407 * ppcnbsd-nat.c: Likewise.
5408 * ppcnbsd-tdep.c: Likewise.
5409 * ppcobsd-nat.c: Likewise.
5410 * ppcobsd-tdep.c: Likewise.
5411 * printcmd.c: Likewise.
5412 * procfs.c: Likewise.
5413 * prologue-value.c: Likewise.
5414 * psymtab.c: Likewise.
5415 * python/py-lazy-string.c: Likewise.
5416 * python/py-value.c: Likewise.
5417 * regcache.c: Likewise.
5418 * reggroups.c: Likewise.
5419 * registry.c: Likewise.
5420 * remote-sim.c: Likewise.
5421 * remote.c: Likewise.
5422 * rs6000-aix-tdep.c: Likewise.
5423 * rs6000-tdep.c: Likewise.
5424 * s390-linux-tdep.c: Likewise.
5425 * score-tdep.c: Likewise.
5426 * ser-base.c: Likewise.
5427 * ser-mingw.c: Likewise.
5428 * sh-tdep.c: Likewise.
5429 * sh64-tdep.c: Likewise.
5430 * solib-darwin.c: Likewise.
5431 * solib-spu.c: Likewise.
5432 * solib-svr4.c: Likewise.
5433 * source.c: Likewise.
5434 * sparc-nat.c: Likewise.
5435 * sparc-sol2-tdep.c: Likewise.
5436 * sparc-tdep.c: Likewise.
5437 * sparc64-sol2-tdep.c: Likewise.
5438 * sparc64-tdep.c: Likewise.
5439 * sparc64fbsd-tdep.c: Likewise.
5440 * sparc64nbsd-tdep.c: Likewise.
5441 * sparc64obsd-tdep.c: Likewise.
5442 * sparcnbsd-tdep.c: Likewise.
5443 * sparcobsd-tdep.c: Likewise.
5444 * spu-multiarch.c: Likewise.
5445 * spu-tdep.c: Likewise.
5446 * stabsread.c: Likewise.
5447 * stack.c: Likewise.
5448 * symfile.c: Likewise.
5449 * symtab.c: Likewise.
5450 * target-descriptions.c: Likewise.
5451 * target-memory.c: Likewise.
5452 * target.c: Likewise.
5453 * tic6x-linux-tdep.c: Likewise.
5454 * tic6x-tdep.c: Likewise.
5455 * tilegx-linux-nat.c: Likewise.
5456 * tilegx-tdep.c: Likewise.
5458 * tramp-frame.c: Likewise.
5459 * tui/tui-out.c: Likewise.
5460 * tui/tui-winsource.c: Likewise.
5461 * ui-out.c: Likewise.
5462 * user-regs.c: Likewise.
5463 * utils.c: Likewise.
5464 * v850-tdep.c: Likewise.
5465 * valops.c: Likewise.
5466 * value.c: Likewise.
5467 * varobj.c: Likewise.
5468 * vax-nat.c: Likewise.
5469 * xml-syscall.c: Likewise.
5470 * xml-tdesc.c: Likewise.
5471 * xstormy16-tdep.c: Likewise.
5472 * xtensa-linux-nat.c: Likewise.
5473 * xtensa-tdep.c: Likewise.
5475 2014-08-07 Gary Benson <gbenson@redhat.com>
5477 * common/common-defs.h: Include common-utils.h.
5478 * defs.h: Do not include common-utils.h.
5479 * common/gdb_assert.h: Likewise.
5480 * darwin-nat.h: Likewise.
5481 * nat/linux-btrace.c: Likewise.
5482 * target/waitstatus.h: Likewise.
5484 2014-08-07 Gary Benson <gbenson@redhat.com>
5486 * common/common-defs.h: Include ptid.h.
5487 * defs.h: Do not include ptid.h.
5488 * inferior.h: Likewise.
5489 * infrun.h: Likewise.
5490 * nat/linux-btrace.h: Likewise.
5491 * nat/linux-osdata.h: Likewise.
5492 * target/waitstatus.h: Likewise.
5494 2014-08-07 Gary Benson <gbenson@redhat.com>
5496 * common/common-defs.h: Include gdb_locale.h.
5497 * defs.h: Do not include gdb_locale.h.
5499 2014-08-07 Gary Benson <gbenson@redhat.com>
5501 * common/common-defs.h: Include gdb/signals.h.
5502 * defs.h: Do not include gdb/signals.h.
5504 2014-08-07 Gary Benson <gbenson@redhat.com>
5506 * common/common-defs.h: Include pathmax.h.
5507 * defs.h: Do not include pathmax.h.
5509 2014-08-07 Gary Benson <gbenson@redhat.com>
5511 * common/common-defs.h: Include libiberty.h.
5512 * defs.h: Do not include libiberty.h.
5513 * common/queue.h: Likewise.
5514 * cp-name-parser.y: Likewise.
5515 * mi/mi-cmd-catch.c: Likewise.
5516 * python/python.c: Likewise.
5518 2014-08-07 Gary Benson <gbenson@redhat.com>
5520 * common/common-defs.h: Include ansidecl.h.
5521 * defs.h: Do not include ansidecl.h.
5522 * common/buffer.h: Likewise.
5523 * common/common-utils.h: Likewise.
5525 2014-08-07 Gary Benson <gbenson@redhat.com>
5527 * common/common-defs.h: Include stddef.h.
5528 * defs.h: Do not include stddef.h.
5529 * common/common-utils.h: Likewise.
5530 * amd64fbsd-nat.c: Likewise.
5531 * bcache.c: Likewise.
5532 * charset.c: Likewise.
5533 * common/buffer.h: Likewise.
5534 * common/vec.h: Likewise.
5535 * i386bsd-nat.c: Likewise.
5536 * nat/linux-btrace.h: Likewise.
5537 * ppcfbsd-nat.c: Likewise.
5538 * ppcnbsd-tdep.h: Likewise.
5539 * ppcobsd-nat.c: Likewise.
5540 * ppcobsd-tdep.h: Likewise.
5541 * python/py-gdb-readline.c: Likewise.
5543 2014-08-07 Gary Benson <gbenson@redhat.com>
5545 * common/common-defs.h: Include stdarg.h.
5546 * defs.h: Do not include stdarg.h.
5547 * ada-lang.c: Likewise.
5548 * common/common-utils.h: Likewise.
5549 * guile/scm-string.c: Likewise.
5550 * guile/scm-utils.c: Likewise.
5551 * m32c-tdep.c: Likewise.
5553 2014-08-07 Gary Benson <gbenson@redhat.com>
5555 * common/common-defs.h: Include stdlib.h.
5556 * defs.h: Do not include stdlib.h.
5557 * addrmap.c: Likewise.
5558 * bcache.c: Likewise.
5559 * common/buffer.c: Likewise.
5560 * common/common-utils.c: Likewise.
5561 * cp-name-parser.y: Likewise.
5562 * go32-nat.c: Likewise.
5563 * mn10300-linux-tdep.c: Likewise.
5564 * nat/linux-osdata.c: Likewise.
5565 * tui/tui.c: Likewise.
5566 * windows-nat.c: Likewise.
5568 2014-08-07 Gary Benson <gbenson@redhat.com>
5570 * common/common-defs.h: Include stdio.h.
5571 * defs.h: Do not include stdio.h.
5572 * ada-lang.c: Likewise.
5573 * common/buffer.c: Likewise.
5574 * common/common-utils.c: Likewise.
5575 * cp-name-parser.y: Likewise.
5576 * gnu-nat.c: Likewise.
5577 * go32-nat.c: Likewise.
5578 * i386gnu-nat.c: Likewise.
5579 * proc-api.c: Likewise.
5580 * proc-events.c: Likewise.
5581 * proc-flags.c: Likewise.
5582 * proc-why.c: Likewise.
5583 * python/python-internal.h: Likewise.
5584 * target-memory.c: Likewise.
5585 * tui/tui-io.c: Likewise.
5586 * tui/tui.c: Likewise.
5588 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5590 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5591 (scan_dyntag_auxv): Same.
5593 2014-08-06 Yao Qi <yao@codesourcery.com>
5595 * amd64-linux-nat.c: Remove duplicated include
5597 * i386-linux-nat.c: Likewise.
5599 2014-08-06 Yao Qi <yao@codesourcery.com>
5601 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5602 operand" with "Special opcode" in comments.
5604 2014-08-05 Gary Benson <gbenson@redhat.com>
5606 * interps.c (initialize_interps): Remove prototype.
5607 (interpreter_initialized): Remove static global.
5608 (interp_add): Do not call initialize_interps.
5609 (initialize_interps): Remove function.
5611 2014-08-05 Gary Benson <gbenson@redhat.com>
5613 * utils.c (vwarning): Remove spurious va_end.
5615 2014-08-05 Alan Modra <amodra@gmail.com>
5617 * charset.c (convert_between_encodings): Cast result of obstack_base.
5618 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5619 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5620 (read_unwind_info): Use size_t for some locals.
5621 * jit.c (finalize_symtab): Likewise.
5622 * utils.c (hashtab_obstack_allocate): Likewise.
5623 * symmisc.c (print_objfile_statistics): Update format strings.
5625 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5627 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5628 (Changes in GDB 7.8): ... here.
5630 2014-08-04 Tom Tromey <tromey@redhat.com>
5632 * target.c (set_targetdebug): New function.
5633 (initialize_targets): Pass set_targetdebug when creating "set
5636 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5638 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5639 if detecting a variable-sized field that is not the last field.
5640 Fix struct type length computation.
5642 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5644 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5647 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5649 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5650 Remove "+ 8" offset in computation of CHAIN_VMA.
5652 2014-07-31 Doug Evans <dje@google.com>
5654 * inflow.c (child_terminal_inferior): Add comment.
5655 (child_terminal_ours_for_output): Add comment.
5656 (child_terminal_ours): Add comment.
5657 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5658 (linux_nat_terminal_ours): Add comment.
5660 2014-07-31 Gary Benson <gbenson@redhat.com>
5662 * common/btrace-common.h: Do not include defs.h or server.h.
5663 * nat/mips-linux-watch.h: Likewise.
5664 * gdb-dlfcn.h: Do not include defs.h.
5665 * tracefile.h: Likewise.
5667 2014-07-30 Roland McGrath <mcgrathr@google.com>
5669 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5671 2014-07-30 Tom Tromey <tromey@redhat.com>
5673 * bsd-kvm.c (bsd_kvm_open): Constify.
5674 * corelow.c (core_open): Constify.
5675 * ctf.c (ctf_open): Constify.
5676 * dbug-rom.c (dbug_open): Constify.
5677 * exec.c (exec_open): Constify.
5678 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5679 * microblaze-rom.c (picobug_open): Constify.
5680 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5682 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5683 * record-btrace.c (record_btrace_open): Constify.
5684 * record-full.c (record_full_core_open_1, record_full_open_1)
5685 (record_full_open): Constify.
5686 * remote-m32r-sdi.c (m32r_open): Constify.
5687 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5688 (rockhopper_open, lsi_open): Constify.
5689 * remote-sim.c (gdbsim_open): Constify.
5690 * remote.c (remote_open, extended_remote_open, remote_open_1):
5692 * target.h (struct target_ops) <to_open>: Make "arg" const.
5693 * tracefile-tfile.c (tfile_open): Constify.
5695 2014-07-30 Tom Tromey <tromey@redhat.com>
5697 * breakpoint.c (map_breakpoint_numbers): Update.
5698 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5699 (get_number_const): New function.
5700 (get_number): Rewrite using get_number_const.
5701 (init_number_or_range): Make "string" const.
5702 (number_is_in_list): Make "list" const.
5703 * cli/cli-utils.h (get_number_const): Declare.
5704 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5705 (init_number_or_range, number_is_in_list): Update.
5706 * printcmd.c (map_display_numbers): Update.
5707 * value.c (value_from_history_ref): Constify.
5708 * value.h (value_from_history_ref): Update.
5710 2014-07-30 Tom Tromey <tromey@redhat.com>
5712 * corefile.c (hook_type, call_extra_exec_file_hooks)
5713 (specify_exec_file_hook): Constify.
5714 * exec.c (exec_file_attach): Make "filename" const.
5715 * gdbcore.h (deprecated_exec_file_display_hook)
5716 (specify_exec_file_hook, exec_file_attach): Constify.
5717 * main.c (captured_main): Use catch_command_errors_const.
5719 2014-07-30 Tom Tromey <tromey@redhat.com>
5721 * target.c (open_target): New function.
5722 (add_target_with_completer, add_deprecated_target_alias): Use
5723 set_cmd_sfunc, set_cmd_context.
5724 (debug_to_open): Remove.
5725 (setup_target_debug): Update.
5727 2014-07-30 Yao Qi <yao@codesourcery.com>
5729 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5731 * parse.c (exp_iterate): Update comments.
5733 2014-07-30 Gary Benson <gbenson@redhat.com>
5735 * common/common-defs.h: New file.
5736 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5737 * defs.h: Include common-defs.h.
5738 Do not include config.h or build-gnulib/config.h.
5740 2014-07-30 Gary Benson <gbenson@redhat.com>
5742 * common/common-utils.h: Do not include config.h.
5743 * nat/linux-btrace.h: Likewise.
5745 2014-07-30 Gary Benson <gbenson@redhat.com>
5747 * btrace.c: Include defs.h.
5748 * common/ptid.c: Include defs.h or server.h as appropriate.
5749 * nat/mips-linux-watch.c: Likewise.
5751 2014-07-29 Tom Tromey <tromey@redhat.com>
5753 * target.c (target_is_pushed): Simplify.
5755 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5759 2014-07-29 Yao Qi <yao@codesourcery.com>
5762 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5764 2014-07-28 Doug Evans <xdje42@gmail.com>
5767 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5768 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5771 2014-07-28 Will Newton <will.newton@linaro.org>
5773 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5774 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5775 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5776 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5777 (THUMB2_EABI_SYSCALL): Likewise.
5778 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5780 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5781 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5783 2014-07-27 Doug Evans <xdje42@gmail.com>
5785 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5787 2014-07-27 Doug Evans <xdje42@gmail.com>
5789 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5791 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5792 Doug Evans <xdje42@gmail.com>
5795 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5796 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5797 * configure.ac: Try to use guild to compile an scm file, if it fails
5798 then disable guile support.
5799 * configure: Regenerate.
5800 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5802 (GUILE_COMPILED_FILES): New variable.
5803 (GUILE_FILES) Update.
5804 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5805 (stamp-guile): Compile scm files.
5806 * guile/guile.c (boot_guile_support): New function.
5807 (standard_throw_args_p): New function.
5808 (print_standard_throw_error, print_throw_error): New functions.
5809 (handle_boot_error): New function.
5810 (initialize_scheme_side): Rewrite to call boot_guile_support.
5811 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5812 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5814 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5815 Doug Evans <xdje42@gmail.com>
5818 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5819 * guile/lib/gdb/support.scm: New file.
5820 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5821 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5823 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5825 (%assert-type): Ditto, and renamed to assert-type.
5826 (%exception-print-style): Delete.
5828 2014-07-26 Doug Evans <xdje42@gmail.com>
5831 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5832 * configure: Regenerate.
5833 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5835 (PYTHON_FILES): New variable.
5836 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5837 (GUILE_FILES): New variable.
5838 (stamp-python, install-python, uninstall-python): Handle empty
5840 (stamp-guile, install-guile, uninstall-guile): Ditto.
5842 2014-07-26 Doug Evans <xdje42@gmail.com>
5845 * guile/lib/gdb.scm (pretty-printers): Export.
5846 (set-pretty-printers!): Export.
5847 * guile/lib/gdb/printing.scm (gdb module): Update.
5848 (prepend-pretty-printer!, append-pretty-printer!): Update.
5849 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5850 (pretty_printer_list_var): Delete.
5851 (pretty_printer_list): New static global.
5852 (gdbscm_pretty_printers): New function.
5853 (gdbscm_set_pretty_printers_x): New function.
5854 (ppscm_find_pretty_printer_from_gdb): Update.
5855 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5856 (gdbscm_initialize_pretty_printers): Update.
5858 2014-07-26 Doug Evans <xdje42@gmail.com>
5861 * configure.ac: Add check for header gc/gc.h.
5862 Add check for function setenv.
5863 * configure: Regenerate.
5864 * config.in: Regenerate.
5865 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5867 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5869 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5870 variation in gdbarch matching.
5872 2014-07-25 Tom Tromey <tromey@redhat.com>
5874 * exec.c (using_exec_ops): Remove.
5875 (exec_close_1): Update. Remove extraneous block, reindent.
5876 (add_target_sections): Use target_is_pushed.
5878 2014-07-25 Pedro Alves <palves@redhat.com>
5880 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5881 * monitor.c (monitor_create_inferior): Likewise.
5882 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5883 * remote-sim.c (gdbsim_create_inferior): Likewise.
5884 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5885 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5886 * windows-nat.c (do_initial_windows_stuff): Likewise.
5888 2014-07-25 Pedro Alves <palves@redhat.com>
5890 * NEWS: Mention signal passing and "signal" command changes.
5891 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5893 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5895 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5896 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5897 (jump_command): Adjust clear_proceed_status call.
5898 (signal_command): Warn if other thread that are resumed have
5899 signals that will be delivered. Adjust clear_proceed_status call.
5900 (until_next_command, finish_command)
5901 (proceed_after_attach_callback, attach_command_post_wait)
5902 (attach_command): Adjust clear_proceed_status call.
5903 * infrun.c (proceed_after_vfork_done): Likewise.
5904 (proceed_after_attach_callback): Adjust comment.
5905 (clear_proceed_status_thread): Clear stop_signal if not in pass
5907 (clear_proceed_status_callback): Delete.
5908 (clear_proceed_status): New 'step' parameter. Only clear the
5909 proceed status of threads the command being prepared is about to
5911 (proceed): If passed in an explicit signal, override stop_signal
5912 with it. Don't pass the last stop signal to the thread we're
5914 (init_wait_for_inferior): Adjust clear_proceed_status call.
5915 (switch_back_to_stepped_thread): Clear the signal if it should not
5917 * infrun.h (clear_proceed_status): New 'step' parameter.
5918 (user_visible_resume_ptid): Add comment.
5919 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5920 signal is in pass state.
5921 * remote.c (append_pending_thread_resumptions): Likewise.
5922 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5924 2014-07-25 Tom Tromey <tromey@redhat.com>
5926 * target.h (target_stopped_data_address)
5927 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5930 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5932 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5934 (avr_pointer_to_address): Likewise.
5936 2014-07-24 Tom Tromey <tromey@redhat.com>
5938 * monitor.c (compile_pattern): Update.
5939 * target.h (struct target_ops) <to_shortname, to_longname,
5942 2014-07-24 Tom Tromey <tromey@redhat.com>
5944 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5945 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5946 (add_info_alias, add_com): Make "doc" const.
5947 (print_doc_line): Make "str" const.
5948 (delete_cmd): Update.
5949 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5950 (print_doc_line): Update.
5951 * cli/cli-script.c (document_command): Update.
5952 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5953 (add_com, add_info, add_info_alias): Update.
5954 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5955 * python/py-cmd.c (cmdpy_destroyer): Update.
5957 2014-07-24 Tom Tromey <tromey@redhat.com>
5959 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5960 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5961 (help_cmd_list): Constify.
5962 (lookup_cmd): Update.
5963 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5965 (help_cmd_list, apropos_cmd): Update.
5966 * cli/cli-script.c (show_user): Update.
5967 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5968 * cli/cli-setshow.h (cmd_show_list): Update.
5969 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5970 (cmd_show_list): Update.
5971 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5972 * python/py-cmd.c (cmdpy_destroyer): Update.
5974 2014-07-24 Tom Tromey <tromey@redhat.com>
5976 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5977 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5979 * command.h (deprecate_cmd): Update.
5980 * maint.c (maintenance_do_deprecate): Add casts.
5982 2014-07-24 Tom Tromey <tromey@redhat.com>
5984 * cli/cli-decode.c (help_cmd): Make parameter "const".
5985 * cli/cli-decode.h (help_cmd): Update.
5987 2014-07-24 Tom Tromey <tromey@redhat.com>
5989 * stack.c (up_silently_base, down_silently_base): Make argument
5992 2014-07-24 Tom Tromey <tromey@redhat.com>
5994 * solib.c (solib_add): Make "pattern" const.
5995 * solib.h (solib_add): Update.
5997 2014-07-24 Tom Tromey <tromey@redhat.com>
5999 * remote.c (remote_serial_open, print_packet, putpkt)
6000 (putpkt_binary): Constify.
6001 * remote.h (putpkt): Update.
6003 2014-07-24 Tom Tromey <tromey@redhat.com>
6005 * monitor.c (monitor_open): Make "args" const.
6006 * monitor.h (monitor_open): Update.
6008 2014-07-24 Tom Tromey <tromey@redhat.com>
6010 * maint.c (match_bfd_flags): Make "string" const.
6011 (print_bfd_section_info): Remove casts.
6012 (print_objfile_section_info): Make "string" const.
6014 2014-07-24 Tom Tromey <tromey@redhat.com>
6016 * inf-child.c (inf_child_open_target): Make "arg" const.
6017 * inf-child.h (inf_child_open_target): Update.
6019 2014-07-24 Tom Tromey <tromey@redhat.com>
6021 * environ.c (unset_in_environ): Make "var" const.
6022 * environ.h (unset_in_environ): Update.
6024 2014-07-24 Tom Tromey <tromey@redhat.com>
6026 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6028 (scan_filename_with_cleanup): Likewise.
6029 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6030 Make arguments const.
6031 (restore_command): Update.
6033 2014-07-24 Pedro Alves <palves@redhat.com>
6035 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6037 2014-07-24 Tom Tromey <tromey@redhat.com>
6038 Gary Benson <gbenson@redhat.com>
6040 * nat/linux-ptrace.c (additional_flags): New global.
6041 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6042 additional_flags; don't check GDBSERVER.
6043 (linux_ptrace_set_additional_flags): New function.
6044 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6046 * linux-nat.c (_initialize_linux_nat): Call
6047 linux_ptrace_set_additional_flags.
6049 2014-07-24 Tom Tromey <tromey@redhat.com>
6051 * make-target-delegates (munge_type, write_debugmethod): New
6053 (debug_names): New global.
6054 ($TARGET_DEBUG_PRINTER): New global.
6055 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6057 Write debug methods. Generate init_debug_target.
6058 * target-debug.h: New file.
6059 * target-delegates.c: Rebuild.
6060 * target.c: Include target-debug.h.
6061 (debug_target): Hoist definition.
6062 (target_kill, target_get_section_table, target_memory_map)
6063 (target_flash_erase, target_flash_done, target_detach)
6064 (target_disconnect, target_wait, target_resume)
6065 (target_pass_signals, target_program_signals, target_follow_fork)
6066 (target_mourn_inferior, target_search_memory)
6067 (target_thread_address_space, target_close)
6068 (target_find_new_threads, target_core_of_thread)
6069 (target_verify_memory, target_insert_mask_watchpoint)
6070 (target_remove_mask_watchpoint): Remove targetdebug code.
6071 (debug_to_post_attach, debug_to_prepare_to_store)
6072 (debug_to_files_info, debug_to_insert_breakpoint)
6073 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6074 (debug_to_region_ok_for_hw_watchpoint)
6075 (debug_to_can_accel_watchpoint_condition)
6076 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6077 (debug_to_watchpoint_addr_within_range)
6078 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6079 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6080 (debug_to_terminal_init, debug_to_terminal_inferior)
6081 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6082 (debug_to_terminal_save_ours, debug_to_terminal_info)
6083 (debug_to_load, debug_to_post_startup_inferior)
6084 (debug_to_insert_fork_catchpoint)
6085 (debug_to_remove_fork_catchpoint)
6086 (debug_to_insert_vfork_catchpoint)
6087 (debug_to_remove_vfork_catchpoint)
6088 (debug_to_insert_exec_catchpoint)
6089 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6090 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6091 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6092 (setup_target_debug): Call init_debug_target.
6093 * target.h (TARGET_DEBUG_PRINTER): New macro.
6094 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6095 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6097 2014-07-24 Gary Benson <gbenson@redhat.com>
6099 * exceptions.h (throw_vfatal): Renamed to...
6100 (throw_vquit): New declaration.
6101 (throw_quit): Likewise.
6102 * exceptions.c (throw_vfatal): Renamed to...
6103 (throw_vquit): New function.
6104 (throw_quit): Likewise.
6105 (throw_error): Call throw_verror rather than throw_it.
6106 * utils.h (vfatal): Removed.
6108 * utils.c (vfatal): Removed.
6110 (internal_verror): Replaced call to fatal with call to throw_quit.
6111 (quit): Replaced calls to fatal with calls to throw_quit.
6113 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6115 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6118 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6120 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6121 less than zero in conditional expression.
6123 2014-07-23 Tom Tromey <tromey@redhat.com>
6125 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6126 ($INTRO_PART): Don't match whitespace.
6127 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6129 ($METHOD): Add $METHOD_TRAILER.
6131 (scan_target_h): New sub.
6132 Change main loop not to collect state.
6133 * target-delegates.c: Rebuild.
6135 2014-07-23 Gary Benson <gbenson@redhat.com>
6137 * cp-support.c (gdb_demangle): Fix build on systems without
6140 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6142 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6143 for reference entry value target data value.
6145 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6147 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6148 value_available_contents_eq.
6150 2014-07-22 Pedro Alves <palves@redhat.com>
6152 * value.c (allocate_optimized_out_value): Don't mark value as
6155 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6157 * MAINTAINERS (Write After Approval): Update my email address.
6159 2014-07-20 Doug Evans <dje@google.com>
6162 * remote.c (putpkt_binary): Add text to error message.
6164 2014-07-20 Yao Qi <yao@codesourcery.com>
6166 * eval.c: Remove "Chill" from comments.
6167 * gdbtypes.h: Likewise.
6168 * symtab.h: Likewise.
6170 2014-07-20 Yao Qi <yao@codesourcery.com>
6172 * std-operator.def: Update comments to TERNOP_SLICE.
6174 2014-07-20 Yao Qi <yao@codesourcery.com>
6176 * std-operator.def: Remove BINOP_RANGE.
6177 * breakpoint.c (watchpoint_exp_is_const): Update.
6178 * expprint.c (dump_subexp_body_standard): Likewise.
6179 * eval.c (init_array_element): Remove dead code.
6180 (evaluate_subexp_standard): Likewise.
6182 2014-07-20 Yao Qi <yao@codesourcery.com>
6184 * std-operator.def: Remove BINOP_IN.
6185 * breakpoint.c (watchpoint_exp_is_const): Update.
6186 * eval.c (evaluate_subexp_standard): Likewise.
6187 * expprint.c (dump_subexp_body_standard): Likewise.
6189 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6191 * microblaze-tdep.c (microblaze_register_names): Add
6192 the rshr and rslr register names.
6193 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6194 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6195 Use of tdesc_numbered_register. Use of
6196 microblaze_register_g_packet_guesses. Use of
6197 tdesc_use_registers. Use of set_gdbarch_register_type.
6198 (microblaze_register_g_packet_guesses): New.
6199 * microblaze-tdep.h (microblaze_reg_num): Add
6200 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6201 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6202 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6203 * features/microblaze-core.xml: New file.
6204 * features/microblaze-stack-protect.xml: New file.
6205 * features/microblaze-with-stack-protect.c: New file.
6206 * features/microblaze-with-stack-protect.xml: New file.
6207 * features/microblaze.xml: New file.
6208 * features/microblaze.c: New file.
6209 * features/Makefile (microblaze-with-stack-protect): Add
6210 microblaze-with-stack-protect microblaze and microblaze-expedite.
6211 * regformats/microblaze-with-stack-protect.dat: New file.
6212 * regformats/microblaze.dat: New file.
6213 * doc/gdb.texinfo (MicroBlaze Features): Added.
6215 2014-07-18 Tom Tromey <tromey@redhat.com>
6217 * exec.c (exec_ops): Now static.
6218 * exec.h (exec_ops): Don't declare.
6220 2014-07-18 Tom Tromey <tromey@redhat.com>
6222 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6223 to find_target_beneath.
6224 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6225 find_target_beneath.
6226 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6228 2014-07-18 Tom Tromey <tromey@redhat.com>
6231 * utils.c (quit): Use target_supports_terminal_ours.
6232 * target.h (target_supports_terminal_ours): Declare.
6233 * target.c (target_supports_delete_record): Don't check
6234 to_delete_record against NULL.
6235 (target_supports_terminal_ours): New function.
6237 2014-07-18 Tom Tromey <tromey@redhat.com>
6240 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6241 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6242 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6243 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6244 * windows-nat.c (windows_xfer_partial): Always delegate.
6245 * record-btrace.c (record_btrace_xfer_partial): Simplify
6247 (record_btrace_fetch_registers, record_btrace_store_registers)
6248 (record_btrace_prepare_to_store, record_btrace_resume)
6249 (record_btrace_wait, record_btrace_find_new_threads)
6250 (record_btrace_thread_alive): Likewise.
6251 * procfs.c (procfs_xfer_partial): Always delegate.
6252 * corelow.c (core_xfer_partial): Always delegate.
6253 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6255 2014-07-18 Tom Tromey <tromey@redhat.com>
6257 * exec.c (exec_make_note_section): Move earlier.
6259 2014-07-17 Doug Evans <dje@google.com>
6262 * maint.c (count_symtabs_and_blocks): Handle NULL
6263 current_program_space.
6264 (report_command_stats): Check global enabled flag in addition to
6265 recorded enabled flag.
6266 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6268 2014-07-16 Pedro Alves <palves@redhat.com>
6270 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6272 2014-07-16 Tom Tromey <tromey@redhat.com>
6274 * target.h (struct target_ops) <to_delete_record>: Reformat
6277 2014-07-16 Tom Tromey <tromey@redhat.com>
6279 * target-delegates.c: Rebuild.
6281 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6283 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6284 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6285 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6286 (avr_pointer_to_address): Likewise.
6287 (avr_address_class_type_flags): New function.
6288 (avr_address_class_type_flags_to_name): Likewise.
6289 (avr_address_class_name_to_type_flags): Likewise.
6290 (avr_gdbarch_init): Set address_class_type_flags,
6291 address_class_type_flags_to_name and
6292 address_class_name_to_type_flags.
6294 2014-07-15 Pedro Alves <palves@redhat.com>
6296 * linux-nat.c (kill_callback): Save errno and work with saved
6299 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6301 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6303 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6305 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6306 breakpoint support correctly.
6308 2014-07-14 Pedro Alves <palves@redhat.com>
6310 * utils.c (prompt_for_continue): Call target_terminal_ours.
6312 2014-07-14 Pedro Alves <palves@redhat.com>
6314 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6315 catch_errors. Don't re-enable stdin or notify observers where,
6317 (fetch_inferior_event_wrapper): Delete.
6319 2014-07-14 Pedro Alves <palves@redhat.com>
6322 * top.c: Include "inf-loop.h".
6323 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6325 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6327 (gdb_readline_wrapper): Store whether the target is async, and
6330 2014-07-14 Pedro Alves <palves@redhat.com>
6333 * top.c (gdb_readline_wrapper_line): Tweak comment.
6334 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6335 the input handler callback.
6337 2014-07-14 Pedro Alves <palves@redhat.com>
6340 * main.c: Include event-top.h.
6341 (handle_command_errors): New function.
6342 (catch_command_errors, catch_command_errors_const): Use it.
6344 2014-07-14 Pedro Alves <palves@redhat.com>
6346 * exceptions.c (catch_command_errors, catch_command_errors_const):
6348 * exceptions.h (catch_command_errors_ftype)
6349 (catch_command_errors_const_ftype): Moved to main.c.
6350 (catch_command_errors, catch_command_errors_const): Delete
6352 * main.c (catch_command_errors_ftype)
6353 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6354 (catch_command_errors, catch_command_errors_const)): Moved here
6355 from exceptions.c and make static.
6357 2014-07-14 Pedro Alves <palves@redhat.com>
6359 * exceptions.c (print_any_exception): Delete.
6360 (catch_exceptions_with_msg): Use exception_print instead of
6361 print_any_exception.
6362 (catch_errors): Use exception_fprintf instead of
6363 print_any_exception.
6364 (catch_command_errors, catch_command_errors_const): Use
6365 exception_print instead of print_any_exception.
6367 2014-07-14 Pedro Alves <palves@redhat.com>
6369 * infcall.c (run_inferior_call): Set 'sync_execution' while
6370 running the inferior call.
6372 2014-07-14 Pedro Alves <palves@redhat.com>
6374 * value.c (value_contents_equal): Delete function.
6375 * value.h (value_contents_equal): Delete declaration.
6377 2014-07-14 Tom Tromey <tromey@redhat.com>
6380 * gdbtypes.c (is_dynamic_type_internal): New function, from
6382 (is_dynamic_type): Rewrite.
6383 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6384 (resolve_dynamic_struct): Likewise.
6385 (resolve_dynamic_type_internal): New function, from
6386 resolve_dynamic_type.
6387 (resolve_dynamic_type): Rewrite.
6389 2014-07-14 Tom Tromey <tromey@redhat.com>
6391 * target.c (target_require_runnable): Also check record_stratum.
6394 2014-07-11 Yao Qi <yao@codesourcery.com>
6396 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6397 thumb_instruction_restores_sp return true.
6399 2014-07-11 Yao Qi <yao@codesourcery.com>
6401 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6402 (thumb_in_function_epilogue_p): Call
6403 thumb_instruction_restores_sp.
6405 2014-07-11 Yao Qi <yao@codesourcery.com>
6407 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6409 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6411 2014-07-11 Gary Benson <gbenson@redhat.com>
6413 * amd64-linux-nat.c (gdbcore.h): Remove include.
6414 (regset.h): Likewise.
6415 (nat/linux-btrace.h): Likewise.
6416 (btrace.h): Likewise.
6417 (gdb_assert.h): Likewise.
6418 (string.h): Likewise.
6419 (sys/uio.h): Likewise.
6420 (sys/debugreg.h): Likewise.
6421 (sys/syscall.h): Likewise.
6422 (sys/procfs.h): Likewise.
6423 (sys/user.h): Likewise.
6424 (asm/ptrace.h): Likewise.
6425 (i386-nat.h): Likewise.
6426 * i386-linux-nat.c (i386-nat.h): Likewise.
6427 (regset.h): Likewise.
6428 (target.h): Likewise.
6429 (linux-nat.h): Likewise.
6430 (nat/linux-btrace.h): Likewise.
6431 (btrace.h): Likewise.
6432 (gdb_assert.h): Likewise.
6433 (string.h): Likewise.
6434 (sys/uio.h): Likewise.
6435 (sys/user.h): Likewise.
6436 (sys/procfs.h): Likewise.
6437 (sys/reg.h): Likewise.
6438 (sys/debugreg.h): Likewise.
6439 (ORIG_EAX): Remove definition.
6441 2014-07-11 Gary Benson <gbenson@redhat.com>
6443 * i386-linux-nat.h: New file.
6444 * x86-linux-nat.h: Likewise.
6445 * x86-linux-nat.c: Likewise.
6446 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6447 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6448 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6449 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6450 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6451 (PTRACE_SETREGSET): Likewise.
6452 (arch_lwp_info): Now in x86-linux-nat.c.
6453 (have_ptrace_getregset): Now in x86-linux-nat.h.
6454 (x86_linux_dr_get): Now in x86-linux-nat.c.
6455 (x86_linux_dr_set): Likewise.
6456 (x86_linux_dr_get_addr): Likewise.
6457 (x86_linux_dr_get_control): Likewise.
6458 (x86_linux_dr_get_status): Likewise.
6459 (update_debug_registers_callback): Likewise.
6460 (x86_linux_dr_set_control): Likewise.
6461 (x86_linux_dr_set_addr): Likewise.
6462 (x86_linux_prepare_to_resume): Likewise.
6463 (x86_linux_new_thread): Likewise.
6464 (x86_linux_new_fork): Likewise.
6465 (x86_linux_get_thread_area): Likewise.
6466 (super_post_startup_inferior): Likewise.
6467 (x86_linux_child_post_startup_inferior): Likewise.
6468 (AMD64_LINUX_USER64_CS): Likewise.
6469 (AMD64_LINUX_X32_DS): Likewise.
6470 (x86_linux_read_description): Likewise.
6471 (x86_linux_enable_btrace): Likewise.
6472 (x86_linux_disable_btrace): Likewise.
6473 (x86_linux_teardown_btrace): Likewise.
6474 (x86_linux_read_btrace): Likewise.
6475 (x86_linux_create_target): Likewise.
6476 (x86_linux_add_target): Likewise.
6477 * i386-linux-nat.c (x86-linux-nat.h): New include.
6478 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6479 (PTRACE_SETREGSET): Likewise.
6480 (arch_lwp_info): Now in x86-linux-nat.c.
6481 (have_ptrace_getregset): Now in x86-linux-nat.h.
6482 (x86_linux_dr_get): Now in x86-linux-nat.c.
6483 (x86_linux_dr_set): Likewise.
6484 (x86_linux_dr_get_addr): Likewise.
6485 (x86_linux_dr_get_control): Likewise.
6486 (x86_linux_dr_get_status): Likewise.
6487 (update_debug_registers_callback): Likewise.
6488 (x86_linux_dr_set_control): Likewise.
6489 (x86_linux_dr_set_addr): Likewise.
6490 (x86_linux_prepare_to_resume): Likewise.
6491 (x86_linux_new_thread): Likewise.
6492 (x86_linux_new_fork): Likewise.
6493 (x86_linux_get_thread_area): Likewise.
6494 (super_post_startup_inferior): Likewise.
6495 (x86_linux_child_post_startup_inferior): Likewise.
6496 (AMD64_LINUX_USER64_CS): Likewise.
6497 (AMD64_LINUX_X32_DS): Likewise.
6498 (x86_linux_read_description): Likewise.
6499 (x86_linux_enable_btrace): Likewise.
6500 (x86_linux_disable_btrace): Likewise.
6501 (x86_linux_teardown_btrace): Likewise.
6502 (x86_linux_read_btrace): Likewise.
6503 (x86_linux_create_target): Likewise.
6504 (x86_linux_add_target): Likewise.
6506 2014-07-11 Gary Benson <gbenson@redhat.com>
6508 * amd64-linux-nat.c: Comment and whitespace changes.
6509 * i386-linux-nat.c: Comment and whitespace changes.
6511 2014-07-11 Gary Benson <gbenson@redhat.com>
6513 * amd64-linux-nat.c (x86_linux_create_target): New function.
6514 (x86_linux_add_target): Likewise.
6515 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6516 * i386-linux-nat.c (x86_linux_create_target): New function.
6517 (x86_linux_add_target): Likewise.
6518 (_initialize_i386_linux_nat): Delegate to the above new functions.
6520 2014-07-11 Gary Benson <gbenson@redhat.com>
6522 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6523 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6524 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6525 (ps_get_thread_area): Delegate to the above.
6527 2014-07-11 Gary Benson <gbenson@redhat.com>
6529 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6530 x86_linux_read_description. All uses updated. amd64-specific
6531 code conditionalized. Conditionalized i386-specific code added.
6532 Redundant cast removed.
6533 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6534 x86_linux_read_description. All uses updated. i386-specific
6535 code conditionalized. Conditionalized amd64-specific code added.
6536 One sizeof replaced with the actual type it is describing.
6538 2014-07-11 Gary Benson <gbenson@redhat.com>
6540 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6541 x86_linux_dr_get. All uses updated.
6542 (amd64_linux_dr_set): Renamed to
6543 x86_linux_dr_set. All uses updated.
6544 (amd64_linux_dr_get_addr): Renamed to
6545 x86_linux_dr_get_addr. All uses updated.
6546 (amd64_linux_dr_get_control): Renamed to
6547 x86_linux_dr_get_control. All uses updated.
6548 (amd64_linux_dr_get_status): Renamed to
6549 x86_linux_dr_get_status. All uses updated.
6550 (amd64_linux_dr_set_control): Renamed to
6551 x86_linux_dr_set_control. All uses updated.
6552 (amd64_linux_dr_set_addr): Renamed to
6553 x86_linux_dr_set_addr. All uses updated.
6554 (amd64_linux_prepare_to_resume): Renamed to
6555 x86_linux_prepare_to_resume. All uses updated.
6556 (amd64_linux_new_thread): Renamed to
6557 x86_linux_new_thread. All uses updated.
6558 (amd64_linux_new_fork): Renamed to
6559 x86_linux_new_fork. All uses updated.
6560 (amd64_linux_child_post_startup_inferior): Renamed to
6561 x86_linux_child_post_startup_inferior. All uses updated.
6562 (amd64_linux_enable_btrace): Renamed to
6563 x86_linux_enable_btrace. All uses updated.
6564 (amd64_linux_disable_btrace): Renamed to
6565 x86_linux_disable_btrace. All uses updated.
6566 (amd64_linux_teardown_btrace): Renamed to
6567 x86_linux_teardown_btrace. All uses updated.
6568 (amd64_linux_read_btrace): Renamed to
6569 x86_linux_read_btrace. All uses updated.
6570 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6571 x86_linux_dr_get. All uses updated.
6572 (i386_linux_dr_set): Renamed to
6573 x86_linux_dr_set. All uses updated.
6574 (i386_linux_dr_get_addr): Renamed to
6575 x86_linux_dr_get_addr. All uses updated.
6576 (i386_linux_dr_get_control): Renamed to
6577 x86_linux_dr_get_control. All uses updated.
6578 (i386_linux_dr_get_status): Renamed to
6579 x86_linux_dr_get_status. All uses updated.
6580 (i386_linux_dr_set_control): Renamed to
6581 x86_linux_dr_set_control. All uses updated.
6582 (i386_linux_dr_set_addr): Renamed to
6583 x86_linux_dr_set_addr. All uses updated.
6584 (i386_linux_prepare_to_resume): Renamed to
6585 x86_linux_prepare_to_resume. All uses updated.
6586 (i386_linux_new_thread): Renamed to
6587 x86_linux_new_thread. All uses updated.
6588 (i386_linux_new_fork): Renamed to
6589 x86_linux_new_fork. All uses updated.
6590 (i386_linux_child_post_startup_inferior): Renamed to
6591 x86_linux_child_post_startup_inferior. All uses updated.
6592 (i386_linux_enable_btrace): Renamed to
6593 x86_linux_enable_btrace. All uses updated.
6594 (i386_linux_disable_btrace): Renamed to
6595 x86_linux_disable_btrace. All uses updated.
6596 (i386_linux_teardown_btrace): Renamed to
6597 x86_linux_teardown_btrace. All uses updated.
6598 (i386_linux_read_btrace): Renamed to
6599 x86_linux_read_btrace. All uses updated.
6601 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6603 * remote.c (extended_remote_post_attach): New function.
6604 (init_extended_remote_ops): Install it as to_post_attach method.
6606 2014-07-09 Pedro Alves <palves@redhat.com>
6608 * infcmd.c (attach_command_post_wait): Don't call
6609 target_terminal_inferior here.
6610 (attach_command): Call it here instead.
6612 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6614 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6616 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6617 from varobj.c, with additional checks.
6618 (c_varobj_ops): Fill in is_path_expr_parent field.
6619 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6620 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6622 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6624 (varobj_default_is_path_expr_parent): New function.
6625 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6626 (varobj_default_is_path_expr_parent): Declare new function.
6628 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6630 * infcmd.c (finish_backward): Turn internal error into normal error.
6632 2014-07-07 Pedro Alves <palves@redhat.com>
6635 * remote.c (async_handle_remote_sigint)
6636 (async_handle_remote_sigint_twice): Call
6637 gdb_call_async_signal_handler instead of
6638 mark_async_signal_handler.
6640 2014-07-07 Tom Tromey <tromey@redhat.com>
6642 * target-delegates.c: Rebuild.
6643 * target.c (target_info_record): Remove.
6644 * record.c (info_record_command): Unconditionally call
6646 * target.h (struct target_ops) <to_info_record>: Use
6647 TARGET_DEFAULT_IGNORE.
6648 (target_info_record): Remove.
6650 2014-07-07 Tom Tromey <tromey@redhat.com>
6652 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6653 TARGET_DEFAULT_NORETURN.
6654 * target.c (generic_tls_error): New function.
6655 (target_translate_tls_address): Don't search target stack.
6656 * target-delegates.c: Rebuild.
6657 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6659 * linux-thread-db.c (thread_db_get_thread_local_address):
6660 Unconditionally call beneath target.
6662 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6664 * cli/cli-logging.c (pop_output_files): Assign targerr to
6667 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6669 * MAINTAINERS (Write After Approval): Update my email address.
6671 2014-07-02 Gary Benson <gbenson@redhat.com>
6673 * proc-service.c (ps_xfer_memory): Update comment.
6674 (ps_pstop): Remove unused function.
6675 (ps_pcontinue): Likewise.
6676 (ps_lstop): Likewise.
6677 (ps_lcontinue): Likewise.
6678 (ps_lgetxregsize): Likewise.
6679 (ps_lgetxregs): Likewise.
6680 (ps_lsetxregs): Likewise.
6681 (ps_plog): Likewise.
6682 (ps_ptread): Likewise.
6683 (ps_ptwrite): Likewise.
6685 2014-07-01 Mark Wielaard <mjw@redhat.com>
6687 * dwarf2read.c (add_array_cv_type): New function.
6688 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6689 (read_tag_volatile_type): Likewise.
6691 2014-07-01 Tom Tromey <tromey@redhat.com>
6693 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6694 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6695 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6696 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6697 * command.h (cmd_cfunc_ftype): Move earlier.
6698 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6699 (add_com, add_info): Use cmd_cfunc_ftype.
6701 2014-06-30 Tom Tromey <tromey@redhat.com>
6703 * symtab.c (operator_chars): Make parameters and return type
6705 (file_matches): Make "files" const.
6706 (struct search_symbols_data) <files>: Now const.
6707 (search_symbols): Make "regexp" and "files" parameters const.
6709 (symtab_symbol_info): Remove cast.
6710 (rbreak_command): Update.
6711 * symtab.h (search_symbols): Update.
6713 2014-06-27 Yao Qi <yao@codesourcery.com>
6715 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6716 Change parameter type to 'struct thread_info *'. Caller
6718 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6720 * dummy-frame.c (struct dummy_frame_id): New.
6721 (dummy_frame_id_eq): New function.
6722 (struct dummy_frame) <id>: Change its type to 'struct
6724 (dummy_frame_push): Add parameter ptid and save it in
6726 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6728 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6730 (lookup_dummy_frame): Change parameter type to 'struct
6731 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6732 instead of frame_id_eq.
6733 (dummy_frame_pop): Add parameter ptid. Callers updated.
6734 Update comments. Compose dummy_frame_id and pass it to
6736 (dummy_frame_discard): Add parameter ptid.
6737 (dummy_frame_sniffer): Compose dummy_frame_id and call
6738 dummy_frame_id_eq instead of frame_id_eq.
6739 (fprint_dummy_frames): Print ptid.
6740 * dummy-frame.h: Remove comments.
6741 (dummy_frame_push): Add ptid in declaration.
6742 (dummy_frame_pop, dummy_frame_discard): Likewise.
6744 2014-06-26 Tom Tromey <tromey@redhat.com>
6746 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6747 * command.h (error_no_arg): Update.
6749 2014-06-26 Tom Tromey <tromey@redhat.com>
6751 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6752 (do_show_command): Make "arg" const.
6753 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6755 2014-06-26 Tom Tromey <tromey@redhat.com>
6757 * record-full.c (record_full_get_bookmark): Make "args" const.
6758 (record_full_goto_bookmark): Make "raw_bookmark" const.
6759 * record.c (record_goto): New function.
6760 (cmd_record_goto): Use it. Now static.
6761 * record.h (record_goto): Declare.
6762 (cmd_record_goto): Remove declaration.
6763 * target-delegates.c: Rebuild.
6764 * target.h (struct target_ops) <to_get_bookmark,
6765 to_goto_bookmark>: Make parameter const.
6767 2014-06-26 Tom Tromey <tromey@redhat.com>
6769 * defs.h (generic_load): Update.
6770 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6771 * monitor.c (monitor_load): Make "args" const.
6772 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6773 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6775 (mips_load): Make "file" const.
6776 * remote-sim.c (gdbsim_load): Make "args" const.
6777 * remote.c (remote_load): Make "name" const.
6778 * symfile.c (generic_load): Make "args" const.
6779 * target-delegates.c: Rebuild.
6780 * target.c (target_load): Make "arg" const.
6781 (debug_to_load): Make "args" const.
6782 * target.h (struct target_ops) <to_load>: Make parameter const.
6783 (target_load): Update.
6785 2014-06-26 Tom Tromey <tromey@redhat.com>
6788 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6789 (dwarf2_physname, read_partial_die)
6790 (guess_partial_die_structure_name, fixup_partial_die)
6791 (guess_full_die_structure_name, anonymous_struct_prefix)
6792 (dwarf2_name): Use per-BFD obstack.
6794 2014-06-26 Yao Qi <yao@codesourcery.com>
6796 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6797 dummyframe and this_id into inner block below.
6799 2014-06-26 Yao Qi <yao@codesourcery.com>
6801 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6802 with "signal_pass[0]" in the initialization of signal_pass.
6804 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6806 * record-btrace.c (record_btrace_generating_corefile)
6807 (record_btrace_prepare_to_generate_core)
6808 (record_btrace_done_generating_core): New.
6809 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6810 (record_btrace_store_registers, record_btrace_prepare_to_store):
6811 Forward request when generating a core file.
6812 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6813 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6814 to_done_generating_core.
6816 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6818 * target.h (target_ops) <to_prepare_to_generate_core>
6819 <to_done_generating_core>: New.
6820 (target_prepare_to_generate_core, target_done_generating_core): New.
6821 * target.c (target_prepare_to_generate_core)
6822 (target_done_generating_core): New.
6823 * target-delegates.c: Regenerate.
6824 * gcore.c: (write_gcore_file): Rename to ...
6825 (write_gcore_file_1): ...this.
6826 (write_gcore_file): Call target_prepare_to_generate_core
6827 and target_done_generating_core.
6829 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6831 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6832 * gcore.c (write_gcore_file): Free memory returned from
6833 make_corefile_notes.
6834 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6835 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6837 2014-06-24 Yao Qi <yao@codesourcery.com>
6839 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6840 (arm_linux_init_abi): Set skip_trampoline_code with
6841 gdbarch_skip_trampoline_code instead of
6842 find_solib_trampoline_target.
6844 2014-06-24 Yao Qi <yao@codesourcery.com>
6846 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6847 arm_skip_bx_reg returns non-zero.
6849 2014-06-24 Yao Qi <yao@codesourcery.com>
6851 * arm-tdep.c (arm_skip_bx_reg): New function.
6852 (arm_skip_stub): Call arm_skip_bx_reg.
6854 2014-06-23 Don Breazeal <donb@codesourcery.com>
6856 * MAINTAINERS: Add myself as write-after-approval maintainer.
6858 2014-06-23 Pedro Alves <palves@redhat.com>
6860 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6861 DR_CONTROL before setting DR0..DR3.
6862 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6863 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6864 bits of DR_CONTROL related to the debug register slot being
6865 disabled. If all slots are vacant, clear local slowdown as well,
6866 and assert DR_CONTROL is 0.
6868 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6870 * python/lib/gdb/command/xmethods.py
6871 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6872 current progspace only if the string "progspace" matches LOCUS_RE.
6874 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6876 Fix --with-system-readline with readline-6.3 patch 5.
6877 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6878 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6881 2014-06-20 Tom Tromey <tromey@redhat.com>
6883 * dwarf2read.c (dw2_get_real_path): Use correct type in
6885 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6887 2014-06-20 Gary Benson <gbenson@redhat.com>
6889 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6890 * common/glibc_thread_db.h: Likewise.
6891 * common/i386-cpuid.h: Likewise.
6892 * common/i386-gcc-cpuid.h: Likewise.
6893 * common/linux-btrace.h: Likewise.
6894 * common/linux-osdata.h: Likewise.
6895 * common/linux-procfs.h: Likewise.
6896 * common/linux-ptrace.h: Likewise.
6897 * common/mips-linux-watch.h: Likewise.
6898 * common/linux-btrace.c: Moved to nat.
6899 * common/linux-osdata.c: Likewise.
6900 * common/linux-procfs.c: Likewise.
6901 * common/linux-ptrace.c: Likewise.
6902 * common/mips-linux-watch.c: Likewise.
6903 * nat/gdb_thread_db.h: Moved from common.
6904 * nat/glibc_thread_db.h: Likewise.
6905 * nat/i386-cpuid.h: Likewise.
6906 * nat/i386-gcc-cpuid.h: Likewise.
6907 * nat/linux-btrace.c: Likewise.
6908 * nat/linux-btrace.h: Likewise.
6909 * nat/linux-osdata.c: Likewise.
6910 * nat/linux-osdata.h: Likewise.
6911 * nat/linux-procfs.c: Likewise.
6912 * nat/linux-procfs.h: Likewise.
6913 * nat/linux-ptrace.c: Likewise.
6914 * nat/linux-ptrace.h: Likewise.
6915 * nat/mips-linux-watch.c: Likewise.
6916 * nat/mips-linux-watch.h: Likewise.
6917 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6918 (object file files): Reordered.
6919 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6920 of glibc_thread_db.h.
6922 2014-06-20 Gary Benson <gbenson@redhat.com>
6924 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6925 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6926 (i386_dr_low): Likewise.
6927 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6928 (i386_dr_low_set_addr): Likewise.
6929 (i386_dr_low_get_addr): Likewise.
6930 (i386_dr_low_can_set_control): Likewise.
6931 (i386_dr_low_set_control): Likewise.
6932 (i386_dr_low_get_control): Likewise.
6933 (i386_dr_low_get_status): Likewise.
6934 (i386_get_debug_register_length): Likewise.
6935 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6936 (i386_dr_low): Likewise.
6937 * nat/i386-dregs.c (i386-low.h): Remove include.
6938 (i386-nat.h): Likewise.
6939 (nat/i386-dregs.h): New include.
6940 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6941 (i386_dr_low_set_addr): Likewise.
6942 (i386_dr_low_get_addr): Likewise.
6943 (i386_dr_low_can_set_control): Likewise.
6944 (i386_dr_low_set_control): Likewise.
6945 (i386_dr_low_get_control): Likewise.
6946 (i386_dr_low_get_status): Likewise.
6947 (i386_get_debug_register_length): Likewise.
6948 (debug_hw_points): Likewise.
6950 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6952 * Makefile.in (SFILES): Add d-exp.y.
6953 (YYFILES): Add d-exp.c.
6954 (YYOBJ): Add d-exp.o.
6955 (local-maintainer-clean): Delete d-exp.c.
6956 * d-exp.y: New file.
6957 * d-lang.h (d_parse): New declaration.
6958 (d_error): New declaration.
6959 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6960 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6961 PREC_ORDER operators.
6962 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6964 2014-06-19 Yao Qi <yao@codesourcery.com>
6966 * gdbthread.h (any_running): Remove the declaration.
6967 * thread.c (any_running): Remove.
6969 2014-06-19 Yao Qi <yao@codesourcery.com>
6971 * gdbthread.h (struct thread_info) <state>: Change its type to
6972 'enum thread_state'. Update comments.
6974 2014-06-19 Pedro Alves <palves@redhat.com>
6976 * gdbthread.h (ALL_THREADS): Delete.
6977 (ALL_NON_EXITED_THREADS): New macro.
6978 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6979 instead of ALL_THREADS.
6980 * infrun.c (find_thread_needs_step_over)
6981 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6982 instead of ALL_THREADS.
6983 * record-btrace.c (record_btrace_open)
6984 (record_btrace_stop_recording, record_btrace_close)
6985 (record_btrace_is_replaying, record_btrace_resume)
6986 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6987 * remote.c (append_pending_thread_resumptions): Likewise.
6988 * thread.c (thread_apply_all_command): Likewise.
6990 2014-06-19 Gary Benson <gbenson@redhat.com>
6992 * i386-nat.c (i386_stopped_by_watchpoint):
6993 Use i386_dr_stopped_by_watchpoint.
6994 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6995 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6997 2014-06-19 Gary Benson <gbenson@redhat.com>
6999 * nat/i386-dregs.c: New file.
7000 * Makefile.in (i386-dregs.o): New rule.
7001 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7002 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7003 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7004 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7005 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7006 * config/i386/go32.mh (NATDEPFILES): Likewise.
7007 * config/i386/linux.mh (NATDEPFILES): Likewise.
7008 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7009 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7010 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7011 * i386-nat.h (debug_hw_points): New declaration.
7012 * i386-nat.c (breakpoint.h): Remove include.
7013 (command.h): Likewise.
7014 (target.h): Likewise.
7015 (gdb_assert.h): Likewise.
7016 (debug_hw_points): Made nonstatic.
7017 (debug_printf): Now in i386-dregs.c.
7018 (TARGET_HAS_DR_LEN_8): Likewise.
7019 (DR_CONTROL_SHIFT): Likewise.
7020 (DR_CONTROL_SIZE): Likewise.
7021 (DR_RW_EXECUTE): Likewise.
7022 (DR_RW_WRITE): Likewise.
7023 (DR_RW_READ): Likewise.
7024 (DR_RW_IORW): Likewise.
7025 (DR_LEN_1): Likewise.
7026 (DR_LEN_2): Likewise.
7027 (DR_LEN_4): Likewise.
7028 (DR_LEN_8): Likewise.
7029 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7030 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7031 (DR_ENABLE_SIZE): Likewise.
7032 (DR_LOCAL_SLOWDOWN): Likewise.
7033 (DR_GLOBAL_SLOWDOWN): Likewise.
7034 (DR_CONTROL_RESERVED): Likewise.
7035 (I386_DR_CONTROL_MASK): Likewise.
7036 (I386_DR_VACANT): Likewise.
7037 (I386_DR_LOCAL_ENABLE): Likewise.
7038 (I386_DR_GLOBAL_ENABLE): Likewise.
7039 (I386_DR_DISABLE): Likewise.
7040 (I386_DR_SET_RW_LEN): Likewise.
7041 (I386_DR_GET_RW_LEN): Likewise.
7042 (I386_DR_WATCH_HIT): Likewise.
7043 (i386_wp_op_t): Likewise.
7044 (i386_show_dr): Likewise.
7045 (i386_length_and_rw_bits): Likewise.
7046 (i386_insert_aligned_watchpoint): Likewise.
7047 (i386_remove_aligned_watchpoint): Likewise.
7048 (i386_handle_nonaligned_watchpoint): Likewise.
7049 (i386_update_inferior_debug_regs): Likewise.
7050 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7051 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7052 (i386_region_ok_for_watchpoint):
7053 Use i386_dr_region_ok_for_watchpoint.
7054 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7056 2014-06-19 Gary Benson <gbenson@redhat.com>
7058 * i386-nat.c (i386_insert_hw_breakpoint): Use
7059 i386_insert_watchpoint.
7060 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7062 2014-06-19 Gary Benson <gbenson@redhat.com>
7064 * i386-nat.c (i386_dr_show): Renamed to
7065 i386_show_dr and made static. All uses updated.
7066 (i386_dr_length_and_rw_bits): Renamed to
7067 i386_length_and_rw_bits and made static.
7069 (i386_dr_insert_aligned_watchpoint): Renamed to
7070 i386_insert_aligned_watchpoint and made static.
7072 (i386_dr_remove_aligned_watchpoint): Renamed to
7073 i386_remove_aligned_watchpoint and made static.
7075 (i386_dr_update_inferior_debug_regs): Renamed to
7076 i386_update_inferior_debug_regs and made static.
7078 * nat/i386-dregs.h (i386_dr_show): Removed.
7079 (i386_dr_length_and_rw_bits): Likewise.
7080 (i386_dr_insert_aligned_watchpoint): Likewise.
7081 (i386_dr_remove_aligned_watchpoint): Likewise.
7082 (i386_dr_update_inferior_debug_regs): Likewise.
7084 2014-06-19 Gary Benson <gbenson@redhat.com>
7086 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7087 * configure: Regenerate.
7088 * config.in: Likewise.
7089 * main.c (signal.h): New include.
7090 (setup_alternate_signal_stack): New function.
7091 (captured_main): Call the above.
7092 * cp-support.c (signal.h): New include.
7093 (catch_demangler_crashes): New flag.
7094 (SIGJMP_BUF): New define.
7095 (SIGSETJMP): Likewise.
7096 (SIGLONGJMP): Likewise.
7097 (gdb_demangle_jmp_buf): New static global.
7098 (gdb_demangle_attempt_core_dump): Likewise.
7099 (gdb_demangle_signal_handler): New function.
7100 (gdb_demangle): If catch_demangler_crashes is set, install the
7101 above signal handler before calling bfd_demangle, and restore
7102 the original signal handler afterwards. Display the offending
7103 symbol and call demangler_warning the first time a segmentation
7105 (_initialize_cp_support): New maint set/show command.
7107 2014-06-19 Gary Benson <gbenson@redhat.com>
7109 * utils.h (resource_limit_kind): New enum.
7110 (can_dump_core): New declaration.
7111 (warn_cant_dump_core): Likewise.
7112 (dump_core): Likewise.
7113 * utils.c (dump_core): Made nonstatic. Added new
7114 parameter "limit_kind".
7115 (can_dump_core): Made nonstatic. Moved printing code to...
7116 (warn_cant_dump_core): New function.
7117 (can_dump_core_warn): Likewise.
7118 (internal_vproblem): Replace calls to can_dump_core with
7119 calls to can_dump_core_warn. Supply new argument to each.
7121 2014-06-19 Gary Benson <gbenson@redhat.com>
7123 * utils.h (demangler_vwarning): New declaration.
7124 (demangler_warning): Likewise.
7125 * utils.c (struct internal_problem)
7126 <user_settable_should_quit>: New field.
7127 <user_settable_should_dump_core>: Likewise
7128 (internal_error_problem): Add values for above new fields.
7129 (internal_warning_problem): Likewise.
7130 (demangler_warning_problem): New static global.
7131 (demangler_vwarning): New function.
7132 (demangler_warning): Likewise.
7133 (add_internal_problem_command): Selectively add commands.
7134 (_initialize_utils): New internal problem command.
7135 * maint.c (maintenance_demangler_warning): New function.
7136 (_initialize_maint_cmds): New command.
7138 2014-06-18 Tom Tromey <tromey@redhat.com>
7140 * f-valprint.c (info_common_command_for_block): Update.
7141 * symtab.h (struct general_symbol_info) <common_block>: Now
7144 2014-06-18 Tom Tromey <tromey@redhat.com>
7146 * symtab.h (struct symtab) <blockvector>: Now const.
7147 * ada-lang.c (ada_add_global_exceptions): Update.
7148 * buildsym.c (augment_type_symtab): Update.
7149 * dwarf2read.c (dw2_lookup_symbol): Update.
7150 * jit.c (finalize_symtab): Update.
7151 * jv-lang.c (add_class_symtab_symbol): Update.
7152 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7154 * objfiles.c (objfile_relocate1): Update.
7155 * psymtab.c (lookup_symbol_aux_psymtabs)
7156 (maintenance_check_psymtabs): Update.
7157 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7159 * spu-tdep.c (spu_catch_start): Update.
7160 * symmisc.c (dump_symtab_1): Update.
7161 * symtab.c (lookup_global_symbol_from_objfile)
7162 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7163 (basic_lookup_transparent_type_quick)
7164 (basic_lookup_transparent_type, find_pc_sect_symtab)
7165 (find_pc_sect_line, search_symbols): Update.
7166 * block.c (find_block_in_blockvector): Make "bl" const.
7167 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7169 (blockvector_contains_pc): Make "bv" const.
7170 (block_for_pc_sect): Update.
7171 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7172 (blockvector_contains_pc): Update.
7173 * breakpoint.c (resolve_sal_pc): Update.
7174 * inline-frame.c (block_starting_point_at): Update.
7176 2014-06-18 Tom Tromey <tromey@redhat.com>
7178 * completer.c (complete_line): Make "line_buffer" const.
7179 * completer.h (complete_line): Update.
7181 2014-06-18 Tom Tromey <tromey@redhat.com>
7183 * symtab.c (add_macro_name): Remove unneeded cast.
7185 2014-06-18 Tom Tromey <tromey@redhat.com>
7187 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7188 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7190 2014-06-18 Tom Tromey <tromey@redhat.com>
7192 * probe.c (info_probes_for_ops): Make "arg" const.
7193 * probe.h (info_probes_for_ops): Update.
7195 2014-06-18 Tom Tromey <tromey@redhat.com>
7197 * varobj.c (varobj_create): Update.
7198 * valops.c (value_of_this): Update.
7199 * tracepoint.c (add_local_symbols, scope_info): Update.
7200 * symtab.h (struct general_symbol_info) <block>: Now const.
7201 * symtab.c (skip_prologue_sal)
7202 (default_make_symbol_completion_list_break_on)
7203 (skip_prologue_using_sal): Update.
7204 * stack.h (iterate_over_block_locals)
7205 (iterate_over_block_local_vars): Update.
7206 * stack.c (print_frame_args): Update.
7207 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7209 (get_selected_block): Make return type const.
7210 * python/py-frame.c (frapy_block): Update.
7211 * python/py-block.c (gdbpy_block_for_pc): Update.
7212 * p-exp.y (%union) <bval>: Now const.
7213 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7214 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7215 * m2-exp.y (%union) <bval>: Now const.
7216 * linespec.c (get_current_search_block): Make return type const.
7217 (create_sals_line_offset, find_label_symbols): Update.
7218 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7220 (block_starting_point_at): Make "block" const.
7221 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7222 (check_exception_resume): Update.
7223 * guile/scm-frame.c (gdbscm_frame_block): Update.
7224 * guile/scm-block.c (gdbscm_lookup_block): Update.
7225 * frame.h (get_frame_block): Update.
7226 (get_selected_block): Make return type const.
7227 * frame.c (frame_id_inner): Update.
7228 * f-valprint.c (info_common_command_for_block)
7229 (info_common_command): Update.
7230 * dwarf2loc.c (dwarf2_find_location_expression)
7231 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7232 (locexpr_describe_location_piece): Update.
7233 * c-exp.y (%union) <bval>: Now const.
7234 * breakpoint.c (resolve_sal_pc): Update.
7235 * blockframe.c (get_frame_block):Make return type const.
7236 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7237 (block_innermost_frame): Update.
7238 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7239 (block_for_pc, block_for_pc_sect): Update.
7240 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7242 (block_for_pc_sect, block_for_pc): Make return type const.
7243 * ax-gdb.c (gen_expr): Update.
7244 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7245 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7246 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7247 (ada_read_var_value): Update.
7248 * ada-exp.y (struct name_info) <block>: Now const.
7250 (block_lookup): Constify.
7252 2014-06-18 Gary Benson <gbenson@redhat.com>
7254 * nat/i386-dregs.h: New file.
7255 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7256 * i386-nat.h (i386-dregs.h): New include.
7257 (DR_FIRSTADDR): Now in i386-dregs.h.
7258 (DR_LASTADDR): Likewise.
7259 (DR_NADDR): Likewise.
7260 (DR_STATUS): Likewise.
7261 (DR_CONTROL): Likewise.
7262 (i386_debug_reg_state): Likewise.
7263 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7265 2014-06-18 Don Breazeal <donb@codesourcery.com>
7267 * breakpoint.c (set_longjmp_breakpoint): Call
7268 momentary_breakpoint_from_master with additional argument.
7269 (set_longjmp_breakpoint_for_call_dummy): Call
7270 momentary_breakpoint_from_master with additional argument.
7271 (set_std_terminate_breakpoint): Call
7272 momentary_breakpoint_from_master with additional argument.
7273 (momentary_breakpoint_from_master): Add argument to function
7274 definition and use it to initialize structure member flag.
7275 (clone_momentary_breakpoint): Call
7276 momentary_breakpoint_from_master with additional argument.
7277 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7278 member flags set in momentary_breakpoint_from_master.
7280 2014-06-18 Gary Benson <gbenson@redhat.com>
7282 * i386-nat.c (i386_show_dr): Renamed to
7283 i386_dr_show and made nonstatic. All uses updated.
7284 (i386_length_and_rw_bits): Renamed to
7285 i386_dr_length_and_rw_bits and made nonstatic.
7287 (i386_insert_aligned_watchpoint): Renamed to
7288 i386_dr_insert_aligned_watchpoint and made nonstatic.
7290 (i386_remove_aligned_watchpoint): Renamed to
7291 i386_dr_remove_aligned_watchpoint and made nonstatic.
7293 (i386_update_inferior_debug_regs): Renamed to
7294 i386_dr_update_inferior_debug_regs and made nonstatic.
7297 2014-06-18 Gary Benson <gbenson@redhat.com>
7299 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7300 (i386_dr_low_can_set_control): Likewise.
7301 (i386_dr_low_set_addr): Likewise.
7302 (i386_dr_low_set_control): Likewise.
7303 (i386_dr_low_get_addr): Likewise.
7304 (i386_dr_low_get_status): Likewise.
7305 (i386_dr_low_get_control): Likewise.
7306 (i386_insert_aligned_watchpoint): Use new macros.
7307 (i386_update_inferior_debug_regs): Likewise.
7308 (i386_stopped_data_address): Likewise.
7310 2014-06-18 Gary Benson <gbenson@redhat.com>
7312 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7313 New parameter. All uses updated.
7315 2014-06-18 Gary Benson <gbenson@redhat.com>
7317 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7320 2014-06-18 Gary Benson <gbenson@redhat.com>
7322 * i386-nat.c (debug_printf): New macro.
7323 (i386_get_debug_register_length): Likewise.
7324 (TARGET_HAS_DR_LEN_8): Use above macro.
7325 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7326 and printf_unfiltered. Use phex to format values.
7328 2014-06-18 Gary Benson <gbenson@redhat.com>
7330 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7333 2014-06-18 Gary Benson <gbenson@redhat.com>
7335 * i386-nat.c: Comment changes.
7337 2014-06-18 Gary Benson <gbenson@redhat.com>
7339 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7341 2014-06-18 Gary Benson <gbenson@redhat.com>
7343 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7344 (i386_insert_aligned_watchpoint): Likewise.
7345 (i386_remove_aligned_watchpoint): Likewise.
7346 (i386_handle_nonaligned_watchpoint): Likewise.
7348 2014-06-18 Gary Benson <gbenson@redhat.com>
7350 * i386-nat.c: Whitespace changes.
7352 2014-06-17 Samuel Bronson <naesten@gmail.com>
7354 * MAINTAINERS: Update Roland McGrath's email address.
7355 Thanks to Sergio Durigan Junior for pointing out that he left
7356 Red Hat a while ago, and giving me a current address.
7358 2014-06-17 Tom Tromey <tromey@redhat.com>
7360 * utils.h (savestring): Remove declaration.
7362 2014-06-17 Tom Tromey <tromey@redhat.com>
7364 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7366 2014-06-16 Keith Seitz <keiths@redhat.com>
7369 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7370 to update the varobj if inferior_ptid is null_ptid.
7372 2014-06-16 Tom Tromey <tromey@redhat.com>
7374 * target.h (struct target_ops) <to_info_proc>: Make parameter
7376 (target_info_proc): Update.
7377 * target.c (target_info_proc): Make "args" const.
7378 * procfs.c (procfs_info_proc): Update.
7379 * linux-tdep.c (linux_info_proc): Update.
7380 (linux_core_info_proc_mappings): Make "args" const.
7381 (linux_core_info_proc): Update.
7382 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7383 * gdbarch.c: Rebuild.
7384 * gdbarch.h: Rebuild.
7385 * corelow.c (core_info_proc): Update.
7387 2014-06-16 Tom Tromey <tromey@redhat.com>
7389 * target.h (struct target_ops) <to_disconnect>: Make parameter
7391 (target_disconnect): Update.
7392 * target.c (target_disconnect): Make "args" const.
7393 * target-delegates.c: Rebuild.
7394 * remote.c (remote_disconnect): Update.
7395 * record.h (record_disconnect): Update.
7396 * record.c (record_disconnect): Update.
7397 * inf-child.c (inf_child_disconnect): Update.
7399 2014-06-16 Tom Tromey <tromey@redhat.com>
7401 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7402 * target.c (debug_to_rcmd, default_rcmd): Update.
7403 * target-delegates.c: Rebuild.
7404 * remote.c (remote_rcmd): Update.
7405 * monitor.c (monitor_rcmd): Update.
7407 2014-06-16 Pedro Alves <palves@redhat.com>
7409 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7410 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7411 have OBJF_SHARED set.
7412 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7413 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7414 instead of OBJF_USERLOADED.
7415 * objfiles.h (OBJF_SHARED): Update comment.
7416 (userloaded_objfile_contains_address_p): Rename to ...
7417 (shared_objfile_contains_address_p): ... this, and update
7419 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7421 (remove_symbol_file_command): Skip objfiles that don't have
7424 2014-06-16 Tom Tromey <tromey@redhat.com>
7426 * minsyms.h (prim_record_minimal_symbol)
7427 (prim_record_minimal_symbol_and_info): Update comments.
7429 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7431 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7432 or --without-guile, according to how GDB was built.
7434 2014-06-13 Tom Tromey <tromey@redhat.com>
7436 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7438 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7440 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7442 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7443 help_list.Pass all_commands, not -1, to help_list.
7444 * cli/cli-dump.c (dump_command, append_command)
7445 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7446 (binary_dump_command, binary_append_command): Pass all_commands,
7447 not -1, to help_list.
7448 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7450 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7452 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7454 * top.c (set_history): Pass all_commands, not -1, to help_list.
7455 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7456 all_commands, not -1, to help_list.
7457 * symfile.c (overlay_command): Pass all_commands, not -1, to
7459 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7461 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7463 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7465 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7466 not -1, to help_list.
7467 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7468 not -1, to help_list.
7469 * maint.c (maintenance_command, maintenance_info_command)
7470 (maintenance_print_command, maintenance_set_cmd): Pass
7471 all_commands, not -1, to help_list.
7472 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7474 * language.c (set_check): Pass all_commands, not -1, to help_list.
7475 * infcmd.c (unset_command): Pass all_commands, not -1, to
7477 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7479 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7481 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7483 * breakpoint.c (save_command): Pass all_commands, not -1, to
7485 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7486 all_commands, not -1, to help_list.
7488 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7490 * regcache.c (struct register_to_invalidate): New structure.
7491 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7493 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7495 2014-06-12 Yao Qi <yao@codesourcery.com>
7497 * varobj.c (varobj_get_num_children): Call
7498 varobj_is_dynamic_p.
7499 (varobj_list_children): Likewise.
7500 (varobj_update): Likewise. Update comments.
7502 2014-06-12 Yao Qi <yao@codesourcery.com>
7504 * varobj.c (varobj_pretty_printed_p): Rename to ...
7505 (varobj_is_dynamic_p): ... this. New function.
7506 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7507 (varobj_is_dynamic_p): Declare.
7508 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7509 (mi_print_value_p, varobj_update_one): Likewise.
7511 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7512 Yao Qi <yao@codesourcery.com>
7514 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7515 (varobj_get_iterator): Wrap up code for pretty-printer by
7516 "#if HAVE_PYTHON" and "#endif".
7517 (update_dynamic_varobj_children): Likewise.
7519 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7520 Yao Qi <yao@codesourcery.com>
7522 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7523 gdb_python_initialized is false. Move some code from varobj.c.
7524 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7525 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7526 (struct varobj_item): Moved to varobj-iter.h".
7527 (varobj_clear_saved_item): New function.
7528 (update_dynamic_varobj_children): Move python-related code to
7530 (free_variable): Call varobj_clear_saved_item and
7533 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7534 Yao Qi <yao@codesourcery.com>
7536 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7537 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7538 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7539 (py-varobj.o): New rule.
7540 * python/py-varobj.c: New file.
7541 * python/python-internal.h (py_varobj_get_iterator): Declare.
7542 * varobj-iter.h: New file.
7543 * varobj.c: Include "varobj-iter.h"
7544 (struct varobj) <child_iter>: Change its type from "PyObject *"
7545 to "struct varobj_iter *".
7546 <saved_item>: Likewise.
7547 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7548 [HAVE_PYTHON] (varobj_get_iterator): New function.
7549 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7550 python-specific code to python/py-varobj.c.
7551 (install_visualizer): Call varobj_iter_delete instead of
7553 * varobj.h (varobj_ensure_python_env): Declare.
7555 2014-06-12 Yao Qi <yao@codesourcery.com>
7557 * varobj.c (struct varobj_item): New structure.
7558 (create_child_with_value): Update declaration.
7559 (varobj_add_child): Replace arguments 'name' and 'value' with
7560 'item'. All callers updated.
7561 (install_dynamic_child): Likewise.
7562 (update_dynamic_varobj_children): Likewise.
7563 (varobj_add_child): Likewise.
7564 (create_child_with_value): Likewise.
7566 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7568 * NEWS: Create a new section for the next release branch.
7569 Rename the section of the current branch, now that it has
7572 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7574 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7575 * version.in: Bump version to 7.8.50.DATE-cvs.
7577 2014-06-11 Pedro Alves <palves@redhat.com>
7580 * ser-mingw.c (net_windows_socket_check_pending): New function.
7581 (net_windows_select_thread): Ignore spurious wakeups. Use
7582 net_windows_socket_check_pending.
7583 (net_windows_wait_handle): Check for pending events with
7584 ioctlsocket, through net_windows_socket_check_pending, instead of
7585 checking the socket's event.
7587 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7589 * python/python-internal.h (gdb_PyObject_GetAttrString)
7590 (gdb_PyObject_HasAttrString): New inline function definitions.
7591 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7592 char * of the second argument to PyObject_GetAttrString.
7594 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7596 * serial.c (serial_write): Fix index of character to be printed
7597 in call to serial_logchar when serial debug traces are enabled.
7599 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7601 * gdbtypes (resolve_dynamic_range): Add function description.
7603 2014-06-09 Pedro Alves <palves@redhat.com>
7605 * linux-nat.c (linux_child_follow_fork): Initialize status with
7606 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7607 inner block. Only pass the signal to PTRACE_DETACH if in pass
7610 2014-06-09 Gary Benson <gbenson@redhat.com>
7612 * common/signals.c (gdb_signal_from_host): Reorder to separate
7613 the always-available ANSI-standard signals from the signals that
7615 (do_gdb_signal_to_host): Likewise.
7616 * proc-events.c (signal_table): Likewise.
7618 2014-06-08 Hui Zhu <hui@codesourcery.com>
7620 * common/linux-ptrace.c (linux_disable_event_reporting): New
7622 * common/linux-ptrace.h (linux_disable_event_reporting): New
7624 * linux-nat.c (linux_child_follow_fork): Do a single step before
7627 2014-06-07 Keith Seitz <keiths@redhat.com>
7631 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7632 from symbol_matches_domain in symtab.c. All local callers
7633 of symbol_matches_domain updated.
7634 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7635 search STRUCT_DOMAIN.
7636 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7637 independently. standard_lookup will do that automatically.
7638 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7639 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7640 (cp_lookup_symbol_in_namespace): Likewise.
7641 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7642 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7643 may return a STRUCT_DOMAIN match.
7644 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7645 * cp-support.c: Include language.h.
7646 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7648 * psymtab.c (match_partial_symbol): Compare the requested
7649 domain with the symbol's domain directly.
7650 (lookup_partial_symbol): Likewise.
7651 * symtab.c (lookup_symbol_in_language): Explain when/why
7652 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7653 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7654 appropriate languages.
7655 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7656 and moved to ada-lang.c
7657 (lookup_block_symbol): Explain that this function only returns
7658 symbol matching the requested DOMAIN.
7659 Compare the requested domain with the symbol's domain directly.
7660 (iterate_over_symbols): Compare the requested domain with the
7661 symbol's domain directly.
7662 * symtab.h (symbol_matches_domain): Remove.
7664 2014-06-06 Doug Evans <xdje42@gmail.com>
7666 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7667 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7668 (gdbscm_guile_version_is_at_least): Declare.
7669 (gdbscm_scm_string_to_int): Declare.
7670 * guile/guile.c (gdbscm_guile_major_version): New global.
7671 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7672 (guile_datadir): New static global.
7673 (gdbscm_guile_data_directory): New function.
7674 (initialize_scheme_side): Update.
7675 (misc_guile_functions): Add guile-data-directory.
7676 (initialize_gdb_module): Fetch guile version number.
7677 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7678 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7679 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7680 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7682 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7683 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7684 * guile/scm-value.c (gdbscm_value_to_string): Only call
7685 scm_port_conversion_strategy if Guile version >= 2.0.6.
7687 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7689 * main.c (print_gdb_help): Add -q and --silent.
7691 2014-06-06 Gary Benson <gbenson@redhat.com>
7693 * common/signals.c: Remove preprocessor conditionals for
7694 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7695 SIGSEGV and SIGTERM.
7696 * proc-events.c: Likewise.
7698 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7700 * symfile.c (symfile_free_objfile): Remove restriction to
7702 * symfile-mem.c (symbol_file_add_from_memory): Call
7703 add_target_sections_of_objfile.
7705 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7707 * guile/scm-value.c (gdbscm_history_append_x): Use
7708 'vlscm_get_value_smob_arg_unsafe' instead of
7709 'vlscm_scm_to_value'.
7711 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7714 * utils.c (printchar): Don't escape at all if quoter is NUL.
7715 Update function documentation to clarify effect of parameter
7717 * remote.c (escape_buffer): Pass '\\' as the quoter to
7718 fputstrn_unfiltered.
7719 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7720 generate the output.
7721 (mi_solib_unloaded): Same.
7723 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7725 * development.sh: Delete.
7726 * Makefile.in (config.status): Adjust dependency on development.sh.
7727 * configure.ac: Adjust development.sh source call.
7728 * configure: Regenerate.
7730 2014-06-04 Doug Evans <xdje42@gmail.com>
7732 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7733 is_scheme_bkpt, spec.
7734 (bpscm_make_breakpoint_smob): Initialize new members.
7735 (gdbscm_create_breakpoint_x): Split into two ...
7736 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7737 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7738 (scheme_function breakpoint_functions): Update.
7739 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7740 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7741 register-breakpoint!.
7743 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7746 * mem-break.c (z_type_supported): Return zero if
7747 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7749 2014-06-04 Tom Tromey <tromey@redhat.com>
7751 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7752 value_from_contents_and_address_unresolved.
7753 (ada_template_to_fixed_record_type_1): Likewise.
7754 (ada_which_variant_applies): Likewise.
7755 * value.h (value_from_contents_and_address_unresolved): Declare.
7756 * value.c (value_from_contents_and_address_unresolved): New
7758 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7759 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7760 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7762 2014-06-04 Tom Tromey <tromey@redhat.com>
7764 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7766 2014-06-04 Tom Tromey <tromey@redhat.com>
7768 * procfs.c (procfs_attach): Make "args" const.
7769 * windows-nat.c (windows_attach): Make "args" const.
7770 * nto-procfs.c (procfs_attach): Make "args" const.
7771 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7772 * go32-nat.c (go32_attach): Make "args" const.
7773 * gnu-nat.c (gnu_attach): Make "args" const.
7774 * darwin-nat.c (darwin_attach): Make "args" const.
7775 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7776 * linux-nat.c (linux_nat_attach): Make "args" const.
7777 * remote.c (extended_remote_attach_1, extended_remote_attach):
7779 * target.h (struct target_ops) <to_attach>: Make "args" const.
7780 (find_default_attach): Likewise.
7781 * utils.c (parse_pid_to_attach): Make "args" const.
7782 * utils.h (parse_pid_to_attach): Update.
7784 2014-06-04 Tom Tromey <tromey@redhat.com>
7786 * target-delegates.c: Rebuild.
7787 * target.c (default_thread_address_space): New function.
7788 (target_thread_address_space): Simplify.
7789 * target.h (struct target_ops) <to_thread_address_space>: Add
7790 TARGET_DEFAULT_FUNC.
7792 2014-06-04 Doug Evans <xdje42@gmail.com>
7794 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7796 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7798 * record-btrace.c: Include event-loop.h and inf-loop.h.
7799 (record_btrace_resume_exec_dir)
7800 (record_btrace_async_inferior_event_handler)
7801 (record_btrace_handle_async_inferior_event): New.
7802 (record_btrace_open): Create async event handler.
7803 (record_btrace_close): Delete async event handler.
7804 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7805 Mark async event handler.
7806 (record_btrace_execution_direction): New.
7807 (init_record_btrace_ops): Initialize to_execution_direction.
7809 2014-06-03 Doug Evans <xdje42@gmail.com>
7811 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7812 (gdbscm_make_parameter): Ditto.
7814 2014-06-03 Doug Evans <dje@google.com>
7816 * exec.c (exec_close_1): Call clear_section_table instead of
7817 resize_section_table.
7818 (clear_section_table): New function.
7819 (resize_section_table): Make static. Rename arg num_added to
7821 * exec.h (clear_section_table): Declare.
7822 (resize_section_table): Delete.
7823 * progspace.c (release_program_space): Call clear_section_table
7824 instead of resize_section_table.
7826 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7828 * NEWS (Python Scripting): Add entry about the new xmethods
7831 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7833 * python/py-xmethods.c: New file.
7834 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7835 (objfpy_dealloc): XDECREF on the new xmethods field.
7836 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7838 (objfpy_get_xmethods): New function.
7839 (objfile_getset): New entry 'xmethods'.
7840 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7841 (pspy_dealloc): XDECREF on the new xmethods field.
7842 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7844 (pspy_get_xmethods): New function.
7845 (pspace_getset): New entry 'xmethods'.
7846 * python/python-internal.h: Add declarations for new functions.
7847 * python/python.c (_initialize_python): Invoke
7848 gdbpy_initialize_xmethods.
7849 * python/lib/gdb/__init__.py (xmethods): New
7851 * python/lib/gdb/xmethod.py: New file.
7852 * python/lib/gdb/command/xmethods.py: New file.
7854 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7856 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7857 best match method returned by find_overload_match is an xmethod.
7858 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7859 the best matching operator returned by find_overload_match is an
7861 * valops.c: #include "extension.h".
7862 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7863 Return void. The list of matching source methods is returned in
7864 "fn_list" and a vector of matching debug method workers is
7865 returned in "xm_worker_vec". Update all callers.
7866 (value_find_oload_method_list): Likewise.
7867 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7868 non-NULL, then the index of the best matching method in this
7869 vector is returned. Update all callers.
7870 (find_overload_match): Include xmethods while performing overload
7873 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7875 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7876 * extension-priv.h (struct extension_language_ops): Add the
7878 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7879 get_matching_xmethod_workers, get_xmethod_argtypes,
7880 invoke_xmethod, free_xmethod_worker,
7881 free_xmethod_worker_vec): New functions.
7882 * extension.h: #include "common/vec.h".
7883 New function declarations.
7884 (struct xmethod_worker): New struct.
7885 (VEC (xmethod_worker_ptr)): New vector type.
7886 (xmethod_worker_ptr): New typedef.
7887 (xmethod_worker_vec): Likewise.
7888 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7890 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7891 (struct builtin_type): New field "xmethod".
7892 * valarith.c (value_ptradd): Assert that the value argument is not
7894 * valops.c (value_must_coerce_to_target): Return 0 for
7895 lval_xcallable values.
7896 * value.c (struct value): New field XM_WORKER in the field
7898 (value_address, value_raw_address): Return 0 for lval_xcallable
7900 (set_value_address): Assert that the value is not an
7902 (value_free): Free the associated xmethod worker when freeing
7903 lval_xcallable values.
7904 (set_value_component_location): Assert that the WHOLE value is not
7906 (value_of_xmethod, call_xmethod): New functions.
7907 * value.h: Declare "struct xmethod_worker".
7908 Declare new functions value_of_xmethod, call_xmethod.
7910 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7911 Pedro Alves <palves@redhat.com>
7913 PR breakpoints/17000
7914 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7915 New function, extracted from software_breakpoint_inserted_here_p.
7916 (software_breakpoint_inserted_here_p): Replace factored out code
7917 by call to find_non_raw_software_breakpoint_inserted_here.
7918 (bp_target_info_copy_insertion_state): New function.
7919 (bkpt_insert_location): Handle the case of a single-step
7920 breakpoint already inserted at the same address.
7921 (bkpt_remove_location): Handle the case of a single-step
7922 breakpoint still inserted at the same address.
7923 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7924 breakpoint already inserted at the same address.
7925 (deprecated_remove_raw_breakpoint): Handle the case of a
7926 non-raw breakpoint still inserted at the same address.
7927 (find_single_step_breakpoint): New function, extracted from
7928 single_step_breakpoint_inserted_here_p.
7929 (find_single_step_breakpoint): New function,
7930 factored out from single_step_breakpoint_inserted_here_p.
7931 (single_step_breakpoint_inserted_here_p): Reimplement.
7933 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7935 Pushed by Joel Brobecker <brobecker@adacore.com>
7936 * source.c (show_substitute_path_command): Fix display of matching
7939 2014-06-03 Gary Benson <gbenson@redhat.com>
7941 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7943 2014-06-02 Doug Evans <xdje42@gmail.com>
7945 Add parameter support for Guile.
7946 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7947 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7948 (scm-param.o): New rule.
7949 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7950 (gdbscm_misc_error): Declare.
7951 (gdbscm_canonicalize_command_name): Declare.
7952 (gdbscm_scm_to_host_string): Declare.
7953 (gdbscm_scm_from_host_string): Declare.
7954 (gdbscm_initialize_parameters): Declare.
7955 * guile/guile.c (initialize_gdb_module): Call
7956 gdbscm_initialize_parameters.
7957 * guile/lib/gdb.scm: Export parameter symbols.
7958 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7959 cmdscm_canonicalize_name and made public. All callers updated.
7960 * guile/scm-exception.c (gdbscm_misc_error): New function.
7961 * guile/scm-param.c: New file.
7962 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7963 (gdbscm_scm_to_host_string): New function.
7964 (gdbscm_scm_from_host_string): New function.
7965 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7967 2014-06-02 Doug Evans <xdje42@gmail.com>
7969 Add command support for Guile.
7970 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7971 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7972 (scm-cmd.o): New rule.
7973 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7974 (gdbscm_user_error_p): Declare.
7975 (gdbscm_parse_command_name): Declare.
7976 (gdbscm_valid_command_class_p): Declare.
7977 (gdbscm_initialize_commands): Declare.
7978 * guile/guile.c (initialize_gdb_module): Call
7979 gdbscm_initialize_commands.
7980 * guile/lib/gdb.scm: Export command symbols.
7981 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7982 (throw-user-error): New function.
7983 * guile/scm-cmd.c: New file.
7984 * guile/scm-exception.c (user_error_symbol): New static global.
7985 (gdbscm_user_error_p): New function.
7986 (gdbscm_initialize_exceptions): Set user_error_symbol.
7987 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7989 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7991 * top.c (command_loop): Handle comments here...
7992 (command_line_input): ... not here.
7994 2014-06-02 Doug Evans <xdje42@gmail.com>
7996 Add progspace support for Guile.
7997 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7998 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7999 (scm-progspace.o): New rule.
8000 * guile/guile-internal.h (pspace_smob): New typedef.
8001 (psscm_pspace_smob_pretty_printers): Declare.
8002 (psscm_pspace_smob_from_pspace): Declare.
8003 (psscm_scm_from_pspace): Declare.
8004 * guile/guile.c (initialize_gdb_module): Call
8005 gdbscm_initialize_pspaces.
8006 * guile/lib/gdb.scm: Export progspace symbols.
8007 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8009 (append-pretty-printer!): Ditto.
8010 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8012 * guile/scm-progspace.c: New file.
8014 2014-06-03 Alan Modra <amodra@gmail.com>
8016 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8017 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8019 2014-06-02 Doug Evans <dje@google.com>
8021 Add support for skeletonless type units.
8022 * dwarf2read.c (struct dwarf2_per_objfile): New member
8023 n_allocated_type_units.
8024 (struct dwarf2_per_objfile) <tu_stats>: New member
8025 nr_all_type_units_reallocs.
8026 (create_signatured_type_table_from_index): Initialize
8027 n_allocated_type_units
8028 (create_all_type_units): Ditto.
8029 (add_type_unit): Move up in file. New arg slot.
8030 All callers updated. Increase space for all_type_units more
8032 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8033 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8034 (lookup_dwp_signatured_type): Ditto.
8035 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8036 All callers updated.
8037 (build_type_psymtabs_1): Leave type_unit_groups as
8038 NULL if no TUs present.
8039 (print_tu_stats): New function.
8040 (process_skeletonless_type_unit): New function.
8041 (process_dwo_file_for_skeletonless_type_units): New
8043 (process_skeletonless_type_units): New function.
8044 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8045 Call print tu_stats if debugging enabled.
8047 2014-06-02 Pedro Alves <palves@redhat.com>
8049 * breakpoint.c (build_target_command_list): Don't build a command
8050 list if we have any duplicate location that isn't a dprintf.
8052 2014-06-02 Pedro Alves <palves@redhat.com>
8054 * breakpoint.c (dprintf_breakpoint_hit): New function.
8055 (initialize_breakpoint_ops): Install it as dprintf's
8056 breakpoint_hit method.
8058 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8060 * source.c (substitute_path_rule_matches): Simplify using
8061 filename_ncmp instead of FILENAME_CMP.
8063 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8065 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8067 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8069 * configure.ac: When Guile is available, check for the
8070 availability of 'scm_new_smob'.
8071 * configure, config.h.in: Regenerate.
8072 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8075 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8077 * frame.c (struct frame_info): Add stop_string field.
8078 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8079 (get_prev_frame_always): Old content moved into
8080 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8081 TRY_CATCH, handle MEMORY_ERROR exceptions.
8082 (frame_stop_reason_string): New function definition.
8083 * frame.h (unwind_stop_reason_to_string): Extend comment to
8084 mention frame_stop_reason_string.
8085 (frame_stop_reason_string): New function declaration.
8086 * stack.c (frame_info): Switch to frame_stop_reason_string.
8087 (backtrace_command_1): Switch to frame_stop_reason_string.
8088 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8089 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8090 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8092 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8094 * frame.c (frame_stop_reason_string): Rename to ...
8095 (unwind_stop_reason_to_string): this.
8096 * frame.h (frame_stop_reason_string): Rename to ...
8097 (unwind_stop_reason_to_string): this.
8098 * stack.c (frame_info): Update call to frame_stop_reason_string.
8099 (backtrace_command_1): Likewise.
8100 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8101 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8103 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8105 * frame.c (remove_prev_frame): New function.
8106 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8109 2014-05-29 Pedro Alves <palves@redhat.com>
8111 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8112 and make it const. When a single-step decays to a continue,
8113 clear 'step', not 'hw_step'. Pass whether the caller wanted
8114 to step to user_visible_resume_ptid, not what we ask the
8117 2014-05-29 Pedro Alves <palves@redhat.com>
8119 * infrun.c (process_event_stop_test, handle_step_into_function)
8120 (handle_step_into_function_backward): Adjust.
8121 Don't set the even thread's stop_step and call stop_waiting before
8122 calling end_stepping_range. Instead do that ...
8123 (end_stepping_range): ... here. Take an ecs pointer parameter.
8125 2014-05-29 Pedro Alves <palves@redhat.com>
8127 * infrun.c (stop_stepping): Rename to ...
8128 (stop_waiting): ... this.
8129 (proceed): Update comment.
8130 (process_event_stop_test, handle_inferior_event)
8131 (handle_signal_stop, handle_step_into_function)
8132 (handle_step_into_function_backward): Update.
8134 2014-05-29 Pedro Alves <palves@redhat.com>
8136 * infcall.c (run_inferior_call): Don't check whether the current
8137 thread is running after the proceed call.
8139 2014-05-29 Pedro Alves <palves@redhat.com>
8140 Tom Tromey <tromey@redhat.com>
8142 * NEWS: Mention "maint set target-async", "set mi-async", and that
8143 background execution commands are now always available.
8144 * target.h (target_async_permitted): Update comment.
8145 * target.c (target_async_permitted, target_async_permitted_1):
8147 (set_target_async_command): Rename to ...
8148 (maint_set_target_async_command): ... this.
8149 (show_target_async_command): Rename to ...
8150 (maint_show_target_async_command): ... this.
8151 (_initialize_target): Adjust.
8152 * infcmd.c (prepare_execution_command): Make extern.
8153 * inferior.h (prepare_execution_command): Declare.
8154 * infrun.c (set_observer_mode): Leave target async alone.
8155 * mi/mi-interp.c (mi_interpreter_init): Install
8156 mi_on_sync_execution_done as sync_execution_done observer.
8157 (mi_on_sync_execution_done): New function.
8158 (mi_execute_command_input_handler): Don't print the prompt if we
8159 just started a synchronous command with an async target.
8160 (mi_on_resume): Check sync_execution before printing prompt.
8161 * mi/mi-main.h (mi_async_p): Declare.
8162 * mi/mi-main.c: Include gdbcmd.h.
8163 (mi_async_p): New function.
8164 (mi_async, mi_async_1): New globals.
8165 (set_mi_async_command, show_mi_async_command, mi_async): New
8167 (exec_continue): Call prepare_execution_command.
8168 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8169 (mi_execute_async_cli_command): Use mi_async_p.
8170 (_initialize_mi_main): Install "set mi-async". Make
8171 "target-async" a deprecated alias.
8173 2014-05-29 Pedro Alves <palves@redhat.com>
8175 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8176 (_initialize_cli_interp): Adjust.
8177 * event-loop.c: Include "observer.h".
8178 (start_event_loop): Notify 'command_error' observers instead of
8179 calling display_gdb_prompt. Remove FIXME comment.
8180 * event-top.c (display_gdb_prompt): Remove call into the
8182 * inf-loop.c: Include "observer.h".
8183 (inferior_event_handler): Notify 'command_error' observers instead
8184 of calling display_gdb_prompt.
8185 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8186 observers instead of calling display_gdb_prompt.
8187 * interps.c (interp_set): Don't call display_gdb_prompt.
8188 (current_interp_display_prompt_p): Delete.
8189 * interps.h (interp_prompt_p): Delete declaration.
8190 (interp_prompt_p_ftype): Delete.
8191 (struct interp_procs) <prompt_proc_p>: Delete field.
8192 (current_interp_display_prompt_p): Delete declaration.
8193 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8194 (_initialize_mi_interp): Adjust.
8195 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8196 'command_error' observers.
8197 (tui_on_sync_execution_done, tui_on_command_error): New
8199 (tui_display_prompt_p): Delete.
8200 (_initialize_tui_interp): Adjust.
8202 2014-05-29 Pedro Alves <palves@redhat.com>
8205 * cli/cli-interp.c: Include infrun.h and observer.h.
8206 (cli_uiout, cli_interp): New globals.
8207 (cli_on_signal_received, cli_on_end_stepping_range)
8208 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8210 (cli_interpreter_init): Install them as 'end_stepping_range',
8211 'signal_received' 'signal_exited', 'exited' and 'no_history'
8213 (_initialize_cli_interp): Remove cli_interp local.
8214 * infrun.c (handle_inferior_event): Call the several stop reason
8215 observers instead of printing the stop reason directly.
8216 (end_stepping_range): New function.
8217 (print_end_stepping_range_reason, print_signal_exited_reason)
8218 (print_exited_reason, print_signal_received_reason)
8219 (print_no_history_reason): Make static, and add an uiout
8220 parameter. Print to that instead of to CURRENT_UIOUT.
8221 * infrun.h (print_end_stepping_range_reason)
8222 (print_signal_exited_reason, print_exited_reason)
8223 (print_signal_received_reason print_no_history_reason): New
8225 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8227 <cli_uiout>: New field.
8228 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8229 uiout for CLI output. Install 'signal_received',
8230 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8232 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8233 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8234 (mi_on_no_history): New functions.
8235 (ui_out_free_cleanup): Delete function.
8236 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8237 instead use the one already stored in the MI interpreter data.
8238 (mi_ui_out): Adjust.
8239 * tui/tui-interp.c: Include infrun.h and observer.h.
8240 (tui_interp): New global.
8241 (tui_on_signal_received, tui_on_end_stepping_range)
8242 (tui_on_signal_exited, tui_on_exited)
8243 (tui_on_no_history): New functions.
8244 (tui_init): Install them as 'end_stepping_range',
8245 'signal_received' 'signal_exited', 'exited' and 'no_history'
8247 (_initialize_tui_interp): Delete tui_interp local.
8249 2014-05-29 Pedro Alves <palves@redhat.com>
8252 * linux-nat.c (linux_nat_resume_callback): Rename the second
8253 parameter to 'except'. Skip LP if it points to EXCEPT.
8254 (linux_nat_resume): Don't mark the event lwp as not stopped
8255 before resuming sibling lwps. Instead ask
8256 linux_nat_resume_callback to skip the event lwp. Mark it as not
8257 stopped after actually resuming it.
8258 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8260 (wait_lwp): Mark the lwp as stopped here.
8261 (stop_wait_callback): Mark the lwp as not stopped right after
8262 resuming it. Don't mark lwps as stopped here.
8263 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8264 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8266 2014-05-29 Pedro Alves <palves@redhat.com>
8269 * infrun.c (resume): Determine how much to resume depending on
8270 whether the caller wanted a step, not whether we can hardware step
8271 the target. Mark all threads that we intend to run as running,
8272 unless we're calling an inferior function.
8273 (normal_stop): If the thread is running an infcall, don't finish
8275 * target.c (target_resume): Don't mark threads as running here.
8277 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8279 * serial.c (_initialize_serial): Remove support for
8280 the "set remotebaud" and "show remotebaud" commands.
8281 * NEWS: Add entry documenting the removal of that command.
8283 2014-05-28 Yao Qi <yao@codesourcery.com>
8285 * charset.c: Fix typo in comments.
8287 2014-05-27 Gary Benson <gbenson@redhat.com>
8289 * utils.c (internal_vproblem): Prompt for a bug report.
8291 2014-05-26 Andy Wingo <wingo@igalia.com>
8293 * guile/scm-arch.c (arscm_mark_arch_smob):
8294 * guile/scm-block.c (bkscm_mark_block_smob)
8295 (bkscm_mark_block_syms_progress_smob):
8296 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8297 * guile/scm-exception.c (exscm_mark_exception_smob):
8298 * guile/scm-frame.c (frscm_mark_frame_smob):
8299 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8300 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8301 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8302 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8303 (ppscm_mark_pretty_printer_worker_smob):
8304 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8305 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8306 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8307 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8309 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8312 2014-05-26 Andy Wingo <wingo@igalia.com>
8313 Doug Evans <xdje42@gmail.com>
8315 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8316 empty_base_class. All uses updated.
8317 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8318 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8320 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8321 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8322 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8323 (gdbscm_gsmob_has_property_p, add_property_name)
8324 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8325 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8326 (gdb-object-has-property?, gdb-object-properties): Remove.
8327 (gdb-object-kind): Renamed from gsmob-kind.
8329 2014-05-26 Andy Wingo <wingo@igalia.com>
8331 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8332 * configure: Regenerate.
8334 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8336 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8338 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8340 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8341 (replay_memory_access_read_only, replay_memory_access_read_write)
8342 (replay_memory_access_types, replay_memory_access)
8343 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8344 (cmd_set_record_btrace, cmd_show_record_btrace)
8345 (cmd_show_replay_memory_access): New.
8346 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8347 (record_btrace_remove_breakpoint): Replace
8348 record_btrace_allow_memory_access with replay_memory_access.
8349 (_initialize_record_btrace): Add commands.
8350 * NEWS: Announce it.
8352 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8354 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8356 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8358 * MAINTAINERS (Write After Approval): Move self back from
8361 2014-05-22 Pedro Alves <palves@redhat.com>
8363 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8364 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8365 (disable_randomization, enum exec_direction_kind)
8366 (execution_direction, stop_registers, start_remote)
8367 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8368 (wait_for_inferior, normal_stop, get_last_target_status)
8369 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8370 (insert_step_resume_breakpoint_at_sal)
8371 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8372 (set_step_info, print_stop_event, signal_stop_state)
8373 (signal_print_state, signal_pass_state, signal_stop_update)
8374 (signal_print_update, signal_pass_update)
8375 (update_signals_program_target, clear_exit_convenience_vars)
8376 (displaced_step_dump_bytes, update_observer_mode)
8377 (signal_catch_update, gdb_signal_from_command): Move
8379 * infrun.h: ... to this new file.
8380 * amd64-tdep.c: Include infrun.h.
8381 * annotate.c: Include infrun.h.
8382 * arch-utils.c: Include infrun.h.
8383 * arm-linux-tdep.c: Include infrun.h.
8384 * arm-tdep.c: Include infrun.h.
8385 * break-catch-sig.c: Include infrun.h.
8386 * breakpoint.c: Include infrun.h.
8387 * common/agent.c: Include infrun.h instead of inferior.h.
8388 * corelow.c: Include infrun.h.
8389 * event-top.c: Include infrun.h.
8390 * go32-nat.c: Include infrun.h.
8391 * i386-tdep.c: Include infrun.h.
8392 * inf-loop.c: Include infrun.h.
8393 * infcall.c: Include infrun.h.
8394 * infcmd.c: Include infrun.h.
8395 * infrun.c: Include infrun.h.
8396 * linux-fork.c: Include infrun.h.
8397 * linux-nat.c: Include infrun.h.
8398 * linux-thread-db.c: Include infrun.h.
8399 * monitor.c: Include infrun.h.
8400 * nto-tdep.c: Include infrun.h.
8401 * procfs.c: Include infrun.h.
8402 * record-btrace.c: Include infrun.h.
8403 * record-full.c: Include infrun.h.
8404 * remote-m32r-sdi.c: Include infrun.h.
8405 * remote-mips.c: Include infrun.h.
8406 * remote-notif.c: Include infrun.h.
8407 * remote-sim.c: Include infrun.h.
8408 * remote.c: Include infrun.h.
8409 * reverse.c: Include infrun.h.
8410 * rs6000-tdep.c: Include infrun.h.
8411 * s390-linux-tdep.c: Include infrun.h.
8412 * solib-irix.c: Include infrun.h.
8413 * solib-osf.c: Include infrun.h.
8414 * solib-svr4.c: Include infrun.h.
8415 * target.c: Include infrun.h.
8416 * top.c: Include infrun.h.
8417 * windows-nat.c: Include infrun.h.
8418 * mi/mi-interp.c: Include infrun.h.
8419 * mi/mi-main.c: Include infrun.h.
8420 * python/py-threadevent.c: Include infrun.h.
8422 2014-05-22 Pedro Alves <palves@redhat.com>
8424 * infrun.c (handle_inferior_event): Store the exit code for
8425 --return-child-result here, instead of ...
8426 (print_exited_reason): ... here.
8428 2014-05-21 Pedro Alves <palves@redhat.com>
8431 * gdbthread.h (struct thread_control_state): New field
8433 * infrun.c (follow_fork): Copy the new thread control field to the
8435 (clear_proceed_status_thread): Clear the new thread control field.
8436 (proceed): Set the new thread control field.
8437 * interps.h (command_interp): Declare.
8438 * interps.c (command_interpreter): New global.
8439 (command_interp): New function.
8440 (interp_exec): Set `command_interpreter' while here.
8441 * cli-out.c (cli_uiout_dtor): New function.
8442 (cli_ui_out_impl): Install it.
8443 * mi/mi-interp.c: Include cli-out.h.
8444 (mi_cmd_interpreter_exec): Add comment.
8445 (restore_current_uiout_cleanup): New function.
8446 (ui_out_free_cleanup): New function.
8447 (mi_on_normal_stop): If finishing an execution command started by
8448 a CLI command, or any kind of breakpoint-like event triggered,
8449 print the stop event to the output (CLI) stream.
8450 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8452 2014-05-21 Pedro Alves <palves@redhat.com>
8454 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8455 current source line having changed.
8456 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8457 * infrun.c (normal_stop): Adjust call to
8458 set_current_sal_from_frame.
8459 * source.c (clear_lines_listed_range): New function.
8460 (set_current_source_symtab_and_line, identify_source_line): Clear
8461 the lines listed range.
8462 (line_info): Handle the first "info line" after the current source
8463 line having changed.
8464 * stack.c (print_stack_frame): Remove center handling.
8465 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8468 2014-05-21 Pedro Alves <palves@redhat.com>
8470 * inf-child.c (inf_child_mourn_inferior): New function.
8471 * inf-child.h (inf_child_mourn_inferior): New declaration.
8472 * darwin-nat.c (darwin_mourn_inferior): Use
8473 inf_child_mourn_inferior.
8474 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8475 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8476 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8477 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8478 * windows-nat.c (windows_mourn_inferior): Likewise.
8480 2014-05-21 Doug Evans <xdje42@gmail.com>
8482 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8484 2014-05-21 Doug Evans <xdje42@gmail.com>
8486 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8487 (gdbscm_out_of_range_error): Ditto.
8488 (gdbscm_memory_error): Ditto.
8489 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8490 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8491 (gdbscm_out_of_range_error): Update.
8492 (gdbscm_memory_error): Update.
8493 (gdbscm_scm_to_target_string_unsafe): Delete.
8495 2014-05-21 Pedro Alves <palves@redhat.com>
8497 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8499 (inf_child_open_target): New function.
8500 (inf_child_open): Use inf_child_open_target to push the target
8501 instead of erroring out.
8502 (inf_child_disconnect, inf_child_close)
8503 (inf_child_maybe_unpush_target): New functions.
8504 (inf_child_target): Install inf_child_disconnect and
8505 inf_child_close. Store a pointer to the returned object.
8506 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8508 * target.c (auto_connect_native_target): New global.
8509 (show_default_run_target): New function.
8510 (find_default_run_target): Return NULL if automatically connecting
8511 to the native target is disabled.
8512 (_initialize_target): Install set/show auto-connect-native-target.
8513 * NEWS: Mention "set auto-connect-native-target", and "target
8515 * linux-nat.c (super_close): New global.
8516 (linux_nat_close): Call super_close.
8517 (linux_nat_add_target): Store a pointer to the base class's
8519 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8520 inf_child_maybe_unpush.
8521 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8523 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8524 the inferior. Use inf_child_maybe_unpush_target.
8525 (inf_ttrace_attach): Don't push the target if it is already
8527 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8528 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8529 after mourning the inferior. Use inf_child_maybe_unpush_target.
8530 (darwin_attach_pid): Don't push the target if it is already
8532 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8533 mourning the inferior. Use inf_child_maybe_unpush_target.
8534 (gnu_detach): Use inf_child_maybe_unpush_target.
8535 * go32-nat.c (go32_create_inferior): Don't push the target if it
8537 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8538 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8539 (procfs_open): Rename to ...
8540 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8541 comments. Can target_preopen before changing node. Call
8542 inf_child_open_target to push the target explicitly.
8543 (procfs_attach): Don't push the target if it is already pushed.
8544 (procfs_detach): Use inf_child_maybe_unpush_target.
8545 (procfs_create_inferior): Don't push the target if it is already
8547 (nto_native_ops): New global.
8548 (procfs_open): Reimplement.
8549 (procfs_native_open): New function.
8550 (init_procfs_targets): Install procfs_native_open as to_open of
8551 "target native". Store a pointer to the "native" target in
8553 * procfs.c (procfs_attach): Don't push the target if it is already
8555 (procfs_detach): Use inf_child_maybe_unpush_target.
8556 (procfs_mourn_inferior): Only unpush the target after mourning the
8557 inferior. Use inf_child_maybe_unpush_target.
8558 (procfs_init_inferior): Don't push the target if it is already
8560 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8561 if it is already pushed.
8563 2014-05-21 Pedro Alves <palves@redhat.com>
8565 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8566 and "procfs" targets are now called "native" instead.
8568 2014-05-21 Pedro Alves <palves@redhat.com>
8570 * go32-nat.c (go32_open): Delete.
8571 (go32_target): Don't override the to_open method.
8573 2014-05-21 Pedro Alves <palves@redhat.com>
8575 * nto-procfs.c (procfs_can_run): New function.
8576 (nto_procfs_ops): New global.
8577 (init_procfs_targets): New, based on procfs_target. Install
8578 "target native" in addition to "target procfs".
8579 (_initialize_procfs): Call init_procfs_targets instead of adding
8582 2014-05-21 Pedro Alves <palves@redhat.com>
8584 * windows-nat.c (windows_target): Don't override to_shortname,
8585 to_longname or to_doc.
8587 2014-05-21 Pedro Alves <palves@redhat.com>
8589 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8592 2014-05-21 Pedro Alves <palves@redhat.com>
8594 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8595 to_shortname, to_longname or to_doc.
8597 2014-05-21 Pedro Alves <palves@redhat.com>
8599 * go32-nat.c (go32_target): Don't override to_shortname,
8600 to_longname or to_doc.
8602 2014-05-21 Pedro Alves <palves@redhat.com>
8604 * inf-child.c (inf_child_open): Remove mention of "child".
8605 (inf_child_target): Rename target to "native" instead of "child".
8607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8609 * Makefile.in (SFILES): Delete "regset.c".
8610 (COMMON_OBS): Delete "regset.o".
8612 * regset.h (regset_alloc): Delete prototype.
8614 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8616 * sparc-linux-tdep.c (sparc32_linux_gregset)
8617 (sparc32_linux_fpregset): New static regset structures.
8618 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8619 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8621 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8622 (sparc64_linux_fpregset): New static regset structures.
8623 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8624 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8625 New static regset structures.
8626 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8627 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8628 New static regset structures.
8629 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8630 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8631 New static regset structures.
8632 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8633 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8634 New static regset structures.
8635 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8637 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8639 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8640 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8641 register maps ("regmaps") from "*regset" to "*regmap". Do this
8642 for all regmap types and variables.
8643 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8644 (sparc32_linux_supply_core_gregset)
8645 (sparc32_linux_collect_core_gregset)
8646 (sparc32_linux_supply_core_fpregset)
8647 (sparc32_linux_collect_core_fpregset): Likewise.
8648 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8649 (sparc_gregmap, sparc_fpregmap): ... these.
8650 (sparc_supply_gregset, sparc_collect_gregset)
8651 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8652 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8653 (_initialize_sparc_nat): Rename regmaps.
8654 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8655 (sparc_gregmap, sparc_fpregmap): ... these.
8656 (sparc_supply_gregset, sparc_collect_gregset)
8657 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8658 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8660 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8661 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8663 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8665 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8666 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8667 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8669 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8670 (sparc32_bsd_fpregset): Rename to...
8671 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8672 (sparc32_bsd_fpregmap): ... these.
8673 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8674 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8675 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8676 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8677 (struct sparc_gregmap, struct sparc_fpregmap)
8678 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8679 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8680 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8681 (sparc32_supply_regset, sparc32_collect_gregset)
8682 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8684 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8685 (sparc64_linux_ptrace_gregmap): ... this.
8686 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8687 (_initialize_sparc64_linux_nat): Rename regmaps.
8688 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8689 (sparc64_linux_core_gregmap): ... this.
8690 (sparc64_linux_supply_core_gregset)
8691 (sparc64_linux_collect_core_gregset)
8692 (sparc64_linux_supply_core_fpregset)
8693 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8694 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8695 (sparc64_sol2_fpregset): Rename to...
8696 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8697 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8698 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8700 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8701 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8702 (sparc64_bsd_fpregset): Rename to...
8703 (struct sparc_gregmap, sparc64_sol2_gregmap)
8704 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8705 (sparc64_bsd_fpregmap): ... these.
8706 (sparc64_supply_gregset, sparc64_collect_gregset)
8707 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8709 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8710 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8711 (sparc64fbsd_gregmap): ... this.
8712 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8713 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8715 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8716 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8717 (sparc64nbsd_collect_fpregset): Likewise.
8718 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8719 (sparc64nbsd_gregmap): ... this.
8720 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8722 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8723 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8724 (sparc64obsd_gregmap): ... this.
8725 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8727 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8728 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8729 (sparc32nbsd_gregmap): ... this.
8730 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8733 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8735 * score-tdep.c (score7_linux_gregset): New static regset
8737 (score7_linux_regset_from_core_section): Remove dynamic regset
8739 (score_gdbarch_init): Drop allocation of tdep structure.
8740 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8742 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8744 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8746 (am33_regset_from_core_section): Remove dynamic regset
8749 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8751 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8752 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8754 (mips_linux_regset_from_core_section): Remove dynamic regset
8756 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8757 'gregset64', 'fpregset', and 'fpregset64'.
8758 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8759 deleted tdep fields.
8761 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8763 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8765 (amd64_regset_from_core_section): Remove dynamic regset
8767 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8769 (amd64obsd_regset_from_core_section): Remove dynamic regset
8771 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8773 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8774 x86-common regset supply function.
8775 * i386-tdep.c (i386_collect_gregset): Make static.
8776 (i386_gregset): New global regset structure.
8777 (i386_fpregset, i386_xstateregset): New static regset structures.
8778 (i386_regset_from_core_section): Remove dynamic regset
8780 (i386_gdbarch_init): Remove initialization of tdep fields
8781 'gregset', 'fpregset', and 'xstateregset'.
8782 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8783 'fpregset', and 'xstateregset'.
8784 (i386_collect_gregset): Remove prototype.
8785 (i386_gregset): New declaration.
8786 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8788 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8791 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8793 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8794 (arm_linux_vfpregset): New static regset structures.
8795 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8797 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8798 and 'vfpregset' fields.
8800 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8802 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8803 (aarch64_linux_fpregset): New static regset structures.
8804 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8805 of regset structures.
8806 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8809 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8811 * regset.h (struct regset): Remove gdbarch field.
8812 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8813 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8814 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8816 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8817 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8818 (ppc32_linux_vsxregset): Likewise.
8819 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8820 via the regcache instead of the regset.
8821 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8822 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8823 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8824 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8827 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8829 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8830 Constify structures.
8831 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8832 (alphanbsd_aout_gregset): Likewise.
8833 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8834 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8836 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8837 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8839 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8840 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8841 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8842 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8843 * m88k-tdep.c (m88k_gregset): Likewise.
8844 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8845 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8846 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8847 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8848 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8849 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8850 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8851 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8852 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8854 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8855 * sh-tdep.h (sh_corefile_gregset): Likewise.
8856 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8857 * vax-tdep.c (vax_gregset): Likewise.
8859 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8861 Fix TLS access for -static -pthread.
8862 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8863 (try_thread_db_load_1): Initialize it.
8864 (thread_db_get_thread_local_address): Call it if LM is zero.
8865 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8866 * target.h (struct target_ops) (to_get_thread_local_address): Add
8867 load_module_addr comment.
8869 2014-05-21 Pedro Alves <palves@redhat.com>
8871 * dcache.c (dcache_read_memory_partial): If reading the cache line
8872 fails, fallback to reading just the memory the caller wanted.
8874 2014-05-20 Doug Evans <dje@google.com>
8876 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8877 instead of get_current_arch.
8879 2014-05-20 Pedro Alves <palves@redhat.com>
8881 * NEWS: Mention that compare-sections now works with all targets.
8883 * remote.c (PACKET_qCRC): New enum value.
8884 (remote_verify_memory): Don't send qCRC if the target has no
8885 execution. Use packet_support/packet_ok. If the target doesn't
8886 support the qCRC packet, fallback to a deep memory copy.
8887 (compare_sections_command): Say "target image" instead of "remote
8889 (_initialize_remote): Add PACKET_qCRC to the list of config
8890 packets that have no associated command. Extend comment.
8891 * target.c (simple_verify_memory, default_verify_memory): New
8893 * target.h (struct target_ops) <to_verify_memory>: Default to
8894 default_verify_memory.
8895 (simple_verify_memory): New declaration.
8896 * target-delegates.c: Regenerate.
8898 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8900 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8902 2014-05-20 Hui Zhu <hui@codesourcery.com>
8903 Yao Qi <yao@codesourcery.com>
8906 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8907 and change address of sp and pc.
8909 2014-05-19 Tom Tromey <tromey@redhat.com>
8911 * gdbtypes.c (rank_function): Use XNEWVEC.
8912 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8914 2014-05-19 Doug Evans <dje@google.com>
8916 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8917 build_type_unit_groups and moved closer to only caller. Remove
8918 arguments. All references updated. Remove outdated .gdb_index
8920 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8921 build_type_psymtabs_1.
8923 2014-05-19 Doug Evans <dje@google.com>
8925 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8926 n_type_unit_groups, all_type_unit_groups. All uses removed.
8927 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8928 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8929 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8930 (add_type_unit_group_to_table): Delete.
8932 2014-05-19 Doug Evans <dje@google.com>
8934 * eval.c (evaluate_subexp_standard): Add some comments.
8936 2014-05-17 Doug Evans <xdje42@gmail.com>
8938 * progspace.c (remove_program_space): Delete, unused.
8939 * progspace.h (remove_program_space): Ditto.
8941 2014-05-17 Doug Evans <xdje42@gmail.com>
8943 * inferior.c (prune_inferiors): Fix comment.
8944 (remove_inferior_command): Call prune_program_spaces.
8946 2014-05-16 Doug Evans <dje@google.com>
8948 New command line option -D.
8950 * main.c (set_gdb_data_directory): New function.
8951 (captured_main): Recognize -D. Flag error for --data-directory "".
8952 Call set_gdb_data_directory.
8953 (print_gdb_help): Print --data-directory, -D.
8954 * main.h (set_gdb_data_directory): Declare.
8955 * top.c (staged_gdb_datadir): New static global.
8956 (set_gdb_datadir): Call set_gdb_data_directory
8957 (show_gdb_datadir): New function.
8958 (init_main): Update init of data-directory parameter.
8960 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8962 Import the "dirfd" gnulib module.
8963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8964 * gnulib/aclocal.m4: Update.
8965 * gnulib/config.in: Update.
8966 * gnulib/configure: Update.
8967 * gnulib/import/Makefile.am: Update.
8968 * gnulib/import/Makefile.in: Update.
8969 * gnulib/import/dirfd.c: New.
8970 * gnulib/import/m4/dirfd.m4: New.
8971 * gnulib/import/m4/gnulib-cache.m4: Update.
8972 * gnulib/import/m4/gnulib-comp.m4: Update.
8974 2014-05-16 Pierre Muller <muller@sourceware.org>
8975 Yao Qi <yao@codesourcery.com>
8977 * valprint.c (print_wchar): Move the code on checking whether
8978 W is a printable wide char to the default branch of switch
8979 statement below. Call wchar_printable instead of gdb_iswprint.
8981 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8983 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8984 ldr.w and ldrd instructions.
8986 2014-05-15 Doug Evans <dje@google.com>
8988 * dwarf2read.c (read_structure_type): Delete outdated comments.
8990 2014-05-14 Tom Tromey <tromey@redhat.com>
8992 * macrocmd.c (print_macro_definition): Reindent.
8994 2014-05-13 Doug Evans <xdje42@gmail.com>
8996 * python/py-cmd.c (cmdpy_completer): Add comment.
8997 (completers): Make const.
8999 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9001 * infrun.c (resume): Remove should_resume (unused). Move up
9002 declaration of resume_ptid.
9004 2014-05-13 Tom Tromey <tromey@redhat.com>
9006 * language.h (unop_type_check): Remove.
9007 (binop_type_check): Don't declare.
9009 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9011 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9012 call to regcache_raw_collect.
9014 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9016 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9017 mi_console->quote as the quoting character.
9019 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9021 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9023 2014-04-29 Tom Tromey <tromey@redhat.com>
9025 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9026 "show debug varobj".
9028 2014-05-07 Kyle McMartin <kyle@redhat.com>
9030 Pushed by Joel Brobecker <brobecker@adacore.com>.
9031 * aarch64-tdep.c (aarch64_software_single_step): New function.
9032 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9033 with aarch64_software_single_step.
9035 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9039 2014-05-05 Keith Seitz <keiths@redhat.com>
9041 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9042 variable or history value is successfully parsed.
9044 2014-05-05 Yao Qi <yao@codesourcery.com>
9045 Pedro Alves <palves@redhat.com>
9047 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9048 address of blocks that intersects the requested range. Trim
9049 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9051 * ctf.c (ctf_xfer_partial): Likewise.
9053 2014-05-05 Yao Qi <yao@codesourcery.com>
9055 * printcmd.c (display_command): Remove the check to
9056 target_has_execution.
9058 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9060 * ppcobsd-nat.c: Include "obsd-nat.h".
9061 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9063 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9065 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9067 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9068 and 16-bit signed and unsigned arguments. Update comment.
9069 (stap_parse_probe_arguments): Extend code to handle such
9070 arguments. Use warning instead of complaint to notify about
9071 unrecognized bitness.
9073 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9075 PR breakpoints/16889
9076 * stap-probe.c (stap_parse_probe_arguments): Simplify
9077 check for non-prefixed probes (i.e., probes whose
9078 arguments do not start with "N@"). Always set the
9079 argument type to a sane value.
9081 2014-05-01 David Taylor <dtaylor@emc.com>
9083 * remote.c (compare_sections_command): Add -r option to compare
9084 all loadable read-only sections.
9086 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9088 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9089 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9091 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9092 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9093 Remove unused CORE_ADDR argument. Update all callers.
9095 2014-04-29 Pedro Alves <palves@redhat.com>
9097 * remote.c (struct packet_config) <detect>: Extend comment.
9098 (add_packet_config_cmd): Don't set the config's detect or support
9100 (init_all_packet_configs): Also initialize the config's 'detect'
9102 (reset_all_packet_configs_support): New function.
9103 (remote_open_1): Call reset_all_packet_configs_support instead of
9104 init_all_packet_configs.
9105 (_initialize_remote): Initialize all packet configs. Assert that
9106 all packets have an associated command, except a few known
9109 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9111 * dwarf2read.c (read_subrange_type): Handle dynamic
9112 DW_AT_lower_bound attributes.
9114 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9116 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9117 dynamic bounds before computing its upper bound.
9118 (ada_discrete_type_low_bound): Same as above with the lower bound.
9120 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9122 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9123 range types. Adjust the array handling implementation to
9124 take advantage of this change.
9125 (resolve_dynamic_range): New function, mostly extracted from
9126 resolve_dynamic_bounds.
9127 (resolve_dynamic_array): New function, mostly extracted from
9128 resolve_dynamic_bounds.
9129 (resolve_dynamic_bounds): Delete.
9130 (resolve_dynamic_type): Reimplement. Add handling of
9131 TYPE_CODE_RANGE types.
9133 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9135 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9136 handling of parallel ___XA types.
9138 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9140 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9141 unnecessary second call to static_unwrap_type.
9143 2014-04-27 Hui Zhu <hui@codesourcery.com>
9145 * stack.c (print_frame_info): Call do_gdb_disassembly with
9146 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9148 2014-04-26 Doug Evans <xdje42@gmail.com>
9150 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9152 2014-04-25 Pedro Alves <palves@redhat.com>
9155 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9156 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9157 and newline from built string.
9158 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9159 (linux_ptrace_attach_fail_reason): ... this.
9160 * linux-nat.c (linux_nat_attach): Adjust to use
9161 linux_ptrace_attach_fail_reason.
9163 2014-04-25 Pedro Alves <palves@redhat.com>
9165 * remote.c (struct remote_state): Remove multi_process_aware,
9166 non_stop_aware, cond_tracepoints, cond_breakpoints,
9167 breakpoint_commands, fast_tracepoints, static_tracepoints,
9168 install_in_trace, disconnected_tracing,
9169 enable_disable_tracepoints, string_tracing, and
9170 augmented_libraries_svr4_read fields.
9171 (remote_multi_process_p): Move further below in the file.
9172 (struct packet_config): Add comments.
9173 (update_packet_config): Delete function.
9174 (show_packet_config_cmd): Use packet_config_support.
9175 (add_packet_config_cmd): Use NULL as set callback.
9176 (packet_ok): "set remote foo-packet"-style commands no longer
9177 change config->supported -- adjust.
9178 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9179 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9180 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9181 (PACKET_QNonStop, PACKET_multiprocess_feature)
9182 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9183 (PACKET_DisconnectedTracing_feature)
9184 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9185 (set_remote_protocol_packet_cmd): Delete function.
9186 (packet_config_support, packet_support): New functions.
9187 (set_remote_protocol_Z_packet_cmd): Don't call
9188 update_packet_config.
9189 (remote_query_attached, remote_pass_signals)
9190 (remote_program_signals, remote_threads_info)
9191 (remote_threads_extra_info, remote_start_remote): Use
9193 (remote_start_remote): Use packet_config_support and
9195 (init_all_packet_configs): Set all packets to unknown support,
9196 instead of calling update_packet_config.
9197 (remote_check_symbols): Use packet_support.
9198 (remote_supported_packet): Unconditionally set the packet config's
9200 (remote_multi_process_feature, remote_non_stop_feature)
9201 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9202 (remote_breakpoint_commands_feature)
9203 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9204 (remote_install_in_trace_feature)
9205 (remote_disconnected_tracing_feature)
9206 (remote_enable_disable_tracepoint_feature)
9207 (remote_string_tracing_feature)
9208 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9209 (remote_protocol_features): Adjust to use remote_supported_packet
9210 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9211 "ConditionalTracepoints", "ConditionalBreakpoints",
9212 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9213 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9214 "EnableDisableTracepoints", and "tracenz".
9215 (remote_query_supported): Use packet_support.
9216 (remote_open_1): Adjust.
9217 (extended_remote_attach_1): Use packet_support. Switch on the
9218 result of packet_ok instead of checking whether the packet ended
9220 (remote_vcont_resume): Use packet_support.
9221 (remote_resume, remote_stop_ns, fetch_register_using_p)
9222 (remote_prepare_to_store, store_register_using_P)
9223 (check_binary_download, remote_write_bytes): Use packet_support.
9224 (remote_vkill): Use packet_support. Switch on the result of
9225 packet_ok instead of checking whether the packet ended up
9227 (extended_remote_supports_disable_randomization): Use
9229 (extended_remote_run): Switch on the result of packet_ok instead
9230 of checking whether the packet ended up disabled.
9231 (remote_insert_breakpoint, remote_remove_breakpoint)
9232 (remote_insert_watchpoint, remote_remove_watchpoint)
9233 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9235 (remote_search_memory): Use packet_config_support.
9236 (remote_get_thread_local_address, remote_get_tib_address)
9237 (remote_hostio_send_command, remote_can_execute_reverse): Use
9239 (remote_supports_cond_tracepoints)
9240 (remote_supports_cond_breakpoints)
9241 (remote_supports_fast_tracepoints)
9242 (remote_supports_static_tracepoints)
9243 (remote_supports_install_in_trace)
9244 (remote_supports_enable_disable_tracepoint)
9245 (remote_supports_string_tracing)
9246 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9247 the packet config says the feature is enabled or disabled.
9248 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9249 (remote_get_trace_status): Use packet_support.
9250 (remote_set_disconnected_tracing): Adjust to check whether the
9251 feature is enabled with packet_support.
9252 (remote_set_trace_buffer_size, remote_use_agent)
9253 (remote_can_use_agent, remote_supports_btrace): Use
9255 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9256 Use packet_config_support.
9257 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9258 the packet config says the feature is enabled or disabled.
9259 (set_range_stepping): Use packet_support.
9261 2014-04-25 Tom Tromey <tromey@redhat.com>
9263 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9266 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9268 * NEWS: Mention support for C99 variable length arrays.
9270 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9272 * ada-lang.c (standard_exc): Expand introductory comment.
9274 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9275 Walfred Tedeschi <walfred.tedeschi@intel.com>
9277 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9279 (amd64_linux_read_description): Add code to handle AVX512 xstate
9280 mask and return respective tdesc.
9281 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9282 and features/i386/x32-avx512-linux.c.
9283 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9284 (amd64_linux_core_read_description): Add code to handle AVX512
9285 xstate mask and return respective tdesc.
9286 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9287 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9289 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9290 (tdesc_amd64_avx512_linux): New prototype.
9291 (tdesc_x32_avx512_linux): Likewise.
9292 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9293 features/i386/x32-avx512.c.
9294 (amd64_ymm_avx512_names): New register names for pseudo
9296 (amd64_ymmh_avx512_names): New register names for raw registers
9298 (amd64_k_names): New register names for K registers.
9299 (amd64_zmmh_names): New register names for ZMM raw registers.
9300 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9301 (amd64_xmm_avx512_names): New register names for XMM16-31
9303 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9305 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9306 if feature is present.
9307 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9308 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9309 (AMD64_NUM_REGS): Adjust to new number of registers.
9310 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9311 registers supplied via XSTATE by AVX512 registers.
9312 (i386_linux_read_description): Add case for AVX512.
9313 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9314 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9315 (i386_linux_core_read_description): Add case for AVX512.
9316 (i386_linux_init_abi): Install supported register note section
9318 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9320 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9321 registers to be number of zmm7h + 1.
9322 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9323 * i386-tdep.c: Include features/i386/i386-avx512.c.
9324 (i386_zmm_names): Add ZMM pseudo register names array.
9325 (i386_zmmh_names): Add ZMM raw register names array.
9326 (i386_k_names): Add K raw register names array.
9327 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9328 registers. AVX512 has 16 more ZMM registers than there are YMM
9330 (i386_zmmh_regnum_p): Add function to look up register number of
9332 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9333 (i386_k_regnum_p): Likewise for K raw registers.
9334 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9335 registers added by AVX512.
9336 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9337 registers added by AVX512.
9338 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9340 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9341 (i386_pseudo_register_name): Add ZMM pseudo registers.
9342 (i386_zmm_type): Construct and return vector registers type for ZMM
9344 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9345 ZMM0-31 pseudo registers and K registers.
9346 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9347 and YMM16-31 registers from register cache.
9348 (i386_pseudo_register_write): Add code to write K, ZMM and
9350 (i386_register_reggroup_p): Add code to include/exclude AVX512
9351 registers in/from respective register groups.
9352 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9353 registers if feature is present in xcr0.
9354 (i386_gdbarch_init): Add code to initialize AVX512 feature
9355 variables in tdep structure, wire in pseudo registers and call
9356 initialize_tdesc_i386_avx512.
9357 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9359 (i386_regnum): Add AVX512 registers.
9360 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9361 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9362 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9363 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9365 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9366 (i386_ymm_avx512_regnum_p): Likewise.
9367 (i386_k_regnum_p): Likewise.
9368 (i386_zmm_regnum_p): Likewise.
9369 (i386_zmmh_regnum_p): Likewise.
9370 * i387-tdep.c : Update year in copyright notice.
9371 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9373 (XSAVE_YMM_AVX512_ADDR): New macro.
9374 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9376 (XSAVE_XMM_AVX512_ADDR): New macro.
9377 (xsave_avx512_k_offset): New table for K register offsets in
9379 (XSAVE_AVX512_K_ADDR): New macro.
9380 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9382 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9383 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9385 (i387_collect_xsave): Add code to collect AVX512 registers from
9387 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9388 of XMM16-31 registers.
9389 (I387_NUM_K_REGS): New define for number of K registers.
9390 (I387_K0_REGNUM): New define for K0 register number.
9391 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9392 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9393 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9395 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9396 (I387_XMM16_REGNUM): New define for XMM16 register number.
9397 (I387_YMM0_REGNUM): New define for YMM0 register number.
9398 (I387_KEND_REGNUM): New define for last K register number.
9399 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9400 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9402 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9404 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9406 * features/Makefile: Add AVX512 related files.
9407 * features/i386/32bit-avx512.xml: New file.
9408 * features/i386/64bit-avx512.xml: Likewise.
9409 * features/i386/amd64-avx512-linux.c: Likewise.
9410 * features/i386/amd64-avx512-linux.xml: Likewise.
9411 * features/i386/amd64-avx512.c: Likewise.
9412 * features/i386/amd64-avx512.xml: Likewise.
9413 * features/i386/i386-avx512-linux.c: Likewise.
9414 * features/i386/i386-avx512-linux.xml: Likewise.
9415 * features/i386/i386-avx512.c: Likewise.
9416 * features/i386/i386-avx512.xml: Likewise.
9417 * features/i386/x32-avx512-linux.c: Likewise.
9418 * features/i386/x32-avx512-linux.xml: Likewise.
9419 * features/i386/x32-avx512.c: Likewise.
9420 * features/i386/x32-avx512.xml: Likewise.
9421 * regformats/i386/amd64-avx512-linux.dat: New file.
9422 * regformats/i386/amd64-avx512.dat: Likewise.
9423 * regformats/i386/i386-avx512-linux.dat: Likewise.
9424 * regformats/i386/i386-avx512.dat: Likewise.
9425 * regformats/i386/x32-avx512-linux.dat: Likewise.
9426 * regformats/i386/x32-avx512.dat: Likewise.
9427 * NEWS: Add note about new support for AVX512.
9430 2014-04-23 Pedro Alves <palves@redhat.com>
9432 * breakpoint.c (insert_bp_location): Tolerate errors if the
9433 breakpoint is set in a user-loaded objfile.
9434 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9435 location is marked shlib_disabled. If the breakpoint is set in a
9436 user-loaded objfile is a GDB-side memory breakpoint, validate it
9437 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9438 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9440 * mem-break.c (memory_validate_breakpoint): New function.
9441 * objfiles.c (userloaded_objfile_contains_address_p): New
9443 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9444 * target.h (memory_validate_breakpoint): New declaration.
9446 2014-04-23 Pedro Alves <palves@redhat.com>
9448 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9449 the breakpoint is set in a shared library, only suppress
9450 errors for software breakpoints, not hardware breakpoints.
9452 2014-04-22 Pedro Alves <palves@redhat.com>
9454 * infrun.c (schedlock_applies): New function, factored out from
9455 find_thread_needs_step_over.
9456 (find_thread_needs_step_over): Use it.
9457 (switch_back_to_stepped_thread): Always clear trap_expected if the
9458 step over is finished. Return early if scheduler locking applies.
9459 Look for the stepping thread and a potential step-over thread with
9461 (currently_stepping_or_nexting_callback): Delete.
9463 2014-04-22 Nick Clifton <nickc@redhat.com>
9465 * NEWS: Mention that ARM sim now supports tracing.
9467 2014-04-22 Yao Qi <yao@codesourcery.com>
9469 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9471 * tracefile.c (tracefile_fetch_registers): ... it. New
9473 * tracefile.h (tracefile_fetch_registers): Declare.
9474 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9475 tracefile_fetch_registers.
9477 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9480 * windows-nat.c (thread_rec): Don't display a warning when
9481 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9482 fails for any reason, set th->suspended to -1, so that we don't
9483 try to resume such a thread. Also, don't return NULL in these
9484 cases, to avoid completely ruin the session due to "PC register is
9485 not available" error.
9486 (do_windows_fetch_inferior_registers): Check errors in
9487 GetThreadContext call.
9488 (windows_continue): Accept an additional argument KILLED; if not
9489 zero, ignore errors in the SetThreadContext call, since the
9490 inferior was killed and is shutting down.
9491 (windows_resume, get_windows_debug_event)
9492 (windows_create_inferior, windows_mourn_inferior)
9493 (windows_kill_inferior): All callers of windows_continue changed
9494 to adjust to its new calling sequence.
9496 2014-04-19 Yao Qi <yao@codesourcery.com>
9498 * ctf.c (ctf_open): Call post_create_inferior.
9500 2014-04-19 Yao Qi <yao@codesourcery.com>
9502 * ctf.c (handle_id): New static variable.
9503 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9504 value. Get the declaration of event "register" and get length
9505 of field "contents".
9507 2014-04-19 Yao Qi <yao@codesourcery.com>
9509 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9511 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9513 * valops.c (oload_method_static): Remove unnecessary argument
9514 METHOD. Update all callers.
9516 2014-04-18 Pedro alves <palves@redhat.com>
9517 Tom Tromey <tromey@redhat.com>
9520 * frame.c (get_prev_frame_1): Rename to ...
9521 (get_prev_frame_always): ... this, and make extern. Adjust.
9522 (skip_artificial_frames): Use get_prev_frame_always.
9523 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9524 (get_frame_unwind_stop_reason): Adjust to rename.
9525 * frame.h (get_prev_frame_always): Declare.
9526 * inline-frame.c: Include frame.h.
9527 (inline_frame_this_id): Use get_prev_frame_always.
9529 2014-04-18 Tristan Gingold <gingold@adacore.com>
9531 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9532 code by using bfd_mach_o_get_base_address.
9534 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9536 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9537 (spu_ax_pseudo_register_collect): New function.
9538 (spu_ax_pseudo_register_push_stack): Likewise.
9539 (spu_dwarf_reg_to_regnum): Likewise.
9540 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9542 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9544 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9545 Replace FRAME argument with FRAME_ID.
9546 * gdbarch.c, gdbarch.h: Regenerate.
9547 * findvar.c (default_value_from_register): Add GDBARCH argument;
9548 replace FRAME by FRAME_ID. No longer call get_frame_id.
9549 (value_from_register): Update call to gdbarch_value_from_register.
9550 * value.h (default_value_from_register): Update prototype.
9551 * s390-linux-tdep.c (s390_value_from_register): Update interface
9552 and call to default_value_from_register.
9553 * spu-tdep.c (spu_value_from_register): Likewise.
9555 * findvar.c (address_from_register): Remove TYPE argument.
9556 Do not call value_from_register; use gdbarch_value_from_register
9557 with null_frame_id instead.
9558 * value.h (address_from_register): Update prototype.
9559 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9560 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9561 address_from_register interface change.
9563 2014-04-17 Yao Qi <yao@codesourcery.com>
9565 * gdbtypes.h: Update comments to link to types and macros'
9568 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9570 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9572 2014-04-16 Keith Seitz <keiths@redhat.com>
9575 * dwarf2read.c (skip_one_die): Check that all relative-offset
9576 sibling DIEs fall within range of the current reader's buffer.
9577 (read_partial_die): Likewise.
9579 2014-04-16 Keith Seitz <keiths@redhat.com>
9582 * cp-namespace.c (lookup_symbol_file): If the type name of
9583 `this' is NULL, return immediately.
9585 2014-04-14 Keith Seitz <keiths@redhat.com>
9588 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9589 from symbol_matches_domain in symtab.c. All local callers
9590 of symbol_matches_domain updated.
9591 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9592 search STRUCT_DOMAIN.
9593 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9594 independently. standard_lookup will do that automatically.
9595 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9596 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9597 (cp_lookup_symbol_in_namespace): Likewise.
9598 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9599 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9600 may return a STRUCT_DOMAIN match.
9601 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9602 * cp-support.c: Include language.h.
9603 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9605 * psymtab.c (match_partial_symbol): Compare the requested
9606 domain with the symbol's domain directly.
9607 (lookup_partial_symbol): Likewise.
9608 * symtab.c (lookup_symbol_in_language): Explain when/why
9609 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9610 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9611 appropriate languages.
9612 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9613 and moved to ada-lang.c
9614 (lookup_block_symbol): Explain that this function only returns
9615 symbol matching the requested DOMAIN.
9616 Compare the requested domain with the symbol's domain directly.
9617 (iterate_over_symbols): Compare the requested domain with the
9618 symbol's domain directly.
9619 * symtab.h (symbol_matches_domain): Remove.
9621 2014-04-14 Tom Tromey <tromey@redhat.com>
9624 * c-exp.y (type_aggregate_p): New function.
9625 (qualified_name, classify_inner_name): Use it.
9626 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9627 and TYPE_TARGET_TYPE of an enum type.
9628 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9630 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9631 handle TYPE_DECLARED_CLASS.
9632 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9634 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9635 * valops.c (enum_constant_from_type): New function.
9636 (value_aggregate_elt): Use it.
9637 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9640 2014-04-14 Tom Tromey <tromey@redhat.com>
9642 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9643 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9645 * value.h (value_aggregate_elt): Update.
9647 2014-04-14 Tom Tromey <tromey@redhat.com>
9649 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9651 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9653 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9654 (evaluate_subexp_standard): Pass noside argument.
9655 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9656 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9657 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9658 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9659 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9661 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9663 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9664 points to a constant blob.
9666 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9668 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9669 property and store it as the high bound and flag the range accordingly.
9670 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9671 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9672 * gdbtypes.h (enum range_flags): New enum.
9673 (struct range_bounds): Add flags member.
9675 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9677 * c-typeprint.c (c_type_print_varspec_suffix): Added
9678 check for not yet resolved high bound. If unresolved, print
9679 "variable length" string to the console instead of random
9682 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9684 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9686 (ada_template_to_fixed_record_type_1): Likewise.
9687 (ada_to_fixed_type_1): Likewise.
9688 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9689 (cp_print_value): Likewise.
9690 * d-valprint.c (dynamic_array_type): Likewise.
9691 * findvar.c (address_of_variable): Likewise.
9692 * jv-valprint.c (java_value_print): Likewise.
9693 * valops.c (value_ind): Likewise.
9694 * value.c (coerce_ref): Likewise.
9696 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9698 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9699 value and retrieve the dynamic type size.
9701 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9703 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9704 passed to sizeof is dynamic evaluate the argument to compute the length.
9706 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9707 Joel Brobecker <brobecker@adacore.com>
9709 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9710 (dwarf2_evaluate_property): New function.
9711 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9712 * dwarf2read.c (attr_to_dynamic_prop): New function.
9713 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9715 * gdbtypes.c: Include dwarf2loc.h.
9716 (is_dynamic_type): New function.
9717 (resolve_dynamic_type): New function.
9718 (resolve_dynamic_bounds): New function.
9719 (get_type_length): New function.
9720 (check_typedef): Use get_type_length to compute type length.
9721 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9722 (TYPE_LOW_BOUND_KIND): New macro.
9723 (is_dynamic_type): New function prototype.
9724 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9725 to resolve dynamic properties of the type. Update comment.
9726 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9728 2014-04-14 Richard Henderson <rth@redhat.com>
9730 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9732 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9733 Doug Evans <xdje42@gmail.com>
9735 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9736 dereference TYPE_CODE_REF values.
9738 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9740 Revert the following changes due to regressions:
9742 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9743 (dwarf2_evaluate_property): New function.
9744 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9745 * dwarf2read.c (attr_to_dynamic_prop): New function.
9746 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9748 * gdbtypes.c: Include dwarf2loc.h.
9749 (is_dynamic_type): New function.
9750 (resolve_dynamic_type): New function.
9751 (resolve_dynamic_bounds): New function.
9752 (get_type_length): New function.
9753 (check_typedef): Use get_type_length to compute type length.
9754 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9755 (TYPE_LOW_BOUND_KIND): New macro.
9756 (is_dynamic_type): New function prototype.
9757 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9758 to resolve dynamic properties of the type. Update comment.
9759 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9761 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9762 passed to sizeof is dynamic evaluate the argument to compute the length.
9764 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9765 value and retrieve the dynamic type size.
9767 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9768 (ada_template_to_fixed_record_type_1): Likewise.
9769 (ada_to_fixed_type_1): Likewise.
9770 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9771 (cp_print_value): Likewise.
9772 * d-valprint.c (dynamic_array_type): Likewise.
9773 * eval.c (evaluate_subexp_with_coercion): Likewise.
9774 * findvar.c (address_of_variable): Likewise.
9775 * jv-valprint.c (java_value_print): Likewise.
9776 * valops.c (value_ind): Likewise.
9777 * value.c (coerce_ref): Likewise.
9779 * c-typeprint.c (c_type_print_varspec_suffix): Added
9780 check for not yet resolved high bound. If unresolved, print
9781 "variable length" string to the console instead of random
9784 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9785 property and store it as the high bound and flag the range accordingly.
9786 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9787 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9788 * gdbtypes.h (enum range_flags): New enum.
9789 (struct range_bounds): Add flags member.
9791 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9792 points to a constant blob.
9794 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9795 (evaluate_subexp_standard): Pass noside argument.
9796 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9797 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9798 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9799 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9800 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9802 2014-04-11 Keith Seitz <keiths@redhat.com>
9805 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9806 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9809 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9811 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9812 (evaluate_subexp_standard): Pass noside argument.
9813 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9814 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9815 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9816 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9817 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9819 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9821 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9822 points to a constant blob.
9824 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9826 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9827 property and store it as the high bound and flag the range accordingly.
9828 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9829 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9830 * gdbtypes.h (enum range_flags): New enum.
9831 (struct range_bounds): Add flags member.
9833 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9835 * c-typeprint.c (c_type_print_varspec_suffix): Added
9836 check for not yet resolved high bound. If unresolved, print
9837 "variable length" string to the console instead of random
9840 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9842 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9843 (ada_template_to_fixed_record_type_1): Likewise.
9844 (ada_to_fixed_type_1): Likewise.
9845 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9846 (cp_print_value): Likewise.
9847 * d-valprint.c (dynamic_array_type): Likewise.
9848 * eval.c (evaluate_subexp_with_coercion): Likewise.
9849 * findvar.c (address_of_variable): Likewise.
9850 * jv-valprint.c (java_value_print): Likewise.
9851 * valops.c (value_ind): Likewise.
9852 * value.c (coerce_ref): Likewise.
9854 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9856 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9857 value and retrieve the dynamic type size.
9859 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9861 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9862 passed to sizeof is dynamic evaluate the argument to compute the length.
9864 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9866 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9867 (dwarf2_evaluate_property): New function.
9868 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9869 * dwarf2read.c (attr_to_dynamic_prop): New function.
9870 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9872 * gdbtypes.c: Include dwarf2loc.h.
9873 (is_dynamic_type): New function.
9874 (resolve_dynamic_type): New function.
9875 (resolve_dynamic_bounds): New function.
9876 (get_type_length): New function.
9877 (check_typedef): Use get_type_length to compute type length.
9878 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9879 (TYPE_LOW_BOUND_KIND): New macro.
9880 (is_dynamic_type): New function prototype.
9881 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9882 to resolve dynamic properties of the type. Update comment.
9883 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9885 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9887 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9888 declaring high/low bounds and change uses accordingly. Call
9889 create_range_type instead of create_static_range_type.
9890 * gdbtypes.c (create_range_type): New function.
9891 (create_range_type): Convert bounds into struct bound_prop and pass
9892 them to create_range_type.
9893 * gdbtypes.h (struct bound_prop): New struct.
9894 (create_range_type): New function prototype.
9895 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9896 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9897 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9899 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9901 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9903 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9904 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9905 * ada-lang.c: All uses of create_range_type updated.
9906 * coffread.c: All uses of create_range_type updated.
9907 * dwarf2read.c: All uses of create_range_type updated.
9908 * f-exp.y: All uses of create_range_type updated.
9909 * m2-valprint.c: All uses of create_range_type updated.
9910 * mdebugread.c: All uses of create_range_type updated.
9911 * stabsread.c: All uses of create_range_type updated.
9912 * valops.c: All uses of create_range_type updated.
9913 * valprint.c: All uses of create_range_type updated.
9915 2014-04-10 Pedro Alves <palves@redhat.com>
9917 * breakpoint.c (single_step_breakpoints)
9918 (single_step_gdbarch): Move up in the file.
9919 (one_breakpoint_xfer_memory): New function, factored out from ...
9920 (breakpoint_xfer_memory): ... here. Also process single-step
9923 2014-04-09 Tristan Gingold <gingold@adacore.com>
9925 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9927 (darwin_decode_exception_message): Free port only after use.
9929 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9931 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9932 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9933 when setting the size of call_length.
9935 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9937 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9938 dereference TYPE_CODE_REF values.
9940 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9942 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9943 end of warning message.
9945 2014-04-03 Doug Evans <dje@google.com>
9947 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9948 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9950 2014-04-02 Alan Modra <amodra@gmail.com>
9952 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9953 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9954 (struct symbol_file_add_from_memory_args): Add size field.
9955 (find_vdso_size): New function.
9956 (add_vsyscall_page): Attempt to find vdso size.
9958 2014-04-01 Doug Evans <dje@google.com>
9960 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9962 2014-04-01 Tristan Gingold <gingold@adacore.com>
9964 * darwin-nat.c (darwin_encode_reply): Add prototype.
9965 (darwin_decode_exception_message): Reply to unknown inferiors.
9966 (darwin_decode_message): Handle message by id. Ignore message
9967 to unknown inferior.
9968 (darwin_wait): Discard unknown messages, add debug trace.
9970 2014-03-31 Doug Evans <dje@google.com>
9972 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9975 2014-03-31 Doug Evans <dje@google.com>
9977 New option "set print symbol-loading".
9979 * solib.c (solib_read_symbols): Only print symbol loading messages
9981 (solib_add): If symbol loading is in "brief" mode, notify user
9982 symbols are being loaded.
9983 (reload_shared_libraries_1): Ditto.
9984 * symfile.c (print_symbol_loading_off): New static global.
9985 (print_symbol_loading_brief): New static global.
9986 (print_symbol_loading_full): New static global.
9987 (print_symbol_loading_enums): New static global.
9988 (print_symbol_loading): New static global.
9989 (print_symbol_loading_p): New function.
9990 (symbol_file_add_with_addrs): Only print symbol loading messages
9992 (_initialize_symfile): Register "print symbol-loading" set/show
9994 * symfile.h (print_symbol_loading_p): Declare.
9996 2014-03-30 Doug Evans <xdje42@gmail.com>
9998 * infrun.c (set_last_target_status): New function.
9999 (handle_inferior_event): Call it.
10001 2014-03-30 Doug Evans <xdje42@gmail.com>
10003 * inferior.h (enum stop_kind): Improve comment.
10005 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10007 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10008 a reference, strip the reference layer before calling
10009 the lang_ops value_has_mutated callback.
10011 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10013 Remove some globals from our parser.
10014 * language.c (unk_lang_parser): Add "struct parser_state"
10016 * language.h (struct language_defn) <la_parser>: Likewise.
10017 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10018 (initialize_expout): Add "struct parser_state" argument.
10019 Rewrite function to use the parser state.
10020 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10021 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10022 write_exp_elt_longcst, write_exp_elt_dblcst,
10023 write_exp_elt_decfloatcst, write_exp_elt_type,
10024 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10025 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10026 write_dollar_variable): Likewise.
10027 (parse_exp_in_context_1): Use parser state.
10028 (insert_type_address_space): Add "struct parser_state" argument.
10030 (increase_expout_size): New function.
10031 * parser-defs.h: Forward declare "struct language_defn" and
10032 "struct parser_state".
10033 (expout, expout_size, expout_ptr): Remove extern declarations.
10034 (parse_gdbarch, parse_language): Rewrite macro declarations to
10035 accept the parser state.
10036 (struct parser_state): New struct.
10037 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10038 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10039 write_exp_elt_decfloatcst, write_exp_elt_type,
10040 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10041 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10042 write_exp_msymbol, write_dollar_variable,
10043 mark_struct_expression, insert_type_address_space): Add "struct
10044 parser_state" argument.
10045 (increase_expout_size): New function.
10046 * utils.c (do_clear_parser_state): New function.
10047 (make_cleanup_clear_parser_state): Likewise.
10048 * utils.h (make_cleanup_clear_parser_state): New function
10050 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10051 Update calls to write_exp* in order to pass the parser state.
10052 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10053 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10054 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10055 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10056 * stap-probe.c (stap_parse_register_operand): Likewise.
10057 (stap_parse_single_operand): Likewise.
10058 (stap_parse_argument_1): Likewise.
10059 (stap_parse_argument): Use parser state.
10060 * stap-probe.h: Include "parser-defs.h".
10061 (struct stap_parse_info) <pstate>: New field.
10062 * c-exp.y (parse_type): Rewrite to use parser state.
10063 (yyparse): Redefine to c_parse_internal.
10064 (pstate): New global variable.
10065 (parse_number): Add "struct parser_state" argument.
10066 (write_destructor_name): Likewise.
10067 (type_exp): Update calls to write_exp* and similars in order to
10069 (exp1, exp, variable, qualified_name, space_identifier,
10070 typename, typebase): Likewise.
10071 (write_destructor_name, parse_number, lex_one_token,
10072 classify_name, classify_inner_name, c_parse): Add "struct
10073 parser_state" argument. Update function to use parser state.
10074 * c-lang.h: Forward declare "struct parser_state".
10075 (c_parse): Add "struct parser_state" argument.
10076 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10077 (yyparse): Redefine macro to ada_parse_internal.
10078 (pstate): New variable.
10079 (write_int, write_object_renaming, write_var_or_type,
10080 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10081 type_int, type_long, type_long_long, type_float, type_double,
10082 type_long_double, type_char, type_boolean, type_system_address):
10083 Add "struct parser_state" argument.
10084 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10085 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10086 var_or_type, aggregate, aggregate_component_list,
10087 positional_list, others, component_group,
10088 component_associations): Update calls to write_exp* and similar
10089 functions in order to use parser state.
10090 (ada_parse, write_var_from_sym, write_int,
10091 write_exp_op_with_string, write_object_renaming,
10092 find_primitive_type, write_selectors, write_ambiguous_var,
10093 write_var_or_type, write_name_assoc, type_int, type_long,
10094 type_long_long, type_float, type_double, type_long_double,
10095 type_char, type_boolean, type_system_address): Add "struct
10096 parser_state" argument. Adjust function to use parser state.
10097 * ada-lang.c (parse): Likewise.
10098 * ada-lang.h: Forward declare "struct parser_state".
10099 (ada_parse): Add "struct parser_state" argument.
10100 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10101 calls to both functions.
10102 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10104 (yyparse): Redefine macro to f_parse_internal.
10105 (pstate): New variable.
10106 (parse_number): Add "struct parser_state" argument.
10107 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10108 and similars in order to use parser state.
10109 (parse_number): Adjust code to use parser state.
10111 (f_parse): New function.
10112 * f-lang.h: Forward declare "struct parser_state".
10113 (f_parse): Add "struct parser_state" argument.
10114 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10116 (yyparse): Redefine macro for java_parse_internal.
10117 (pstate): New variable.
10118 (push_expression_name, push_expression_name, insert_exp): Add
10119 "struct parser_state" argument.
10120 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10121 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10122 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10123 PostIncrementExpression, PostDecrementExpression,
10124 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10125 UnaryExpressionNotPlusMinus, CastExpression,
10126 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10127 RelationalExpression, EqualityExpression, AndExpression,
10128 ExclusiveOrExpression, InclusiveOrExpression,
10129 ConditionalAndExpression, ConditionalOrExpression,
10130 ConditionalExpression, Assignment, LeftHandSide): Update
10131 calls to write_exp* and similars in order to use parser state.
10132 (parse_number): Ajust code to use parser state.
10134 (java_parse): New function.
10135 (push_variable): Add "struct parser_state" argument. Adjust
10136 code to user parser state.
10137 (push_fieldnames, push_qualified_expression_name,
10138 push_expression_name, insert_exp): Likewise.
10139 * jv-lang.h: Forward declare "struct parser_state".
10140 (java_parse): Add "struct parser_state" argument.
10141 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10143 (yyparse): Redefine macro to m2_parse_internal.
10144 (pstate): New variable.
10145 (type_exp, exp, fblock, variable, type): Update calls to
10146 write_exp* and similars to use parser state.
10148 (m2_parse): New function.
10149 * m2-lang.h: Forward declare "struct parser_state".
10150 (m2_parse): Add "struct parser_state" argument.
10151 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10152 * objc-lang.h: Forward declare "struct parser_state".
10153 (end_msglist): Add "struct parser_state" argument.
10154 * p-exp.y (parse_type): Rewrite macro to use parser state.
10155 (yyparse): Redefine macro to pascal_parse_internal.
10156 (pstate): New variable.
10157 (parse_number): Add "struct parser_state" argument.
10158 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10159 write_exp* and similars in order to use parser state.
10160 (parse_number, yylex): Adjust code to use parser state.
10161 (pascal_parse): New function.
10162 * p-lang.h: Forward declare "struct parser_state".
10163 (pascal_parse): Add "struct parser_state" argument.
10164 * go-exp.y (parse_type): Rewrite macro to use parser state.
10165 (yyparse): Redefine macro to go_parse_internal.
10166 (pstate): New variable.
10167 (parse_number): Add "struct parser_state" argument.
10168 (type_exp, exp1, exp, variable, type): Update calls to
10169 write_exp* and similars in order to use parser state.
10170 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10171 to use parser state.
10172 (go_parse): Likewise.
10173 * go-lang.h: Forward declare "struct parser_state".
10174 (go_parse): Add "struct parser_state" argument.
10176 2014-03-27 Doug Evans <dje@google.com>
10178 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10180 2014-03-27 Doug Evans <dje@google.com>
10182 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10183 Remove argument abbrev_section. All callers updated.
10185 2014-03-27 Doug Evans <dje@google.com>
10187 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10188 addr_base, ranges_base.
10190 2014-03-26 Keith Seitz <keiths@redhat.com>
10192 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10193 types, not VAR_DOMAIN.
10195 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10197 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10199 * features/nios2-linux.c: Regenerated.
10200 * features/nios2.c: Regenerated.
10202 2014-03-25 Pedro Alves <palves@redhat.com>
10204 * cli/cli-script.c (script_from_file): Force the interpreter to
10207 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10209 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10210 small stack allocation.
10212 2014-03-24 Tristan Gingold <gingold@adacore.com>
10214 * darwin-nat.c (exc_server): Remove unused prototype.
10215 (darwin_dump_message): Correctly display data on x86_64.
10216 (darwin_encode_reply): Fix style.
10217 Add comments and fix indentation.
10219 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10221 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10223 2014-03-22 Doug Evans <xdje42@gmail.com>
10225 * infcmd.c: Whitespace fixes.
10226 (interrupt_command): Merge two function comments into one.
10228 2014-03-22 Doug Evans <xdje42@gmail.com>
10230 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10233 2014-03-22 Yao Qi <yao@codesourcery.com>
10235 * remote.c (target_read_live_memory): Remove.
10236 (memory_xfer_live_readonly_partial): Rename it to
10237 remote_xfer_live_readonly_partial. Remove argument 'object'.
10238 All callers updated. Call remote_read_bytes_1
10239 instead of target_read_live_memory.
10240 * tracepoint.c (set_traceframe_number): Remove.
10241 (make_cleanup_restore_traceframe_number): Likewise .
10242 * tracepoint.h (set_traceframe_number): Remove declaration.
10243 (make_cleanup_restore_traceframe_number): Likewise.
10245 2014-03-22 Yao Qi <yao@codesourcery.com>
10247 * remote.c (remote_read_bytes): Move code on reading from the
10249 (remote_read_bytes_1): ... here. New function.
10251 2014-03-22 Yao Qi <yao@codesourcery.com>
10253 * ctf.c (ctf_xfer_partial): Check the return value of
10254 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10255 return TARGET_XFER_UNAVAILABLE.
10256 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10257 * target.c (target_read_live_memory): Move it to remote.c.
10258 (memory_xfer_live_readonly_partial): Likewise.
10259 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10260 * remote.c (target_read_live_memory): Moved from target.c.
10261 (memory_xfer_live_readonly_partial): Likewise.
10262 (remote_read_bytes): Factored out from
10263 memory_xfer_partial_1.
10265 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10267 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10270 2014-03-21 Pedro Alves <palves@redhat.com>
10272 * infrun.c (normal_stop): Extend comment.
10274 2014-03-21 Hui Zhu <hui@codesourcery.com>
10275 Pedro Alves <palves@redhat.com>
10277 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10279 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10280 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10281 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10283 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10285 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10286 `z' formatted output modifier.
10288 2014-03-20 Tom Tromey <tromey@redhat.com>
10289 Sergio Durigan Junior <sergiodj@redhat.com>
10291 * probe.c (parse_probes): Turn assert into an ordinary error.
10292 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10293 exceptions when parsing probes. Rearrange the code for clarity.
10295 2014-03-20 Tom Tromey <tromey@redhat.com>
10298 * top.c (execute_command): Only dispatch events if the command
10299 started the target.
10301 2014-03-20 Tom Tromey <tromey@redhat.com>
10304 * infcall.c: Include event-top.h.
10305 (run_inferior_call): Call async_disable_stdin if needed.
10307 2014-03-20 Pedro Alves <palves@redhat.com>
10309 * infrun.c (prepare_to_proceed): Delete.
10310 (thread_still_needs_step_over): New function.
10311 (find_thread_needs_step_over): New function.
10312 (proceed): If the current thread needs a step-over, set its
10313 steping_over_breakpoint flag. Adjust to use
10314 find_thread_needs_step_over instead of prepare_to_proceed.
10315 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10316 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10318 (switch_back_to_stepped_thread): Step over breakpoints of all
10319 threads not the stepping thread, before switching back to the
10322 2014-03-20 Pedro Alves <palves@redhat.com>
10324 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10326 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10327 * infrun.c (saved_singlestep_ptid)
10328 (stepping_past_singlestep_breakpoint): Delete.
10329 (resume): Remove stepping_past_singlestep_breakpoint handling.
10330 (proceed): Store the prev_pc of the stepping thread too.
10331 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10333 (enum infwait_states): Delete infwait_thread_hop_state.
10334 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10336 (handle_inferior_event): Adjust.
10337 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10338 handling and the thread-hop code. Before removing single-step
10339 breakpoints, check whether the thread hit a single-step breakpoint
10340 of another thread. If it did, the trap is not a random signal.
10341 (switch_back_to_stepped_thread): If the event thread hit a
10342 single-step breakpoint, unblock it before switching to the
10343 stepping thread. Handle the case of the stepped thread having
10345 (keep_going): Handle the case of the current thread moving past a
10346 single-step breakpoint.
10348 2014-03-20 Pedro Alves <palves@redhat.com>
10350 PR breakpoints/7143
10351 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10352 are being stepped over.
10353 (breakpoint_address_match): Make extern.
10354 * breakpoint.h (breakpoint_address_match): New declaration.
10355 * inferior.h (stepping_past_instruction_at): New declaration.
10356 * infrun.c (struct step_over_info): New type.
10357 (step_over_info): New global.
10358 (set_step_over_info, clear_step_over_info)
10359 (stepping_past_instruction_at): New functions.
10360 (handle_inferior_event): Clear the step-over info when
10361 trap_expected is cleared.
10362 (resume): Remove now stale comment.
10363 (clear_proceed_status): Clear step-over info.
10364 (proceed): Adjust step-over handling to set or clear the step-over
10365 info instead of removing all breakpoints.
10366 (handle_signal_stop): When setting up a thread-hop, don't remove
10368 (stop_stepping): Clear step-over info.
10369 (keep_going): Adjust step-over handling to set or clear step-over
10370 info and then always inserting breakpoints, instead of removing
10371 all breakpoints when stepping over one.
10373 2014-03-20 Pedro Alves <palves@redhat.com>
10375 * infrun.c (previous_inferior_ptid): Adjust comment.
10376 (deferred_step_ptid): Delete.
10377 (infrun_thread_ptid_changed, prepare_to_proceed)
10378 (init_wait_for_inferior): Adjust.
10379 (handle_signal_stop): Delete deferred_step_ptid handling.
10381 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10384 * defs.h (sync_quit_force_run): New declaration.
10385 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10386 * event-top.c (async_sigterm_handler): New declaration.
10387 (async_sigterm_token): New variable.
10388 (async_init_signals): Create also async_sigterm_token.
10389 (async_sigterm_handler): New function.
10390 (sync_quit_force_run): New variable.
10391 (handle_sigterm): Replace quit_force call by other calls.
10392 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10394 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10396 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10397 offset into SPE pseudo registers.
10399 2014-03-18 Pedro Alves <palves@redhat.com>
10402 * inferior.h (print_stop_event): Declare.
10403 * infrun.c (print_stop_event): New, factored out from ...
10404 (normal_stop): ... this.
10405 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10406 of bpstat_print/print_stack_frame.
10408 2014-03-17 Tom Tromey <tromey@redhat.com>
10410 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10412 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10414 * ada-lang.c (decode_constrained_packed_array): Perform a
10415 minimal coercion for reference with coerce_ref instead of
10418 2014-03-17 Tristan Gingold <gingold@adacore.com>
10420 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10421 (darwin_solib_create_inferior_hook): Emit a warning if version
10424 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10426 * python/py-value.c (get_field_flag): Cast flag_name argument to
10427 PyObject_GetAttrString to support Python 2.4.
10429 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10431 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10432 (Global Maintainers): Remove Jan Kratochvil.
10434 2014-03-14 Pedro Alves <palves@redhat.com>
10436 * inferior.h (terminal_ours_for_output): Rename to ...
10437 (child_terminal_ours_for_output): ... this.
10438 (terminal_save_ours): Rename to ...
10439 (child_terminal_save_ours): ... this.
10440 (terminal_ours): Rename to ...
10441 (child_terminal_ours): ... this.
10442 (terminal_inferior): Rename to ...
10443 (child_terminal_inferior): ... this.
10444 (terminal_init_inferior): Rename to ...
10445 (child_terminal_init_inferior): ... this.
10446 (terminal_init_inferior_with_pgrp): Rename to ...
10447 (child_terminal_init_inferior_with_pgrp): ... this.
10448 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10449 (child_terminal_init_with_pgrp): ... this.
10450 (terminal_save_ours): Rename to ...
10451 (child_terminal_save_ours): ... this.
10452 (terminal_init_inferior): Rename to ...
10453 (child_terminal_init): ... this. Adjust.
10454 (terminal_inferior): Rename to ...
10455 (child_terminal_inferior): ... this.
10456 (terminal_ours_for_output): Rename to ...
10457 (child_terminal_ours_for_output): ... this. Adjust.
10458 (terminal_ours): Rename to ...
10459 (child_terminal_ours): ... this.
10460 (terminal_ours_1): Rename to ...
10461 (child_terminal_ours_1): ... this. Adjust.
10462 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10463 * windows-nat.c (do_initial_windows_stuff): Adjust.
10464 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10465 (gnu_terminal_init): ... this. Adjust.
10466 (gnu_target): Adjust.
10467 * inf-child.c (inf_child_target): Adjust.
10469 2014-03-13 Doug Evans <xdje42@gmail.com>
10472 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10475 2014-03-13 Doug Evans <xdje42@gmail.com>
10477 * value.c (record_latest_value): Call release_value_or_incref
10478 instead of release_value.
10480 2014-03-13 Pedro Alves <palves@redhat.com>
10482 * procfs.c (procfs_target): Don't override to_shortname,
10483 to_longname or to_doc.
10485 2014-03-13 Pedro Alves <palves@redhat.com>
10487 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10488 Unix in user visible strings.
10490 2014-03-12 Stan Shebs <stan@codesourcery.com>
10492 * gdbtypes.h: Annotate comments for Doxygen, add a page
10493 block comment with some general info.
10495 2014-03-12 Pedro Alves <palves@redhat.com>
10497 * infcmd.c (prepare_execution_command): New function, factored out
10498 from several execution commands.
10499 (run_command_1, continue_command, step_1, jump_command)
10500 (signal_command, until_command, advance_command, finish_command)
10501 (attach_command): Use prepare_execution_command.
10503 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10505 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10506 (MAX_BPTS): Define.
10507 (MAX_WPTS): Define.
10508 (struct arm_linux_thread_points): Removed.
10509 (struct arm_linux_process_info): New.
10510 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10511 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10512 (arm_linux_find_breakpoints_by_tid): Removed.
10513 (struct arch_lwp_info): New.
10514 (arm_linux_find_process_pid): New functions.
10515 (arm_linux_add_process): New functions.
10516 (arm_linux_process_info_get): New functions.
10517 (arm_linux_forget_process): New function.
10518 (arm_linux_get_debug_reg_state): New function.
10519 (struct update_registers_data): New.
10520 (update_registers_callback): New function.
10521 (arm_linux_insert_hw_breakpoint1): Updated.
10522 (arm_linux_remove_hw_breakpoint1): Updated.
10523 (arm_linux_insert_hw_breakpoint): Updated.
10524 (arm_linux_remove_hw_breakpoint): Updated.
10525 (arm_linux_insert_watchpoint): Updated.
10526 (arm_linux_remove_watchpoint): Updated.
10527 (arm_linux_new_thread): Updated.
10528 (arm_linux_prepare_to_resume): New function.
10529 (arm_linux_new_fork): New function.
10530 (_initialize_arm_linux_nat): Updated.
10532 2014-03-12 Pedro Alves <palves@redhat.com>
10534 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10536 2014-03-12 Tom Tromey <tromey@redhat.com>
10538 * inf-child.c (return_zero): New function.
10539 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10540 * aix-thread.c (aix_thread_inferior_created): New function.
10541 (aix_thread_attach): Remove.
10542 (init_aix_thread_ops): Don't set to_attach.
10543 (_initialize_aix_thread): Register inferior_created observer.
10544 * corelow.c (init_core_ops): Don't set to_attach or
10545 to_create_inferior.
10546 * exec.c (init_exec_ops): Don't set to_attach or
10547 to_create_inferior.
10548 * infcmd.c (run_command_1): Use find_run_target. Make direct
10550 (attach_command): Use find_attach_target. Make direct target
10552 * record-btrace.c (init_record_btrace_ops): Don't set
10553 to_create_inferior.
10554 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10556 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10557 set to_create_inferior.
10558 * target.c (complete_target_initialization): Add assertion.
10559 (target_create_inferior): Remove.
10560 (find_default_attach, find_default_create_inferior): Remove.
10561 (find_attach_target, find_run_target): New functions.
10562 (find_default_is_async_p, find_default_can_async_p)
10563 (target_supports_non_stop, target_attach): Remove.
10564 (init_dummy_target): Don't set to_create_inferior or
10565 to_supports_non_stop.
10566 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10567 TARGET_DEFAULT_FUNC.
10568 <to_create_inferior>: Add comment.
10569 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10570 TARGET_DEFAULT_RETURN.
10571 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10572 (find_attach_target, find_run_target): Declare.
10573 (target_create_inferior): Remove.
10574 (target_has_execution_1): Update comment.
10575 (target_supports_non_stop): Remove.
10576 * target-delegates.c: Rebuild.
10578 2014-03-12 Pedro Alves <palves@redhat.com>
10580 * inf-child.h: Update comment to not mention Unix.
10582 2014-03-12 Pedro Alves <palves@redhat.com>
10584 * inf-child.c: Update top comment to not mention Unix. Add
10585 generic comment describing how this target is meant to be used.
10586 (inf_child_post_attach, inf_child_post_startup_inferior)
10587 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10590 2014-03-12 Pedro Alves <palves@redhat.com>
10592 * nto-procfs.c: Include inf-child.h.
10593 (procfs_ops): Delete global.
10594 (procfs_can_run): Delete method.
10595 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10596 target pointer instead of referencing procfs_ops.
10597 (procfs_prepare_to_store): Delete.
10598 (init_procfs_ops): Delete function.
10599 (procfs_target): New function, based on init_procfs_ops, but
10600 inherit inf_child_target.
10601 (_initialize_procfs): Use procfs_target.
10603 2014-03-12 Pedro Alves <palves@redhat.com>
10605 * windows-nat.c: Include inf-child.h.
10606 (windows_ops): Delete global.
10607 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10609 (init_windows_ops): Delete function.
10610 (windows_target): New function, based on init_windows_ops, but
10611 inherit inf_child_target.
10612 (_initialize_windows_nat): Use windows_target. Install x86
10613 specific target methods here.
10615 2014-03-10 Doug Evans <xdje42@gmail.com>
10617 * guile/guile.c (call_initialize_gdb_module): New function.
10618 (initialize_guile): Replace call to scm_init_guile with call to
10621 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10623 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10624 in call to TYPE_CODE macro.
10626 2014-03-10 Jerome Guitton <guitton@adacore.com>
10628 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10629 Resolve tagged types to full view.
10631 2014-03-10 Hui Zhu <hui@codesourcery.com>
10633 * target.h (target_insert_breakpoint): Remove "hardware" from its
10636 2014-03-07 Doug Evans <dje@google.com>
10638 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10640 2014-03-07 Doug Evans <dje@google.com>
10642 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10643 Remove unused local comp_dir_attr. Assert exactly one of
10644 stub_comp_unit_die, stub_comp_dir is non-NULL.
10646 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10648 * target.h (complete_target_initialization, add_target):
10651 2014-03-07 Pedro Alves <palves@redhat.com>
10653 * go32-nat.c: Include inf-child.h.
10654 (go32_ops): Delete global.
10655 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10657 (go32_create_inferior): Push the passed in target pointer instead
10658 of referencing go32_ops.
10659 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10660 (go32_target): New function, based on init_go32_ops, but inherit
10662 (_initialize_go32_nat): Use go32_target. Move parts of
10663 init_go32_ops here.
10665 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10667 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10668 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10669 SYMBOL_VALUE_ADDRESS.
10670 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10672 2014-03-06 Yao Qi <yao@codesourcery.com>
10674 * breakpoint.c (get_tracepoint_by_number): Remove argument
10675 optional_p. All callers updated. Adjust comments. Update
10677 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10679 2014-03-06 Yao Qi <yao@codesourcery.com>
10681 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10682 early if get_number returns zero. Use 'p' instead of 'args'.
10684 2014-03-06 Yao Qi <yao@codesourcery.com>
10686 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10689 2014-03-06 Yao Qi <yao@codesourcery.com>
10691 PR breakpoints/16508
10692 * tracepoint.c (check_trace_running): New function.
10693 (trace_find_command): Move code to check_trace_running and
10694 call check_trace_running.
10695 (trace_find_pc_command): Likewise.
10696 (trace_find_tracepoint_command): Likewise.
10697 (trace_find_line_command): Likewise.
10698 (trace_find_range_command): Likewise.
10699 * tracepoint.h (check_trace_running): Likewise.
10700 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10702 2014-03-06 Yao Qi <yao@codesourcery.com>
10704 * target.h (struct target_ops) <to_traceframe_info>: Use
10705 TARGET_DEFAULT_NORETURN (tcomplain ()).
10706 * target-delegates.c: Regenerated.
10708 2014-03-05 Pedro Alves <palves@redhat.com>
10711 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10712 void. Update comment.
10713 (dcache_xfer_memory): Delete.
10714 (dcache_read_memory_partial): New, based on the read bits of
10715 dcache_xfer_memory.
10716 (dcache_update): Add status parameter. Use ULONGEST for len, and
10717 adjust. Discard cache lines if the reason for the update was
10719 * dcache.h (dcache_xfer_memory): Delete declaration.
10720 (dcache_read_memory_partial): New declaration.
10721 (dcache_update): Update prototype.
10722 * target.c (raw_memory_xfer_partial): Update the dcache here.
10723 (memory_xfer_partial_1): Don't handle dcache writes here.
10725 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10727 * remote-sim.c (gdbsim_load): Add const to prog.
10729 2014-03-03 Tom Tromey <tromey@redhat.com>
10731 * elfread.c (probe_key): Change to bfd_data.
10732 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10733 now per-BFD, not per-objfile.
10734 * stap-probe.c (stap_probe_destroy): Update comment.
10735 (handle_stap_probe): Allocate on the per-BFD obstack.
10737 2014-03-03 Tom Tromey <tromey@redhat.com>
10739 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10740 * breakpoint.c (create_longjmp_master_breakpoint): Use
10742 (add_location_to_breakpoint, bkpt_probe_insert_location)
10743 (bkpt_probe_remove_location): Update.
10744 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10745 * elfread.c (elf_symfile_relocate_probe): Remove.
10746 (elf_probe_fns): Update.
10747 (insert_exception_resume_breakpoint): Change type of "probe"
10748 parameter to bound_probe.
10749 (check_exception_resume): Update.
10750 * objfiles.c (objfile_relocate1): Don't relocate probes.
10751 * probe.c (bound_probe_s): New typedef.
10752 (parse_probes): Use get_probe_address. Set sal's objfile.
10753 (find_probe_by_pc): Return a bound_probe.
10754 (collect_probes): Return a VEC(bound_probe_s).
10755 (compare_probes): Update.
10756 (gen_ui_out_table_header_info): Change type of "probes"
10758 (info_probes_for_ops): Update.
10759 (get_probe_address): New function.
10760 (probe_safe_evaluate_at_pc): Update.
10761 * probe.h (struct probe_ops) <get_probe_address>: New field.
10762 <set_semaphore, clear_semaphore>: Add objfile parameter.
10763 (struct probe) <objfile>: Remove field.
10765 <address>: Update comment.
10766 (struct bound_probe): New.
10767 (find_probe_by_pc): Return a bound_probe.
10768 (get_probe_address): Declare.
10769 * solib-svr4.c (struct probe_and_action) <address>: New field.
10770 (hash_probe_and_action, equal_probe_and_action): Update.
10771 (register_solib_event_probe): Add address parameter.
10772 (solib_event_probe_at): Update.
10773 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10775 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10776 (stap_get_probe_address): New function.
10777 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10778 (compile_probe_arg): Update.
10779 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10781 (handle_stap_probe): Don't relocate the probe.
10782 (stap_relocate): Remove.
10783 (stap_gen_info_probes_table_values): Update.
10784 (stap_probe_ops): Remove stap_relocate.
10785 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10786 (debug_sym_probe_fns): Update.
10787 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10788 * symtab.c (init_sal): Use memset.
10789 * symtab.h (struct symtab_and_line) <objfile>: New field.
10790 * tracepoint.c (start_tracing, stop_tracing): Update.
10792 2014-03-03 Tom Tromey <tromey@redhat.com>
10794 * probe.h (parse_probes, find_probe_by_pc)
10795 (find_probes_in_objfile): Fix comments.
10797 2014-03-02 Doug Evans <xdje42@gmail.com>
10799 * infrun.c (handle_signal_stop): Replace test for
10800 TARGET_WAITKIND_STOPPED with an assert.
10802 2014-03-02 Doug Evans <xdje42@gmail.com>
10804 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10806 2014-03-02 Doug Evans <xdje42@gmail.com>
10808 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10810 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10812 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10814 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10816 * i386obsd-nat.c: Include "obsd-nat.h".
10817 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10819 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10821 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10823 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10825 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10827 * mips64obsd-nat.c: Include "obsd-nath".
10828 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10830 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10832 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10834 * amd64obsd-nat.c: Include "obsd-nat,h.
10835 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10837 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10839 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10841 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10842 (find_overload_match): Update call to find_oload_champ.
10843 (find_oload_champ_namespace_loop): Likewise
10845 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10847 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10849 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10850 * config/sparc/obsd64.mh: New file.
10851 * sparc64obsd-nat.c: New file.
10853 * obsd-nat.h: New file.
10854 * obsd-nat.c: New file.
10855 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10856 (ALLDEPFILES): Add obsd-nat.c.
10858 2014-02-28 Tom Tromey <tromey@redhat.com>
10860 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10861 * cli-out.h (cli_ui_out_impl): Now const.
10862 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10863 * ui-out.c (struct ui_out) <impl>: Now const.
10864 (default_ui_out_impl): Now const.
10865 (ui_out_new): Make 'impl' parameter const.
10866 * ui-out.h (ui_out_new): Update.
10868 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10870 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10872 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10874 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10876 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10878 Additional PR 8882 fix.
10879 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10881 2014-02-27 Pedro Alves <palves@redhat.com>
10883 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10886 2014-02-27 Pedro Alves <palves@redhat.com>
10889 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10890 * nat/linux-waitpid.c: Include string.h.
10891 (status_to_str): Moved here and made extern.
10892 * nat/linux-waitpid.h (status_to_str): New declaration.
10894 2014-02-27 Hui Zhu <hui@codesourcery.com>
10897 * infrun.c (ptid_match): Move ...
10898 * common/ptid.c (ptid_match): ... here.
10899 * inferior.h (ptid_match): Move ...
10900 * common/ptid.h (ptid_match): ... here.
10902 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10904 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10905 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10908 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10910 * obsd-tdep.c (obsd_auxv_parse): New function.
10911 (obsd_init_abi): Set auxv_parse.
10913 * gdbarch.sh (auxv_parse): New.
10914 * gdbarch.h: Regenerated.
10915 * gdbarch.c: Regenerated.
10916 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10918 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10920 * guile/scm-value.c (gdbscm_history_append_x): New function.
10921 (value_functions): Add it.
10923 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10925 * dwarf2read.c (attr_value_as_address): New function.
10926 (dwarf2_find_base_address, read_call_site_scope): Use
10927 attr_value_as_address in place of DW_ADDR.
10928 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10929 the low and high addresses. Slight rework of the handling
10930 of the high pc being a constant form, and limit it to
10931 DWARF verson 4 or higher.
10932 (dwarf2_record_block_ranges): Likewise.
10933 (read_partial_die): Likewise.
10934 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10936 2014-02-26 Tom Tromey <tromey@redhat.com>
10938 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10940 2014-02-26 Tom Tromey <tromey@redhat.com>
10942 * elfread.c (elf_read_minimal_symbols): Return early if
10943 minimal symbols have already been read. Add "ei" parameter.
10944 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10945 * minsyms.c (prim_record_minimal_symbol_full): Update.
10946 * objfiles.h (struct objstats) <n_minsyms>: Move...
10947 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10948 * symmisc.c (print_objfile_statistics): Update.
10950 2014-02-26 Tom Tromey <tromey@redhat.com>
10952 * elfread.c (elf_read_minimal_symbols): New function, from
10954 (elf_symfile_read): Call it.
10956 2014-02-26 Tom Tromey <tromey@redhat.com>
10958 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10959 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10960 (lookup_minimal_symbol_solib_trampoline)
10961 (lookup_minimal_symbol_by_pc_section_1)
10962 (lookup_minimal_symbol_and_objfile): Update.
10963 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10964 Don't allocate a minimal symbol if minsyms have already been read.
10965 (build_minimal_symbol_hash_tables): Update.
10966 (install_minimal_symbols): Do nothing if minsyms already read.
10967 Use the per-BFD obstack.
10968 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10969 * objfiles.c (allocate_objfile): Call
10970 terminate_minimal_symbol_table later.
10971 (have_minimal_symbols): Update.
10972 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10973 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10974 Move from struct objfile.
10975 <minsyms_read>: New field.
10976 (struct objfile) <msymbols, minimal_symbol_count,
10977 msymbol_hash, msymbol_demangled_hash>: Move.
10978 (ALL_OBJFILE_MSYMBOLS): Update.
10979 * symfile.c (read_symbols): Set minsyms_read.
10980 (reread_symbols): Update.
10981 * symmisc.c (dump_objfile, dump_msymbols): Update.
10983 2014-02-26 Tom Tromey <tromey@redhat.com>
10985 * minsyms.c (msymbols_sort): Remove.
10986 * minsyms.h (msymbols_sort): Remove.
10987 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10988 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10989 * elfread.c (elf_symtab_read): Don't add section offsets.
10990 * xcoffread.c (record_minimal_symbol): Don't add section offset
10991 to minimal symbol address.
10992 * somread.c (text_offset, data_offset): Remove.
10993 (som_symtab_read): Don't add section offsets to minimal symbol
10995 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10996 Don't add section offsets to minimal symbols.
10997 * coffread.c (coff_symtab_read): Don't add section offsets
10998 to minimal symbol addresses.
10999 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11000 to minimal symbol addresses.
11001 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11002 section offset to minimal symbol addresses.
11003 * mdebugread.c (parse_partial_symbols): Don't add section
11004 offset to minimal symbol addresses.
11005 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11006 offset to minimal symbol addresses.
11008 2014-02-26 Tom Tromey <tromey@redhat.com>
11010 * ada-lang.c (ada_main_name): Update.
11011 (ada_add_standard_exceptions): Update.
11012 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11013 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11014 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11015 * auxv.c (ld_so_xfer_auxv): Update.
11016 * avr-tdep.c (avr_scan_prologue): Update.
11017 * ax-gdb.c (gen_var_ref): Update.
11018 * blockframe.c (get_pc_function_start)
11019 (find_pc_partial_function_gnu_ifunc): Update.
11020 * breakpoint.c (create_overlay_event_breakpoint)
11021 (create_longjmp_master_breakpoint)
11022 (create_std_terminate_master_breakpoint)
11023 (create_exception_master_breakpoint): Update.
11024 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11025 * c-valprint.c (c_val_print): Update.
11026 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11027 * common/agent.c (agent_look_up_symbols): Update.
11028 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11029 * dwarf2loc.c (call_site_to_target_addr): Update.
11030 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11031 * elfread.c (elf_gnu_ifunc_record_cache)
11032 (elf_gnu_ifunc_resolve_by_got): Update.
11033 * findvar.c (default_read_var_value): Update.
11034 * frame.c (inside_main_func): Update.
11035 * frv-tdep.c (frv_frame_this_id): Update.
11036 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11037 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11039 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11040 (hppa_hpux_find_dummy_bpaddr): Update.
11041 * hppa-tdep.c (hppa_symbol_address): Update.
11042 * infcmd.c (until_next_command): Update.
11043 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11045 * linespec.c (minsym_found, add_minsym): Update.
11046 * linux-nat.c (get_signo): Update.
11047 * linux-thread-db.c (inferior_has_bug): Update.
11048 * m32c-tdep.c (m32c_return_value)
11049 (m32c_m16c_address_to_pointer): Update.
11050 * m32r-tdep.c (m32r_frame_this_id): Update.
11051 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11052 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11053 * maint.c (maintenance_translate_address): Update.
11054 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11055 (frob_address): New function.
11056 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11057 frob_address. Rename parameter to "pc_in".
11058 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11060 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11062 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11063 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11064 * objc-lang.c (find_objc_msgsend): Update.
11065 * objfiles.c (objfile_relocate1): Update.
11066 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11067 * p-valprint.c (pascal_val_print): Update.
11068 * parse.c (write_exp_msymbol): Update.
11069 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11070 (ppc_elfv2_skip_entrypoint): Update.
11071 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11072 * printcmd.c (build_address_symbolic, msym_info)
11073 (address_info): Update.
11074 * proc-service.c (ps_pglobal_lookup): Update.
11075 * psymtab.c (find_pc_sect_psymtab_closer)
11076 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11077 Change msymbol parameter to bound_minimal_symbol.
11078 * ravenscar-thread.c (get_running_thread_id): Update.
11079 * remote.c (remote_check_symbols): Update.
11080 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11082 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11083 * solib-dsbt.c (lm_base): Update.
11084 * solib-frv.c (lm_base, main_got): Update.
11085 * solib-irix.c (locate_base): Update.
11086 * solib-som.c (som_solib_create_inferior_hook)
11087 (link_map_start): Update.
11088 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11089 * solib-svr4.c (elf_locate_base, enable_break): Update.
11090 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11091 (flush_ea_cache): Update.
11092 * stabsread.c (define_symbol, scan_file_globals): Update.
11093 * stack.c (find_frame_funname): Update.
11094 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11095 (debug_qf_find_pc_sect_symtab): Update.
11096 * symfile.c (simple_read_overlay_table)
11097 (simple_overlay_update): Update.
11098 * symfile.h (struct quick_symbol_functions)
11099 <find_pc_sect_symtab>: Change type of msymbol to
11100 bound_minimal_symbol.
11101 * symmisc.c (dump_msymbols): Update.
11102 * symtab.c (find_pc_sect_symtab_via_partial)
11103 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11104 (search_symbols, print_msymbol_info): Update.
11105 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11106 (MSYMBOL_VALUE_ADDRESS): Redefine.
11107 (BMSYMBOL_VALUE_ADDRESS): New macro.
11108 * tracepoint.c (scope_info): Update.
11109 * tui/tui-disasm.c (tui_find_disassembly_address)
11110 (tui_get_begin_asm_address): Update.
11111 * valops.c (find_function_in_inferior): Update.
11112 * value.c (value_static_field, value_fn_field): Update.
11114 2014-02-26 Tom Tromey <tromey@redhat.com>
11116 * ada-lang.c (ada_update_initial_language): Update.
11117 (ada_main_name, ada_has_this_exception_support): Update.
11118 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11119 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11120 * arm-tdep.c (arm_skip_stub): Update.
11121 * auxv.c (ld_so_xfer_auxv): Update.
11122 * avr-tdep.c (avr_scan_prologue): Update.
11123 * ax-gdb.c (gen_var_ref): Update.
11124 * breakpoint.c (struct breakpoint_objfile_data)
11125 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11126 type to bound_minimal_symbol.
11127 (create_overlay_event_breakpoint)
11128 (create_longjmp_master_breakpoint)
11129 (create_std_terminate_master_breakpoint)
11130 (create_exception_master_breakpoint): Update.
11131 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11132 * c-exp.y (classify_name): Update.
11133 * coffread.c (coff_symfile_read): Update.
11134 * common/agent.c (agent_look_up_symbols): Update.
11135 * d-lang.c (d_main_name): Update.
11136 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11137 * dec-thread.c (enable_dec_thread): Update.
11138 * dwarf2loc.c (call_site_to_target_addr): Update.
11139 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11140 * eval.c (evaluate_subexp_standard): Update.
11141 * findvar.c (struct minsym_lookup_data) <result>: Change type
11142 to bound_minimal_symbol.
11144 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11145 * frame.c (inside_main_func): Update.
11146 * frv-tdep.c (frv_frame_this_id): Update.
11147 * gcore.c (call_target_sbrk): Update.
11148 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11149 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11151 * go-lang.c (go_main_name): Update.
11152 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11153 (hppa_hpux_find_import_stub_for_addr): Update.
11154 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11155 Update. Change return type.
11156 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11158 * jit.c (jit_breakpoint_re_set_internal): Update.
11159 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11161 * linux-nat.c (get_signo): Update.
11162 * linux-thread-db.c (inferior_has_bug): Update
11163 * m32c-tdep.c (m32c_return_value)
11164 (m32c_m16c_address_to_pointer): Update.
11165 * m32r-tdep.c (m32r_frame_this_id): Update.
11166 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11167 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11168 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11169 lookup_minimal_symbol. Change return type.
11170 (lookup_minimal_symbol): Remove.
11171 (lookup_bound_minimal_symbol): Update.
11172 (lookup_minimal_symbol_text): Change return type.
11173 (lookup_minimal_symbol_solib_trampoline): Change return type.
11174 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11175 (lookup_minimal_symbol_solib_trampoline): Change return type.
11176 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11177 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11178 (value_nsstring, find_imps): Update.
11179 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11180 * p-lang.c (pascal_main_name): Update.
11181 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11182 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11183 * proc-service.c (ps_pglobal_lookup): Update.
11184 * ravenscar-thread.c (get_running_thread_msymbol): Change
11186 (has_ravenscar_runtime, get_running_thread_id): Update.
11187 * remote.c (remote_check_symbols): Update.
11188 * sol-thread.c (ps_pglobal_lookup): Update.
11189 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11190 * solib-dsbt.c (lm_base): Update.
11191 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11193 * solib-irix.c (locate_base): Update.
11194 * solib-som.c (som_solib_create_inferior_hook)
11195 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11197 * solib-spu.c (spu_enable_break): Update.
11198 * solib-svr4.c (elf_locate_base, enable_break): Update.
11199 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11200 (flush_ea_cache): Update.
11201 * stabsread.c (define_symbol): Update.
11202 * symfile.c (simple_read_overlay_table): Update.
11203 * symtab.c (find_pc_sect_line): Update.
11204 * tracepoint.c (scope_info): Update.
11205 * tui-disasm.c (tui_get_begin_asm_address): Update.
11206 * value.c (value_static_field): Update.
11208 2014-02-26 Tom Tromey <tromey@redhat.com>
11210 * minsyms.c (prim_record_minimal_symbol_full): Use
11211 SET_MSYMBOL_VALUE_ADDRESS.
11212 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11213 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11214 SET_MSYMBOL_VALUE_ADDRESS.
11215 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11216 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11218 2014-02-26 Tom Tromey <tromey@redhat.com>
11220 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11221 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11222 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11223 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11224 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11225 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11226 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11227 * ada-lang.c (ada_main_name): Update.
11228 (ada_lookup_simple_minsym): Update.
11229 (ada_make_symbol_completion_list): Update.
11230 (ada_add_standard_exceptions): Update.
11231 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11232 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11233 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11234 * arm-tdep.c (skip_prologue_function): Update.
11235 (arm_skip_stack_protector, arm_skip_stub): Update.
11236 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11237 (arm_wince_skip_main_prologue): Update.
11238 * auxv.c (ld_so_xfer_auxv): Update.
11239 * avr-tdep.c (avr_scan_prologue): Update.
11240 * ax-gdb.c (gen_var_ref): Update.
11241 * block.c (call_site_for_pc): Update.
11242 * blockframe.c (get_pc_function_start): Update.
11243 (find_pc_partial_function_gnu_ifunc): Update.
11244 * breakpoint.c (create_overlay_event_breakpoint): Update.
11245 (create_longjmp_master_breakpoint): Update.
11246 (create_std_terminate_master_breakpoint): Update.
11247 (create_exception_master_breakpoint): Update.
11248 (resolve_sal_pc): Update.
11249 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11250 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11252 * c-valprint.c (c_val_print): Update.
11253 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11254 * coffread.c (coff_symfile_read): Update.
11255 * common/agent.c (agent_look_up_symbols): Update.
11256 * dbxread.c (find_stab_function_addr): Update.
11257 (end_psymtab): Update.
11258 * dwarf2loc.c (call_site_to_target_addr): Update.
11259 (func_verify_no_selftailcall): Update.
11260 (tailcall_dump): Update.
11261 (call_site_find_chain_1): Update.
11262 (dwarf_expr_reg_to_entry_parameter): Update.
11263 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11264 (elf_gnu_ifunc_resolve_by_got): Update.
11265 * f-valprint.c (info_common_command): Update.
11266 * findvar.c (read_var_value): Update.
11267 * frame.c (get_prev_frame_1): Update.
11268 (inside_main_func): Update.
11269 * frv-tdep.c (frv_skip_main_prologue): Update.
11270 (frv_frame_this_id): Update.
11271 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11272 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11273 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11274 (gnuv3_skip_trampoline): Update.
11275 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11276 (hppa64_hpux_in_solib_call_trampoline): Update.
11277 (hppa_hpux_skip_trampoline_code): Update.
11278 (hppa64_hpux_search_dummy_call_sequence): Update.
11279 (hppa_hpux_find_import_stub_for_addr): Update.
11280 (hppa_hpux_find_dummy_bpaddr): Update.
11281 * hppa-tdep.c (hppa_symbol_address)
11282 (hppa_lookup_stub_minimal_symbol): Update.
11283 * i386-tdep.c (i386_skip_main_prologue): Update.
11284 (i386_pe_skip_trampoline_code): Update.
11285 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11286 * infcall.c (get_function_name): Update.
11287 * infcmd.c (until_next_command): Update.
11288 * jit.c (jit_breakpoint_re_set_internal): Update.
11289 (jit_inferior_init): Update.
11290 * linespec.c (minsym_found): Update.
11291 (add_minsym): Update.
11292 * linux-fork.c (info_checkpoints_command): Update.
11293 * linux-nat.c (get_signo): Update.
11294 * linux-thread-db.c (inferior_has_bug): Update.
11295 * m32c-tdep.c (m32c_return_value): Update.
11296 (m32c_m16c_address_to_pointer): Update.
11297 (m32c_m16c_pointer_to_address): Update.
11298 * m32r-tdep.c (m32r_frame_this_id): Update.
11299 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11300 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11301 * maint.c (maintenance_translate_address): Update.
11302 * minsyms.c (add_minsym_to_hash_table): Update.
11303 (add_minsym_to_demangled_hash_table): Update.
11304 (msymbol_objfile): Update.
11305 (lookup_minimal_symbol): Update.
11306 (iterate_over_minimal_symbols): Update.
11307 (lookup_minimal_symbol_text): Update.
11308 (lookup_minimal_symbol_by_pc_name): Update.
11309 (lookup_minimal_symbol_solib_trampoline): Update.
11310 (lookup_minimal_symbol_by_pc_section_1): Update.
11311 (lookup_minimal_symbol_and_objfile): Update.
11312 (prim_record_minimal_symbol_full): Update.
11313 (compare_minimal_symbols): Update.
11314 (compact_minimal_symbols): Update.
11315 (build_minimal_symbol_hash_tables): Update.
11316 (install_minimal_symbols): Update.
11317 (terminate_minimal_symbol_table): Update.
11318 (find_solib_trampoline_target): Update.
11319 (minimal_symbol_upper_bound): Update.
11320 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11321 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11322 (mips_skip_pic_trampoline_code): Update.
11323 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11324 * objc-lang.c (selectors_info): Update.
11325 (classes_info): Update.
11326 (find_methods): Update.
11327 (find_imps): Update.
11328 (find_objc_msgsend): Update.
11329 * objfiles.c (objfile_relocate1): Update.
11330 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11331 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11332 * p-valprint.c (pascal_val_print): Update.
11333 * parse.c (write_exp_msymbol): Update.
11334 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11335 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11336 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11337 * printcmd.c (build_address_symbolic): Update.
11338 (sym_info): Update.
11339 (address_info): Update.
11340 * proc-service.c (ps_pglobal_lookup): Update.
11341 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11342 (find_pc_sect_psymtab): Update.
11343 * python/py-framefilter.c (py_print_frame): Update.
11344 * ravenscar-thread.c (get_running_thread_id): Update.
11345 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11347 * remote.c (remote_check_symbols): Update.
11348 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11349 (rs6000_skip_trampoline_code): Update.
11350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11351 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11352 * solib-dsbt.c (lm_base): Update.
11353 * solib-frv.c (lm_base): Update.
11354 (main_got): Update.
11355 * solib-irix.c (locate_base): Update.
11356 * solib-som.c (som_solib_create_inferior_hook): Update.
11357 (som_solib_desire_dynamic_linker_symbols): Update.
11358 (link_map_start): Update.
11359 * solib-spu.c (spu_enable_break): Update.
11360 (ocl_enable_break): Update.
11361 * solib-svr4.c (elf_locate_base): Update.
11362 (enable_break): Update.
11363 * spu-tdep.c (spu_get_overlay_table): Update.
11364 (spu_catch_start): Update.
11365 (flush_ea_cache): Update.
11366 * stabsread.c (define_symbol): Update.
11367 (scan_file_globals): Update.
11368 * stack.c (find_frame_funname): Update.
11369 (frame_info): Update.
11370 * symfile.c (simple_read_overlay_table): Update.
11371 (simple_overlay_update): Update.
11372 * symmisc.c (dump_msymbols): Update.
11373 * symtab.c (fixup_section): Update.
11374 (find_pc_sect_line): Update.
11375 (skip_prologue_sal): Update.
11376 (search_symbols): Update.
11377 (print_msymbol_info): Update.
11378 (rbreak_command): Update.
11379 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11380 (completion_list_objc_symbol): Update.
11381 (default_make_symbol_completion_list_break_on): Update.
11382 * tracepoint.c (scope_info): Update.
11383 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11384 (tui_get_begin_asm_address): Update.
11385 * valops.c (find_function_in_inferior): Update.
11386 * value.c (value_static_field): Update.
11387 (value_fn_field): Update.
11389 2014-02-26 Tom Tromey <tromey@redhat.com>
11391 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11392 bound minimal symbols. Move code that knows about minsym
11394 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11396 * minsyms.h (minimal_symbol_upper_bound): Declare.
11397 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11398 minimal_symbol_upper_bound.
11400 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11402 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11403 Use the type's name if its basic type does not have a tag.
11405 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11407 * dwarf2read.c (read_subrange_type): Add comment.
11409 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11411 * dwarf2read.c (update_enumeration_type_from_children): New
11412 function, mostly extracted from process_structure_scope.
11413 (read_enumeration_type): Call update_enumeration_type_from_children.
11414 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11415 and flag_flag_enum fields.
11417 2014-02-26 Pedro Alves <palves@redhat.com>
11419 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11420 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11421 to_xfer_partial method.
11423 2014-02-26 Pedro Alves <palves@redhat.com>
11425 * target.c (complete_target_initialization): Don't install
11426 default_xfer_partial as to_xfer_partial hook.
11427 (nomemory): Delete.
11428 (update_current_target): Don't INHERIT nor de_fault
11429 deprecated_xfer_memory. Delete de_fault macro.
11430 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11431 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11432 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11435 2014-02-26 Pedro Alves <palves@redhat.com>
11437 * go32-nat.c (my_write_child): New function.
11438 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11439 (go32_xfer_partial): New function.
11440 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11441 Instead install a to_xfer_partial hook.
11443 2014-02-26 Pedro Alves <palves@redhat.com>
11445 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11446 to_xfer_partial helper. Rewrite.
11447 (procfs_xfer_partial): New function.
11448 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11449 Install a to_xfer_partial hook.
11451 2014-02-26 Pedro Alves <palves@redhat.com>
11453 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11454 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11455 (m32r_xfer_partial): New function.
11456 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11457 Install a to_xfer_partial hook.
11459 2014-02-26 Pedro Alves <palves@redhat.com>
11461 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11463 (mips_xfer_partial): New function.
11464 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11465 hook. Install a to_xfer_partial hook.
11467 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11469 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11470 * gdbtypes.c (create_array_type_with_stride): New function,
11471 renaming create_array_type, but with an added parameter
11472 called "bit_stride".
11473 (create_array_type): Re-implement using
11474 create_array_type_with_stride.
11475 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11476 and DW_AT_bit_stride attributes.
11478 2014-02-26 Pedro Alves <palves@redhat.com>
11480 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11481 task-specific breakpoints.
11483 2014-02-25 Pedro Alves <palves@redhat.com>
11485 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11486 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11488 2014-02-25 Stan Shebs <stan@codesourcery.com>
11490 * defs.h: Annotate comments for Doxygen.
11492 2014-02-25 Tom Tromey <tromey@redhat.com>
11494 * target.h (target_ignore): Don't declare.
11495 * target.c (target_ignore): Remove.
11497 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11500 * auto-load.c (auto_load_objfile_script_1): Change filename to
11503 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11505 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11506 documentation. Adjust prototype to match the target_ops
11507 to_xfer_partial method. Adjust implementation accordingly.
11509 2014-02-25 Hui Zhu <hui@codesourcery.com>
11511 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11512 to_traceframe_info.
11514 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11516 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11517 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11518 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11519 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11520 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11521 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11522 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11523 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11525 (rl78_register_type): Use a data pointer type for SP and
11526 new pseudo registers mentioned above. Use a 16 bit integer
11527 type for all other register pairs.
11528 (rl78_register_name, rl78_g10_register_name): Update for
11529 new pseudo registers.
11530 (rl78_pseudo_register_read): Likewise.
11531 (rl78_pseudo_register_write): Likewise.
11532 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11533 to the newly added pseudo registers.
11535 2014-02-24 Doug Evans <dje@google.com>
11537 * value.c (record_latest_value): Fix comment.
11538 * printcmd.c (print_command_1): Remove code to handle -1 return from
11539 record_latest_value.
11541 2014-02-24 Pedro Alves <palves@redhat.com>
11543 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11544 deprecated_xfer_memory hook.
11545 (procfs_xfer_partial): Call procfs_xfer_memory instead
11546 of the deprecated_xfer_memory target hook.
11547 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11550 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11552 * windows-nat.c (windows_xfer_shared_libraries): Return
11553 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11554 requested object is TARGET_OBJECT_LIBRARIES.
11556 2014-02-24 Yao Qi <yao@codesourcery.com>
11558 * target.h (enum target_xfer_status)
11559 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11560 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11562 * corefile.c (memory_error_message): User updated.
11563 * exec.c (section_table_read_available_memory): Likewise.
11564 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11565 * target.c (target_xfer_status_to_string): Likewise.
11566 (raw_memory_xfer_partial): Likewise.
11567 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11568 * valops.c (read_value_memory): Likewise.
11569 * exec.h: Update comments.
11571 2014-02-24 Yao Qi <yao@codesourcery.com>
11573 * target.c (target_xfer_status_to_string): Rename argument err
11575 * target.h (target_xfer_status_to_string): Update declaration.
11576 Replace target_xfer_error_to_string with
11577 target_xfer_status_to_string in comment.
11579 2014-02-24 Yao Qi <yao@codesourcery.com>
11581 * mips-linux-nat.c (super_close): Update its type.
11582 (mips_linux_close): Pass 'self' to super_close.
11584 2014-02-24 Yao Qi <yao@codesourcery.com>
11586 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11587 * corefile.c (read_memory): Adjusted.
11588 * target.c (target_write_with_progress): Adjusted.
11590 2014-02-23 Yao Qi <yao@codesourcery.com>
11592 Revert two patches:
11594 2013-10-25 Yao Qi <yao@codesourcery.com>
11596 * remote.c (remote_traceframe_info): Return early if
11597 traceframe is not selected.
11599 2013-07-19 Yao Qi <yao@codesourcery.com>
11601 * target.c (update_current_target): Change the default action
11602 of 'to_traceframe_info' from tcomplain to return_zero.
11603 * target.h (struct target_ops) <to_traceframe_info>: Add more
11606 2014-02-23 Yao Qi <yao@codesourcery.com>
11608 * valops.c (read_value_memory): Rewrite it. Call
11609 target_xfer_partial in a loop.
11610 * exec.h (section_table_available_memory): Remove declaration.
11611 Move comments to ...
11612 * exec.c (section_table_available_memory): ... here. Make it
11615 2014-02-23 Yao Qi <yao@codesourcery.com>
11617 * exec.c (section_table_read_available_memory): New function.
11618 * exec.h (section_table_read_available_memory): Declare.
11619 * ctf.c (ctf_xfer_partial): Call
11620 section_table_read_available_memory.
11621 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11623 2014-02-23 Yao Qi <yao@codesourcery.com>
11625 * ctf.c (ctf_xfer_partial): Move code to ...
11626 * exec.c (exec_read_partial_read_only): ... it. New function.
11627 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11628 * tracefile.c: Include "exec.h".
11629 * exec.h (exec_read_partial_read_only): Declare.
11631 2014-02-23 Yao Qi <yao@codesourcery.com>
11633 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11634 (tfile_has_memory): Remove.
11635 (init_tfile_ops): Don't set fields to_has_all_memory and
11636 to_has_memory of tfile_ops.
11637 * tracefile.c (tracefile_has_all_memory): New function.
11638 (tracefile_has_memory): New function.
11639 (init_tracefile_ops): Initialize fields to_has_all_memory and
11640 to_has_memory of 'ops'.
11642 2014-02-23 Yao Qi <yao@codesourcery.com>
11644 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11645 (ctf_thread_alive, ctf_get_trace_status): Remove.
11646 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11647 init_tracefile_ops.
11648 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11649 (tfile_has_stack, tfile_has_registers): Remove.
11650 (tfile_thread_alive): Remove.
11651 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11652 init_tracefile_ops.
11653 * tracefile.c (tracefile_has_stack): New function.
11654 (tracefile_has_registers): New function.
11655 (tracefile_thread_alive): New function.
11656 (tracefile_get_trace_status): New function.
11657 (init_tracefile_ops): New function.
11658 * tracefile.h (init_tracefile_ops): Declare.
11660 2014-02-23 Yao Qi <yao@codesourcery.com>
11662 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11663 (O_LARGEFILE): Likewise.
11664 (tfile_ops): Likewise.
11665 (TRACE_HEADER_SIZE): Likewise.
11666 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11667 (cur_data_size): Likewise.
11668 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11669 (tfile_close, tfile_files_info): Likewise.
11670 (tfile_get_trace_status): Likewise.
11671 (tfile_get_tracepoint_status): Likewise.
11672 (tfile_get_traceframe_address): Likewise.
11673 (tfile_trace_find, match_blocktype): Likewise.
11674 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11675 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11676 (tfile_get_trace_state_variable_value): Likewise.
11677 (tfile_has_all_memory, tfile_has_memory): Likewise.
11678 (tfile_has_stack, tfile_has_registers): Likewise.
11679 (tfile_thread_alive, build_traceframe_info): Likewise.
11680 (tfile_traceframe_info, init_tfile_ops): Likewise.
11681 (_initialize_tracepoint): Don't call init_tfile_ops
11682 and add_target_with_completer.
11683 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11684 exec.h, completer.h and filenames.h.
11685 (_initialize_tracefile_tfile): New function.
11687 2014-02-23 Yao Qi <yao@codesourcery.com>
11689 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11691 (HFILES_NO_SRCDIR): Add tracefile.h.
11692 * ctf.c: Include "tracefile.h".
11693 * tracefile.h: New file.
11694 * tracefile.c: New file
11695 * tracefile-tfile.c: New file.
11696 * tracepoint.c: Include "tracefile.h".
11697 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11698 (stop_reason_names): Add const.
11699 (trace_file_writer_xfree): Move it to tracefile.c.
11700 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11701 (trace_save_ctf): Likewise.
11702 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11703 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11704 (tfile_write_header, tfile_write_regblock_type): Likewise.
11705 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11706 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11707 (tfile_write_raw_data, tfile_end): Likewise.
11708 (tfile_trace_file_writer_new): Likewise.
11709 (free_uploaded_tp): Make it extern.
11710 (free_uploaded_tsv): Make it extern.
11711 (_initialize_tracepoint): Move code to register command 'tsave'
11713 * tracepoint.h (stop_reason_names): Declare.
11714 (struct trace_frame_write_ops): Move it to tracefile.h.
11715 (struct trace_file_write_ops): Likewise.
11716 (struct trace_file_writer): Likewise.
11717 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11719 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11722 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11724 (get_cores_used_by_process): New parameter num_cores, use it.
11725 (linux_xfer_osdata_processes): Pass num_cores to it.
11726 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11729 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11731 * target.c (memory_xfer_partial): Fix length arg in call to
11732 breakpoint_xfer_memory.
11734 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11737 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11738 number comes after the + or - signs. Adjust length of register
11739 name to be extracted.
11741 2014-02-20 Tom Tromey <tromey@redhat.com>
11743 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11744 (ada_varobj_ops): Mark "extern".
11746 2014-02-20 Tom Tromey <tromey@redhat.com>
11748 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11750 2014-02-20 Doug Evans <xdje42@gmail.com>
11752 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11753 All callers updated.
11754 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11755 All callers updated.
11756 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11757 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11759 2014-02-20 lin zuojian <manjian2006@gmail.com>
11760 Joel Brobecker <brobecker@adacore.com>
11761 Doug Evans <xdje42@gmail.com>
11764 * dwarf2read.c (struct die_info): New member in_process.
11765 (reset_die_in_process): New function.
11766 (process_die): Set it at the start, reset when returning.
11767 (inherit_abstract_dies): Only call process_die if origin_child_die
11768 not already being processed.
11770 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11772 * windows-nat.c (handle_unload_dll): Add function documentation.
11773 (do_initial_windows_stuff): Add comment explaining why we wait
11774 until after inferior initialization has finished before
11775 processing all DLLs.
11777 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11779 * windows-nat.c (get_module_name): Delete.
11780 (windows_get_exec_module_filename): New function, mostly
11781 inspired from get_module_name.
11782 (windows_pid_to_exec_file): Replace call to get_module_name
11783 by call to windows_get_exec_module_filename.
11785 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11787 * windows-nat.c (handle_load_dll): Rewrite this function's
11788 introductory comment. Remove code using get_module_name
11789 to get the DLL's name.
11791 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11793 * windows-nat.c (get_windows_debug_event): Ignore
11794 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11795 if windows_initialization_done == 0.
11796 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11797 Adjust implementation to always load all DLLs.
11798 (do_initial_windows_stuff): Replace call to
11799 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11801 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11803 * windows-nat.c (_initialize_windows_nat): Deprecate the
11804 "dll-symbols" command. Turn the "add-shared-symbol-files"
11805 and "assf" aliases into commands, and deprecate them as well.
11806 * NEWS: Add entry explaining that "dll-symbols" and its two
11807 aliases are now deprecated.
11809 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11811 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11812 new-line in debug string. Remove trailing spaces.
11814 2014-02-19 Stan Shebs <stan@codesourcery.com>
11816 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11818 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11820 * NEWS: Add entry for the new feature
11821 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11824 2014-02-19 Stan Shebs <stan@codesourcery.com>
11826 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11828 2014-02-19 Pedro Alves <palves@redhat.com>
11830 * common/ptid.h (struct ptid): Mention that process_stratum
11831 targets should prefer ptid.lwp.
11833 2014-02-19 Pedro Alves <palves@redhat.com>
11835 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11836 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11837 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11838 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11839 store remote thread ids rather than ptid.tid.
11840 (_initialize_remote): Adjust.
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target.c (target_get_unwinder): Rewrite.
11845 (target_get_tailcall_unwinder): Rewrite.
11846 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11847 (record_btrace_to_get_tailcall_unwinder): New function.
11848 (init_record_btrace_ops): Update.
11849 * target.h (struct target_ops) <to_get_unwinder,
11850 to_get_tailcall_unwinder>: Now function pointers. Use
11851 TARGET_DEFAULT_RETURN.
11853 2014-02-19 Tom Tromey <tromey@redhat.com>
11855 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11857 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11863 * target-delegates.c: Rebuild.
11864 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11865 TARGET_DEFAULT_FUNC.
11866 * target.c (default_target_decr_pc_after_break): Rename from
11867 forward_target_decr_pc_after_break. Simplify.
11868 (target_decr_pc_after_break): Rely on delegation.
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11872 * target.c (update_current_target): Do not INHERIT to_doc or
11873 to_magic. Do not de_fault to_open or to_close.
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11877 * gcore.h (objfile_find_memory_regions): Declare.
11878 * gcore.c (objfile_find_memory_regions): No longer static. Add
11880 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11881 * exec.c: Include gcore.h.
11882 (exec_set_find_memory_regions): Remove.
11883 (exec_find_memory_regions): Remove.
11884 (exec_do_find_memory_regions): Remove.
11885 (init_exec_ops): Update.
11886 * defs.h (exec_set_find_memory_regions): Remove.
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11890 * target-delegates.c: Rebuild.
11891 * target.h (struct target_ops) <to_extra_thread_info,
11892 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11893 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11894 not 0, in TARGET_DEFAULT_RETURN.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.c (complete_target_initialization): Remove casts. Use
11899 return_zero_has_execution.
11900 (return_zero): Add "ignore" argument.
11901 (return_zero_has_execution): New function.
11902 (init_dummy_target): Remove casts. Use
11903 return_zero_has_execution.
11905 2014-02-19 Tom Tromey <tromey@redhat.com>
11907 * target.c (update_current_target): Update comments. Do not
11908 INHERIT to_stratum.
11910 2014-02-19 Tom Tromey <tromey@redhat.com>
11912 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11914 * corelow.c (core_read_description): Delegate when needed.
11915 * remote.c (remote_read_description): Delegate when needed.
11916 * target-delegates.c: Rebuild.
11917 * target.c (target_read_description): Rewrite.
11918 * target.h (struct target_ops) <to_read_description>: Update
11919 comment. Use TARGET_DEFAULT_RETURN.
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11923 * target-delegates.c: Rebuild.
11924 * target.c (update_current_target): Don't inherit or default
11926 (find_default_run_target): Check against delegate_can_run.
11927 * target.h (struct target_ops) <to_can_run>: Use
11928 TARGET_DEFAULT_RETURN.
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11932 * target-delegates.c: Rebuild.
11933 * target.c (target_disconnect): Unconditionally delegate.
11934 * target.h (struct target_ops) <to_disconnect>: Use
11935 TARGET_DEFAULT_NORETURN.
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11939 * record.c (record_stop): Unconditionally delegate.
11940 * target-delegates.c: Rebuild.
11941 * target.c (target_stop_recording): Unconditionally delegate.
11942 * target.h (struct target_ops) <to_stop_recording>: Use
11943 TARGET_DEFAULT_IGNORE.
11945 2014-02-19 Tom Tromey <tromey@redhat.com>
11947 * target-delegates.c: Rebuild.
11948 * target.c (target_enable_btrace): Unconditionally delegate.
11949 * target.h (struct target_ops) <to_enable_btrace>: Use
11950 TARGET_DEFAULT_NORETURN.
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11954 * target-delegates.c: Rebuild.
11955 * target.c (target_read_btrace): Unconditionally delegate.
11956 * target.h (struct target_ops) <to_read_btrace>: Use
11957 TARGET_DEFAULT_NORETURN.
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11961 * target-delegates.c: Rebuild.
11962 * target.c (target_teardown_btrace): Unconditionally delegate.
11963 * target.h (struct target_ops) <to_teardown_btrace>: Use
11964 TARGET_DEFAULT_NORETURN.
11966 2014-02-19 Tom Tromey <tromey@redhat.com>
11968 * target-delegates.c: Rebuild.
11969 * target.c (target_disable_btrace): Unconditionally delegate.
11970 * target.h (struct target_ops) <to_disable_btrace>: Use
11971 TARGET_DEFAULT_NORETURN.
11973 2014-02-19 Tom Tromey <tromey@redhat.com>
11975 * target-delegates.c: Rebuild.
11976 * target.c (default_search_memory): New function.
11977 (simple_search_memory): Update comment.
11978 (target_search_memory): Unconditionally delegate.
11979 * target.h (struct target_ops) <to_search_memory>: Use
11980 TARGET_DEFAULT_FUNC.
11982 2014-02-19 Tom Tromey <tromey@redhat.com>
11984 * auxv.c (default_auxv_parse): No longer static.
11985 (target_auxv_parse): Unconditionally delegate.
11986 * auxv.h (default_auxv_parse): Declare.
11987 * target-delegates.c: Rebuild.
11988 * target.c: Include auxv.h.
11989 * target.h (struct target_ops) <to_auxv_parse>: Use
11990 TARGET_DEFAULT_FUNC.
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_memory_map): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_memory_map>: Use
11997 TARGET_DEFAULT_RETURN.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target-delegates.c: Rebuild.
12002 * target.c (target_thread_alive): Unconditionally delegate.
12003 * target.h (struct target_ops) <to_thread_alive>: Use
12004 TARGET_DEFAULT_RETURN.
12006 2014-02-19 Tom Tromey <tromey@redhat.com>
12008 * target-delegates.c: Rebuild.
12009 * target.c (target_save_record): Unconditionally delegate.
12010 * target.h (struct target_ops) <to_save_record>: Use
12011 TARGET_DEFAULT_NORETURN.
12013 2014-02-19 Tom Tromey <tromey@redhat.com>
12015 * target-delegates.c: Rebuild.
12016 * target.c (target_delete_record): Unconditionally delegate.
12017 * target.h (struct target_ops) <to_delete_record>: Use
12018 TARGET_DEFAULT_NORETURN.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target-delegates.c: Rebuild.
12023 * target.c (target_record_is_replaying): Unconditionally
12025 * target.h (struct target_ops) <to_record_is_replaying>: Use
12026 TARGET_DEFAULT_RETURN.
12028 2014-02-19 Tom Tromey <tromey@redhat.com>
12030 * target-delegates.c: Rebuild.
12031 * target.c (target_goto_record_begin): Unconditionally delegate.
12032 * target.h (struct target_ops) <to_goto_record_begin>: Use
12033 TARGET_DEFAULT_NORETURN.
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * target-delegates.c: Rebuild.
12038 * target.c (target_goto_record_end): Unconditionally delegate.
12039 * target.h (struct target_ops) <to_goto_record_end>: Use
12040 TARGET_DEFAULT_NORETURN.
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12044 * target-delegates.c: Rebuild.
12045 * target.c (target_goto_record): Unconditionally delegate.
12046 * target.h (struct target_ops) <to_goto_record>: Use
12047 TARGET_DEFAULT_NORETURN.
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12051 * target-delegates.c: Rebuild.
12052 * target.c (target_insn_history): Unconditionally delegate.
12053 * target.h (struct target_ops) <to_insn_history>: Use
12054 TARGET_DEFAULT_NORETURN.
12056 2014-02-19 Tom Tromey <tromey@redhat.com>
12058 * target-delegates.c: Rebuild.
12059 * target.c (target_insn_history_from): Unconditionally delegate.
12060 * target.h (struct target_ops) <to_insn_history_from>: Use
12061 TARGET_DEFAULT_NORETURN.
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target-delegates.c: Rebuild.
12066 * target.c (target_insn_history_range): Unconditionally delegate.
12067 * target.h (struct target_ops) <to_insn_history_range>: Use
12068 TARGET_DEFAULT_NORETURN.
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12072 * target-delegates.c: Rebuild.
12073 * target.c (target_call_history): Unconditionally delegate.
12074 * target.h (struct target_ops) <to_call_history>: Use
12075 TARGET_DEFAULT_NORETURN.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target-delegates.c: Rebuild.
12080 * target.c (target_call_history_from): Unconditionally delegate.
12081 * target.h (struct target_ops) <to_call_history_from>: Use
12082 TARGET_DEFAULT_NORETURN.
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12086 * target-delegates.c: Rebuild.
12087 * target.c (target_call_history_range): Unconditionally delegate.
12088 * target.h (struct target_ops) <to_call_history_range>: Use
12089 TARGET_DEFAULT_NORETURN.
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12093 * target-delegates.c: Rebuild.
12094 * target.c (target_verify_memory): Unconditionally delegate.
12095 * target.h (struct target_ops) <to_verify_memory>: Use
12096 TARGET_DEFAULT_NORETURN.
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12100 * target-delegates.c: Rebuild.
12101 * target.c (target_core_of_thread): Unconditionally delegate.
12102 * target.h (struct target_ops) <to_core_of_thread>: Use
12103 TARGET_DEFAULT_RETURN.
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12107 * target-delegates.c: Rebuild.
12108 * target.c (target_flash_done): Unconditionally delegate.
12109 * target.h (struct target_ops) <to_flash_done>: Use
12110 TARGET_DEFAULT_NORETURN.
12112 2014-02-19 Tom Tromey <tromey@redhat.com>
12114 * target-delegates.c: Rebuild.
12115 * target.c (target_flash_erase): Unconditionally delegate.
12116 * target.h (struct target_ops) <to_flash_erase>: Use
12117 TARGET_DEFAULT_NORETURN.
12119 2014-02-19 Tom Tromey <tromey@redhat.com>
12121 * target-delegates.c: Rebuild.
12122 * target.c (target_get_section_table): Unconditionally delegate.
12123 * target.h (struct target_ops) <to_get_section_table>: Use
12124 TARGET_DEFAULT_RETURN.
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12128 * target-delegates.c: Rebuild.
12129 * target.c (target_pid_to_str): Unconditionally delegate.
12130 (init_dummy_target): Don't initialize to_pid_to_str.
12131 (default_pid_to_str): Rename from dummy_pid_to_str.
12132 * target.h (struct target_ops) <to_pid_to_str>: Use
12133 TARGET_DEFAULT_FUNC.
12135 2014-02-19 Tom Tromey <tromey@redhat.com>
12137 * target-delegates.c: Rebuild.
12138 * target.c (target_find_new_threads): Unconditionally delegate.
12139 * target.h (struct target_ops) <to_find_new_threads>: Use
12140 TARGET_DEFAULT_RETURN.
12142 2014-02-19 Tom Tromey <tromey@redhat.com>
12144 * target-delegates.c: Rebuild.
12145 * target.c (target_program_signals): Unconditionally delegate.
12146 * target.h (struct target_ops) <to_program_signals>: Use
12147 TARGET_DEFAULT_IGNORE.
12149 2014-02-19 Tom Tromey <tromey@redhat.com>
12151 * target-delegates.c: Rebuild.
12152 * target.c (target_pass_signals): Unconditionally delegate.
12153 * target.h (struct target_ops) <to_pass_signals>: Use
12154 TARGET_DEFAULT_IGNORE.
12156 2014-02-19 Tom Tromey <tromey@redhat.com>
12158 * target-delegates.c: Rebuild.
12159 * target.c (default_mourn_inferior): New function.
12160 (target_mourn_inferior): Unconditionally delegate.
12161 * target.h (struct target_ops) <to_mourn_inferior>: Use
12162 TARGET_DEFAULT_FUNC.
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12166 * target-delegates.c: Rebuild.
12167 * target.c (default_follow_fork): New function.
12168 (target_follow_fork): Unconditionally delegate.
12169 * target.h (struct target_ops) <to_follow_fork>: Use
12170 TARGET_DEFAULT_FUNC.
12172 2014-02-19 Tom Tromey <tromey@redhat.com>
12174 * target-delegates.c: Rebuild.
12175 * target.c (target_kill): Unconditionally delegate.
12176 * target.h (struct target_ops) <to_kill>: Use
12177 TARGET_DEFAULT_NORETURN.
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12181 * target-delegates.c: Rebuild.
12182 * target.c (target_masked_watch_num_registers): Unconditionally
12184 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12185 Use TARGET_DEFAULT_RETURN.
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12189 * target-delegates.c: Rebuild.
12190 * target.c (target_remove_mask_watchpoint): Unconditionally
12192 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12193 TARGET_DEFAULT_RETURN.
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12197 * target-delegates.c: Rebuild.
12198 * target.c (target_insert_mask_watchpoint): Unconditionally
12200 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12201 TARGET_DEFAULT_RETURN.
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_ranged_break_num_registers): Unconditionally
12208 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12209 Use TARGET_DEFAULT_RETURN.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * target-delegates.c: Rebuild.
12214 * target.c (target_fetch_registers): Unconditionally delegate.
12215 * target.h (struct target_ops) <to_fetch_registers>: Use
12216 TARGET_DEFAULT_NORETURN.
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12220 * target-delegates.c: Rebuild.
12221 * target.c (update_current_target): Don't inherit or default
12223 * target.h (struct target_ops) <to_stop>: Use
12224 TARGET_DEFAULT_IGNORE.
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_can_run_breakpoint_commands.
12231 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12232 Use TARGET_DEFAULT_RETURN.
12234 2014-02-19 Tom Tromey <tromey@redhat.com>
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_supports_evaluation_of_breakpoint_conditions.
12239 * target.h (struct target_ops)
12240 <to_supports_evaluation_of_breakpoint_conditions>: Use
12241 TARGET_DEFAULT_RETURN.
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_augmented_libraries_svr4_read.
12248 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12249 Use TARGET_DEFAULT_RETURN.
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12256 * target.h (struct target_ops) <to_can_use_agent>: Use
12257 TARGET_DEFAULT_RETURN.
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12264 * target.h (struct target_ops) <to_use_agent>: Use
12265 TARGET_DEFAULT_NORETURN.
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_traceframe_info.
12272 (return_null): Remove.
12273 * target.h (struct target_ops) <to_traceframe_info>: Use
12274 TARGET_DEFAULT_RETURN.
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12278 * target-delegates.c: Rebuild.
12279 * target.c (update_current_target): Don't inherit or default
12280 to_static_tracepoint_markers_by_strid.
12281 * target.h (struct target_ops)
12282 <to_static_tracepoint_markers_by_strid>: 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_static_tracepoint_marker_at.
12290 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12291 Use TARGET_DEFAULT_RETURN.
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_set_permissions.
12298 * target.h (struct target_ops) <to_set_permissions>: Use
12299 TARGET_DEFAULT_IGNORE.
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
12305 to_get_tib_address.
12306 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
12314 * target.h (struct target_ops) <to_set_trace_notes>: Use
12315 TARGET_DEFAULT_RETURN.
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't initialize
12321 to_set_trace_buffer_size.
12322 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12323 TARGET_DEFAULT_IGNORE.
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_set_circular_trace_buffer.
12330 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12331 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
12338 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12339 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
12346 (return_minus_one): Remove.
12347 * target.h (struct target_ops)
12348 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12352 * target-delegates.c: Rebuild.
12353 * target.c (update_current_target): Don't inherit or default
12354 to_get_raw_trace_data.
12355 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12356 TARGET_DEFAULT_NORETURN.
12358 2014-02-19 Tom Tromey <tromey@redhat.com>
12360 * target-delegates.c: Rebuild.
12361 * target.c (update_current_target): Don't inherit or default
12362 to_upload_trace_state_variables.
12363 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12364 Use TARGET_DEFAULT_RETURN.
12366 2014-02-19 Tom Tromey <tromey@redhat.com>
12368 * target-delegates.c: Rebuild.
12369 * target.c (update_current_target): Don't inherit or default
12370 to_upload_tracepoints.
12371 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12372 TARGET_DEFAULT_RETURN.
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12376 * target-delegates.c: Rebuild.
12377 * target.c (update_current_target): Don't inherit or default
12378 to_save_trace_data.
12379 * target.h (struct target_ops) <to_save_trace_data>: Use
12380 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
12387 * target.h (struct target_ops)
12388 <to_get_trace_state_variable_value>: Use 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
12395 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12399 * target-delegates.c: Rebuild.
12400 * target.c (update_current_target): Don't inherit or default
12402 * target.h (struct target_ops) <to_trace_stop>: Use
12403 TARGET_DEFAULT_NORETURN.
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12409 to_get_tracepoint_status.
12410 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12411 TARGET_DEFAULT_NORETURN.
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_get_trace_status.
12418 * target.h (struct target_ops) <to_get_trace_status>: Use
12419 TARGET_DEFAULT_RETURN.
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12426 * target.h (struct target_ops) <to_trace_start>: Use
12427 TARGET_DEFAULT_NORETURN.
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_trace_set_readonly_regions.
12434 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12435 Use TARGET_DEFAULT_NORETURN.
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_disable_tracepoint.
12442 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12443 TARGET_DEFAULT_NORETURN.
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_enable_tracepoint.
12450 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12451 TARGET_DEFAULT_NORETURN.
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_download_trace_state_variable.
12458 * target.h (struct target_ops) <to_download_trace_state_variable>:
12459 Use TARGET_DEFAULT_NORETURN.
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
12465 to_can_download_tracepoint.
12466 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12467 TARGET_DEFAULT_RETURN.
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_download_tracepoint.
12474 * target.h (struct target_ops) <to_download_tracepoint>: Use
12475 TARGET_DEFAULT_NORETURN.
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12482 * target.h (struct target_ops) <to_trace_init>: Use
12483 TARGET_DEFAULT_RETURN.
12485 2014-02-19 Tom Tromey <tromey@redhat.com>
12487 * target-delegates.c: Rebuild.
12488 * target.c (update_current_target): Don't inherit or default
12489 to_supports_string_tracing.
12490 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12491 TARGET_DEFAULT_RETURN.
12493 2014-02-19 Tom Tromey <tromey@redhat.com>
12495 * target-delegates.c: Rebuild.
12496 * target.c (update_current_target): Don't inherit or default
12497 to_supports_enable_disable_tracepoint.
12498 * target.h (struct target_ops)
12499 <to_supports_enable_disable_tracepoint>: Use
12500 TARGET_DEFAULT_RETURN.
12502 2014-02-19 Tom Tromey <tromey@redhat.com>
12504 * target-delegates.c: Rebuild.
12505 * target.c (update_current_target): Don't inherit or default
12506 to_supports_multi_process.
12507 * target.h (struct target_ops) <to_supports_multi_process>: Use
12508 TARGET_DEFAULT_RETURN.
12510 2014-02-19 Tom Tromey <tromey@redhat.com>
12512 * target-delegates.c: Rebuild.
12513 * target.c (update_current_target): Don't inherit or default
12514 to_get_ada_task_ptid.
12515 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12516 TARGET_DEFAULT_FUNC.
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12520 * target-delegates.c: Rebuild.
12521 * target.c (update_current_target): Don't inherit or default
12522 to_thread_architecture.
12523 * target.h (struct target_ops) <to_thread_architecture>: Use
12524 TARGET_DEFAULT_FUNC.
12526 2014-02-19 Tom Tromey <tromey@redhat.com>
12528 * target-delegates.c: Rebuild.
12529 * target.c (update_current_target): Don't inherit or default
12530 to_execution_direction.
12531 * target.h (struct target_ops) <to_execution_direction>: Use
12532 TARGET_DEFAULT_FUNC.
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12536 * target-delegates.c: Rebuild.
12537 * target.c (update_current_target): Don't inherit or default
12538 to_can_execute_reverse.
12539 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12540 TARGET_DEFAULT_RETURN.
12541 (target_can_execute_reverse): Unconditionally delegate.
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12545 * target-delegates.c: Rebuild.
12546 * target.c (update_current_target): Don't inherit or default
12548 (dummy_goto_bookmark): Remove.
12549 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12550 * target.h (struct target_ops) <to_goto_bookmark>: Use
12551 TARGET_DEFAULT_NORETURN.
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12555 * target-delegates.c: Rebuild.
12556 * target.c (update_current_target): Don't inherit or default
12558 (dummy_get_bookmark): Remove.
12559 (init_dummy_target): Don't inherit or default to_get_bookmark.
12560 * target.h (struct target_ops) <to_get_bookmark>: Use
12561 TARGET_DEFAULT_NORETURN
12563 2014-02-19 Tom Tromey <tromey@redhat.com>
12565 * target-delegates.c: Rebuild.
12566 * target.c (update_current_target): Don't inherit or default
12567 to_make_corefile_notes.
12568 (init_dummy_target): Don't initialize to_make_corefile_notes.
12569 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12570 TARGET_DEFAULT_FUNC.
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12574 * target-delegates.c: Rebuild.
12575 * target.c (update_current_target): Don't inherit or default
12576 to_find_memory_regions.
12577 (init_dummy_target): Don't initialize to_find_memory_regions.
12578 * target.h (struct target_ops) <to_find_memory_regions>: Use
12579 TARGET_DEFAULT_FUNC.
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12583 * target-delegates.c: Rebuild.
12584 * target.c (update_current_target): Don't inherit or default
12586 * target.h (struct target_ops) <to_log_command>: Use
12587 TARGET_DEFAULT_IGNORE.
12588 (target_log_command): Unconditionally delegate.
12590 2014-02-19 Tom Tromey <tromey@redhat.com>
12592 * target-delegates.c: Rebuild.
12593 * target.c (update_current_target): Don't inherit or default
12594 to_pid_to_exec_file.
12595 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12596 TARGET_DEFAULT_RETURN.
12598 2014-02-19 Tom Tromey <tromey@redhat.com>
12600 * target-delegates.c: Rebuild.
12601 * target.c (update_current_target): Don't inherit or default
12603 (target_thread_name): Unconditionally delegate.
12604 * target.h (struct target_ops) <to_thread_name>: Use
12605 TARGET_DEFAULT_RETURN.
12607 2014-02-19 Tom Tromey <tromey@redhat.com>
12609 * target-delegates.c: Rebuild.
12610 * target.c (update_current_target): Don't inherit or default
12611 to_extra_thread_info.
12612 * target.h (struct target_ops) <to_extra_thread_info>: Use
12613 TARGET_DEFAULT_RETURN.
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12617 * target-delegates.c: Rebuild.
12618 * target.c (update_current_target): Don't inherit or default
12620 * target.h (struct target_ops) <to_has_exited>: Use
12621 TARGET_DEFAULT_RETURN..
12623 2014-02-19 Tom Tromey <tromey@redhat.com>
12625 * target-delegates.c: Rebuild.
12626 * target.c (update_current_target): Don't inherit or default
12627 to_set_syscall_catchpoint.
12628 (return_one): Remove.
12629 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12630 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_insert_exec_catchpoint.
12637 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12638 TARGET_DEFAULT_RETURN.
12640 2014-01-08 Tom Tromey <tromey@redhat.com>
12642 * target-delegates.c: Rebuild.
12643 * target.c (update_current_target): Don't inherit or default
12644 to_insert_exec_catchpoint.
12645 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12646 TARGET_DEFAULT_RETURN.
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_vfork_catchpoint.
12653 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12654 TARGET_DEFAULT_RETURN.
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_vfork_catchpoint.
12661 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: 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_fork_catchpoint.
12669 * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_fork_catchpoint.
12677 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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_post_startup_inferior.
12685 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12686 TARGET_DEFAULT_IGNORE.
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_load>: Use
12694 TARGET_DEFAULT_NORETURN.
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_terminal_info>: Use
12702 TARGET_DEFAULT_FUNC.
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
12708 to_terminal_save_ours.
12709 * target.h (struct target_ops) <to_terminal_save_ours>: 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 * target.h (struct target_ops) <to_terminal_ours>: Use
12718 TARGET_DEFAULT_IGNORE.
12720 2014-02-19 Tom Tromey <tromey@redhat.com>
12722 * target-delegates.c: Rebuild.
12723 * target.c (update_current_target): Don't inherit or default
12724 to_terminal_ours_for_output.
12725 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12726 TARGET_DEFAULT_IGNORE.
12728 2014-02-19 Tom Tromey <tromey@redhat.com>
12730 * target-delegates.c: Rebuild.
12731 * target.c (update_current_target): Don't inherit or default
12732 to_terminal_inferior.
12733 * target.h (struct target_ops) <to_terminal_inferior>: Use
12734 TARGET_DEFAULT_IGNORE.
12736 2014-02-19 Tom Tromey <tromey@redhat.com>
12738 * target-delegates.c: Rebuild.
12739 * target.c (update_current_target): Don't inherit or default
12741 * target.h (struct target_ops) <to_terminal_init>: Use
12742 TARGET_DEFAULT_IGNORE.
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12746 * target-delegates.c: Rebuild.
12747 * target.c (update_current_target): Don't inherit or default
12748 to_can_accel_watchpoint_condition.
12749 * target.h (struct target_ops)
12750 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12752 2014-02-19 Tom Tromey <tromey@redhat.com>
12754 * target-delegates.c: Rebuild.
12755 * target.c (update_current_target): Don't inherit or default
12756 to_region_ok_for_hw_watchpoint.
12757 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12758 Use TARGET_DEFAULT_FUNC.
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12762 * target-delegates.c: Rebuild.
12763 * target.c (update_current_target): Don't inherit or default
12764 to_watchpoint_addr_within_range.
12765 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12766 Use TARGET_DEFAULT_FUNC.
12768 2014-02-19 Tom Tromey <tromey@redhat.com>
12770 * target-delegates.c: Rebuild.
12771 * target.c (update_current_target): Don't inherit or default
12772 to_remove_watchpoint.
12773 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12774 TARGET_DEFAULT_NORETURN.
12776 2014-02-19 Tom Tromey <tromey@redhat.com>
12778 * target-delegates.c: Rebuild.
12779 * target.c (update_current_target): Don't inherit or default
12780 to_insert_watchpoint.
12781 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12782 TARGET_DEFAULT_RETURN.
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12786 * target-delegates.c: Rebuild.
12787 * target.c (update_current_target): Don't inherit or default
12788 to_remove_hw_breakpoint.
12789 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12790 TARGET_DEFAULT_RETURN.
12792 2014-02-19 Tom Tromey <tromey@redhat.com>
12794 * target-delegates.c: Rebuild.
12795 * target.c (update_current_target): Don't inherit or default
12796 to_insert_hw_breakpoint.
12797 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12798 TARGET_DEFAULT_RETURN.
12800 2014-02-19 Tom Tromey <tromey@redhat.com>
12802 * target-delegates.c: Rebuild.
12803 * target.c (update_current_target): Don't inherit or default
12804 to_can_use_hw_breakpoint.
12805 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12806 TARGET_DEFAULT_RETURN.
12808 2014-02-19 Tom Tromey <tromey@redhat.com>
12810 * target-delegates.c: Rebuild.
12811 * target.c (update_current_target): Don't inherit or default
12813 * target.h (struct target_ops) <to_files_info>: Use
12814 TARGET_DEFAULT_IGNORE.
12816 2014-02-19 Tom Tromey <tromey@redhat.com>
12818 * target-delegates.c: Rebuild.
12819 * target.c (update_current_target): Don't inherit or default
12821 * target.h (struct target_ops) <to_store>: Use
12822 TARGET_DEFAULT_NORETURN.
12824 2014-02-19 Tom Tromey <tromey@redhat.com>
12826 * target-delegates.c: Rebuild.
12827 * target.c (update_current_target): Don't inherit or default
12829 * target.h (struct target_ops) <to_post_attach>: Use
12830 TARGET_DEFAULT_IGNORE.
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12834 * target-delegates.c: Rebuild.
12835 * target.c (update_current_target): Don't inherit or default
12837 (default_rcmd): New function.
12838 (do_monitor_command): Unconditionally delegate.
12839 * target.h (struct target_ops) <to_rmcd>: Use
12840 TARGET_DEFAULT_FUNC.
12842 2014-02-19 Tom Tromey <tromey@redhat.com>
12844 * target-delegates.c: Rebuild.
12845 * target.c (init_dummy_target): Don't initialize to_attach.
12846 (target_attach): Unconditionally delegate.
12847 * target.h (struct target_ops) <to_attach>: Use
12848 TARGET_DEFAULT_FUNC.
12850 2014-02-19 Tom Tromey <tromey@redhat.com>
12852 * target-delegates.c: Rebuild.
12853 * target.c (target_detach): Unconditionally delegate.
12854 (init_dummy_target): Don't initialize to_detach.
12855 * target.h (struct target_ops) <to_detach>: Use
12856 TARGET_DEFAULT_IGNORE.
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12862 (target_augmented_libraries_svr4_read): Add argument.
12863 * target.c (update_current_target): Update.
12864 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12867 2014-02-19 Tom Tromey <tromey@redhat.com>
12869 * target.h (struct target_ops) <to_call_history_range>: Add
12871 * target.c (target_call_history_range): Add argument.
12872 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12874 (record_btrace_call_history_from): Update.
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12878 * target.h (struct target_ops) <to_call_history_from>: Add
12880 * target.c (target_call_history_from): Add argument.
12881 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12886 * target.h (struct target_ops) <to_call_history>: Add argument.
12887 * target.c (target_call_history): Add argument.
12888 * record-btrace.c (record_btrace_call_history): Add 'self'
12891 2014-02-19 Tom Tromey <tromey@redhat.com>
12893 * target.h (struct target_ops) <to_insn_history_range>: Add
12895 * target.c (target_insn_history_range): Add argument.
12896 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12898 (record_btrace_insn_history_from): Update.
12900 2014-02-19 Tom Tromey <tromey@redhat.com>
12902 * target.h (struct target_ops) <to_insn_history_from>: Add
12904 * target.c (target_insn_history_from): Add argument.
12905 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12908 2014-02-19 Tom Tromey <tromey@redhat.com>
12910 * target.h (struct target_ops) <to_insn_history>: Add argument.
12911 * target.c (target_insn_history): Add argument.
12912 * record-btrace.c (record_btrace_insn_history): Add 'self'
12915 2014-02-19 Tom Tromey <tromey@redhat.com>
12917 * target.h (struct target_ops) <to_goto_record>: Add argument.
12918 * target.c (target_goto_record): Add argument.
12919 * record-full.c (record_full_goto): Add 'self' argument.
12920 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12922 2014-02-19 Tom Tromey <tromey@redhat.com>
12924 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12925 * target.c (target_goto_record_end): Add argument.
12926 * record-full.c (record_full_goto_end): Add 'self' argument.
12927 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12929 2014-02-19 Tom Tromey <tromey@redhat.com>
12931 * target.h (struct target_ops) <to_goto_record_begin>: Add
12933 * target.c (target_goto_record_begin): Add argument.
12934 * record-full.c (record_full_goto_begin): Add 'self' argument.
12935 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12940 * target.h (struct target_ops) <to_record_is_replaying>: Add
12942 * target.c (target_record_is_replaying): Add argument.
12943 * record-full.c (record_full_is_replaying): Add 'self' argument.
12944 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12946 (record_btrace_xfer_partial, record_btrace_store_registers)
12947 (record_btrace_prepare_to_store, record_btrace_resume)
12948 (record_btrace_wait, record_btrace_decr_pc_after_break)
12949 (record_btrace_find_new_threads, record_btrace_thread_alive):
12952 2014-02-19 Tom Tromey <tromey@redhat.com>
12954 * target.h (struct target_ops) <to_delete_record>: Add argument.
12955 * target.c (target_delete_record): Add argument.
12956 * record-full.c (record_full_delete): Add 'self' argument.
12958 2014-02-19 Tom Tromey <tromey@redhat.com>
12960 * target.h (struct target_ops) <to_save_record>: Add argument.
12961 * target.c (target_save_record): Add argument.
12962 * record-full.c (record_full_save): Add 'self' argument.
12963 (record_full_save): Add 'self' argument.
12965 2014-02-19 Tom Tromey <tromey@redhat.com>
12967 * target.h (struct target_ops) <to_info_record>: Add argument.
12968 * target.c (target_info_record): Add argument.
12969 * record.c (info_record_command): Add argument.
12970 * record-full.c (record_full_info): Add 'self' argument.
12971 * record-btrace.c (record_btrace_info): Add 'self' argument.
12973 2014-02-19 Tom Tromey <tromey@redhat.com>
12975 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12976 * target.c (target_stop_recording): Add argument.
12977 * record.c (record_stop): Add argument.
12978 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12983 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12984 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12985 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12987 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12988 (_initialize_amd64_linux_nat): Use it.
12989 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12990 (_initialize_i386_linux_nat): Use it.
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12994 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12995 * target.c (target_teardown_btrace): Add argument.
12996 * remote.c (remote_teardown_btrace): Add 'self' argument.
12997 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12999 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13002 2014-02-19 Tom Tromey <tromey@redhat.com>
13004 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13005 * target.c (target_disable_btrace): Add argument.
13006 * remote.c (remote_disable_btrace): Add 'self' argument.
13007 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13009 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13012 2014-02-19 Tom Tromey <tromey@redhat.com>
13014 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13015 * target.c (target_enable_btrace): Add argument.
13016 * remote.c (remote_enable_btrace): Add 'self' argument.
13017 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13019 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13022 2014-02-19 Tom Tromey <tromey@redhat.com>
13024 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13025 (target_can_use_agent): Add argument.
13026 * target.c (update_current_target): Update.
13027 * remote.c (remote_can_use_agent): Add 'self' argument.
13028 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13030 2014-02-19 Tom Tromey <tromey@redhat.com>
13032 * target.h (struct target_ops) <to_use_agent>: Add argument.
13033 (target_use_agent): Add argument.
13034 * target.c (update_current_target): Update.
13035 * remote.c (remote_use_agent): Add 'self' argument.
13036 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13040 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13041 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13042 (target_traceframe_info): Add argument.
13043 * target.c (update_current_target): Update.
13044 * remote.c (remote_traceframe_info): Add 'self' argument.
13045 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13047 2014-02-19 Tom Tromey <tromey@redhat.com>
13049 * target.h (target_static_tracepoint_markers_by_strid): Add
13051 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13053 * target.c (update_current_target): Update.
13054 * remote.c (struct target_ops)
13055 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13056 * linux-nat.c (struct target_ops)
13057 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13061 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13063 (target_static_tracepoint_marker_at): Add argument.
13064 * target.c (update_current_target): Update.
13065 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13068 2014-02-19 Tom Tromey <tromey@redhat.com>
13070 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13071 (target_set_permissions): Add argument.
13072 * target.c (update_current_target): Update.
13073 * remote.c (remote_set_permissions): Add 'self' argument.
13074 (remote_start_remote): Update.
13076 2014-02-19 Tom Tromey <tromey@redhat.com>
13078 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13079 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13080 (target_get_tib_address): Add argument.
13081 * target.c (update_current_target): Update.
13082 * remote.c (remote_get_tib_address): Add 'self' argument.
13084 2014-02-19 Tom Tromey <tromey@redhat.com>
13086 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13087 (target_set_trace_notes): Add argument.
13088 * target.c (update_current_target): Update.
13089 * remote.c (remote_set_trace_notes): Add 'self' argument.
13091 2014-02-19 Tom Tromey <tromey@redhat.com>
13093 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13095 (target_set_trace_buffer_size): Add argument.
13096 * target.c (update_current_target): Update.
13097 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13099 2014-02-19 Tom Tromey <tromey@redhat.com>
13101 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13103 (target_set_circular_trace_buffer): Add argument.
13104 * target.c (update_current_target): Update.
13105 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13108 2014-02-19 Tom Tromey <tromey@redhat.com>
13110 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13112 (target_set_disconnected_tracing): Add argument.
13113 * target.c (update_current_target): Update.
13114 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13118 * target.h (struct target_ops)
13119 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13120 (target_get_min_fast_tracepoint_insn_len): Add argument.
13121 * target.c (update_current_target): Update.
13122 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13125 2014-02-19 Tom Tromey <tromey@redhat.com>
13127 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13129 (target_get_raw_trace_data): Add argument.
13130 * target.c (update_current_target): Update.
13131 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13135 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13137 (target_upload_trace_state_variables): Add argument.
13138 * target.c (update_current_target): Update.
13139 * remote.c (remote_upload_trace_state_variables): Add 'self'
13141 (remote_start_remote): Update.
13143 2014-02-19 Tom Tromey <tromey@redhat.com>
13145 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13147 (target_upload_tracepoints): Add argument.
13148 * target.c (update_current_target): Update.
13149 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13150 (remote_start_remote): Update.
13152 2014-02-19 Tom Tromey <tromey@redhat.com>
13154 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13155 (target_save_trace_data): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_save_trace_data): Add 'self' argument.
13159 2014-02-19 Tom Tromey <tromey@redhat.com>
13161 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13163 * target.h (struct target_ops)
13164 <to_get_trace_state_variable_value>: Add argument.
13165 (target_get_trace_state_variable_value): Add argument.
13166 * target.c (update_current_target): Update.
13167 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13169 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13171 2014-02-19 Tom Tromey <tromey@redhat.com>
13173 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13174 * target.h (struct target_ops) <to_trace_find>: Add argument.
13175 (target_trace_find): Add argument.
13176 * target.c (update_current_target): Update.
13177 * remote.c (remote_trace_find): Add 'self' argument.
13178 * ctf.c (ctf_trace_find): Add 'self' argument.
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13182 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13183 (target_trace_stop): Add argument.
13184 * target.c (update_current_target): Update.
13185 * remote.c (remote_trace_stop): Add 'self' argument.
13187 2014-02-19 Tom Tromey <tromey@redhat.com>
13189 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13190 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13192 (target_get_tracepoint_status): Add argument.
13193 * target.c (update_current_target): Update.
13194 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13196 2014-02-19 Tom Tromey <tromey@redhat.com>
13198 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13199 * target.h (struct target_ops) <to_get_trace_status>: Add
13201 (target_get_trace_status): Add argument.
13202 * target.c (update_current_target): Update.
13203 * remote.c (remote_get_trace_status): Add 'self' argument.
13204 (remote_start_remote, remote_can_download_tracepoint): Update.
13205 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13209 * target.h (struct target_ops) <to_trace_start>: Add argument.
13210 (target_trace_start): Add argument.
13211 * target.c (update_current_target): Update.
13212 * remote.c (remote_trace_start): Add 'self' argument.
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13216 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13218 (target_trace_set_readonly_regions): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13223 2014-02-19 Tom Tromey <tromey@redhat.com>
13225 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13227 (target_disable_tracepoint): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13233 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13235 (target_enable_tracepoint): Add argument.
13236 * target.c (update_current_target): Update.
13237 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13241 * target.h (struct target_ops) <to_download_trace_state_variable>:
13243 (target_download_trace_state_variable): Add argument.
13244 * target.c (update_current_target): Update.
13245 * remote.c (remote_download_trace_state_variable): Add 'self'
13248 2014-02-19 Tom Tromey <tromey@redhat.com>
13250 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13252 (target_can_download_tracepoint): Add argument.
13253 * target.c (update_current_target): Update.
13254 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13256 2014-02-19 Tom Tromey <tromey@redhat.com>
13258 * target.h (struct target_ops) <to_download_tracepoint>: Add
13260 (target_download_tracepoint): Add argument.
13261 * target.c (update_current_target): Update.
13262 * remote.c (remote_download_tracepoint): Add 'self' argument.
13264 2014-02-19 Tom Tromey <tromey@redhat.com>
13266 * target.h (struct target_ops) <to_trace_init>: Add argument.
13267 (target_trace_init): Add argument.
13268 * target.c (update_current_target): Update.
13269 * remote.c (remote_trace_init): Add 'self' argument.
13271 2014-02-19 Tom Tromey <tromey@redhat.com>
13273 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13274 * target.c (target_fileio_readlink): Add argument.
13275 * remote.c (remote_hostio_readlink): Add 'self' argument.
13276 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13278 2014-02-19 Tom Tromey <tromey@redhat.com>
13280 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13281 * target.c (target_fileio_unlink): Add argument.
13282 * remote.c (remote_hostio_unlink): Add 'self' argument.
13283 (remote_file_delete): Update.
13284 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13286 2014-02-19 Tom Tromey <tromey@redhat.com>
13288 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13289 * target.c (target_fileio_close): Add argument.
13290 * remote.c (remote_hostio_close): Add 'self' argument.
13291 (remote_hostio_close_cleanup): Update.
13292 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13294 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13296 2014-02-19 Tom Tromey <tromey@redhat.com>
13298 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13299 * target.c (target_fileio_pread): Add argument.
13300 * remote.c (remote_hostio_pread): Add 'self' argument.
13301 (remote_bfd_iovec_pread, remote_file_get): Update.
13302 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13306 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13307 * target.c (target_fileio_pwrite): Add argument.
13308 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13309 (remote_file_put): Update.
13310 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13314 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13315 * target.c (target_fileio_open): Add argument.
13316 * remote.c (remote_hostio_open): Add 'self' argument.
13317 (remote_bfd_iovec_open): Add 'self' argument.
13318 (remote_file_put): Add 'self' argument.
13319 (remote_file_get): Add 'self' argument.
13320 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13322 2014-02-19 Tom Tromey <tromey@redhat.com>
13324 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13326 (target_can_run_breakpoint_commands): Add argument.
13327 * target.c (update_current_target): Update.
13328 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13330 (remote_insert_breakpoint): Add 'self' argument.
13331 (remote_insert_hw_breakpoint): Add 'self' argument.
13332 (remote_can_run_breakpoint_commands): Add 'self' argument.
13334 2014-02-19 Tom Tromey <tromey@redhat.com>
13336 * target.h (struct target_ops)
13337 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13338 (target_supports_evaluation_of_breakpoint_conditions): Add
13340 * target.c (update_current_target): Update.
13341 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13343 (remote_insert_breakpoint): Add 'self' argument.
13344 (remote_insert_hw_breakpoint): Add 'self' argument.
13345 (remote_supports_cond_breakpoints): Add 'self' argument.
13347 2014-02-19 Tom Tromey <tromey@redhat.com>
13349 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13351 (target_supports_string_tracing): Add argument.
13352 * target.c (update_current_target): Update.
13353 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13355 2014-02-19 Tom Tromey <tromey@redhat.com>
13357 * target.h (struct target_ops)
13358 <to_supports_disable_randomization>: Add argument.
13359 * target.c (find_default_supports_disable_randomization): Add
13361 (target_supports_disable_randomization): Add argument.
13362 (find_default_supports_disable_randomization): Add 'self'
13364 * remote.c (extended_remote_supports_disable_randomization): Add
13366 (remote_supports_disable_randomization): Add 'self' argument.
13367 (extended_remote_create_inferior): Update.
13368 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13371 2014-02-19 Tom Tromey <tromey@redhat.com>
13373 * target.h (struct target_ops)
13374 <to_supports_enable_disable_tracepoint>: Add argument.
13375 (target_supports_enable_disable_tracepoint): Add argument.
13376 * target.c (update_current_target): Update.
13377 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13380 2014-02-19 Tom Tromey <tromey@redhat.com>
13382 * target.h (struct target_ops) <to_supports_multi_process>: Add
13384 (target_supports_multi_process): Add argument.
13385 * target.c (update_current_target): Update.
13386 * remote.c (remote_supports_multi_process): Add 'self' argument.
13387 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13389 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13392 2014-02-19 Tom Tromey <tromey@redhat.com>
13394 * target.h (struct target_ops) <to_execution_direction>: Add
13396 (target_execution_direction): Add argument.
13397 * target.c (default_execution_direction): Add 'self' argument.
13398 * record-full.c (record_full_execution_direction): Add 'self'
13401 2014-02-19 Tom Tromey <tromey@redhat.com>
13403 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13405 (target_can_execute_reverse): Add argument.
13406 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13407 * record-full.c (record_full_can_execute_reverse): Add 'self'
13409 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13412 2014-02-19 Tom Tromey <tromey@redhat.com>
13414 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13415 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13417 (target_get_ada_task_ptid): Add argument.
13418 * target.c (update_current_target): Update.
13419 (default_get_ada_task_ptid): Add 'self' argument.
13420 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13421 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13422 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13424 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13426 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13428 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13430 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13431 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13434 2014-02-19 Tom Tromey <tromey@redhat.com>
13436 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13437 (target_goto_bookmark): Add argument.
13438 * target.c (dummy_goto_bookmark): Add 'self' argument.
13439 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13441 2014-02-19 Tom Tromey <tromey@redhat.com>
13443 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13444 (target_get_bookmark): Add argument.
13445 * target.c (dummy_get_bookmark): Add 'self' argument.
13446 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13448 2014-02-19 Tom Tromey <tromey@redhat.com>
13450 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13452 (target_make_corefile_notes): Add argument.
13453 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13454 * procfs.c (procfs_make_note_section): Add 'self' argument.
13455 (procfs_make_note_section): Add 'self' argument.
13456 (procfs_make_note_section): Add 'self' argument.
13457 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13459 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13460 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13461 * exec.c (exec_make_note_section): Add 'self' argument.
13462 (exec_make_note_section): Add 'self' argument.
13464 2014-02-19 Tom Tromey <tromey@redhat.com>
13466 * target.h (struct target_ops) <to_find_memory_regions>: Add
13468 (target_find_memory_regions): Add argument.
13469 * target.c (dummy_find_memory_regions): Add 'self' argument.
13470 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13471 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13472 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13473 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13474 * exec. (exec_do_find_memory_regions): New global.
13475 (exec_set_find_memory_regions): Rewrite.
13476 (exec_find_memory_regions): New function.
13477 (init_exec_ops): Use exec_find_memory_regions.
13479 2014-02-19 Tom Tromey <tromey@redhat.com>
13481 * target.h (struct target_ops) <to_supports_non_stop>: Add
13483 * target.c (find_default_supports_non_stop): Add argument.
13484 (target_supports_non_stop): Add argument.
13485 (find_default_supports_non_stop): Add 'self' argument.
13486 * remote.c (remote_supports_non_stop): Add 'self' argument.
13487 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13489 2014-02-19 Tom Tromey <tromey@redhat.com>
13491 * target.h (struct target_ops) <to_log_command>: Add argument.
13492 (target_log_command): Add argument.
13493 * serial.h (serial_log_command): Add 'self' argument.
13494 * serial.c (serial_log_command): Add 'self' argument.
13496 2014-02-19 Tom Tromey <tromey@redhat.com>
13498 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13499 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13501 (target_pid_to_exec_file): Add argument.
13502 * target.c (debug_to_pid_to_exec_file): Add argument.
13503 (update_current_target): Update.
13504 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13505 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13506 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13507 (linux_handle_extended_wait): Update.
13508 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13509 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13510 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13511 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13513 2014-02-19 Tom Tromey <tromey@redhat.com>
13515 * target.h (struct target_ops) <to_rcmd>: Add argument.
13516 (target_rcmd): Add argument.
13517 * target.c (debug_to_rcmd): Add argument.
13518 (update_current_target, do_monitor_command): Update.
13519 * remote.c (remote_rcmd): Add 'self' argument.
13520 * monitor.c (monitor_rcmd): Add 'self' argument.
13522 2014-02-19 Tom Tromey <tromey@redhat.com>
13524 * windows-nat.c (windows_stop): Add 'self' argument.
13525 * target.h (struct target_ops) <to_stop>: Add argument.
13526 * target.c (target_stop): Add argument.
13527 (debug_to_stop): Add argument.
13528 (update_current_target): Update.
13529 * remote.c (remote_stop): Add 'self' argument.
13530 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13531 (gdbsim_cntrl_c): Update.
13532 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13533 * procfs.c (procfs_stop): Add 'self' argument.
13534 * nto-procfs.c (procfs_stop): Add 'self' argument.
13535 * monitor.c (monitor_stop): Add 'self' argument.
13536 (monitor_open): Update.
13537 * linux-nat.c (linux_nat_stop): Add argument.
13538 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13539 * gnu-nat.c (gnu_stop): Add 'self' argument.
13540 * darwin-nat.c (darwin_stop): Add 'self' argument.
13542 2014-02-19 Tom Tromey <tromey@redhat.com>
13544 * target.h (struct target_ops) <to_thread_name>: Add argument.
13545 * target.c (target_thread_name): Add argument.
13546 (update_current_target): Update.
13547 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13549 2014-02-19 Tom Tromey <tromey@redhat.com>
13551 * target.h (struct target_ops) <to_extra_thread_info>: Add
13553 (target_extra_thread_info): Add argument.
13554 * target.c (update_current_target): Update.
13555 * remote.c (remote_threads_extra_info): Add 'self' argument.
13556 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13558 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13559 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13560 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13562 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13564 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13566 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13569 2014-02-19 Tom Tromey <tromey@redhat.com>
13571 * target.h (struct target_ops) <to_program_signals>: Add argument.
13572 * target.c (target_program_signals): Add argument.
13573 * remote.c (remote_program_signals): Add 'self' argument.
13575 2014-02-19 Tom Tromey <tromey@redhat.com>
13577 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13578 * target.c (target_pass_signals): Add argument.
13579 * remote.c (remote_pass_signals): Add 'self' argument.
13580 (remote_start_remote): Update.
13581 * procfs.c (procfs_pass_signals): Add 'self' argument.
13582 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13583 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13584 (linux_nat_create_inferior, linux_nat_attach): Update.
13586 2014-02-19 Tom Tromey <tromey@redhat.com>
13588 * windows-nat.c (windows_can_run): Add 'self' argument.
13589 * target.h (struct target_ops) <to_can_run>: Add argument.
13590 (target_can_run): Add argument.
13591 * target.c (debug_to_can_run): Add argument.
13592 (update_current_target): Update.
13593 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13594 * inf-child.c (inf_child_can_run): Add 'self' argument.
13595 * go32-nat.c (go32_can_run): Add 'self' argument.
13597 2014-02-19 Tom Tromey <tromey@redhat.com>
13599 * target.h (struct target_ops) <to_has_exited>: Add argument.
13600 (target_has_exited): Add argument.
13601 * target.c (debug_to_has_exited): Add argument.
13602 (update_current_target): Update.
13604 2014-02-19 Tom Tromey <tromey@redhat.com>
13606 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13608 (target_set_syscall_catchpoint): Add argument.
13609 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13611 * target.c (update_current_target): Update.
13613 2014-02-19 Tom Tromey <tromey@redhat.com>
13615 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13617 (target_remove_exec_catchpoint): Add argument.
13618 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13619 (update_current_target): Update.
13620 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13623 2014-02-19 Tom Tromey <tromey@redhat.com>
13625 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13627 (target_insert_exec_catchpoint): Add argument.
13628 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13629 (update_current_target): Update.
13630 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13633 2014-02-19 Tom Tromey <tromey@redhat.com>
13635 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13637 (target_remove_vfork_catchpoint): Add argument.
13638 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13639 (update_current_target): Update.
13640 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13643 2014-02-19 Tom Tromey <tromey@redhat.com>
13645 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13647 (target_insert_vfork_catchpoint): Add argument.
13648 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13649 (update_current_target): Update.
13650 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13653 2014-02-19 Tom Tromey <tromey@redhat.com>
13655 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13657 (target_remove_fork_catchpoint): Add argument.
13658 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13659 (update_current_target): Update.
13660 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13663 2014-02-19 Tom Tromey <tromey@redhat.com>
13665 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13667 (target_insert_fork_catchpoint): Add argument.
13668 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13669 (update_current_target): Update.
13670 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13673 2014-02-19 Tom Tromey <tromey@redhat.com>
13675 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13677 (target_post_startup_inferior): Add argument.
13678 * target.c (debug_to_post_startup_inferior): Add argument.
13679 (update_current_target): Update.
13680 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13682 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13684 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13686 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13688 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13690 (super_post_startup_inferior): Likewise.
13691 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13693 (super_post_startup_inferior): Likewise.
13694 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13695 Add 'self' argument.
13696 (super_post_startup_inferior): Likewise.
13698 2014-02-19 Tom Tromey <tromey@redhat.com>
13700 * target.h (struct target_ops) <to_load>: Add argument.
13701 * target.c (target_load): Add argument.
13702 (debug_to_load): Add argument.
13703 (update_current_target): Update.
13704 * remote.c (remote_load): Add 'self' argument.
13705 * remote-sim.c (gdbsim_load): Add 'self' argument.
13706 * remote-mips.c (mips_load): Add 'self' argument.
13707 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13708 * monitor.c (monitor_load): Add 'self' argument.
13709 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13711 2014-02-19 Tom Tromey <tromey@redhat.com>
13713 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13714 (target_terminal_info): Add argument.
13715 * target.c (debug_to_terminal_info): Add argument.
13716 (default_terminal_info): Likewise.
13717 * inflow.c (child_terminal_info): Add 'self' argument.
13718 * inferior.h (child_terminal_info): Add 'self' argument.
13719 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13721 2014-02-19 Tom Tromey <tromey@redhat.com>
13723 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13725 (target_terminal_save_ours): Add argument.
13726 * target.c (debug_to_terminal_save_ours): Add argument.
13727 (update_current_target): Update.
13728 * inflow.c (terminal_save_ours): Add 'self' argument.
13729 * inferior.h (terminal_save_ours): Add 'self' argument.
13731 2014-02-19 Tom Tromey <tromey@redhat.com>
13733 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13734 (target_terminal_ours): Add argument.
13735 * target.c (debug_to_terminal_ours): Add argument.
13736 (update_current_target): Update.
13737 * remote.c (remote_terminal_ours): Add 'self' argument.
13738 (remote_close): Update.
13739 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13740 * inflow.c (terminal_ours): Add 'self' argument.
13741 * inferior.h (terminal_ours): Add 'self' argument.
13742 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13744 2014-02-19 Pedro Alves <palves@redhat.com>
13745 Tom Tromey <tromey@redhat.com>
13747 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13749 (target_terminal_ours_for_output): Add argument.
13750 * target.c (debug_to_terminal_ours_for_output): Add argument.
13751 (update_current_target): Update.
13752 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13753 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13754 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13756 2014-02-19 Tom Tromey <tromey@redhat.com>
13758 * target.h (struct target_ops) <to_terminal_inferior>: Add
13760 * target.c (target_terminal_inferior): Add argument.
13761 (update_current_target): Update.
13762 * remote.c (remote_terminal_inferior): Add 'self' argument.
13763 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13764 * inflow.c (terminal_inferior): Add 'self' argument.
13765 * inferior.h (terminal_inferior): Add 'self' argument.
13766 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13767 (go32_terminal_inferior): Add 'self' argument.
13769 2014-02-19 Tom Tromey <tromey@redhat.com>
13771 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13772 (target_terminal_init): Add argument.
13773 * target.c (debug_to_terminal_init): Add argument.
13774 (update_current_target): Update.
13775 * inflow.c (terminal_init_inferior): Add 'self' argument.
13776 * inferior.h (terminal_init_inferior): Add 'self' argument.
13777 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13778 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13780 2014-02-19 Tom Tromey <tromey@redhat.com>
13782 * target.h (struct target_ops)
13783 <to_can_accel_watchpoint_condition>: Add argument.
13784 (target_can_accel_watchpoint_condition): Add argument.
13785 * target.c (debug_to_can_accel_watchpoint_condition): Add
13787 (update_current_target): Update.
13788 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13791 2014-02-19 Tom Tromey <tromey@redhat.com>
13793 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13795 (target_region_ok_for_hw_watchpoint): Add argument.
13796 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13797 (default_region_ok_for_hw_watchpoint): Add argument.
13798 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13799 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13801 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13803 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13805 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13807 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13809 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13811 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13812 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13814 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13815 Add 'self' argument.
13817 2014-02-19 Tom Tromey <tromey@redhat.com>
13819 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13821 (target_insert_watchpoint): Add argument.
13822 * target.c (debug_to_insert_watchpoint): Add argument.
13823 (update_current_target): Update.
13824 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13825 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13826 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13827 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13828 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13829 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13831 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13832 (procfs_insert_hw_watchpoint): Add 'self' argument.
13833 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13835 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13837 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13839 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13840 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13842 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13845 2014-02-19 Tom Tromey <tromey@redhat.com>
13847 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13849 (target_remove_watchpoint): Add argument.
13850 * target.c (debug_to_remove_watchpoint): Add argument.
13851 (update_current_target): Update.
13852 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13853 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13854 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13855 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13856 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13857 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13859 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13860 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13862 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13864 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13866 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13867 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13869 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13872 2014-02-19 Tom Tromey <tromey@redhat.com>
13874 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13876 (target_remove_hw_breakpoint): Add argument.
13877 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13878 (update_current_target): Update.
13879 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13880 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13882 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13883 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13885 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13888 2014-02-19 Tom Tromey <tromey@redhat.com>
13890 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13892 (target_insert_hw_breakpoint): Add argument.
13893 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13894 (update_current_target): Update.
13895 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13896 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13898 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13899 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13900 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13902 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13905 2014-02-19 Tom Tromey <tromey@redhat.com>
13907 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13909 (target_can_use_hardware_watchpoint): Add argument.
13910 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13911 (update_current_target): Update.
13912 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13914 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13916 * remote.c (remote_check_watch_resources): Add 'self' argument.
13917 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13918 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13920 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13921 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13923 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13925 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13927 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13929 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13931 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13933 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13934 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13936 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13939 2014-02-19 Tom Tromey <tromey@redhat.com>
13941 * target.h (struct target_ops) <to_post_attach>: Add argument.
13942 (target_post_attach): Add argument.
13943 * target.c (debug_to_post_attach): Add argument.
13944 (update_current_target): Update.
13945 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13946 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13947 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13948 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13949 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13951 2014-02-19 Tom Tromey <tromey@redhat.com>
13953 * windows-nat.c (windows_close): Add 'self' argument.
13954 * tracepoint.c (tfile_close): Add 'self' argument.
13955 * target.h (struct target_ops) <to_close>: Add argument.
13956 * target.c (target_close): Add argument.
13957 (update_current_target): Update.
13958 * remote.c (remote_close): Add 'self' argument.
13959 * remote-sim.c (gdbsim_close): Add 'self' argument.
13960 * remote-mips.c (mips_close): Add 'self' argument.
13961 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13962 * record-full.c (record_full_close): Add 'self' argument.
13963 * record-btrace.c (record_btrace_close): Add 'self' argument.
13964 * monitor.h (monitor_close): Add 'self' argument.
13965 * monitor.c (monitor_close): Add 'self' argument.
13966 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13967 * linux-nat.c (linux_nat_close): Add argument.
13968 * go32-nat.c (go32_close): Add 'self' argument.
13969 * exec.c (exec_close_1): Add 'self' argument.
13970 * ctf.c (ctf_close): Add 'self' argument.
13971 * corelow.c (core_close): Add 'self' argument.
13972 (core_close_cleanup): Update.
13973 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13974 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13976 2014-02-19 Tom Tromey <tromey@redhat.com>
13978 * remote.c (remote_load): New function.
13979 (init_remote_ops): Use it.
13981 2014-02-19 Tom Tromey <tromey@redhat.com>
13983 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13985 * common/linux-btrace.h (linux_supports_btrace): Update.
13986 * remote.c (remote_supports_btrace): Add "self" argument.
13987 * target-delegates.c: Rebuild.
13988 * target.c (target_supports_btrace): Remove.
13989 * target.h (struct target_ops) <to_supports_btrace>: Add
13990 target_ops argument.
13991 (target_supports_btrace): New define.
13993 2014-02-19 Tom Tromey <tromey@redhat.com>
13995 * record-full.c (record_full_beneath_to_resume_ops)
13996 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13997 (record_full_beneath_to_wait)
13998 (record_full_beneath_to_store_registers_ops)
13999 (record_full_beneath_to_store_registers)
14000 (record_full_beneath_to_xfer_partial_ops)
14001 (record_full_beneath_to_xfer_partial)
14002 (record_full_beneath_to_insert_breakpoint_ops)
14003 (record_full_beneath_to_insert_breakpoint)
14004 (record_full_beneath_to_remove_breakpoint_ops)
14005 (record_full_beneath_to_remove_breakpoint)
14006 (record_full_beneath_to_stopped_by_watchpoint)
14007 (record_full_beneath_to_stopped_data_address)
14008 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14009 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14010 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14011 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14012 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14013 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14014 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14015 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14016 (record_full_resume, record_full_wait_1)
14017 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14018 (record_full_store_registers, record_full_xfer_partial)
14019 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14020 (record_full_async, record_full_core_xfer_partial): Use target
14022 * target-delegates.c: Rebuild.
14023 * target.c (current_xfer_partial): Remove.
14024 (update_current_target): Do not INHERIT or de_fault
14025 to_insert_breakpoint, to_remove_breakpoint,
14026 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14027 to_is_async_p, to_async. Do not set to_xfer_partial field.
14028 (default_xfer_partial): Simplify.
14029 (current_xfer_partial): Remove.
14030 (target_wait, target_resume): Simplify.
14031 (find_default_can_async_p, find_default_is_async_p): Update.
14032 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14033 to_xfer_partial, to_stopped_by_watchpoint,
14034 to_stopped_data_address.
14035 (target_store_registers): Simplify.
14036 (forward_target_remove_breakpoint)
14037 (forward_target_insert_breakpoint): Remove.
14038 (target_remove_breakpoint, target_insert_breakpoint)
14039 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14040 * target.h (struct target_ops) <to_resume, to_wait,
14041 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14042 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14043 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14045 (forward_target_remove_breakpoint)
14046 (forward_target_insert_breakpoint): Remove.
14047 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14049 (record_btrace_insert_breakpoint): Delegate directly.
14051 2014-02-19 Tom Tromey <tromey@redhat.com>
14054 * target-delegates.c: New file.
14055 * target.c: Include target-delegates.c.
14056 (init_dummy_target): Call install_dummy_methods.
14057 (complete_target_initialization): Call install_delegators.
14058 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14059 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14060 * make-target-delegates: New file.
14062 2014-02-19 Tom Tromey <tromey@redhat.com>
14064 * record.c (find_record_target): Use find_target_at.
14065 * target.c (find_target_at): New function.
14066 * target.h (find_target_at): Declare.
14068 2014-02-19 Tom Tromey <tromey@redhat.com>
14070 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14071 Add 'ops' argument.
14072 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14074 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14075 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14077 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14079 * linux-nat.c (save_sigtrap): Update.
14080 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14081 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14082 (linux_nat_close): Update.
14083 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14085 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14087 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14088 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14089 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14090 (tmp_to_async): Add 'ops' argument.
14091 (record_full_stopped_by_watchpoint, record_full_async)
14092 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14094 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14095 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14096 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14097 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14098 (remote_is_async_p, remote_async): Add 'ops' argument.
14099 (remote_stopped_data_address): Update.
14100 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14101 * target.c (update_current_target)
14102 (find_default_can_async_p, find_default_is_async_p): Update.
14103 (init_dummy_target): Update.
14104 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14105 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14106 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14107 (target_can_async_p, target_is_async_p, target_async)
14108 (target_stopped_by_watchpoint): Update.
14110 2014-02-19 Yao Qi <yao@codesourcery.com>
14113 * gdbarch.sh: Remove startup_gdbarch.
14114 * gdbarch.c: Regenerated.
14115 * gdbarch.h: Likewise.
14117 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14119 * rl78-tdep.c (rl78_g10_register_name): New function.
14120 (rl78_return_value): Add g10 support.
14121 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14124 2014-02-17 Doug Evans <xdje42@gmail.com>
14126 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14127 (SUBDIR_GUILE_SRCS): Ditto.
14128 (scm-gsmob.o): Ditto.
14130 2014-02-17 Yao Qi <yao@codesourcery.com>
14132 * gnu-nat.c (ILL_RPC): Declare defined function.
14134 2014-02-17 Yao Qi <yao@codesourcery.com>
14136 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14137 mach_msg_type_number_t.
14138 (gnu_write_inferior): Likewise.
14140 2014-02-17 Yao Qi <yao@codesourcery.com>
14142 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14144 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14145 (inf_validate_procs, inf_signal): Likewise.
14146 (S_exception_raise_request): Likewise.
14147 (do_mach_notify_dead_name): Likewise.
14148 (steal_exc_port): Likewise.
14149 (gnu_read_inferior): Change 'copy_count''s type to
14150 mach_msg_type_number_t.
14151 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14154 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14156 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14157 flag. Adjust all users; in particular...
14158 (gnu_wait): ..., don't decrement its value in here...
14159 (gnu_create_inferior): ..., and instead set the flag in here,
14160 around the startup_inferior call, and call that one with
14161 START_INFERIOR_TRAPS_EXPECTED.
14163 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14164 (ILL_RPC): ... new macro.
14165 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14166 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14167 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14168 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14169 functions with ILL_RPC macro.
14170 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14171 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14172 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14173 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14174 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14175 (S_proc_getlogin_reply, S_proc_getsid_reply)
14176 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14177 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14178 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14179 (S_proc_getnports_reply, S_proc_is_important_reply)
14180 (S_proc_get_code_reply): New stub functions, generated with
14183 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14184 collected the type check structures.
14186 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14188 2014-02-14 Doug Evans <dje@google.com>
14190 * target.c (target_write_partial): Fix result type.
14192 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14194 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14195 the proper offsets to access fpregset_t.
14197 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14199 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14200 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14201 * h8300-tdep.c (setmachinelist): Remove global.
14202 * hppa-tdep.c (hppa_sigtramp): Remove global.
14203 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14204 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14205 * ravenscar-thread.c (update_target_observer): Remove global.
14206 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14208 2014-02-12 Tom Tromey <tromey@redhat.com>
14210 * common/rsp-low.c: Update comments.
14211 * common/rsp-low.h: Update comments.
14213 2014-02-12 Tom Tromey <tromey@redhat.com>
14215 * common/rsp-low.c (convert_ascii_to_int): Remove.
14216 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14218 2014-02-12 Tom Tromey <tromey@redhat.com>
14220 * common/rsp-low.h (unhexify): Don't declare.
14221 * common/rsp-low.c (unhexify): Remove.
14223 2014-02-12 Tom Tromey <tromey@redhat.com>
14225 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14226 * common/rsp-low.c (convert_int_to_ascii): Remove.
14228 2014-02-12 Tom Tromey <tromey@redhat.com>
14230 * common/rsp-low.h (hexify): Don't declare.
14231 * common/rsp-low.c (hexify): Remove.
14233 2014-02-12 Tom Tromey <tromey@redhat.com>
14235 * common/rsp-low.c (hexify): Never take strlen of argument.
14237 2014-02-12 Tom Tromey <tromey@redhat.com>
14239 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14240 * remote.c (extended_remote_run, remote_rcmd)
14241 (remote_download_trace_state_variable, remote_save_trace_data)
14242 (remote_set_trace_notes): Update.
14243 * tracepoint.c (encode_source_string, tfile_write_status)
14244 (tfile_write_uploaded_tsv): Update.
14246 2014-02-12 Tom Tromey <tromey@redhat.com>
14248 * tracepoint.c: Include rsp-low.h.
14249 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14250 * remote.c: Include rsp-low.h.
14251 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14252 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14253 (remote_unescape_input): Move to common/rsp-low.c.
14254 * common/rsp-low.h: New file.
14255 * common/rsp-low.c: New file.
14256 * Makefile.in (SFILES): Add common/rsp-low.c.
14257 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14258 (COMMON_OBS): Add rsp-low.o.
14259 (rsp-low.o): New target.
14261 2014-02-12 Tom Tromey <tromey@redhat.com>
14263 * utils.h: Include print-utils.h.
14264 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14265 (int_string, core_addr_to_string, core_addr_to_string_nz)
14266 (hex_string, hex_string_custom): Don't declare.
14267 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14268 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14269 (hex_string_custom, int_string, core_addr_to_string)
14270 (core_addr_to_string_nz, host_address_to_string): Move to
14271 common/print-utils.c.
14272 * common/print-utils.h: New file.
14273 * common/print-utils.c: New file
14274 * Makefile.in (SFILES): Add common/print-utils.c.
14275 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14276 (COMMON_OBS): Add print-utils.o.
14277 (print-utils.o): New target.
14279 2014-02-12 Tom Tromey <tromey@redhat.com>
14281 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14283 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14285 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14287 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14289 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14290 if a PT_IO ptrace request returns sucessfully but indicates that 0
14291 bytes were transferred.
14293 2014-02-12 Pedro Alves <palves@redhat.com>
14294 Kevin Buettner <kevinb@redhat.com>
14296 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14297 TYPE_INSTANCE_FLAG_CODE_SPACE.
14299 2014-02-12 Pedro Alves <palves@redhat.com>
14301 * h8300-tdep.c (pseudo_from_raw_register)
14302 (raw_from_pseudo_register): New functions.
14303 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14306 2014-02-12 Pedro Alves <palves@redhat.com>
14308 * h8300-tdep.c (h8300_register_sim_regno): New function.
14309 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14310 gdbarch_register_sim_regno hook.
14312 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14314 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14316 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14318 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14320 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14322 * obsd-tdep.h (obsd_init_abi): New prototype.
14323 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14324 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14325 (obsd_init_abi): New functions.
14326 * i386obsd-tdep.c: Include "obsd-tdep.h".
14327 (i386obsd_init_abi): Call obsd_init_abi.
14328 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14329 (amd64obsd_init_abi): Call obsd_init_abi.
14330 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14331 obsd-tdep.c to gdb_target_obs.
14333 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14335 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14336 double float arguments to 16-byte in the argument slots.
14338 2014-02-11 Doug Evans <xdje42@gmail.com>
14340 * configure.ac: Don't crash if pkg-config is not found and guile
14341 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14343 * configure: Regenerate.
14345 2014-02-11 Yao Qi <yao@codesourcery.com>
14347 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14348 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14349 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14350 * gnu-nat.c (gnu_xfer_memory): Likewise.
14351 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14352 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14353 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14354 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14356 2014-02-11 Yao Qi <yao@codesourcery.com>
14358 * target.h (enum target_xfer_error): Rename to ...
14359 (enum target_xfer_status): ... it. New. All users updated.
14360 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14362 (TARGET_XFER_STATUS_ERROR_P): New macro.
14363 (target_xfer_error_to_string): Remove declaration.
14364 (target_xfer_status_to_string): Declare.
14365 (target_xfer_partial_ftype): Adjust it.
14366 (struct target_ops) <to_xfer_partial>: Return
14367 target_xfer_status. Add argument xfered_len. Update
14369 * target.c (target_xfer_error_to_string): Rename to ...
14370 (target_xfer_status_to_string): ... it. New. All callers
14372 (target_read_live_memory): Likewise. Call target_xfer_partial
14373 instead of target_read.
14374 (memory_xfer_live_readonly_partial): Return
14375 target_xfer_status. Add argument xfered_len.
14376 (raw_memory_xfer_partial): Likewise.
14377 (memory_xfer_partial_1): Likewise.
14378 (memory_xfer_partial): Likewise.
14379 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14380 properly. Update debug message.
14381 (default_xfer_partial, current_xfer_partial): Likewise.
14382 (target_write_partial): Likewise.
14383 (target_read_partial): Likewise. All callers updated.
14384 (read_whatever_is_readable): Likewise.
14385 (target_write_with_progress): Likewise.
14386 (target_read_alloc_1): Likewise.
14388 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14389 * auxv.c (procfs_xfer_auxv): Likewise.
14390 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14391 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14392 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14393 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14394 * corefile.c (read_memory): Adjust.
14395 * corelow.c (core_xfer_partial): Likewise.
14396 * ctf.c (ctf_xfer_partial): Likewise.
14397 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14399 (darwin_xfer_partial): Likewise.
14400 * exec.c (section_table_xfer_memory_partial): Likewise. All
14402 (exec_xfer_partial): Likewise.
14403 * exec.h (section_table_xfer_memory_partial): Update
14405 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14407 (gnu_xfer_partial): Likewise.
14408 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14409 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14410 (ia64_hpux_xfer_solib_got): Likewise.
14411 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14412 type of 'partial_len' to ULONGEST.
14413 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14414 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14415 (linux_nat_xfer_partial): Likewise.
14416 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14417 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14418 * monitor.c (monitor_xfer_memory): Likewise.
14419 (monitor_xfer_partial): Likewise.
14420 * procfs.c (procfs_xfer_partial): Likewise.
14421 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14422 * record-full.c (record_full_xfer_partial): Likewise.
14423 (record_full_core_xfer_partial): Likewise.
14424 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14425 (gdbsim_xfer_partial): Likewise.
14426 * remote.c (remote_write_bytes_aux): Likewise. All callers
14428 (remote_write_bytes, remote_read_bytes): Likewise. All
14430 (remote_flash_erase): Likewise. All callers updated.
14431 (remote_write_qxfer): Likewise. All callers updated.
14432 (remote_read_qxfer): Likewise. All callers updated.
14433 (remote_xfer_partial): Likewise.
14434 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14435 (rs6000_xfer_shared_libraries): Likewise.
14436 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14437 (sol_thread_xfer_partial): Likewise.
14438 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14439 (sparc_xfer_partial): Likewise.
14440 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14442 (spu_xfer_partial): Likewise.
14443 * spu-multiarch.c (spu_xfer_partial): Likewise.
14444 * tracepoint.c (tfile_xfer_partial): Likewise.
14445 * windows-nat.c (windows_xfer_memory): Likewise.
14446 (windows_xfer_shared_libraries): Likewise.
14447 (windows_xfer_partial): Likewise.
14448 * valprint.c: Replace 'target_xfer_error' with
14449 'target_xfer_status' in comments.
14451 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14453 Checked in by Joel Brobecker <brobecker@adacore.com>.
14454 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14456 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14458 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14459 function parameters.
14461 2014-02-10 Will Newton <will.newton@linaro.org>
14463 * elfread.c (elf_rel_plt_read): Look for a .got section if
14464 looking up .got.plt fails.
14465 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14466 on address passed to elf_gnu_ifunc_record_cache.
14467 (elf_gnu_ifunc_resolve_addr): Likewise.
14468 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14470 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14472 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14473 (X_RETTURN): New macro.
14474 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14476 * sparc64-tdep.c (sparc64_init_abi): Hook
14477 sparc_in_function_epilogue_p.
14479 2014-02-10 Gary Benson <gbenson@redhat.com>
14481 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14482 Rename name_matcher to symbol_matcher.
14484 2014-02-10 Gary Benson <gbenson@redhat.com>
14486 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14487 Use expand_symtabs_file_matcher_ftype and
14488 expand_symtabs_symbol_matcher_ftype.
14490 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14492 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14493 (struct ada_symbol_cache): New.
14494 (ada_free_symbol_cache): Forward declare.
14495 (struct ada_pspace_data): New.
14496 (ada_pspace_data_handle): New static global.
14497 (get_ada_pspace_data, ada_pspace_data_cleanup)
14498 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14499 (cache_space, cache): Delete, now folded inside struct
14501 (ada_get_symbol_cache): New function.
14502 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14504 (_initialize_ada_language): Remove initialization of cache_space.
14505 Move call to observer_attach_inferior_exit up, grouping it
14506 with the other observer registrations inside this function.
14507 Rename command to be more general. Add call to
14508 register_program_space_data_with_cleanup.
14510 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14512 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14513 ada_new_objfile_observer.
14514 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14515 (_initialize_tasks): Update uses of ada_new_objfile_observer
14516 and ada_tasks_normal_stop_observer.
14518 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14520 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14521 returned by the 'Length attribute to integer.
14523 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14525 * ada-lang.c (_initialize_ada_language): Initialize
14526 cache_space obstack.
14528 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14530 * ada-lang.c (HASH_SIZE): New macro.
14531 (struct cache_entry): New type.
14532 (cache_space, cache): New static globals.
14533 (ada_clear_symbol_cache, find_entry): New functions.
14534 (lookup_cached_symbol, cache_symbol): Implement.
14535 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14536 (_initialize_ada_language): Attach ada_new_objfile_observer
14537 and ada_free_objfile_observer.
14539 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14541 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14542 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14543 struct block * parameter.
14544 (ada_lookup_symbol_list_worker): Constify local variable "block".
14545 Remove cast which is no longer necessary.
14547 2014-02-10 Doug Evans <xdje42@gmail.com>
14549 Add Guile as an extension language.
14550 * NEWS: Mention Guile scripting.
14551 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14552 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14553 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14554 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14555 (CLIBS): Add GUILE_LIBS.
14556 (install-guile): New rule.
14557 (guile.o): New rule.
14558 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14559 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14560 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14561 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14562 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14563 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14564 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14565 * configure.ac: New option --with-guile.
14566 * configure: Regenerate.
14567 * config.in: Regenerate.
14568 * auto-load.c: Remove #include "python/python.h". Add #include
14569 "gdb/section-scripts.h".
14570 (source_section_scripts): Handle Guile scripts.
14571 (_initialize_auto_load): Add name of Guile objfile script to
14572 scripts-directory help text.
14573 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14574 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14575 (struct breakpoint): New member scm_bp_object.
14576 * defs.h (enum command_control_type): New value guile_control.
14577 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14579 (show_user): Update comment.
14580 (_initialize_cli_cmds): Update help text for "show user". Update help
14581 text for max-user-call-depth.
14582 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14584 (multi_line_command_p): Add guile_control.
14585 (print_command_lines): Handle guile_control.
14586 (execute_control_command, recurse_read_control_structure): Ditto.
14587 (process_next_line): Recognize "guile" commands.
14588 * disasm.c (gdb_disassemble_info): Make non-static.
14589 * disasm.h: #include "dis-asm.h".
14590 (struct gdbarch): Add forward decl.
14591 (gdb_disassemble_info): Declare.
14592 * extension.c: #include "guile/guile.h".
14593 (extension_languages): Add guile.
14594 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14595 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14596 * gdbtypes.c (get_unsigned_type_max): New function.
14597 (get_signed_type_minmax): New function.
14598 * gdbtypes.h (get_unsigned_type_max): Declare.
14599 (get_signed_type_minmax): Declare.
14600 * guile/README: New file.
14601 * guile/guile-internal.h: New file.
14602 * guile/guile.c: New file.
14603 * guile/guile.h: New file.
14604 * guile/scm-arch.c: New file.
14605 * guile/scm-auto-load.c: New file.
14606 * guile/scm-block.c: New file.
14607 * guile/scm-breakpoint.c: New file.
14608 * guile/scm-disasm.c: New file.
14609 * guile/scm-exception.c: New file.
14610 * guile/scm-frame.c: New file.
14611 * guile/scm-gsmob.c: New file.
14612 * guile/scm-iterator.c: New file.
14613 * guile/scm-lazy-string.c: New file.
14614 * guile/scm-math.c: New file.
14615 * guile/scm-objfile.c: New file.
14616 * guile/scm-ports.c: New file.
14617 * guile/scm-pretty-print.c: New file.
14618 * guile/scm-safe-call.c: New file.
14619 * guile/scm-string.c: New file.
14620 * guile/scm-symbol.c: New file.
14621 * guile/scm-symtab.c: New file.
14622 * guile/scm-type.c: New file.
14623 * guile/scm-utils.c: New file.
14624 * guile/scm-value.c: New file.
14625 * guile/lib/gdb.scm: New file.
14626 * guile/lib/gdb/boot.scm: New file.
14627 * guile/lib/gdb/experimental.scm: New file.
14628 * guile/lib/gdb/init.scm: New file.
14629 * guile/lib/gdb/iterator.scm: New file.
14630 * guile/lib/gdb/printing.scm: New file.
14631 * guile/lib/gdb/types.scm: New file.
14632 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14633 (VPATH): Add $(GUILE_SRCDIR).
14634 (GUILE_DIR): New variable.
14635 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14636 (all): Add stamp-guile dependency.
14637 (stamp-guile): New rule.
14638 (clean-guile, install-guile, uninstall-guile): New rules.
14639 (install-only): Add install-guile dependency.
14640 (uninstall): Add uninstall-guile dependency.
14641 (clean): Add clean-guile dependency.
14643 2014-02-09 Doug Evans <xdje42@gmail.com>
14645 Revert this patch (which I approved, mea culpa).
14647 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14649 * Makefile.in (all-lib): Remove.
14650 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14652 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14654 Fix Python stack corruption.
14655 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14658 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14660 * Makefile.in (all-lib): Remove.
14661 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14663 2014-02-07 Doug Evans <dje@google.com>
14665 * extension-priv.h (extension_language_script_ops): Add comment.
14666 (extension_language_ops): Add comment.
14667 (active_ext_lang_state): Fix typo in comment.
14669 2014-02-07 Pedro Alves <palves@redhat.com>
14671 PR breakpoints/16292
14672 * infrun.c (handle_signal_stop) <signal arrives while stepping
14673 over a breakpoint>: Switch back to the stepping thread.
14675 2014-02-07 Yao Qi <yao@codesourcery.com>
14677 * target.c (target_xfer_partial): Return zero if LEN is zero.
14679 2014-02-07 Yao Qi <yao@codesourcery.com>
14681 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14682 (ld_so_xfer_auxv): Likewise.
14683 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14684 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14685 * corelow.c (core_xfer_partial): Likewise.
14686 * ctf.c (ctf_xfer_partial): Likewise.
14687 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14688 (darwin_xfer_partial): Likewise.
14689 * exec.c (exec_xfer_partial): Likewise.
14690 * gnu-nat.c (gnu_xfer_partial): Likewise.
14691 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14692 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14693 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14694 * linux-nat.c (linux_xfer_siginfo): Likewise.
14695 (linux_proc_xfer_spu): Likewise.
14696 * procfs.c (procfs_xfer_partial): Likewise.
14697 * record-full.c (record_full_xfer_partial): Likewise.
14698 (record_full_core_xfer_partial): Likewise.
14699 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14700 * remote.c (remote_write_qxfer): Likewise.
14701 (remote_write_qxfer, remote_read_qxfer): Likewise.
14702 (remote_xfer_partial): Likewise.
14703 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14704 (rs6000_xfer_shared_libraries): Likewise.
14705 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14706 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14707 (spu_xfer_partial): Likewise.
14708 * target.c (memory_xfer_partial_1): Likewise.
14709 * tracepoint.c (tfile_xfer_partial): Likewise.
14710 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14711 (windows_xfer_partial): Likewise.
14713 2014-02-07 Yao Qi <yao@codesourcery.com>
14715 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14717 (core_xfer_shared_libraries_aix): Likewise.
14718 * gdbarch.c, gdbarch.h: Regenerated.
14719 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14720 ULONGEST. Change 'len_avail' type to ULONGEST.
14721 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14722 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14724 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14726 2014-02-07 Yao Qi <yao@codesourcery.com>
14728 * corefile.c (memory_error): Get 'exception' from ERR and pass
14729 'exception' to throw_error.
14731 2014-02-06 Doug Evans <xdje42@gmail.com>
14733 * configure.ac (libpython checking): Remove all but python.o from
14734 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14735 * configure: Regenerate.
14737 * Makefile.in (SFILES): Add extension.c.
14738 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14739 (COMMON_OBS): Add extension.o.
14740 * extension.h: New file.
14741 * extension-priv.h: New file.
14742 * extension.c: New file.
14744 * python/python-internal.h: #include "extension.h".
14745 (gdbpy_auto_load_enabled): Declare.
14746 (gdbpy_apply_val_pretty_printer): Declare.
14747 (gdbpy_apply_frame_filter): Declare.
14748 (gdbpy_preserve_values): Declare.
14749 (gdbpy_breakpoint_cond_says_stop): Declare.
14750 (gdbpy_breakpoint_has_cond): Declare.
14751 (void source_python_script_for_objfile): Delete.
14752 * python/python.c: #include "extension-priv.h".
14753 Delete inclusion of "observer.h".
14754 (extension_language_python): Moved here and renamed from
14755 script_language_python in py-auto-load.c.
14756 Redefined to be of type extension_language_defn.
14757 (python_extension_script_ops): New global.
14758 (python_extension_ops): New global.
14759 (struct python_env): New member previous_active.
14760 (restore_python_env): Call restore_active_ext_lang.
14761 (ensure_python_env): Call set_active_ext_lang.
14762 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14764 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14766 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14768 (gdbpy_eval_from_control_command): Renamed from
14769 eval_python_from_control_command, made static. New arg extlang.
14770 (gdbpy_source_script) Renamed from source_python_script, made static.
14772 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14773 result to int. New arg extlang.
14774 (gdbpy_source_objfile_script): Renamed from
14775 source_python_script_for_objfile, made static. New arg extlang.
14776 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14777 static. New args extlang, extlang_printers. Change result type to
14779 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14780 static. New arg extlang. Rename arg printers to extlang_printers
14781 and change type to ext_lang_type_printers *.
14782 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14783 static. Replace argument arg with extlang, extlang_printers.
14784 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14785 (!HAVE_PYTHON, source_python_script): Delete.
14786 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14787 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14788 (!HAVE_PYTHON, start_type_printers): Delete.
14789 (!HAVE_PYTHON, apply_type_printers): Delete.
14790 (!HAVE_PYTHON, free_type_printers): Delete.
14791 (_initialize_python): Delete call to observer_attach_before_prompt.
14792 (finalize_python): Set/restore active extension language.
14793 (gdbpy_finish_initialization) Renamed from
14794 finish_python_initialization, made static. New arg extlang.
14795 (gdbpy_initialized): New function.
14796 * python/python.h: #include "extension.h". Delete #include
14797 "value.h", "mi/mi-cmds.h".
14798 (extension_language_python): Declare.
14799 (GDBPY_AUTO_FILE_NAME): Delete.
14800 (enum py_bt_status): Moved to extension.h and renamed to
14801 ext_lang_bt_status.
14802 (enum frame_filter_flags): Moved to extension.h.
14803 (enum py_frame_args): Moved to extension.h and renamed to
14804 ext_lang_frame_args.
14805 (finish_python_initialization): Delete.
14806 (eval_python_from_control_command): Delete.
14807 (source_python_script): Delete.
14808 (apply_val_pretty_printer): Delete.
14809 (apply_frame_filter): Delete.
14810 (preserve_python_values): Delete.
14811 (gdbpy_script_language_defn): Delete.
14812 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14813 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14815 * auto-load.c: #include "extension.h".
14816 (GDB_AUTO_FILE_NAME): Delete.
14817 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14818 (script_language_gdb): Delete, moved to extension.c and renamed to
14819 extension_language_gdb.
14820 (source_gdb_script_for_objfile): Delete.
14821 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14822 (loaded_script): Change type of language member to
14823 struct extension_language_defn *.
14824 (init_loaded_scripts_info): Initialize
14825 unsupported_script_warning_printed.
14826 (maybe_add_script): Make static. Change type of language arg to
14827 struct extension_language_defn *.
14828 (clear_section_scripts): Reset unsupported_script_warning_printed.
14829 (auto_load_objfile_script_1): Rewrite to use extension language API.
14830 (auto_load_objfile_script): Make public. Remove support-compiled-in
14831 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14832 (source_section_scripts): Rewrite to use extension language API.
14833 (load_auto_scripts_for_objfile): Rewrite to use
14834 auto_load_scripts_for_objfile.
14835 (collect_matching_scripts_data): Change type of language member to
14836 struct extension_language_defn *.
14837 (auto_load_info_scripts): Change type of language arg to
14838 struct extension_language_defn *.
14839 (unsupported_script_warning_print): New function.
14840 (script_not_found_warning_print): Make static.
14841 (_initialize_auto_load): Rewrite construction of scripts-directory
14843 * auto-load.h (struct objfile): Add forward decl.
14844 (struct script_language): Delete.
14845 (struct auto_load_pspace_info): Add forward decl.
14846 (struct extension_language_defn): Add forward decl.
14847 (maybe_add_script): Delete.
14848 (auto_load_objfile_script): Declare.
14849 (script_not_found_warning_print): Delete.
14850 (auto_load_info_scripts): Update prototype.
14851 (auto_load_gdb_scripts_enabled): Declare.
14852 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14853 auto_load_python_scripts_enabled and made public.
14854 (script_language_python): Delete, moved to python.c.
14855 (gdbpy_script_language_defn): Delete.
14856 (info_auto_load_python_scripts): Update to use
14857 extension_language_python.
14859 * breakpoint.c (condition_command): Replace call to
14860 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14861 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14862 with call to breakpoint_ext_lang_cond_says_stop.
14863 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14864 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14865 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14866 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14868 (local_setattro): Print name of extension language with existing
14871 * valprint.c (val_print, value_print): Update to call
14872 apply_ext_lang_val_pretty_printer.
14873 * cp-valprint.c (cp_print_value): Update call to
14874 apply_ext_lang_val_pretty_printer.
14875 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14876 (gdbpy_apply_val_pretty_printer): Renamed from
14877 apply_val_pretty_printer. New arg extlang.
14878 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14880 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14881 extension language API.
14882 * cli/cli-script.c (execute_control_command): Update to call
14883 eval_ext_lang_from_control_command.
14885 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14886 enum ext_lang_bt_status values. Update call to
14887 apply_ext_lang_frame_filter.
14888 (mi_cmd_stack_list_locals): Ditto.
14889 (mi_cmd_stack_list_args): Ditto.
14890 (mi_cmd_stack_list_variables): Ditto.
14891 * mi/mi-main.c: Delete #include "python/python-internal.h".
14892 Add #include "extension.h".
14893 (mi_cmd_list_features): Replace reference to python internal variable
14894 gdb_python_initialized with call to ext_lang_initialized_p.
14896 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14897 Update to use enum ext_lang_frame_args. Update to call
14898 apply_ext_lang_frame_filter.
14899 * python/py-framefilter.c (extract_sym): Update to use enum
14900 ext_lang_bt_status.
14901 (extract_value, py_print_type, py_print_value): Ditto.
14902 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14903 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14904 (py_print_frame): Ditto.
14905 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14906 New arg extlang. Update to use enum ext_lang_bt_status.
14908 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14909 finish_python_initialization. Replace with call to
14910 finish_ext_lang_initialization.
14912 * typeprint.c (do_free_global_table): Update to call
14913 free_ext_lang_type_printers.
14914 (create_global_typedef_table): Update to call
14915 start_ext_lang_type_printers.
14916 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14917 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14918 (type_print_options): Change type of global_printers from "void *"
14919 to "struct ext_lang_type_printers *".
14921 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14922 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14923 (gdbpy_preserve_values): Renamed from preserve_python_values.
14925 (!HAVE_PYTHON, preserve_python_values): Delete.
14927 * utils.c (quit_flag): Delete, moved to extension.c.
14928 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14931 * eval.c: Delete #include "python/python.h".
14932 * main.c: Delete #include "python/python.h".
14934 * defs.h: Update comment.
14936 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14940 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14942 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14945 2014-02-05 Yao Qi <yao@codesourcery.com>
14947 * remote.c (remote_pass_signals): Remove local 'buf' and use
14949 (remote_program_signals): Likewise.
14951 2014-02-05 Yao Qi <yao@codesourcery.com>
14953 * ctf.c: Include "inferior.h" and "gdbthread.h".
14954 (CTF_PID): A new macro.
14955 (ctf_open): Call inferior_appeared and add_thread_silent.
14956 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14957 (ctf_thread_alive): New function.
14958 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14960 2014-02-05 Yao Qi <yao@codesourcery.com>
14964 2013-05-24 Yao Qi <yao@codesourcery.com>
14966 * tracepoint.c (TFILE_PID): Remove.
14967 (tfile_open): Don't add thread and inferior.
14968 (tfile_close): Don't set 'inferior_ptid'. Don't call
14969 exit_inferior_silent.
14970 (tfile_thread_alive): Remove.
14971 (init_tfile_ops): Don't set field 'to_thread_alive' of
14974 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14976 * remote.c (remote_start_remote): Call remote_check_symbols even
14977 if only symbol-file (not file) has been given.
14979 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14981 * gdbarch.sh (skip_entrypoint): New callback.
14982 * gdbarch.c, gdbarch.h: Regenerate.
14983 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14984 * infrun.c (fill_in_stop_func): Likewise.
14985 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14986 (ppc_elfv2_elf_make_msymbol_special): New function.
14987 (ppc_elfv2_skip_entrypoint): Likewise.
14988 (ppc_linux_init_abi): Install them for ELFv2.
14990 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14992 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14993 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14994 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14995 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14996 structures returned in GPRs.
14998 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15000 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15001 offset to the stack parameter list for the ELFv2 ABI.
15003 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15005 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15006 set_gdbarch_convert_from_func_ptr_addr and
15007 set_gdbarch_elf_make_msymbol_special for ELFv1.
15008 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15009 function descriptors on ELFv1.
15010 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15011 set up r12 at function entry.
15013 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15015 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15016 (struct gdbarch_tdep): New member elf_abi.
15018 * rs6000-tdep.c: Include "elf/ppc64.h".
15019 (rs6000_gdbarch_init): Detect ELF ABI version.
15021 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15023 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15024 within a register pair holding a DFP 128-bit value on little-endian.
15025 (ppc64_sysv_abi_return_value_base): Likewise.
15026 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15027 (dfp_pseudo_register_write): Likewise.
15029 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15031 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15032 offset on little-endian when passing _Decimal32.
15033 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15035 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15037 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15038 of the overlapped FP register within the VSX register on little-
15040 (efpr_pseudo_register_write): Likewise.
15042 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15044 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15045 offset on little-endian when passing small structures.
15047 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15049 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15050 (struct ppc64_sysv_argpos): New data structure.
15051 (ppc64_sysv_abi_push_float): Remove.
15052 (ppc64_sysv_abi_push_val): New function.
15053 (ppc64_sysv_abi_push_integer): Likewise.
15054 (ppc64_sysv_abi_push_freg): Likewise.
15055 (ppc64_sysv_abi_push_vreg): Likewise.
15056 (ppc64_sysv_abi_push_param): Likewise.
15057 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15058 (ppc64_sysv_abi_return_value_base): New function.
15059 (ppc64_sysv_abi_return_value): Refactor to use it.
15061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15063 * NEWS: Document new target powerpc64le-*-linux*.
15065 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15067 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15068 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15070 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15071 register set used in ELF core dumps. Add floating-point register set.
15073 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15075 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15076 dwarf2_to_gdb[] table using symbolic constants. Adjust
15077 penultimate entry from number representing the PC register
15078 to symbolic constant representing the MDR register. Add
15079 constant for the PC register to the end of the table.
15081 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15083 * bsd-kvm.c: Include <sys/param.h>
15085 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15087 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15089 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15091 * ada-lang.h (clear_ada_sym_cache): Delete.
15093 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15095 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15097 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15099 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15100 the sigreturn register save area only if the syscall is
15103 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15105 * valops.c (value_slice): Minor reformatting.
15107 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15109 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15111 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15113 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15114 New static globals.
15115 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15116 (ada_ignore_descriptive_types_p): New static global.
15117 (find_parallel_type_by_descriptive_type): Return immediately
15118 if ada_ignore_descriptive_types_p is set.
15119 (_initialize_ada_language): Register new commands "maintenance
15120 set ada", "maintenance show ada", "maintenance set ada
15121 ignore-descriptive-types" and "maintenance show ada
15122 ignore-descriptive-types".
15123 * NEWS: Add entry for new "maint ada set/show
15124 ignore-descriptive-types" commands.
15126 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15128 * record-btrace.c (record_btrace_close): Call btrace_teardown
15131 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15133 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15136 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15138 * ada-typeprint (type_is_full_subrange_of_target_type):
15140 (print_range): Add parameter bounds_prefered_p. If not set,
15141 try printing range types using the name of their base type.
15142 (print_range_type): Add parameter bounds_prefered_p.
15143 Use it in call to print_range.
15144 (print_array_type, ada_print_type): Update calls to print_range
15145 and print_range_type.
15147 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15149 * ada-typeprint.c (print_array_type, print_choices, print_range)
15150 (print_range_bound, print_dynamic_range_bound, print_range_type):
15151 Remove declaration.
15153 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15155 * ada-typeprint.c (print_range): Add missing empty line
15156 after local declaration.
15158 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15160 * ada-valprint.c (print_optional_low_bound): Get index_type's
15161 target type for as long as it is a TYPE_CODE_RANGE.
15163 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15165 * procfs.c (procfs_make_note_section): Remove assertion and
15166 associated comment.
15168 2014-01-24 Yao Qi <yao@codesourcery.com>
15170 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15171 * corelow.c (get_core_siginfo): Likewise.
15173 2014-01-24 Yao Qi <yao@codesourcery.com>
15175 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15176 ULONGEST. Don't check 'len' is negative.
15177 (remote_write_bytes): Change type of 'len' to ULONGEST.
15179 2014-01-23 Tom Tromey <tromey@redhat.com>
15182 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15183 Handle exception from frame.block.
15184 (FrameVars.fetch_frame_locals): Likewise.
15186 2014-01-23 Tom Tromey <tromey@redhat.com>
15189 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15190 on a NULL pointer. Move "goto error" to correct place.
15192 2014-01-23 Tom Tromey <tromey@redhat.com>
15195 * python/py-framefilter.c (apply_frame_filter): Call
15196 ensure_python_env after computing gdbarch.
15198 2014-01-23 Yao Qi <yao@codesourcery.com>
15200 * target.c (raw_memory_xfer_partial): Change argument type
15201 from void * to gdb_byte *.
15202 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15204 2014-01-22 Doug Evans <dje@google.com>
15206 New gdbserver option --debug-format=timestamp.
15207 * NEWS: Mention it.
15209 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15211 * syscalls/s390x-linux.xml: New file.
15212 * syscalls/s390-linux.xml: New file.
15213 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15214 (XML_SYSCALL_FILENAME_S390X): Likewise.
15215 (op_svc): New enum value for SVC opcode.
15216 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15217 (s390_linux_get_syscall_number): New function.
15218 (s390_gdbarch_init): Register '*get_syscall_number' and the
15219 syscall xml file name.
15220 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15221 "s390-linux.xml" and "s390x-linux.xml".
15222 * NEWS: Announce new feature.
15224 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15226 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15228 2014-01-22 Pedro Alves <palves@redhat.com>
15230 * xtensa-config.c: Include defs.h.
15232 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15234 * common/common-utils.h: Add "ARI:" comment beside __func__
15237 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15239 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15240 documentation a bit.
15242 2014-01-21 Roland McGrath <mcgrathr@google.com>
15244 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15245 * configure: Regenerate.
15246 * aclocal.m4: Regenerate.
15247 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15248 New substituted variables.
15249 (install-strip): New target.
15250 (INSTALL_SCRIPT): New substituted variable.
15251 (FLAGS_TO_PASS): Add it.
15252 (install-only): Use $(INSTALL_SCRIPT) rather than
15253 $(INSTALL_PROGRAM) for gcore.
15255 2014-01-20 Tom Tromey <tromey@redhat.com>
15257 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15260 2014-01-20 Tom Tromey <tromey@redhat.com>
15262 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15263 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15264 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15265 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15266 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15267 (struct cmd_list_element) <flags>: Remove.
15268 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15269 doc_allocated>: New fields.
15270 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15272 * maint.c (maintenance_do_deprecate): Update.
15273 * top.c (execute_command): Update.
15275 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15277 * xtensa-linux-nat.c: Include asm/ptrace.h.
15279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15281 * Makefile.in (SFILES): Add d-support.c.
15282 (COMMON_OBS): Add d-support.o.
15283 * d-lang.h (d_parse_symbol): Add comment, now defined in
15285 * d-lang.c (parse_call_convention)
15286 (parse_attributes, parse_function_types)
15287 (parse_function_args, parse_type, parse_identifier)
15288 (call_convention_p, d_parse_symbol): Move functions to ...
15289 * d-support.c: ... New file.
15291 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15293 * d-lang.h (d_parse_symbol): Add declaration.
15294 * d-lang.c (extract_identifiers)
15295 (extract_type_info): Remove functions.
15296 (parse_call_convention, parse_attributes)
15297 (parse_function_types, parse_function_args)
15298 (parse_type, parse_identifier, call_convention_p)
15299 (d_parse_symbol): New functions.
15300 (d_demangle): Use d_parse_symbol to demangle D symbols.
15302 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15304 * d-lang.h (struct builtin_d_type): New data type.
15305 (builtin_d_type): Add declaration.
15306 * d-lang.c (d_language_arch_info, build_d_types)
15307 (builtin_d_type): New functions.
15308 (enum d_primitive_types): New data type.
15309 (d_language_defn): Change c_language_arch_info to
15310 d_language_arch_info.
15311 (d_type_data): New static variable.
15312 (_initialize_d_language): Initialize d_type_data.
15314 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15316 * d-lang.h (d_main_name): Add declaration.
15317 * d-lang.c (d_main_name): New function.
15318 * symtab.c (find_main_name): Add call to d_main_name.
15320 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15322 * d-lang.c (d_language_defn): Change macro_expansion_c to
15323 macro_expansion_no.
15325 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15327 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15329 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15331 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15332 gdb_exception" declaration.
15333 * remote.c (getpkt_or_notif_sane): Likewise.
15335 2014-01-17 Doug Evans <dje@google.com>
15337 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15338 function, contents of dirnames_to_char_ptr_vec_append moved here.
15339 (delim_string_to_char_ptr_vec): New function.
15340 (dirnames_to_char_ptr_vec_append): Rewrite.
15341 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15343 2014-01-17 Doug Evans <dje@google.com>
15345 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15347 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15348 #include "common-utils.h".
15349 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15350 * common/vec.h (VEC_ASSERT_PASS): Update.
15351 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15352 (MACH_CHECK_ERROR): Update.
15354 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15356 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15358 * gdbarch.h: Regenerate.
15360 2014-01-16 Tom Tromey <tromey@redhat.com>
15362 * value.c (struct value) <regnum>: Move earlier.
15364 2014-01-16 Tom Tromey <tromey@redhat.com>
15366 * remote.c (extended_remote_create_inferior): Rename from
15367 extended_remote_create_inferior_1. Add "ops" argument. Remove
15368 old implementation.
15370 2014-01-16 Pedro Alves <palves@redhat.com>
15372 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15373 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15376 2014-01-16 Doug Evans <dje@google.com>
15378 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15382 * btrace.h (btrace_thread_flag): New.
15383 (struct btrace_thread_info) <flags>: New.
15384 * record-btrace.c (record_btrace_resume_thread)
15385 (record_btrace_find_thread_to_move, btrace_step_no_history)
15386 (btrace_step_stopped, record_btrace_start_replaying)
15387 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15388 (record_btrace_find_resume_thread): New.
15389 (record_btrace_resume, record_btrace_wait): Extend.
15390 (record_btrace_can_execute_reverse): New.
15391 (record_btrace_open): Fail in non-stop mode.
15392 (record_btrace_set_replay): Split into this, ...
15393 (record_btrace_stop_replaying): ... this, ...
15394 (record_btrace_clear_histories): ... and this.
15395 (init_record_btrace_ops): Init to_can_execute_reverse.
15396 * NEWS: Announce it.
15398 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15400 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15401 (forward_target_decr_pc_after_break)
15402 (target_decr_pc_after_break): New.
15403 * target.c (forward_target_decr_pc_after_break)
15404 (target_decr_pc_after_break): New.
15405 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15406 instead of gdbarch_decr_pc_after_break.
15407 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15408 instead of gdbarch_decr_pc_after_break.
15409 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15410 instead of gdbarch_decr_pc_after_break.
15411 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15412 instead of gdbarch_decr_pc_after_break.
15413 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15414 instead of gdbarch_decr_pc_after_break.
15415 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15416 instead of gdbarch_decr_pc_after_break.
15418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15420 * btrace.c: Include regcache.h.
15421 (btrace_add_pc): New.
15422 (btrace_enable): Call btrace_add_pc.
15423 (btrace_is_empty): New.
15424 * btrace.h (btrace_is_empty): New.
15425 * record-btrace.c (require_btrace, record_btrace_info): Call
15428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15430 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15431 Support delta reads.
15432 (linux_disable_btrace): Change return type.
15433 * common/linux-btrace.h (linux_read_btrace): Change parameters
15434 and return type to allow error reporting. Update users.
15435 (linux_disable_btrace): Change return type. Update users.
15436 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15438 (btrace_error): New.
15439 (btrace_block) <begin>: Comment on BEGIN == 0.
15440 * btrace.c (btrace_compute_ftrace): Start from the end of
15442 (btrace_stitch_trace, btrace_clear_history): New.
15443 (btrace_fetch): Read delta trace, return if replaying.
15444 (btrace_clear): Move clear history code to btrace_clear_history.
15445 (parse_xml_btrace): Throw an error if parsing failed.
15446 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15447 and return type to allow error reporting.
15448 (target_read_btrace): Change parameters and return type to allow
15450 * target.c (target_read_btrace): Update.
15451 * remote.c (remote_read_btrace): Support delta reads. Pass
15453 * NEWS: Announce it.
15455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15457 * record.h (record_btrace_frame_unwind)
15458 (record_btrace_tailcall_frame_unwind): New declarations.
15459 * dwarf2-frame: Include record.h
15460 (dwarf2_frame_cfa): Throw an error for btrace frames.
15461 * record-btrace.c: Include hashtab.h.
15462 (btrace_get_bfun_name): New.
15463 (btrace_call_history): Call btrace_get_bfun_name.
15464 (struct btrace_frame_cache): New.
15466 (bfcache_hash, bfcache_eq, bfcache_new): New.
15467 (btrace_get_frame_function): New.
15468 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15469 (record_btrace_frame_this_id): Compute own id.
15470 (record_btrace_frame_prev_register): Provide PC, throw_error
15471 for all other registers.
15472 (record_btrace_frame_sniffer): Detect btrace frames.
15473 (record_btrace_tailcall_frame_sniffer): New.
15474 (record_btrace_frame_dealloc_cache): New.
15475 (record_btrace_frame_unwind): Add new functions.
15476 (record_btrace_tailcall_frame_unwind): New.
15477 (_initialize_record_btrace): Allocate cache.
15478 * btrace.c (btrace_clear): Call reinit_frame_cache.
15479 * NEWS: Announce it.
15481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15483 * record-btrace.c (record_btrace_set_replay)
15484 (record_btrace_goto_begin, record_btrace_goto_end)
15485 (record_btrace_goto): New.
15486 (init_record_btrace_ops): Initialize them.
15487 * NEWS: Announce it.
15489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15491 * record-btrace.c (record_btrace_find_new_threads)
15492 (record_btrace_thread_alive): New.
15493 (init_record_btrace_ops): Initialize to_find_new_threads and
15496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15498 * record-btrace.c (record_btrace_resume): New.
15499 (record_btrace_wait): New.
15500 (init_record_btrace_ops): Initialize to_wait and to_resume.
15502 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15504 * record-btrace.c (record_btrace_xfer_partial)
15505 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15506 (record_btrace_allow_memory_access): New.
15507 (init_record_btrace_ops): Initialize new methods.
15508 * target.c (raw_memory_xfer_partial): Bail out if target reports
15509 that this memory is not available.
15511 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15513 * target.h (target_ops) <to_insert_breakpoint>
15514 <to_remove_breakpoint>: Add target_ops parameter.
15515 (forward_target_insert_breakpoint): New.
15516 (forward_target_remove_breakpoint): New.
15517 (memory_remove_breakpoint, memory_insert_breakpoint):
15518 Add target_ops parameter.
15519 * target.c (target_insert_breakpoint): Split into this and ...
15520 (forward_target_insert_breakpoint): ... this.
15521 (target_remove_breakpoint): Split into this and ...
15522 (forward_target_remove_breakpoint): ... this.
15523 (debug_to_insert_breakpoint): Add target_ops parameter.
15524 Call forward_target_insert_breakpoint.
15525 (debug_to_remove_breakpoint): Add target_ops parameter.
15526 Call forward_target_remove_breakpoint.
15527 (update_current_target): Do not inherit or default to_insert_breakpoint
15528 and to_remove_breakpoint.
15529 * corelow.c (ignore): Add target_ops parameter.
15530 * exec.c (ignore): Add target_ops parameter.
15531 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15532 Add target_ops parameter.
15533 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15534 Add target_ops parameter.
15535 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15536 Add target_ops parameter.
15537 * record-full.c (record_full_beneath_to_insert_breakpoint)
15538 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15539 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15540 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15541 (record_full_core_remove_breakpoint): Add target_ops parameter.
15543 (record_full_beneath_to_insert_breakpoint_ops)
15544 (record_full_beneath_to_remove_breakpoint_ops)
15545 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15546 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15547 tmp_to_remove_breakpoint_ops,
15548 record_full_beneath_to_insert_breakpoint_ops, and
15549 record_full_beneath_to_remove_breakpoint_ops.
15550 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15551 (m32r_remove_breakpoint): Add target_ops parameter.
15552 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15553 Add target_ops parameter.
15554 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15555 Add target_ops parameter.
15557 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15558 Markus Metzger <markus.t.metzger@intel.com>
15560 * record-btrace.c: Include frame-unwind.h.
15561 (record_btrace_frame_unwind_stop_reason)
15562 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15563 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15565 (init_record_btrace_ops): Install it.
15567 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15569 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15572 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15574 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15577 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15579 * frame-unwind.c: Include target.h.
15580 (frame_unwind_try_unwinder): New function with code from ...
15581 (frame_unwind_find_by_frame): ... here. New variable
15582 unwinder_from_target, call also target_get_unwinder)
15583 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15584 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15585 * target.h (struct target_ops): New fields to_get_unwinder and
15586 to_get_tailcall_unwinder.
15587 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15589 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15591 * record-btrace.c (record_btrace_fetch_registers)
15592 (record_btrace_store_registers)
15593 (record_btrace_to_prepare_to_store): New.
15594 (init_record_btrace_ops): Add the above.
15596 2014-01-16 Tom Tromey <tromey@redhat.com>
15598 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15599 * target.h (struct target_ops) <to_prepare_to_store>: Add
15601 (target_prepare_to_store): Add argument.
15602 * target.c (debug_to_prepare_to_store): Add argument.
15603 (update_current_target): Update.
15604 * remote.c (remote_prepare_to_store): Add 'self' argument.
15605 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15606 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15607 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15608 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15610 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15611 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15612 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15613 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15614 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15618 * btrace.h (replay) <replay>: New.
15619 (btrace_is_replaying): New.
15620 * btrace.c (btrace_clear): Free replay iterator.
15621 (btrace_is_replaying): New.
15622 * record-btrace.c (record_btrace_is_replaying): New.
15623 (record_btrace_info): Print insn number if replaying.
15624 (record_btrace_insn_history): Start at replay position.
15625 (record_btrace_call_history): Start at replay position.
15626 (init_record_btrace_ops): Init to_record_is_replaying.
15628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15630 * record-btrace.c (record_btrace_insn_history_range): Include
15632 (record_btrace_insn_history_from): Adjust range.
15633 (record_btrace_call_history_range): Include
15635 (record_btrace_call_history_from): Adjust range.
15636 * NEWS: Announce changes.
15638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15640 * record.h (enum record_print_flag)
15641 <record_print_indent_calls>: New.
15642 * record.c (get_call_history_modifiers): Recognize /c modifier.
15643 (_initialize_record): Document /c modifier.
15644 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15645 Reorder fields. Optionally indent the function name. Update
15647 * NEWS: Announce changes.
15649 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15651 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15655 * btrace.c (ftrace_new_function): Start counting at one.
15656 * record-btrace.c (record_btrace_info): Adjust number of calls
15658 * NEWS: Announce it.
15660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15662 * record-btrace.c (btrace_call_history_insn_range): Print
15663 insn range as [begin, end].
15665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15667 * btrace.h (struct btrace_func_link): New.
15668 (enum btrace_function_flag): New.
15669 (struct btrace_inst): Rename to ...
15670 (struct btrace_insn): ...this. Update all users.
15671 (struct btrace_func) <ibegin, iend>: Remove.
15672 (struct btrace_func_link): New.
15673 (struct btrace_func): Rename to ...
15674 (struct btrace_function): ...this. Update all users.
15675 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15676 (number, level, flags>: New.
15677 (struct btrace_insn_iterator): Rename to ...
15678 (struct btrace_insn_history): ...this.
15680 (struct btrace_insn_iterator, btrace_call_iterator): New.
15681 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15682 (struct btrace_target_info) <begin, end, level>
15683 <insn_history, call_history>: New.
15684 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15685 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15686 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15687 (btrace_call_number, btrace_call_begin, btrace_call_end)
15688 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15689 (btrace_find_function_by_number, btrace_set_insn_history)
15690 (btrace_set_call_history): New.
15691 * btrace.c (btrace_init_insn_iterator)
15692 (btrace_init_func_iterator, compute_itrace): Remove.
15693 (ftrace_print_function_name, ftrace_print_filename)
15694 (ftrace_skip_file): Change
15695 parameter to const.
15696 (ftrace_init_func): Remove.
15697 (ftrace_debug): Use new btrace_function fields.
15698 (ftrace_function_switched): Also consider gaining and
15699 losing symbol information).
15700 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15701 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15702 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15704 (ftrace_new_function): Move. Remove debug print.
15705 (ftrace_update_lines, ftrace_update_insns): New.
15706 (ftrace_update_function): Check for call, ret, and jump.
15707 (compute_ftrace): Renamed to ...
15708 (btrace_compute_ftrace): ...this. Rewritten to compute call
15710 (btrace_fetch, btrace_clear): Updated.
15711 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15712 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15713 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15714 (btrace_call_number, btrace_call_begin, btrace_call_end)
15715 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15716 (btrace_find_function_by_number, btrace_set_insn_history)
15717 (btrace_set_call_history): New.
15718 * record-btrace.c (require_btrace): Use new btrace thread
15720 (record_btrace_info, btrace_insn_history)
15721 (record_btrace_insn_history, record_btrace_insn_history_range):
15722 Use new btrace thread info fields and new iterator.
15723 (btrace_func_history_src_line): Rename to ...
15724 (btrace_call_history_src_line): ...this. Use new btrace
15725 thread info fields.
15726 (btrace_func_history): Rename to ...
15727 (btrace_call_history): ...this. Use new btrace thread info
15728 fields and new iterator.
15729 (record_btrace_call_history, record_btrace_call_history_range):
15730 Use new btrace thread info fields and new iterator.
15732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15734 * frame.h (frame_id_build_unavailable_stack_special): New.
15735 * frame.c (frame_id_build_unavailable_stack_special): New.
15737 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15739 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15740 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15741 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15743 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15744 (i386_insn_is_jump, i386_jmp_p): New.
15745 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15746 insn_is_jump to gdbarch.
15747 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15748 * gdbarch.h: Regenerated.
15749 * gdbarch.c: Regenerated.
15750 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15751 (default_insn_is_jump): New.
15752 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15753 (default_insn_is_jump): New.
15755 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15757 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15759 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15760 (btrace_read_type) <btrace_read_new>: Change to ...
15761 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15765 * common/linux-btrace.c (linux_read_btrace): Free trace from
15766 previous iteration.
15768 2014-01-15 Doug Evans <dje@google.com>
15770 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15773 2014-01-15 Tom Tromey <tromey@redhat.com>
15775 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15776 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15777 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15778 (set_objfile_main_name): New function.
15779 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15780 language_of_main>: New fields.
15781 (set_objfile_main_name): Declare.
15782 * symtab.c (find_main_name): Loop over objfiles to find the main
15784 (set_main_name): Now static.
15785 (get_main_info): Add comment.
15786 * symtab.h (set_main_name): Don't declare.
15788 2014-01-15 Tom Tromey <tromey@redhat.com>
15790 * symtab.c (main_progspace_key): New global.
15791 (struct main_info): New.
15792 (name_of_main, language_of_main): Remove.
15793 (get_main_info, main_info_cleanup): New function.
15794 (set_main_name, main_name, main_language): Use get_main_info.
15795 (_initialize_symtab): Initialize main_progspace_key.
15797 2014-01-15 Tom Tromey <tromey@redhat.com>
15799 * dbxread.c (process_one_symbol): Update.
15800 * dwarf2read.c (read_partial_die): Update.
15801 * symfile.c (set_initial_language): Call main_language.
15802 * symtab.c (language_of_main): Now static.
15803 (set_main_name): Add 'lang' parameter.
15804 (find_main_name): Update.
15805 (main_language): New function.
15806 (symtab_observer_executable_changed): Update.
15807 * symtab.h (set_main_name): Update.
15808 (language_of_main): Remove.
15809 (main_language): Declare.
15811 2014-01-15 Tom Tromey <tromey@redhat.com>
15813 * symfile.c (init_entry_point_info): Use new "initialized" field.
15815 * objfiles.h (struct entry_point) <initialized>: New field.
15816 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15817 (struct objfile) <ei>: ...here. Remove.
15818 * objfiles.c (entry_point_address_query): Update.
15820 2014-01-15 Tom Tromey <tromey@redhat.com>
15822 * objfiles.c (entry_point_address_query): Relocate entry point
15824 (objfile_relocate1): Do not relocate entry point address.
15825 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15826 <the_bfd_section_index>: New field.
15827 * symfile.c (init_entry_point_info): Find the entry point's
15830 2014-01-15 Tom Tromey <tromey@redhat.com>
15832 * solib-frv.c (enable_break): Use entry_point_address_query.
15834 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15836 * NEWS: Add note on improved process record-replay on
15837 arm*-linux* targets.
15839 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15841 * arm-tdep.c (enum arm_record_result): New enum.
15842 (arm_record_unsupported_insn): New function.
15843 (arm_record_coproc_data_proc): Removed.
15844 (thumb2_record_ld_st_multiple): New function.
15845 (thumb2_record_ld_st_dual_ex_tbb): New function.
15846 (thumb2_record_data_proc_sreg_mimm): New function.
15847 (thumb2_record_ps_dest_generic): New function.
15848 (thumb2_record_branch_misc_cntrl): New function.
15849 (thumb2_record_str_single_data): New function.
15850 (thumb2_record_ld_mem_hints): New function.
15851 (thumb2_record_ld_word): New function.
15852 (thumb2_record_lmul_lmla_div): New function.
15853 (thumb2_record_decode_insn_handler): New function.
15854 (decode_insn): Add thumb32 instruction handlers.
15856 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15858 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15859 (struct arm_linux_record_tdep): Declare.
15860 (arm_canonicalize_syscall): New function.
15861 (arm_all_but_pc_registers_record): New function.
15862 (arm_linux_syscall_record): New function.
15863 (arm_linux_init_abi): Add syscall recording constructs.
15864 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15865 decoding. (arm_record_coproc_data_proc): Update arm syscall
15867 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15868 <arm_syscall_record>: New field.
15869 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15872 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15874 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15875 register for push instruction recording.
15877 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15879 * arm-tdep.c (thumb_record_misc): Update to correct logical
15880 error while recording ldm, ldmia and pop instructions.
15882 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15884 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15886 2014-01-15 Pedro Alves <palves@redhat.com>
15888 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15889 (go32_resume, go32_fetch_registers, store_register)
15890 (go32_store_registers, go32_prepare_to_store)
15891 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15892 (go32_create_inferior, go32_can_run, go32_terminal_init)
15893 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15896 2014-01-15 Tom Tromey <tromey@redhat.com>
15898 * target.h (async_callback_ftype): New typedef.
15899 (struct target_ops) <to_async>: Use it.
15901 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15903 * python/py-value.c (get_field_type): Remove unnecessary curly
15904 braces for single-statement if block.
15906 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15908 * python/py-type.c (convert_field): Add missing empty line
15909 after declarations.
15911 2014-01-14 Doug Evans <dje@google.com>
15913 * symfile.h (expand_symtabs_matching): Renamed from
15914 expand_partial_symbol_names. Update prototype.
15915 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15916 * symfile.c (expand_symtabs_matching): Renamed from
15917 expand_partial_symbol_names. New args file_matcher, kind.
15918 Rename arg fun to symbol_matcher.
15919 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15920 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15921 ada_expand_partial_symbol_name.
15922 (ada_make_symbol_completion_list): Update to call
15923 expand_symtabs_matching.
15924 (ada_add_global_exceptions): Call expand_symtabs_matching.
15925 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15926 call map_symbol_filenames.
15927 * symtab.c (sources_info): Update to call map_symbol_filenames.
15928 (search_symbols): Call expand_symtabs_matching.
15929 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15930 (default_make_symbol_completion_list_break_on): Update to call
15931 expand_symtabs_matching.
15932 (make_source_files_completion_list): Update to call
15933 map_symbol_filenames.
15935 2014-01-14 Doug Evans <dje@google.com>
15937 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15938 (expand_symtabs_symbol_matcher_ftype): New typedef.
15939 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15940 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15941 * symfile.c (expand_partial_symbol_names): Update to use
15942 expand_symtabs_symbol_matcher_ftype.
15943 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15944 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15945 Arg name_matcher renamed to symbol_matcher.
15946 * psymtab.c (recursively_search_psymtabs): Update to use
15947 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15949 (expand_symtabs_matching_via_partial): Update to use
15950 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15951 Arg name_matcher renamed to symbol_matcher.
15953 2014-01-14 Doug Evans <dje@google.com>
15955 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15956 (map_partial_symbol_filenames): Ditto.
15957 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15958 (map_partial_symbol_filenames): Ditto.
15959 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15960 (map_partial_symbol_filenames): Ditto.
15961 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15962 (map_partial_symbol_filenames): Ditto.
15963 * symtab.c: Delete #include "psymtab.h".
15965 2014-01-14 Pedro Alves <palves@redhat.com>
15966 Tom Tromey <tromey@redhat.com>
15968 * infrun.c (use_displaced_stepping): Use find_record_target
15969 instead of RECORD_IS_USED.
15970 (adjust_pc_after_break): Use record_full_is_used instead of
15972 * record-btrace.c (record_btrace_open): Call record_preopen
15973 instead of checking RECORD_IS_USED.
15974 * record-full.c (record_full_shortname)
15975 (record_full_core_shortname): New globals.
15976 (record_full_is_used): New function.
15977 (find_full_open): Call record_preopen instead of checking
15979 (init_record_full_ops): Set the target's shortname to
15980 record_full_shortname.
15981 (init_record_full_core_ops): Set the target's shortname to
15982 record_full_core_shortname.
15983 * record-full.h (record_full_is_used): Declare.
15984 * record.c (find_record_target): Make extern.
15985 (record_preopen): New function.
15986 * record.h (RECORD_IS_USED): Delete macro.
15987 (find_record_target, record_preopen): Declare functions.
15989 2014-01-14 Yao Qi <yao@codesourcery.com>
15991 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15992 'len''s type to ULONGEST.
15993 (core_xfer_shared_libraries_aix): Likewise.
15994 * gdbarch.c, gdbarch.h: Regenerated.
15995 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15996 Change type of 'len' to ULONGEST.
15997 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15998 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16000 2014-01-14 Yao Qi <yao@codesourcery.com>
16002 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16003 type of 'len' to ULONGEST.
16004 (linux_xfer_osdata_processgroups): Likewise.
16005 (linux_xfer_osdata_threads): Likewise.
16006 (linux_xfer_osdata_fds): Likewise.
16007 (linux_xfer_osdata_isockets): Likewise.
16008 (linux_xfer_osdata_shm): Likewise.
16009 (linux_xfer_osdata_sem): Likewise.
16010 (linux_xfer_osdata_msg): Likewise.
16011 (linux_common_xfer_osdata): Likewise.
16012 (struct osdata_type) <getter>: Likewise.
16013 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16016 2014-01-14 Yao Qi <yao@codesourcery.com>
16018 * target.h (target_xfer_partial_ftype): Update.
16019 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16021 * aix-thread.c (aix_thread_xfer_partial): Change type of
16022 argument 'len' to ULONGEST.
16023 * auxv.c (procfs_xfer_auxv): Likewise.
16024 (ld_so_xfer_auxv): Likewise.
16025 (memory_xfer_auxv): Likewise.
16026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16028 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16029 * corelow.c (core_xfer_partial): Likewise.
16030 * ctf.c (ctf_xfer_partial): Likewise.
16031 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16033 (darwin_read_dyld_info): Likewise.
16034 (darwin_xfer_partial): Likewise.
16035 * exec.c (section_table_xfer_memory_partial): Likewise.
16036 (exec_xfer_partial): Likewise.
16037 * exec.h (section_table_xfer_memory_partial): Update
16039 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16040 instead of plongest.
16041 (gnu_xfer_partial): Likewise.
16042 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16043 (ia64_hpux_xfer_solib_got): Likewise.
16044 (ia64_hpux_xfer_partial): Likewise.
16045 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16046 * inf-ptrace.c (inf_ptrace_xfer_partial):
16047 * inf-ttrace.c (inf_ttrace_xfer_partial):
16048 * linux-nat.c (linux_xfer_siginfo): Likewise.
16049 (linux_nat_xfer_partial): Likewise.
16050 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16051 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16052 * monitor.c (monitor_xfer_memory): Likewise.
16053 (monitor_xfer_partial): Likewise.
16054 * procfs.c (procfs_xfer_partial): Likewise.
16055 * record-full.c (record_full_xfer_partial): Likewise.
16056 (record_full_core_xfer_partial): Likewise.
16057 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16058 instead of plongest.
16059 (gdbsim_xfer_partial): Likewise.
16060 * remote.c (remote_xfer_partial): Likewise.
16061 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16062 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16064 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16065 (rs6000_xfer_shared_libraries): Likewise.
16066 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16067 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16068 (sparc_xfer_partial): Likewise.
16069 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16070 (spu_xfer_partial): Likewise.
16071 * spu-multiarch.c (spu_xfer_partial): Likewise.
16072 * target.c (target_read_live_memory): Likewise.
16073 (memory_xfer_live_readonly_partial): Likewise.
16074 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16075 (target_xfer_partial, default_xfer_partial): Likewise.
16076 (current_xfer_partial): Likewise.
16077 * tracepoint.c (tfile_xfer_partial): Likewise.
16078 * windows-nat.c (windows_xfer_memory): Likewise. Call
16079 pulongest instead of plongest.
16080 (windows_xfer_partial): Likewise.
16081 (windows_xfer_shared_libraries): Likewise.
16083 2014-01-14 Yao Qi <yao@codesourcery.com>
16085 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16086 target_xfer_partial_ftype.
16088 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16092 * valops.c (value_struct_elt_bitpos): New function
16093 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16094 object to 'None' if the field name is an empty string ("").
16095 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16096 attribute to look for a field when 'name' is 'None'.
16097 (get_field_type): New function
16099 2014-01-13 Doug Evans <dje@google.com>
16102 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16103 (try_open_dwop_file): Ditto.
16104 * gdb_bfd.c: #include "vec.h".
16105 (bfdp): New typedef.
16106 (struct gdb_bfd_data): New member included_bfds.
16107 (gdb_bfd_unref): Unref all included bfds.
16108 (gdb_bfd_record_inclusion): New function.
16109 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16111 2014-01-13 Tom Tromey <tromey@redhat.com>
16113 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16115 2014-01-13 Tom Tromey <tromey@redhat.com>
16117 * defs.h (use_windows): Remove.
16118 * gdb.c (main): Update.
16119 * main.c (captured_main, gdb_main): Update.
16120 * main.h (struct captured_main_args) <use_windows>: Remove.
16121 * top.c (use_windows): Remove.
16123 2014-01-13 Tom Tromey <tromey@redhat.com>
16125 * defs.h (deprecated_flush_hook): Remove.
16127 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16130 * linux-thread-db.c (try_thread_db_load): Add parameter
16131 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16132 (try_thread_db_load_from_pdir_1): Move it there from here.
16133 (try_thread_db_load_from_sdir): Update caller.
16134 (try_thread_db_load_from_dir): Move it there from here.
16136 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16138 * regformats/regdat.sh: Always rewrite the register file.
16140 2014-01-13 Pedro Alves <palves@redhat.com>
16142 * Makefile.in (CHECK_HEADERS): New variable.
16143 (check-headers:): New rule.
16145 2014-01-13 Tom Tromey <tromey@redhat.com>
16147 * cli/cli-setshow.c (do_set_command): Update.
16148 * defs.h (deprecated_set_hook): Remove.
16149 * top.c (deprecated_set_hook): Remove.
16151 2014-01-13 Pedro Alves <palves@redhat.com>
16153 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16154 the tracepoint if the PC is a pseudo-register.
16156 2014-01-13 Tom Tromey <tromey@redhat.com>
16158 * defs.h (XCALLOC): Remove.
16159 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16160 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16161 * dwarf2loc.c (allocate_piece_closure): Likewise.
16162 * elfread.c (elf_symfile_segments): Likewise.
16163 (elf_symfile_segments): Likewise.
16164 * gdbtypes.c (copy_type_recursive): Likewise.
16165 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16166 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16167 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16169 * mt-tdep.c (mt_gdbarch_init): Likewise.
16170 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16172 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16173 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16174 * registry.c (registry_alloc_data): Likewise.
16175 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16176 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16177 * serial.c (serial_fdopen_ops): Likewise.
16178 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16180 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16181 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16184 2014-01-13 Tom Tromey <tromey@redhat.com>
16186 * defs.h (XMALLOC): Remove.
16187 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16188 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16189 * cli-out.c (struct ui_out *): Likewise.
16190 * cli/cli-dump.c (add_dump_command): Likewise.
16191 (add_dump_command): Likewise.
16192 * complaints.c (get_complaints): Likewise.
16193 (find_complaint): Likewise.
16194 * dwarf2-frame.c (execute_cfa_program): Likewise.
16195 * dwarf2read.c (abbrev_table_read_table): Likewise.
16196 * gdbarch.sh: Likewise.
16197 * gdbarch.c: Rebuild.
16198 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16199 * interps.c (interp_new): Likewise.
16200 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16201 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16202 * mi/mi-console.c (mi_console_file_new): Likewise.
16203 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16204 * mi/mi-out.c (mi_out_new): Likewise.
16205 * mi/mi-parse.c (mi_parse): Likewise.
16206 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16207 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16208 * observer.c (xalloc_observer_list_node): Likewise.
16209 * regcache.c (regcache_xmalloc_1): Likewise.
16210 * reggroups.c (reggroup_new): Likewise.
16211 (_initialize_reggroup): Likewise.
16212 * registry.c (register_data_with_cleanup): Likewise.
16213 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16214 * ser-base.c (serial_ttystate): Likewise.
16215 * ser-mingw.c (make_pipe_state): Likewise.
16216 * ser-pipe.c (pipe_open): Likewise.
16217 * serial.c (serial_open): Likewise.
16218 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16219 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16220 (tui_alloc_win_info): Likewise.
16221 (tui_add_content_elements): Likewise.
16222 * tui/tui-file.c (tui_file_new): Likewise.
16223 * tui/tui-out.c (tui_out_new): Likewise.
16224 * ui-file.c (mem_file_new): Likewise.
16225 * ui-out.c (push_level): Likewise.
16226 (make_cleanup_ui_out_end): Likewise.
16227 (append_header_to_list): Likewise.
16228 (ui_out_new): Likewise.
16229 * user-regs.c (user_reg_add_builtin): Likewise.
16231 2014-01-13 Tom Tromey <tromey@redhat.com>
16233 * defs.h (XZALLOC): Remove.
16234 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16235 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16236 (get_ada_tasks_inferior_data): Likewise.
16237 * auto-load.c (get_auto_load_pspace_data): Likewise.
16238 * auxv.c (get_auxv_inferior_data): Likewise.
16239 * bfd-target.c (target_bfd_reopen): Likewise.
16240 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16241 (deprecated_insert_raw_breakpoint): Likewise.
16242 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16243 * corelow.c (core_open): Likewise.
16244 * darwin-nat.c (darwin_check_new_threads): Likewise.
16245 (darwin_attach_pid): Likewise.
16246 * dummy-frame.c (dummy_frame_push): Likewise.
16247 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16248 * dwarf2loc.c (allocate_piece_closure): Likewise.
16249 * elfread.c (elf_symfile_segments): Likewise.
16250 * eval.c (ptrmath_type_p): Likewise.
16251 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16252 * gdbtypes.c (alloc_type_arch): Likewise.
16253 (alloc_type_instance): Likewise.
16254 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16255 * inf-child.c (inf_child_can_use_agent): Likewise.
16256 * inflow.c (get_inflow_inferior_data): Likewise.
16257 * infrun.c (save_infcall_suspend_state): Likewise.
16258 * jit.c (jit_reader_load): Likewise.
16259 (get_jit_objfile_data): Likewise.
16260 (get_jit_program_space_data): Likewise.
16261 (jit_object_open_impl): Likewise.
16262 (jit_symtab_open_impl): Likewise.
16263 (jit_block_open_impl): Likewise.
16264 (jit_frame_sniffer): Likewise.
16265 * linux-fork.c (add_fork): Likewise.
16266 * maint.c (make_command_stats_cleanup): Likewise.
16267 * objfiles.c (get_objfile_pspace_data): Likewise.
16268 * opencl-lang.c (struct lval_closure): Likewise.
16269 * osdata.c (osdata_start_osdata): Likewise.
16270 * progspace.c (new_address_space): Likewise.
16271 (add_program_space): Likewise.
16272 * remote-sim.c (get_sim_inferior_data): Likewise.
16273 * sh-tdep.c (sh_gdbarch_init): Likewise.
16274 * skip.c (Ignore): Likewise.
16275 (skip_delete_command): Likewise.
16276 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16277 (library_list_start_library): Likewise.
16278 (solib_aix_current_sos): Likewise.
16279 * solib-darwin.c (get_darwin_info): Likewise.
16280 (darwin_current_sos): Likewise.
16281 * solib-dsbt.c (get_dsbt_info): Likewise.
16282 * solib-ia64-hpux.c (new_so_list): Likewise.
16283 (ia64_hpux_get_solib_linkage_addr): Likewise.
16284 * solib-spu.c (append_ocl_sos): Likewise.
16285 (spu_current_sos): Likewise.
16286 * solib-svr4.c (get_svr4_info): Likewise.
16287 (svr4_keep_data_in_core): Likewise.
16288 (library_list_start_library): Likewise.
16289 (svr4_default_sos): Likewise.
16290 (svr4_read_so_list): Likewise.
16291 * solib-target.c (library_list_start_library): Likewise.
16292 (solib_target_current_sos): Likewise.
16293 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16294 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16295 * symfile.c (default_symfile_segments): Likewise.
16296 * target-descriptions.c (tdesc_data_init): Likewise.
16297 (tdesc_create_reg): Likewise.
16298 (struct tdesc_type *): Likewise.
16299 (tdesc_create_vector): Likewise.
16300 (tdesc_set_struct_size): Likewise.
16301 (struct tdesc_type *): Likewise.
16302 (tdesc_free_feature): Likewise.
16303 (tdesc_create_feature): Likewise.
16304 * windows-nat.c (windows_add_thread): Likewise.
16305 (windows_make_so): Likewise.
16306 * xml-support.c (gdb_xml_body_text): Likewise.
16307 (gdb_xml_create_parser_and_cleanup): Likewise.
16308 (xml_process_xincludes): Likewise.
16309 * xml-syscall.c (allocate_syscalls_info): Likewise.
16310 (syscall_create_syscall_desc): Likewise.
16312 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16314 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16315 function, with code from i386_stap_parse_special_token.
16316 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16317 (i386_stap_parse_special_token): Move code to the two functions
16318 above; simplify it.
16320 2014-01-09 Pedro Alves <palves@redhat.com>
16321 Hui Zhu <hui@codesourcery.com>
16324 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16325 bp_err_string. Don't mark the location shlib_disabled if the
16326 error thrown wasn't a generic or memory error. Catch errors
16327 thrown while inserting breakpoints in overlayed code. Output
16328 error message of software breakpoints.
16329 * remote.c (remote_insert_breakpoint): If this breakpoint has
16330 target-side commands but this stub doesn't support Z0 packets,
16331 throw NOT_SUPPORTED_ERROR error.
16332 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16333 * target.h (target_insert_breakpoint): Extend comment.
16334 (target_insert_hw_breakpoint): Add comment.
16336 2014-01-08 Pedro Alves <palves@redhat.com>
16338 * remote.c (remote_add_thread): Add threads silently if starting
16340 (remote_notice_new_inferior): If in all-stop, and starting up,
16341 don't call notice_new_inferior.
16342 (get_current_thread): New function, factored out from ...
16343 (add_current_inferior_and_thread): ... this. Adjust.
16344 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16345 found any thread, then select the remote's current thread as GDB's
16346 current thread too.
16348 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16350 * NEWS: Create a new section for the next release branch.
16351 Rename the section of the current branch, now that it has
16354 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16356 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16357 * version.in: Bump version to 7.7.50.DATE-cvs.
16359 2014-01-08 Yao Qi <yao@codesourcery.com>
16361 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16362 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16363 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16365 2014-01-08 Yao Qi <yao@codesourcery.com>
16367 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16368 return value of bfd_get_filename to symbol_file_add_from_bfd.
16370 2014-01-08 Pierre Muller <muller@sourceware.org>
16373 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16374 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16375 to prim_record_mininal_symbol_and_info.
16376 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16377 in call to prim_record_minimal_symbol_and_info.
16378 (read_pe_exported_syms): Set index field of section_data.
16380 2014-01-07 Andrew Pinski <apinski@cavium.com>
16382 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16383 * features/aarch64.c: Regenerate.
16385 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16387 * target.c (return_null): Define.
16388 (update_current_target): Use it instead of return_zero for
16389 functions that return a pointer.
16391 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16393 * source.c (add_path): Fix check for duplicated paths in the previously
16396 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16398 * ada-lang.c: Remove duplicated include statements.
16399 * alphabsd-nat.c: Ditto.
16400 * amd64-darwin-tdep.c: Ditto.
16401 * amd64fbsd-nat.c: Ditto.
16402 * auto-load.c: Ditto.
16404 * breakpoint.c: Ditto.
16405 * dbxread.c: Ditto.
16406 * fork-child.c: Ditto.
16407 * gdb_usleep.c: Ditto.
16408 * i386-darwin-tdep.c: Ditto.
16409 * i386fbsd-nat.c: Ditto.
16411 * inferior.c: Ditto.
16412 * jv-lang.c: Ditto.
16413 * linux-nat.c: Ditto.
16414 * linux-tdep.c: Ditto.
16415 * m68kbsd-nat.c: Ditto.
16416 * m68klinux-nat.c: Ditto.
16417 * microblaze-tdep.c: Ditto.
16418 * mips-linux-tdep.c: Ditto.
16419 * mn10300-tdep.c: Ditto.
16420 * nto-tdep.c: Ditto.
16421 * opencl-lang.c: Ditto.
16423 * printcmd.c: Ditto.
16424 * regcache.c: Ditto.
16425 * remote-m32r-sdi.c: Ditto.
16427 * symfile.c: Ditto.
16429 * tilegx-linux-nat.c: Ditto.
16430 * tilegx-tdep.c: Ditto.
16431 * tracepoint.c: Ditto.
16433 * vaxbsd-nat.c: Ditto.
16434 * windows-nat.c: Ditto.
16435 * xtensa-tdep.c: Ditto.
16437 2014-01-07 Yao Qi <yao@codesourcery.com>
16439 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16441 2014-01-07 Yao Qi <yao@codesourcery.com>
16442 Joel Brobecker <brobecker@adacore.com>
16444 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16445 (pdc_write_regs): Likewise.
16446 (fetch_regs_kernel_thread): Likewise.
16447 (store_regs_kernel_thread): Likewise.
16449 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16451 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16452 tagged type objects to their actual type.
16454 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16456 * ada-valprint.c (print_field_values): Add "language" parameter.
16457 Update calls to print_field_values and print_variant_part.
16458 Pass new parameter "language" in call to val_print instead
16459 of "current_language". Replace call to ada_val_print by call
16461 (print_variant_part): Add "language" parameter.
16462 (ada_val_print_struct_union): Update call to print_field_values.
16464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16466 * ada-valprint.c (ui_memcpy): Delete.
16467 (ada_print_floating): Update documentation. Add empty line
16468 between between function documentation and implementation.
16469 Delete variable "buffer". Use ui_file_xstrdup in place of
16470 ui_file_put. Minor adjustments following this change.
16472 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16474 * ada-valprint.c (ada_val_print_string): New function,
16475 extracted from ada_val_print_array.
16476 (ada_val_print_array): Replace extracted code by call
16477 to ada_val_print_string followed by a return. Move
16478 "else" branch to the function's top block.
16480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16482 * ada-valprint.c (ada_val_print_array): Move implementation
16483 down. Rename parameter "offset" and "val" into "offset_aligned"
16484 and "original_value" respectively. Add parameter "offset".
16486 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16488 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16489 re-organizing the code. Change the "???" message printed
16490 when target type is a TYPE_CODE_UNDEF into
16491 "<ref to undefined type>".
16493 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16495 * ada-valprint.c (print_record): Delete, implementation inlined...
16496 (ada_val_print_struct_union): ... here. Remove call to
16497 ada_check_typedef in inlined implementation.
16499 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16501 * ada-valprint.c (ada_val_print_gnat_array): New function,
16502 extracted from ada_val_print_1;
16503 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16504 (ada_val_print_flt, ada_val_print_struct_union)
16505 (ada_val_print_ref): Likewise.
16506 (ada_val_print_1): Delete variables i and elttype.
16507 Replace extracted-out code by call to corresponding
16510 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16512 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16514 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16516 * ada-valprint.c (ada_val_print_1): Replace calls to
16517 ada_val_print_1 by calls to val_print.
16519 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16521 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16522 Update calls to self accordingly. Replace calls to c_val_print
16523 by calls to val_print.
16525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16527 * ada-valprint.c (print_record): Delete declaration.
16528 (adjust_type_signedness, ada_val_print_1): Likewise.
16529 (ada_val_print): Move function implementation down.
16530 (print_variant_part, print_field_values, print_record):
16531 Move function implementation up.
16533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16535 * python/py-type.c (typy_get_name): New function.
16536 (type_object_getset): Add entry for attribute "name".
16537 * NEWS: Add entry mentioning this new attribute.
16539 2014-01-07 Yao Qi <yao@codesourcery.com>
16541 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16544 2014-01-07 Yao Qi <yao@codesourcery.com>
16546 * gnu-nat.c (info_port_rights): Add qualifier const to
16549 2014-01-07 Yao Qi <yao@codesourcery.com>
16551 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16553 2014-01-07 Yao Qi <yao@codesourcery.com>
16555 * gnu-nat.c (make_inf) Update declaration.
16556 (make_inf): Make it static.
16557 (inf_set_traced): Likewise.
16558 (inf_port_to_thread, inf_task_died_status): Likewise.
16560 2014-01-07 Yao Qi <yao@codesourcery.com>
16562 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16564 2014-01-07 Yao Qi <yao@codesourcery.com>
16566 * gnu-nat.c (_initialize_gnu_nat): Declare.
16568 2014-01-07 Yao Qi <yao@codesourcery.com>
16570 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16572 (struct gdbarch_info) <byte_order>: Change type to
16574 <byte_order_for_code>: Likewise.
16575 * gdbarch.c, gdbarch.h: Regenerated.
16577 2014-01-06 Sasha Smundak <asmundak@google.com>
16579 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16581 2014-01-06 Tom Tromey <tromey@redhat.com>
16583 * doublest.c (convert_doublest_to_floatformat): Use const, not
16585 * somread.c (som_symtab_read): Likewise.
16587 2014-01-07 Hui Zhu <hui@codesourcery.com>
16589 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16590 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16591 (gdb_bfd_fopen): Ditto.
16592 (gdb_bfd_openr): Ditto.
16593 (gdb_bfd_openw): Ditto.
16594 (gdb_bfd_openr_iovec): Ditto.
16595 (gdb_bfd_fdopenr): Ditto.
16596 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16597 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16599 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16601 * symfile-mem.c (symbol_file_add_from_memory): Removed
16602 gdb_bfd_stash_filename.
16604 2014-01-03 Doug Evans <dje@google.com>
16606 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16609 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16611 Update year range in copyright notice of all files.
16613 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16615 * top.c (print_gdb_version): Set copyright year to 2014.
16617 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16619 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16621 For older changes see ChangeLog-2013.
16627 version-control: never