1 2014-12-30 Joel Brobecker <brobecker@adacore.com>
3 * windows-nat.c (safe_symbol_file_add_stub)
4 (safe_symbol_file_add_cleanup, safe_symbol_file_add)
5 (dll_symbol_command): Delete.
6 (_initialize_windows_nat): Delete local variable "c".
7 Remove "dll-symbols", "add-shared-symbol-files" and assf"
10 2014-12-29 Thomas Preud'homme <thomas.preudhomme@arm.com>
12 * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch
15 2014-12-29 Anthony Green <green@moxielogic.com>
17 * configure.tgt: Add support for moxiebox target.
19 2014-12-27 Anthony Green <green@moxielogic.com>
21 * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
22 are 32 bits, not 48. Update comments for various instructions.
23 (moxie_process_record): Update for new shorter ldo/sto
24 instructions. Add support for sex, zex, umul.x and mul.x
25 instructions. Update comments for various instructions.
27 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
29 * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
30 Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
31 switch handling the different values of Tag_ABI_VFP_args.
33 2014-12-23 Doug Evans <xdje42@gmail.com>
35 * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
37 (cache_symbol): Ignore symbols that are not objfile-owned.
38 * block.c (block_objfile): New function.
39 (block_gdbarch): New function.
40 * block.h (block_objfile): Declare.
41 (block_gdbarch): Declare.
42 * c-exp.y (classify_name): Remove call to
43 language_lookup_primitive_type. No longer necessary.
44 * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
45 Remove call to language_lookup_primitive_type. No longer necessary.
46 * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
47 (syscm_gdbarch_data): New struct.
48 (syscm_init_arch_symbols): New function.
49 (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
50 All callers updated. Handle symbols owned by arches.
51 (gdbscm_symbol_symtab): Handle symbols owned by arches.
52 (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
53 * language.c (language_lookup_primitive_type_1): New function.
54 (language_lookup_primitive_type): Call it.
55 (language_alloc_type_symbol): New function.
56 (language_init_primitive_type_symbols): New function.
57 (language_lookup_primitive_type_as_symbol): New function.
58 * language.h (struct language_arch_info) <primitive_type_symbols>:
60 (language_lookup_primitive_type): Add function comment.
61 (language_lookup_primitive_type_as_symbol): Declare.
62 * printcmd.c (address_info): Handle arch-owned symbols.
63 * python/py-symbol.c (sympy_get_symtab): Ditto.
65 (sympy_dealloc): Ditto.
66 * symmisc.c (print_symbol): Ditto.
67 * symtab.c (fixup_symbol_section): Ditto.
68 (lookup_symbol_aux): Initialize block_found.
69 (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
71 (initialize_objfile_symbol_1): New function.
72 (initialize_objfile_symbol): Call it.
73 (allocate_symbol): Call it.
74 (allocate_template_symbol): Call it.
75 (symbol_objfile): Assert symbol is objfile-owned.
76 (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
77 * symtab.h (struct symbol) <owner>: Replaces member "symtab".
78 (struct symbol) <is_objfile_owned>: New member.
79 (SYMBOL_OBJFILE_OWNED): New macro.
80 * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
81 All callers updated. Try to find the symbol as a primitive type.
82 (lookup_namespace_scope): New arg langdef. All callers updated.
83 Call cp_lookup_bare_symbol directly for simple bare symbols.
85 2014-12-23 Doug Evans <xdje42@gmail.com>
87 * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
88 (struct symbol) <domain>: Use it.
90 2014-12-23 Doug Evans <xdje42@gmail.com>
92 * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
95 2014-12-23 Doug Evans <xdje42@gmail.com>
97 * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
98 New arg language_defn. All uses updated.
100 2014-12-23 Doug Evans <xdje42@gmail.com>
102 * symtab.h (SYMBOL_SYMTAB): Delete
103 (SYMBOL_OBJFILE): Delete.
104 (symbol_symtab, symbol_set_symtab): Declare.
105 (symbol_objfile, symbol_arch): Declare.
106 * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB. All uses updated.
107 All references to symbol->symtab redirected through here.
108 (symbol_set_symtab): New function. All assignments to SYMBOL_SYMTAB
109 redirected through here.
110 (symbol_arch): New function.
111 (symbol_objfile): New function. Replaces SYMBOL_OBJFILE.
113 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
115 * findvar.c (default_read_var_value): Call symbol_arch.
116 * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
117 * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
118 * printcmd.c (address_info): Call symbol_arch.
119 * tracepoint.c (scope_info): Call symbol_arch.
121 2014-12-22 Doug Evans <xdje42@gmail.com>
123 * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
124 (cp_lookup_symbol_namespace): Call it.
125 (cp_lookup_symbol_nonlocal): Ditto.
127 2014-12-22 Doug Evans <xdje42@gmail.com>
129 * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
130 "search_scope_first". All callers updated.
132 2014-12-22 Doug Evans <xdje42@gmail.com>
134 * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
135 (cp_basic_lookup_symbol): Renamed from lookup_symbol_file. Delete
136 arg "search". All callers updated.
137 (cp_lookup_bare_symbol): New function.
138 (cp_search_static_and_baseclasses): New function.
139 (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
140 (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
141 (cp_lookup_nested_symbol): Ditto.
143 2014-12-22 Doug Evans <xdje42@gmail.com>
145 * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
147 2014-12-22 Doug Evans <xdje42@gmail.com>
149 * cp-namespace.c: Whitespace cleanup.
151 2014-12-20 Keith Seitz <keiths@redhat.com>
152 Mihail-Marian Nistor <mihail.nistor@freescale.com>
155 * linespec.c (struct collect_minsyms): Add new member `symtab'.
156 (add_minsym): Handle cases where info.symtab is non-NULL.
157 (search_minsyms_for_name): Add new parameter `symtab'.
158 Handle limiting searches to a specific symtab.
159 (add_matching_symtabs_to_info): Search through minimal symbols
160 for language_asm files for which no new symbols are found.
162 2014-12-19 Maciej W. Rozycki <macro@codesourcery.com>
163 Nigel Stephens <nigel@mips.com>
164 Chris Dearman <chris@mips.com>
165 Luis Machado <lgustavo@codesourcery.com>
167 * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
168 (ALLDEPFILES): Add mips-sde-tdep.c.
169 * mips-sde-tdep.c: New file containg SDE specific code.
170 * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
172 * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
173 * osabi.c (gdb_osabi_names): Add SDE.
174 * NEWS: Mention the change.
176 2014-12-18 Simon Marchi <simon.marchi@ericsson.com>
178 * elfread.c (elf_symfile_init): Remove stale comment.
179 (elf_symfile_read): Same.
180 * symfile.h (struct sym_fns): Same.
182 2014-12-18 Nigel Stephens <nigel@mips.com>
183 Maciej W. Rozycki <macro@codesourcery.com>
185 * mips-tdep.c (print_fpu_flags): New function.
186 (mips_print_float_info): Likewise.
187 (mips_gdbarch_init): Install mips_print_float_info as gdbarch
188 print_float_info routine.
190 2014-12-18 Yao Qi <yao@codesourcery.com>
192 * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
193 * gdbarch.c: Re-generated.
194 * gdbarch.h: Likewise.
195 * infcmd.c (default_print_float_info): New function.
196 (print_float_info): Removed. Move code to
197 default_print_float_info.
198 (float_info): Adjust to call gdbarch_print_float_info.
199 * inferior.h (default_print_float_info): Declare it.
201 2014-12-18 Yao Qi <yao@codesourcery.com>
203 * h8300-tdep.c (h8300_print_float_info): Remove.
204 (h8300_gdbarch_init): Remove the call to
205 set_gdbarch_print_float_info.
207 2014-12-18 Doug Evans <xdje42@gmail.com>
209 * infcmd.c (jump_command): Minor simplification.
211 2014-12-18 Doug Evans <xdje42@gmail.com>
213 * language.c (language_lookup_primitive_type): Renamed from
214 language_lookup_primitive_type_by_name. All callers updated.
216 2014-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
218 Fix MinGW compilation.
219 * compile/compile.c (get_compile_file_tempdir): Call error if
221 * config.in: Regenerate.
222 * configure: Regenerate.
223 * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
225 2014-12-17 Doug Evans <xdje42@gmail.com>
227 * valops.c (value_maybe_namespace_elt): Remove redundant call to
228 lookup_static_symbol.
230 2014-12-17 Doug Evans <xdje42@gmail.com>
232 New parameter "debug symbol-lookup".
234 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
236 (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
237 (cp_lookup_nested_symbol): Ditto.
238 * language.c (language_lookup_primitive_type_by_name): Add debug
240 * minsyms.c (lookup_minimal_symbol): Add debug output.
241 * objfiles.c (objfile_debug_name): Moved here, and renamed ...
242 * symfile-debug.c (debug_objfile_name): ... from here. All callers
244 * objfiles.h (objfile_debug_name): Declare.
245 * symtab.h (symbol_lookup_debug): Declare.
246 * symtab.c (symbol_lookup_debug): New global.
247 (lookup_language_this): Add debug output.
248 (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
249 (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
250 (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
251 (_initialize_symtab): Add new parameter "debug symbol-lookup".
253 2014-12-16 Doug Evans <xdje42@gmail.com>
255 * buildsym.c: Add comments describing how the buildsym machinery
256 is used by the various file formats.
257 (really_free_pendings): Enhance function comment.
258 See pending_macros to NULL. Simplify resetting pending_addrmap.
259 Call free_buildsym_compunit.
260 (free_buildsym_compunit): Set current_subfile to NULL.
261 (prepare_for_building): New function.
262 (start_symtab): Call it. Remove call to set_last_source_file.
263 (restart_symtab): New arg "cust". All callers updated.
264 Simplify, call prepare_for_building. Re-initialize buildsym_compunit.
265 (reset_symtab_globals): Enhance function comment.
266 Set local_symbols, file_symbols, global_symbols to NULL.
267 Set pending_macros to NULL. Simplify resetting pending_addrmap.
268 Call free_buildysym_compunit.
269 (end_symtab_without_blockvector): Delete. All callers updated.
270 (end_symtab_with_blockvector): Remove redundant call to
271 free_buildsym_compunit.
272 (augment_type_symtab): Remove arg "cust". All callers updated.
273 (buildsym_init): Remove resetting of free_pendings, file_symbols,
274 global_symbols, pending_blocks, pending_macros. Instead make
275 handling consistent with pending_addrmap: Assert value was reset
276 at end of previous symtab building. Initialize context_stack here.
278 2014-12-16 Doug Evans <xdje42@gmail.com>
280 * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
281 cp_lookup_symbol_imports. All callers updated.
283 2014-12-16 Doug Evans <xdje42@gmail.com>
285 * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
286 find_type_baseclass_by_name. All callers updated.
288 2014-12-16 Doug Evans <xdje42@gmail.com>
290 * symtab.h (struct symbol_search) <symtab>: Delete. All uses updated.
291 * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
292 (print_symbol_info): Delete arg symtab. All callers updated.
293 (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
295 2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
297 * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
298 "Name" columns. Assure that the output is always indented.
300 2014-12-16 Joel Brobecker <brobecker@adacore.com>
302 * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
304 (linux_enable_event_reporting): Add parameter "attached".
305 * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
306 declaration. New function.
307 (linux_check_ptrace_features): Add linux_test_for_exitkill call.
308 (linux_enable_event_reporting): Add new parameter "attached".
309 Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
311 * linux-nat.c (linux_init_ptrace): Add parameter "attached".
312 Use it. Update function description.
313 (linux_child_post_attach, linux_child_post_startup_inferior):
314 Update call to linux_enable_event_reporting.
316 2014-12-16 Yao Qi <yao@codesourcery.com>
318 * NEWS: Move some entries to "Changes since GDB 7.8" section.
320 2014-12-16 Yao Qi <yao@codesourcery.com>
322 * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
325 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
327 * inferior.c (find_inferior_ptid): New function.
328 * inferior.h (find_inferior_ptid): New declaration.
329 * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
330 * corelow.c (core_pid_to_str): Same.
331 * darwin-nat.c (darwin_resume): Same.
332 * infrun.c (fetch_inferior_event): Same.
333 (get_inferior_stop_soon): Same.
334 (handle_inferior_event): Same.
335 (handle_signal_stop): Same.
336 * linux-nat.c (resume_lwp): Same.
337 (stop_wait_callback): Same.
338 * mi/mi-interp.c (mi_new_thread): Same.
339 (mi_thread_exit): Same.
340 * proc-service.c (ps_pglobal_lookup): Same.
341 * record-btrace.c (record_btrace_step_thread): Same.
342 * remote-sim.c (gdbsim_close_inferior): Same.
343 (gdbsim_resume): Same.
345 * sol2-tdep.c (sol2_core_pid_to_str): Same.
346 * target.c (memory_xfer_partial_1): Same.
347 (default_thread_address_space): Same.
348 * thread.c (thread_change_ptid): Same.
349 (switch_to_thread): Same.
350 (do_restore_current_thread_cleanup): Same.
352 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
354 * defs.h (gdb_readline): Constify argument.
355 (gdb_readline_wrapper): Same.
356 (command_line_input): Same.
357 (deprecated_readline_hook): Same.
358 * top.c (deprecated_readline_hook): Same.
359 (gdb_readline): Same.
360 (gdb_readline_wrapper): Same.
361 (command_line_input): Constify argument. Pass prompt_arg to called
362 functions instead of local_prompt, overwriting prompt_arg if necessary.
363 * event-top.h (display_gdb_prompt): Constify argument.
364 * event-top.c (display_gdb_prompt): Same.
365 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
366 if building with Python 3.4 and up.
368 2014-12-15 Simon Marchi <simon.marchi@ericsson.com>
370 * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
373 2014-12-15 Catalin Udma <catalin.udma@freescale.com>
376 * memattr.c (mem_info_command): Remove "unsigned long" casts.
378 2014-12-13 Doug Evans <xdje42@gmail.com>
380 * utils.c (make_hex_string): Fix off-by-one error.
382 2014-12-13 Joel Brobecker <brobecker@adacore.com>
384 * ada-lang.h (ada_ensure_varsize_limit): Declare.
385 * ada-lang.c (check_size): Remove advance declaration.
386 (ada_ensure_varsize_limit): Renames check_size.
387 Replace calls to check_size by calls to ada_ensure_varsize_limit
389 * ada-valprint.c (ada_val_print_ref): Add call to
390 ada_ensure_varsize_limit. Add comment explaining why.
392 2014-12-13 Joel Brobecker <brobecker@adacore.com>
394 * utils.c (make_hex_string): Replace use of sprintf by use of
397 2014-12-13 Joel Brobecker <brobecker@adacore.com>
399 * compile/compile-object-load.c (link_callbacks_multiple_definition)
400 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
401 newline at end of warning message.
403 2014-12-13 Joel Brobecker <brobecker@adacore.com>
405 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
406 new "EXTRA-ARGS" parameter.
407 * configure.ac: If large-file support is disabled in GDB,
408 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
409 * configure: Regenerate.
411 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
414 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
415 TYPE if not TYPE_CODE_TYPEDEF.
417 2014-12-13 Joel Brobecker <brobecker@adacore.com>
420 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
421 the frame unwinder must either be the dwarf2_frame_unwind
422 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
423 stack_addr is valid before calling get_frame_base. Throw
424 an error if not valid.
426 2014-12-12 Doug Evans <xdje42@gmail.com>
428 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
431 2014-12-12 Doug Evans <xdje42@gmail.com>
433 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
434 All callers updated. Rename arg "namespace" to "symbol_name".
436 2014-12-12 Doug Evans <xdje42@gmail.com>
438 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
439 partial_map_symtabs_matching_filename. All uses updated.
440 (psym_find_pc_sect_compunit_symtab): Renamed from
441 find_pc_sect_compunit_symtab_from_partial. All uses updated.
442 Add function comment.
443 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
444 All uses updated. Add function comment.
445 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
446 Add function comment.
447 (psym_find_last_source_symtab): Renamed from
448 find_last_source_symtab_from_partial. All uses updated.
449 Add function comment.
450 (psym_forget_cached_source_info): Renamed from
451 forget_cached_source_info_partial. All uses updated.
452 Add function comment.
453 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
454 All uses updated. Add function comment.
455 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
456 updated. Add function comment.
457 (psym_expand_symtabs_for_function): Renamed from
458 read_symtabs_for_function. All uses updated. Update function comment.
459 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
460 All uses updated. Add function comment.
461 (psym_expand_symtabs_with_fullname): Renamed from
462 read_psymtabs_with_fullname. All uses updated. Add function comment.
463 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
464 All uses updated. Add function comment.
465 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
467 (psym_expand_symtabs_matching): Renamed from
468 expand_symtabs_matching_via_partial. All uses updated.
469 Add function comment.
470 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
471 Add function comment.
473 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
474 Jan Kratochvil <jan.kratochvil@redhat.com>
475 Tom Tromey <tromey@redhat.com>
478 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
480 * p-lang.c (pascal_language_defn): Update.
481 * opencl-lang.c (opencl_language_defn): Update.
482 * objc-lang.c (objc_language_defn): Update.
483 * m2-lang.c (m2_language_defn): Update.
484 * language.h (struct language_defn) <la_get_compile_instance,
485 la_compute_program>: New fields.
486 * language.c (unknown_language_defn, auto_language_defn)
487 (local_language_defn): Update.
488 * jv-lang.c (java_language_defn): Update.
489 * go-lang.c (go_language_defn): Update.
490 * f-lang.c (f_language_defn): Update.
491 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
492 * dwarf2loc.c (dwarf2_compile_property_to_c)
493 (locexpr_generate_c_location, loclist_generate_c_location): New
495 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
496 * defs.h (enum compile_i_scope_types): New.
497 (enum command_control_type) <compile_control>: New constant.
498 (struct command_line) <control_u>: New field.
499 * d-lang.c (d_language_defn): Update.
500 * compile/compile.c: New file.
501 * compile/compile-c-support.c: New file.
502 * compile/compile-c-symbols.c: New file.
503 * compile/compile-c-types.c: New file.
504 * compile/compile.h: New file.
505 * compile/compile-internal.h: New file.
506 * compile/compile-loc2c.c: New file.
507 * compile/compile-object-load.c: New file.
508 * compile/compile-object-load.h: New file.
509 * compile/compile-object-run.c: New file.
510 * compile/compile-object-run.h: New file.
511 * cli/cli-script.c (multi_line_command_p, print_command_lines)
512 (execute_control_command, process_next_line)
513 (recurse_read_control_structure): Handle compile_control.
514 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
515 * c-lang.c (c_language_defn, cplus_language_defn)
516 (asm_language_defn, minimal_language_defn): Update.
517 * ada-lang.c (ada_language_defn): Update.
518 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
520 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
521 (HFILES_NO_SRCDIR): Add compile.h.
522 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
523 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
524 (compile.o, compile-c-types.o, compile-c-symbols.o)
525 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
526 (compile-c-support.o): New targets.
528 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
530 * s390-linux-tdep.c (s390_gcc_target_options): New function.
531 (s390_gdbarch_init): Add it to gdbarch.
533 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
535 * linux-tdep.c: Include objfiles.h and infcall.h.
536 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
538 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
540 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
542 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
543 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
544 translate_register. Now public.
545 (dwarf2_compile_expr_to_ax): Update.
547 2014-12-12 Tom Tromey <tromey@redhat.com>
548 Jan Kratochvil <jan.kratochvil@redhat.com>
550 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
551 (dwarf_expr_frame_base): Update caller.
552 (dwarf_expr_frame_base_1): Rename to ...
553 (func_get_frame_base_dwarf_block): ... this and make it public.
554 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
556 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
558 2014-12-12 Tom Tromey <tromey@redhat.com>
560 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
562 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
563 dwarf2_compile_cfa_to_ax.
564 (dwarf2_compile_cfa_to_ax): Remove.
565 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
566 (dwarf2_compile_cfa_to_ax): Remove.
568 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
570 * infcall.h (call_function_by_hand_dummy): Declare.
571 * infcall.c (call_function_by_hand): Use
572 call_function_by_hand_dummy.
573 (call_function_by_hand_dummy): Rename from call_function_by_hand.
574 Add arguments. Register a destructor.
576 2014-12-12 Tom Tromey <tromey@redhat.com>
577 Jan Kratochvil <jan.kratochvil@redhat.com>
579 * osabi.h (osabi_triplet_regexp): Declare.
580 * osabi.c (struct osabi_names): New.
581 (gdb_osabi_names): Change type to struct osabi_names. Update
583 (gdbarch_osabi_name): Update.
584 (osabi_triplet_regexp): New function.
585 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
586 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
587 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
588 set_gdbarch_gnu_triplet_regexp.
589 * gdbarch.sh (gnu_triplet_regexp): New method.
590 * gdbarch.c, gdbarch.h: Rebuild.
591 * arch-utils.h (default_gnu_triplet_regexp): Declare.
592 * arch-utils.c (default_gnu_triplet_regexp): New function.
594 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
596 * arch-utils.c (default_infcall_mmap)
597 (default_gcc_target_options): New functions.
598 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
599 (GDB_MMAP_PROT_EXEC): Define.
600 (default_infcall_mmap, default_gcc_target_options): Declare.
601 * gdbarch.h: Rebuild.
602 * gdbarch.c: Rebuild.
603 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
605 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
607 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
609 (pop_dummy_frame): Call the destructor if it exists.
610 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
612 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
613 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
615 2014-12-12 Tom Tromey <tromey@redhat.com>
617 * gdbtypes.h (make_unqualified_type): Declare.
618 * gdbtypes.c (make_unqualified_type): New function.
620 2014-12-12 Tom Tromey <tromey@redhat.com>
622 * ui-file.h (ui_file_write_for_put): Declare.
623 * ui-file.c (ui_file_write_for_put): New function.
624 * mi/mi-out.c (do_write): Remove.
625 (mi_out_put): Use ui_file_write_for_put.
627 2014-12-12 Doug Evans <dje@google.com>
629 * NEWS: Mention gdb.lookup_objfile.
630 * python/python.c (GdbMethods): Add lookup_objfile.
631 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
632 * python/py-objfile.c: #include "symtab.h".
633 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
634 (objfpy_lookup_objfile_by_name): New function.
635 (objfpy_lookup_objfile_by_build_id): New function.
636 (gdbpy_lookup_objfile): New function.
638 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
640 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
641 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
642 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
644 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
647 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
649 * completer.c: Include "target.h", "reggroups.h", and
651 (reg_or_group_completer): New.
652 * completer.h (reg_or_group_completer): Declare.
653 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
654 the "info registers" and "info all-registers" commands and the
655 dbx-mode "lr" command.
657 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
659 * user-regs.c: Include "arch-utils.h", "command.h", and
661 (maintenance_print_user_registers): New.
662 (_initialize_user_regs): Register new "maint print user-registers"
664 * NEWS: Mention new GDB command "maint print user-registers".
666 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
667 Maciej W. Rozycki <macro@mips.com>
668 Pedro Alves <pedro@codesourcery.com>
670 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
671 remove `predefault' and `invalid_p' initializers.
672 (make_symbol_special): New architecture method.
673 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
674 (objfile, symbol): New declarations.
675 * arch-utils.h (default_elf_make_msymbol_special): Remove
677 (default_make_symbol_special): New prototype.
678 (default_adjust_dwarf2_addr): Likewise.
679 (default_adjust_dwarf2_line): Likewise.
680 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
681 * arch-utils.c (default_elf_make_msymbol_special): Remove
683 (default_make_symbol_special): New function.
684 (default_adjust_dwarf2_addr): Likewise.
685 (default_adjust_dwarf2_line): Likewise.
686 * dwarf2-frame.c (decode_frame_entry_1): Call
687 `gdbarch_adjust_dwarf2_addr'.
688 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
689 * dwarf2read.c (create_addrmap_from_index): Likewise.
690 (process_psymtab_comp_unit_reader): Likewise.
691 (add_partial_symbol): Likewise.
692 (add_partial_subprogram): Likewise.
693 (process_full_comp_unit): Likewise.
694 (read_file_scope): Likewise.
695 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
696 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
697 (read_call_site_scope): Likewise.
698 (dwarf2_ranges_read): Likewise.
699 (dwarf2_record_block_ranges): Likewise.
700 (read_attribute_value): Likewise.
701 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
702 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
703 * elfread.c (elf_symtab_read): Don't call
704 `gdbarch_elf_make_msymbol_special' if unset.
705 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
706 the ISA bit from the PC.
707 * mips-tdep.c (mips_unmake_compact_addr): New function.
708 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
709 address appropriately.
710 (mips_make_symbol_special): New function.
711 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
712 (mips_pc_is_mips16): Likewise.
713 (mips_pc_is_micromips): Likewise.
714 (mips_pc_isa): Likewise.
715 (mips_adjust_dwarf2_addr): New function.
716 (mips_adjust_dwarf2_line): Likewise.
717 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
718 (mips_addr_bits_remove): Likewise.
719 (mips_skip_trampoline_code): Likewise.
720 (mips_write_pc): Don't set the ISA bit.
721 (mips_eabi_push_dummy_call): Likewise.
722 (mips_o64_push_dummy_call): Likewise.
723 (mips_gdbarch_init): Install `mips_make_symbol_special',
724 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
726 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
727 target-specific symbol address adjustments.
728 * gdbarch.h: Regenerate.
729 * gdbarch.c: Regenerate.
731 2014-12-12 Yao Qi <yao@codesourcery.com>
734 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
735 'skip_pc'. Remove code skipping prologue instructions, use
736 arm_analyze_prologue instead.
737 (arm_analyze_prologue): Stop the scanning for unrecognized
738 instruction when skipping prologue.
740 2014-12-12 Yao Qi <yao@codesourcery.com>
742 * arm-tdep.c (arm_instruction_restores_sp): New function.
743 (arm_analyze_prologue): Call arm_instruction_restores_sp.
744 (arm_in_function_epilogue_p): Move code to
745 arm_instruction_restores_sp.
747 2014-12-11 Doug Evans <xdje42@gmail.com>
749 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
751 2014-12-11 Doug Evans <xdje42@gmail.com>
753 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
754 (symbol *lookup_symbol_via_quick_fns): Ditto.
755 (lookup_symbol_in_objfile): Add forward decl.
756 (lookup_global_symbol_from_objfile): Simplify, call
757 lookup_symbol_in_objfile.
759 2014-12-11 Doug Evans <xdje42@gmail.com>
761 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
763 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
766 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
767 it is marked as persistent.
769 2014-12-10 Doug Evans <xdje42@gmail.com>
771 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
772 closer to its subroutines.
774 2014-12-10 Doug Evans <xdje42@gmail.com>
776 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
778 2014-12-10 Doug Evans <xdje42@gmail.com>
780 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
781 * cp-support.h (cp_lookup_symbol_imports): Delete.
783 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
786 * target.c (cleanup_restore_target_terminal): New function.
787 (make_cleanup_restore_target_terminal): New function.
788 * target.h (make_cleanup_restore_target_terminal): New declaration.
789 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
791 2014-12-08 Doug Evans <dje@google.com>
793 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
795 2014-12-08 Doug Evans <dje@google.com>
797 * NEWS: Mention gdb.Objfile.owner.
798 * python/py-objfile.c (objfpy_get_owner): New function.
799 (objfile_getset): Add "owner".
801 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
803 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
804 (lookup_global_symbol_from_objfile): Call it.
806 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
808 Remove const from struct objfile *.
809 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
810 symtab.c, symtab.h: In these files.
812 2014-12-05 Andreas From <andreas.from@ericsson.com>
814 * MAINTAINERS (Write After Approval): Add "Andreas From"
816 2014-12-05 Doug Evans <xdje42@gmail.com>
820 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
822 2014-12-04 Doug Evans <dje@google.com>
824 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
825 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
826 (objfile_getset): Add "add_separate_debug_file".
828 2014-12-04 Doug Evans <dje@google.com>
830 * NEWS: Mention gdb.Objfile.build_id.
831 * build-id.c (build_id_bfd_get): Make non-static.
832 * build-id.h (build_id_bfd_get): Add declaration.
833 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
834 (OBJFPY_REQUIRE_VALID): New macro.
835 (objfpy_get_build_id): New function.
836 (objfile_getset): Add "build_id".
837 * utils.c (make_hex_string): New function.
838 * utils.h (make_hex_string): Add declaration.
840 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
842 * block.c (block_lookup_symbol_primary): New function.
843 * block.h (block_lookup_symbol_primary): New declaration.
844 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
845 Call block_lookup_symbol_primary.
847 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
849 * tramp-frame.h (tramp_frame): Add `validate' member.
850 * tramp-frame.c (tramp_frame_start): Validate trampoline before
852 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
853 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
854 (mips_linux_o32_sigframe): Initialize `validate' member.
855 (mips_linux_o32_rt_sigframe): Likewise.
856 (mips_linux_n32_rt_sigframe): Likewise.
857 (mips_linux_n64_rt_sigframe): Likewise.
858 (micromips_linux_o32_sigframe): New variable.
859 (micromips_linux_o32_rt_sigframe): Likewise.
860 (micromips_linux_n32_rt_sigframe): Likewise.
861 (micromips_linux_n64_rt_sigframe): Likewise.
862 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
863 (mips_linux_n32n64_sigframe_init): Likewise.
864 (mips_linux_sigframe_validate): New function.
865 (micromips_linux_sigframe_validate): Likewise.
866 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
868 2014-12-03 Ulrich Weigand <uweigand@de.ibm.com>
870 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
871 * sparc-sol2-tdep.c: Include "regset.h".
872 (sparc32_sol2_supply_core_gregset): New function.
873 (sparc32_sol2_collect_core_gregset): Likewise.
874 (sparc32_sol2_supply_core_fpregset): Likewise.
875 (sparc32_sol2_collect_core_fpregset): Likewise.
876 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
877 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
878 tdep->fpregset/sizeof_fpregset.
879 * sparc64-sol2-tdep.c: Include "regset.h".
880 (sparc64_sol2_supply_core_gregset): New function.
881 (sparc64_sol2_collect_core_gregset): Likewise.
882 (sparc64_sol2_supply_core_fpregset): Likewise.
883 (sparc64_sol2_collect_core_fpregset): Likewise.
884 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
885 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
886 tdep->fpregset/sizeof_fpregset.
888 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
890 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
893 2014-12-02 Doug Evans <dje@google.com>
895 * symtab.c (symbol_init_cplus_specific): Delete.
896 (symbol_set_demangled_name): Remove special c++ support.
897 (symbol_get_demangled_name, symbol_set_language): Ditto.
898 * symtab.h (struct cplus_specific): Delete.
899 (struct general_symbol_info) <language_specific>: Remove
902 2014-12-02 Doug Evans <dje@google.com>
905 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
907 2014-12-02 Doug Evans <dje@google.com>
910 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
913 2014-12-02 Doug Evans <dje@google.com>
915 * dwarf2read.c (peek_die_abbrev): Improve error message text.
917 2014-12-02 Doug Evans <dje@google.com>
919 * valops.c (do_search_struct_field): Remove remnant of Chill support.
920 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
922 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
924 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
926 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
928 * NEWS: Mention new Python events.
929 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
930 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
931 (py-infevents.o): New rule.
932 * doc/observer.texi (inferior_call_pre, inferior_call_post)
933 (memory_changed, register_changed): New observers.
934 * infcall.c (call_function_by_hand): Notify observer before and
936 * python/py-event.h (inferior_call_kind): New enum.
937 (emit_inferior_call_event): New prototype.
938 (emit_register_changed_event): New prototype.
939 (emit_memory_changed_event): New prototype.
940 * python/py-events.h (events_object): New registries
941 inferior_call, memory_changed and register_changed.
942 * python/py-evts.c (gdbpy_initialize_py_events): Add the
943 inferior_call, memory_changed and register_changed registries.
944 * python/py-infevents.c: New.
945 * python/py-inferior.c (python_on_inferior_call_pre)
946 (python_on_inferior_call_post, python_on_register_change)
947 (python_on_memory_change): New functions.
948 (gdbpy_initialize_inferior): Attach python handler to new
950 * python/py-infthread.c(gdbpy_create_ptid_object): New.
951 (thpy_get_ptid) Use gdbpy_create_ptid_object.
952 * python/python-internal.h:
953 (gdbpy_create_ptid_object)
954 (gdbpy_initialize_inferior_call_pre_event)
955 (gdbpy_initialize_inferior_call_post_event)
956 (gdbpy_initialize_register_changed_event)
957 (gdbpy_initialize_memory_changed_event): New prototypes.
958 * python/python.c (_initialize_python): Initialize new events.
959 * valops.c (value_assign): Notify register_changed observer.
961 2014-12-02 Doug Evans <dje@google.com>
963 * python/py-infthread.c: Whitespace fixes.
965 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
967 * features/Makefile (s390-te-linux64-expedite): Replace
968 non-existant r14 and r15 by r14l and r15l, respectively.
969 * regformats/s390-te-linux64.dat: Regenerate.
971 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
973 * objfiles.c (allocate_objfile): Remove duplicate comment.
975 2014-12-01 Ulrich Weigand <uweigand@de.ibm.com>
977 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
978 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
979 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
980 (supply_gregset, supply_fpregset): Remove.
981 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
982 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
985 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
987 Add add-auto-load-scripts-directory.
988 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
989 * auto-load.c (add_auto_load_dir): New function.
990 (_initialize_auto_load): Install it.
992 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
994 Pushed by Joel Brobecker <brobecker@adacore.com>.
995 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
997 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
999 * eval.c (evaluate_subexp): Check that the thread stack temporaries
1000 are not already enabled before enabling them.
1002 2014-11-29 Yao Qi <yao@codesourcery.com>
1004 * arm-tdep.c (arm_analyze_prologue): Move local variables
1005 'framereg' and 'framesize' to inner block. Move code to
1008 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
1010 * eval.c: Include gdbthread.h.
1011 (evaluate_subexp): Enable thread stack temporaries before
1012 evaluating a complete expression and clean them up after the
1013 evaluation is complete.
1014 * gdbthread.h: Include common/vec.h.
1015 (value_ptr): New typedef.
1016 (VEC (value_ptr)): New vector type.
1017 (value_vec): New typedef.
1018 (struct thread_info): Add new fields stack_temporaries_enabled
1019 and stack_temporaries.
1020 (enable_thread_stack_temporaries)
1021 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1022 (get_last_thread_stack_temporary)
1023 (value_in_thread_stack_temporaries): Declare.
1024 * gdbtypes.c (class_or_union_p): New function.
1025 * gdbtypes.h (class_or_union_p): Declare.
1026 * infcall.c (call_function_by_hand): Store return values of class
1027 type as temporaries on stack.
1028 * thread.c (enable_thread_stack_temporaries): New function.
1029 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1030 (get_last_thread_stack_temporary): Likewise.
1031 (value_in_thread_stack_temporaries): Likewise.
1032 * value.c (value_force_lval): New function.
1033 * value.h (value_force_lval): Declare.
1035 2014-11-28 Pierre Muller <muller@sourceware.org>
1037 Pushed by Joel Brobecker <brobecker@adacore.com>.
1038 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1041 2014-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1043 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1044 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1045 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1046 * m68klinux-nat.c (fetch_core_registers): Remove.
1047 (linux_elf_core_fns): Remove.
1048 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1050 2014-11-28 Joel Brobecker <brobecker@adacore.com>
1052 * utils.c (gdb_realpath): Rework comment about handling on
1055 2014-11-28 Yao Qi <yao@codesourcery.com>
1057 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1059 * gnulib/aclocal.m4: Re-generated.
1060 * gnulib/config.in: Re-generated.
1061 * gnulib/configure: Re-generated.
1062 * gnulib/import/Makefile.am: Re-generated.
1063 * gnulib/import/Makefile.in: Re-generated.
1064 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1065 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1066 * import/basename-lgpl.c: New file.
1067 * import/dirname-lgpl.c: New file.
1068 * import/dirname.h: New file.
1069 * import/m4/dirname.m4: New file.
1070 * import/m4/malloc.m4: New file.
1071 * import/m4/rename.m4: New file.
1072 * import/m4/rmdir.m4: New file.
1073 * import/m4/stdio_h.m4: New file.
1074 * import/malloc.c: New file.
1075 * import/rename.c: New file.
1076 * import/rmdir.c: New file.
1077 * import/same-inode.h: New file.
1078 * import/stdio.c: New file.
1079 * import/stdio.in.h: New file.
1080 * import/stripslash.c: New file.
1082 2014-11-28 Yao Qi <yao@codesourcery.com>
1084 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1086 * config.in: Re-generated.
1087 * configure: Re-generated.
1088 * utils.c (gdb_realpath): Remove code calling realpath,
1089 canonicalize_file_name and pathconf.
1090 [!_WIN32]: Call canonicalize_file_name.
1092 2014-11-28 Yao Qi <yao@codesourcery.com>
1094 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1096 * aclocal.m4: Re-generated.
1097 * config.in: Re-generated.
1098 * configure: Re-generated.
1099 * import/Makefile.am: Re-generated.
1100 * import/Makefile.in: Re-generated.
1101 * import/m4/gnulib-cache.m4: Re-generated.
1102 * import/m4/gnulib-comp.m4: Re-generated.
1103 * import/canonicalize-lgpl.c: New file.
1104 * import/extra/snippet/_Noreturn.h: New file.
1105 * import/m4/canonicalize.m4: New file.
1106 * import/m4/double-slash-root.m4: New file.
1107 * import/m4/eealloc.m4: New file.
1108 * import/m4/malloca.m4: New file.
1109 * import/m4/nocrash.m4: New file.
1110 * import/m4/stdlib_h.m4: New file.
1111 * import/malloca.c: New file.
1112 * import/malloca.h: New file.
1113 * import/malloca.valgrind: New file.
1115 2014-11-28 Yao Qi <yao@codesourcery.com>
1117 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1118 * config.in, configure: Regenerate.
1119 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1120 code checking HAVE_LSTAT is defined.
1122 2014-11-28 Yao Qi <yao@codesourcery.com>
1124 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1126 * gnulib/aclocal.m4: Re-generated.
1127 * gnulib/config.in: Re-generated.
1128 * gnulib/configure: Re-generated.
1129 * gnulib/import/Makefile.am: Re-generated.
1130 * gnulib/import/Makefile.in: Re-generated.
1131 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1132 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1133 * gnulib/import/lstat.c: New file.
1134 * gnulib/import/m4/lstat.m4: New file.
1136 2014-11-28 Yao Qi <yao@codesourcery.com>
1138 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1139 * config.in, configure: Re-generate.
1140 * inf-child.c (inf_child_fileio_readlink): Don't check
1141 HAVE_READLINK is defined.
1143 2014-11-28 Yao Qi <yao@codesourcery.com>
1145 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1146 * gnulib/aclocal.m4: Re-generated.
1147 * gnulib/config.in: Likewise.
1148 * gnulib/configure: Likewise.
1149 * gnulib/import/Makefile.am: Likewise.
1150 * gnulib/import/Makefile.in: Likewise.
1151 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1152 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1153 * gnulib/import/dosname.h: New file
1154 * gnulib/import/m4/largefile.m4: New file.
1155 * gnulib/import/m4/readlink.m4: New file.
1156 * gnulib/import/m4/stat.m4: New file.
1157 * gnulib/import/readlink.c: New file.
1158 * gnulib/import/stat.c: New file.
1160 2014-11-26 Mark Wielaard <mjw@redhat.com>
1162 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1163 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1165 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1167 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1168 that there can be only one stack adjustment in the prologue
1169 with tests to detect specific disallowed stack adjustments.
1171 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1173 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1176 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
1178 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
1179 the instruction as well as reading it from memory.
1180 (nios2_match_add): New.
1181 (nios2_match_sub): New.
1182 (nios2_match_addi): New.
1183 (nios2_match_orhi): New.
1184 (nios2_match_stw): New.
1185 (nios2_match_ldw): New.
1186 (nios2_match_rdctl): New.
1187 (enum branch_condition): New.
1188 (nios2_match_branch): New.
1189 (nios2_match_jmpi): New.
1190 (nios2_match_calli): New.
1191 (nios2_match_jmpr): New.
1192 (nios2_match_callr): New.
1193 (nios2_match_break): New.
1194 (nios2_match_trap): New.
1195 (nios2_in_epilogue_p): Rewrite to use new functions.
1196 (nios2_analyze_prologue): Likewise.
1197 (nios2_skip_prologue): Delete unused local limit_pc.
1198 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1199 (nios2_get_next_pc): Rewrite to use new functions.
1201 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1203 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1205 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1207 Pushed by Joel Brobecker <brobecker@adacore.com>
1208 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1209 elements pi_len by the size of the elements before calling
1211 (inf_validate_task_sc): Likewise, and properly deallocate the
1214 2014-11-23 Doug Evans <xdje42@gmail.com>
1216 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
1217 number and name if present. All callers updated.
1218 (dump_fn_fieldlists): Fix indentation of args.
1220 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1222 * MAINTAINERS (Write After Approval): Add myself.
1224 2014-11-23 Joel Brobecker <brobecker@adacore.com>
1226 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1227 to a bp_call_dummy breakpoint type.
1229 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1231 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1232 registering the signal handler.
1234 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1236 * event-top.h (call_stdin_event_handler_again_p): Declare.
1237 * event-top.c (call_stdin_event_handler_again_p): Define.
1238 (stdin_event_handler): Use it.
1239 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1240 handler again if there is pending input following a
1243 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
1245 Pushed by Joel Brobecker <brobecker@adacore.com>
1246 * linux-fork.c (checkpoint_command): Print index of new
1247 checkpoint in response message.
1249 2014-11-23 Yao Qi <yao@codesourcery.com>
1251 * valprint.c (read_string): Move local variables 'found_nul',
1252 'chunksize' and 'limit' to inner scope. Update comments.
1254 2014-11-22 Doug Evans <xdje42@gmail.com>
1256 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1258 (search_symbols): Fix comments and whitespace.
1260 2014-11-22 Doug Evans <xdje42@gmail.com>
1262 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1264 2014-11-21 Doug Evans <dje@google.com>
1266 * psymtab.c (psymtab_search_name): Fix whitespace.
1268 2014-11-21 Yao Qi <yao@codesourcery.com>
1270 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1272 * gnulib/import/Makefile.am: Re-generated.
1273 * gnulib/import/Makefile.in: Likewise.
1274 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1276 2014-11-21 Yao Qi <yao@codesourcery.com>
1278 * gdb_wchar.h: Include wchar.h and wctype.h.
1279 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1280 include wchar.h and wctype.h.
1281 Don't check HAVE_WCHAR_H.
1283 2014-11-21 Yao Qi <yao@codesourcery.com>
1285 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1287 * gnulib/import/Makefile.am: Re-generated.
1288 * gnulib/import/Makefile.in: Likewise.
1289 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1291 2014-11-21 Yao Qi <yao@codesourcery.com>
1293 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1295 * gnulib/import/Makefile.am: Re-generated.
1296 * gnulib/import/Makefile.in: Likewise.
1297 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1299 2014-11-21 Yao Qi <yao@codesourcery.com>
1301 * common/common-defs.h: Include alloca.h
1302 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1303 * configure: Re-generated.
1304 * defs.h: Remove code handling alloca.
1305 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1308 2014-11-21 Yao Qi <yao@codesourcery.com>
1310 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1312 * gnulib/import/Makefile.am: Re-generated.
1313 * gnulib/import/Makefile.in: Likewise..
1314 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1316 2014-11-21 Yao Qi <yao@codesourcery.com>
1318 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1321 2014-11-21 Joel Brobecker <brobecker@adacore.com>
1323 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1324 flag_unsigned if HIGH_BOUND is constant and negative.
1326 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1328 PR breakpoints/10737
1329 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1330 modifier from "struct gdbarch" when compiling without Expat (XML)
1332 (get_syscall_by_number): Likewise.
1333 (get_syscall_by_name): Likewise.
1334 (get_syscall_names): Likewise.
1336 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
1338 PR breakpoints/10737
1339 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1340 set_xml_syscall_file_name to provide gdbarch.
1341 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1342 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1343 * breakpoint.c (print_it_catch_syscall): Adjust call to
1344 get_syscall_by_number to provide gdbarch.
1345 (print_one_catch_syscall): Likewise.
1346 (print_mention_catch_syscall): Likewise.
1347 (print_recreate_catch_syscall): Likewise.
1348 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1349 and get_syscall_by_name to provide gdbarch.
1350 (catch_syscall_completer): Adjust call to get_syscall_names to
1352 * gdbarch.c: Regenerate.
1353 * gdbarch.h: Likewise.
1354 * gdbarch.sh: Forward declare "struct syscalls_info".
1355 (xml_syscall_file): New variable.
1356 (syscalls_info): Likewise.
1357 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1358 set_xml_syscall_file_name to provide gdbarch.
1359 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1360 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1361 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1362 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1363 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1364 * xml-syscall.c: Include gdbarch.h.
1365 (set_xml_syscall_file_name): Accept gdbarch parameter.
1366 (get_syscall_by_number): Likewise.
1367 (get_syscall_by_name): Likewise.
1368 (get_syscall_names): Likewise.
1369 (my_gdb_datadir): Delete global variable.
1370 (struct syscalls_info) <my_gdb_datadir>: New variable.
1371 (struct syscalls_info) <sysinfo>: Rename variable to
1373 (sysinfo): Delete global variable.
1374 (have_initialized_sysinfo): Likewise.
1375 (xml_syscall_file): Likewise.
1376 (sysinfo_free_syscalls_desc): Rename to...
1377 (syscalls_info_free_syscalls_desc): ... this.
1378 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
1379 code to the new layout of "struct syscalls_info".
1380 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1382 (syscall_create_syscall_desc): Likewise.
1383 (syscall_start_syscall): Likewise.
1384 (syscall_parse_xml): Likewise.
1385 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1386 (init_sysinfo): Rename to...
1387 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1388 Adjust function to deal with gdbarch.
1389 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1390 gdbarch as a parameter. Adjust code.
1391 (xml_get_syscall_name): Likewise.
1392 (xml_list_of_syscalls): Likewise.
1393 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1394 (get_syscall_by_number): Likewise.
1395 (get_syscall_by_name): Likewise.
1396 (get_syscall_names): Likewise.
1397 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1398 (get_syscall_by_number): Likewise.
1399 (get_syscall_by_name): Likewise.
1400 (get_syscall_names): Likewise.
1402 2014-11-20 Doug Evans <xdje42@gmail.com>
1404 Split struct symtab into two: struct symtab and compunit_symtab.
1405 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1406 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1407 to "struct compunit_symtab *". All callers updated.
1408 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1409 "struct symtab *" argument to "struct compunit_symtab *".
1410 All callers updated.
1411 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1412 result to "struct compunit_symtab *". All callers updated.
1413 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1414 Change result to "struct compunit_symtab *". All callers updated.
1415 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1416 hange type to "struct compunit_symtab *". All uses updated.
1417 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1418 Change type to "struct compunit_symtab *". All uses updated.
1419 * buildsym.c (struct buildsym_compunit): New struct.
1420 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1421 (buildsym_compunit): New static global.
1422 (finish_block_internal): Update to fetch objfile from
1424 (make_blockvector): Delete objfile argument.
1425 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1426 debugformat, producer.
1427 (start_buildsym_compunit): New function.
1428 (free_buildsym_compunit): Renamed from free_subfiles_list.
1429 All callers updated.
1430 (patch_subfile_names): Rewrite to use buildsym_compunit.
1431 (get_compunit_symtab): New function.
1432 (get_macro_table): Delete argument comp_dir. All callers updated.
1433 (start_symtab): Change result to "struct compunit_symtab *".
1434 All callers updated. Create the subfile of the main source file.
1435 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1436 (reset_symtab_globals): Update.
1437 (end_symtab_get_static_block): Update to use buildsym_compunit.
1438 (end_symtab_without_blockvector): Rewrite.
1439 (end_symtab_with_blockvector): Change result to
1440 "struct compunit_symtab *". All callers updated.
1441 Update to use buildsym_compunit. Don't set symtab->dirname,
1442 instead set it in the compunit.
1443 Explicitly make sure main symtab is first in its list.
1444 Set debugformat, producer, blockvector, block_line_section, and
1445 macrotable in the compunit.
1446 (end_symtab_from_static_block): Change result to
1447 "struct compunit_symtab *". All callers updated.
1448 (end_symtab, end_expandable_symtab): Ditto.
1449 (set_missing_symtab): Change symtab argument to
1450 "struct compunit_symtab *". All callers updated.
1451 (augment_type_symtab): Ditto.
1452 (record_debugformat): Update to use buildsym_compunit.
1453 (record_producer): Update to use buildsym_compunit.
1454 * buildsym.h (struct subfile) <dirname>: Delete.
1455 <producer, debugformat>: Delete.
1456 <buildsym_compunit>: New member.
1457 (get_compunit_symtab): Declare.
1458 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1459 from primary_symtab. Change type to "struct compunit_symtab *".
1461 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1462 All callers updated.
1463 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1464 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1465 symtab. Change type to "struct compunit_symtab *". All uses updated.
1466 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1467 All callers updated.
1468 (dw2_find_last_source_symtab): Ditto.
1469 (dw2_lookup_symbol): Ditto.
1470 (recursively_find_pc_sect_compunit_symtab): Renamed from
1471 recursively_find_pc_sect_symtab. Change result to
1472 "struct compunit_symtab *". All callers updated.
1473 (dw2_find_pc_sect_compunit_symtab): Renamed from
1474 dw2_find_pc_sect_symtab. Change result to
1475 "struct compunit_symtab *". All callers updated.
1476 (get_compunit_symtab): Renamed from get_symtab. Change result to
1477 "struct compunit_symtab *". All callers updated.
1478 (recursively_compute_inclusions): Change type of immediate_parent
1479 argument to "struct compunit_symtab *". All callers updated.
1480 (compute_compunit_symtab_includes): Renamed from
1481 compute_symtab_includes. All callers updated. Rewrite to compute
1482 includes of compunit_symtabs and not symtabs.
1483 (process_full_comp_unit): Update to work with struct compunit_symtab.
1484 (process_full_type_unit): Ditto.
1485 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1486 (dwarf_decode_lines): Remove special case handling of main subfile.
1487 (macro_start_file): Delete argument comp_dir. All callers updated.
1488 (dwarf_decode_macro_bytes): Ditto.
1489 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1490 use struct compunit_symtab.
1491 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1492 * jit.c (finalize_symtab): Build compunit_symtab.
1493 * jv-lang.c (get_java_class_symtab): Change result to
1494 "struct compunit_symtab *". All callers updated.
1495 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1496 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1497 comp_dir. Change type to "struct compunit_symtab *".
1499 (new_macro_table): Change comp_dir argument to cust,
1500 "struct compunit_symtab *". All callers updated.
1501 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1502 nr_primary_symtabs. All uses updated.
1503 (count_symtabs_and_blocks): Update to handle compunits.
1504 (report_command_stats): Update output, "primary symtabs" renamed to
1506 * mdebugread.c (new_symtab): Change result to
1507 "struct compunit_symtab *". All callers updated.
1508 (parse_procedure): Change type of search_symtab argument to
1509 "struct compunit_symtab *". All callers updated.
1510 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1512 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1513 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1514 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1516 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1518 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1519 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1520 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1521 symtab. Change type to "struct compunit_symtab *". All uses updated.
1522 * psymtab.c (psymtab_to_symtab): Change result type to
1523 "struct compunit_symtab *". All callers updated.
1524 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1525 find_pc_sect_symtab_from_partial. Change result type to
1526 "struct compunit_symtab *". All callers updated.
1527 (lookup_symbol_aux_psymtabs): Change result type to
1528 "struct compunit_symtab *". All callers updated.
1529 (find_last_source_symtab_from_partial): Ditto.
1530 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1531 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1532 and macro_table from compunit.
1533 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1534 type to "struct compunit_symtab *". All callers updated.
1535 (debug_qf_lookup_symbol): Ditto.
1536 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1537 debug_qf_find_pc_sect_symtab, change result type to
1538 "struct compunit_symtab *". All callers updated.
1539 * symfile.c (allocate_symtab): Delete objfile argument.
1541 (allocate_compunit_symtab): New function.
1542 (add_compunit_symtab_to_objfile): New function.
1543 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1544 Change result type to "struct compunit_symtab *". All uses updated.
1545 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1546 Change result type to "struct compunit_symtab *". All uses updated.
1547 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1549 (dump_symtab_1): Update test for primary source symtab.
1550 (maintenance_info_symtabs): Update to handle compunit symtabs.
1551 (maintenance_check_symtabs): Ditto.
1552 * symtab.c (set_primary_symtab): Delete.
1553 (compunit_primary_filetab): New function.
1554 (compunit_language): New function.
1555 (iterate_over_some_symtabs): Change type of arguments "first",
1556 "after_last" to "struct compunit_symtab *". All callers updated.
1557 Update to loop over symtabs in each compunit.
1558 (error_in_psymtab_expansion): Rename symtab argument to cust,
1559 and change type to "struct compunit_symtab *". All callers updated.
1560 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1561 Change result type to "struct compunit_symtab *". All callers updated.
1562 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1563 Change result type to "struct compunit_symtab *". All callers updated.
1564 (find_pc_sect_line): Only loop over symtabs within selected compunit
1565 instead of all symtabs in the objfile.
1566 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1567 <compunit_symtab> New member.
1568 <block_line_section>: Moved to compunit_symtab.
1569 <locations_valid>: Ditto.
1570 <epilogue_unwind_valid>: Ditto.
1571 <macro_table>: Ditto.
1573 <debugformat>: Ditto.
1576 <call_site_htab>: Ditto.
1580 (SYMTAB_COMPUNIT): New macro.
1581 (SYMTAB_BLOCKVECTOR): Update definition.
1582 (SYMTAB_OBJFILE): Update definition.
1583 (SYMTAB_DIRNAME): Update definition.
1584 (struct compunit_symtab): New type. Common members among all source
1585 symtabs within a compilation unit moved here. All uses updated.
1586 (COMPUNIT_OBJFILE): New macro.
1587 (COMPUNIT_FILETABS): New macro.
1588 (COMPUNIT_DEBUGFORMAT): New macro.
1589 (COMPUNIT_PRODUCER): New macro.
1590 (COMPUNIT_DIRNAME): New macro.
1591 (COMPUNIT_BLOCKVECTOR): New macro.
1592 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1593 (COMPUNIT_LOCATIONS_VALID): New macro.
1594 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1595 (COMPUNIT_CALL_SITE_HTAB): New macro.
1596 (COMPUNIT_MACRO_TABLE): New macro.
1597 (ALL_COMPUNIT_FILETABS): New macro.
1598 (compunit_symtab_ptr): New typedef.
1599 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1601 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1603 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1604 if the TYPE_CODE of range_type's base type does not match
1605 the TYPE_CODE of encoding_type's base type.
1607 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1609 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1612 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1614 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1615 (ada_is_redundant_index_type_desc): New function.
1616 (to_fixed_array_type): Ignore parallel XA type if redundant.
1618 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1620 * ada-lang.c (constrained_packed_array_type): Set the length
1621 of the return array as if both bounds where zero if that
1622 returned array's index type is dynamic.
1624 2014-11-19 Yao Qi <yao@codesourcery.com>
1626 * config/i386/go32.mh (CC): Remove.
1628 2014-11-18 Doug Evans <xdje42@gmail.com>
1630 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1633 2014-11-18 Doug Evans <xdje42@gmail.com>
1635 * buildsym.c (buildsym_objfile): New static global.
1636 (buildsym_comp_dir): New static global.
1637 (finish_block_internal): Delete arg objfile. All callers updated.
1638 (finish_block): Delete arg objfile. All callers updated.
1639 (start_subfile): Delete arg dirname. All callers updated.
1640 (patch_subfile_names): Update buildsym_comp_dir.
1641 (get_macro_table): Delete arg objfile. All callers updated.
1642 (start_symtab): New arg objfile. All callers updated.
1643 Rename arg dirname to comp_dir.
1644 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1645 (end_symtab_get_static_block): Delete arg objfile. All callers
1647 (end_symtab_without_blockvector): Ditto.
1648 (end_symtab_with_blockvector): Ditto.
1649 (end_symtab_from_static_block): Ditto.
1650 (end_symtab): Ditto.
1651 (end_expandable_symtab): Ditto.
1652 (augment_type_symtab): Ditto.
1653 * coffread.c (coff_start_symtab): New arg objfile. All callers
1656 2014-11-18 Doug Evans <xdje42@gmail.com>
1658 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1661 2014-11-18 Doug Evans <xdje42@gmail.com>
1663 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1664 symtab.dirname updated to use it.
1666 2014-11-18 Doug Evans <xdje42@gmail.com>
1668 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1669 symtab.objfile updated to use it.
1671 2014-11-18 Doug Evans <xdje42@gmail.com>
1673 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1675 2014-11-18 Doug Evans <xdje42@gmail.com>
1677 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1679 * findvar.c (default_read_var_value): Ditto.
1680 * jv-lang.c (add_class_symtab_symbol): Ditto.
1681 * parse.c (operator_check_standard): Ditto.
1682 * printcmd.c (address_info): Ditto.
1683 * symtab.c (fixup_symbol_section): Ditto.
1684 (skip_prologue_sal): Ditto.
1685 * tracepoint.c (scope_info): Ditto.
1686 * valops.c (find_function_in_inferior): Ditto.
1687 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1688 * python/py-symbol.c (set_symbol): Ditto.
1690 2014-11-18 Doug Evans <xdje42@gmail.com>
1692 * buildsym.c (main_subfile): New static global.
1693 (free_subfiles_list): New function.
1694 (start_symtab): Set main_subfile.
1695 (restart_symtab): Replace init of subfiles, current_subfile with
1696 call to free_subfiles_list.
1697 (watch_main_source_file_lossage): Use main_subfile.
1698 (reset_symtab_globals): Replace init of current_subfile with call
1699 to free_subfiles_list.
1700 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1701 functions, split out from ...
1702 (end_symtab_from_static_block): ... here. Rewrite to call them.
1704 2014-11-18 Doug Evans <xdje42@gmail.com>
1706 The result of symtab expansion is always a primary symtab.
1707 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1708 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1709 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1710 (psymtab_to_symtab): Add comment and assert.
1711 (map_matching_symbols_psymtab): Remove unnecessary test for
1714 2014-11-15 Doug Evans <xdje42@gmail.com>
1717 * symtab.c (find_pc_line_symtab): New function.
1718 * symtab.h (find_pc_line_symtab): Declare.
1719 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1721 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1722 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1723 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1724 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1725 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1726 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1728 2014-11-15 Doug Evans <xdje42@gmail.com>
1730 * symtab.c (expand_symtab_containing_pc): Renamed from
1731 find_pc_sect_symtab_via_partial. All callers updated.
1733 2014-11-15 Yao Qi <yao@codesourcery.com>
1735 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1737 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1739 * common/common-defs.h: Move <stdarg.h> #include ahead of
1742 2014-11-14 Pedro Alves <palves@redhat.com>
1744 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1745 [!PHONY_ICONV] (gdb_iconv): New function.
1746 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1748 2014-11-13 Doug Evans <dje@google.com>
1751 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1752 "(anonymous namespace)".
1754 2014-11-13 Doug Evans <dje@google.com>
1756 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1759 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1761 * NEWS (maint set target-async): Fix typo.
1763 2014-11-12 Pedro Alves <palves@redhat.com>
1765 * infrun.c (enum infwait_states, infwait_state): Delete.
1767 2014-11-12 Pedro Alves <palves@redhat.com>
1769 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1770 Rewrite stepping over a permanent breakpoint.
1771 (thread_still_needs_step_over, proceed): Don't set
1772 stepping_over_breakpoint for permanent breakpoints.
1773 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1774 single-step breakpoints out of the target on hardware step
1776 (process_event_stop_test): If stepping a permanent breakpoint
1777 doesn't hit the step-resume breakpoint, delete the step-resume
1779 (switch_back_to_stepped_thread): Also check if the stepped thread
1780 has advanced already on hardware step targets.
1781 (currently_stepping): Return true if the thread stepped a
1784 2014-11-12 Pedro Alves <palves@redhat.com>
1786 Mark locations as permanent, not the whole breakpoint.
1787 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1788 (mark_breakpoints_out): Don't mark permanent breakpoints as
1790 (breakpoint_init_inferior): Use mark_breakpoints_out.
1791 (breakpoint_here_p): Adjust.
1792 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1793 of permanent breakpoints.
1794 (make_breakpoint_permanent): Mark each location as permanent,
1795 instead of marking the breakpoint.
1796 (add_location_to_breakpoint): If the location is permanent, mark
1797 it as such, and as inserted.
1798 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1799 (bp_location_compare, update_global_location_list): Adjust.
1800 (update_breakpoint_locations): Don't make the breakpoint permanent
1802 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1804 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1805 (struct bp_location) <permanent>: New field.
1806 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1807 reference to bp_permanent.
1809 2014-11-12 Pedro Alves <palves@redhat.com>
1811 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1812 * arch-utils.h (default_skip_permanent_breakpoint): New
1814 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1815 Install default_skip_permanent_breakpoint as default method.
1816 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1817 (i386_gdbarch_init): Don't install it.
1818 * infrun.c (resume): Assume there's always a
1819 gdbarch_skip_permanent_breakpoint implementation.
1820 * gdbarch.h, gdbarch.c: Regenerate.
1822 2014-11-11 Daniel Colascione <dancol@dancol.org>
1824 Warn about cross-PID-namespace debugging.
1825 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1826 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1827 * linux-thread-db.c (check_pid_namespace_match): New function.
1828 (thread_db_inferior_created): Call it.
1830 2014-11-10 Doug Evans <xdje42@gmail.com>
1832 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1833 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1835 2014-11-10 Doug Evans <xdje42@gmail.com>
1837 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1839 2014-11-10 Doug Evans <xdje42@gmail.com>
1842 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1843 (lookup_static_symbol): Move definition to new location and rewrite.
1844 (lookup_symbol_in_objfile): New function.
1845 (lookup_symbol_global_iterator_cb): Call it.
1847 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
1849 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1851 2014-11-07 Pedro Alves <palves@redhat.com>
1853 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1854 check if we did a "nexti" inside a prologue.
1855 * symtab.c (in_prologue): Delete function.
1856 * symtab.h (in_prologue): Delete declaration.
1858 2014-11-06 Doug Evans <xdje42@gmail.com>
1860 * symtab.h (lookup_global_symbol): Improve function comment.
1862 2014-11-06 Doug Evans <xdje42@gmail.com>
1864 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1865 All callers updated.
1866 * symtab.h (lookup_global_symbol): Update decl.
1867 (lookup_static_symbol): Move decl to better location.
1869 2014-11-06 Doug Evans <xdje42@gmail.com>
1871 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1873 2014-11-06 Doug Evans <xdje42@gmail.com>
1875 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1876 All callers updated.
1877 (lookup_symbol_in_all_objfiles): Renamed from
1878 lookup_symbol_aux_symtabs. All callers updated.
1879 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1880 All callers updated.
1881 (lookup_symbol_in_objfile_symtabs): Renamed from
1882 lookup_symbol_aux_objfile. All callers updated.
1884 2014-11-06 Doug Evans <xdje42@gmail.com>
1886 * symtab.c (lookup_symbol_in_block): Renamed from
1887 lookup_symbol_aux_block. All callers updated.
1889 2014-11-06 Doug Evans <xdje42@gmail.com>
1891 * symtab.c (lookup_static_symbol): Renamed from
1892 lookup_static_symbol_aux. All callers updated.
1893 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1894 All callers updated.
1896 2014-11-06 Doug Evans <xdje42@gmail.com>
1898 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1899 * block.c (block_lookup_symbol): Use it.
1900 * cp-support.c (make_symbol_overload_list_block): Use it.
1901 * symtab.c (iterate_over_symbols): Use it.
1903 2014-11-06 Doug Evans <xdje42@gmail.com>
1905 * symtab.c (lookup_block_symbol): Moved to ...
1906 * block.c (block_lookup_symbol): ... here and renamed.
1907 All callers updated.
1908 * block.h (block_lookup_symbol): Declare.
1909 * symtab.h (lookup_block_symbol): Delete.
1911 2014-11-06 Doug Evans <xdje42@gmail.com>
1913 * ada-lang.c (ada_make_symbol_completion_list): Use
1914 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1915 * symtab.c (lookup_objfile_from_block): Ditto.
1917 2014-11-06 Doug Evans <xdje42@gmail.com>
1919 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1922 2014-11-06 Doug Evans <xdje42@gmail.com>
1924 * objfiles.c (get_objfile_arch): Constify.
1925 * objfiles.h (get_objfile_arch): Update prototype.
1926 * solib.c (solib_global_lookup): Fetch arch from objfile,
1929 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1931 * nios2-tdep.c (wild_insn): Delete.
1932 (profiler_insn, irqentry_insn): Delete.
1933 (nios2_match_sequence): Delete.
1934 (nios2_analyze_prologue): Update comments. Remove matching
1935 of obsolete profiler_insn and irqentry_insn sequences.
1937 2014-11-05 Alan Modra <amodra@gmail.com>
1939 * charset.c (convert_between_encodings): Shrink obstack using
1941 * minsyms.c (install_minimal_symbols): Likewise.
1942 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1943 to char* before doing pointer arithmetic.
1945 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1947 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1949 2014-11-04 Pedro Alves <palves@redhat.com>
1951 * breakpoint.c (breakpoint_thread_match): Delete function.
1952 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1954 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1957 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1958 the method args also under EVAL_SKIP when evaluating method
1959 calls under EVAL_SKIP.
1961 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1963 * dwarf2loc.c (read_pieced_value): Do big endian
1964 processing only if gdb_regnum is not -1.
1965 (write_pieced_value): Ditto.
1967 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1969 * arm-linux-tdep.c (arm_linux_init_abi): Use
1970 info.byte_order_for_code to choose endianity of breakpoint
1971 instructions snippets.
1973 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1975 * arm-tdep.c (extract_arm_insn): Use
1976 gdbarch_byte_order_for_code to read arm instruction.
1978 2014-11-02 Doug Evans <xdje42@gmail.com>
1980 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1982 2014-11-02 Doug Evans <xdje42@gmail.com>
1984 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1985 main_subfile before returning.
1987 2014-10-31 Doug Evans <xdje42@gmail.com>
1989 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1990 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1992 2014-10-31 Doug Evans <xdje42@gmail.com>
1994 * valops.c (value_cast_pointers): Fix whitespace.
1995 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1998 2014-10-30 Doug Evans <dje@google.com>
2000 * NEWS: Mention ability add attributes to gdb.Objfile and
2001 gdb.Progspace objects.
2002 * python/py-objfile.c (objfile_object): New member dict.
2003 (objfpy_dealloc): Py_XDECREF dict.
2004 (objfpy_initialize): Initialize dict.
2005 (objfile_getset): Add __dict__.
2006 (objfile_object_type): Set tp_dictoffset member.
2007 * python/py-progspace.c (progspace_object): New member dict.
2008 (pspy_dealloc): Py_XDECREF dict.
2009 (pspy_initialize): Initialize dict.
2010 (pspace_getset): Add __dict__.
2011 (pspace_object_type): Set tp_dictoffset member.
2013 2014-10-30 Yao Qi <yao@codesourcery.com>
2015 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
2016 replace '\\' with '\\\\'.
2018 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2022 2014-10-29 Pedro Alves <palves@redhat.com>
2025 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2026 instead of assuming a thread with a stepping range is always
2029 2014-10-29 Pedro Alves <palves@redhat.com>
2032 * event-top.c (change_line_handler): Call
2033 gdb_rl_callback_handler_remove instead of
2034 rl_callback_handler_remove.
2035 (callback_handler_installed): New global.
2036 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2037 (gdb_rl_callback_handler_reinstall): New functions.
2038 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2039 gdb_rl_callback_handler_install instead of
2040 rl_callback_handler_remove and rl_callback_handler_install.
2041 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2042 instead of rl_callback_handler_remove.
2043 * event-top.h (gdb_rl_callback_handler_remove)
2044 (gdb_rl_callback_handler_install)
2045 (gdb_rl_callback_handler_reinstall): New declarations.
2046 * infrun.c (reinstall_readline_callback_handler_cleanup): New
2048 (fetch_inferior_event): Install it.
2049 * top.c (gdb_readline_wrapper_line) Call
2050 gdb_rl_callback_handler_remove instead of
2051 rl_callback_handler_remove.
2052 (gdb_readline_wrapper_cleanup): Don't call
2053 rl_callback_handler_install.
2055 2014-10-29 Pedro Alves <palves@redhat.com>
2057 * event-top.c (command_line_handler): Clear the first byte of
2058 linebuffer, when it is first allocated.
2060 2014-10-29 Pedro Alves <palves@redhat.com>
2062 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2065 2014-10-29 Pedro Alves <palves@redhat.com>
2069 * tui/tui-interp.c (tui_is_toplevel): Delete global.
2070 (tui_allowed_p): Delete function.
2071 * tui/tui.c: Include "interps.h".
2072 (tui_enable): Don't use tui_allowed_p. Error out here with
2073 detailed error messages if the TUI is the top level interpreter,
2074 or if output is not a terminal. Use newterm instead of initscr,
2075 and error out if initializing the terminal fails. Also error out if
2076 the terminal doesn't support cursor addressing.
2077 * tui/tui.h (tui_allowed_p): Delete declaration.
2079 2014-10-29 Joel Brobecker <brobecker@adacore.com>
2081 * arm-tdep.c (arm_skip_stack_protector): Return early if
2082 address loaded by first "ldr" instruction does not have
2083 a corresponding minimal symbol. Update comment.
2085 2014-10-29 Yao Qi <yao@codesourcery.com>
2087 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2088 loaded address correctly of ldr instruction.
2090 2014-10-28 Pedro Alves <palves@redhat.com>
2093 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2095 * infrun.c (resume) <stepping breakpoint instruction>: Set the
2096 thread's stepped_breakpoint field. Skip if reverse debugging.
2098 (init_thread_stepping_state, handle_signal_stop): Clear the
2099 thread's stepped_breakpoint field.
2101 2014-10-27 Pedro Alves <palves@redhat.com>
2103 * remote.c (remote_thread_alive): New, factored out from ...
2104 (remote_thread_alive): ... this.
2105 (remote_update_thread_list): Bail out before deleting threads if
2106 the target returned an empty list, and, the current thread has a
2109 2014-10-27 Pedro Alves <palves@redhat.com>
2111 * infrun.c (handle_signal_stop): Also skip handlers when a random
2112 signal arrives while handling a "stepi" or a "nexti". Set the
2113 thread's 'step_after_step_resume_breakpoint' flag.
2115 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
2117 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2118 (arm_record_ld_st_imm_offset): Reimplement to cover all
2119 load/store cases for ARM opcode 010.
2120 (arm_record_ld_st_multiple): Reimplement to cover all
2121 load/store cases for ARM opcode 100.
2123 2014-10-26 Doug Evans <xdje42@gmail.com>
2125 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2127 2014-10-26 Doug Evans <xdje42@gmail.com>
2129 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2130 parameter "kind" to "block_index".
2131 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2133 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2135 2014-10-26 Doug Evans <xdje42@gmail.com>
2137 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2139 2014-10-26 Doug Evans <xdje42@gmail.com>
2141 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2144 2014-10-26 Doug Evans <xdje42@gmail.com>
2146 * parser-defs.h (block_found): Move decl from here ...
2147 * symtab.h (block_found): ... to here.
2149 2014-10-26 Doug Evans <xdje42@gmail.com>
2151 * symtab.h (struct field_of_this_result): Fix typo in comment.
2152 (lookup_symbol_in_language): Move function comment here.
2153 (lookup_symbol): Improve function comment.
2154 (basic_lookup_symbol_nonlocal): Ditto.
2155 (lookup_symbol_static, lookup_symbol_global): Ditto.
2156 (lookup_symbol_aux_block): Ditto.
2157 (lookup_language_this): Add function comment.
2158 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
2160 (lookup_block_symbol): Improve function comment.
2161 (lookup_struct): Fix capitalization in function comment.
2162 (lookup_transparent_type): Add function comment.
2163 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2164 Improve function comment.
2165 (lookup_objfile_from_block): Add function comment.
2166 * symtab.c (lookup_symbol_in_language): Update function comment.
2167 (lookup_symbol, lookup_language_this): Ditto.
2168 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2169 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2170 (basic_lookup_symbol_nonlocal): Ditto.
2171 (lookup_symbol_static, lookup_symbol_global): Ditto.
2172 (lookup_transparent_type, lookup_block_symbol): Ditto.
2174 2014-10-25 Doug Evans <xdje42@gmail.com>
2176 * symtab.c (types_info): Delete forward decl.
2177 (functions_info, variables_info, sources_info): Ditto.
2178 (_initialize_symtab): Rewrite forward decl to use
2179 initialize_file_ftype.
2181 2014-10-25 Doug Evans <xdje42@gmail.com>
2183 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2185 2014-10-25 Doug Evans <xdje42@gmail.com>
2187 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2188 of local var child_die.
2190 2014-10-24 Don Breazeal <donb@codesourcery.com>
2192 * infrun.c (follow_fork_inferior): Update fork message printing
2193 to use target_terminal_ours_for_output instead of
2194 target_terminal_ours, to use _() for all format strings, to print
2195 "vfork" instead of "fork" for vforks, and to add a detach message.
2196 (handle_vfork_child_exec_or_exit): Update message printing to use
2197 target_terminal_ours_for_output instead of target_terminal_ours, to
2198 use _() for all format strings, and to fix some formatting.
2200 2014-10-24 Pedro Alves <palves@redhat.com>
2202 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2203 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2204 * config/vax/vax.mh: Delete.
2205 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2206 obsolete configurations section.
2207 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2208 * vax-nat.c: Delete file.
2210 2014-10-24 Pedro Alves <palves@redhat.com>
2212 * NEWS (Removed targets): Add OS/arch column.
2214 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
2216 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2217 on the arg type of a constructor only if it is of reference type.
2219 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
2221 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2222 accessors and constants from nios2 opcodes update.
2223 (nios2_get_next_pc): Likewise.
2225 2014-10-19 Doug Evans <xdje42@gmail.com>
2227 * gdbthread.h (set_running): Fix comment.
2228 (set_executing, finish_thread_state): Fix comment.
2230 2014-10-18 Doug Evans <xdje42@gmail.com>
2232 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2234 2014-10-17 Doug Evans <dje@google.com>
2236 * NEWS: Mention new event gdb.clear_objfiles.
2237 * python/py-event.h (emit_clear_objfiles_event): Clear
2238 * python/py-events.h (events_object): New member clear_objfiles.
2239 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2241 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2242 emit clear_objfiles event.
2243 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2245 (emit_clear_objfiles_event): New function.
2246 (clear_objfiles): New event.
2247 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2249 * python/python.c (_initialize_python): Call
2250 gdbpy_initialize_clear_objfiles_event.
2252 2014-10-17 Doug Evans <dje@google.com>
2254 * NEWS: Mention new gdb.Objfile.progspace attribute.
2255 * python/py-objfile.c (objfpy_get_progspace): New function.
2256 (objfile_getset): New entry for "progspace".
2258 2014-10-17 Pedro Alves <palves@redhat.com>
2261 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
2262 returns a copy of the input.
2263 (run_command_1, continue_command, step_1, jump_command)
2264 (signal_command, until_command, advance_command, finish_command)
2265 (attach_command): Adjust and install a cleanup to free the
2268 2014-10-17 Pedro Alves <palves@redhat.com>
2271 * infcmd.c (continue_1): If continuing all threads in the
2272 foreground, make sure the inferior's terminal settings are put in
2275 2014-10-17 Pedro Alves <palves@redhat.com>
2278 * annotate.c (annotate_breakpoints_invalid): Use
2279 target_terminal_our_for_output instead of target_terminal_ours.
2280 Give back the terminal to the target.
2281 (annotate_frames_invalid): Likewise.
2283 2014-10-17 Pedro Alves <palves@redhat.com>
2285 * target.c (enum terminal_state): New enum.
2286 (terminal_state): New global.
2287 (target_terminal_init): New function.
2288 (target_terminal_inferior): Skip if inferior already owns the
2290 (target_terminal_ours, target_terminal_ours_for_output): New
2292 * target.h (target_terminal_init): Convert to function prototype.
2293 (target_terminal_ours_for_output): Convert to function prototype
2295 (target_terminal_ours): Convert to function prototype and tweak
2297 * windows-nat.c (do_initial_windows_stuff): Call
2298 target_terminal_init instead of child_terminal_init_with_pgrp.
2300 2014-10-17 Pedro Alves <palves@redhat.com>
2302 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2303 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2304 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2306 * NEWS: Mention that support for alpha*-*-osf* has been removed.
2307 * ada-lang.h [__alpha__ && __osf__]
2308 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2309 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2310 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2312 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2314 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2315 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2316 * configure: Regenerate.
2317 * configure.ac: Remove references to osf.
2318 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2319 section. Remove all other references to osf.
2320 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2321 Remove all other references to osf.
2322 * dec-thread.c: Delete file.
2323 * defs.h (GDB_OSABI_OSF1): Delete.
2324 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2326 * osabi.c (gdb_osabi_names): Delete "OSF/1".
2327 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2329 (unconditionally_kill_inferior)
2330 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2331 * solib-osf.c: Delete file.
2333 2014-10-17 Pedro Alves <palves@redhat.com>
2335 * remote.c (clear_threads_listing_context): Move higher up, out of
2336 the HAVE_LIBEXPAT guard.
2338 2014-10-16 Tristan Gingold <gingold@adacore.com>
2340 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2341 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2344 2014-10-15 Pedro Alves <palves@redhat.com>
2346 * dec-thread.c (dec_thread_count_gdb_threads)
2347 (dec_thread_add_gdb_thread): Delete.
2348 (dec_thread_update_thread_list): Delete.
2349 (dec_thread_find_new_threads): Rename to ...
2350 (dec_thread_update_thread_list): ... this. Delete GDB-size
2351 threads that are no longer found in dec_thread_list.
2352 (resync_thread_list): Delete.
2353 (dec_thread_wait): Call dec_thread_update_thread_list instead of
2356 2014-10-15 Pedro Alves <palves@redhat.com>
2358 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2359 * remote.c (remote_update_thread_list): Skip calling prune_threads
2360 if any thread listing method is supported, and instead walk over
2361 the set of remote threads listed, deleting those that are not
2362 found in GDB's thread list.
2364 2014-10-15 Pedro Alves <palves@redhat.com>
2366 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2367 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2368 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
2369 (bsd_uthread_target): Adjust.
2370 * corelow.c (core_open): Adjust.
2371 * dec-thread.c (dec_thread_find_new_threads): Update comment.
2372 (dec_thread_update_thread_list): New function.
2373 (init_dec_thread_ops): Adjust.
2374 * gdbthread.h (prune_threads): New declaration.
2375 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2376 (thread_db_update_thread_list): ... this. Call prune_threads.
2377 (init_thread_db_ops): Adjust.
2378 * nto-procfs.c (procfs_find_new_threads): Rename to ...
2379 (procfs_update_thread_list): ... this. Call prune_threads.
2380 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2382 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2383 (obsd_update_thread_list): ... this. Call prune_threads.
2384 (obsd_add_target): Adjust.
2385 * procfs.c (procfs_target): Adjust.
2386 (procfs_notice_thread): Update comment.
2387 (procfs_find_new_threads): Rename to ...
2388 (procfs_update_thread_list): ... this. Call prune_threads.
2389 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2391 (ravenscar_wait): Adjust.
2392 (ravenscar_find_new_threads): Rename to ...
2393 (ravenscar_update_thread_list): ... this. Call prune_threads.
2394 (init_ravenscar_thread_ops): Adjust.
2395 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2396 (record_btrace_update_thread_list): ... this. Adjust comment.
2397 (init_record_btrace_ops): Adjust.
2398 * remote.c (remote_threads_info): Rename to ...
2399 (remote_update_thread_list): ... this. Call prune_threads.
2400 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2402 * sol-thread.c (check_for_thread_db): Adjust.
2403 (sol_find_new_threads_callback): Rename to ...
2404 (sol_update_thread_list_callback): ... this.
2405 (sol_find_new_threads): Rename to ...
2406 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2407 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2408 * target-delegates.c: Regenerate.
2409 * target.c (target_find_new_threads): Rename to ...
2410 (target_update_thread_list): ... this.
2411 * target.h (struct target_ops): Rename to_find_new_threads field
2412 to to_update_thread_list.
2413 (target_find_new_threads): Rename to ...
2414 (target_update_thread_list): ... this.
2415 * thread.c (prune_threads): Make extern.
2416 (update_thread_list): Adjust.
2418 2014-10-15 Pedro Alves <palves@redhat.com>
2420 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2421 Add describing comment. Return -1 if the qL packet is not
2423 (struct thread_item, thread_item_t): Move higher up in
2424 the file. Add comments.
2425 (struct threads_parsing_context): Move higher up in
2426 the file, add comments, and remote to ...
2427 (struct threads_listing_context): ... this.
2428 (remote_newthread_step): Don't add the thread to GDB's thread
2429 database here. Instead push it to the thread_listing_context
2431 (remote_find_new_threads): Rename to ...
2432 (remote_get_threads_with_ql): ... this. Add target_ops and
2433 targets_listing_context parameters. Pass down context.
2434 (start_thread): Adjust.
2435 (clear_threads_parsing_context): Rename to ...
2436 (clear_threads_listing_context): ... this.
2437 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2438 remote_threads_info.
2439 (remote_get_threads_with_qthreadinfo): Ditto.
2440 (remote_threads_info): Reimplement.
2442 2014-10-15 Pedro Alves <palves@redhat.com>
2444 * infrun.c (resume): Don't force displaced-stepping for all
2445 single-steps on software single-stepping archs.
2447 2014-10-15 Pedro Alves <palves@redhat.com>
2449 * breakpoint.c (single_step_breakpoints): Delete global.
2450 (insert_single_step_breakpoint): Adjust to store the breakpoint
2451 pointer in the current thread.
2452 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2453 (cancel_single_step_breakpoints): Delete functions.
2454 (breakpoint_has_location_inserted_here): Make extern.
2455 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2457 * breakpoint.h (breakpoint_has_location_inserted_here): New
2459 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2460 (cancel_single_step_breakpoints): Remove declarations.
2461 * gdbthread.h (struct thread_control_state)
2462 <single_step_breakpoints>: New field.
2463 (delete_single_step_breakpoints)
2464 (thread_has_single_step_breakpoints_set)
2465 (thread_has_single_step_breakpoint_here): New declarations.
2466 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2467 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2468 (singlestep_pc): Delete globals.
2469 (infrun_thread_ptid_changed): Remove references to removed
2471 (resume_cleanups): Delete the current thread's single-step
2473 (maybe_software_singlestep): Remove references to removed globals.
2474 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2475 delete_single_step_breakpoints.
2476 (init_wait_for_inferior): Remove references to removed globals.
2477 (delete_thread_infrun_breakpoints): Delete the thread's
2478 single-step breakpoints too.
2479 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2480 single-step breakpoints here.
2481 (delete_stopped_threads_single_step_breakpoints): New function.
2482 (adjust_pc_after_break): Adjust to use
2483 thread_has_single_step_breakpoints_set.
2484 (handle_inferior_event): Remove references to removed globals.
2485 Use delete_stopped_threads_single_step_breakpoints.
2486 (handle_signal_stop): Adjust to per-thread single-step
2487 breakpoints. Swap test order to do cheaper tests first.
2488 (switch_back_to_stepped_thread): Extend debug output. Remove
2489 references to removed globals.
2490 * record-full.c (record_full_wait_1): Adjust to per-thread
2491 single-step breakpoints.
2492 * thread.c (delete_single_step_breakpoints)
2493 (thread_has_single_step_breakpoints_set)
2494 (thread_has_single_step_breakpoint_here): New functions.
2495 (clear_thread_inferior_resources): Also delete the thread's
2496 single-step breakpoints.
2498 2014-10-15 Pedro Alves <palves@redhat.com>
2500 * thread.c (delete_thread_breakpoint): New function.
2501 (delete_step_resume_breakpoint)
2502 (delete_exception_resume_breakpoint): Use it.
2503 (delete_at_next_stop): New function.
2504 (clear_thread_inferior_resources): Use delete_at_next_stop.
2506 2014-10-15 Pedro Alves <palves@redhat.com>
2508 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2509 (breakpoint_inserted_here_p): ... here. Remove special case for
2510 software single-step breakpoints.
2511 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2512 (software_breakpoint_inserted_here_p): ... here. Remove special
2513 case for software single-step breakpoints.
2514 (bp_target_info_copy_insertion_state)
2515 (deprecated_insert_raw_breakpoint)
2516 (deprecated_remove_raw_breakpoint): Delete functions.
2517 * breakpoint.h (deprecated_insert_raw_breakpoint)
2518 (deprecated_remove_raw_breakpoint): Remove declarations.
2520 2014-10-15 Pedro Alves <palves@redhat.com>
2523 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2524 Delete array globals.
2525 (single_step_breakpoints): New global.
2526 (breakpoint_xfer_memory): Remove special handling for single-step
2528 (update_breakpoints_after_exec): Delete bp_single_step
2530 (detach_breakpoints): Remove special handling for single-step
2532 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2533 (bpstat_stop_status): Add comment.
2534 (bpstat_what, bptype_string, print_one_breakpoint_location)
2535 (adjust_breakpoint_address, init_bp_location): Handle
2537 (new_single_step_breakpoint): New function.
2538 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2539 handling for single-step breakpoints.
2540 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2541 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2543 (detach_single_step_breakpoints, find_single_step_breakpoint):
2545 (breakpoint_has_location_inserted_here): New function.
2546 (single_step_breakpoint_inserted_here_p): Rewrite.
2547 * breakpoint.h: Remove FIXME.
2548 (enum bptype) <bp_single_step>: New enum value.
2549 (insert_single_step_breakpoint): Update comment.
2550 * infrun.c (resume_cleanups)
2551 (delete_step_thread_step_resume_breakpoint): Remove single-step
2553 (fetch_inferior_event): Install a cleanup that removes infrun
2555 (switch_back_to_stepped_thread) <expect thread advanced also>:
2556 Clear step-over info.
2558 2014-10-15 Pedro Alves <palves@redhat.com>
2560 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2561 (delete_thread_infrun_breakpoints): New function, with parts
2562 salvaged from delete_step_resume_breakpoint_callback.
2563 (delete_step_thread_step_resume_breakpoint): Delete.
2564 (for_each_just_stopped_thread_callback_func): New typedef.
2565 (for_each_just_stopped_thread): New function.
2566 (delete_just_stopped_threads_infrun_breakpoints): New function.
2567 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2568 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2570 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2572 2014-10-15 Pedro Alves <palves@redhat.com>
2574 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2575 trying to step past a non-steppable watchpoint.
2576 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2578 * infrun.c (struct step_over_info): Add new field
2579 'nonsteppable_watchpoint_p' and adjust comments.
2580 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2582 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2583 (stepping_past_nonsteppable_watchpoint): New function.
2584 (step_over_info_valid_p): Also return true if stepping past a
2585 nonsteppable watchpoint.
2586 (proceed): Adjust call to set_step_over_info. Remove reference to
2588 (init_wait_for_inferior): Remove reference to init_infwait_state.
2589 (waiton_ptid): Delete global.
2590 (struct execution_control_state)
2591 <stepped_after_stopped_by_watchpoint>: Delete field.
2592 (wait_for_inferior, fetch_inferior_event): Always pass
2593 minus_one_ptid to target_wait.
2594 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2596 (init_infwait_state): Delete function.
2597 (handle_inferior_event): Remove infwait_state handling.
2598 (handle_signal_stop) <watchpoints handling>: Adjust after
2599 stepped_after_stopped_by_watchpoint removal. Don't remove
2600 breakpoints here nor set infwait_state. Set the thread's
2601 stepping_over_watchpoint flag, and call keep_going instead.
2602 (keep_going): Handle stepping_over_watchpoint. Adjust
2603 set_step_over_info calls.
2604 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2607 2014-10-15 Pedro Alves <palves@redhat.com>
2609 * infrun.c (step_over_info_valid_p): New function.
2610 (resume): Use step_over_info_valid_p instead of checking the
2611 threads's trap_expected flag.
2613 2014-10-15 Doug Evans <dje@google.com>
2614 Walfred Tedeschi <walfred.tedeschi@intel.com>
2617 * python/lib/gdb/__init__.py (packages): Add "printer".
2618 * python/lib/gdb/command/bound_registers.py: Moved to ...
2619 * python/lib/gdb/printer/bound_registers.py: ... here.
2620 Add printer to global set of builtin printers. Rename printer from
2621 "bound" to "mpx_bound128".
2622 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2623 registered as global "builtin" printer.
2624 (add_builtin_pretty_printer): New function.
2625 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2626 gdb/printer/__init__.py.
2628 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2630 * Makefile.in (SFILES): Remove d-support.c.
2631 (COMMON_OBS): Remove d-support.o.
2632 * d-lang.h (d_parse_symbol): Remove declaration.
2633 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2634 * d-support.c: Remove file.
2636 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2638 * gdb/infrun.c (process_event_stop_test): Apply
2639 gdbarch_addr_bits_remove to longjmp resume address.
2641 2014-10-15 Pedro Alves <palves@redhat.com>
2643 * regformats/microblaze.dat: Delete file.
2645 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2647 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2648 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2650 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2652 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2655 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2659 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2660 with qualified args.
2662 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2664 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2665 of the case where the second operand is a pointer.
2666 <BINOP_SUB>: Likewise.
2668 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2670 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2671 only if it is not NULL.
2672 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2673 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2674 (struct probe_ops) <clear_semaphore>: Likewise.
2675 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2677 (stop_tracing): Likewise, for clear_semaphore.
2679 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2681 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2682 using language_c, instead of current_language.
2684 2014-10-13 Doug Evans <dje@google.com>
2686 * python/py-objfile.c (objfpy_initialize): New function.
2687 (objfpy_new, objfile_to_objfile_object): Call it.
2688 * python/py-progspace.c (pspy_initialize): New function.
2689 (pspy_new, pspace_to_pspace_object): Call it.
2691 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2692 Jan Kratochvil <jan.kratochvil@redhat.com>
2694 Fix "save breakpoints" for "catch" command.
2695 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2698 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2700 Fix "save breakpoints" for "disable $bpnum" command.
2701 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2703 2014-10-10 Pedro Alves <palves@redhat.com>
2705 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2706 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2707 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2708 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2710 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2711 * configure.ac: Remove references to IRIX.
2712 * configure.host: Add *-*-irix* to the obsolete hosts section.
2713 Remove all other references to irix.
2714 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2717 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2719 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2720 isn't valid, release the tdesc arch data and return NULL.
2722 2014-10-10 Pedro Alves <palves@redhat.com>
2724 * linux-tdep.c: Include observer.h.
2725 (linux_inferior_data): New global.
2726 (struct linux_info): New structure.
2727 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2728 (get_linux_inferior_data): New functions.
2729 (linux_vsyscall_range): Rename to ...
2730 (linux_vsyscall_range_raw): ... this.
2731 (linux_vsyscall_range): New function; handles caching.
2732 (_initialize_linux_tdep): Register linux_inferior_data. Install
2733 inferior_exit and inferior_appeared observers.
2735 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2736 Pedro Alves <palves@redhat.com>
2739 * solib-svr4.c (svr4_read_so_list): Rename to ...
2740 (svr4_current_sos_1): ... this and change the function comment.
2741 (svr4_current_sos): New function.
2743 2014-10-10 Pedro Alves <palves@redhat.com>
2745 * arch-utils.c (default_vsyscall_range): New function.
2746 * arch-utils.h (default_vsyscall_range): New declaration.
2747 * gdbarch.sh (vsyscall_range): New hook.
2748 * gdbarch.h, gdbarch.c: Regenerate.
2749 * linux-tdep.c (linux_vsyscall_range): New function.
2750 (linux_init_abi): Install linux_vsyscall_range as
2751 vsyscall_range gdbarch hook.
2752 * memrange.c (address_in_mem_range): New function.
2753 * memrange.h (address_in_mem_range): New declaration.
2754 * symfile-mem.c (find_vdso_size): Delete function.
2755 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2757 2014-10-10 Pedro Alves <palves@redhat.com>
2759 * infrun.c (normal_stop): Fix typo in comment.
2761 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2764 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2765 typo when using logical AND to determine instruction type.
2767 2014-10-09 Yao Qi <yao@codesourcery.com>
2769 * infrun.c (handle_signal_stop): Remove local variable
2772 2014-10-08 Stan Shebs <stan@codesourcery.com>
2774 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2776 2014-10-08 Gary Benson <gbenson@redhat.com>
2778 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2780 2014-10-08 Gary Benson <gbenson@redhat.com>
2782 * common/common-defs.h: Include common-exceptions.h.
2783 * exceptions.h: Do not include common-exceptions.h.
2785 2014-10-08 Gary Benson <gbenson@redhat.com>
2787 * common/common-defs.h: Include cleanups.h.
2788 * common/common-exceptions.c: Do not include cleanups.h.
2789 * utils.h: Likewise.
2791 2014-10-08 Gary Benson <gbenson@redhat.com>
2793 * ada-lang.c: Do not include exceptions.h.
2794 * ada-valprint.c: Likewise.
2795 * amd64-tdep.c: Likewise.
2796 * auto-load.c: Likewise.
2797 * block.c: Likewise.
2798 * break-catch-throw.c: Likewise.
2799 * breakpoint.c: Likewise.
2800 * btrace.c: Likewise.
2801 * c-lang.c: Likewise.
2802 * cli/cli-cmds.c: Likewise.
2803 * cli/cli-interp.c: Likewise.
2804 * cli/cli-script.c: Likewise.
2805 * completer.c: Likewise.
2806 * corefile.c: Likewise.
2807 * corelow.c: Likewise.
2808 * cp-abi.c: Likewise.
2809 * cp-support.c: Likewise.
2810 * cp-valprint.c: Likewise.
2811 * darwin-nat.c: Likewise.
2812 * dwarf2-frame-tailcall.c: Likewise.
2813 * dwarf2-frame.c: Likewise.
2814 * dwarf2loc.c: Likewise.
2815 * dwarf2read.c: Likewise.
2817 * event-loop.c: Likewise.
2818 * event-top.c: Likewise.
2819 * f-valprint.c: Likewise.
2820 * frame-unwind.c: Likewise.
2821 * frame.c: Likewise.
2822 * gdbtypes.c: Likewise.
2823 * gnu-v2-abi.c: Likewise.
2824 * gnu-v3-abi.c: Likewise.
2825 * guile/scm-auto-load.c: Likewise.
2826 * guile/scm-breakpoint.c: Likewise.
2827 * guile/scm-cmd.c: Likewise.
2828 * guile/scm-frame.c: Likewise.
2829 * guile/scm-lazy-string.c: Likewise.
2830 * guile/scm-param.c: Likewise.
2831 * guile/scm-symbol.c: Likewise.
2832 * guile/scm-type.c: Likewise.
2833 * hppa-hpux-tdep.c: Likewise.
2834 * i386-tdep.c: Likewise.
2835 * inf-loop.c: Likewise.
2836 * infcall.c: Likewise.
2837 * infcmd.c: Likewise.
2838 * infrun.c: Likewise.
2839 * interps.c: Likewise.
2840 * interps.h: Likewise.
2842 * linespec.c: Likewise.
2843 * linux-nat.c: Likewise.
2844 * linux-thread-db.c: Likewise.
2845 * m32r-rom.c: Likewise.
2847 * memory-map.c: Likewise.
2848 * mi/mi-cmd-break.c: Likewise.
2849 * mi/mi-cmd-stack.c: Likewise.
2850 * mi/mi-interp.c: Likewise.
2851 * mi/mi-main.c: Likewise.
2852 * monitor.c: Likewise.
2853 * nto-procfs.c: Likewise.
2854 * objc-lang.c: Likewise.
2855 * p-valprint.c: Likewise.
2856 * parse.c: Likewise.
2857 * ppc-linux-tdep.c: Likewise.
2858 * printcmd.c: Likewise.
2859 * probe.c: Likewise.
2860 * python/py-auto-load.c: Likewise.
2861 * python/py-breakpoint.c: Likewise.
2862 * python/py-cmd.c: Likewise.
2863 * python/py-finishbreakpoint.c: Likewise.
2864 * python/py-frame.c: Likewise.
2865 * python/py-framefilter.c: Likewise.
2866 * python/py-function.c: Likewise.
2867 * python/py-gdb-readline.c: Likewise.
2868 * python/py-inferior.c: Likewise.
2869 * python/py-infthread.c: Likewise.
2870 * python/py-lazy-string.c: Likewise.
2871 * python/py-linetable.c: Likewise.
2872 * python/py-param.c: Likewise.
2873 * python/py-prettyprint.c: Likewise.
2874 * python/py-symbol.c: Likewise.
2875 * python/py-type.c: Likewise.
2876 * python/py-value.c: Likewise.
2877 * python/python-internal.h: Likewise.
2878 * python/python.c: Likewise.
2879 * record-btrace.c: Likewise.
2880 * record-full.c: Likewise.
2881 * regcache.c: Likewise.
2882 * remote-fileio.c: Likewise.
2883 * remote-mips.c: Likewise.
2884 * remote.c: Likewise.
2885 * rs6000-aix-tdep.c: Likewise.
2886 * rs6000-nat.c: Likewise.
2888 * solib-darwin.c: Likewise.
2889 * solib-dsbt.c: Likewise.
2890 * solib-frv.c: Likewise.
2891 * solib-ia64-hpux.c: Likewise.
2892 * solib-spu.c: Likewise.
2893 * solib-svr4.c: Likewise.
2894 * solib.c: Likewise.
2895 * spu-tdep.c: Likewise.
2896 * stack.c: Likewise.
2897 * stap-probe.c: Likewise.
2898 * symfile-mem.c: Likewise.
2899 * symmisc.c: Likewise.
2900 * target.c: Likewise.
2901 * thread.c: Likewise.
2903 * tracepoint.c: Likewise.
2904 * tui/tui-interp.c: Likewise.
2905 * typeprint.c: Likewise.
2906 * utils.c: Likewise.
2907 * valarith.c: Likewise.
2908 * valops.c: Likewise.
2909 * valprint.c: Likewise.
2910 * value.c: Likewise.
2911 * varobj.c: Likewise.
2912 * windows-nat.c: Likewise.
2913 * xml-support.c: Likewise.
2915 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2917 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2919 (extended_mips16_next_pc): Update accordingly.
2921 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2923 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2925 (micromips_instruction_is_compact_branch): Likewise.
2926 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2927 or a compact jump, reaching a jump delay slot, or seeing a
2928 second non-prologue instruction.
2929 (micromips_scan_prologue): Also terminate scanning upon seeing a
2930 compact branch or jump, or reaching a branch or jump delay slot.
2931 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2932 or jump delay slot, or seeing a second non-prologue instruction.
2933 (mips32_instruction_has_delay_slot): Retain instruction
2934 examination code only, update arguments accordingly and move
2935 instruction fetch pieces to...
2936 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2937 (micromips_instruction_has_delay_slot): Likewise and to...
2938 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2939 (mips16_instruction_has_delay_slot): Likewise and to...
2940 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2941 (mips_single_step_through_delay): Update accordingly.
2942 (mips_adjust_breakpoint_address): Likewise.
2944 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2946 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2947 !mustbe32 also return 1 for 32-bit instructions.
2948 (mips16_instruction_has_delay_slot): Likewise. Add an
2949 explanatory comment.
2951 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2953 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2956 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2958 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2960 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2961 for the breakpoint's address. Don't preinitialize `placed_size'.
2962 (insert_bp_location): Set `reqstd_address' rather than
2964 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2965 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2967 (bkpt_remove_location): Likewise.
2968 (deprecated_insert_raw_breakpoint): Likewise.
2969 (deprecated_remove_raw_breakpoint): Likewise.
2970 (find_single_step_breakpoint): Likewise.
2971 * mem-break.c (default_memory_insert_breakpoint): Use
2972 `reqstd_address' for the breakpoint's address. Don't set
2973 `placed_address' or `placed_size' if breakpoint contents couldn't
2974 have been determined.
2975 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2976 the breakpoint's address.
2977 (remote_insert_hw_breakpoint): Likewise. Don't set
2978 `placed_address' or `placed_size' if breakpoint couldn't have been
2980 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2981 `reqstd_address' for the breakpoint's address.
2982 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2983 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2984 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2985 * microblaze-linux-tdep.c
2986 (microblaze_linux_memory_remove_breakpoint): Likewise.
2987 * monitor.c (monitor_insert_breakpoint): Likewise.
2988 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2989 (procfs_insert_hw_breakpoint): Likewise.
2990 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2991 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2992 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2993 * remote-mips.c (mips_insert_breakpoint): Likewise.
2994 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2996 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2998 * valops.c (value_assign): Check for bit field assignments
2999 before calling architecture-specific register value
3000 conversion functions.
3002 2014-10-03 Pierre Muller <muller@sourceware.org>
3004 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
3006 2014-10-02 Pedro Alves <palves@redhat.com>
3008 * breakpoint.c (breakpoints_should_be_inserted_now): Use
3009 threads_are_executing.
3010 * breakpoint.h (breakpoints_should_be_inserted_now): Add
3012 * gdbthread.h (threads_are_executing): Declare.
3013 (handle_signal_stop) <random signals>: Don't print about the
3014 signal here if stopping.
3015 (end_stepping_range): Don't notify observers here.
3016 (normal_stop): Update the thread list. If stopped by a random
3017 signal or a stepping range ended, notify observers.
3018 * thread.c (threads_executing): New global.
3019 (init_thread_list): Clear 'threads_executing'.
3020 (set_executing): Set or clear 'threads_executing'.
3021 (threads_are_executing): New function.
3022 (update_threads_executing): New function.
3023 (update_thread_list): Use it.
3025 2014-10-02 Pedro Alves <palves@redhat.com>
3027 PR breakpoints/17431
3028 * breakpoint.c (update_breakpoints_after_exec): Don't create
3029 overlay, longjmp, std terminate nor exception breakpoints here.
3031 2014-10-02 Pedro Alves <palves@redhat.com>
3033 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3035 * inferior.c (find_inferior_for_program_space): Give preference to
3036 the current inferior.
3037 * inferior.h (find_inferior_for_program_space): Update comment.
3038 * progspace.c (switch_to_program_space_and_thread): Prefer the
3039 current inferior if it's bound to the program space requested. If
3040 the inferior found doesn't have a PID yet, don't bother looking up
3042 * progspace.h (switch_to_program_space_and_thread): Adjust
3044 * thread.c (any_thread_of_process, any_live_thread_of_process):
3045 Give preference to the current thread.
3047 2014-10-01 Pedro Alves <palves@redhat.com>
3049 * breakpoint.c (insert_bp_location): Error out if inserting a
3050 software breakpoint at a read-only address.
3051 * target.c (memory_xfer_check_region): New function, factored out
3053 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
3055 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3056 against the memory region attributes.
3058 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
3060 * NEWS: Announce new exit-code field in -list-thread-groups
3062 * inferior.c (exit_inferior_1): Don't clear exit code.
3063 (inferior_appeared): Clear exit code.
3064 * mi/mi-main.c (print_one_inferior): Add printing of the exit
3067 2014-10-01 Pedro Alves <palves@redhat.com>
3069 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3070 GENERATED" along with emacs/vi read-only markers.
3071 * regformats/aarch64.dat: Regenerate.
3072 * regformats/arm-with-iwmmxt.dat: Regenerate.
3073 * regformats/arm-with-neon.dat: Regenerate.
3074 * regformats/arm-with-vfpv2.dat: Regenerate.
3075 * regformats/arm-with-vfpv3.dat: Regenerate.
3076 * regformats/i386/amd64-avx-linux.dat: Regenerate.
3077 * regformats/i386/amd64-avx.dat: Regenerate.
3078 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3079 * regformats/i386/amd64-avx512.dat: Regenerate.
3080 * regformats/i386/amd64-linux.dat: Regenerate.
3081 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3082 * regformats/i386/amd64-mpx.dat: Regenerate.
3083 * regformats/i386/amd64.dat: Regenerate.
3084 * regformats/i386/i386-avx-linux.dat: Regenerate.
3085 * regformats/i386/i386-avx.dat: Regenerate.
3086 * regformats/i386/i386-avx512-linux.dat: Regenerate.
3087 * regformats/i386/i386-avx512.dat: Regenerate.
3088 * regformats/i386/i386-linux.dat: Regenerate.
3089 * regformats/i386/i386-mmx-linux.dat: Regenerate.
3090 * regformats/i386/i386-mmx.dat: Regenerate.
3091 * regformats/i386/i386-mpx-linux.dat: Regenerate.
3092 * regformats/i386/i386-mpx.dat: Regenerate.
3093 * regformats/i386/i386.dat: Regenerate.
3094 * regformats/i386/x32-avx-linux.dat: Regenerate.
3095 * regformats/i386/x32-avx.dat: Regenerate.
3096 * regformats/i386/x32-avx512-linux.dat: Regenerate.
3097 * regformats/i386/x32-avx512.dat: Regenerate.
3098 * regformats/i386/x32-linux.dat: Regenerate.
3099 * regformats/i386/x32.dat: Regenerate.
3100 * regformats/microblaze-with-stack-protect.dat: Regenerate.
3101 * regformats/mips-dsp-linux.dat: Regenerate.
3102 * regformats/mips-linux.dat: Regenerate.
3103 * regformats/mips64-dsp-linux.dat: Regenerate.
3104 * regformats/mips64-linux.dat: Regenerate.
3105 * regformats/nios2-linux.dat: Regenerate.
3106 * regformats/rs6000/powerpc-32.dat: Regenerate.
3107 * regformats/rs6000/powerpc-32l.dat: Regenerate.
3108 * regformats/rs6000/powerpc-64l.dat: Regenerate.
3109 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3110 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3111 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3112 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3113 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3114 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3115 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3116 * regformats/s390-linux32.dat: Regenerate.
3117 * regformats/s390-linux32v1.dat: Regenerate.
3118 * regformats/s390-linux32v2.dat: Regenerate.
3119 * regformats/s390-linux64.dat: Regenerate.
3120 * regformats/s390-linux64v1.dat: Regenerate.
3121 * regformats/s390-linux64v2.dat: Regenerate.
3122 * regformats/s390-te-linux64.dat: Regenerate.
3123 * regformats/s390x-linux64.dat: Regenerate.
3124 * regformats/s390x-linux64v1.dat: Regenerate.
3125 * regformats/s390x-linux64v2.dat: Regenerate.
3126 * regformats/s390x-te-linux64.dat: Regenerate.
3127 * regformats/tic6x-c62x-linux.dat: Regenerate.
3128 * regformats/tic6x-c62x.dat: Regenerate.
3129 * regformats/tic6x-c64x-linux.dat: Regenerate.
3130 * regformats/tic6x-c64x.dat: Regenerate.
3131 * regformats/tic6x-c64xp-linux.dat: Regenerate.
3132 * regformats/tic6x-c64xp.dat: Regenerate.
3134 2014-10-01 Pedro Alves <palves@redhat.com>
3136 * features/Makefile: Update comments.
3137 (XMLTOC): List all xml files we build C files from.
3138 (clean-cfiles): New rule.
3140 2014-10-01 Pedro Alves <palves@redhat.com>
3142 * features/i386/amd64-avx512-linux.c: Regenerate.
3143 * features/i386/amd64-avx512.c: Regenerate.
3144 * features/i386/x32-avx512-linux.c: Regenerate.
3145 * features/i386/x32-avx512.c: Regenerate.
3147 2014-10-01 Pedro Alves <palves@redhat.com>
3149 * features/Makefile (WHICH): Remove arm-with-m,
3150 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3152 2014-10-01 Pedro Alves <palves@redhat.com>
3154 * features/Makefile (clean): New rule.
3156 2014-10-01 Pedro Alves <palves@redhat.com>
3158 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3159 (zmm14h): Add missing end quotes.
3161 2014-10-01 Pedro Alves <palves@redhat.com>
3163 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3164 * features/aarch64.c: Regenerate.
3166 2014-09-30 Don Breazeal <donb@codesourcery.com>
3168 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3169 code so as to work with follow_fork_inferior.
3170 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3171 (inf_ttrace_create_inferior): Remove reference to
3172 inf_ttrace_vfork_ppid.
3173 (inf_ttrace_attach): Ditto.
3174 (inf_ttrace_detach): Ditto.
3175 (inf_ttrace_kill): Use current_inferior instead of
3176 inf_ttrace_vfork_ppid.
3177 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3178 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3179 inferior away from the parent.
3180 * infrun.c (follow_fork): Call follow_fork_inferior instead of
3182 (follow_fork_inferior): New function.
3183 (follow_inferior_reset_breakpoints): Make function static.
3184 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3185 * linux-nat.c (linux_child_follow_fork): Move target-independent
3186 code to infrun.c:follow_fork_inferior.
3188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3190 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3191 * gdbarch.c: Regenerate.
3192 * gdbarch.h: Likewise.
3193 * corelow.c (sniff_core_bfd): Drop presence check for deleted
3194 gdbarch method 'regset_from_core_section'.
3195 (get_core_register_section): Remove handling for the case that
3196 regset == NULL and regset_from_core_section is defined.
3197 (get_core_registers): Drop check for deleted method.
3198 * procfs.c (procfs_do_thread_registers): Adjust comment.
3200 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3202 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3203 (linux_nat_make_corefile_notes): Remove.
3204 (linux_target_install_ops): Do not set target method
3205 'make_corefile_notes'.
3206 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3208 (linux_corefile_thread_callback): Instead of args->collect, call
3209 linux_collect_thread_registers.
3210 (linux_make_corefile_notes): Remove 'collect' parameter. Return
3211 NULL unless there is a regset iterator.
3212 (linux_make_corefile_notes_1): Remove.
3213 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3214 by linux_make_corefile_notes.
3215 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3217 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3219 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3220 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3222 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3224 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3226 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3227 (xtensa_iterate_over_regset_sections): New.
3228 (xtensa_gdbarch_init): Adjust gdbarch initialization.
3230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3232 * vax-tdep.c (vax_regset_from_core_section): Remove.
3233 (vax_iterate_over_regset_sections): New.
3234 (vax_gdbarch_init): Adjust gdbarch initialization.
3236 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3238 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3239 (tilegx_regset_from_core_section): Remove.
3240 (tilegx_iterate_over_regset_sections): New.
3241 (tilegx_linux_init_abi): Adjust gdbarch initialization.
3243 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3246 (sparc_iterate_over_regset_sections): New.
3247 (sparc32_gdbarch_init): Adjust gdbarch initialization.
3248 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3250 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3251 (sparc64fbsd_init_abi): Call fbsd_init_abi.
3252 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3253 target method 'make_corefile_notes'.
3255 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3257 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3258 'sizeof_gregset' and 'sizeof_fpregset'.
3259 * sh-tdep.c (sh_regset_from_core_section): Remove.
3260 (sh_iterate_over_regset_sections): New.
3261 (sh_gdbarch_init): Adjust gdbarch initialization.
3262 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3264 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3267 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3269 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3270 (score7_linux_iterate_over_regset_sections): New.
3271 (score_gdbarch_init): Adjust gdbarch initialization.
3273 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3275 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3277 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3278 method 'make_corefile_notes'.
3279 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3280 (ppcfbsd_regset_from_core_section): Remove.
3281 (ppcfbsd_iterate_over_regset_sections): New.
3282 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
3284 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3285 (ppcnbsd_iterate_over_regset_sections): New.
3286 (ppcnbsd_init_abi): Adjust.
3287 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3288 (ppcobsd_iterate_over_regset_sections): New.
3289 (ppcobsd_init_abi): Adjust.
3290 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3291 (rs6000_aix_iterate_over_regset_sections): New.
3292 (rs6000_aix_init_osabi): Adjust.
3294 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3296 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3297 (nios2_regset_from_core_section): Remove.
3298 (nios2_iterate_over_regset_sections): New.
3299 (nios2_linux_init_abi): Adjust gdbarch initialization.
3301 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3303 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3304 (am33_iterate_over_regset_sections): New.
3305 (am33_linux_init_osabi): Adjust gdbarch initialization.
3307 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3309 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3310 (mips_linux_iterate_over_regset_sections): New.
3311 (mips_linux_init_abi): Adjust gdbarch initialization.
3312 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3313 (mips64obsd_iterate_over_regset_sections): New.
3314 (mips64obsd_init_abi): Adjust.
3315 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3316 (mipsnbsd_iterate_over_regset_sections): New.
3317 (mipsnbsd_init_abi): Adjust.
3319 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3321 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3322 (m88k_iterate_over_regset_sections): New.
3323 (m88k_gdbarch_init): Adjust gdbarch initialization.
3325 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3327 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3328 (ia64_linux_iterate_over_regset_sections): New.
3329 (ia64_linux_init_abi): Adjust gdbarch initialization.
3331 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3333 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3334 (m68kbsd_iterate_over_regset_sections): New.
3335 (m68kbsd_init_abi): Adjust gdbarch initialization.
3336 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3337 (m68k_linux_iterate_over_regset_sections): New.
3338 (m68k_linux_init_abi): Adjust gdbarch initialization.
3340 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3342 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3343 (m32r_linux_regset_from_core_section): Remove.
3344 (m32r_linux_iterate_over_regset_sections): New.
3345 (m32r_linux_init_abi): Adjust gdbarch initialization.
3347 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3349 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3350 (amd64obsd_iterate_over_regset_sections): New.
3351 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3352 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3354 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
3355 regset_from_core_section initialization.
3356 * i386-tdep.c (i386_regset_from_core_section): Remove.
3357 (i386_iterate_over_regset_sections): New.
3358 (i386_gdbarch_init): Adjust gdbarch initialization.
3359 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3360 (i386_iterate_over_regset_sections): New prototype.
3361 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3363 (i386obsd_aout_iterate_over_regset_sections): New.
3364 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3365 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3367 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3368 (amd64fbsd_init_abi): Call fbsd_init_abi.
3369 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3370 (i386fbsd4_init_abi): Call fbsd_init_abi.
3371 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3372 target method 'make_corefile_notes'.
3373 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3375 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3377 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3378 (hppa_hpux_iterate_over_regset_sections): New.
3379 (hppa_hpux_init_abi): Adjust gdbarch initialization.
3380 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3381 (hppa_linux_iterate_over_regset_sections): New.
3382 (hppa_linux_init_abi): Adjust.
3383 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3384 (hppanbsd_iterate_over_regset_sections): New.
3385 (hppanbsd_init_abi): Adjust.
3386 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3387 (hppaobsd_iterate_over_regset_sections): New.
3388 (hppaobsd_init_abi): Adjust.
3390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3392 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3393 (frv_linux_iterate_over_regset_sections): New.
3394 (frv_linux_init_abi): Adjust gdbarch initialization.
3396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3398 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3399 (armbsd_iterate_over_regset_sections): New prototype.
3400 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3401 (armbsd_iterate_over_regset_sections): New.
3402 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3407 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3408 (alpha_linux_iterate_over_regset_sections): New.
3409 (alpha_linux_init_abi): Adjust gdbarch initialization.
3410 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3412 (alphanbsd_iterate_over_regset_sections): New prototype.
3414 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3416 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3418 (aarch64_linux_iterate_over_regset_sections): New.
3419 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3423 * fbsd-tdep.c: New file.
3424 * fbsd-tdep.h: New file.
3425 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3426 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3427 (ALLDEPFILES): Add fbsd-tdep.c.
3429 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3431 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3433 * gdbarch.h: Regenerate.
3434 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3436 (get_core_register_section): Add parameter 'regset' and use it, if
3437 set. Add parameter 'min_size' and verify the bfd section size
3439 (get_core_registers_cb): Add parameter 'regset' and pass it to
3440 get_core_register section. For the "standard" register sections
3441 ".reg" and ".reg2", set an appropriate default for human_name.
3442 (get_core_registers): Don't abort when the gdbarch has an iterator
3443 but no regset_from_core_section. Add NULL/0 for parameters
3444 'regset'/'min_size' in calls to get_core_register_section.
3445 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3446 'regset' and use it instead of calling the
3447 regset_from_core_section gdbarch method.
3448 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3449 * i386-tdep.c (i386_supply_xstateregset)
3450 (i386_collect_xstateregset, i386_xstateregset): Moved to
3452 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3454 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3455 core file support only if the regset iterator hasn't been set.
3456 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3457 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3458 Moved from i386-tdep.c and renamed to *_linux*.
3459 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3460 each callback invocation. Allow any .reg-xstate size when reading
3462 * amd64-tdep.c (amd64_supply_xstateregset)
3463 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3465 (amd64_regset_from_core_section): Remove.
3466 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3467 install an amd64-specific regset_from_core_section gdbarch method.
3468 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3469 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3470 Moved from amd64-tdep.c and renamed to *_linux*.
3471 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3472 to each callback invocation. Allow any .reg-xstate size when
3473 reading from a core file.
3474 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3475 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3476 each callback invocation.
3477 (arm_linux_init_abi): No longer set the regset_from_core_section
3479 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3480 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3481 each callback invocation.
3482 (ppc_linux_init_abi): No longer set the regset_from_core_section
3484 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3485 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3486 (s390_regset_from_core_section): Remove.
3487 (s390_iterate_over_regset_sections): Add regset parameter to each
3488 callback invocation.
3489 (s390_gdbarch_init): No longer set the regset_from_core_section
3490 gdbarch method. Drop initialization of deleted tdep fields.
3492 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3494 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3495 (amd64_linux_iterate_over_regset_sections): New.
3496 (amd64_linux_init_abi_common): Don't install the regset section
3497 list, but the new iterator in gdbarch.
3498 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3499 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3500 (arm_linux_iterate_over_regset_sections): ...here. New function.
3501 (arm_linux_init_abi): Set iterator instead of section list.
3502 * corelow.c (get_core_registers_cb): New function, logic moved
3504 (get_core_registers): ...loop body here. Use new iterator method
3505 instead of walking through the regset section list.
3506 * gdbarch.sh: Remove 'core_regset_sections'. New method
3507 'iterate_over_regset_sections'. New typedef
3508 'iterate_over_regset_sections_cb'.
3509 * gdbarch.c: Regenerate.
3510 * gdbarch.h: Likewise.
3511 * i386-linux-tdep.c (i386_linux_regset_sections)
3512 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3514 (i386_linux_iterate_over_regset_sections): New.
3515 (i386_linux_init_abi): Don't choose a regset section list, but
3516 install new iterator in gdbarch.
3517 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3518 (linux_collect_regset_section_cb): New function, logic moved
3520 (linux_collect_thread_registers): ...loop body here. Use iterator
3521 method instead of walking through list.
3522 (linux_make_corefile_notes_1): Check for presence of iterator
3523 method instead of regset section list.
3524 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3525 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3526 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3527 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3528 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3529 (ppc_linux_init_abi): Don't choose from above regset section
3530 lists, but install new iterator in gdbarch.
3531 * regset.h (struct core_regset_section): Remove.
3532 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3533 have_linux_v1, have_linux_v2, and have_tdb.
3534 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3535 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3536 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3537 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3538 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3539 (s390_iterate_over_regset_sections): ...here. New function. Use
3541 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3542 regset section lists, but install new iterator.
3544 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3546 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3548 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3550 * progspace.c (print_program_space): Don't prune program spaces
3551 before printing them.
3553 2014-09-25 Pedro Alves <palves@redhat.com>
3555 * infrun.c (user_visible_resume_ptid): Don't check
3556 singlestep_breakpoints_inserted_p.
3558 2014-09-25 Pedro Alves <palves@redhat.com>
3560 * breakpoint.c (should_be_inserted): Add debug output.
3562 2014-09-25 Pedro Alves <palves@redhat.com>
3564 * infrun.c (stepping_past_instruction_at)
3565 (clear_exit_convenience_vars): Point at infrun.h instead of
3567 (handle_signal_stop): Fix typo.
3569 2014-09-24 Yao Qi <yao@codesourcery.com>
3571 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3574 2014-09-22 Gary Benson <gbenson@redhat.com>
3576 * target.c (target_stop): Updated comment.
3578 2014-09-22 Gary Benson <gbenson@redhat.com>
3580 * target/target.h (target_stop_ptid): Renamed as...
3581 (target_stop_and_wait): New function. Updated comment.
3583 (target_continue_ptid): Renamed as...
3584 (target_continue_no_signal): New function. Updated comment.
3587 2014-09-22 Pedro Alves <palves@redhat.com>
3589 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3591 * breakpoint.c (enum ugll_insert_mode): New enum.
3592 (always_inserted_mode): Now a plain boolean.
3593 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3594 (breakpoints_always_inserted_mode): Delete.
3595 (breakpoints_should_be_inserted_now): New function.
3596 (insert_breakpoints): Pass UGLL_INSERT to
3597 update_global_location_list instead of calling
3598 insert_breakpoint_locations manually.
3599 (create_solib_event_breakpoint_1): New, factored out from ...
3600 (create_solib_event_breakpoint): ... this.
3601 (create_and_insert_solib_event_breakpoint): Use
3602 create_solib_event_breakpoint_1 instead of calling
3603 insert_breakpoint_locations manually.
3604 (update_global_location_list): Change parameter type from boolean
3605 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3606 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3607 (update_global_location_list_nothrow): Change parameter type from
3608 boolean to enum ugll_insert_mode.
3609 (_initialize_breakpoint): "breakpoint always-inserted" option is
3610 now a boolean command. Update help text.
3611 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3612 (breakpoints_should_be_inserted_now): New declaration.
3613 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3614 Remove breakpoints_always_inserted_mode check.
3615 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3616 * remote.c (remote_start_remote): Likewise.
3618 2014-09-22 Pedro Alves <palves@redhat.com>
3620 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3621 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3622 Instead, pass UGLL_INSERT to update_global_location_list.
3623 (update_global_location_list): Change parameter type from boolean
3624 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3625 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3626 (create_solib_event_breakpoint_1): New, factored out from ...
3627 (create_solib_event_breakpoint): ... this.
3628 (create_and_insert_solib_event_breakpoint): Use
3629 create_solib_event_breakpoint_1 instead of calling
3630 insert_breakpoint_locations manually.
3631 (update_global_location_list): Handle UGLL_INSERT.
3633 2014-09-22 Pedro Alves <palves@redhat.com>
3635 * breakpoint.c (enum ugll_insert_mode): New enum.
3636 (update_global_location_list)
3637 (update_global_location_list_nothrow): Change parameter type from
3638 boolean to enum ugll_insert_mode. All callers adjusted.
3640 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3642 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3643 SystemTap support in GDB.
3645 2014-09-19 Don Breazeal <donb@codesourcery.com>
3647 * linux-nat.c (linux_handle_extended_wait): Call
3648 linux_ptrace_get_extended_event.
3649 (wait_lwp): Call linux_is_extended_waitstatus.
3650 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3651 and linux_is_extended_waitstatus.
3652 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3653 linux_ptrace_get_extended_event.
3654 (linux_ptrace_get_extended_event): New function.
3655 (linux_is_extended_waitstatus): New function.
3656 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3657 (linux_is_extended_waitstatus): New declarations.
3659 2014-09-19 Yao Qi <yao@codesourcery.com>
3661 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3662 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3663 comments. Callers update.
3664 (dwarf_decode_lines): Likewise.
3665 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3666 comments. Skip the line table if 'lowpc' is greater than
3667 'address'. Don't check
3668 dwarf2_per_objfile->has_section_at_zero.
3670 2014-09-18 Doug Evans <dje@google.com>
3672 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3673 * python/py-symtab.c (stpy_get_producer): New function.
3674 (symtab_object_getset): Add "producer" attribute.
3676 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
3679 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3680 (do_captured_read_memory_integer): Remove.
3681 (safe_read_memory_integer): Use target_read_memory directly instead
3682 of catching errors in do_captured_read_memory_integer.
3684 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3686 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3689 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3691 * objc-lang.c (find_implementation_from_class): Remove dead code.
3693 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3696 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3697 "fprintf_unfiltered (gdb_stdlog...)".
3699 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3701 PR breakpoints/12526
3702 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3704 * breakpoint.c (watch_command_1): Use these fields to retain
3705 bitfield information.
3706 (extract_bitfield_from_watchpoint_value): New function.
3707 (watchpoint_check): Use it.
3708 (update_watchpoint): Use it. Optimize the address and length of a
3709 HW watchpoint pointing to a bitfield.
3710 * value.h (unpack_value_bitfield): New prototype.
3711 * value.c (unpack_value_bitfield): Make extern.
3713 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3715 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3717 * gnu-nat.c (inf_threads): New function.
3718 * gnu-nat.h (inf_threads_ftype): New typedef.
3719 (inf_threads): New declaration.
3720 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3721 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3722 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3723 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3724 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3725 (i386_gnu_dr_get_control): New functions.
3726 (reg_addr): New structure.
3727 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3728 i386 debugging register hooks.
3729 * NEWS: Mention this.
3731 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3733 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3734 vector data transfer instructions.
3735 (arm_record_coproc_data_proc): Updated.
3737 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3739 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3740 arm_record_exreg_ld_st_insn.
3741 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3744 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3746 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3747 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3748 processing instructions.
3750 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3752 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3753 for advance SIMD struct ld/st insn.
3754 (thumb2_record_decode_insn_handler): Replace stub handler with
3755 thumb2_record_asimd_struct_ld_st.
3757 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3759 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3760 for asimd, vfp and coprocessor insns.
3761 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3762 and coprocessor insns.
3763 (thumb2_record_coproc_insn): New function.
3764 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3766 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3769 2014-09-13 Doug Evans <xdje42@gmail.com>
3771 * NEWS: Mention new "queue-signal" command.
3772 * infcmd.c (queue_signal_command): New function.
3773 (_initialize_infcmd): Add new queue-signal command.
3775 2014-09-13 Doug Evans <xdje42@gmail.com>
3777 * linux-nat.c (wait_lwp): Add debugging printf.
3778 (linux_nat_wait_1): Ditto.
3780 2014-09-12 Pedro Alves <palves@redhat.com>
3782 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3783 (create_and_insert_solib_event_breakpoint): New functions.
3784 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3785 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3786 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3787 (remove_dbx_link_breakpoint): Delete function.
3788 (insert_dbx_link_bpt_in_file): Use
3789 create_and_insert_solib_event_breakpoint instead of
3790 deprecated_insert_raw_breakpoint.
3791 (procfs_wait): Don't check whether we hit __dbx_link here.
3792 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3794 * solib-irix.c (base_breakpoint): Delete global.
3795 (disable_break): Delete function.
3796 (enable_break): Use create_solib_event_breakpoint
3797 instead of deprecated_insert_raw_breakpoint.
3798 (irix_solib_handle_event): New function.
3799 (irix_solib_create_inferior_hook): Don't run the target or disable
3800 the mapping-complete breakpoint here.
3801 (_initialize_irix_solib): Install irix_solib_handle_event as
3802 so_ops->handle_event hook.
3804 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3805 Ulrich Weigand <uweigand@de.ibm.com>
3808 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3809 instead of read_memory_unsigned_integer.
3811 2014-09-12 Gary Benson <gbenson@redhat.com>
3813 * nat/linux-waitpid.c: Include common-defs.h.
3814 [GDBSERVER]: Add FIXME comment.
3815 [!GDBSERVER]: Don't include defs.h or signal.h.
3816 (linux_debug) [!GDBSERVER]: Remove empty block.
3818 2014-09-12 Gary Benson <gbenson@redhat.com>
3820 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3821 Don't include defs.h or server.h.
3823 2014-09-12 Gary Benson <gbenson@redhat.com>
3825 * nat/linux-btrace.c: Include common-defs.h.
3826 Don't include defs.h, server.h or gdbthread.h.
3827 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3829 2014-09-12 Gary Benson <gbenson@redhat.com>
3831 * common/agent.c: Include common-defs.h.
3832 Don't include defs.h or server.h.
3833 * common/buffer.c: Likewise.
3834 * common/common-debug.c: Likewise.
3835 * common/common-utils.c: Likewise.
3836 * common/errors.c: Likewise.
3837 * common/filestuff.c: Likewise.
3838 * common/format.c: Likewise.
3839 * common/gdb_vecs.c: Likewise.
3840 * common/print-utils.c: Likewise.
3841 * common/ptid.c: Likewise.
3842 * common/rsp-low.c: Likewise.
3843 * common/signals.c: Likewise.
3844 * common/vec.c: Likewise.
3845 * common/xml-utils.c: Likewise.
3846 * nat/linux-osdata.c: Likewise.
3847 * nat/linux-procfs.c: Likewise.
3848 * nat/linux-ptrace.c: Likewise.
3849 * nat/mips-linux-watch.c: Likewise.
3850 * target/waitstatus.c: Likewise.
3852 2014-09-12 Tom Tromey <tromey@redhat.com>
3853 Gary Benson <gbenson@redhat.com>
3855 * common/common-regcache.h: New file.
3856 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3857 * regcache.h: Include common-regcache.h.
3858 (regcache_read_pc): Don't declare.
3859 * regcache.c (get_thread_regcache_for_ptid): New function.
3860 * nat/linux-btrace.c: Don't include regcache.h.
3861 Include common-regcache.h.
3862 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3864 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3866 * regcache.h (struct regset): Declare.
3868 2014-09-11 Pedro Alves <palves@redhat.com>
3871 * main.c: Include "infrun.h".
3872 (catch_command_errors, catch_command_errors_const): Wait for the
3873 foreground command to complete.
3874 * top.c (maybe_wait_sync_command_done): New function, factored out
3876 (maybe_wait_sync_command_done): ... here.
3877 * top.h (maybe_wait_sync_command_done): New declaration.
3879 2014-09-11 Tom Tromey <tromey@redhat.com>
3880 Gary Benson <gbenson@redhat.com>
3882 * common/symbol.h: New file.
3883 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3884 * minsyms.c (find_minimal_symbol_address): New function.
3885 * common/agent.c: Include common/symbol.h.
3886 [!GDBSERVER]: Don't include objfiles.h.
3887 (agent_look_up_symbols): Use find_minimal_symbol_address.
3889 2014-09-11 Gary Benson <gbenson@redhat.com>
3891 * target/target.h (target_stop_ptid, target_continue_ptid):
3893 * target.c (target_stop_ptid, target_continue_ptid): New
3895 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3896 (agent_run_command): Always use target_stop_ptid and
3897 target_continue_ptid.
3899 2014-09-11 Tom Tromey <tromey@redhat.com>
3900 Gary Benson <gbenson@redhat.com>
3902 * target/target.h: New file.
3903 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3904 * target.h: Include target/target.h.
3905 (target_read_memory, target_write_memory): Don't declare.
3906 * target.c (target_read_uint32): New function.
3907 * common/agent.c: Include target/target.h.
3908 [!GDBSERVER]: Don't include target.h.
3909 (helper_thread_id): Type changed to uint32_t.
3910 (agent_get_helper_thread_id): Use target_read_uint32.
3911 (agent_run_command): Always use target_read_memory and
3912 target_write_memory.
3913 (agent_capability): Type changed to uint32_t.
3914 (agent_capability_check): Use target_read_uint32.
3916 2014-09-11 Gary Benson <gbenson@redhat.com>
3918 * common/common-debug.h (show_debug_regs): Declare.
3919 * common/common-debug.c (show_debug_regs): Define.
3920 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3921 all uses with show_debug_regs. Replace all uses that considered
3922 debug_hw_points as a multi-value integer with straight boolean
3924 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3925 with show_debug_regs.
3926 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3927 all uses with show_debug_regs.
3928 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3929 uses with show_debug_regs.
3931 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3933 * findvar.c (address_from_register): Handle targets requiring
3934 a special conversion routine even for plain pointer types.
3936 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3938 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3939 (store_register): Do not call exec_one_dummy_insn.
3941 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3943 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3944 dereference it first. Use value_enclosing_type instead of
3946 (ada_array_length): Likewise.
3948 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3950 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3951 Adjust function implementation and documentation accordingly.
3952 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3953 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3954 Update call to ada_value_ptr_subscript.
3956 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3958 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3959 instead of VAL's type.
3961 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3963 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3965 2014-09-09 Doug Evans <xdje42@gmail.com>
3968 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3969 last parameter to pkg-config, not first.
3970 * configure.ac: Pass --with-guile provided pkg-config path to
3971 GDB_GUILE_PROGRAM_NAMES.
3972 * configure: Regenerate.
3974 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3976 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3979 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3981 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3982 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3983 the list of sections determining GDB_OSABI_IRIX.
3985 2014-09-09 James Hogan <james.hogan@imgtec.com>
3987 * MAINTAINERS (Write After Approval): Add "James Hogan".
3989 2014-09-09 James Hogan <james.hogan@imgtec.com>
3991 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3993 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3995 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3997 2014-09-08 Doug Evans <xdje42@gmail.com>
4000 * guile.c: #include <signal.h>.
4001 (_initialize_guile): Block SIGCHLD while initializing Guile.
4003 Replaces the following, which is reverted.
4005 2014-07-26 Doug Evans <xdje42@gmail.com>
4008 * configure.ac: Add check for header gc/gc.h.
4009 Add check for function setenv.
4010 * configure: Regenerate.
4011 * config.in: Regenerate.
4012 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4014 2014-09-08 Doug Evans <xdje42@gmail.com>
4016 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
4017 with named constant. Fix style of pointer comparison.
4018 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4020 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
4023 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4024 decide whether we display the command on "show user".
4025 * cli/cli-script.c (show_user_1): Only verify cmdlines after
4026 printing command name.
4027 * cli/cli-decode.h (cli_user_command_p): Declare new function.
4028 * cli/cli-decode.c (cli_user_command_p): Create helper function
4029 to verify whether cmd_list_element is a user-defined command.
4031 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4034 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4035 Fix goto out of TRY_CATCH.
4037 2014-09-06 Doug Evans <xdje42@gmail.com>
4038 Tom Tromey <tromey@redhat.com>
4041 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4042 $_any_caller_matches.
4043 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4044 * python/lib/gdb/function/caller_is.py: New file.
4046 2014-09-06 Doug Evans <xdje42@gmail.com>
4048 * infcmd.c (program_info): Fix typo.
4050 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
4053 * stap-probe.c (stap_parse_single_operand): Delete unused variable
4054 'number'. New variable 'has_digit'. Rewrite code to deal with
4055 subexpressions on SDT probes.
4057 2014-09-04 Pedro Alves <palves@redhat.com>
4059 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4060 the input is only one character long.
4062 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
4065 * f-valprint.c (f_val_print): Specify the correct print option to
4066 use when printing integer values.
4068 2014-09-04 Gary Benson <gbenson@redhat.com>
4070 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4071 Remove code to cope with LWPs wrapped as PIDs.
4072 Add assertions to ensure no wrapped LWPs are passed.
4074 2014-09-04 Pedro Alves <palves@redhat.com>
4076 * value.c (value_ranges_copy_adjusted): New function, factored out
4078 (value_contents_copy_raw): ... here.
4079 (unpack_value_bits_as_long_1): Rename back to ...
4080 (unpack_bits_as_long): ... this. Remove 'original_value' and
4081 'result' parameters. Change return type to LONGEST.
4082 (unpack_value_bits_as_long): Delete.
4083 (unpack_value_field_as_long_1): Delete.
4084 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4085 (unpack_value_bitfield): New function.
4086 (value_field_bitfield): Reimplement using unpack_value_bitfield.
4087 (value_fetch_lazy): Use unpack_value_bitfield.
4088 * value.h (unpack_value_bits_as_long): Delete declaration.
4090 2014-09-03 Sasha Smundak <asmundak@google.com>
4092 * python/py-frame.c (frapy_read_register): New function.
4094 2014-09-03 James Hogan <james.hogan@imgtec.com>
4096 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4097 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4099 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
4102 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4104 (add_cmd): Set "completer_handle_brkchars" to NULL.
4105 * cli/cli-decode.h (struct cmd_list_element)
4106 <completer_handle_brkchars>: New field.
4107 * command.h (completer_ftype_void): New typedef.
4108 (set_cmd_completer_handle_brkchars): New prototype.
4109 * completer.c (set_gdb_completion_word_break_characters): New
4111 (complete_line_internal): Call "completer_handle_brkchars"
4112 callback from command.
4113 * completer.h: Include "command.h".
4114 (set_gdb_completion_word_break_characters): New prototype.
4115 * python/py-cmd.c (cmdpy_completer_helper): New function.
4116 (cmdpy_completer_handle_brkchars): New function.
4117 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4118 (cmdpy_init): Set completer_handle_brkchars to
4119 cmdpy_completer_handle_brkchars.
4121 2014-09-03 Gary Benson <gbenson@redhat.com>
4123 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4124 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
4125 Loop conditions changed to equivalent form.
4126 (struct x86_debug_reg_state): Updated dr_ref_count comment.
4127 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4128 ALL_DEBUG_ADDRESS_REGISTERS.
4130 2014-09-03 Joel Brobecker <brobecker@adacore.com>
4132 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4135 2014-09-02 Doug Evans <dje@google.com>
4137 * typeprint.c (find_global_typedef): Fix comment.
4139 2014-09-02 Gary Benson <gbenson@redhat.com>
4141 * i386-nat.h: Renamed as...
4142 * x86-nat.h: New file. All type, function and variable name
4143 prefixes changed from "i386_" to "x86_". All references updated.
4144 * i386-nat.c: Renamed as...
4145 * x86-nat.c: New file. All type, function and variable name
4146 prefixes changed from "i386_" to "x86_". All references updated.
4147 * common/i386-xstate.h: Renamed as...
4148 * common/x86-xstate.h: New file. All type, function and variable
4149 name prefixes changed from "i386_" to "x86_". All references
4151 * nat/i386-cpuid.h: Renamed as...
4152 * nat/x86-cpuid.h: New file. All type, function and variable name
4153 prefixes changed from "i386_" to "x86_". All references updated.
4154 * nat/i386-gcc-cpuid.h: Renamed as...
4155 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
4156 name prefixes changed from "i386_" to "x86_". All references
4158 * nat/i386-dregs.h: Renamed as...
4159 * nat/x86-dregs.h: New file. All type, function and variable name
4160 prefixes changed from "i386_" to "x86_". All references updated.
4161 * nat/i386-dregs.c: Renamed as...
4162 * nat/x86-dregs.c: New file. All type, function and variable name
4163 prefixes changed from "i386_" to "x86_". All references updated.
4165 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
4167 * varobj.c (_initialize_varobj): Move to the end of file.
4169 2014-08-29 Gary Benson <gbenson@redhat.com>
4171 * common/common-exceptions.h: New file.
4172 * common/common-exceptions.c: Likewise.
4173 * Makefile.in (SFILES): Add common/common-exceptions.c.
4174 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4175 (COMMON_OBS): Add common-exceptions.o.
4176 (common-exceptions.o): New rule.
4177 * exceptions.h (common-exceptions.h): Include.
4178 (gdb_setjmp.h): Do not include.
4179 (return_reason): Moved to common-exceptions.h.
4180 (enum return_reason): Likewise.
4181 (RETURN_MASK): Likewise.
4182 (typedef return_mask): Likewise.
4183 (enum errors): Likewise.
4184 (struct gdb_exception): Likewise.
4185 (exceptions_state_mc_init): Likewise.
4186 (exceptions_state_mc_action_iter): Likewise.
4187 (exceptions_state_mc_action_iter_1): Likewise.
4188 (TRY_CATCH): Likewise.
4189 (throw_exception): Likewise.
4190 (throw_verror): Likewise.
4191 (throw_vquit): Likewise.
4192 (throw_error): Likewise.
4193 (throw_quit): Likewise.
4194 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4195 (enum catcher_action): Likewise.
4196 (struct catcher): Likewise.
4197 (current_catcher): Likewise.
4198 (catcher_list_size): Likewise.
4199 (exceptions_state_mc_init): Likewise.
4200 (catcher_pop): Likewise.
4201 (exceptions_state_mc): Likewise.
4202 (exceptions_state_mc_action_iter): Likewise.
4203 (exceptions_state_mc_action_iter_1): Likewise.
4204 (throw_exception): Likewise.
4205 (exception_messages): Likewise.
4206 (exception_messages_size): Likewise.
4207 (throw_it): Likewise.
4208 (throw_verror): Likewise.
4209 (throw_vquit): Likewise.
4210 (throw_error): Likewise.
4211 (throw_quit): Likewise.
4212 (prepare_to_throw_exception): New function.
4214 2014-08-29 Gary Benson <gbenson@redhat.com>
4216 * common/gdb_setjmp.h: New file.
4217 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4218 * configure.ac: Move sigsetjmp check...
4219 * common/common.m4: ...here.
4220 * configure: Regenerate.
4221 * cp-support.c (SIGJMP_BUF): Delete.
4222 (SIGSETJMP): Likewise.
4223 (SIGLONGJMP): Likewise.
4224 * exceptions.h (gdb_setjmp.h): Include.
4225 (setjmp.h): Do not include.
4226 (EXCEPTIONS_SIGJMP_BUF): Delete.
4227 (EXCEPTIONS_SIGSETJMP): Likewise.
4228 (EXCEPTIONS_SIGLONGJMP): Likewise.
4229 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4231 * exceptions.c: Likewise.
4233 2014-08-29 Gary Benson <gbenson@redhat.com>
4235 * cleanups.h: Moved to...
4236 * common/cleanups.h: New file.
4237 * cleanups.c: Moved to...
4238 * common/cleanups.c: New file. Include common-defs.h and
4239 cleanups.h. Do not include defs.h.
4240 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4241 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4242 (cleanups.o): New rule.
4244 2014-08-29 Gary Benson <gbenson@redhat.com>
4246 * common/errors.h (internal_warning): New declaration.
4247 (internal_vwarning): Likewise.
4248 * common/errors.c (internal_warning): New function.
4249 * utils.h (internal_warning): Don't declare.
4250 (internal_vwarning): Likewise.
4251 * utils.c (internal_warning): Removed.
4253 2014-08-29 Gary Benson <gbenson@redhat.com>
4255 * main.c (captured_main): Use warning during startup.
4256 Prefix startup warning messages with command name.
4258 2014-08-29 Gary Benson <gbenson@redhat.com>
4260 * main.c (captured_main): Handle usage errors with error.
4262 2014-08-29 Gary Benson <gbenson@redhat.com>
4264 * go32-nat.c (go32_create_inferior): Replace a fprintf/
4265 exit pair with a call to error. Wrap the message with _().
4267 2014-08-29 Gary Benson <gbenson@redhat.com>
4269 * main.c (captured_main): Replace a fprintf/exit
4270 pair with a call to error. Wrap the message with _().
4272 2014-08-29 Gary Benson <gbenson@redhat.com>
4274 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4275 pairs with calls to error. Wrap the message with _().
4277 2014-08-29 Gary Benson <gbenson@redhat.com>
4279 * utils.c (vwarning): Protect calls to target_terminal_ours
4282 2014-08-29 Gary Benson <gbenson@redhat.com>
4284 * exceptions.c (print_flush): Protect calls to
4285 target_terminal_ours and wrap_here.
4287 2014-08-29 Gary Benson <gbenson@redhat.com>
4289 * utils.h (filtered_printing_initialized): New declaration.
4290 * utils.c (abort_with_message): New function.
4291 (internal_vproblem): Use abort_with_message for first level
4292 recursive internal problems, and if gdb_stderr is not set up.
4293 Protect calls to target_terminal_ours, begin_line and query.
4295 2014-08-28 Doug Evans <dje@google.com>
4297 * symtab.c (in_prologue): Move definition to better spot.
4298 (skip_prologue_using_sal): Ditto.
4300 2014-08-28 Doug Evans <dje@google.com>
4302 * symtab.c (find_function_start_sal): Move definition to better spot.
4304 2014-08-28 Yao Qi <yao@codesourcery.com>
4306 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4307 found_stack_adjust in forward scan. Remove condition check
4308 on found_stack_adjust which is always true. Indent the code.
4310 2014-08-28 Yao Qi <yao@codesourcery.com>
4312 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4313 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4314 (dwarf_decode_lines): Remove argument
4315 want_line_info. Remove condition check on want_line_info.
4318 2014-08-27 Doug Evans <dje@google.com>
4320 * dwarf2read.c (dwarf_record_line): Fix typo.
4322 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
4324 * target.h (struct target_ops::to_terminal_save_ours): Remove
4326 (target_terminal_save_ours): Remove macro.
4327 * target-delegates.c: Regenerate.
4328 * inf-child.c (inf_child_target): Don't set the nonexistent
4329 field to_terminal_save_ours.
4330 * inferior.h (child_terminal_save_ours): Remove declaration.
4331 * terminal.h (gdb_save_tty_state): New declaration.
4332 * inflow.c (child_terminal_save_ours): Rename to ...
4333 (gdb_save_tty_state): ... this.
4334 * tui/tui.c: Include terminal.h.
4335 (tui_enable): Use gdb_save_tty_state instead of
4336 target_terminal_save_ours.
4337 (tui_disable): Likewise.
4339 2014-08-25 Doug Evans <dje@google.com>
4341 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4342 Pass NULL instead of 0 for context pointer.
4344 2014-08-25 Yao Qi <yao@codesourcery.com>
4346 * dwarf2read.c: Fix grammatical error.
4348 2014-08-24 Yao Qi <yao@codesourcery.com>
4350 * dwarf2read.c (scan_partial_symbols): Update comments.
4351 Rename argument 'need_pc' with 'set_addrmap'.
4352 (add_partial_namespace): Rename argument 'need_pc' with
4354 (add_partial_module): Likewise.
4355 (add_partial_subprogram): Likewise. Update comments.
4356 (dwarf2_name): Fix typo.
4358 2014-08-22 Doug Evans <dje@google.com>
4361 * dwarf2read.c (dwarf_record_line_p): New function.
4362 (dwarf_decode_lines_1): Ignore subsequent line number entries
4363 for the same line if any entry had a non-zero discriminator.
4365 2014-08-22 Doug Evans <dje@google.com>
4367 * buildsym.h (record_line_ftype): New typedef.
4368 (record_line): Use it.
4369 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4370 (dwarf_decode_lines_1): Call them.
4372 2014-08-22 Yao Qi <yao@codesourcery.com>
4374 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4375 (ctf_end): Remove code.
4377 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4379 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4380 (linux_make_corefile_notes): call update_thread_list, protected against
4383 2014-08-21 Pedro Alves <palves@redhat.com>
4385 * infcmd.c (attach_command): Remove comment.
4387 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4389 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4390 unsigned LONGEST to ULONGEST.
4392 2014-08-20 Pedro Alves <palves@redhat.com>
4394 * Makefile.in (check-read1): New rule.
4396 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4398 * value.c (value_from_contents_and_address): Strip resolved_type's
4399 typedef layers before checking its TYPE_DATA_LOCATION.
4401 2014-08-20 Pedro Alves <palves@redhat.com>
4403 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4405 2014-08-20 Yao Qi <yao@codesourcery.com>
4407 * amd64-tdep.c (amd64_classify): Add a blank line after the
4408 example. Move "*/" to a new line.
4409 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4410 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4411 * dwarf2read.c (psymtab_include_file_name): Likewise.
4413 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4414 Pedro Alves <palves@redhat.com>
4418 * ada-lang.c (coerce_unspec_val_to_type): Use
4419 value_contents_copy_raw.
4420 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4421 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4422 * cp-valprint.c (cp_print_value_fields): Let the common printing
4423 code handle optimized out values.
4424 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4425 * d-valprint.c (dynamic_array_type): Use
4426 value_bits_any_optimized_out.
4427 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4428 check_any_valid fields.
4429 (check_pieced_value_bits): Delete and inline ...
4430 (check_pieced_synthetic_pointer): ... here.
4431 (check_pieced_value_validity): Delete.
4432 (check_pieced_value_invalid): Delete.
4433 (pieced_value_funcs): Remove check_validity and check_any_valid
4435 (read_pieced_value): Use mark_value_bits_optimized_out.
4436 (write_pieced_value): Switch to use
4437 mark_value_bytes_optimized_out.
4438 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4439 of assuming the whole value is optimized out.
4440 * findvar.c (read_frame_register_value): Remove special handling
4441 of optimized out registers.
4442 (value_from_register): Use mark_value_bytes_optimized_out.
4443 * frame-unwind.c (frame_unwind_got_optimized): Use
4444 mark_value_bytes_optimized_out.
4445 * jv-valprint.c (java_value_print): Adjust.
4446 (java_print_value_fields): Let the common printing code handle
4447 optimized out values.
4448 * mips-tdep.c (mips_print_register): Remove special handling of
4449 optimized out registers.
4450 * opencl-lang.c (lval_func_check_validity): Delete.
4451 (lval_func_check_any_valid): Delete.
4452 (opencl_value_funcs): Remove check_validity and check_any_valid
4454 * p-valprint.c (pascal_object_print_value_fields): Let the common
4455 printing code handle optimized out values.
4456 * stack.c (read_frame_arg): Remove special handling of optimized
4457 out values. Fetch both VAL and ENTRYVAL before comparing
4458 contents. Adjust to value_available_contents_eq rename.
4459 * valprint.c (valprint_check_validity)
4460 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4461 (val_print_array_elements): Adjust.
4462 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4463 (value_bits_any_optimized_out): New function.
4464 (value_entirely_covered_by_range_vector): New function, factored
4465 out from value_entirely_unavailable.
4466 (value_entirely_unavailable): Reimplement.
4467 (value_entirely_optimized_out): New function.
4468 (insert_into_bit_range_vector): New function, factored out from
4469 mark_value_bits_unavailable.
4470 (mark_value_bits_unavailable): Reimplement.
4471 (struct ranges_and_idx): New struct.
4472 (find_first_range_overlap_and_match): New function, factored out
4473 from value_available_contents_bits_eq.
4474 (value_available_contents_bits_eq): Rename to ...
4475 (value_contents_bits_eq): ... this. Check both unavailable
4476 contents and optimized out contents.
4477 (value_available_contents_eq): Rename to ...
4478 (value_contents_eq): ... this.
4479 (allocate_value_lazy): Remove reference to the old optimized_out
4481 (allocate_optimized_out_value): Use
4482 mark_value_bytes_optimized_out.
4483 (require_not_optimized_out): Adjust to check whether the
4484 optimized_out vec is empty.
4485 (ranges_copy_adjusted): New function, factored out from
4486 value_contents_copy_raw.
4487 (value_contents_copy_raw): Also copy the optimized out ranges.
4488 Assert the destination ranges aren't optimized out.
4489 (value_contents_copy): Update comment, remove call to
4490 require_not_optimized_out.
4491 (value_contents_equal): Adjust to check whether the optimized_out
4493 (set_value_optimized_out, value_optimized_out_const): Delete.
4494 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4496 (value_entirely_optimized_out, value_bits_valid): Delete.
4497 (value_copy): Take a VEC copy of the 'optimized_out' field.
4498 (value_primitive_field): Remove special handling of optimized out.
4499 (value_fetch_lazy): Assert that lazy values have no unavailable
4500 regions. Use value_bits_any_optimized_out. Remove some special
4501 handling for optimized out values.
4502 * value.h: Add intro comment about <optimized out> and
4504 (struct lval_funcs): Remove check_validity and check_any_valid
4506 (set_value_optimized_out, value_optimized_out_const): Remove.
4507 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4509 (value_bits_any_optimized_out): New declaration.
4510 (value_bits_valid): Delete declaration.
4511 (value_available_contents_eq): Rename to ...
4512 (value_contents_eq): ... this, and extend comments.
4514 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4516 Fix -fsanitize=address on unreadable inferior strings.
4517 * valprint.c (val_print_string): Fix access before BUFFER.
4519 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4521 * target.c (target_struct_size): Remove.
4522 (target_struct_allocsize): Remove.
4523 (DEFAULT_ALLOCSIZE): Remove.
4524 (target_ops_p): New typedef.
4525 (DEF_VEC_P (target_ops_p)): New vector type.
4526 (target_structs): Change type to VEC (target_ops_p).
4527 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4528 (find_default_run_target): Rewrite for loop following changes to
4531 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4533 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4534 Adjust code accordingly. Adjust function description comment.
4536 2014-08-19 Yao Qi <yao@codesourcery.com>
4538 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4541 2014-08-19 Alan Modra <amodra@gmail.com>
4543 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4544 * config.in: Regenerate.
4545 * configure: Regenerate.
4547 2014-08-19 Tom Tromey <tromey@redhat.com>
4548 Gary Benson <gbenson@redhat.com>
4550 * common/common-debug.h: New file.
4551 * common/common-debug.c: Likewise.
4552 * debug.c: Likewise.
4553 * Makefile.in (SFILES): Add common/common-debug.c.
4554 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4555 (COMMON_OBS): Add common-debug.o and debug.o.
4556 (common-debug.o): New rule.
4557 * common/common-defs.h: Include common-debug.h.
4558 * common/agent.c (debug_agent_printf): New function.
4559 (DEBUG_AGENT): Redefine.
4560 * nat/i386-dregs.c (debug_printf): Undefine.
4562 2014-08-19 Gary Benson <gbenson@redhat.com>
4564 * common/common-defs.h: Include print-utils.h.
4565 * utils.h: Do not include print-utils.h.
4567 2014-08-19 Tom Tromey <tromey@redhat.com>
4568 Gary Benson <gbenson@redhat.com>
4570 * common/common-types.h: New file.
4571 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4572 * common/common-defs.h: Include common-types.h.
4573 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4576 2014-08-19 Tom Tromey <tromey@redhat.com>
4577 Gary Benson <gbenson@redhat.com>
4579 * common/errors.h: New file.
4580 * common/errors.c: Likewise.
4581 * Makefile.in (SFILES): Add common/errors.c.
4582 (HFILES_NO_SRCDIR): Add common/errors.h.
4583 (COMMON_OBS): Add errors.o.
4584 (errors.o): New rule.
4585 * common/common-defs.h: Include errors.h.
4586 * utils.h (perror_with_name, error, verror, warning, vwarning):
4588 * common/common-utils.h: (malloc_failure, internal_error):
4591 2014-08-19 Gary Benson <gbenson@redhat.com>
4593 * utils.c (internal_vproblem): Always print the message.
4595 2014-08-18 Doug Evans <dje@google.com>
4597 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4599 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4601 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4602 Return 0 if TYPE is dynamic.
4603 (print_range): Add handling of dynamic ranges.
4605 2014-08-18 Keven Boell <keven.boell@intel.com>
4606 Joel Brobecker <brobecker@adacore.com>
4608 * gdbtypes.h (struct main_type): Add field "data_location".
4609 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4610 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4611 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4612 a dynamic data location.
4613 (resolve_dynamic_type): Add DW_AT_data_location handling.
4614 (copy_recursive, copy_type): Copy the data_location information
4616 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4617 * value.c (value_from_contents_and_address): Add
4618 DW_AT_data_location handling.
4620 2014-08-18 Keven Boell <keven.boell@intel.com>
4621 Joel Brobecker <brobecker@adacore.com>
4623 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4624 field "get_object_address".
4625 * dwarf2expr.c (execute_stack_op): Add handling for
4626 DW_OP_push_object_address.
4627 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4628 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4629 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4630 (dwarf_expr_get_obj_addr): New function.
4631 (dwarf_expr_ctx_funcs): Add get_object_address field.
4632 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4633 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4634 (dwarf2_evaluate_property): Add parameter "address". Use it.
4635 (needs_get_obj_addr): New function.
4636 (needs_frame_ctx_funcs): Add get_object_address field.
4637 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4638 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4639 (resolve_dynamic_array): Likewise.
4641 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4643 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4644 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4645 fixed value for records and unions for which some GNAT encodings
4648 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4650 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4651 rewrite to avoid "else if" and "else" constructs. Should be
4652 a no-op in practice.
4654 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4656 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4659 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4662 * eval.c: Update all calls to find_overload_match.
4663 * valarith.c: Likewise.
4664 (value_user_defined_cpp_op, value_user_defined_op): New
4665 argument NOSIDE. Update all callers.
4666 * valops.c (find_overload_match): New argument NOSIDE.
4667 * value.h (find_overload_match): Update signature.
4669 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4671 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4672 'items' methods instead of 'iteritems' method on dictionaries.
4674 2014-08-15 Doug Evans <dje@google.com>
4676 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4679 2014-08-15 Doug Evans <dje@google.com>
4681 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4683 2014-08-15 Doug Evans <dje@google.com>
4685 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4687 2014-08-15 Doug Evans <dje@google.com>
4689 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4692 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4694 * dcache.h: Include target.h, to avoid compile time warnings.
4696 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4698 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4699 frame_info" partial declaration.
4700 * gdbarch.h: Regenerate.
4702 2014-08-15 Yao Qi <yao@codesourcery.com>
4704 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4705 Add parameter 'decode_for_pst_p'. Callers update.
4707 2014-08-13 Yao Qi <yao@codesourcery.com>
4710 * configure.ac: Use local variable 'pos'.
4711 * configure: Regenerated.
4713 2014-08-11 Doug Evans <dje@google.com>
4715 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4716 message, it is redundant with "Reading symbols from ..." message.
4718 2014-08-10 Doug Evans <xdje42@gmail.com>
4720 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4722 2014-08-09 Yao Qi <yao@codesourcery.com>
4725 * remote.c (remote_xfer_partial): Remove dead code.
4727 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4729 * ia64-linux-tdep.c: Include "regset.h".
4730 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4731 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4732 (ia64_linux_supply_fpregset): New function.
4733 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4734 (ia64_linux_regset_from_core_section): New function.
4735 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4738 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4740 * m68klinux-tdep.c: Include "regset.h".
4741 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4742 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4743 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4744 (m68k_linux_regset_from_core_section): New function.
4745 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4748 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4751 function. Move logic to...
4752 (tilegx_linux_regmap): ... this new register map.
4753 (tilegx_linux_regset): Refer to register map, replace supply
4754 method by regcache_supply_regset, and add collect method.
4755 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4756 TILEGX_FIRST_EASY_REGNUM.
4758 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4760 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4761 that calls regcache_supply_regset and handles the EPC register
4762 separately. Move main logic to...
4763 (score7_linux_gregmap): ... this new register map.
4764 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4765 (score7_linux_gregset): Refer to register map. Add collect method.
4766 (score7_linux_regset_from_core_section): Replace
4767 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4768 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4769 (struct regset): Delete unused forward declaraction.
4770 (struct pt_regs): Delete structure definition.
4771 (elf_gregset_t): Delete typedef.
4773 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4775 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4776 (nios2_core_regset): Add collect method.
4778 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4780 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4781 platform-independent and don't write to read-only input buffer.
4782 (m32r_linux_collect_gregset): New function.
4783 (m32r_linux_gregset): Add collect method.
4785 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4787 * hppa-linux-tdep.c (greg_map): Rename to...
4788 (hppa_linux_gregmap): ... this. Also convert to
4789 regcache_map_entry format.
4790 (hppa_linux_supply_regset): Delete function.
4791 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4792 (hppa_linux_fpregmap): ... this new register map.
4793 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4794 register map, replace supply method by regcache_supply_regset, and
4795 add collect method regcache_collect_regset.
4797 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4799 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4800 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4801 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4802 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4803 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4804 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4805 (frv_linux_supply_gregset): Replace main logic by call to
4806 regcache_supply_regset, but keep clearing gr32-gr63.
4807 (frv_linux_supply_fpregset): Delete function.
4808 (frv_linux_gregset): Refer to appropriate register map and add
4809 regcache_collect_regset as the collect method.
4810 (frv_linux_fpregset): Likewise. Also exchange the supply method
4811 by regcache_supply_regset.
4813 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4815 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4816 by call to alpha_supply_int_regs.
4817 (alpha_linux_collect_gregset): New function.
4818 (alpha_linux_supply_fpregset): Replace logic by call to
4819 alpha_supply_fp_regs.
4820 (alpha_linux_collect_fpregset): New function.
4821 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4823 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4825 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4826 by call to regcache_collect_regset.
4827 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4828 instead of aarch64_linux_supply_gregset/_fpregset.
4829 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4830 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4831 header file instead.
4832 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4833 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4834 functions. Move logic to ...
4835 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4837 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4838 refer to new register maps, replace *_regset_from_core by
4839 regcache_supply_regset, and also use regcache_collect_regset.
4840 * aarch64-linux-tdep.h: Include "regset.h".
4841 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4843 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4844 macros, moved from C source file.
4845 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4846 variable declarations.
4848 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4850 * s390-linux-nat.c: Include "regset.h".
4851 (regmap_gregset): Delete macro.
4852 (s390_64_regmap_gregset): New register map for
4853 regcache_supply/_collect_regset.
4854 (s390_64_gregset): New regset.
4855 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4856 (regmap_fpregset): Delete macro.
4857 (s390_native_supply, s390_native_collect): Delete functions.
4858 (supply_gregset, fill_gregset): Replace s390-specific regmap
4859 handling by a call to regcache_supply/_collect_regset.
4860 (supply_fpregset, fill_fpregset): Call regcache_supply/
4861 _collect_regset instead of s390_native_supply/_collect.
4862 (fetch_regset, store_regset): Likewise. Also change the last
4863 parameter to a regset instead of a regmap.
4864 (s390_linux_fetch_inferior_registers)
4865 (390_linux_store_inferior_registers): Adjust last parameter in
4866 calls to fetch_regset and store_regset.
4867 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4868 (s390_gregmap): ... this. Also make static const and convert to
4869 regcache_map_entry format.
4870 (s390x_regmap_gregset): Delete.
4871 (s390_regmap_fpregset): Rename to...
4872 (s390_fpregmap): ... this. Make static const and convert to
4873 regcache_map_entry format.
4874 (s390_regmap_upper, s390_regmap_last_break)
4875 (s390x_regmap_last_break, s390_regmap_system_call)
4876 (s390_regmap_tdb): Likewise.
4877 (s390_supply_regset, s390_collect_regset): Remove functions.
4878 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4880 (s390_gregset, s390_fpregset, s390_upper_regset)
4881 (s390_last_break_regset, s390x_last_break_regset)
4882 (s390_system_call_regset, s390_tdb_regset): Make global and
4883 replace s390_supply/_collect_regset by regcache_supply/
4885 (s390x_gregset): Delete.
4886 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4887 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4888 (s390_regmap_fpregset, s390_regmap_last_break)
4889 (s390x_regmap_last_break, s390_regmap_system_call)
4890 (s390_regmap_tdb): Delete global variable declarations.
4891 (s390_gregset, s390_fpregset, s390_last_break_regset)
4892 (s390x_last_break_regset, s390_system_call_regset)
4893 (s390_tdb_regset): New global variable declarations.
4895 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4897 * regcache.c: Include "regset.h".
4898 (regcache_transfer_regset): New local function.
4899 (regcache_supply_regset, regcache_collect_regset): New functions.
4900 * regcache.h (struct regcache_map_entry): New structure.
4901 (REGCACHE_MAP_SKIP): New enum value.
4902 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4904 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4906 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4907 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4908 (ppc_linux_collect_gregset ): Likewise.
4909 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4910 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4911 (ppc_collect_vrregset): Likewise.
4912 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4915 2014-08-07 Yao Qi <yao@codesourcery.com>
4917 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4918 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4919 * remote.c (remote_read_bytes): Likewise.
4921 2014-08-07 Yao Qi <yao@codesourcery.com>
4923 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4925 2014-08-07 Yao Qi <yao@codesourcery.com>
4928 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4929 TARGET_XFER_OK instead of 0.
4931 2014-08-07 Gary Benson <gbenson@redhat.com>
4933 * common/common-defs.h: Include errno.h.
4934 * defs.h: Do not include errno.h.
4935 * ada-typeprint.c: Likewise.
4936 * c-typeprint.c: Likewise.
4937 * core-regset.c: Likewise.
4938 * corefile.c: Likewise.
4939 * corelow.c: Likewise.
4940 * event-loop.c: Likewise.
4941 * f-typeprint.c: Likewise.
4942 * gnu-nat.c: Likewise.
4943 * go32-nat.c: Likewise.
4944 * i386gnu-nat.c: Likewise.
4945 * m2-typeprint.c: Likewise.
4946 * nat/linux-btrace.c: Likewise.
4947 * p-typeprint.c: Likewise.
4948 * procfs.c: Likewise.
4949 * remote-sim.c: Likewise.
4950 * rs6000-nat.c: Likewise.
4951 * target.c: Likewise.
4952 * typeprint.c: Likewise.
4953 * ui-file.c: Likewise.
4954 * valops.c: Likewise.
4955 * valprint.c: Likewise.
4957 2014-08-07 Gary Benson <gbenson@redhat.com>
4959 * common/common-defs.h: Include string.h.
4960 * aarch64-tdep.c: Do not include string.h.
4961 * ada-exp.y: Likewise.
4962 * ada-lang.c: Likewise.
4963 * ada-lex.l: Likewise.
4964 * ada-typeprint.c: Likewise.
4965 * ada-valprint.c: Likewise.
4966 * aix-thread.c: Likewise.
4967 * alpha-linux-tdep.c: Likewise.
4968 * alpha-mdebug-tdep.c: Likewise.
4969 * alpha-nat.c: Likewise.
4970 * alpha-osf1-tdep.c: Likewise.
4971 * alpha-tdep.c: Likewise.
4972 * alphanbsd-tdep.c: Likewise.
4973 * amd64-dicos-tdep.c: Likewise.
4974 * amd64-linux-tdep.c: Likewise.
4975 * amd64-nat.c: Likewise.
4976 * amd64-sol2-tdep.c: Likewise.
4977 * amd64fbsd-tdep.c: Likewise.
4978 * amd64obsd-tdep.c: Likewise.
4979 * arch-utils.c: Likewise.
4980 * arm-linux-nat.c: Likewise.
4981 * arm-linux-tdep.c: Likewise.
4982 * arm-tdep.c: Likewise.
4983 * arm-wince-tdep.c: Likewise.
4984 * armbsd-tdep.c: Likewise.
4985 * armnbsd-nat.c: Likewise.
4986 * armnbsd-tdep.c: Likewise.
4987 * armobsd-tdep.c: Likewise.
4988 * avr-tdep.c: Likewise.
4989 * ax-gdb.c: Likewise.
4990 * ax-general.c: Likewise.
4991 * bcache.c: Likewise.
4992 * bfin-tdep.c: Likewise.
4993 * breakpoint.c: Likewise.
4994 * build-id.c: Likewise.
4995 * buildsym.c: Likewise.
4996 * c-exp.y: Likewise.
4997 * c-lang.c: Likewise.
4998 * c-typeprint.c: Likewise.
4999 * c-valprint.c: Likewise.
5000 * charset.c: Likewise.
5001 * cli-out.c: Likewise.
5002 * cli/cli-cmds.c: Likewise.
5003 * cli/cli-decode.c: Likewise.
5004 * cli/cli-dump.c: Likewise.
5005 * cli/cli-interp.c: Likewise.
5006 * cli/cli-logging.c: Likewise.
5007 * cli/cli-script.c: Likewise.
5008 * cli/cli-setshow.c: Likewise.
5009 * cli/cli-utils.c: Likewise.
5010 * coffread.c: Likewise.
5011 * common/agent.c: Likewise.
5012 * common/buffer.c: Likewise.
5013 * common/buffer.h: Likewise.
5014 * common/common-utils.c: Likewise.
5015 * common/filestuff.c: Likewise.
5016 * common/filestuff.c: Likewise.
5017 * common/format.c: Likewise.
5018 * common/print-utils.c: Likewise.
5019 * common/rsp-low.c: Likewise.
5020 * common/signals.c: Likewise.
5021 * common/vec.h: Likewise.
5022 * common/xml-utils.c: Likewise.
5023 * core-regset.c: Likewise.
5024 * corefile.c: Likewise.
5025 * corelow.c: Likewise.
5026 * cp-abi.c: Likewise.
5027 * cp-name-parser.y: Likewise.
5028 * cp-support.c: Likewise.
5029 * cp-valprint.c: Likewise.
5030 * cris-tdep.c: Likewise.
5031 * d-exp.y: Likewise.
5032 * darwin-nat.c: Likewise.
5033 * dbxread.c: Likewise.
5034 * dcache.c: Likewise.
5035 * demangle.c: Likewise.
5036 * dicos-tdep.c: Likewise.
5037 * disasm.c: Likewise.
5038 * doublest.c: Likewise.
5039 * dsrec.c: Likewise.
5040 * dummy-frame.c: Likewise.
5041 * dwarf2-frame.c: Likewise.
5042 * dwarf2loc.c: Likewise.
5043 * dwarf2read.c: Likewise.
5044 * elfread.c: Likewise.
5045 * environ.c: Likewise.
5047 * event-loop.c: Likewise.
5048 * exceptions.c: Likewise.
5050 * expprint.c: Likewise.
5051 * f-exp.y: Likewise.
5052 * f-lang.c: Likewise.
5053 * f-typeprint.c: Likewise.
5054 * f-valprint.c: Likewise.
5055 * fbsd-nat.c: Likewise.
5056 * findcmd.c: Likewise.
5057 * findvar.c: Likewise.
5058 * fork-child.c: Likewise.
5059 * frame.c: Likewise.
5060 * frv-linux-tdep.c: Likewise.
5061 * frv-tdep.c: Likewise.
5063 * gdb_bfd.c: Likewise.
5064 * gdbarch.c: Likewise.
5065 * gdbarch.sh: Likewise.
5066 * gdbtypes.c: Likewise.
5067 * gnu-nat.c: Likewise.
5068 * gnu-v2-abi.c: Likewise.
5069 * gnu-v3-abi.c: Likewise.
5070 * go-exp.y: Likewise.
5071 * go-lang.c: Likewise.
5072 * go32-nat.c: Likewise.
5073 * guile/guile.c: Likewise.
5074 * guile/scm-auto-load.c: Likewise.
5075 * hppa-hpux-tdep.c: Likewise.
5076 * hppa-linux-nat.c: Likewise.
5077 * hppanbsd-tdep.c: Likewise.
5078 * hppaobsd-tdep.c: Likewise.
5079 * i386-cygwin-tdep.c: Likewise.
5080 * i386-dicos-tdep.c: Likewise.
5081 * i386-linux-tdep.c: Likewise.
5082 * i386-nto-tdep.c: Likewise.
5083 * i386-sol2-tdep.c: Likewise.
5084 * i386-tdep.c: Likewise.
5085 * i386bsd-tdep.c: Likewise.
5086 * i386gnu-nat.c: Likewise.
5087 * i386nbsd-tdep.c: Likewise.
5088 * i386obsd-tdep.c: Likewise.
5089 * i387-tdep.c: Likewise.
5090 * ia64-libunwind-tdep.c: Likewise.
5091 * ia64-linux-nat.c: Likewise.
5092 * inf-child.c: Likewise.
5093 * inf-ptrace.c: Likewise.
5094 * inf-ttrace.c: Likewise.
5095 * infcall.c: Likewise.
5096 * infcmd.c: Likewise.
5097 * inflow.c: Likewise.
5098 * infrun.c: Likewise.
5099 * interps.c: Likewise.
5100 * iq2000-tdep.c: Likewise.
5101 * irix5-nat.c: Likewise.
5102 * jv-exp.y: Likewise.
5103 * jv-lang.c: Likewise.
5104 * jv-typeprint.c: Likewise.
5105 * jv-valprint.c: Likewise.
5106 * language.c: Likewise.
5107 * linux-fork.c: Likewise.
5108 * linux-nat.c: Likewise.
5109 * lm32-tdep.c: Likewise.
5110 * m2-exp.y: Likewise.
5111 * m2-typeprint.c: Likewise.
5112 * m32c-tdep.c: Likewise.
5113 * m32r-linux-nat.c: Likewise.
5114 * m32r-linux-tdep.c: Likewise.
5115 * m32r-rom.c: Likewise.
5116 * m32r-tdep.c: Likewise.
5117 * m68hc11-tdep.c: Likewise.
5118 * m68k-tdep.c: Likewise.
5119 * m68kbsd-tdep.c: Likewise.
5120 * m68klinux-nat.c: Likewise.
5121 * m68klinux-tdep.c: Likewise.
5122 * m88k-tdep.c: Likewise.
5123 * machoread.c: Likewise.
5124 * macrocmd.c: Likewise.
5126 * mdebugread.c: Likewise.
5127 * mem-break.c: Likewise.
5128 * memattr.c: Likewise.
5129 * memory-map.c: Likewise.
5130 * mep-tdep.c: Likewise.
5131 * mi/mi-cmd-break.c: Likewise.
5132 * mi/mi-cmd-disas.c: Likewise.
5133 * mi/mi-cmd-env.c: Likewise.
5134 * mi/mi-cmd-stack.c: Likewise.
5135 * mi/mi-cmd-var.c: Likewise.
5136 * mi/mi-cmds.c: Likewise.
5137 * mi/mi-console.c: Likewise.
5138 * mi/mi-getopt.c: Likewise.
5139 * mi/mi-interp.c: Likewise.
5140 * mi/mi-main.c: Likewise.
5141 * mi/mi-parse.c: Likewise.
5142 * microblaze-rom.c: Likewise.
5143 * microblaze-tdep.c: Likewise.
5144 * mingw-hdep.c: Likewise.
5145 * minidebug.c: Likewise.
5146 * minsyms.c: Likewise.
5147 * mips-irix-tdep.c: Likewise.
5148 * mips-linux-tdep.c: Likewise.
5149 * mips-tdep.c: Likewise.
5150 * mips64obsd-tdep.c: Likewise.
5151 * mipsnbsd-tdep.c: Likewise.
5152 * mipsread.c: Likewise.
5153 * mn10300-linux-tdep.c: Likewise.
5154 * mn10300-tdep.c: Likewise.
5155 * monitor.c: Likewise.
5156 * moxie-tdep.c: Likewise.
5157 * mt-tdep.c: Likewise.
5158 * nat/linux-btrace.c: Likewise.
5159 * nat/linux-osdata.c: Likewise.
5160 * nat/linux-procfs.c: Likewise.
5161 * nat/linux-ptrace.c: Likewise.
5162 * nat/linux-waitpid.c: Likewise.
5163 * nbsd-tdep.c: Likewise.
5164 * nios2-linux-tdep.c: Likewise.
5165 * nto-procfs.c: Likewise.
5166 * nto-tdep.c: Likewise.
5167 * objc-lang.c: Likewise.
5168 * objfiles.c: Likewise.
5169 * opencl-lang.c: Likewise.
5170 * osabi.c: Likewise.
5171 * osdata.c: Likewise.
5172 * p-exp.y: Likewise.
5173 * p-lang.c: Likewise.
5174 * p-typeprint.c: Likewise.
5175 * parse.c: Likewise.
5176 * posix-hdep.c: Likewise.
5177 * ppc-linux-nat.c: Likewise.
5178 * ppc-sysv-tdep.c: Likewise.
5179 * ppcfbsd-tdep.c: Likewise.
5180 * ppcnbsd-tdep.c: Likewise.
5181 * ppcobsd-tdep.c: Likewise.
5182 * printcmd.c: Likewise.
5183 * procfs.c: Likewise.
5184 * prologue-value.c: Likewise.
5185 * python/py-auto-load.c: Likewise.
5186 * python/py-gdb-readline.c: Likewise.
5187 * ravenscar-thread.c: Likewise.
5188 * regcache.c: Likewise.
5189 * registry.c: Likewise.
5190 * remote-fileio.c: Likewise.
5191 * remote-m32r-sdi.c: Likewise.
5192 * remote-mips.c: Likewise.
5193 * remote-notif.c: Likewise.
5194 * remote-sim.c: Likewise.
5195 * remote.c: Likewise.
5196 * reverse.c: Likewise.
5197 * rs6000-aix-tdep.c: Likewise.
5198 * ser-base.c: Likewise.
5199 * ser-go32.c: Likewise.
5200 * ser-mingw.c: Likewise.
5201 * ser-pipe.c: Likewise.
5202 * ser-tcp.c: Likewise.
5203 * ser-unix.c: Likewise.
5204 * serial.c: Likewise.
5205 * sh-tdep.c: Likewise.
5206 * sh64-tdep.c: Likewise.
5207 * shnbsd-tdep.c: Likewise.
5209 * sol-thread.c: Likewise.
5210 * solib-dsbt.c: Likewise.
5211 * solib-frv.c: Likewise.
5212 * solib-osf.c: Likewise.
5213 * solib-som.c: Likewise.
5214 * solib-spu.c: Likewise.
5215 * solib-target.c: Likewise.
5216 * solib.c: Likewise.
5217 * somread.c: Likewise.
5218 * source.c: Likewise.
5219 * sparc-nat.c: Likewise.
5220 * sparc-sol2-tdep.c: Likewise.
5221 * sparc-tdep.c: Likewise.
5222 * sparc64-tdep.c: Likewise.
5223 * sparc64fbsd-tdep.c: Likewise.
5224 * sparc64nbsd-tdep.c: Likewise.
5225 * sparcnbsd-tdep.c: Likewise.
5226 * spu-linux-nat.c: Likewise.
5227 * spu-multiarch.c: Likewise.
5228 * spu-tdep.c: Likewise.
5229 * stabsread.c: Likewise.
5230 * stack.c: Likewise.
5231 * std-regs.c: Likewise.
5232 * symfile.c: Likewise.
5233 * symmisc.c: Likewise.
5234 * symtab.c: Likewise.
5235 * target.c: Likewise.
5236 * thread.c: Likewise.
5237 * tilegx-linux-nat.c: Likewise.
5238 * tilegx-tdep.c: Likewise.
5240 * tracepoint.c: Likewise.
5241 * tui/tui-command.c: Likewise.
5242 * tui/tui-data.c: Likewise.
5243 * tui/tui-disasm.c: Likewise.
5244 * tui/tui-file.c: Likewise.
5245 * tui/tui-layout.c: Likewise.
5246 * tui/tui-out.c: Likewise.
5247 * tui/tui-regs.c: Likewise.
5248 * tui/tui-source.c: Likewise.
5249 * tui/tui-stack.c: Likewise.
5250 * tui/tui-win.c: Likewise.
5251 * tui/tui-windata.c: Likewise.
5252 * tui/tui-winsource.c: Likewise.
5253 * typeprint.c: Likewise.
5254 * ui-file.c: Likewise.
5255 * ui-out.c: Likewise.
5256 * user-regs.c: Likewise.
5257 * utils.c: Likewise.
5258 * v850-tdep.c: Likewise.
5259 * valarith.c: Likewise.
5260 * valops.c: Likewise.
5261 * valprint.c: Likewise.
5262 * value.c: Likewise.
5263 * varobj.c: Likewise.
5264 * vax-tdep.c: Likewise.
5265 * vaxnbsd-tdep.c: Likewise.
5266 * vaxobsd-tdep.c: Likewise.
5267 * windows-nat.c: Likewise.
5268 * xcoffread.c: Likewise.
5269 * xml-support.c: Likewise.
5270 * xstormy16-tdep.c: Likewise.
5271 * xtensa-linux-nat.c: Likewise.
5273 2014-08-07 Gary Benson <gbenson@redhat.com>
5275 * common/common-defs.h: Include gdb_assert.h.
5276 * aarch64-tdep.c: Do not include gdb_assert.h.
5277 * addrmap.c: Likewise.
5278 * aix-thread.c: Likewise.
5279 * alpha-linux-tdep.c: Likewise.
5280 * alpha-mdebug-tdep.c: Likewise.
5281 * alphanbsd-tdep.c: Likewise.
5282 * amd64-nat.c: Likewise.
5283 * amd64-tdep.c: Likewise.
5284 * amd64bsd-nat.c: Likewise.
5285 * amd64fbsd-nat.c: Likewise.
5286 * amd64fbsd-tdep.c: Likewise.
5287 * amd64nbsd-nat.c: Likewise.
5288 * amd64nbsd-tdep.c: Likewise.
5289 * amd64obsd-nat.c: Likewise.
5290 * amd64obsd-tdep.c: Likewise.
5291 * arch-utils.c: Likewise.
5292 * arm-tdep.c: Likewise.
5293 * armbsd-tdep.c: Likewise.
5295 * bcache.c: Likewise.
5296 * bfin-tdep.c: Likewise.
5297 * blockframe.c: Likewise.
5298 * breakpoint.c: Likewise.
5299 * bsd-kvm.c: Likewise.
5300 * bsd-uthread.c: Likewise.
5301 * buildsym.c: Likewise.
5302 * c-exp.y: Likewise.
5303 * c-lang.c: Likewise.
5304 * charset.c: Likewise.
5305 * cleanups.c: Likewise.
5306 * cli-out.c: Likewise.
5307 * cli/cli-decode.c: Likewise.
5308 * cli/cli-dump.c: Likewise.
5309 * cli/cli-logging.c: Likewise.
5310 * cli/cli-script.c: Likewise.
5311 * cli/cli-utils.c: Likewise.
5312 * coffread.c: Likewise.
5313 * common/common-utils.c: Likewise.
5314 * common/queue.h: Likewise.
5315 * common/signals.c: Likewise.
5316 * common/vec.h: Likewise.
5317 * complaints.c: Likewise.
5318 * completer.c: Likewise.
5319 * corelow.c: Likewise.
5320 * cp-abi.c: Likewise.
5321 * cp-name-parser.y: Likewise.
5322 * cp-namespace.c: Likewise.
5323 * cp-support.c: Likewise.
5324 * cris-tdep.c: Likewise.
5325 * dbxread.c: Likewise.
5326 * dictionary.c: Likewise.
5327 * doublest.c: Likewise.
5328 * dsrec.c: Likewise.
5329 * dummy-frame.c: Likewise.
5330 * dwarf2-frame-tailcall.c: Likewise.
5331 * dwarf2-frame.c: Likewise.
5332 * dwarf2expr.c: Likewise.
5333 * dwarf2loc.c: Likewise.
5334 * dwarf2read.c: Likewise.
5336 * event-loop.c: Likewise.
5337 * exceptions.c: Likewise.
5338 * expprint.c: Likewise.
5339 * f-valprint.c: Likewise.
5340 * fbsd-nat.c: Likewise.
5341 * findvar.c: Likewise.
5342 * frame-unwind.c: Likewise.
5343 * frame.c: Likewise.
5344 * frv-tdep.c: Likewise.
5345 * gcore.c: Likewise.
5346 * gdb-dlfcn.c: Likewise.
5347 * gdb_bfd.c: Likewise.
5348 * gdbarch.c: Likewise.
5349 * gdbarch.sh: Likewise.
5350 * gdbtypes.c: Likewise.
5351 * gnu-nat.c: Likewise.
5352 * gnu-v3-abi.c: Likewise.
5353 * go-lang.c: Likewise.
5354 * guile/scm-exception.c: Likewise.
5355 * guile/scm-gsmob.c: Likewise.
5356 * guile/scm-lazy-string.c: Likewise.
5357 * guile/scm-math.c: Likewise.
5358 * guile/scm-pretty-print.c: Likewise.
5359 * guile/scm-safe-call.c: Likewise.
5360 * guile/scm-utils.c: Likewise.
5361 * guile/scm-value.c: Likewise.
5362 * h8300-tdep.c: Likewise.
5363 * hppa-hpux-nat.c: Likewise.
5364 * hppa-tdep.c: Likewise.
5365 * hppanbsd-tdep.c: Likewise.
5366 * hppaobsd-tdep.c: Likewise.
5367 * i386-darwin-nat.c: Likewise.
5368 * i386-darwin-tdep.c: Likewise.
5369 * i386-nto-tdep.c: Likewise.
5370 * i386-tdep.c: Likewise.
5371 * i386bsd-nat.c: Likewise.
5372 * i386fbsd-tdep.c: Likewise.
5373 * i386gnu-nat.c: Likewise.
5374 * i386nbsd-tdep.c: Likewise.
5375 * i386obsd-tdep.c: Likewise.
5376 * i387-tdep.c: Likewise.
5377 * ia64-libunwind-tdep.c: Likewise.
5378 * ia64-tdep.c: Likewise.
5379 * inf-ptrace.c: Likewise.
5380 * inf-ttrace.c: Likewise.
5381 * infcall.c: Likewise.
5382 * infcmd.c: Likewise.
5383 * infrun.c: Likewise.
5384 * inline-frame.c: Likewise.
5385 * interps.c: Likewise.
5386 * jv-lang.c: Likewise.
5387 * jv-typeprint.c: Likewise.
5388 * linux-fork.c: Likewise.
5389 * linux-nat.c: Likewise.
5390 * linux-thread-db.c: Likewise.
5391 * m32c-tdep.c: Likewise.
5392 * m32r-linux-nat.c: Likewise.
5393 * m32r-tdep.c: Likewise.
5394 * m68k-tdep.c: Likewise.
5395 * m68kbsd-nat.c: Likewise.
5396 * m68kbsd-tdep.c: Likewise.
5397 * m88k-tdep.c: Likewise.
5398 * machoread.c: Likewise.
5399 * macroexp.c: Likewise.
5400 * macrotab.c: Likewise.
5401 * maint.c: Likewise.
5402 * mdebugread.c: Likewise.
5403 * memory-map.c: Likewise.
5404 * mep-tdep.c: Likewise.
5405 * mi/mi-common.c: Likewise.
5406 * microblaze-tdep.c: Likewise.
5407 * mingw-hdep.c: Likewise.
5408 * mips-linux-nat.c: Likewise.
5409 * mips-linux-tdep.c: Likewise.
5410 * mips-tdep.c: Likewise.
5411 * mips64obsd-tdep.c: Likewise.
5412 * mipsnbsd-tdep.c: Likewise.
5413 * mn10300-linux-tdep.c: Likewise.
5414 * mn10300-tdep.c: Likewise.
5415 * moxie-tdep.c: Likewise.
5416 * mt-tdep.c: Likewise.
5417 * nat/linux-btrace.c: Likewise.
5418 * nat/linux-osdata.c: Likewise.
5419 * nat/linux-ptrace.c: Likewise.
5420 * nat/mips-linux-watch.c: Likewise.
5421 * nios2-linux-tdep.c: Likewise.
5422 * nios2-tdep.c: Likewise.
5423 * objc-lang.c: Likewise.
5424 * objfiles.c: Likewise.
5425 * obsd-nat.c: Likewise.
5426 * opencl-lang.c: Likewise.
5427 * osabi.c: Likewise.
5428 * parse.c: Likewise.
5429 * ppc-linux-nat.c: Likewise.
5430 * ppc-sysv-tdep.c: Likewise.
5431 * ppcfbsd-nat.c: Likewise.
5432 * ppcfbsd-tdep.c: Likewise.
5433 * ppcnbsd-nat.c: Likewise.
5434 * ppcnbsd-tdep.c: Likewise.
5435 * ppcobsd-nat.c: Likewise.
5436 * ppcobsd-tdep.c: Likewise.
5437 * printcmd.c: Likewise.
5438 * procfs.c: Likewise.
5439 * prologue-value.c: Likewise.
5440 * psymtab.c: Likewise.
5441 * python/py-lazy-string.c: Likewise.
5442 * python/py-value.c: Likewise.
5443 * regcache.c: Likewise.
5444 * reggroups.c: Likewise.
5445 * registry.c: Likewise.
5446 * remote-sim.c: Likewise.
5447 * remote.c: Likewise.
5448 * rs6000-aix-tdep.c: Likewise.
5449 * rs6000-tdep.c: Likewise.
5450 * s390-linux-tdep.c: Likewise.
5451 * score-tdep.c: Likewise.
5452 * ser-base.c: Likewise.
5453 * ser-mingw.c: Likewise.
5454 * sh-tdep.c: Likewise.
5455 * sh64-tdep.c: Likewise.
5456 * solib-darwin.c: Likewise.
5457 * solib-spu.c: Likewise.
5458 * solib-svr4.c: Likewise.
5459 * source.c: Likewise.
5460 * sparc-nat.c: Likewise.
5461 * sparc-sol2-tdep.c: Likewise.
5462 * sparc-tdep.c: Likewise.
5463 * sparc64-sol2-tdep.c: Likewise.
5464 * sparc64-tdep.c: Likewise.
5465 * sparc64fbsd-tdep.c: Likewise.
5466 * sparc64nbsd-tdep.c: Likewise.
5467 * sparc64obsd-tdep.c: Likewise.
5468 * sparcnbsd-tdep.c: Likewise.
5469 * sparcobsd-tdep.c: Likewise.
5470 * spu-multiarch.c: Likewise.
5471 * spu-tdep.c: Likewise.
5472 * stabsread.c: Likewise.
5473 * stack.c: Likewise.
5474 * symfile.c: Likewise.
5475 * symtab.c: Likewise.
5476 * target-descriptions.c: Likewise.
5477 * target-memory.c: Likewise.
5478 * target.c: Likewise.
5479 * tic6x-linux-tdep.c: Likewise.
5480 * tic6x-tdep.c: Likewise.
5481 * tilegx-linux-nat.c: Likewise.
5482 * tilegx-tdep.c: Likewise.
5484 * tramp-frame.c: Likewise.
5485 * tui/tui-out.c: Likewise.
5486 * tui/tui-winsource.c: Likewise.
5487 * ui-out.c: Likewise.
5488 * user-regs.c: Likewise.
5489 * utils.c: Likewise.
5490 * v850-tdep.c: Likewise.
5491 * valops.c: Likewise.
5492 * value.c: Likewise.
5493 * varobj.c: Likewise.
5494 * vax-nat.c: Likewise.
5495 * xml-syscall.c: Likewise.
5496 * xml-tdesc.c: Likewise.
5497 * xstormy16-tdep.c: Likewise.
5498 * xtensa-linux-nat.c: Likewise.
5499 * xtensa-tdep.c: Likewise.
5501 2014-08-07 Gary Benson <gbenson@redhat.com>
5503 * common/common-defs.h: Include common-utils.h.
5504 * defs.h: Do not include common-utils.h.
5505 * common/gdb_assert.h: Likewise.
5506 * darwin-nat.h: Likewise.
5507 * nat/linux-btrace.c: Likewise.
5508 * target/waitstatus.h: Likewise.
5510 2014-08-07 Gary Benson <gbenson@redhat.com>
5512 * common/common-defs.h: Include ptid.h.
5513 * defs.h: Do not include ptid.h.
5514 * inferior.h: Likewise.
5515 * infrun.h: Likewise.
5516 * nat/linux-btrace.h: Likewise.
5517 * nat/linux-osdata.h: Likewise.
5518 * target/waitstatus.h: Likewise.
5520 2014-08-07 Gary Benson <gbenson@redhat.com>
5522 * common/common-defs.h: Include gdb_locale.h.
5523 * defs.h: Do not include gdb_locale.h.
5525 2014-08-07 Gary Benson <gbenson@redhat.com>
5527 * common/common-defs.h: Include gdb/signals.h.
5528 * defs.h: Do not include gdb/signals.h.
5530 2014-08-07 Gary Benson <gbenson@redhat.com>
5532 * common/common-defs.h: Include pathmax.h.
5533 * defs.h: Do not include pathmax.h.
5535 2014-08-07 Gary Benson <gbenson@redhat.com>
5537 * common/common-defs.h: Include libiberty.h.
5538 * defs.h: Do not include libiberty.h.
5539 * common/queue.h: Likewise.
5540 * cp-name-parser.y: Likewise.
5541 * mi/mi-cmd-catch.c: Likewise.
5542 * python/python.c: Likewise.
5544 2014-08-07 Gary Benson <gbenson@redhat.com>
5546 * common/common-defs.h: Include ansidecl.h.
5547 * defs.h: Do not include ansidecl.h.
5548 * common/buffer.h: Likewise.
5549 * common/common-utils.h: Likewise.
5551 2014-08-07 Gary Benson <gbenson@redhat.com>
5553 * common/common-defs.h: Include stddef.h.
5554 * defs.h: Do not include stddef.h.
5555 * common/common-utils.h: Likewise.
5556 * amd64fbsd-nat.c: Likewise.
5557 * bcache.c: Likewise.
5558 * charset.c: Likewise.
5559 * common/buffer.h: Likewise.
5560 * common/vec.h: Likewise.
5561 * i386bsd-nat.c: Likewise.
5562 * nat/linux-btrace.h: Likewise.
5563 * ppcfbsd-nat.c: Likewise.
5564 * ppcnbsd-tdep.h: Likewise.
5565 * ppcobsd-nat.c: Likewise.
5566 * ppcobsd-tdep.h: Likewise.
5567 * python/py-gdb-readline.c: Likewise.
5569 2014-08-07 Gary Benson <gbenson@redhat.com>
5571 * common/common-defs.h: Include stdarg.h.
5572 * defs.h: Do not include stdarg.h.
5573 * ada-lang.c: Likewise.
5574 * common/common-utils.h: Likewise.
5575 * guile/scm-string.c: Likewise.
5576 * guile/scm-utils.c: Likewise.
5577 * m32c-tdep.c: Likewise.
5579 2014-08-07 Gary Benson <gbenson@redhat.com>
5581 * common/common-defs.h: Include stdlib.h.
5582 * defs.h: Do not include stdlib.h.
5583 * addrmap.c: Likewise.
5584 * bcache.c: Likewise.
5585 * common/buffer.c: Likewise.
5586 * common/common-utils.c: Likewise.
5587 * cp-name-parser.y: Likewise.
5588 * go32-nat.c: Likewise.
5589 * mn10300-linux-tdep.c: Likewise.
5590 * nat/linux-osdata.c: Likewise.
5591 * tui/tui.c: Likewise.
5592 * windows-nat.c: Likewise.
5594 2014-08-07 Gary Benson <gbenson@redhat.com>
5596 * common/common-defs.h: Include stdio.h.
5597 * defs.h: Do not include stdio.h.
5598 * ada-lang.c: Likewise.
5599 * common/buffer.c: Likewise.
5600 * common/common-utils.c: Likewise.
5601 * cp-name-parser.y: Likewise.
5602 * gnu-nat.c: Likewise.
5603 * go32-nat.c: Likewise.
5604 * i386gnu-nat.c: Likewise.
5605 * proc-api.c: Likewise.
5606 * proc-events.c: Likewise.
5607 * proc-flags.c: Likewise.
5608 * proc-why.c: Likewise.
5609 * python/python-internal.h: Likewise.
5610 * target-memory.c: Likewise.
5611 * tui/tui-io.c: Likewise.
5612 * tui/tui.c: Likewise.
5614 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5616 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5617 (scan_dyntag_auxv): Same.
5619 2014-08-06 Yao Qi <yao@codesourcery.com>
5621 * amd64-linux-nat.c: Remove duplicated include
5623 * i386-linux-nat.c: Likewise.
5625 2014-08-06 Yao Qi <yao@codesourcery.com>
5627 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5628 operand" with "Special opcode" in comments.
5630 2014-08-05 Gary Benson <gbenson@redhat.com>
5632 * interps.c (initialize_interps): Remove prototype.
5633 (interpreter_initialized): Remove static global.
5634 (interp_add): Do not call initialize_interps.
5635 (initialize_interps): Remove function.
5637 2014-08-05 Gary Benson <gbenson@redhat.com>
5639 * utils.c (vwarning): Remove spurious va_end.
5641 2014-08-05 Alan Modra <amodra@gmail.com>
5643 * charset.c (convert_between_encodings): Cast result of obstack_base.
5644 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5645 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5646 (read_unwind_info): Use size_t for some locals.
5647 * jit.c (finalize_symtab): Likewise.
5648 * utils.c (hashtab_obstack_allocate): Likewise.
5649 * symmisc.c (print_objfile_statistics): Update format strings.
5651 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5653 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5654 (Changes in GDB 7.8): ... here.
5656 2014-08-04 Tom Tromey <tromey@redhat.com>
5658 * target.c (set_targetdebug): New function.
5659 (initialize_targets): Pass set_targetdebug when creating "set
5662 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5664 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5665 if detecting a variable-sized field that is not the last field.
5666 Fix struct type length computation.
5668 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5670 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5673 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5675 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5676 Remove "+ 8" offset in computation of CHAIN_VMA.
5678 2014-07-31 Doug Evans <dje@google.com>
5680 * inflow.c (child_terminal_inferior): Add comment.
5681 (child_terminal_ours_for_output): Add comment.
5682 (child_terminal_ours): Add comment.
5683 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5684 (linux_nat_terminal_ours): Add comment.
5686 2014-07-31 Gary Benson <gbenson@redhat.com>
5688 * common/btrace-common.h: Do not include defs.h or server.h.
5689 * nat/mips-linux-watch.h: Likewise.
5690 * gdb-dlfcn.h: Do not include defs.h.
5691 * tracefile.h: Likewise.
5693 2014-07-30 Roland McGrath <mcgrathr@google.com>
5695 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5697 2014-07-30 Tom Tromey <tromey@redhat.com>
5699 * bsd-kvm.c (bsd_kvm_open): Constify.
5700 * corelow.c (core_open): Constify.
5701 * ctf.c (ctf_open): Constify.
5702 * dbug-rom.c (dbug_open): Constify.
5703 * exec.c (exec_open): Constify.
5704 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5705 * microblaze-rom.c (picobug_open): Constify.
5706 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5708 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5709 * record-btrace.c (record_btrace_open): Constify.
5710 * record-full.c (record_full_core_open_1, record_full_open_1)
5711 (record_full_open): Constify.
5712 * remote-m32r-sdi.c (m32r_open): Constify.
5713 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5714 (rockhopper_open, lsi_open): Constify.
5715 * remote-sim.c (gdbsim_open): Constify.
5716 * remote.c (remote_open, extended_remote_open, remote_open_1):
5718 * target.h (struct target_ops) <to_open>: Make "arg" const.
5719 * tracefile-tfile.c (tfile_open): Constify.
5721 2014-07-30 Tom Tromey <tromey@redhat.com>
5723 * breakpoint.c (map_breakpoint_numbers): Update.
5724 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5725 (get_number_const): New function.
5726 (get_number): Rewrite using get_number_const.
5727 (init_number_or_range): Make "string" const.
5728 (number_is_in_list): Make "list" const.
5729 * cli/cli-utils.h (get_number_const): Declare.
5730 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5731 (init_number_or_range, number_is_in_list): Update.
5732 * printcmd.c (map_display_numbers): Update.
5733 * value.c (value_from_history_ref): Constify.
5734 * value.h (value_from_history_ref): Update.
5736 2014-07-30 Tom Tromey <tromey@redhat.com>
5738 * corefile.c (hook_type, call_extra_exec_file_hooks)
5739 (specify_exec_file_hook): Constify.
5740 * exec.c (exec_file_attach): Make "filename" const.
5741 * gdbcore.h (deprecated_exec_file_display_hook)
5742 (specify_exec_file_hook, exec_file_attach): Constify.
5743 * main.c (captured_main): Use catch_command_errors_const.
5745 2014-07-30 Tom Tromey <tromey@redhat.com>
5747 * target.c (open_target): New function.
5748 (add_target_with_completer, add_deprecated_target_alias): Use
5749 set_cmd_sfunc, set_cmd_context.
5750 (debug_to_open): Remove.
5751 (setup_target_debug): Update.
5753 2014-07-30 Yao Qi <yao@codesourcery.com>
5755 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5757 * parse.c (exp_iterate): Update comments.
5759 2014-07-30 Gary Benson <gbenson@redhat.com>
5761 * common/common-defs.h: New file.
5762 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5763 * defs.h: Include common-defs.h.
5764 Do not include config.h or build-gnulib/config.h.
5766 2014-07-30 Gary Benson <gbenson@redhat.com>
5768 * common/common-utils.h: Do not include config.h.
5769 * nat/linux-btrace.h: Likewise.
5771 2014-07-30 Gary Benson <gbenson@redhat.com>
5773 * btrace.c: Include defs.h.
5774 * common/ptid.c: Include defs.h or server.h as appropriate.
5775 * nat/mips-linux-watch.c: Likewise.
5777 2014-07-29 Tom Tromey <tromey@redhat.com>
5779 * target.c (target_is_pushed): Simplify.
5781 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5785 2014-07-29 Yao Qi <yao@codesourcery.com>
5788 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5790 2014-07-28 Doug Evans <xdje42@gmail.com>
5793 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5794 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5797 2014-07-28 Will Newton <will.newton@linaro.org>
5799 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5800 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5801 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5802 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5803 (THUMB2_EABI_SYSCALL): Likewise.
5804 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5806 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5807 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5809 2014-07-27 Doug Evans <xdje42@gmail.com>
5811 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5813 2014-07-27 Doug Evans <xdje42@gmail.com>
5815 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5817 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5818 Doug Evans <xdje42@gmail.com>
5821 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5822 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5823 * configure.ac: Try to use guild to compile an scm file, if it fails
5824 then disable guile support.
5825 * configure: Regenerate.
5826 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5828 (GUILE_COMPILED_FILES): New variable.
5829 (GUILE_FILES) Update.
5830 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5831 (stamp-guile): Compile scm files.
5832 * guile/guile.c (boot_guile_support): New function.
5833 (standard_throw_args_p): New function.
5834 (print_standard_throw_error, print_throw_error): New functions.
5835 (handle_boot_error): New function.
5836 (initialize_scheme_side): Rewrite to call boot_guile_support.
5837 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5838 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5840 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5841 Doug Evans <xdje42@gmail.com>
5844 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5845 * guile/lib/gdb/support.scm: New file.
5846 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5847 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5849 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5851 (%assert-type): Ditto, and renamed to assert-type.
5852 (%exception-print-style): Delete.
5854 2014-07-26 Doug Evans <xdje42@gmail.com>
5857 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5858 * configure: Regenerate.
5859 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5861 (PYTHON_FILES): New variable.
5862 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5863 (GUILE_FILES): New variable.
5864 (stamp-python, install-python, uninstall-python): Handle empty
5866 (stamp-guile, install-guile, uninstall-guile): Ditto.
5868 2014-07-26 Doug Evans <xdje42@gmail.com>
5871 * guile/lib/gdb.scm (pretty-printers): Export.
5872 (set-pretty-printers!): Export.
5873 * guile/lib/gdb/printing.scm (gdb module): Update.
5874 (prepend-pretty-printer!, append-pretty-printer!): Update.
5875 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5876 (pretty_printer_list_var): Delete.
5877 (pretty_printer_list): New static global.
5878 (gdbscm_pretty_printers): New function.
5879 (gdbscm_set_pretty_printers_x): New function.
5880 (ppscm_find_pretty_printer_from_gdb): Update.
5881 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5882 (gdbscm_initialize_pretty_printers): Update.
5884 2014-07-26 Doug Evans <xdje42@gmail.com>
5887 * configure.ac: Add check for header gc/gc.h.
5888 Add check for function setenv.
5889 * configure: Regenerate.
5890 * config.in: Regenerate.
5891 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5893 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5895 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5896 variation in gdbarch matching.
5898 2014-07-25 Tom Tromey <tromey@redhat.com>
5900 * exec.c (using_exec_ops): Remove.
5901 (exec_close_1): Update. Remove extraneous block, reindent.
5902 (add_target_sections): Use target_is_pushed.
5904 2014-07-25 Pedro Alves <palves@redhat.com>
5906 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5907 * monitor.c (monitor_create_inferior): Likewise.
5908 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5909 * remote-sim.c (gdbsim_create_inferior): Likewise.
5910 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5911 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5912 * windows-nat.c (do_initial_windows_stuff): Likewise.
5914 2014-07-25 Pedro Alves <palves@redhat.com>
5916 * NEWS: Mention signal passing and "signal" command changes.
5917 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5919 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5921 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5922 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5923 (jump_command): Adjust clear_proceed_status call.
5924 (signal_command): Warn if other thread that are resumed have
5925 signals that will be delivered. Adjust clear_proceed_status call.
5926 (until_next_command, finish_command)
5927 (proceed_after_attach_callback, attach_command_post_wait)
5928 (attach_command): Adjust clear_proceed_status call.
5929 * infrun.c (proceed_after_vfork_done): Likewise.
5930 (proceed_after_attach_callback): Adjust comment.
5931 (clear_proceed_status_thread): Clear stop_signal if not in pass
5933 (clear_proceed_status_callback): Delete.
5934 (clear_proceed_status): New 'step' parameter. Only clear the
5935 proceed status of threads the command being prepared is about to
5937 (proceed): If passed in an explicit signal, override stop_signal
5938 with it. Don't pass the last stop signal to the thread we're
5940 (init_wait_for_inferior): Adjust clear_proceed_status call.
5941 (switch_back_to_stepped_thread): Clear the signal if it should not
5943 * infrun.h (clear_proceed_status): New 'step' parameter.
5944 (user_visible_resume_ptid): Add comment.
5945 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5946 signal is in pass state.
5947 * remote.c (append_pending_thread_resumptions): Likewise.
5948 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5950 2014-07-25 Tom Tromey <tromey@redhat.com>
5952 * target.h (target_stopped_data_address)
5953 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5956 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5958 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5960 (avr_pointer_to_address): Likewise.
5962 2014-07-24 Tom Tromey <tromey@redhat.com>
5964 * monitor.c (compile_pattern): Update.
5965 * target.h (struct target_ops) <to_shortname, to_longname,
5968 2014-07-24 Tom Tromey <tromey@redhat.com>
5970 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5971 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5972 (add_info_alias, add_com): Make "doc" const.
5973 (print_doc_line): Make "str" const.
5974 (delete_cmd): Update.
5975 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5976 (print_doc_line): Update.
5977 * cli/cli-script.c (document_command): Update.
5978 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5979 (add_com, add_info, add_info_alias): Update.
5980 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5981 * python/py-cmd.c (cmdpy_destroyer): Update.
5983 2014-07-24 Tom Tromey <tromey@redhat.com>
5985 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5986 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5987 (help_cmd_list): Constify.
5988 (lookup_cmd): Update.
5989 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5991 (help_cmd_list, apropos_cmd): Update.
5992 * cli/cli-script.c (show_user): Update.
5993 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5994 * cli/cli-setshow.h (cmd_show_list): Update.
5995 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5996 (cmd_show_list): Update.
5997 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5998 * python/py-cmd.c (cmdpy_destroyer): Update.
6000 2014-07-24 Tom Tromey <tromey@redhat.com>
6002 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
6003 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
6005 * command.h (deprecate_cmd): Update.
6006 * maint.c (maintenance_do_deprecate): Add casts.
6008 2014-07-24 Tom Tromey <tromey@redhat.com>
6010 * cli/cli-decode.c (help_cmd): Make parameter "const".
6011 * cli/cli-decode.h (help_cmd): Update.
6013 2014-07-24 Tom Tromey <tromey@redhat.com>
6015 * stack.c (up_silently_base, down_silently_base): Make argument
6018 2014-07-24 Tom Tromey <tromey@redhat.com>
6020 * solib.c (solib_add): Make "pattern" const.
6021 * solib.h (solib_add): Update.
6023 2014-07-24 Tom Tromey <tromey@redhat.com>
6025 * remote.c (remote_serial_open, print_packet, putpkt)
6026 (putpkt_binary): Constify.
6027 * remote.h (putpkt): Update.
6029 2014-07-24 Tom Tromey <tromey@redhat.com>
6031 * monitor.c (monitor_open): Make "args" const.
6032 * monitor.h (monitor_open): Update.
6034 2014-07-24 Tom Tromey <tromey@redhat.com>
6036 * maint.c (match_bfd_flags): Make "string" const.
6037 (print_bfd_section_info): Remove casts.
6038 (print_objfile_section_info): Make "string" const.
6040 2014-07-24 Tom Tromey <tromey@redhat.com>
6042 * inf-child.c (inf_child_open_target): Make "arg" const.
6043 * inf-child.h (inf_child_open_target): Update.
6045 2014-07-24 Tom Tromey <tromey@redhat.com>
6047 * environ.c (unset_in_environ): Make "var" const.
6048 * environ.h (unset_in_environ): Update.
6050 2014-07-24 Tom Tromey <tromey@redhat.com>
6052 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6054 (scan_filename_with_cleanup): Likewise.
6055 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6056 Make arguments const.
6057 (restore_command): Update.
6059 2014-07-24 Pedro Alves <palves@redhat.com>
6061 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6063 2014-07-24 Tom Tromey <tromey@redhat.com>
6064 Gary Benson <gbenson@redhat.com>
6066 * nat/linux-ptrace.c (additional_flags): New global.
6067 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6068 additional_flags; don't check GDBSERVER.
6069 (linux_ptrace_set_additional_flags): New function.
6070 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6072 * linux-nat.c (_initialize_linux_nat): Call
6073 linux_ptrace_set_additional_flags.
6075 2014-07-24 Tom Tromey <tromey@redhat.com>
6077 * make-target-delegates (munge_type, write_debugmethod): New
6079 (debug_names): New global.
6080 ($TARGET_DEBUG_PRINTER): New global.
6081 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6083 Write debug methods. Generate init_debug_target.
6084 * target-debug.h: New file.
6085 * target-delegates.c: Rebuild.
6086 * target.c: Include target-debug.h.
6087 (debug_target): Hoist definition.
6088 (target_kill, target_get_section_table, target_memory_map)
6089 (target_flash_erase, target_flash_done, target_detach)
6090 (target_disconnect, target_wait, target_resume)
6091 (target_pass_signals, target_program_signals, target_follow_fork)
6092 (target_mourn_inferior, target_search_memory)
6093 (target_thread_address_space, target_close)
6094 (target_find_new_threads, target_core_of_thread)
6095 (target_verify_memory, target_insert_mask_watchpoint)
6096 (target_remove_mask_watchpoint): Remove targetdebug code.
6097 (debug_to_post_attach, debug_to_prepare_to_store)
6098 (debug_to_files_info, debug_to_insert_breakpoint)
6099 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6100 (debug_to_region_ok_for_hw_watchpoint)
6101 (debug_to_can_accel_watchpoint_condition)
6102 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6103 (debug_to_watchpoint_addr_within_range)
6104 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6105 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6106 (debug_to_terminal_init, debug_to_terminal_inferior)
6107 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6108 (debug_to_terminal_save_ours, debug_to_terminal_info)
6109 (debug_to_load, debug_to_post_startup_inferior)
6110 (debug_to_insert_fork_catchpoint)
6111 (debug_to_remove_fork_catchpoint)
6112 (debug_to_insert_vfork_catchpoint)
6113 (debug_to_remove_vfork_catchpoint)
6114 (debug_to_insert_exec_catchpoint)
6115 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6116 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6117 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6118 (setup_target_debug): Call init_debug_target.
6119 * target.h (TARGET_DEBUG_PRINTER): New macro.
6120 (struct target_ops) <to_resume, to_wait, to_pass_signals,
6121 to_program_signals>: Use TARGET_DEBUG_PRINTER.
6123 2014-07-24 Gary Benson <gbenson@redhat.com>
6125 * exceptions.h (throw_vfatal): Renamed to...
6126 (throw_vquit): New declaration.
6127 (throw_quit): Likewise.
6128 * exceptions.c (throw_vfatal): Renamed to...
6129 (throw_vquit): New function.
6130 (throw_quit): Likewise.
6131 (throw_error): Call throw_verror rather than throw_it.
6132 * utils.h (vfatal): Removed.
6134 * utils.c (vfatal): Removed.
6136 (internal_verror): Replaced call to fatal with call to throw_quit.
6137 (quit): Replaced calls to fatal with calls to throw_quit.
6139 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
6141 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6144 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
6146 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6147 less than zero in conditional expression.
6149 2014-07-23 Tom Tromey <tromey@redhat.com>
6151 * make-target-delegates ($ARGS_PART): Match trailing close paren.
6152 ($INTRO_PART): Don't match whitespace.
6153 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
6155 ($METHOD): Add $METHOD_TRAILER.
6157 (scan_target_h): New sub.
6158 Change main loop not to collect state.
6159 * target-delegates.c: Rebuild.
6161 2014-07-23 Gary Benson <gbenson@redhat.com>
6163 * cp-support.c (gdb_demangle): Fix build on systems without
6166 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6168 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6169 for reference entry value target data value.
6171 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6173 * stack.c (read_frame_arg): Verify value_optimized_out before calling
6174 value_available_contents_eq.
6176 2014-07-22 Pedro Alves <palves@redhat.com>
6178 * value.c (allocate_optimized_out_value): Don't mark value as
6181 2014-07-22 Jiong Wang <jiong.wang@arm.com>
6183 * MAINTAINERS (Write After Approval): Update my email address.
6185 2014-07-20 Doug Evans <dje@google.com>
6188 * remote.c (putpkt_binary): Add text to error message.
6190 2014-07-20 Yao Qi <yao@codesourcery.com>
6192 * eval.c: Remove "Chill" from comments.
6193 * gdbtypes.h: Likewise.
6194 * symtab.h: Likewise.
6196 2014-07-20 Yao Qi <yao@codesourcery.com>
6198 * std-operator.def: Update comments to TERNOP_SLICE.
6200 2014-07-20 Yao Qi <yao@codesourcery.com>
6202 * std-operator.def: Remove BINOP_RANGE.
6203 * breakpoint.c (watchpoint_exp_is_const): Update.
6204 * expprint.c (dump_subexp_body_standard): Likewise.
6205 * eval.c (init_array_element): Remove dead code.
6206 (evaluate_subexp_standard): Likewise.
6208 2014-07-20 Yao Qi <yao@codesourcery.com>
6210 * std-operator.def: Remove BINOP_IN.
6211 * breakpoint.c (watchpoint_exp_is_const): Update.
6212 * eval.c (evaluate_subexp_standard): Likewise.
6213 * expprint.c (dump_subexp_body_standard): Likewise.
6215 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
6217 * microblaze-tdep.c (microblaze_register_names): Add
6218 the rshr and rslr register names.
6219 (microblaze_gdbarch_init): Use of tdesc_has_registers.
6220 Use of tdesc_find_feature. Use of tdesc_data_alloc.
6221 Use of tdesc_numbered_register. Use of
6222 microblaze_register_g_packet_guesses. Use of
6223 tdesc_use_registers. Use of set_gdbarch_register_type.
6224 (microblaze_register_g_packet_guesses): New.
6225 * microblaze-tdep.h (microblaze_reg_num): Add
6226 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6227 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6228 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6229 * features/microblaze-core.xml: New file.
6230 * features/microblaze-stack-protect.xml: New file.
6231 * features/microblaze-with-stack-protect.c: New file.
6232 * features/microblaze-with-stack-protect.xml: New file.
6233 * features/microblaze.xml: New file.
6234 * features/microblaze.c: New file.
6235 * features/Makefile (microblaze-with-stack-protect): Add
6236 microblaze-with-stack-protect microblaze and microblaze-expedite.
6237 * regformats/microblaze-with-stack-protect.dat: New file.
6238 * regformats/microblaze.dat: New file.
6239 * doc/gdb.texinfo (MicroBlaze Features): Added.
6241 2014-07-18 Tom Tromey <tromey@redhat.com>
6243 * exec.c (exec_ops): Now static.
6244 * exec.h (exec_ops): Don't declare.
6246 2014-07-18 Tom Tromey <tromey@redhat.com>
6248 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6249 to find_target_beneath.
6250 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6251 find_target_beneath.
6252 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6254 2014-07-18 Tom Tromey <tromey@redhat.com>
6257 * utils.c (quit): Use target_supports_terminal_ours.
6258 * target.h (target_supports_terminal_ours): Declare.
6259 * target.c (target_supports_delete_record): Don't check
6260 to_delete_record against NULL.
6261 (target_supports_terminal_ours): New function.
6263 2014-07-18 Tom Tromey <tromey@redhat.com>
6266 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6267 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6268 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6269 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6270 * windows-nat.c (windows_xfer_partial): Always delegate.
6271 * record-btrace.c (record_btrace_xfer_partial): Simplify
6273 (record_btrace_fetch_registers, record_btrace_store_registers)
6274 (record_btrace_prepare_to_store, record_btrace_resume)
6275 (record_btrace_wait, record_btrace_find_new_threads)
6276 (record_btrace_thread_alive): Likewise.
6277 * procfs.c (procfs_xfer_partial): Always delegate.
6278 * corelow.c (core_xfer_partial): Always delegate.
6279 * sol-thread.c (sol_find_new_threads): Simplify delegation.
6281 2014-07-18 Tom Tromey <tromey@redhat.com>
6283 * exec.c (exec_make_note_section): Move earlier.
6285 2014-07-17 Doug Evans <dje@google.com>
6288 * maint.c (count_symtabs_and_blocks): Handle NULL
6289 current_program_space.
6290 (report_command_stats): Check global enabled flag in addition to
6291 recorded enabled flag.
6292 (make_command_stats_cleanup): Handle msg_type == 0, startup.
6294 2014-07-16 Pedro Alves <palves@redhat.com>
6296 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6298 2014-07-16 Tom Tromey <tromey@redhat.com>
6300 * target.h (struct target_ops) <to_delete_record>: Reformat
6303 2014-07-16 Tom Tromey <tromey@redhat.com>
6305 * target-delegates.c: Rebuild.
6307 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
6309 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6310 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6311 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6312 (avr_pointer_to_address): Likewise.
6313 (avr_address_class_type_flags): New function.
6314 (avr_address_class_type_flags_to_name): Likewise.
6315 (avr_address_class_name_to_type_flags): Likewise.
6316 (avr_gdbarch_init): Set address_class_type_flags,
6317 address_class_type_flags_to_name and
6318 address_class_name_to_type_flags.
6320 2014-07-15 Pedro Alves <palves@redhat.com>
6322 * linux-nat.c (kill_callback): Save errno and work with saved
6325 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
6327 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6329 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
6331 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6332 breakpoint support correctly.
6334 2014-07-14 Pedro Alves <palves@redhat.com>
6336 * utils.c (prompt_for_continue): Call target_terminal_ours.
6338 2014-07-14 Pedro Alves <palves@redhat.com>
6340 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6341 catch_errors. Don't re-enable stdin or notify observers where,
6343 (fetch_inferior_event_wrapper): Delete.
6345 2014-07-14 Pedro Alves <palves@redhat.com>
6348 * top.c: Include "inf-loop.h".
6349 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6351 (gdb_readline_wrapper_cleanup): Make the target async again, if it
6353 (gdb_readline_wrapper): Store whether the target is async, and
6356 2014-07-14 Pedro Alves <palves@redhat.com>
6359 * top.c (gdb_readline_wrapper_line): Tweak comment.
6360 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6361 the input handler callback.
6363 2014-07-14 Pedro Alves <palves@redhat.com>
6366 * main.c: Include event-top.h.
6367 (handle_command_errors): New function.
6368 (catch_command_errors, catch_command_errors_const): Use it.
6370 2014-07-14 Pedro Alves <palves@redhat.com>
6372 * exceptions.c (catch_command_errors, catch_command_errors_const):
6374 * exceptions.h (catch_command_errors_ftype)
6375 (catch_command_errors_const_ftype): Moved to main.c.
6376 (catch_command_errors, catch_command_errors_const): Delete
6378 * main.c (catch_command_errors_ftype)
6379 (catch_command_errors_const_ftype): Moved here from exceptions.h.
6380 (catch_command_errors, catch_command_errors_const)): Moved here
6381 from exceptions.c and make static.
6383 2014-07-14 Pedro Alves <palves@redhat.com>
6385 * exceptions.c (print_any_exception): Delete.
6386 (catch_exceptions_with_msg): Use exception_print instead of
6387 print_any_exception.
6388 (catch_errors): Use exception_fprintf instead of
6389 print_any_exception.
6390 (catch_command_errors, catch_command_errors_const): Use
6391 exception_print instead of print_any_exception.
6393 2014-07-14 Pedro Alves <palves@redhat.com>
6395 * infcall.c (run_inferior_call): Set 'sync_execution' while
6396 running the inferior call.
6398 2014-07-14 Pedro Alves <palves@redhat.com>
6400 * value.c (value_contents_equal): Delete function.
6401 * value.h (value_contents_equal): Delete declaration.
6403 2014-07-14 Tom Tromey <tromey@redhat.com>
6406 * gdbtypes.c (is_dynamic_type_internal): New function, from
6408 (is_dynamic_type): Rewrite.
6409 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6410 (resolve_dynamic_struct): Likewise.
6411 (resolve_dynamic_type_internal): New function, from
6412 resolve_dynamic_type.
6413 (resolve_dynamic_type): Rewrite.
6415 2014-07-14 Tom Tromey <tromey@redhat.com>
6417 * target.c (target_require_runnable): Also check record_stratum.
6420 2014-07-11 Yao Qi <yao@codesourcery.com>
6422 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6423 thumb_instruction_restores_sp return true.
6425 2014-07-11 Yao Qi <yao@codesourcery.com>
6427 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6428 (thumb_in_function_epilogue_p): Call
6429 thumb_instruction_restores_sp.
6431 2014-07-11 Yao Qi <yao@codesourcery.com>
6433 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6435 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6437 2014-07-11 Gary Benson <gbenson@redhat.com>
6439 * amd64-linux-nat.c (gdbcore.h): Remove include.
6440 (regset.h): Likewise.
6441 (nat/linux-btrace.h): Likewise.
6442 (btrace.h): Likewise.
6443 (gdb_assert.h): Likewise.
6444 (string.h): Likewise.
6445 (sys/uio.h): Likewise.
6446 (sys/debugreg.h): Likewise.
6447 (sys/syscall.h): Likewise.
6448 (sys/procfs.h): Likewise.
6449 (sys/user.h): Likewise.
6450 (asm/ptrace.h): Likewise.
6451 (i386-nat.h): Likewise.
6452 * i386-linux-nat.c (i386-nat.h): Likewise.
6453 (regset.h): Likewise.
6454 (target.h): Likewise.
6455 (linux-nat.h): Likewise.
6456 (nat/linux-btrace.h): Likewise.
6457 (btrace.h): Likewise.
6458 (gdb_assert.h): Likewise.
6459 (string.h): Likewise.
6460 (sys/uio.h): Likewise.
6461 (sys/user.h): Likewise.
6462 (sys/procfs.h): Likewise.
6463 (sys/reg.h): Likewise.
6464 (sys/debugreg.h): Likewise.
6465 (ORIG_EAX): Remove definition.
6467 2014-07-11 Gary Benson <gbenson@redhat.com>
6469 * i386-linux-nat.h: New file.
6470 * x86-linux-nat.h: Likewise.
6471 * x86-linux-nat.c: Likewise.
6472 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6473 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6474 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6475 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6476 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6477 (PTRACE_SETREGSET): Likewise.
6478 (arch_lwp_info): Now in x86-linux-nat.c.
6479 (have_ptrace_getregset): Now in x86-linux-nat.h.
6480 (x86_linux_dr_get): Now in x86-linux-nat.c.
6481 (x86_linux_dr_set): Likewise.
6482 (x86_linux_dr_get_addr): Likewise.
6483 (x86_linux_dr_get_control): Likewise.
6484 (x86_linux_dr_get_status): Likewise.
6485 (update_debug_registers_callback): Likewise.
6486 (x86_linux_dr_set_control): Likewise.
6487 (x86_linux_dr_set_addr): Likewise.
6488 (x86_linux_prepare_to_resume): Likewise.
6489 (x86_linux_new_thread): Likewise.
6490 (x86_linux_new_fork): Likewise.
6491 (x86_linux_get_thread_area): Likewise.
6492 (super_post_startup_inferior): Likewise.
6493 (x86_linux_child_post_startup_inferior): Likewise.
6494 (AMD64_LINUX_USER64_CS): Likewise.
6495 (AMD64_LINUX_X32_DS): Likewise.
6496 (x86_linux_read_description): Likewise.
6497 (x86_linux_enable_btrace): Likewise.
6498 (x86_linux_disable_btrace): Likewise.
6499 (x86_linux_teardown_btrace): Likewise.
6500 (x86_linux_read_btrace): Likewise.
6501 (x86_linux_create_target): Likewise.
6502 (x86_linux_add_target): Likewise.
6503 * i386-linux-nat.c (x86-linux-nat.h): New include.
6504 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6505 (PTRACE_SETREGSET): Likewise.
6506 (arch_lwp_info): Now in x86-linux-nat.c.
6507 (have_ptrace_getregset): Now in x86-linux-nat.h.
6508 (x86_linux_dr_get): Now in x86-linux-nat.c.
6509 (x86_linux_dr_set): Likewise.
6510 (x86_linux_dr_get_addr): Likewise.
6511 (x86_linux_dr_get_control): Likewise.
6512 (x86_linux_dr_get_status): Likewise.
6513 (update_debug_registers_callback): Likewise.
6514 (x86_linux_dr_set_control): Likewise.
6515 (x86_linux_dr_set_addr): Likewise.
6516 (x86_linux_prepare_to_resume): Likewise.
6517 (x86_linux_new_thread): Likewise.
6518 (x86_linux_new_fork): Likewise.
6519 (x86_linux_get_thread_area): Likewise.
6520 (super_post_startup_inferior): Likewise.
6521 (x86_linux_child_post_startup_inferior): Likewise.
6522 (AMD64_LINUX_USER64_CS): Likewise.
6523 (AMD64_LINUX_X32_DS): Likewise.
6524 (x86_linux_read_description): Likewise.
6525 (x86_linux_enable_btrace): Likewise.
6526 (x86_linux_disable_btrace): Likewise.
6527 (x86_linux_teardown_btrace): Likewise.
6528 (x86_linux_read_btrace): Likewise.
6529 (x86_linux_create_target): Likewise.
6530 (x86_linux_add_target): Likewise.
6532 2014-07-11 Gary Benson <gbenson@redhat.com>
6534 * amd64-linux-nat.c: Comment and whitespace changes.
6535 * i386-linux-nat.c: Comment and whitespace changes.
6537 2014-07-11 Gary Benson <gbenson@redhat.com>
6539 * amd64-linux-nat.c (x86_linux_create_target): New function.
6540 (x86_linux_add_target): Likewise.
6541 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6542 * i386-linux-nat.c (x86_linux_create_target): New function.
6543 (x86_linux_add_target): Likewise.
6544 (_initialize_i386_linux_nat): Delegate to the above new functions.
6546 2014-07-11 Gary Benson <gbenson@redhat.com>
6548 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6549 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6550 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6551 (ps_get_thread_area): Delegate to the above.
6553 2014-07-11 Gary Benson <gbenson@redhat.com>
6555 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6556 x86_linux_read_description. All uses updated. amd64-specific
6557 code conditionalized. Conditionalized i386-specific code added.
6558 Redundant cast removed.
6559 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6560 x86_linux_read_description. All uses updated. i386-specific
6561 code conditionalized. Conditionalized amd64-specific code added.
6562 One sizeof replaced with the actual type it is describing.
6564 2014-07-11 Gary Benson <gbenson@redhat.com>
6566 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6567 x86_linux_dr_get. All uses updated.
6568 (amd64_linux_dr_set): Renamed to
6569 x86_linux_dr_set. All uses updated.
6570 (amd64_linux_dr_get_addr): Renamed to
6571 x86_linux_dr_get_addr. All uses updated.
6572 (amd64_linux_dr_get_control): Renamed to
6573 x86_linux_dr_get_control. All uses updated.
6574 (amd64_linux_dr_get_status): Renamed to
6575 x86_linux_dr_get_status. All uses updated.
6576 (amd64_linux_dr_set_control): Renamed to
6577 x86_linux_dr_set_control. All uses updated.
6578 (amd64_linux_dr_set_addr): Renamed to
6579 x86_linux_dr_set_addr. All uses updated.
6580 (amd64_linux_prepare_to_resume): Renamed to
6581 x86_linux_prepare_to_resume. All uses updated.
6582 (amd64_linux_new_thread): Renamed to
6583 x86_linux_new_thread. All uses updated.
6584 (amd64_linux_new_fork): Renamed to
6585 x86_linux_new_fork. All uses updated.
6586 (amd64_linux_child_post_startup_inferior): Renamed to
6587 x86_linux_child_post_startup_inferior. All uses updated.
6588 (amd64_linux_enable_btrace): Renamed to
6589 x86_linux_enable_btrace. All uses updated.
6590 (amd64_linux_disable_btrace): Renamed to
6591 x86_linux_disable_btrace. All uses updated.
6592 (amd64_linux_teardown_btrace): Renamed to
6593 x86_linux_teardown_btrace. All uses updated.
6594 (amd64_linux_read_btrace): Renamed to
6595 x86_linux_read_btrace. All uses updated.
6596 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6597 x86_linux_dr_get. All uses updated.
6598 (i386_linux_dr_set): Renamed to
6599 x86_linux_dr_set. All uses updated.
6600 (i386_linux_dr_get_addr): Renamed to
6601 x86_linux_dr_get_addr. All uses updated.
6602 (i386_linux_dr_get_control): Renamed to
6603 x86_linux_dr_get_control. All uses updated.
6604 (i386_linux_dr_get_status): Renamed to
6605 x86_linux_dr_get_status. All uses updated.
6606 (i386_linux_dr_set_control): Renamed to
6607 x86_linux_dr_set_control. All uses updated.
6608 (i386_linux_dr_set_addr): Renamed to
6609 x86_linux_dr_set_addr. All uses updated.
6610 (i386_linux_prepare_to_resume): Renamed to
6611 x86_linux_prepare_to_resume. All uses updated.
6612 (i386_linux_new_thread): Renamed to
6613 x86_linux_new_thread. All uses updated.
6614 (i386_linux_new_fork): Renamed to
6615 x86_linux_new_fork. All uses updated.
6616 (i386_linux_child_post_startup_inferior): Renamed to
6617 x86_linux_child_post_startup_inferior. All uses updated.
6618 (i386_linux_enable_btrace): Renamed to
6619 x86_linux_enable_btrace. All uses updated.
6620 (i386_linux_disable_btrace): Renamed to
6621 x86_linux_disable_btrace. All uses updated.
6622 (i386_linux_teardown_btrace): Renamed to
6623 x86_linux_teardown_btrace. All uses updated.
6624 (i386_linux_read_btrace): Renamed to
6625 x86_linux_read_btrace. All uses updated.
6627 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6629 * remote.c (extended_remote_post_attach): New function.
6630 (init_extended_remote_ops): Install it as to_post_attach method.
6632 2014-07-09 Pedro Alves <palves@redhat.com>
6634 * infcmd.c (attach_command_post_wait): Don't call
6635 target_terminal_inferior here.
6636 (attach_command): Call it here instead.
6638 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6640 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6642 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6643 from varobj.c, with additional checks.
6644 (c_varobj_ops): Fill in is_path_expr_parent field.
6645 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6646 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6648 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6650 (varobj_default_is_path_expr_parent): New function.
6651 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6652 (varobj_default_is_path_expr_parent): Declare new function.
6654 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6656 * infcmd.c (finish_backward): Turn internal error into normal error.
6658 2014-07-07 Pedro Alves <palves@redhat.com>
6661 * remote.c (async_handle_remote_sigint)
6662 (async_handle_remote_sigint_twice): Call
6663 gdb_call_async_signal_handler instead of
6664 mark_async_signal_handler.
6666 2014-07-07 Tom Tromey <tromey@redhat.com>
6668 * target-delegates.c: Rebuild.
6669 * target.c (target_info_record): Remove.
6670 * record.c (info_record_command): Unconditionally call
6672 * target.h (struct target_ops) <to_info_record>: Use
6673 TARGET_DEFAULT_IGNORE.
6674 (target_info_record): Remove.
6676 2014-07-07 Tom Tromey <tromey@redhat.com>
6678 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6679 TARGET_DEFAULT_NORETURN.
6680 * target.c (generic_tls_error): New function.
6681 (target_translate_tls_address): Don't search target stack.
6682 * target-delegates.c: Rebuild.
6683 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6685 * linux-thread-db.c (thread_db_get_thread_local_address):
6686 Unconditionally call beneath target.
6688 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6690 * cli/cli-logging.c (pop_output_files): Assign targerr to
6693 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6695 * MAINTAINERS (Write After Approval): Update my email address.
6697 2014-07-02 Gary Benson <gbenson@redhat.com>
6699 * proc-service.c (ps_xfer_memory): Update comment.
6700 (ps_pstop): Remove unused function.
6701 (ps_pcontinue): Likewise.
6702 (ps_lstop): Likewise.
6703 (ps_lcontinue): Likewise.
6704 (ps_lgetxregsize): Likewise.
6705 (ps_lgetxregs): Likewise.
6706 (ps_lsetxregs): Likewise.
6707 (ps_plog): Likewise.
6708 (ps_ptread): Likewise.
6709 (ps_ptwrite): Likewise.
6711 2014-07-01 Mark Wielaard <mjw@redhat.com>
6713 * dwarf2read.c (add_array_cv_type): New function.
6714 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6715 (read_tag_volatile_type): Likewise.
6717 2014-07-01 Tom Tromey <tromey@redhat.com>
6719 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6720 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6721 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6722 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6723 * command.h (cmd_cfunc_ftype): Move earlier.
6724 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6725 (add_com, add_info): Use cmd_cfunc_ftype.
6727 2014-06-30 Tom Tromey <tromey@redhat.com>
6729 * symtab.c (operator_chars): Make parameters and return type
6731 (file_matches): Make "files" const.
6732 (struct search_symbols_data) <files>: Now const.
6733 (search_symbols): Make "regexp" and "files" parameters const.
6735 (symtab_symbol_info): Remove cast.
6736 (rbreak_command): Update.
6737 * symtab.h (search_symbols): Update.
6739 2014-06-27 Yao Qi <yao@codesourcery.com>
6741 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6742 Change parameter type to 'struct thread_info *'. Caller
6744 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6746 * dummy-frame.c (struct dummy_frame_id): New.
6747 (dummy_frame_id_eq): New function.
6748 (struct dummy_frame) <id>: Change its type to 'struct
6750 (dummy_frame_push): Add parameter ptid and save it in
6752 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6754 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6756 (lookup_dummy_frame): Change parameter type to 'struct
6757 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6758 instead of frame_id_eq.
6759 (dummy_frame_pop): Add parameter ptid. Callers updated.
6760 Update comments. Compose dummy_frame_id and pass it to
6762 (dummy_frame_discard): Add parameter ptid.
6763 (dummy_frame_sniffer): Compose dummy_frame_id and call
6764 dummy_frame_id_eq instead of frame_id_eq.
6765 (fprint_dummy_frames): Print ptid.
6766 * dummy-frame.h: Remove comments.
6767 (dummy_frame_push): Add ptid in declaration.
6768 (dummy_frame_pop, dummy_frame_discard): Likewise.
6770 2014-06-26 Tom Tromey <tromey@redhat.com>
6772 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6773 * command.h (error_no_arg): Update.
6775 2014-06-26 Tom Tromey <tromey@redhat.com>
6777 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6778 (do_show_command): Make "arg" const.
6779 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6781 2014-06-26 Tom Tromey <tromey@redhat.com>
6783 * record-full.c (record_full_get_bookmark): Make "args" const.
6784 (record_full_goto_bookmark): Make "raw_bookmark" const.
6785 * record.c (record_goto): New function.
6786 (cmd_record_goto): Use it. Now static.
6787 * record.h (record_goto): Declare.
6788 (cmd_record_goto): Remove declaration.
6789 * target-delegates.c: Rebuild.
6790 * target.h (struct target_ops) <to_get_bookmark,
6791 to_goto_bookmark>: Make parameter const.
6793 2014-06-26 Tom Tromey <tromey@redhat.com>
6795 * defs.h (generic_load): Update.
6796 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6797 * monitor.c (monitor_load): Make "args" const.
6798 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6799 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6801 (mips_load): Make "file" const.
6802 * remote-sim.c (gdbsim_load): Make "args" const.
6803 * remote.c (remote_load): Make "name" const.
6804 * symfile.c (generic_load): Make "args" const.
6805 * target-delegates.c: Rebuild.
6806 * target.c (target_load): Make "arg" const.
6807 (debug_to_load): Make "args" const.
6808 * target.h (struct target_ops) <to_load>: Make parameter const.
6809 (target_load): Update.
6811 2014-06-26 Tom Tromey <tromey@redhat.com>
6814 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6815 (dwarf2_physname, read_partial_die)
6816 (guess_partial_die_structure_name, fixup_partial_die)
6817 (guess_full_die_structure_name, anonymous_struct_prefix)
6818 (dwarf2_name): Use per-BFD obstack.
6820 2014-06-26 Yao Qi <yao@codesourcery.com>
6822 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6823 dummyframe and this_id into inner block below.
6825 2014-06-26 Yao Qi <yao@codesourcery.com>
6827 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6828 with "signal_pass[0]" in the initialization of signal_pass.
6830 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6832 * record-btrace.c (record_btrace_generating_corefile)
6833 (record_btrace_prepare_to_generate_core)
6834 (record_btrace_done_generating_core): New.
6835 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6836 (record_btrace_store_registers, record_btrace_prepare_to_store):
6837 Forward request when generating a core file.
6838 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6839 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6840 to_done_generating_core.
6842 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6844 * target.h (target_ops) <to_prepare_to_generate_core>
6845 <to_done_generating_core>: New.
6846 (target_prepare_to_generate_core, target_done_generating_core): New.
6847 * target.c (target_prepare_to_generate_core)
6848 (target_done_generating_core): New.
6849 * target-delegates.c: Regenerate.
6850 * gcore.c: (write_gcore_file): Rename to ...
6851 (write_gcore_file_1): ...this.
6852 (write_gcore_file): Call target_prepare_to_generate_core
6853 and target_done_generating_core.
6855 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6857 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6858 * gcore.c (write_gcore_file): Free memory returned from
6859 make_corefile_notes.
6860 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6861 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6863 2014-06-24 Yao Qi <yao@codesourcery.com>
6865 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6866 (arm_linux_init_abi): Set skip_trampoline_code with
6867 gdbarch_skip_trampoline_code instead of
6868 find_solib_trampoline_target.
6870 2014-06-24 Yao Qi <yao@codesourcery.com>
6872 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6873 arm_skip_bx_reg returns non-zero.
6875 2014-06-24 Yao Qi <yao@codesourcery.com>
6877 * arm-tdep.c (arm_skip_bx_reg): New function.
6878 (arm_skip_stub): Call arm_skip_bx_reg.
6880 2014-06-23 Don Breazeal <donb@codesourcery.com>
6882 * MAINTAINERS: Add myself as write-after-approval maintainer.
6884 2014-06-23 Pedro Alves <palves@redhat.com>
6886 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6887 DR_CONTROL before setting DR0..DR3.
6888 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6889 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6890 bits of DR_CONTROL related to the debug register slot being
6891 disabled. If all slots are vacant, clear local slowdown as well,
6892 and assert DR_CONTROL is 0.
6894 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6896 * python/lib/gdb/command/xmethods.py
6897 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6898 current progspace only if the string "progspace" matches LOCUS_RE.
6900 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6902 Fix --with-system-readline with readline-6.3 patch 5.
6903 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6904 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6907 2014-06-20 Tom Tromey <tromey@redhat.com>
6909 * dwarf2read.c (dw2_get_real_path): Use correct type in
6911 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6913 2014-06-20 Gary Benson <gbenson@redhat.com>
6915 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6916 * common/glibc_thread_db.h: Likewise.
6917 * common/i386-cpuid.h: Likewise.
6918 * common/i386-gcc-cpuid.h: Likewise.
6919 * common/linux-btrace.h: Likewise.
6920 * common/linux-osdata.h: Likewise.
6921 * common/linux-procfs.h: Likewise.
6922 * common/linux-ptrace.h: Likewise.
6923 * common/mips-linux-watch.h: Likewise.
6924 * common/linux-btrace.c: Moved to nat.
6925 * common/linux-osdata.c: Likewise.
6926 * common/linux-procfs.c: Likewise.
6927 * common/linux-ptrace.c: Likewise.
6928 * common/mips-linux-watch.c: Likewise.
6929 * nat/gdb_thread_db.h: Moved from common.
6930 * nat/glibc_thread_db.h: Likewise.
6931 * nat/i386-cpuid.h: Likewise.
6932 * nat/i386-gcc-cpuid.h: Likewise.
6933 * nat/linux-btrace.c: Likewise.
6934 * nat/linux-btrace.h: Likewise.
6935 * nat/linux-osdata.c: Likewise.
6936 * nat/linux-osdata.h: Likewise.
6937 * nat/linux-procfs.c: Likewise.
6938 * nat/linux-procfs.h: Likewise.
6939 * nat/linux-ptrace.c: Likewise.
6940 * nat/linux-ptrace.h: Likewise.
6941 * nat/mips-linux-watch.c: Likewise.
6942 * nat/mips-linux-watch.h: Likewise.
6943 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6944 (object file files): Reordered.
6945 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6946 of glibc_thread_db.h.
6948 2014-06-20 Gary Benson <gbenson@redhat.com>
6950 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6951 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6952 (i386_dr_low): Likewise.
6953 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6954 (i386_dr_low_set_addr): Likewise.
6955 (i386_dr_low_get_addr): Likewise.
6956 (i386_dr_low_can_set_control): Likewise.
6957 (i386_dr_low_set_control): Likewise.
6958 (i386_dr_low_get_control): Likewise.
6959 (i386_dr_low_get_status): Likewise.
6960 (i386_get_debug_register_length): Likewise.
6961 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6962 (i386_dr_low): Likewise.
6963 * nat/i386-dregs.c (i386-low.h): Remove include.
6964 (i386-nat.h): Likewise.
6965 (nat/i386-dregs.h): New include.
6966 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6967 (i386_dr_low_set_addr): Likewise.
6968 (i386_dr_low_get_addr): Likewise.
6969 (i386_dr_low_can_set_control): Likewise.
6970 (i386_dr_low_set_control): Likewise.
6971 (i386_dr_low_get_control): Likewise.
6972 (i386_dr_low_get_status): Likewise.
6973 (i386_get_debug_register_length): Likewise.
6974 (debug_hw_points): Likewise.
6976 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6978 * Makefile.in (SFILES): Add d-exp.y.
6979 (YYFILES): Add d-exp.c.
6980 (YYOBJ): Add d-exp.o.
6981 (local-maintainer-clean): Delete d-exp.c.
6982 * d-exp.y: New file.
6983 * d-lang.h (d_parse): New declaration.
6984 (d_error): New declaration.
6985 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6986 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6987 PREC_ORDER operators.
6988 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6990 2014-06-19 Yao Qi <yao@codesourcery.com>
6992 * gdbthread.h (any_running): Remove the declaration.
6993 * thread.c (any_running): Remove.
6995 2014-06-19 Yao Qi <yao@codesourcery.com>
6997 * gdbthread.h (struct thread_info) <state>: Change its type to
6998 'enum thread_state'. Update comments.
7000 2014-06-19 Pedro Alves <palves@redhat.com>
7002 * gdbthread.h (ALL_THREADS): Delete.
7003 (ALL_NON_EXITED_THREADS): New macro.
7004 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
7005 instead of ALL_THREADS.
7006 * infrun.c (find_thread_needs_step_over)
7007 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
7008 instead of ALL_THREADS.
7009 * record-btrace.c (record_btrace_open)
7010 (record_btrace_stop_recording, record_btrace_close)
7011 (record_btrace_is_replaying, record_btrace_resume)
7012 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
7013 * remote.c (append_pending_thread_resumptions): Likewise.
7014 * thread.c (thread_apply_all_command): Likewise.
7016 2014-06-19 Gary Benson <gbenson@redhat.com>
7018 * i386-nat.c (i386_stopped_by_watchpoint):
7019 Use i386_dr_stopped_by_watchpoint.
7020 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7021 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7023 2014-06-19 Gary Benson <gbenson@redhat.com>
7025 * nat/i386-dregs.c: New file.
7026 * Makefile.in (i386-dregs.o): New rule.
7027 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7028 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7029 * config/i386/darwin.mh (NATDEPFILES): Likewise.
7030 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7031 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7032 * config/i386/go32.mh (NATDEPFILES): Likewise.
7033 * config/i386/linux.mh (NATDEPFILES): Likewise.
7034 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7035 * config/i386/mingw.mh (NATDEPFILES): Likewise.
7036 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7037 * i386-nat.h (debug_hw_points): New declaration.
7038 * i386-nat.c (breakpoint.h): Remove include.
7039 (command.h): Likewise.
7040 (target.h): Likewise.
7041 (gdb_assert.h): Likewise.
7042 (debug_hw_points): Made nonstatic.
7043 (debug_printf): Now in i386-dregs.c.
7044 (TARGET_HAS_DR_LEN_8): Likewise.
7045 (DR_CONTROL_SHIFT): Likewise.
7046 (DR_CONTROL_SIZE): Likewise.
7047 (DR_RW_EXECUTE): Likewise.
7048 (DR_RW_WRITE): Likewise.
7049 (DR_RW_READ): Likewise.
7050 (DR_RW_IORW): Likewise.
7051 (DR_LEN_1): Likewise.
7052 (DR_LEN_2): Likewise.
7053 (DR_LEN_4): Likewise.
7054 (DR_LEN_8): Likewise.
7055 (DR_LOCAL_ENABLE_SHIFT): Likewise.
7056 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7057 (DR_ENABLE_SIZE): Likewise.
7058 (DR_LOCAL_SLOWDOWN): Likewise.
7059 (DR_GLOBAL_SLOWDOWN): Likewise.
7060 (DR_CONTROL_RESERVED): Likewise.
7061 (I386_DR_CONTROL_MASK): Likewise.
7062 (I386_DR_VACANT): Likewise.
7063 (I386_DR_LOCAL_ENABLE): Likewise.
7064 (I386_DR_GLOBAL_ENABLE): Likewise.
7065 (I386_DR_DISABLE): Likewise.
7066 (I386_DR_SET_RW_LEN): Likewise.
7067 (I386_DR_GET_RW_LEN): Likewise.
7068 (I386_DR_WATCH_HIT): Likewise.
7069 (i386_wp_op_t): Likewise.
7070 (i386_show_dr): Likewise.
7071 (i386_length_and_rw_bits): Likewise.
7072 (i386_insert_aligned_watchpoint): Likewise.
7073 (i386_remove_aligned_watchpoint): Likewise.
7074 (i386_handle_nonaligned_watchpoint): Likewise.
7075 (i386_update_inferior_debug_regs): Likewise.
7076 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7077 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7078 (i386_region_ok_for_watchpoint):
7079 Use i386_dr_region_ok_for_watchpoint.
7080 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7082 2014-06-19 Gary Benson <gbenson@redhat.com>
7084 * i386-nat.c (i386_insert_hw_breakpoint): Use
7085 i386_insert_watchpoint.
7086 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7088 2014-06-19 Gary Benson <gbenson@redhat.com>
7090 * i386-nat.c (i386_dr_show): Renamed to
7091 i386_show_dr and made static. All uses updated.
7092 (i386_dr_length_and_rw_bits): Renamed to
7093 i386_length_and_rw_bits and made static.
7095 (i386_dr_insert_aligned_watchpoint): Renamed to
7096 i386_insert_aligned_watchpoint and made static.
7098 (i386_dr_remove_aligned_watchpoint): Renamed to
7099 i386_remove_aligned_watchpoint and made static.
7101 (i386_dr_update_inferior_debug_regs): Renamed to
7102 i386_update_inferior_debug_regs and made static.
7104 * nat/i386-dregs.h (i386_dr_show): Removed.
7105 (i386_dr_length_and_rw_bits): Likewise.
7106 (i386_dr_insert_aligned_watchpoint): Likewise.
7107 (i386_dr_remove_aligned_watchpoint): Likewise.
7108 (i386_dr_update_inferior_debug_regs): Likewise.
7110 2014-06-19 Gary Benson <gbenson@redhat.com>
7112 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7113 * configure: Regenerate.
7114 * config.in: Likewise.
7115 * main.c (signal.h): New include.
7116 (setup_alternate_signal_stack): New function.
7117 (captured_main): Call the above.
7118 * cp-support.c (signal.h): New include.
7119 (catch_demangler_crashes): New flag.
7120 (SIGJMP_BUF): New define.
7121 (SIGSETJMP): Likewise.
7122 (SIGLONGJMP): Likewise.
7123 (gdb_demangle_jmp_buf): New static global.
7124 (gdb_demangle_attempt_core_dump): Likewise.
7125 (gdb_demangle_signal_handler): New function.
7126 (gdb_demangle): If catch_demangler_crashes is set, install the
7127 above signal handler before calling bfd_demangle, and restore
7128 the original signal handler afterwards. Display the offending
7129 symbol and call demangler_warning the first time a segmentation
7131 (_initialize_cp_support): New maint set/show command.
7133 2014-06-19 Gary Benson <gbenson@redhat.com>
7135 * utils.h (resource_limit_kind): New enum.
7136 (can_dump_core): New declaration.
7137 (warn_cant_dump_core): Likewise.
7138 (dump_core): Likewise.
7139 * utils.c (dump_core): Made nonstatic. Added new
7140 parameter "limit_kind".
7141 (can_dump_core): Made nonstatic. Moved printing code to...
7142 (warn_cant_dump_core): New function.
7143 (can_dump_core_warn): Likewise.
7144 (internal_vproblem): Replace calls to can_dump_core with
7145 calls to can_dump_core_warn. Supply new argument to each.
7147 2014-06-19 Gary Benson <gbenson@redhat.com>
7149 * utils.h (demangler_vwarning): New declaration.
7150 (demangler_warning): Likewise.
7151 * utils.c (struct internal_problem)
7152 <user_settable_should_quit>: New field.
7153 <user_settable_should_dump_core>: Likewise
7154 (internal_error_problem): Add values for above new fields.
7155 (internal_warning_problem): Likewise.
7156 (demangler_warning_problem): New static global.
7157 (demangler_vwarning): New function.
7158 (demangler_warning): Likewise.
7159 (add_internal_problem_command): Selectively add commands.
7160 (_initialize_utils): New internal problem command.
7161 * maint.c (maintenance_demangler_warning): New function.
7162 (_initialize_maint_cmds): New command.
7164 2014-06-18 Tom Tromey <tromey@redhat.com>
7166 * f-valprint.c (info_common_command_for_block): Update.
7167 * symtab.h (struct general_symbol_info) <common_block>: Now
7170 2014-06-18 Tom Tromey <tromey@redhat.com>
7172 * symtab.h (struct symtab) <blockvector>: Now const.
7173 * ada-lang.c (ada_add_global_exceptions): Update.
7174 * buildsym.c (augment_type_symtab): Update.
7175 * dwarf2read.c (dw2_lookup_symbol): Update.
7176 * jit.c (finalize_symtab): Update.
7177 * jv-lang.c (add_class_symtab_symbol): Update.
7178 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7180 * objfiles.c (objfile_relocate1): Update.
7181 * psymtab.c (lookup_symbol_aux_psymtabs)
7182 (maintenance_check_psymtabs): Update.
7183 * python/py-symtab.c (stpy_global_block, stpy_static_block):
7185 * spu-tdep.c (spu_catch_start): Update.
7186 * symmisc.c (dump_symtab_1): Update.
7187 * symtab.c (lookup_global_symbol_from_objfile)
7188 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7189 (basic_lookup_transparent_type_quick)
7190 (basic_lookup_transparent_type, find_pc_sect_symtab)
7191 (find_pc_sect_line, search_symbols): Update.
7192 * block.c (find_block_in_blockvector): Make "bl" const.
7193 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7195 (blockvector_contains_pc): Make "bv" const.
7196 (block_for_pc_sect): Update.
7197 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7198 (blockvector_contains_pc): Update.
7199 * breakpoint.c (resolve_sal_pc): Update.
7200 * inline-frame.c (block_starting_point_at): Update.
7202 2014-06-18 Tom Tromey <tromey@redhat.com>
7204 * completer.c (complete_line): Make "line_buffer" const.
7205 * completer.h (complete_line): Update.
7207 2014-06-18 Tom Tromey <tromey@redhat.com>
7209 * symtab.c (add_macro_name): Remove unneeded cast.
7211 2014-06-18 Tom Tromey <tromey@redhat.com>
7213 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7214 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7216 2014-06-18 Tom Tromey <tromey@redhat.com>
7218 * probe.c (info_probes_for_ops): Make "arg" const.
7219 * probe.h (info_probes_for_ops): Update.
7221 2014-06-18 Tom Tromey <tromey@redhat.com>
7223 * varobj.c (varobj_create): Update.
7224 * valops.c (value_of_this): Update.
7225 * tracepoint.c (add_local_symbols, scope_info): Update.
7226 * symtab.h (struct general_symbol_info) <block>: Now const.
7227 * symtab.c (skip_prologue_sal)
7228 (default_make_symbol_completion_list_break_on)
7229 (skip_prologue_using_sal): Update.
7230 * stack.h (iterate_over_block_locals)
7231 (iterate_over_block_local_vars): Update.
7232 * stack.c (print_frame_args): Update.
7233 (iterate_over_block_locals, iterate_over_block_local_vars): Make
7235 (get_selected_block): Make return type const.
7236 * python/py-frame.c (frapy_block): Update.
7237 * python/py-block.c (gdbpy_block_for_pc): Update.
7238 * p-exp.y (%union) <bval>: Now const.
7239 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7240 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7241 * m2-exp.y (%union) <bval>: Now const.
7242 * linespec.c (get_current_search_block): Make return type const.
7243 (create_sals_line_offset, find_label_symbols): Update.
7244 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7246 (block_starting_point_at): Make "block" const.
7247 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7248 (check_exception_resume): Update.
7249 * guile/scm-frame.c (gdbscm_frame_block): Update.
7250 * guile/scm-block.c (gdbscm_lookup_block): Update.
7251 * frame.h (get_frame_block): Update.
7252 (get_selected_block): Make return type const.
7253 * frame.c (frame_id_inner): Update.
7254 * f-valprint.c (info_common_command_for_block)
7255 (info_common_command): Update.
7256 * dwarf2loc.c (dwarf2_find_location_expression)
7257 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7258 (locexpr_describe_location_piece): Update.
7259 * c-exp.y (%union) <bval>: Now const.
7260 * breakpoint.c (resolve_sal_pc): Update.
7261 * blockframe.c (get_frame_block):Make return type const.
7262 (get_pc_function_start, get_frame_function, find_pc_sect_function)
7263 (block_innermost_frame): Update.
7264 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7265 (block_for_pc, block_for_pc_sect): Update.
7266 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7268 (block_for_pc_sect, block_for_pc): Make return type const.
7269 * ax-gdb.c (gen_expr): Update.
7270 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7271 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7272 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7273 (ada_read_var_value): Update.
7274 * ada-exp.y (struct name_info) <block>: Now const.
7276 (block_lookup): Constify.
7278 2014-06-18 Gary Benson <gbenson@redhat.com>
7280 * nat/i386-dregs.h: New file.
7281 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7282 * i386-nat.h (i386-dregs.h): New include.
7283 (DR_FIRSTADDR): Now in i386-dregs.h.
7284 (DR_LASTADDR): Likewise.
7285 (DR_NADDR): Likewise.
7286 (DR_STATUS): Likewise.
7287 (DR_CONTROL): Likewise.
7288 (i386_debug_reg_state): Likewise.
7289 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7291 2014-06-18 Don Breazeal <donb@codesourcery.com>
7293 * breakpoint.c (set_longjmp_breakpoint): Call
7294 momentary_breakpoint_from_master with additional argument.
7295 (set_longjmp_breakpoint_for_call_dummy): Call
7296 momentary_breakpoint_from_master with additional argument.
7297 (set_std_terminate_breakpoint): Call
7298 momentary_breakpoint_from_master with additional argument.
7299 (momentary_breakpoint_from_master): Add argument to function
7300 definition and use it to initialize structure member flag.
7301 (clone_momentary_breakpoint): Call
7302 momentary_breakpoint_from_master with additional argument.
7303 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7304 member flags set in momentary_breakpoint_from_master.
7306 2014-06-18 Gary Benson <gbenson@redhat.com>
7308 * i386-nat.c (i386_show_dr): Renamed to
7309 i386_dr_show and made nonstatic. All uses updated.
7310 (i386_length_and_rw_bits): Renamed to
7311 i386_dr_length_and_rw_bits and made nonstatic.
7313 (i386_insert_aligned_watchpoint): Renamed to
7314 i386_dr_insert_aligned_watchpoint and made nonstatic.
7316 (i386_remove_aligned_watchpoint): Renamed to
7317 i386_dr_remove_aligned_watchpoint and made nonstatic.
7319 (i386_update_inferior_debug_regs): Renamed to
7320 i386_dr_update_inferior_debug_regs and made nonstatic.
7323 2014-06-18 Gary Benson <gbenson@redhat.com>
7325 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7326 (i386_dr_low_can_set_control): Likewise.
7327 (i386_dr_low_set_addr): Likewise.
7328 (i386_dr_low_set_control): Likewise.
7329 (i386_dr_low_get_addr): Likewise.
7330 (i386_dr_low_get_status): Likewise.
7331 (i386_dr_low_get_control): Likewise.
7332 (i386_insert_aligned_watchpoint): Use new macros.
7333 (i386_update_inferior_debug_regs): Likewise.
7334 (i386_stopped_data_address): Likewise.
7336 2014-06-18 Gary Benson <gbenson@redhat.com>
7338 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7339 New parameter. All uses updated.
7341 2014-06-18 Gary Benson <gbenson@redhat.com>
7343 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7346 2014-06-18 Gary Benson <gbenson@redhat.com>
7348 * i386-nat.c (debug_printf): New macro.
7349 (i386_get_debug_register_length): Likewise.
7350 (TARGET_HAS_DR_LEN_8): Use above macro.
7351 (i386_show_dr): Use debug_printf instead of puts_unfiltered
7352 and printf_unfiltered. Use phex to format values.
7354 2014-06-18 Gary Benson <gbenson@redhat.com>
7356 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7359 2014-06-18 Gary Benson <gbenson@redhat.com>
7361 * i386-nat.c: Comment changes.
7363 2014-06-18 Gary Benson <gbenson@redhat.com>
7365 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7367 2014-06-18 Gary Benson <gbenson@redhat.com>
7369 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7370 (i386_insert_aligned_watchpoint): Likewise.
7371 (i386_remove_aligned_watchpoint): Likewise.
7372 (i386_handle_nonaligned_watchpoint): Likewise.
7374 2014-06-18 Gary Benson <gbenson@redhat.com>
7376 * i386-nat.c: Whitespace changes.
7378 2014-06-17 Samuel Bronson <naesten@gmail.com>
7380 * MAINTAINERS: Update Roland McGrath's email address.
7381 Thanks to Sergio Durigan Junior for pointing out that he left
7382 Red Hat a while ago, and giving me a current address.
7384 2014-06-17 Tom Tromey <tromey@redhat.com>
7386 * utils.h (savestring): Remove declaration.
7388 2014-06-17 Tom Tromey <tromey@redhat.com>
7390 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7392 2014-06-16 Keith Seitz <keiths@redhat.com>
7395 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7396 to update the varobj if inferior_ptid is null_ptid.
7398 2014-06-16 Tom Tromey <tromey@redhat.com>
7400 * target.h (struct target_ops) <to_info_proc>: Make parameter
7402 (target_info_proc): Update.
7403 * target.c (target_info_proc): Make "args" const.
7404 * procfs.c (procfs_info_proc): Update.
7405 * linux-tdep.c (linux_info_proc): Update.
7406 (linux_core_info_proc_mappings): Make "args" const.
7407 (linux_core_info_proc): Update.
7408 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7409 * gdbarch.c: Rebuild.
7410 * gdbarch.h: Rebuild.
7411 * corelow.c (core_info_proc): Update.
7413 2014-06-16 Tom Tromey <tromey@redhat.com>
7415 * target.h (struct target_ops) <to_disconnect>: Make parameter
7417 (target_disconnect): Update.
7418 * target.c (target_disconnect): Make "args" const.
7419 * target-delegates.c: Rebuild.
7420 * remote.c (remote_disconnect): Update.
7421 * record.h (record_disconnect): Update.
7422 * record.c (record_disconnect): Update.
7423 * inf-child.c (inf_child_disconnect): Update.
7425 2014-06-16 Tom Tromey <tromey@redhat.com>
7427 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7428 * target.c (debug_to_rcmd, default_rcmd): Update.
7429 * target-delegates.c: Rebuild.
7430 * remote.c (remote_rcmd): Update.
7431 * monitor.c (monitor_rcmd): Update.
7433 2014-06-16 Pedro Alves <palves@redhat.com>
7435 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7436 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7437 have OBJF_SHARED set.
7438 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7439 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7440 instead of OBJF_USERLOADED.
7441 * objfiles.h (OBJF_SHARED): Update comment.
7442 (userloaded_objfile_contains_address_p): Rename to ...
7443 (shared_objfile_contains_address_p): ... this, and update
7445 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7447 (remove_symbol_file_command): Skip objfiles that don't have
7450 2014-06-16 Tom Tromey <tromey@redhat.com>
7452 * minsyms.h (prim_record_minimal_symbol)
7453 (prim_record_minimal_symbol_and_info): Update comments.
7455 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7457 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7458 or --without-guile, according to how GDB was built.
7460 2014-06-13 Tom Tromey <tromey@redhat.com>
7462 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7464 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7466 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7468 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7469 help_list.Pass all_commands, not -1, to help_list.
7470 * cli/cli-dump.c (dump_command, append_command)
7471 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7472 (binary_dump_command, binary_append_command): Pass all_commands,
7473 not -1, to help_list.
7474 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7476 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7478 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7480 * top.c (set_history): Pass all_commands, not -1, to help_list.
7481 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7482 all_commands, not -1, to help_list.
7483 * symfile.c (overlay_command): Pass all_commands, not -1, to
7485 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7487 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7489 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7491 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7492 not -1, to help_list.
7493 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7494 not -1, to help_list.
7495 * maint.c (maintenance_command, maintenance_info_command)
7496 (maintenance_print_command, maintenance_set_cmd): Pass
7497 all_commands, not -1, to help_list.
7498 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7500 * language.c (set_check): Pass all_commands, not -1, to help_list.
7501 * infcmd.c (unset_command): Pass all_commands, not -1, to
7503 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7505 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7507 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7509 * breakpoint.c (save_command): Pass all_commands, not -1, to
7511 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7512 all_commands, not -1, to help_list.
7514 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7516 * regcache.c (struct register_to_invalidate): New structure.
7517 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7519 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7521 2014-06-12 Yao Qi <yao@codesourcery.com>
7523 * varobj.c (varobj_get_num_children): Call
7524 varobj_is_dynamic_p.
7525 (varobj_list_children): Likewise.
7526 (varobj_update): Likewise. Update comments.
7528 2014-06-12 Yao Qi <yao@codesourcery.com>
7530 * varobj.c (varobj_pretty_printed_p): Rename to ...
7531 (varobj_is_dynamic_p): ... this. New function.
7532 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7533 (varobj_is_dynamic_p): Declare.
7534 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7535 (mi_print_value_p, varobj_update_one): Likewise.
7537 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7538 Yao Qi <yao@codesourcery.com>
7540 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7541 (varobj_get_iterator): Wrap up code for pretty-printer by
7542 "#if HAVE_PYTHON" and "#endif".
7543 (update_dynamic_varobj_children): Likewise.
7545 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7546 Yao Qi <yao@codesourcery.com>
7548 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7549 gdb_python_initialized is false. Move some code from varobj.c.
7550 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7551 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7552 (struct varobj_item): Moved to varobj-iter.h".
7553 (varobj_clear_saved_item): New function.
7554 (update_dynamic_varobj_children): Move python-related code to
7556 (free_variable): Call varobj_clear_saved_item and
7559 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7560 Yao Qi <yao@codesourcery.com>
7562 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7563 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7564 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7565 (py-varobj.o): New rule.
7566 * python/py-varobj.c: New file.
7567 * python/python-internal.h (py_varobj_get_iterator): Declare.
7568 * varobj-iter.h: New file.
7569 * varobj.c: Include "varobj-iter.h"
7570 (struct varobj) <child_iter>: Change its type from "PyObject *"
7571 to "struct varobj_iter *".
7572 <saved_item>: Likewise.
7573 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7574 [HAVE_PYTHON] (varobj_get_iterator): New function.
7575 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7576 python-specific code to python/py-varobj.c.
7577 (install_visualizer): Call varobj_iter_delete instead of
7579 * varobj.h (varobj_ensure_python_env): Declare.
7581 2014-06-12 Yao Qi <yao@codesourcery.com>
7583 * varobj.c (struct varobj_item): New structure.
7584 (create_child_with_value): Update declaration.
7585 (varobj_add_child): Replace arguments 'name' and 'value' with
7586 'item'. All callers updated.
7587 (install_dynamic_child): Likewise.
7588 (update_dynamic_varobj_children): Likewise.
7589 (varobj_add_child): Likewise.
7590 (create_child_with_value): Likewise.
7592 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7594 * NEWS: Create a new section for the next release branch.
7595 Rename the section of the current branch, now that it has
7598 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7600 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7601 * version.in: Bump version to 7.8.50.DATE-cvs.
7603 2014-06-11 Pedro Alves <palves@redhat.com>
7606 * ser-mingw.c (net_windows_socket_check_pending): New function.
7607 (net_windows_select_thread): Ignore spurious wakeups. Use
7608 net_windows_socket_check_pending.
7609 (net_windows_wait_handle): Check for pending events with
7610 ioctlsocket, through net_windows_socket_check_pending, instead of
7611 checking the socket's event.
7613 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7615 * python/python-internal.h (gdb_PyObject_GetAttrString)
7616 (gdb_PyObject_HasAttrString): New inline function definitions.
7617 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7618 char * of the second argument to PyObject_GetAttrString.
7620 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7622 * serial.c (serial_write): Fix index of character to be printed
7623 in call to serial_logchar when serial debug traces are enabled.
7625 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7627 * gdbtypes (resolve_dynamic_range): Add function description.
7629 2014-06-09 Pedro Alves <palves@redhat.com>
7631 * linux-nat.c (linux_child_follow_fork): Initialize status with
7632 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7633 inner block. Only pass the signal to PTRACE_DETACH if in pass
7636 2014-06-09 Gary Benson <gbenson@redhat.com>
7638 * common/signals.c (gdb_signal_from_host): Reorder to separate
7639 the always-available ANSI-standard signals from the signals that
7641 (do_gdb_signal_to_host): Likewise.
7642 * proc-events.c (signal_table): Likewise.
7644 2014-06-08 Hui Zhu <hui@codesourcery.com>
7646 * common/linux-ptrace.c (linux_disable_event_reporting): New
7648 * common/linux-ptrace.h (linux_disable_event_reporting): New
7650 * linux-nat.c (linux_child_follow_fork): Do a single step before
7653 2014-06-07 Keith Seitz <keiths@redhat.com>
7657 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7658 from symbol_matches_domain in symtab.c. All local callers
7659 of symbol_matches_domain updated.
7660 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7661 search STRUCT_DOMAIN.
7662 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7663 independently. standard_lookup will do that automatically.
7664 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7665 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7666 (cp_lookup_symbol_in_namespace): Likewise.
7667 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7668 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7669 may return a STRUCT_DOMAIN match.
7670 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7671 * cp-support.c: Include language.h.
7672 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7674 * psymtab.c (match_partial_symbol): Compare the requested
7675 domain with the symbol's domain directly.
7676 (lookup_partial_symbol): Likewise.
7677 * symtab.c (lookup_symbol_in_language): Explain when/why
7678 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7679 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7680 appropriate languages.
7681 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7682 and moved to ada-lang.c
7683 (lookup_block_symbol): Explain that this function only returns
7684 symbol matching the requested DOMAIN.
7685 Compare the requested domain with the symbol's domain directly.
7686 (iterate_over_symbols): Compare the requested domain with the
7687 symbol's domain directly.
7688 * symtab.h (symbol_matches_domain): Remove.
7690 2014-06-06 Doug Evans <xdje42@gmail.com>
7692 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7693 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7694 (gdbscm_guile_version_is_at_least): Declare.
7695 (gdbscm_scm_string_to_int): Declare.
7696 * guile/guile.c (gdbscm_guile_major_version): New global.
7697 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7698 (guile_datadir): New static global.
7699 (gdbscm_guile_data_directory): New function.
7700 (initialize_scheme_side): Update.
7701 (misc_guile_functions): Add guile-data-directory.
7702 (initialize_gdb_module): Fetch guile version number.
7703 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7704 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7705 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7706 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7708 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7709 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7710 * guile/scm-value.c (gdbscm_value_to_string): Only call
7711 scm_port_conversion_strategy if Guile version >= 2.0.6.
7713 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7715 * main.c (print_gdb_help): Add -q and --silent.
7717 2014-06-06 Gary Benson <gbenson@redhat.com>
7719 * common/signals.c: Remove preprocessor conditionals for
7720 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7721 SIGSEGV and SIGTERM.
7722 * proc-events.c: Likewise.
7724 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7726 * symfile.c (symfile_free_objfile): Remove restriction to
7728 * symfile-mem.c (symbol_file_add_from_memory): Call
7729 add_target_sections_of_objfile.
7731 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7733 * guile/scm-value.c (gdbscm_history_append_x): Use
7734 'vlscm_get_value_smob_arg_unsafe' instead of
7735 'vlscm_scm_to_value'.
7737 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7740 * utils.c (printchar): Don't escape at all if quoter is NUL.
7741 Update function documentation to clarify effect of parameter
7743 * remote.c (escape_buffer): Pass '\\' as the quoter to
7744 fputstrn_unfiltered.
7745 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7746 generate the output.
7747 (mi_solib_unloaded): Same.
7749 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7751 * development.sh: Delete.
7752 * Makefile.in (config.status): Adjust dependency on development.sh.
7753 * configure.ac: Adjust development.sh source call.
7754 * configure: Regenerate.
7756 2014-06-04 Doug Evans <xdje42@gmail.com>
7758 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7759 is_scheme_bkpt, spec.
7760 (bpscm_make_breakpoint_smob): Initialize new members.
7761 (gdbscm_create_breakpoint_x): Split into two ...
7762 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7763 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7764 (scheme_function breakpoint_functions): Update.
7765 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7766 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7767 register-breakpoint!.
7769 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7772 * mem-break.c (z_type_supported): Return zero if
7773 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7775 2014-06-04 Tom Tromey <tromey@redhat.com>
7777 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7778 value_from_contents_and_address_unresolved.
7779 (ada_template_to_fixed_record_type_1): Likewise.
7780 (ada_which_variant_applies): Likewise.
7781 * value.h (value_from_contents_and_address_unresolved): Declare.
7782 * value.c (value_from_contents_and_address_unresolved): New
7784 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7785 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7786 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7788 2014-06-04 Tom Tromey <tromey@redhat.com>
7790 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7792 2014-06-04 Tom Tromey <tromey@redhat.com>
7794 * procfs.c (procfs_attach): Make "args" const.
7795 * windows-nat.c (windows_attach): Make "args" const.
7796 * nto-procfs.c (procfs_attach): Make "args" const.
7797 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7798 * go32-nat.c (go32_attach): Make "args" const.
7799 * gnu-nat.c (gnu_attach): Make "args" const.
7800 * darwin-nat.c (darwin_attach): Make "args" const.
7801 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7802 * linux-nat.c (linux_nat_attach): Make "args" const.
7803 * remote.c (extended_remote_attach_1, extended_remote_attach):
7805 * target.h (struct target_ops) <to_attach>: Make "args" const.
7806 (find_default_attach): Likewise.
7807 * utils.c (parse_pid_to_attach): Make "args" const.
7808 * utils.h (parse_pid_to_attach): Update.
7810 2014-06-04 Tom Tromey <tromey@redhat.com>
7812 * target-delegates.c: Rebuild.
7813 * target.c (default_thread_address_space): New function.
7814 (target_thread_address_space): Simplify.
7815 * target.h (struct target_ops) <to_thread_address_space>: Add
7816 TARGET_DEFAULT_FUNC.
7818 2014-06-04 Doug Evans <xdje42@gmail.com>
7820 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7822 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7824 * record-btrace.c: Include event-loop.h and inf-loop.h.
7825 (record_btrace_resume_exec_dir)
7826 (record_btrace_async_inferior_event_handler)
7827 (record_btrace_handle_async_inferior_event): New.
7828 (record_btrace_open): Create async event handler.
7829 (record_btrace_close): Delete async event handler.
7830 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7831 Mark async event handler.
7832 (record_btrace_execution_direction): New.
7833 (init_record_btrace_ops): Initialize to_execution_direction.
7835 2014-06-03 Doug Evans <xdje42@gmail.com>
7837 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7838 (gdbscm_make_parameter): Ditto.
7840 2014-06-03 Doug Evans <dje@google.com>
7842 * exec.c (exec_close_1): Call clear_section_table instead of
7843 resize_section_table.
7844 (clear_section_table): New function.
7845 (resize_section_table): Make static. Rename arg num_added to
7847 * exec.h (clear_section_table): Declare.
7848 (resize_section_table): Delete.
7849 * progspace.c (release_program_space): Call clear_section_table
7850 instead of resize_section_table.
7852 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7854 * NEWS (Python Scripting): Add entry about the new xmethods
7857 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7859 * python/py-xmethods.c: New file.
7860 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7861 (objfpy_dealloc): XDECREF on the new xmethods field.
7862 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7864 (objfpy_get_xmethods): New function.
7865 (objfile_getset): New entry 'xmethods'.
7866 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7867 (pspy_dealloc): XDECREF on the new xmethods field.
7868 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7870 (pspy_get_xmethods): New function.
7871 (pspace_getset): New entry 'xmethods'.
7872 * python/python-internal.h: Add declarations for new functions.
7873 * python/python.c (_initialize_python): Invoke
7874 gdbpy_initialize_xmethods.
7875 * python/lib/gdb/__init__.py (xmethods): New
7877 * python/lib/gdb/xmethod.py: New file.
7878 * python/lib/gdb/command/xmethods.py: New file.
7880 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7882 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7883 best match method returned by find_overload_match is an xmethod.
7884 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7885 the best matching operator returned by find_overload_match is an
7887 * valops.c: #include "extension.h".
7888 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7889 Return void. The list of matching source methods is returned in
7890 "fn_list" and a vector of matching debug method workers is
7891 returned in "xm_worker_vec". Update all callers.
7892 (value_find_oload_method_list): Likewise.
7893 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7894 non-NULL, then the index of the best matching method in this
7895 vector is returned. Update all callers.
7896 (find_overload_match): Include xmethods while performing overload
7899 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7901 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7902 * extension-priv.h (struct extension_language_ops): Add the
7904 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7905 get_matching_xmethod_workers, get_xmethod_argtypes,
7906 invoke_xmethod, free_xmethod_worker,
7907 free_xmethod_worker_vec): New functions.
7908 * extension.h: #include "common/vec.h".
7909 New function declarations.
7910 (struct xmethod_worker): New struct.
7911 (VEC (xmethod_worker_ptr)): New vector type.
7912 (xmethod_worker_ptr): New typedef.
7913 (xmethod_worker_vec): Likewise.
7914 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7916 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7917 (struct builtin_type): New field "xmethod".
7918 * valarith.c (value_ptradd): Assert that the value argument is not
7920 * valops.c (value_must_coerce_to_target): Return 0 for
7921 lval_xcallable values.
7922 * value.c (struct value): New field XM_WORKER in the field
7924 (value_address, value_raw_address): Return 0 for lval_xcallable
7926 (set_value_address): Assert that the value is not an
7928 (value_free): Free the associated xmethod worker when freeing
7929 lval_xcallable values.
7930 (set_value_component_location): Assert that the WHOLE value is not
7932 (value_of_xmethod, call_xmethod): New functions.
7933 * value.h: Declare "struct xmethod_worker".
7934 Declare new functions value_of_xmethod, call_xmethod.
7936 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7937 Pedro Alves <palves@redhat.com>
7939 PR breakpoints/17000
7940 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7941 New function, extracted from software_breakpoint_inserted_here_p.
7942 (software_breakpoint_inserted_here_p): Replace factored out code
7943 by call to find_non_raw_software_breakpoint_inserted_here.
7944 (bp_target_info_copy_insertion_state): New function.
7945 (bkpt_insert_location): Handle the case of a single-step
7946 breakpoint already inserted at the same address.
7947 (bkpt_remove_location): Handle the case of a single-step
7948 breakpoint still inserted at the same address.
7949 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7950 breakpoint already inserted at the same address.
7951 (deprecated_remove_raw_breakpoint): Handle the case of a
7952 non-raw breakpoint still inserted at the same address.
7953 (find_single_step_breakpoint): New function, extracted from
7954 single_step_breakpoint_inserted_here_p.
7955 (find_single_step_breakpoint): New function,
7956 factored out from single_step_breakpoint_inserted_here_p.
7957 (single_step_breakpoint_inserted_here_p): Reimplement.
7959 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7961 Pushed by Joel Brobecker <brobecker@adacore.com>
7962 * source.c (show_substitute_path_command): Fix display of matching
7965 2014-06-03 Gary Benson <gbenson@redhat.com>
7967 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7969 2014-06-02 Doug Evans <xdje42@gmail.com>
7971 Add parameter support for Guile.
7972 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7973 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7974 (scm-param.o): New rule.
7975 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7976 (gdbscm_misc_error): Declare.
7977 (gdbscm_canonicalize_command_name): Declare.
7978 (gdbscm_scm_to_host_string): Declare.
7979 (gdbscm_scm_from_host_string): Declare.
7980 (gdbscm_initialize_parameters): Declare.
7981 * guile/guile.c (initialize_gdb_module): Call
7982 gdbscm_initialize_parameters.
7983 * guile/lib/gdb.scm: Export parameter symbols.
7984 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7985 cmdscm_canonicalize_name and made public. All callers updated.
7986 * guile/scm-exception.c (gdbscm_misc_error): New function.
7987 * guile/scm-param.c: New file.
7988 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7989 (gdbscm_scm_to_host_string): New function.
7990 (gdbscm_scm_from_host_string): New function.
7991 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7993 2014-06-02 Doug Evans <xdje42@gmail.com>
7995 Add command support for Guile.
7996 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7997 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7998 (scm-cmd.o): New rule.
7999 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
8000 (gdbscm_user_error_p): Declare.
8001 (gdbscm_parse_command_name): Declare.
8002 (gdbscm_valid_command_class_p): Declare.
8003 (gdbscm_initialize_commands): Declare.
8004 * guile/guile.c (initialize_gdb_module): Call
8005 gdbscm_initialize_commands.
8006 * guile/lib/gdb.scm: Export command symbols.
8007 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
8008 (throw-user-error): New function.
8009 * guile/scm-cmd.c: New file.
8010 * guile/scm-exception.c (user_error_symbol): New static global.
8011 (gdbscm_user_error_p): New function.
8012 (gdbscm_initialize_exceptions): Set user_error_symbol.
8013 * scm-utils.c (gdbscm_gc_xstrdup): New function.
8015 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
8017 * top.c (command_loop): Handle comments here...
8018 (command_line_input): ... not here.
8020 2014-06-02 Doug Evans <xdje42@gmail.com>
8022 Add progspace support for Guile.
8023 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8024 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8025 (scm-progspace.o): New rule.
8026 * guile/guile-internal.h (pspace_smob): New typedef.
8027 (psscm_pspace_smob_pretty_printers): Declare.
8028 (psscm_pspace_smob_from_pspace): Declare.
8029 (psscm_scm_from_pspace): Declare.
8030 * guile/guile.c (initialize_gdb_module): Call
8031 gdbscm_initialize_pspaces.
8032 * guile/lib/gdb.scm: Export progspace symbols.
8033 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8035 (append-pretty-printer!): Ditto.
8036 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8038 * guile/scm-progspace.c: New file.
8040 2014-06-03 Alan Modra <amodra@gmail.com>
8042 * ppc64-tdep.c (ppc64_standard_linkage8): New.
8043 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8045 2014-06-02 Doug Evans <dje@google.com>
8047 Add support for skeletonless type units.
8048 * dwarf2read.c (struct dwarf2_per_objfile): New member
8049 n_allocated_type_units.
8050 (struct dwarf2_per_objfile) <tu_stats>: New member
8051 nr_all_type_units_reallocs.
8052 (create_signatured_type_table_from_index): Initialize
8053 n_allocated_type_units
8054 (create_all_type_units): Ditto.
8055 (add_type_unit): Move up in file. New arg slot.
8056 All callers updated. Increase space for all_type_units more
8058 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8059 (lookup_dwo_signatured_type): Handle skeletonless TUs.
8060 (lookup_dwp_signatured_type): Ditto.
8061 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8062 All callers updated.
8063 (build_type_psymtabs_1): Leave type_unit_groups as
8064 NULL if no TUs present.
8065 (print_tu_stats): New function.
8066 (process_skeletonless_type_unit): New function.
8067 (process_dwo_file_for_skeletonless_type_units): New
8069 (process_skeletonless_type_units): New function.
8070 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8071 Call print tu_stats if debugging enabled.
8073 2014-06-02 Pedro Alves <palves@redhat.com>
8075 * breakpoint.c (build_target_command_list): Don't build a command
8076 list if we have any duplicate location that isn't a dprintf.
8078 2014-06-02 Pedro Alves <palves@redhat.com>
8080 * breakpoint.c (dprintf_breakpoint_hit): New function.
8081 (initialize_breakpoint_ops): Install it as dprintf's
8082 breakpoint_hit method.
8084 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8086 * source.c (substitute_path_rule_matches): Simplify using
8087 filename_ncmp instead of FILENAME_CMP.
8089 2014-06-02 Joel Brobecker <brobecker@adacore.com>
8091 * source.c (substitute_path_rule_matches): Remove trailing spaces.
8093 2014-06-01 Ludovic Courtès <ludo@gnu.org>
8095 * configure.ac: When Guile is available, check for the
8096 availability of 'scm_new_smob'.
8097 * configure, config.h.in: Regenerate.
8098 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8101 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8103 * frame.c (struct frame_info): Add stop_string field.
8104 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8105 (get_prev_frame_always): Old content moved into
8106 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
8107 TRY_CATCH, handle MEMORY_ERROR exceptions.
8108 (frame_stop_reason_string): New function definition.
8109 * frame.h (unwind_stop_reason_to_string): Extend comment to
8110 mention frame_stop_reason_string.
8111 (frame_stop_reason_string): New function declaration.
8112 * stack.c (frame_info): Switch to frame_stop_reason_string.
8113 (backtrace_command_1): Switch to frame_stop_reason_string.
8114 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8115 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8116 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8118 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8120 * frame.c (frame_stop_reason_string): Rename to ...
8121 (unwind_stop_reason_to_string): this.
8122 * frame.h (frame_stop_reason_string): Rename to ...
8123 (unwind_stop_reason_to_string): this.
8124 * stack.c (frame_info): Update call to frame_stop_reason_string.
8125 (backtrace_command_1): Likewise.
8126 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8127 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8129 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
8131 * frame.c (remove_prev_frame): New function.
8132 (get_prev_frame_if_no_cycle): Create / discard cleanup using
8135 2014-05-29 Pedro Alves <palves@redhat.com>
8137 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8138 and make it const. When a single-step decays to a continue,
8139 clear 'step', not 'hw_step'. Pass whether the caller wanted
8140 to step to user_visible_resume_ptid, not what we ask the
8143 2014-05-29 Pedro Alves <palves@redhat.com>
8145 * infrun.c (process_event_stop_test, handle_step_into_function)
8146 (handle_step_into_function_backward): Adjust.
8147 Don't set the even thread's stop_step and call stop_waiting before
8148 calling end_stepping_range. Instead do that ...
8149 (end_stepping_range): ... here. Take an ecs pointer parameter.
8151 2014-05-29 Pedro Alves <palves@redhat.com>
8153 * infrun.c (stop_stepping): Rename to ...
8154 (stop_waiting): ... this.
8155 (proceed): Update comment.
8156 (process_event_stop_test, handle_inferior_event)
8157 (handle_signal_stop, handle_step_into_function)
8158 (handle_step_into_function_backward): Update.
8160 2014-05-29 Pedro Alves <palves@redhat.com>
8162 * infcall.c (run_inferior_call): Don't check whether the current
8163 thread is running after the proceed call.
8165 2014-05-29 Pedro Alves <palves@redhat.com>
8166 Tom Tromey <tromey@redhat.com>
8168 * NEWS: Mention "maint set target-async", "set mi-async", and that
8169 background execution commands are now always available.
8170 * target.h (target_async_permitted): Update comment.
8171 * target.c (target_async_permitted, target_async_permitted_1):
8173 (set_target_async_command): Rename to ...
8174 (maint_set_target_async_command): ... this.
8175 (show_target_async_command): Rename to ...
8176 (maint_show_target_async_command): ... this.
8177 (_initialize_target): Adjust.
8178 * infcmd.c (prepare_execution_command): Make extern.
8179 * inferior.h (prepare_execution_command): Declare.
8180 * infrun.c (set_observer_mode): Leave target async alone.
8181 * mi/mi-interp.c (mi_interpreter_init): Install
8182 mi_on_sync_execution_done as sync_execution_done observer.
8183 (mi_on_sync_execution_done): New function.
8184 (mi_execute_command_input_handler): Don't print the prompt if we
8185 just started a synchronous command with an async target.
8186 (mi_on_resume): Check sync_execution before printing prompt.
8187 * mi/mi-main.h (mi_async_p): Declare.
8188 * mi/mi-main.c: Include gdbcmd.h.
8189 (mi_async_p): New function.
8190 (mi_async, mi_async_1): New globals.
8191 (set_mi_async_command, show_mi_async_command, mi_async): New
8193 (exec_continue): Call prepare_execution_command.
8194 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8195 (mi_execute_async_cli_command): Use mi_async_p.
8196 (_initialize_mi_main): Install "set mi-async". Make
8197 "target-async" a deprecated alias.
8199 2014-05-29 Pedro Alves <palves@redhat.com>
8201 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8202 (_initialize_cli_interp): Adjust.
8203 * event-loop.c: Include "observer.h".
8204 (start_event_loop): Notify 'command_error' observers instead of
8205 calling display_gdb_prompt. Remove FIXME comment.
8206 * event-top.c (display_gdb_prompt): Remove call into the
8208 * inf-loop.c: Include "observer.h".
8209 (inferior_event_handler): Notify 'command_error' observers instead
8210 of calling display_gdb_prompt.
8211 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8212 observers instead of calling display_gdb_prompt.
8213 * interps.c (interp_set): Don't call display_gdb_prompt.
8214 (current_interp_display_prompt_p): Delete.
8215 * interps.h (interp_prompt_p): Delete declaration.
8216 (interp_prompt_p_ftype): Delete.
8217 (struct interp_procs) <prompt_proc_p>: Delete field.
8218 (current_interp_display_prompt_p): Delete declaration.
8219 * mi-interp.c (mi_interpreter_prompt_p): Delete.
8220 (_initialize_mi_interp): Adjust.
8221 * tui-interp.c (tui_init): Install 'sync_execution_done' and
8222 'command_error' observers.
8223 (tui_on_sync_execution_done, tui_on_command_error): New
8225 (tui_display_prompt_p): Delete.
8226 (_initialize_tui_interp): Adjust.
8228 2014-05-29 Pedro Alves <palves@redhat.com>
8231 * cli/cli-interp.c: Include infrun.h and observer.h.
8232 (cli_uiout, cli_interp): New globals.
8233 (cli_on_signal_received, cli_on_end_stepping_range)
8234 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8236 (cli_interpreter_init): Install them as 'end_stepping_range',
8237 'signal_received' 'signal_exited', 'exited' and 'no_history'
8239 (_initialize_cli_interp): Remove cli_interp local.
8240 * infrun.c (handle_inferior_event): Call the several stop reason
8241 observers instead of printing the stop reason directly.
8242 (end_stepping_range): New function.
8243 (print_end_stepping_range_reason, print_signal_exited_reason)
8244 (print_exited_reason, print_signal_received_reason)
8245 (print_no_history_reason): Make static, and add an uiout
8246 parameter. Print to that instead of to CURRENT_UIOUT.
8247 * infrun.h (print_end_stepping_range_reason)
8248 (print_signal_exited_reason, print_exited_reason)
8249 (print_signal_received_reason print_no_history_reason): New
8251 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8253 <cli_uiout>: New field.
8254 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
8255 uiout for CLI output. Install 'signal_received',
8256 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8258 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8259 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8260 (mi_on_no_history): New functions.
8261 (ui_out_free_cleanup): Delete function.
8262 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8263 instead use the one already stored in the MI interpreter data.
8264 (mi_ui_out): Adjust.
8265 * tui/tui-interp.c: Include infrun.h and observer.h.
8266 (tui_interp): New global.
8267 (tui_on_signal_received, tui_on_end_stepping_range)
8268 (tui_on_signal_exited, tui_on_exited)
8269 (tui_on_no_history): New functions.
8270 (tui_init): Install them as 'end_stepping_range',
8271 'signal_received' 'signal_exited', 'exited' and 'no_history'
8273 (_initialize_tui_interp): Delete tui_interp local.
8275 2014-05-29 Pedro Alves <palves@redhat.com>
8278 * linux-nat.c (linux_nat_resume_callback): Rename the second
8279 parameter to 'except'. Skip LP if it points to EXCEPT.
8280 (linux_nat_resume): Don't mark the event lwp as not stopped
8281 before resuming sibling lwps. Instead ask
8282 linux_nat_resume_callback to skip the event lwp. Mark it as not
8283 stopped after actually resuming it.
8284 (linux_handle_syscall_trap): Mark the lwp as not stopped after
8286 (wait_lwp): Mark the lwp as stopped here.
8287 (stop_wait_callback): Mark the lwp as not stopped right after
8288 resuming it. Don't mark lwps as stopped here.
8289 (linux_nat_filter_event): Mark the lwp as stopped earlier.
8290 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8292 2014-05-29 Pedro Alves <palves@redhat.com>
8295 * infrun.c (resume): Determine how much to resume depending on
8296 whether the caller wanted a step, not whether we can hardware step
8297 the target. Mark all threads that we intend to run as running,
8298 unless we're calling an inferior function.
8299 (normal_stop): If the thread is running an infcall, don't finish
8301 * target.c (target_resume): Don't mark threads as running here.
8303 2014-05-28 Joel Brobecker <brobecker@adacore.com>
8305 * serial.c (_initialize_serial): Remove support for
8306 the "set remotebaud" and "show remotebaud" commands.
8307 * NEWS: Add entry documenting the removal of that command.
8309 2014-05-28 Yao Qi <yao@codesourcery.com>
8311 * charset.c: Fix typo in comments.
8313 2014-05-27 Gary Benson <gbenson@redhat.com>
8315 * utils.c (internal_vproblem): Prompt for a bug report.
8317 2014-05-26 Andy Wingo <wingo@igalia.com>
8319 * guile/scm-arch.c (arscm_mark_arch_smob):
8320 * guile/scm-block.c (bkscm_mark_block_smob)
8321 (bkscm_mark_block_syms_progress_smob):
8322 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8323 * guile/scm-exception.c (exscm_mark_exception_smob):
8324 * guile/scm-frame.c (frscm_mark_frame_smob):
8325 * guile/scm-iterator.c (itscm_mark_iterator_smob):
8326 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8327 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8328 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8329 (ppscm_mark_pretty_printer_worker_smob):
8330 * guile/scm-symbol.c (syscm_mark_symbol_smob):
8331 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8332 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8333 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8335 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8338 2014-05-26 Andy Wingo <wingo@igalia.com>
8339 Doug Evans <xdje42@gmail.com>
8341 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8342 empty_base_class. All uses updated.
8343 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8344 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8346 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8347 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8348 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8349 (gdbscm_gsmob_has_property_p, add_property_name)
8350 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8351 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8352 (gdb-object-has-property?, gdb-object-properties): Remove.
8353 (gdb-object-kind): Renamed from gsmob-kind.
8355 2014-05-26 Andy Wingo <wingo@igalia.com>
8357 * configure.ac (try_guile_versions): Allow building with guile 2.2.
8358 * configure: Regenerate.
8360 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8362 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8364 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
8366 * record-btrace.c (record_btrace_allow_memory_access): Remove.
8367 (replay_memory_access_read_only, replay_memory_access_read_write)
8368 (replay_memory_access_types, replay_memory_access)
8369 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8370 (cmd_set_record_btrace, cmd_show_record_btrace)
8371 (cmd_show_replay_memory_access): New.
8372 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8373 (record_btrace_remove_breakpoint): Replace
8374 record_btrace_allow_memory_access with replay_memory_access.
8375 (_initialize_record_btrace): Add commands.
8376 * NEWS: Announce it.
8378 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8380 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8382 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8384 * MAINTAINERS (Write After Approval): Move self back from
8387 2014-05-22 Pedro Alves <palves@redhat.com>
8389 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8390 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8391 (disable_randomization, enum exec_direction_kind)
8392 (execution_direction, stop_registers, start_remote)
8393 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8394 (wait_for_inferior, normal_stop, get_last_target_status)
8395 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8396 (insert_step_resume_breakpoint_at_sal)
8397 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8398 (set_step_info, print_stop_event, signal_stop_state)
8399 (signal_print_state, signal_pass_state, signal_stop_update)
8400 (signal_print_update, signal_pass_update)
8401 (update_signals_program_target, clear_exit_convenience_vars)
8402 (displaced_step_dump_bytes, update_observer_mode)
8403 (signal_catch_update, gdb_signal_from_command): Move
8405 * infrun.h: ... to this new file.
8406 * amd64-tdep.c: Include infrun.h.
8407 * annotate.c: Include infrun.h.
8408 * arch-utils.c: Include infrun.h.
8409 * arm-linux-tdep.c: Include infrun.h.
8410 * arm-tdep.c: Include infrun.h.
8411 * break-catch-sig.c: Include infrun.h.
8412 * breakpoint.c: Include infrun.h.
8413 * common/agent.c: Include infrun.h instead of inferior.h.
8414 * corelow.c: Include infrun.h.
8415 * event-top.c: Include infrun.h.
8416 * go32-nat.c: Include infrun.h.
8417 * i386-tdep.c: Include infrun.h.
8418 * inf-loop.c: Include infrun.h.
8419 * infcall.c: Include infrun.h.
8420 * infcmd.c: Include infrun.h.
8421 * infrun.c: Include infrun.h.
8422 * linux-fork.c: Include infrun.h.
8423 * linux-nat.c: Include infrun.h.
8424 * linux-thread-db.c: Include infrun.h.
8425 * monitor.c: Include infrun.h.
8426 * nto-tdep.c: Include infrun.h.
8427 * procfs.c: Include infrun.h.
8428 * record-btrace.c: Include infrun.h.
8429 * record-full.c: Include infrun.h.
8430 * remote-m32r-sdi.c: Include infrun.h.
8431 * remote-mips.c: Include infrun.h.
8432 * remote-notif.c: Include infrun.h.
8433 * remote-sim.c: Include infrun.h.
8434 * remote.c: Include infrun.h.
8435 * reverse.c: Include infrun.h.
8436 * rs6000-tdep.c: Include infrun.h.
8437 * s390-linux-tdep.c: Include infrun.h.
8438 * solib-irix.c: Include infrun.h.
8439 * solib-osf.c: Include infrun.h.
8440 * solib-svr4.c: Include infrun.h.
8441 * target.c: Include infrun.h.
8442 * top.c: Include infrun.h.
8443 * windows-nat.c: Include infrun.h.
8444 * mi/mi-interp.c: Include infrun.h.
8445 * mi/mi-main.c: Include infrun.h.
8446 * python/py-threadevent.c: Include infrun.h.
8448 2014-05-22 Pedro Alves <palves@redhat.com>
8450 * infrun.c (handle_inferior_event): Store the exit code for
8451 --return-child-result here, instead of ...
8452 (print_exited_reason): ... here.
8454 2014-05-21 Pedro Alves <palves@redhat.com>
8457 * gdbthread.h (struct thread_control_state): New field
8459 * infrun.c (follow_fork): Copy the new thread control field to the
8461 (clear_proceed_status_thread): Clear the new thread control field.
8462 (proceed): Set the new thread control field.
8463 * interps.h (command_interp): Declare.
8464 * interps.c (command_interpreter): New global.
8465 (command_interp): New function.
8466 (interp_exec): Set `command_interpreter' while here.
8467 * cli-out.c (cli_uiout_dtor): New function.
8468 (cli_ui_out_impl): Install it.
8469 * mi/mi-interp.c: Include cli-out.h.
8470 (mi_cmd_interpreter_exec): Add comment.
8471 (restore_current_uiout_cleanup): New function.
8472 (ui_out_free_cleanup): New function.
8473 (mi_on_normal_stop): If finishing an execution command started by
8474 a CLI command, or any kind of breakpoint-like event triggered,
8475 print the stop event to the output (CLI) stream.
8476 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8478 2014-05-21 Pedro Alves <palves@redhat.com>
8480 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8481 current source line having changed.
8482 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8483 * infrun.c (normal_stop): Adjust call to
8484 set_current_sal_from_frame.
8485 * source.c (clear_lines_listed_range): New function.
8486 (set_current_source_symtab_and_line, identify_source_line): Clear
8487 the lines listed range.
8488 (line_info): Handle the first "info line" after the current source
8489 line having changed.
8490 * stack.c (print_stack_frame): Remove center handling.
8491 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8494 2014-05-21 Pedro Alves <palves@redhat.com>
8496 * inf-child.c (inf_child_mourn_inferior): New function.
8497 * inf-child.h (inf_child_mourn_inferior): New declaration.
8498 * darwin-nat.c (darwin_mourn_inferior): Use
8499 inf_child_mourn_inferior.
8500 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8501 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8502 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8503 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8504 * windows-nat.c (windows_mourn_inferior): Likewise.
8506 2014-05-21 Doug Evans <xdje42@gmail.com>
8508 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8510 2014-05-21 Doug Evans <xdje42@gmail.com>
8512 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8513 (gdbscm_out_of_range_error): Ditto.
8514 (gdbscm_memory_error): Ditto.
8515 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8516 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8517 (gdbscm_out_of_range_error): Update.
8518 (gdbscm_memory_error): Update.
8519 (gdbscm_scm_to_target_string_unsafe): Delete.
8521 2014-05-21 Pedro Alves <palves@redhat.com>
8523 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8525 (inf_child_open_target): New function.
8526 (inf_child_open): Use inf_child_open_target to push the target
8527 instead of erroring out.
8528 (inf_child_disconnect, inf_child_close)
8529 (inf_child_maybe_unpush_target): New functions.
8530 (inf_child_target): Install inf_child_disconnect and
8531 inf_child_close. Store a pointer to the returned object.
8532 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8534 * target.c (auto_connect_native_target): New global.
8535 (show_default_run_target): New function.
8536 (find_default_run_target): Return NULL if automatically connecting
8537 to the native target is disabled.
8538 (_initialize_target): Install set/show auto-connect-native-target.
8539 * NEWS: Mention "set auto-connect-native-target", and "target
8541 * linux-nat.c (super_close): New global.
8542 (linux_nat_close): Call super_close.
8543 (linux_nat_add_target): Store a pointer to the base class's
8545 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8546 inf_child_maybe_unpush.
8547 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8549 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8550 the inferior. Use inf_child_maybe_unpush_target.
8551 (inf_ttrace_attach): Don't push the target if it is already
8553 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8554 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8555 after mourning the inferior. Use inf_child_maybe_unpush_target.
8556 (darwin_attach_pid): Don't push the target if it is already
8558 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8559 mourning the inferior. Use inf_child_maybe_unpush_target.
8560 (gnu_detach): Use inf_child_maybe_unpush_target.
8561 * go32-nat.c (go32_create_inferior): Don't push the target if it
8563 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8564 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8565 (procfs_open): Rename to ...
8566 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8567 comments. Can target_preopen before changing node. Call
8568 inf_child_open_target to push the target explicitly.
8569 (procfs_attach): Don't push the target if it is already pushed.
8570 (procfs_detach): Use inf_child_maybe_unpush_target.
8571 (procfs_create_inferior): Don't push the target if it is already
8573 (nto_native_ops): New global.
8574 (procfs_open): Reimplement.
8575 (procfs_native_open): New function.
8576 (init_procfs_targets): Install procfs_native_open as to_open of
8577 "target native". Store a pointer to the "native" target in
8579 * procfs.c (procfs_attach): Don't push the target if it is already
8581 (procfs_detach): Use inf_child_maybe_unpush_target.
8582 (procfs_mourn_inferior): Only unpush the target after mourning the
8583 inferior. Use inf_child_maybe_unpush_target.
8584 (procfs_init_inferior): Don't push the target if it is already
8586 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8587 if it is already pushed.
8589 2014-05-21 Pedro Alves <palves@redhat.com>
8591 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8592 and "procfs" targets are now called "native" instead.
8594 2014-05-21 Pedro Alves <palves@redhat.com>
8596 * go32-nat.c (go32_open): Delete.
8597 (go32_target): Don't override the to_open method.
8599 2014-05-21 Pedro Alves <palves@redhat.com>
8601 * nto-procfs.c (procfs_can_run): New function.
8602 (nto_procfs_ops): New global.
8603 (init_procfs_targets): New, based on procfs_target. Install
8604 "target native" in addition to "target procfs".
8605 (_initialize_procfs): Call init_procfs_targets instead of adding
8608 2014-05-21 Pedro Alves <palves@redhat.com>
8610 * windows-nat.c (windows_target): Don't override to_shortname,
8611 to_longname or to_doc.
8613 2014-05-21 Pedro Alves <palves@redhat.com>
8615 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8618 2014-05-21 Pedro Alves <palves@redhat.com>
8620 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8621 to_shortname, to_longname or to_doc.
8623 2014-05-21 Pedro Alves <palves@redhat.com>
8625 * go32-nat.c (go32_target): Don't override to_shortname,
8626 to_longname or to_doc.
8628 2014-05-21 Pedro Alves <palves@redhat.com>
8630 * inf-child.c (inf_child_open): Remove mention of "child".
8631 (inf_child_target): Rename target to "native" instead of "child".
8633 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8635 * Makefile.in (SFILES): Delete "regset.c".
8636 (COMMON_OBS): Delete "regset.o".
8638 * regset.h (regset_alloc): Delete prototype.
8640 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8642 * sparc-linux-tdep.c (sparc32_linux_gregset)
8643 (sparc32_linux_fpregset): New static regset structures.
8644 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8645 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8647 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8648 (sparc64_linux_fpregset): New static regset structures.
8649 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8650 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8651 New static regset structures.
8652 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8653 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8654 New static regset structures.
8655 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8656 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8657 New static regset structures.
8658 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8659 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8660 New static regset structures.
8661 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8663 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8665 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8666 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8667 register maps ("regmaps") from "*regset" to "*regmap". Do this
8668 for all regmap types and variables.
8669 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8670 (sparc32_linux_supply_core_gregset)
8671 (sparc32_linux_collect_core_gregset)
8672 (sparc32_linux_supply_core_fpregset)
8673 (sparc32_linux_collect_core_fpregset): Likewise.
8674 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8675 (sparc_gregmap, sparc_fpregmap): ... these.
8676 (sparc_supply_gregset, sparc_collect_gregset)
8677 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8678 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8679 (_initialize_sparc_nat): Rename regmaps.
8680 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8681 (sparc_gregmap, sparc_fpregmap): ... these.
8682 (sparc_supply_gregset, sparc_collect_gregset)
8683 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8684 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8686 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8687 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8689 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8691 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8692 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8693 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8695 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8696 (sparc32_bsd_fpregset): Rename to...
8697 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8698 (sparc32_bsd_fpregmap): ... these.
8699 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8700 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8701 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8702 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8703 (struct sparc_gregmap, struct sparc_fpregmap)
8704 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8705 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8706 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8707 (sparc32_supply_regset, sparc32_collect_gregset)
8708 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8710 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8711 (sparc64_linux_ptrace_gregmap): ... this.
8712 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8713 (_initialize_sparc64_linux_nat): Rename regmaps.
8714 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8715 (sparc64_linux_core_gregmap): ... this.
8716 (sparc64_linux_supply_core_gregset)
8717 (sparc64_linux_collect_core_gregset)
8718 (sparc64_linux_supply_core_fpregset)
8719 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8720 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8721 (sparc64_sol2_fpregset): Rename to...
8722 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8723 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8724 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8726 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8727 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8728 (sparc64_bsd_fpregset): Rename to...
8729 (struct sparc_gregmap, sparc64_sol2_gregmap)
8730 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8731 (sparc64_bsd_fpregmap): ... these.
8732 (sparc64_supply_gregset, sparc64_collect_gregset)
8733 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8735 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8736 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8737 (sparc64fbsd_gregmap): ... this.
8738 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8739 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8741 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8742 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8743 (sparc64nbsd_collect_fpregset): Likewise.
8744 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8745 (sparc64nbsd_gregmap): ... this.
8746 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8748 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8749 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8750 (sparc64obsd_gregmap): ... this.
8751 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8753 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8754 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8755 (sparc32nbsd_gregmap): ... this.
8756 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8759 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8761 * score-tdep.c (score7_linux_gregset): New static regset
8763 (score7_linux_regset_from_core_section): Remove dynamic regset
8765 (score_gdbarch_init): Drop allocation of tdep structure.
8766 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8768 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8770 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8772 (am33_regset_from_core_section): Remove dynamic regset
8775 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8777 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8778 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8780 (mips_linux_regset_from_core_section): Remove dynamic regset
8782 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8783 'gregset64', 'fpregset', and 'fpregset64'.
8784 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8785 deleted tdep fields.
8787 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8789 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8791 (amd64_regset_from_core_section): Remove dynamic regset
8793 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8795 (amd64obsd_regset_from_core_section): Remove dynamic regset
8797 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8799 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8800 x86-common regset supply function.
8801 * i386-tdep.c (i386_collect_gregset): Make static.
8802 (i386_gregset): New global regset structure.
8803 (i386_fpregset, i386_xstateregset): New static regset structures.
8804 (i386_regset_from_core_section): Remove dynamic regset
8806 (i386_gdbarch_init): Remove initialization of tdep fields
8807 'gregset', 'fpregset', and 'xstateregset'.
8808 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8809 'fpregset', and 'xstateregset'.
8810 (i386_collect_gregset): Remove prototype.
8811 (i386_gregset): New declaration.
8812 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8814 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8817 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8819 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8820 (arm_linux_vfpregset): New static regset structures.
8821 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8823 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8824 and 'vfpregset' fields.
8826 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8828 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8829 (aarch64_linux_fpregset): New static regset structures.
8830 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8831 of regset structures.
8832 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8837 * regset.h (struct regset): Remove gdbarch field.
8838 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8839 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8840 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8842 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8843 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8844 (ppc32_linux_vsxregset): Likewise.
8845 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8846 via the regcache instead of the regset.
8847 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8848 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8849 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8850 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8853 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8855 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8856 Constify structures.
8857 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8858 (alphanbsd_aout_gregset): Likewise.
8859 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8860 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8862 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8863 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8865 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8866 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8867 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8868 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8869 * m88k-tdep.c (m88k_gregset): Likewise.
8870 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8871 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8872 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8873 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8874 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8875 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8876 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8877 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8878 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8880 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8881 * sh-tdep.h (sh_corefile_gregset): Likewise.
8882 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8883 * vax-tdep.c (vax_gregset): Likewise.
8885 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8887 Fix TLS access for -static -pthread.
8888 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8889 (try_thread_db_load_1): Initialize it.
8890 (thread_db_get_thread_local_address): Call it if LM is zero.
8891 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8892 * target.h (struct target_ops) (to_get_thread_local_address): Add
8893 load_module_addr comment.
8895 2014-05-21 Pedro Alves <palves@redhat.com>
8897 * dcache.c (dcache_read_memory_partial): If reading the cache line
8898 fails, fallback to reading just the memory the caller wanted.
8900 2014-05-20 Doug Evans <dje@google.com>
8902 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8903 instead of get_current_arch.
8905 2014-05-20 Pedro Alves <palves@redhat.com>
8907 * NEWS: Mention that compare-sections now works with all targets.
8909 * remote.c (PACKET_qCRC): New enum value.
8910 (remote_verify_memory): Don't send qCRC if the target has no
8911 execution. Use packet_support/packet_ok. If the target doesn't
8912 support the qCRC packet, fallback to a deep memory copy.
8913 (compare_sections_command): Say "target image" instead of "remote
8915 (_initialize_remote): Add PACKET_qCRC to the list of config
8916 packets that have no associated command. Extend comment.
8917 * target.c (simple_verify_memory, default_verify_memory): New
8919 * target.h (struct target_ops) <to_verify_memory>: Default to
8920 default_verify_memory.
8921 (simple_verify_memory): New declaration.
8922 * target-delegates.c: Regenerate.
8924 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8926 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8928 2014-05-20 Hui Zhu <hui@codesourcery.com>
8929 Yao Qi <yao@codesourcery.com>
8932 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8933 and change address of sp and pc.
8935 2014-05-19 Tom Tromey <tromey@redhat.com>
8937 * gdbtypes.c (rank_function): Use XNEWVEC.
8938 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8940 2014-05-19 Doug Evans <dje@google.com>
8942 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8943 build_type_unit_groups and moved closer to only caller. Remove
8944 arguments. All references updated. Remove outdated .gdb_index
8946 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8947 build_type_psymtabs_1.
8949 2014-05-19 Doug Evans <dje@google.com>
8951 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8952 n_type_unit_groups, all_type_unit_groups. All uses removed.
8953 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8954 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8955 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8956 (add_type_unit_group_to_table): Delete.
8958 2014-05-19 Doug Evans <dje@google.com>
8960 * eval.c (evaluate_subexp_standard): Add some comments.
8962 2014-05-17 Doug Evans <xdje42@gmail.com>
8964 * progspace.c (remove_program_space): Delete, unused.
8965 * progspace.h (remove_program_space): Ditto.
8967 2014-05-17 Doug Evans <xdje42@gmail.com>
8969 * inferior.c (prune_inferiors): Fix comment.
8970 (remove_inferior_command): Call prune_program_spaces.
8972 2014-05-16 Doug Evans <dje@google.com>
8974 New command line option -D.
8976 * main.c (set_gdb_data_directory): New function.
8977 (captured_main): Recognize -D. Flag error for --data-directory "".
8978 Call set_gdb_data_directory.
8979 (print_gdb_help): Print --data-directory, -D.
8980 * main.h (set_gdb_data_directory): Declare.
8981 * top.c (staged_gdb_datadir): New static global.
8982 (set_gdb_datadir): Call set_gdb_data_directory
8983 (show_gdb_datadir): New function.
8984 (init_main): Update init of data-directory parameter.
8986 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8988 Import the "dirfd" gnulib module.
8989 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8990 * gnulib/aclocal.m4: Update.
8991 * gnulib/config.in: Update.
8992 * gnulib/configure: Update.
8993 * gnulib/import/Makefile.am: Update.
8994 * gnulib/import/Makefile.in: Update.
8995 * gnulib/import/dirfd.c: New.
8996 * gnulib/import/m4/dirfd.m4: New.
8997 * gnulib/import/m4/gnulib-cache.m4: Update.
8998 * gnulib/import/m4/gnulib-comp.m4: Update.
9000 2014-05-16 Pierre Muller <muller@sourceware.org>
9001 Yao Qi <yao@codesourcery.com>
9003 * valprint.c (print_wchar): Move the code on checking whether
9004 W is a printable wide char to the default branch of switch
9005 statement below. Call wchar_printable instead of gdb_iswprint.
9007 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
9009 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
9010 ldr.w and ldrd instructions.
9012 2014-05-15 Doug Evans <dje@google.com>
9014 * dwarf2read.c (read_structure_type): Delete outdated comments.
9016 2014-05-14 Tom Tromey <tromey@redhat.com>
9018 * macrocmd.c (print_macro_definition): Reindent.
9020 2014-05-13 Doug Evans <xdje42@gmail.com>
9022 * python/py-cmd.c (cmdpy_completer): Add comment.
9023 (completers): Make const.
9025 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
9027 * infrun.c (resume): Remove should_resume (unused). Move up
9028 declaration of resume_ptid.
9030 2014-05-13 Tom Tromey <tromey@redhat.com>
9032 * language.h (unop_type_check): Remove.
9033 (binop_type_check): Don't declare.
9035 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
9037 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9038 call to regcache_raw_collect.
9040 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9042 * mi/mi-console.c (mi_console_raw_packet): Use the value from
9043 mi_console->quote as the quoting character.
9045 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
9047 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9049 2014-04-29 Tom Tromey <tromey@redhat.com>
9051 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9052 "show debug varobj".
9054 2014-05-07 Kyle McMartin <kyle@redhat.com>
9056 Pushed by Joel Brobecker <brobecker@adacore.com>.
9057 * aarch64-tdep.c (aarch64_software_single_step): New function.
9058 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9059 with aarch64_software_single_step.
9061 2014-05-05 Joel Brobecker <brobecker@adacore.com>
9065 2014-05-05 Keith Seitz <keiths@redhat.com>
9067 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9068 variable or history value is successfully parsed.
9070 2014-05-05 Yao Qi <yao@codesourcery.com>
9071 Pedro Alves <palves@redhat.com>
9073 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9074 address of blocks that intersects the requested range. Trim
9075 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9077 * ctf.c (ctf_xfer_partial): Likewise.
9079 2014-05-05 Yao Qi <yao@codesourcery.com>
9081 * printcmd.c (display_command): Remove the check to
9082 target_has_execution.
9084 2014-05-03 Mark Kettenis <kettenis@gnu.org>
9086 * ppcobsd-nat.c: Include "obsd-nat.h".
9087 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9089 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9091 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9093 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9094 and 16-bit signed and unsigned arguments. Update comment.
9095 (stap_parse_probe_arguments): Extend code to handle such
9096 arguments. Use warning instead of complaint to notify about
9097 unrecognized bitness.
9099 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
9101 PR breakpoints/16889
9102 * stap-probe.c (stap_parse_probe_arguments): Simplify
9103 check for non-prefixed probes (i.e., probes whose
9104 arguments do not start with "N@"). Always set the
9105 argument type to a sane value.
9107 2014-05-01 David Taylor <dtaylor@emc.com>
9109 * remote.c (compare_sections_command): Add -r option to compare
9110 all loadable read-only sections.
9112 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
9114 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9115 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9117 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9118 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9119 Remove unused CORE_ADDR argument. Update all callers.
9121 2014-04-29 Pedro Alves <palves@redhat.com>
9123 * remote.c (struct packet_config) <detect>: Extend comment.
9124 (add_packet_config_cmd): Don't set the config's detect or support
9126 (init_all_packet_configs): Also initialize the config's 'detect'
9128 (reset_all_packet_configs_support): New function.
9129 (remote_open_1): Call reset_all_packet_configs_support instead of
9130 init_all_packet_configs.
9131 (_initialize_remote): Initialize all packet configs. Assert that
9132 all packets have an associated command, except a few known
9135 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9137 * dwarf2read.c (read_subrange_type): Handle dynamic
9138 DW_AT_lower_bound attributes.
9140 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9142 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9143 dynamic bounds before computing its upper bound.
9144 (ada_discrete_type_low_bound): Same as above with the lower bound.
9146 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9148 * dwarf2read.c (is_dynamic_type): Return true for dynamic
9149 range types. Adjust the array handling implementation to
9150 take advantage of this change.
9151 (resolve_dynamic_range): New function, mostly extracted from
9152 resolve_dynamic_bounds.
9153 (resolve_dynamic_array): New function, mostly extracted from
9154 resolve_dynamic_bounds.
9155 (resolve_dynamic_bounds): Delete.
9156 (resolve_dynamic_type): Reimplement. Add handling of
9157 TYPE_CODE_RANGE types.
9159 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9161 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9162 handling of parallel ___XA types.
9164 2014-04-28 Joel Brobecker <brobecker@adacore.com>
9166 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9167 unnecessary second call to static_unwrap_type.
9169 2014-04-27 Hui Zhu <hui@codesourcery.com>
9171 * stack.c (print_frame_info): Call do_gdb_disassembly with
9172 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9174 2014-04-26 Doug Evans <xdje42@gmail.com>
9176 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9178 2014-04-25 Pedro Alves <palves@redhat.com>
9181 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9182 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
9183 and newline from built string.
9184 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9185 (linux_ptrace_attach_fail_reason): ... this.
9186 * linux-nat.c (linux_nat_attach): Adjust to use
9187 linux_ptrace_attach_fail_reason.
9189 2014-04-25 Pedro Alves <palves@redhat.com>
9191 * remote.c (struct remote_state): Remove multi_process_aware,
9192 non_stop_aware, cond_tracepoints, cond_breakpoints,
9193 breakpoint_commands, fast_tracepoints, static_tracepoints,
9194 install_in_trace, disconnected_tracing,
9195 enable_disable_tracepoints, string_tracing, and
9196 augmented_libraries_svr4_read fields.
9197 (remote_multi_process_p): Move further below in the file.
9198 (struct packet_config): Add comments.
9199 (update_packet_config): Delete function.
9200 (show_packet_config_cmd): Use packet_config_support.
9201 (add_packet_config_cmd): Use NULL as set callback.
9202 (packet_ok): "set remote foo-packet"-style commands no longer
9203 change config->supported -- adjust.
9204 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9205 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9206 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9207 (PACKET_QNonStop, PACKET_multiprocess_feature)
9208 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9209 (PACKET_DisconnectedTracing_feature)
9210 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9211 (set_remote_protocol_packet_cmd): Delete function.
9212 (packet_config_support, packet_support): New functions.
9213 (set_remote_protocol_Z_packet_cmd): Don't call
9214 update_packet_config.
9215 (remote_query_attached, remote_pass_signals)
9216 (remote_program_signals, remote_threads_info)
9217 (remote_threads_extra_info, remote_start_remote): Use
9219 (remote_start_remote): Use packet_config_support and
9221 (init_all_packet_configs): Set all packets to unknown support,
9222 instead of calling update_packet_config.
9223 (remote_check_symbols): Use packet_support.
9224 (remote_supported_packet): Unconditionally set the packet config's
9226 (remote_multi_process_feature, remote_non_stop_feature)
9227 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9228 (remote_breakpoint_commands_feature)
9229 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9230 (remote_install_in_trace_feature)
9231 (remote_disconnected_tracing_feature)
9232 (remote_enable_disable_tracepoint_feature)
9233 (remote_string_tracing_feature)
9234 (remote_augmented_libraries_svr4_read_feature): Delete functions.
9235 (remote_protocol_features): Adjust to use remote_supported_packet
9236 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9237 "ConditionalTracepoints", "ConditionalBreakpoints",
9238 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9239 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9240 "EnableDisableTracepoints", and "tracenz".
9241 (remote_query_supported): Use packet_support.
9242 (remote_open_1): Adjust.
9243 (extended_remote_attach_1): Use packet_support. Switch on the
9244 result of packet_ok instead of checking whether the packet ended
9246 (remote_vcont_resume): Use packet_support.
9247 (remote_resume, remote_stop_ns, fetch_register_using_p)
9248 (remote_prepare_to_store, store_register_using_P)
9249 (check_binary_download, remote_write_bytes): Use packet_support.
9250 (remote_vkill): Use packet_support. Switch on the result of
9251 packet_ok instead of checking whether the packet ended up
9253 (extended_remote_supports_disable_randomization): Use
9255 (extended_remote_run): Switch on the result of packet_ok instead
9256 of checking whether the packet ended up disabled.
9257 (remote_insert_breakpoint, remote_remove_breakpoint)
9258 (remote_insert_watchpoint, remote_remove_watchpoint)
9259 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9261 (remote_search_memory): Use packet_config_support.
9262 (remote_get_thread_local_address, remote_get_tib_address)
9263 (remote_hostio_send_command, remote_can_execute_reverse): Use
9265 (remote_supports_cond_tracepoints)
9266 (remote_supports_cond_breakpoints)
9267 (remote_supports_fast_tracepoints)
9268 (remote_supports_static_tracepoints)
9269 (remote_supports_install_in_trace)
9270 (remote_supports_enable_disable_tracepoint)
9271 (remote_supports_string_tracing)
9272 (remote_can_run_breakpoint_commands): Rewrite, checking whether
9273 the packet config says the feature is enabled or disabled.
9274 (remote_download_tracepoint, remote_trace_set_readonly_regions)
9275 (remote_get_trace_status): Use packet_support.
9276 (remote_set_disconnected_tracing): Adjust to check whether the
9277 feature is enabled with packet_support.
9278 (remote_set_trace_buffer_size, remote_use_agent)
9279 (remote_can_use_agent, remote_supports_btrace): Use
9281 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9282 Use packet_config_support.
9283 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9284 the packet config says the feature is enabled or disabled.
9285 (set_range_stepping): Use packet_support.
9287 2014-04-25 Tom Tromey <tromey@redhat.com>
9289 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9292 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
9294 * NEWS: Mention support for C99 variable length arrays.
9296 2014-04-24 Joel Brobecker <brobecker@adacore.com>
9298 * ada-lang.c (standard_exc): Expand introductory comment.
9300 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9301 Walfred Tedeschi <walfred.tedeschi@intel.com>
9303 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9305 (amd64_linux_read_description): Add code to handle AVX512 xstate
9306 mask and return respective tdesc.
9307 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9308 and features/i386/x32-avx512-linux.c.
9309 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9310 (amd64_linux_core_read_description): Add code to handle AVX512
9311 xstate mask and return respective tdesc.
9312 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9313 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9315 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9316 (tdesc_amd64_avx512_linux): New prototype.
9317 (tdesc_x32_avx512_linux): Likewise.
9318 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9319 features/i386/x32-avx512.c.
9320 (amd64_ymm_avx512_names): New register names for pseudo
9322 (amd64_ymmh_avx512_names): New register names for raw registers
9324 (amd64_k_names): New register names for K registers.
9325 (amd64_zmmh_names): New register names for ZMM raw registers.
9326 (amd64_zmm_names): New registers names for ZMM pseudo registers.
9327 (amd64_xmm_avx512_names): New register names for XMM16-31
9329 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9331 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9332 if feature is present.
9333 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9334 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9335 (AMD64_NUM_REGS): Adjust to new number of registers.
9336 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9337 registers supplied via XSTATE by AVX512 registers.
9338 (i386_linux_read_description): Add case for AVX512.
9339 * i386-linux-tdep.c: Include i386-avx512-linux.c.
9340 (i386_linux_gregset_reg_offset): Add AVX512 registers.
9341 (i386_linux_core_read_description): Add case for AVX512.
9342 (i386_linux_init_abi): Install supported register note section
9344 (_initialize_i386_linux_tdep): Add call to tdesc init function for
9346 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9347 registers to be number of zmm7h + 1.
9348 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9349 * i386-tdep.c: Include features/i386/i386-avx512.c.
9350 (i386_zmm_names): Add ZMM pseudo register names array.
9351 (i386_zmmh_names): Add ZMM raw register names array.
9352 (i386_k_names): Add K raw register names array.
9353 (num_lower_zmm_regs): Add constant for the number of lower ZMM
9354 registers. AVX512 has 16 more ZMM registers than there are YMM
9356 (i386_zmmh_regnum_p): Add function to look up register number of
9358 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9359 (i386_k_regnum_p): Likewise for K raw registers.
9360 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9361 registers added by AVX512.
9362 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9363 registers added by AVX512.
9364 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9366 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9367 (i386_pseudo_register_name): Add ZMM pseudo registers.
9368 (i386_zmm_type): Construct and return vector registers type for ZMM
9370 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9371 ZMM0-31 pseudo registers and K registers.
9372 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9373 and YMM16-31 registers from register cache.
9374 (i386_pseudo_register_write): Add code to write K, ZMM and
9376 (i386_register_reggroup_p): Add code to include/exclude AVX512
9377 registers in/from respective register groups.
9378 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9379 registers if feature is present in xcr0.
9380 (i386_gdbarch_init): Add code to initialize AVX512 feature
9381 variables in tdep structure, wire in pseudo registers and call
9382 initialize_tdesc_i386_avx512.
9383 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9385 (i386_regnum): Add AVX512 registers.
9386 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9387 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9388 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9389 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9391 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9392 (i386_ymm_avx512_regnum_p): Likewise.
9393 (i386_k_regnum_p): Likewise.
9394 (i386_zmm_regnum_p): Likewise.
9395 (i386_zmmh_regnum_p): Likewise.
9396 * i387-tdep.c : Update year in copyright notice.
9397 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9399 (XSAVE_YMM_AVX512_ADDR): New macro.
9400 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9402 (XSAVE_XMM_AVX512_ADDR): New macro.
9403 (xsave_avx512_k_offset): New table for K register offsets in
9405 (XSAVE_AVX512_K_ADDR): New macro.
9406 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9408 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9409 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9411 (i387_collect_xsave): Add code to collect AVX512 registers from
9413 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9414 of XMM16-31 registers.
9415 (I387_NUM_K_REGS): New define for number of K registers.
9416 (I387_K0_REGNUM): New define for K0 register number.
9417 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9418 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9419 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9421 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9422 (I387_XMM16_REGNUM): New define for XMM16 register number.
9423 (I387_YMM0_REGNUM): New define for YMM0 register number.
9424 (I387_KEND_REGNUM): New define for last K register number.
9425 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9426 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9428 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9430 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9432 * features/Makefile: Add AVX512 related files.
9433 * features/i386/32bit-avx512.xml: New file.
9434 * features/i386/64bit-avx512.xml: Likewise.
9435 * features/i386/amd64-avx512-linux.c: Likewise.
9436 * features/i386/amd64-avx512-linux.xml: Likewise.
9437 * features/i386/amd64-avx512.c: Likewise.
9438 * features/i386/amd64-avx512.xml: Likewise.
9439 * features/i386/i386-avx512-linux.c: Likewise.
9440 * features/i386/i386-avx512-linux.xml: Likewise.
9441 * features/i386/i386-avx512.c: Likewise.
9442 * features/i386/i386-avx512.xml: Likewise.
9443 * features/i386/x32-avx512-linux.c: Likewise.
9444 * features/i386/x32-avx512-linux.xml: Likewise.
9445 * features/i386/x32-avx512.c: Likewise.
9446 * features/i386/x32-avx512.xml: Likewise.
9447 * regformats/i386/amd64-avx512-linux.dat: New file.
9448 * regformats/i386/amd64-avx512.dat: Likewise.
9449 * regformats/i386/i386-avx512-linux.dat: Likewise.
9450 * regformats/i386/i386-avx512.dat: Likewise.
9451 * regformats/i386/x32-avx512-linux.dat: Likewise.
9452 * regformats/i386/x32-avx512.dat: Likewise.
9453 * NEWS: Add note about new support for AVX512.
9456 2014-04-23 Pedro Alves <palves@redhat.com>
9458 * breakpoint.c (insert_bp_location): Tolerate errors if the
9459 breakpoint is set in a user-loaded objfile.
9460 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9461 location is marked shlib_disabled. If the breakpoint is set in a
9462 user-loaded objfile is a GDB-side memory breakpoint, validate it
9463 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9464 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9466 * mem-break.c (memory_validate_breakpoint): New function.
9467 * objfiles.c (userloaded_objfile_contains_address_p): New
9469 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9470 * target.h (memory_validate_breakpoint): New declaration.
9472 2014-04-23 Pedro Alves <palves@redhat.com>
9474 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9475 the breakpoint is set in a shared library, only suppress
9476 errors for software breakpoints, not hardware breakpoints.
9478 2014-04-22 Pedro Alves <palves@redhat.com>
9480 * infrun.c (schedlock_applies): New function, factored out from
9481 find_thread_needs_step_over.
9482 (find_thread_needs_step_over): Use it.
9483 (switch_back_to_stepped_thread): Always clear trap_expected if the
9484 step over is finished. Return early if scheduler locking applies.
9485 Look for the stepping thread and a potential step-over thread with
9487 (currently_stepping_or_nexting_callback): Delete.
9489 2014-04-22 Nick Clifton <nickc@redhat.com>
9491 * NEWS: Mention that ARM sim now supports tracing.
9493 2014-04-22 Yao Qi <yao@codesourcery.com>
9495 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9497 * tracefile.c (tracefile_fetch_registers): ... it. New
9499 * tracefile.h (tracefile_fetch_registers): Declare.
9500 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9501 tracefile_fetch_registers.
9503 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9506 * windows-nat.c (thread_rec): Don't display a warning when
9507 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9508 fails for any reason, set th->suspended to -1, so that we don't
9509 try to resume such a thread. Also, don't return NULL in these
9510 cases, to avoid completely ruin the session due to "PC register is
9511 not available" error.
9512 (do_windows_fetch_inferior_registers): Check errors in
9513 GetThreadContext call.
9514 (windows_continue): Accept an additional argument KILLED; if not
9515 zero, ignore errors in the SetThreadContext call, since the
9516 inferior was killed and is shutting down.
9517 (windows_resume, get_windows_debug_event)
9518 (windows_create_inferior, windows_mourn_inferior)
9519 (windows_kill_inferior): All callers of windows_continue changed
9520 to adjust to its new calling sequence.
9522 2014-04-19 Yao Qi <yao@codesourcery.com>
9524 * ctf.c (ctf_open): Call post_create_inferior.
9526 2014-04-19 Yao Qi <yao@codesourcery.com>
9528 * ctf.c (handle_id): New static variable.
9529 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9530 value. Get the declaration of event "register" and get length
9531 of field "contents".
9533 2014-04-19 Yao Qi <yao@codesourcery.com>
9535 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9537 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9539 * valops.c (oload_method_static): Remove unnecessary argument
9540 METHOD. Update all callers.
9542 2014-04-18 Pedro alves <palves@redhat.com>
9543 Tom Tromey <tromey@redhat.com>
9546 * frame.c (get_prev_frame_1): Rename to ...
9547 (get_prev_frame_always): ... this, and make extern. Adjust.
9548 (skip_artificial_frames): Use get_prev_frame_always.
9549 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9550 (get_frame_unwind_stop_reason): Adjust to rename.
9551 * frame.h (get_prev_frame_always): Declare.
9552 * inline-frame.c: Include frame.h.
9553 (inline_frame_this_id): Use get_prev_frame_always.
9555 2014-04-18 Tristan Gingold <gingold@adacore.com>
9557 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9558 code by using bfd_mach_o_get_base_address.
9560 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9562 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9563 (spu_ax_pseudo_register_collect): New function.
9564 (spu_ax_pseudo_register_push_stack): Likewise.
9565 (spu_dwarf_reg_to_regnum): Likewise.
9566 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9568 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
9570 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9571 Replace FRAME argument with FRAME_ID.
9572 * gdbarch.c, gdbarch.h: Regenerate.
9573 * findvar.c (default_value_from_register): Add GDBARCH argument;
9574 replace FRAME by FRAME_ID. No longer call get_frame_id.
9575 (value_from_register): Update call to gdbarch_value_from_register.
9576 * value.h (default_value_from_register): Update prototype.
9577 * s390-linux-tdep.c (s390_value_from_register): Update interface
9578 and call to default_value_from_register.
9579 * spu-tdep.c (spu_value_from_register): Likewise.
9581 * findvar.c (address_from_register): Remove TYPE argument.
9582 Do not call value_from_register; use gdbarch_value_from_register
9583 with null_frame_id instead.
9584 * value.h (address_from_register): Update prototype.
9585 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9586 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9587 address_from_register interface change.
9589 2014-04-17 Yao Qi <yao@codesourcery.com>
9591 * gdbtypes.h: Update comments to link to types and macros'
9594 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9596 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9598 2014-04-16 Keith Seitz <keiths@redhat.com>
9601 * dwarf2read.c (skip_one_die): Check that all relative-offset
9602 sibling DIEs fall within range of the current reader's buffer.
9603 (read_partial_die): Likewise.
9605 2014-04-16 Keith Seitz <keiths@redhat.com>
9608 * cp-namespace.c (lookup_symbol_file): If the type name of
9609 `this' is NULL, return immediately.
9611 2014-04-14 Keith Seitz <keiths@redhat.com>
9614 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9615 from symbol_matches_domain in symtab.c. All local callers
9616 of symbol_matches_domain updated.
9617 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9618 search STRUCT_DOMAIN.
9619 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9620 independently. standard_lookup will do that automatically.
9621 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9622 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9623 (cp_lookup_symbol_in_namespace): Likewise.
9624 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9625 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9626 may return a STRUCT_DOMAIN match.
9627 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9628 * cp-support.c: Include language.h.
9629 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9631 * psymtab.c (match_partial_symbol): Compare the requested
9632 domain with the symbol's domain directly.
9633 (lookup_partial_symbol): Likewise.
9634 * symtab.c (lookup_symbol_in_language): Explain when/why
9635 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9636 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9637 appropriate languages.
9638 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9639 and moved to ada-lang.c
9640 (lookup_block_symbol): Explain that this function only returns
9641 symbol matching the requested DOMAIN.
9642 Compare the requested domain with the symbol's domain directly.
9643 (iterate_over_symbols): Compare the requested domain with the
9644 symbol's domain directly.
9645 * symtab.h (symbol_matches_domain): Remove.
9647 2014-04-14 Tom Tromey <tromey@redhat.com>
9650 * c-exp.y (type_aggregate_p): New function.
9651 (qualified_name, classify_inner_name): Use it.
9652 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9653 and TYPE_TARGET_TYPE of an enum type.
9654 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9656 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9657 handle TYPE_DECLARED_CLASS.
9658 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9660 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9661 * valops.c (enum_constant_from_type): New function.
9662 (value_aggregate_elt): Use it.
9663 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9666 2014-04-14 Tom Tromey <tromey@redhat.com>
9668 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9669 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9671 * value.h (value_aggregate_elt): Update.
9673 2014-04-14 Tom Tromey <tromey@redhat.com>
9675 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9677 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9679 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9680 (evaluate_subexp_standard): Pass noside argument.
9681 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9682 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9683 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9684 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9685 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9687 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9689 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9690 points to a constant blob.
9692 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9694 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9695 property and store it as the high bound and flag the range accordingly.
9696 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9697 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9698 * gdbtypes.h (enum range_flags): New enum.
9699 (struct range_bounds): Add flags member.
9701 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9703 * c-typeprint.c (c_type_print_varspec_suffix): Added
9704 check for not yet resolved high bound. If unresolved, print
9705 "variable length" string to the console instead of random
9708 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9710 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9712 (ada_template_to_fixed_record_type_1): Likewise.
9713 (ada_to_fixed_type_1): Likewise.
9714 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9715 (cp_print_value): Likewise.
9716 * d-valprint.c (dynamic_array_type): Likewise.
9717 * findvar.c (address_of_variable): Likewise.
9718 * jv-valprint.c (java_value_print): Likewise.
9719 * valops.c (value_ind): Likewise.
9720 * value.c (coerce_ref): Likewise.
9722 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9724 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9725 value and retrieve the dynamic type size.
9727 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9729 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9730 passed to sizeof is dynamic evaluate the argument to compute the length.
9732 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9733 Joel Brobecker <brobecker@adacore.com>
9735 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9736 (dwarf2_evaluate_property): New function.
9737 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9738 * dwarf2read.c (attr_to_dynamic_prop): New function.
9739 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9741 * gdbtypes.c: Include dwarf2loc.h.
9742 (is_dynamic_type): New function.
9743 (resolve_dynamic_type): New function.
9744 (resolve_dynamic_bounds): New function.
9745 (get_type_length): New function.
9746 (check_typedef): Use get_type_length to compute type length.
9747 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9748 (TYPE_LOW_BOUND_KIND): New macro.
9749 (is_dynamic_type): New function prototype.
9750 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9751 to resolve dynamic properties of the type. Update comment.
9752 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9754 2014-04-14 Richard Henderson <rth@redhat.com>
9756 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9758 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9759 Doug Evans <xdje42@gmail.com>
9761 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9762 dereference TYPE_CODE_REF values.
9764 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9766 Revert the following changes due to regressions:
9768 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9769 (dwarf2_evaluate_property): New function.
9770 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9771 * dwarf2read.c (attr_to_dynamic_prop): New function.
9772 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9774 * gdbtypes.c: Include dwarf2loc.h.
9775 (is_dynamic_type): New function.
9776 (resolve_dynamic_type): New function.
9777 (resolve_dynamic_bounds): New function.
9778 (get_type_length): New function.
9779 (check_typedef): Use get_type_length to compute type length.
9780 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9781 (TYPE_LOW_BOUND_KIND): New macro.
9782 (is_dynamic_type): New function prototype.
9783 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9784 to resolve dynamic properties of the type. Update comment.
9785 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9787 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9788 passed to sizeof is dynamic evaluate the argument to compute the length.
9790 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9791 value and retrieve the dynamic type size.
9793 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9794 (ada_template_to_fixed_record_type_1): Likewise.
9795 (ada_to_fixed_type_1): Likewise.
9796 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9797 (cp_print_value): Likewise.
9798 * d-valprint.c (dynamic_array_type): Likewise.
9799 * eval.c (evaluate_subexp_with_coercion): Likewise.
9800 * findvar.c (address_of_variable): Likewise.
9801 * jv-valprint.c (java_value_print): Likewise.
9802 * valops.c (value_ind): Likewise.
9803 * value.c (coerce_ref): Likewise.
9805 * c-typeprint.c (c_type_print_varspec_suffix): Added
9806 check for not yet resolved high bound. If unresolved, print
9807 "variable length" string to the console instead of random
9810 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9811 property and store it as the high bound and flag the range accordingly.
9812 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9813 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9814 * gdbtypes.h (enum range_flags): New enum.
9815 (struct range_bounds): Add flags member.
9817 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9818 points to a constant blob.
9820 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9821 (evaluate_subexp_standard): Pass noside argument.
9822 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9823 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9824 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9825 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9826 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9828 2014-04-11 Keith Seitz <keiths@redhat.com>
9831 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9832 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9835 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9837 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9838 (evaluate_subexp_standard): Pass noside argument.
9839 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9840 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9841 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9842 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9843 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9845 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9847 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9848 points to a constant blob.
9850 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9852 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9853 property and store it as the high bound and flag the range accordingly.
9854 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9855 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9856 * gdbtypes.h (enum range_flags): New enum.
9857 (struct range_bounds): Add flags member.
9859 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9861 * c-typeprint.c (c_type_print_varspec_suffix): Added
9862 check for not yet resolved high bound. If unresolved, print
9863 "variable length" string to the console instead of random
9866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9868 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9869 (ada_template_to_fixed_record_type_1): Likewise.
9870 (ada_to_fixed_type_1): Likewise.
9871 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9872 (cp_print_value): Likewise.
9873 * d-valprint.c (dynamic_array_type): Likewise.
9874 * eval.c (evaluate_subexp_with_coercion): Likewise.
9875 * findvar.c (address_of_variable): Likewise.
9876 * jv-valprint.c (java_value_print): Likewise.
9877 * valops.c (value_ind): Likewise.
9878 * value.c (coerce_ref): Likewise.
9880 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9882 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9883 value and retrieve the dynamic type size.
9885 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9887 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9888 passed to sizeof is dynamic evaluate the argument to compute the length.
9890 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9892 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9893 (dwarf2_evaluate_property): New function.
9894 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9895 * dwarf2read.c (attr_to_dynamic_prop): New function.
9896 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9898 * gdbtypes.c: Include dwarf2loc.h.
9899 (is_dynamic_type): New function.
9900 (resolve_dynamic_type): New function.
9901 (resolve_dynamic_bounds): New function.
9902 (get_type_length): New function.
9903 (check_typedef): Use get_type_length to compute type length.
9904 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9905 (TYPE_LOW_BOUND_KIND): New macro.
9906 (is_dynamic_type): New function prototype.
9907 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9908 to resolve dynamic properties of the type. Update comment.
9909 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9911 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9913 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9914 declaring high/low bounds and change uses accordingly. Call
9915 create_range_type instead of create_static_range_type.
9916 * gdbtypes.c (create_range_type): New function.
9917 (create_range_type): Convert bounds into struct bound_prop and pass
9918 them to create_range_type.
9919 * gdbtypes.h (struct bound_prop): New struct.
9920 (create_range_type): New function prototype.
9921 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9922 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9923 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9925 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9927 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9929 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9930 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9931 * ada-lang.c: All uses of create_range_type updated.
9932 * coffread.c: All uses of create_range_type updated.
9933 * dwarf2read.c: All uses of create_range_type updated.
9934 * f-exp.y: All uses of create_range_type updated.
9935 * m2-valprint.c: All uses of create_range_type updated.
9936 * mdebugread.c: All uses of create_range_type updated.
9937 * stabsread.c: All uses of create_range_type updated.
9938 * valops.c: All uses of create_range_type updated.
9939 * valprint.c: All uses of create_range_type updated.
9941 2014-04-10 Pedro Alves <palves@redhat.com>
9943 * breakpoint.c (single_step_breakpoints)
9944 (single_step_gdbarch): Move up in the file.
9945 (one_breakpoint_xfer_memory): New function, factored out from ...
9946 (breakpoint_xfer_memory): ... here. Also process single-step
9949 2014-04-09 Tristan Gingold <gingold@adacore.com>
9951 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9953 (darwin_decode_exception_message): Free port only after use.
9955 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9957 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9958 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9959 when setting the size of call_length.
9961 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9963 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9964 dereference TYPE_CODE_REF values.
9966 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9968 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9969 end of warning message.
9971 2014-04-03 Doug Evans <dje@google.com>
9973 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9974 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9976 2014-04-02 Alan Modra <amodra@gmail.com>
9978 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9979 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9980 (struct symbol_file_add_from_memory_args): Add size field.
9981 (find_vdso_size): New function.
9982 (add_vsyscall_page): Attempt to find vdso size.
9984 2014-04-01 Doug Evans <dje@google.com>
9986 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9988 2014-04-01 Tristan Gingold <gingold@adacore.com>
9990 * darwin-nat.c (darwin_encode_reply): Add prototype.
9991 (darwin_decode_exception_message): Reply to unknown inferiors.
9992 (darwin_decode_message): Handle message by id. Ignore message
9993 to unknown inferior.
9994 (darwin_wait): Discard unknown messages, add debug trace.
9996 2014-03-31 Doug Evans <dje@google.com>
9998 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
10001 2014-03-31 Doug Evans <dje@google.com>
10003 New option "set print symbol-loading".
10004 * NEWS: Mention it.
10005 * solib.c (solib_read_symbols): Only print symbol loading messages
10007 (solib_add): If symbol loading is in "brief" mode, notify user
10008 symbols are being loaded.
10009 (reload_shared_libraries_1): Ditto.
10010 * symfile.c (print_symbol_loading_off): New static global.
10011 (print_symbol_loading_brief): New static global.
10012 (print_symbol_loading_full): New static global.
10013 (print_symbol_loading_enums): New static global.
10014 (print_symbol_loading): New static global.
10015 (print_symbol_loading_p): New function.
10016 (symbol_file_add_with_addrs): Only print symbol loading messages
10018 (_initialize_symfile): Register "print symbol-loading" set/show
10020 * symfile.h (print_symbol_loading_p): Declare.
10022 2014-03-30 Doug Evans <xdje42@gmail.com>
10024 * infrun.c (set_last_target_status): New function.
10025 (handle_inferior_event): Call it.
10027 2014-03-30 Doug Evans <xdje42@gmail.com>
10029 * inferior.h (enum stop_kind): Improve comment.
10031 2014-03-28 Joel Brobecker <brobecker@adacore.com>
10033 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10034 a reference, strip the reference layer before calling
10035 the lang_ops value_has_mutated callback.
10037 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
10039 Remove some globals from our parser.
10040 * language.c (unk_lang_parser): Add "struct parser_state"
10042 * language.h (struct language_defn) <la_parser>: Likewise.
10043 * parse.c (expout, expout_size, expout_ptr): Remove variables.
10044 (initialize_expout): Add "struct parser_state" argument.
10045 Rewrite function to use the parser state.
10046 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10047 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10048 write_exp_elt_longcst, write_exp_elt_dblcst,
10049 write_exp_elt_decfloatcst, write_exp_elt_type,
10050 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10051 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10052 write_dollar_variable): Likewise.
10053 (parse_exp_in_context_1): Use parser state.
10054 (insert_type_address_space): Add "struct parser_state" argument.
10056 (increase_expout_size): New function.
10057 * parser-defs.h: Forward declare "struct language_defn" and
10058 "struct parser_state".
10059 (expout, expout_size, expout_ptr): Remove extern declarations.
10060 (parse_gdbarch, parse_language): Rewrite macro declarations to
10061 accept the parser state.
10062 (struct parser_state): New struct.
10063 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10064 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10065 write_exp_elt_decfloatcst, write_exp_elt_type,
10066 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10067 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10068 write_exp_msymbol, write_dollar_variable,
10069 mark_struct_expression, insert_type_address_space): Add "struct
10070 parser_state" argument.
10071 (increase_expout_size): New function.
10072 * utils.c (do_clear_parser_state): New function.
10073 (make_cleanup_clear_parser_state): Likewise.
10074 * utils.h (make_cleanup_clear_parser_state): New function
10076 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10077 Update calls to write_exp* in order to pass the parser state.
10078 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10079 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10080 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10081 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10082 * stap-probe.c (stap_parse_register_operand): Likewise.
10083 (stap_parse_single_operand): Likewise.
10084 (stap_parse_argument_1): Likewise.
10085 (stap_parse_argument): Use parser state.
10086 * stap-probe.h: Include "parser-defs.h".
10087 (struct stap_parse_info) <pstate>: New field.
10088 * c-exp.y (parse_type): Rewrite to use parser state.
10089 (yyparse): Redefine to c_parse_internal.
10090 (pstate): New global variable.
10091 (parse_number): Add "struct parser_state" argument.
10092 (write_destructor_name): Likewise.
10093 (type_exp): Update calls to write_exp* and similars in order to
10095 (exp1, exp, variable, qualified_name, space_identifier,
10096 typename, typebase): Likewise.
10097 (write_destructor_name, parse_number, lex_one_token,
10098 classify_name, classify_inner_name, c_parse): Add "struct
10099 parser_state" argument. Update function to use parser state.
10100 * c-lang.h: Forward declare "struct parser_state".
10101 (c_parse): Add "struct parser_state" argument.
10102 * ada-exp.y (parse_type): Rewrite macro to use parser state.
10103 (yyparse): Redefine macro to ada_parse_internal.
10104 (pstate): New variable.
10105 (write_int, write_object_renaming, write_var_or_type,
10106 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10107 type_int, type_long, type_long_long, type_float, type_double,
10108 type_long_double, type_char, type_boolean, type_system_address):
10109 Add "struct parser_state" argument.
10110 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10111 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10112 var_or_type, aggregate, aggregate_component_list,
10113 positional_list, others, component_group,
10114 component_associations): Update calls to write_exp* and similar
10115 functions in order to use parser state.
10116 (ada_parse, write_var_from_sym, write_int,
10117 write_exp_op_with_string, write_object_renaming,
10118 find_primitive_type, write_selectors, write_ambiguous_var,
10119 write_var_or_type, write_name_assoc, type_int, type_long,
10120 type_long_long, type_float, type_double, type_long_double,
10121 type_char, type_boolean, type_system_address): Add "struct
10122 parser_state" argument. Adjust function to use parser state.
10123 * ada-lang.c (parse): Likewise.
10124 * ada-lang.h: Forward declare "struct parser_state".
10125 (ada_parse): Add "struct parser_state" argument.
10126 * ada-lex.l (processInt, processReal): Likewise. Adjust all
10127 calls to both functions.
10128 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10130 (yyparse): Redefine macro to f_parse_internal.
10131 (pstate): New variable.
10132 (parse_number): Add "struct parser_state" argument.
10133 (type_exp, exp, subrange, typebase): Update calls to write_exp*
10134 and similars in order to use parser state.
10135 (parse_number): Adjust code to use parser state.
10137 (f_parse): New function.
10138 * f-lang.h: Forward declare "struct parser_state".
10139 (f_parse): Add "struct parser_state" argument.
10140 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10142 (yyparse): Redefine macro for java_parse_internal.
10143 (pstate): New variable.
10144 (push_expression_name, push_expression_name, insert_exp): Add
10145 "struct parser_state" argument.
10146 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10147 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10148 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10149 PostIncrementExpression, PostDecrementExpression,
10150 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10151 UnaryExpressionNotPlusMinus, CastExpression,
10152 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10153 RelationalExpression, EqualityExpression, AndExpression,
10154 ExclusiveOrExpression, InclusiveOrExpression,
10155 ConditionalAndExpression, ConditionalOrExpression,
10156 ConditionalExpression, Assignment, LeftHandSide): Update
10157 calls to write_exp* and similars in order to use parser state.
10158 (parse_number): Ajust code to use parser state.
10160 (java_parse): New function.
10161 (push_variable): Add "struct parser_state" argument. Adjust
10162 code to user parser state.
10163 (push_fieldnames, push_qualified_expression_name,
10164 push_expression_name, insert_exp): Likewise.
10165 * jv-lang.h: Forward declare "struct parser_state".
10166 (java_parse): Add "struct parser_state" argument.
10167 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10169 (yyparse): Redefine macro to m2_parse_internal.
10170 (pstate): New variable.
10171 (type_exp, exp, fblock, variable, type): Update calls to
10172 write_exp* and similars to use parser state.
10174 (m2_parse): New function.
10175 * m2-lang.h: Forward declare "struct parser_state".
10176 (m2_parse): Add "struct parser_state" argument.
10177 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10178 * objc-lang.h: Forward declare "struct parser_state".
10179 (end_msglist): Add "struct parser_state" argument.
10180 * p-exp.y (parse_type): Rewrite macro to use parser state.
10181 (yyparse): Redefine macro to pascal_parse_internal.
10182 (pstate): New variable.
10183 (parse_number): Add "struct parser_state" argument.
10184 (type_exp, exp1, exp, qualified_name, variable): Update calls to
10185 write_exp* and similars in order to use parser state.
10186 (parse_number, yylex): Adjust code to use parser state.
10187 (pascal_parse): New function.
10188 * p-lang.h: Forward declare "struct parser_state".
10189 (pascal_parse): Add "struct parser_state" argument.
10190 * go-exp.y (parse_type): Rewrite macro to use parser state.
10191 (yyparse): Redefine macro to go_parse_internal.
10192 (pstate): New variable.
10193 (parse_number): Add "struct parser_state" argument.
10194 (type_exp, exp1, exp, variable, type): Update calls to
10195 write_exp* and similars in order to use parser state.
10196 (parse_number, lex_one_token, classify_name, yylex): Adjust code
10197 to use parser state.
10198 (go_parse): Likewise.
10199 * go-lang.h: Forward declare "struct parser_state".
10200 (go_parse): Add "struct parser_state" argument.
10202 2014-03-27 Doug Evans <dje@google.com>
10204 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
10206 2014-03-27 Doug Evans <dje@google.com>
10208 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10209 Remove argument abbrev_section. All callers updated.
10211 2014-03-27 Doug Evans <dje@google.com>
10213 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10214 addr_base, ranges_base.
10216 2014-03-26 Keith Seitz <keiths@redhat.com>
10218 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10219 types, not VAR_DOMAIN.
10221 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
10223 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10225 * features/nios2-linux.c: Regenerated.
10226 * features/nios2.c: Regenerated.
10228 2014-03-25 Pedro Alves <palves@redhat.com>
10230 * cli/cli-script.c (script_from_file): Force the interpreter to
10233 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10235 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10236 small stack allocation.
10238 2014-03-24 Tristan Gingold <gingold@adacore.com>
10240 * darwin-nat.c (exc_server): Remove unused prototype.
10241 (darwin_dump_message): Correctly display data on x86_64.
10242 (darwin_encode_reply): Fix style.
10243 Add comments and fix indentation.
10245 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
10247 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10249 2014-03-22 Doug Evans <xdje42@gmail.com>
10251 * infcmd.c: Whitespace fixes.
10252 (interrupt_command): Merge two function comments into one.
10254 2014-03-22 Doug Evans <xdje42@gmail.com>
10256 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10259 2014-03-22 Yao Qi <yao@codesourcery.com>
10261 * remote.c (target_read_live_memory): Remove.
10262 (memory_xfer_live_readonly_partial): Rename it to
10263 remote_xfer_live_readonly_partial. Remove argument 'object'.
10264 All callers updated. Call remote_read_bytes_1
10265 instead of target_read_live_memory.
10266 * tracepoint.c (set_traceframe_number): Remove.
10267 (make_cleanup_restore_traceframe_number): Likewise .
10268 * tracepoint.h (set_traceframe_number): Remove declaration.
10269 (make_cleanup_restore_traceframe_number): Likewise.
10271 2014-03-22 Yao Qi <yao@codesourcery.com>
10273 * remote.c (remote_read_bytes): Move code on reading from the
10275 (remote_read_bytes_1): ... here. New function.
10277 2014-03-22 Yao Qi <yao@codesourcery.com>
10279 * ctf.c (ctf_xfer_partial): Check the return value of
10280 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10281 return TARGET_XFER_UNAVAILABLE.
10282 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10283 * target.c (target_read_live_memory): Move it to remote.c.
10284 (memory_xfer_live_readonly_partial): Likewise.
10285 (memory_xfer_partial_1): Move some code to remote_read_bytes.
10286 * remote.c (target_read_live_memory): Moved from target.c.
10287 (memory_xfer_live_readonly_partial): Likewise.
10288 (remote_read_bytes): Factored out from
10289 memory_xfer_partial_1.
10291 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
10293 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10296 2014-03-21 Pedro Alves <palves@redhat.com>
10298 * infrun.c (normal_stop): Extend comment.
10300 2014-03-21 Hui Zhu <hui@codesourcery.com>
10301 Pedro Alves <palves@redhat.com>
10303 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10305 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10306 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10307 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10309 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
10311 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10312 `z' formatted output modifier.
10314 2014-03-20 Tom Tromey <tromey@redhat.com>
10315 Sergio Durigan Junior <sergiodj@redhat.com>
10317 * probe.c (parse_probes): Turn assert into an ordinary error.
10318 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10319 exceptions when parsing probes. Rearrange the code for clarity.
10321 2014-03-20 Tom Tromey <tromey@redhat.com>
10324 * top.c (execute_command): Only dispatch events if the command
10325 started the target.
10327 2014-03-20 Tom Tromey <tromey@redhat.com>
10330 * infcall.c: Include event-top.h.
10331 (run_inferior_call): Call async_disable_stdin if needed.
10333 2014-03-20 Pedro Alves <palves@redhat.com>
10335 * infrun.c (prepare_to_proceed): Delete.
10336 (thread_still_needs_step_over): New function.
10337 (find_thread_needs_step_over): New function.
10338 (proceed): If the current thread needs a step-over, set its
10339 steping_over_breakpoint flag. Adjust to use
10340 find_thread_needs_step_over instead of prepare_to_proceed.
10341 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10342 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10344 (switch_back_to_stepped_thread): Step over breakpoints of all
10345 threads not the stepping thread, before switching back to the
10348 2014-03-20 Pedro Alves <palves@redhat.com>
10350 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10352 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10353 * infrun.c (saved_singlestep_ptid)
10354 (stepping_past_singlestep_breakpoint): Delete.
10355 (resume): Remove stepping_past_singlestep_breakpoint handling.
10356 (proceed): Store the prev_pc of the stepping thread too.
10357 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
10359 (enum infwait_states): Delete infwait_thread_hop_state.
10360 (struct execution_control_state) <hit_singlestep_breakpoint>: New
10362 (handle_inferior_event): Adjust.
10363 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10364 handling and the thread-hop code. Before removing single-step
10365 breakpoints, check whether the thread hit a single-step breakpoint
10366 of another thread. If it did, the trap is not a random signal.
10367 (switch_back_to_stepped_thread): If the event thread hit a
10368 single-step breakpoint, unblock it before switching to the
10369 stepping thread. Handle the case of the stepped thread having
10371 (keep_going): Handle the case of the current thread moving past a
10372 single-step breakpoint.
10374 2014-03-20 Pedro Alves <palves@redhat.com>
10376 PR breakpoints/7143
10377 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10378 are being stepped over.
10379 (breakpoint_address_match): Make extern.
10380 * breakpoint.h (breakpoint_address_match): New declaration.
10381 * inferior.h (stepping_past_instruction_at): New declaration.
10382 * infrun.c (struct step_over_info): New type.
10383 (step_over_info): New global.
10384 (set_step_over_info, clear_step_over_info)
10385 (stepping_past_instruction_at): New functions.
10386 (handle_inferior_event): Clear the step-over info when
10387 trap_expected is cleared.
10388 (resume): Remove now stale comment.
10389 (clear_proceed_status): Clear step-over info.
10390 (proceed): Adjust step-over handling to set or clear the step-over
10391 info instead of removing all breakpoints.
10392 (handle_signal_stop): When setting up a thread-hop, don't remove
10394 (stop_stepping): Clear step-over info.
10395 (keep_going): Adjust step-over handling to set or clear step-over
10396 info and then always inserting breakpoints, instead of removing
10397 all breakpoints when stepping over one.
10399 2014-03-20 Pedro Alves <palves@redhat.com>
10401 * infrun.c (previous_inferior_ptid): Adjust comment.
10402 (deferred_step_ptid): Delete.
10403 (infrun_thread_ptid_changed, prepare_to_proceed)
10404 (init_wait_for_inferior): Adjust.
10405 (handle_signal_stop): Delete deferred_step_ptid handling.
10407 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10410 * defs.h (sync_quit_force_run): New declaration.
10411 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10412 * event-top.c (async_sigterm_handler): New declaration.
10413 (async_sigterm_token): New variable.
10414 (async_init_signals): Create also async_sigterm_token.
10415 (async_sigterm_handler): New function.
10416 (sync_quit_force_run): New variable.
10417 (handle_sigterm): Replace quit_force call by other calls.
10418 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10420 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10422 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10423 offset into SPE pseudo registers.
10425 2014-03-18 Pedro Alves <palves@redhat.com>
10428 * inferior.h (print_stop_event): Declare.
10429 * infrun.c (print_stop_event): New, factored out from ...
10430 (normal_stop): ... this.
10431 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10432 of bpstat_print/print_stack_frame.
10434 2014-03-17 Tom Tromey <tromey@redhat.com>
10436 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10438 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10440 * ada-lang.c (decode_constrained_packed_array): Perform a
10441 minimal coercion for reference with coerce_ref instead of
10444 2014-03-17 Tristan Gingold <gingold@adacore.com>
10446 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10447 (darwin_solib_create_inferior_hook): Emit a warning if version
10450 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
10452 * python/py-value.c (get_field_flag): Cast flag_name argument to
10453 PyObject_GetAttrString to support Python 2.4.
10455 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10457 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10458 (Global Maintainers): Remove Jan Kratochvil.
10460 2014-03-14 Pedro Alves <palves@redhat.com>
10462 * inferior.h (terminal_ours_for_output): Rename to ...
10463 (child_terminal_ours_for_output): ... this.
10464 (terminal_save_ours): Rename to ...
10465 (child_terminal_save_ours): ... this.
10466 (terminal_ours): Rename to ...
10467 (child_terminal_ours): ... this.
10468 (terminal_inferior): Rename to ...
10469 (child_terminal_inferior): ... this.
10470 (terminal_init_inferior): Rename to ...
10471 (child_terminal_init_inferior): ... this.
10472 (terminal_init_inferior_with_pgrp): Rename to ...
10473 (child_terminal_init_inferior_with_pgrp): ... this.
10474 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10475 (child_terminal_init_with_pgrp): ... this.
10476 (terminal_save_ours): Rename to ...
10477 (child_terminal_save_ours): ... this.
10478 (terminal_init_inferior): Rename to ...
10479 (child_terminal_init): ... this. Adjust.
10480 (terminal_inferior): Rename to ...
10481 (child_terminal_inferior): ... this.
10482 (terminal_ours_for_output): Rename to ...
10483 (child_terminal_ours_for_output): ... this. Adjust.
10484 (terminal_ours): Rename to ...
10485 (child_terminal_ours): ... this.
10486 (terminal_ours_1): Rename to ...
10487 (child_terminal_ours_1): ... this. Adjust.
10488 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10489 * windows-nat.c (do_initial_windows_stuff): Adjust.
10490 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10491 (gnu_terminal_init): ... this. Adjust.
10492 (gnu_target): Adjust.
10493 * inf-child.c (inf_child_target): Adjust.
10495 2014-03-13 Doug Evans <xdje42@gmail.com>
10498 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10501 2014-03-13 Doug Evans <xdje42@gmail.com>
10503 * value.c (record_latest_value): Call release_value_or_incref
10504 instead of release_value.
10506 2014-03-13 Pedro Alves <palves@redhat.com>
10508 * procfs.c (procfs_target): Don't override to_shortname,
10509 to_longname or to_doc.
10511 2014-03-13 Pedro Alves <palves@redhat.com>
10513 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10514 Unix in user visible strings.
10516 2014-03-12 Stan Shebs <stan@codesourcery.com>
10518 * gdbtypes.h: Annotate comments for Doxygen, add a page
10519 block comment with some general info.
10521 2014-03-12 Pedro Alves <palves@redhat.com>
10523 * infcmd.c (prepare_execution_command): New function, factored out
10524 from several execution commands.
10525 (run_command_1, continue_command, step_1, jump_command)
10526 (signal_command, until_command, advance_command, finish_command)
10527 (attach_command): Use prepare_execution_command.
10529 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10531 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10532 (MAX_BPTS): Define.
10533 (MAX_WPTS): Define.
10534 (struct arm_linux_thread_points): Removed.
10535 (struct arm_linux_process_info): New.
10536 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10537 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10538 (arm_linux_find_breakpoints_by_tid): Removed.
10539 (struct arch_lwp_info): New.
10540 (arm_linux_find_process_pid): New functions.
10541 (arm_linux_add_process): New functions.
10542 (arm_linux_process_info_get): New functions.
10543 (arm_linux_forget_process): New function.
10544 (arm_linux_get_debug_reg_state): New function.
10545 (struct update_registers_data): New.
10546 (update_registers_callback): New function.
10547 (arm_linux_insert_hw_breakpoint1): Updated.
10548 (arm_linux_remove_hw_breakpoint1): Updated.
10549 (arm_linux_insert_hw_breakpoint): Updated.
10550 (arm_linux_remove_hw_breakpoint): Updated.
10551 (arm_linux_insert_watchpoint): Updated.
10552 (arm_linux_remove_watchpoint): Updated.
10553 (arm_linux_new_thread): Updated.
10554 (arm_linux_prepare_to_resume): New function.
10555 (arm_linux_new_fork): New function.
10556 (_initialize_arm_linux_nat): Updated.
10558 2014-03-12 Pedro Alves <palves@redhat.com>
10560 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10562 2014-03-12 Tom Tromey <tromey@redhat.com>
10564 * inf-child.c (return_zero): New function.
10565 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10566 * aix-thread.c (aix_thread_inferior_created): New function.
10567 (aix_thread_attach): Remove.
10568 (init_aix_thread_ops): Don't set to_attach.
10569 (_initialize_aix_thread): Register inferior_created observer.
10570 * corelow.c (init_core_ops): Don't set to_attach or
10571 to_create_inferior.
10572 * exec.c (init_exec_ops): Don't set to_attach or
10573 to_create_inferior.
10574 * infcmd.c (run_command_1): Use find_run_target. Make direct
10576 (attach_command): Use find_attach_target. Make direct target
10578 * record-btrace.c (init_record_btrace_ops): Don't set
10579 to_create_inferior.
10580 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10582 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10583 set to_create_inferior.
10584 * target.c (complete_target_initialization): Add assertion.
10585 (target_create_inferior): Remove.
10586 (find_default_attach, find_default_create_inferior): Remove.
10587 (find_attach_target, find_run_target): New functions.
10588 (find_default_is_async_p, find_default_can_async_p)
10589 (target_supports_non_stop, target_attach): Remove.
10590 (init_dummy_target): Don't set to_create_inferior or
10591 to_supports_non_stop.
10592 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10593 TARGET_DEFAULT_FUNC.
10594 <to_create_inferior>: Add comment.
10595 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10596 TARGET_DEFAULT_RETURN.
10597 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10598 (find_attach_target, find_run_target): Declare.
10599 (target_create_inferior): Remove.
10600 (target_has_execution_1): Update comment.
10601 (target_supports_non_stop): Remove.
10602 * target-delegates.c: Rebuild.
10604 2014-03-12 Pedro Alves <palves@redhat.com>
10606 * inf-child.h: Update comment to not mention Unix.
10608 2014-03-12 Pedro Alves <palves@redhat.com>
10610 * inf-child.c: Update top comment to not mention Unix. Add
10611 generic comment describing how this target is meant to be used.
10612 (inf_child_post_attach, inf_child_post_startup_inferior)
10613 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10616 2014-03-12 Pedro Alves <palves@redhat.com>
10618 * nto-procfs.c: Include inf-child.h.
10619 (procfs_ops): Delete global.
10620 (procfs_can_run): Delete method.
10621 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10622 target pointer instead of referencing procfs_ops.
10623 (procfs_prepare_to_store): Delete.
10624 (init_procfs_ops): Delete function.
10625 (procfs_target): New function, based on init_procfs_ops, but
10626 inherit inf_child_target.
10627 (_initialize_procfs): Use procfs_target.
10629 2014-03-12 Pedro Alves <palves@redhat.com>
10631 * windows-nat.c: Include inf-child.h.
10632 (windows_ops): Delete global.
10633 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10635 (init_windows_ops): Delete function.
10636 (windows_target): New function, based on init_windows_ops, but
10637 inherit inf_child_target.
10638 (_initialize_windows_nat): Use windows_target. Install x86
10639 specific target methods here.
10641 2014-03-10 Doug Evans <xdje42@gmail.com>
10643 * guile/guile.c (call_initialize_gdb_module): New function.
10644 (initialize_guile): Replace call to scm_init_guile with call to
10647 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10649 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10650 in call to TYPE_CODE macro.
10652 2014-03-10 Jerome Guitton <guitton@adacore.com>
10654 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10655 Resolve tagged types to full view.
10657 2014-03-10 Hui Zhu <hui@codesourcery.com>
10659 * target.h (target_insert_breakpoint): Remove "hardware" from its
10662 2014-03-07 Doug Evans <dje@google.com>
10664 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10666 2014-03-07 Doug Evans <dje@google.com>
10668 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10669 Remove unused local comp_dir_attr. Assert exactly one of
10670 stub_comp_unit_die, stub_comp_dir is non-NULL.
10672 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10674 * target.h (complete_target_initialization, add_target):
10677 2014-03-07 Pedro Alves <palves@redhat.com>
10679 * go32-nat.c: Include inf-child.h.
10680 (go32_ops): Delete global.
10681 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10683 (go32_create_inferior): Push the passed in target pointer instead
10684 of referencing go32_ops.
10685 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10686 (go32_target): New function, based on init_go32_ops, but inherit
10688 (_initialize_go32_nat): Use go32_target. Move parts of
10689 init_go32_ops here.
10691 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10693 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10694 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10695 SYMBOL_VALUE_ADDRESS.
10696 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10698 2014-03-06 Yao Qi <yao@codesourcery.com>
10700 * breakpoint.c (get_tracepoint_by_number): Remove argument
10701 optional_p. All callers updated. Adjust comments. Update
10703 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10705 2014-03-06 Yao Qi <yao@codesourcery.com>
10707 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10708 early if get_number returns zero. Use 'p' instead of 'args'.
10710 2014-03-06 Yao Qi <yao@codesourcery.com>
10712 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10715 2014-03-06 Yao Qi <yao@codesourcery.com>
10717 PR breakpoints/16508
10718 * tracepoint.c (check_trace_running): New function.
10719 (trace_find_command): Move code to check_trace_running and
10720 call check_trace_running.
10721 (trace_find_pc_command): Likewise.
10722 (trace_find_tracepoint_command): Likewise.
10723 (trace_find_line_command): Likewise.
10724 (trace_find_range_command): Likewise.
10725 * tracepoint.h (check_trace_running): Likewise.
10726 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10728 2014-03-06 Yao Qi <yao@codesourcery.com>
10730 * target.h (struct target_ops) <to_traceframe_info>: Use
10731 TARGET_DEFAULT_NORETURN (tcomplain ()).
10732 * target-delegates.c: Regenerated.
10734 2014-03-05 Pedro Alves <palves@redhat.com>
10737 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10738 void. Update comment.
10739 (dcache_xfer_memory): Delete.
10740 (dcache_read_memory_partial): New, based on the read bits of
10741 dcache_xfer_memory.
10742 (dcache_update): Add status parameter. Use ULONGEST for len, and
10743 adjust. Discard cache lines if the reason for the update was
10745 * dcache.h (dcache_xfer_memory): Delete declaration.
10746 (dcache_read_memory_partial): New declaration.
10747 (dcache_update): Update prototype.
10748 * target.c (raw_memory_xfer_partial): Update the dcache here.
10749 (memory_xfer_partial_1): Don't handle dcache writes here.
10751 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10753 * remote-sim.c (gdbsim_load): Add const to prog.
10755 2014-03-03 Tom Tromey <tromey@redhat.com>
10757 * elfread.c (probe_key): Change to bfd_data.
10758 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10759 now per-BFD, not per-objfile.
10760 * stap-probe.c (stap_probe_destroy): Update comment.
10761 (handle_stap_probe): Allocate on the per-BFD obstack.
10763 2014-03-03 Tom Tromey <tromey@redhat.com>
10765 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10766 * breakpoint.c (create_longjmp_master_breakpoint): Use
10768 (add_location_to_breakpoint, bkpt_probe_insert_location)
10769 (bkpt_probe_remove_location): Update.
10770 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10771 * elfread.c (elf_symfile_relocate_probe): Remove.
10772 (elf_probe_fns): Update.
10773 (insert_exception_resume_breakpoint): Change type of "probe"
10774 parameter to bound_probe.
10775 (check_exception_resume): Update.
10776 * objfiles.c (objfile_relocate1): Don't relocate probes.
10777 * probe.c (bound_probe_s): New typedef.
10778 (parse_probes): Use get_probe_address. Set sal's objfile.
10779 (find_probe_by_pc): Return a bound_probe.
10780 (collect_probes): Return a VEC(bound_probe_s).
10781 (compare_probes): Update.
10782 (gen_ui_out_table_header_info): Change type of "probes"
10784 (info_probes_for_ops): Update.
10785 (get_probe_address): New function.
10786 (probe_safe_evaluate_at_pc): Update.
10787 * probe.h (struct probe_ops) <get_probe_address>: New field.
10788 <set_semaphore, clear_semaphore>: Add objfile parameter.
10789 (struct probe) <objfile>: Remove field.
10791 <address>: Update comment.
10792 (struct bound_probe): New.
10793 (find_probe_by_pc): Return a bound_probe.
10794 (get_probe_address): Declare.
10795 * solib-svr4.c (struct probe_and_action) <address>: New field.
10796 (hash_probe_and_action, equal_probe_and_action): Update.
10797 (register_solib_event_probe): Add address parameter.
10798 (solib_event_probe_at): Update.
10799 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10801 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10802 (stap_get_probe_address): New function.
10803 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10804 (compile_probe_arg): Update.
10805 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10807 (handle_stap_probe): Don't relocate the probe.
10808 (stap_relocate): Remove.
10809 (stap_gen_info_probes_table_values): Update.
10810 (stap_probe_ops): Remove stap_relocate.
10811 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10812 (debug_sym_probe_fns): Update.
10813 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10814 * symtab.c (init_sal): Use memset.
10815 * symtab.h (struct symtab_and_line) <objfile>: New field.
10816 * tracepoint.c (start_tracing, stop_tracing): Update.
10818 2014-03-03 Tom Tromey <tromey@redhat.com>
10820 * probe.h (parse_probes, find_probe_by_pc)
10821 (find_probes_in_objfile): Fix comments.
10823 2014-03-02 Doug Evans <xdje42@gmail.com>
10825 * infrun.c (handle_signal_stop): Replace test for
10826 TARGET_WAITKIND_STOPPED with an assert.
10828 2014-03-02 Doug Evans <xdje42@gmail.com>
10830 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10832 2014-03-02 Doug Evans <xdje42@gmail.com>
10834 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10836 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10838 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10840 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10842 * i386obsd-nat.c: Include "obsd-nat.h".
10843 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10845 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10847 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10849 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10851 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10853 * mips64obsd-nat.c: Include "obsd-nath".
10854 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10856 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10858 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10860 * amd64obsd-nat.c: Include "obsd-nat,h.
10861 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10863 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10865 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10867 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10868 (find_overload_match): Update call to find_oload_champ.
10869 (find_oload_champ_namespace_loop): Likewise
10871 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10873 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10875 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10876 * config/sparc/obsd64.mh: New file.
10877 * sparc64obsd-nat.c: New file.
10879 * obsd-nat.h: New file.
10880 * obsd-nat.c: New file.
10881 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10882 (ALLDEPFILES): Add obsd-nat.c.
10884 2014-02-28 Tom Tromey <tromey@redhat.com>
10886 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10887 * cli-out.h (cli_ui_out_impl): Now const.
10888 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10889 * ui-out.c (struct ui_out) <impl>: Now const.
10890 (default_ui_out_impl): Now const.
10891 (ui_out_new): Make 'impl' parameter const.
10892 * ui-out.h (ui_out_new): Update.
10894 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10896 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10898 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10900 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10902 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10904 Additional PR 8882 fix.
10905 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10907 2014-02-27 Pedro Alves <palves@redhat.com>
10909 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10912 2014-02-27 Pedro Alves <palves@redhat.com>
10915 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10916 * nat/linux-waitpid.c: Include string.h.
10917 (status_to_str): Moved here and made extern.
10918 * nat/linux-waitpid.h (status_to_str): New declaration.
10920 2014-02-27 Hui Zhu <hui@codesourcery.com>
10923 * infrun.c (ptid_match): Move ...
10924 * common/ptid.c (ptid_match): ... here.
10925 * inferior.h (ptid_match): Move ...
10926 * common/ptid.h (ptid_match): ... here.
10928 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10930 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10931 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10934 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10936 * obsd-tdep.c (obsd_auxv_parse): New function.
10937 (obsd_init_abi): Set auxv_parse.
10939 * gdbarch.sh (auxv_parse): New.
10940 * gdbarch.h: Regenerated.
10941 * gdbarch.c: Regenerated.
10942 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10944 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10946 * guile/scm-value.c (gdbscm_history_append_x): New function.
10947 (value_functions): Add it.
10949 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10951 * dwarf2read.c (attr_value_as_address): New function.
10952 (dwarf2_find_base_address, read_call_site_scope): Use
10953 attr_value_as_address in place of DW_ADDR.
10954 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10955 the low and high addresses. Slight rework of the handling
10956 of the high pc being a constant form, and limit it to
10957 DWARF verson 4 or higher.
10958 (dwarf2_record_block_ranges): Likewise.
10959 (read_partial_die): Likewise.
10960 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10962 2014-02-26 Tom Tromey <tromey@redhat.com>
10964 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10966 2014-02-26 Tom Tromey <tromey@redhat.com>
10968 * elfread.c (elf_read_minimal_symbols): Return early if
10969 minimal symbols have already been read. Add "ei" parameter.
10970 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10971 * minsyms.c (prim_record_minimal_symbol_full): Update.
10972 * objfiles.h (struct objstats) <n_minsyms>: Move...
10973 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10974 * symmisc.c (print_objfile_statistics): Update.
10976 2014-02-26 Tom Tromey <tromey@redhat.com>
10978 * elfread.c (elf_read_minimal_symbols): New function, from
10980 (elf_symfile_read): Call it.
10982 2014-02-26 Tom Tromey <tromey@redhat.com>
10984 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10985 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10986 (lookup_minimal_symbol_solib_trampoline)
10987 (lookup_minimal_symbol_by_pc_section_1)
10988 (lookup_minimal_symbol_and_objfile): Update.
10989 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10990 Don't allocate a minimal symbol if minsyms have already been read.
10991 (build_minimal_symbol_hash_tables): Update.
10992 (install_minimal_symbols): Do nothing if minsyms already read.
10993 Use the per-BFD obstack.
10994 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10995 * objfiles.c (allocate_objfile): Call
10996 terminate_minimal_symbol_table later.
10997 (have_minimal_symbols): Update.
10998 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10999 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
11000 Move from struct objfile.
11001 <minsyms_read>: New field.
11002 (struct objfile) <msymbols, minimal_symbol_count,
11003 msymbol_hash, msymbol_demangled_hash>: Move.
11004 (ALL_OBJFILE_MSYMBOLS): Update.
11005 * symfile.c (read_symbols): Set minsyms_read.
11006 (reread_symbols): Update.
11007 * symmisc.c (dump_objfile, dump_msymbols): Update.
11009 2014-02-26 Tom Tromey <tromey@redhat.com>
11011 * minsyms.c (msymbols_sort): Remove.
11012 * minsyms.h (msymbols_sort): Remove.
11013 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
11014 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
11015 * elfread.c (elf_symtab_read): Don't add section offsets.
11016 * xcoffread.c (record_minimal_symbol): Don't add section offset
11017 to minimal symbol address.
11018 * somread.c (text_offset, data_offset): Remove.
11019 (som_symtab_read): Don't add section offsets to minimal symbol
11021 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11022 Don't add section offsets to minimal symbols.
11023 * coffread.c (coff_symtab_read): Don't add section offsets
11024 to minimal symbol addresses.
11025 * machoread.c (macho_symtab_add_minsym): Don't add section offset
11026 to minimal symbol addresses.
11027 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11028 section offset to minimal symbol addresses.
11029 * mdebugread.c (parse_partial_symbols): Don't add section
11030 offset to minimal symbol addresses.
11031 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11032 offset to minimal symbol addresses.
11034 2014-02-26 Tom Tromey <tromey@redhat.com>
11036 * ada-lang.c (ada_main_name): Update.
11037 (ada_add_standard_exceptions): Update.
11038 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11039 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11040 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11041 * auxv.c (ld_so_xfer_auxv): Update.
11042 * avr-tdep.c (avr_scan_prologue): Update.
11043 * ax-gdb.c (gen_var_ref): Update.
11044 * blockframe.c (get_pc_function_start)
11045 (find_pc_partial_function_gnu_ifunc): Update.
11046 * breakpoint.c (create_overlay_event_breakpoint)
11047 (create_longjmp_master_breakpoint)
11048 (create_std_terminate_master_breakpoint)
11049 (create_exception_master_breakpoint): Update.
11050 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11051 * c-valprint.c (c_val_print): Update.
11052 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11053 * common/agent.c (agent_look_up_symbols): Update.
11054 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11055 * dwarf2loc.c (call_site_to_target_addr): Update.
11056 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11057 * elfread.c (elf_gnu_ifunc_record_cache)
11058 (elf_gnu_ifunc_resolve_by_got): Update.
11059 * findvar.c (default_read_var_value): Update.
11060 * frame.c (inside_main_func): Update.
11061 * frv-tdep.c (frv_frame_this_id): Update.
11062 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11063 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11065 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11066 (hppa_hpux_find_dummy_bpaddr): Update.
11067 * hppa-tdep.c (hppa_symbol_address): Update.
11068 * infcmd.c (until_next_command): Update.
11069 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11071 * linespec.c (minsym_found, add_minsym): Update.
11072 * linux-nat.c (get_signo): Update.
11073 * linux-thread-db.c (inferior_has_bug): Update.
11074 * m32c-tdep.c (m32c_return_value)
11075 (m32c_m16c_address_to_pointer): Update.
11076 * m32r-tdep.c (m32r_frame_this_id): Update.
11077 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11078 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11079 * maint.c (maintenance_translate_address): Update.
11080 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11081 (frob_address): New function.
11082 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11083 frob_address. Rename parameter to "pc_in".
11084 (compare_minimal_symbols, compact_minimal_symbols): Use raw
11086 (find_solib_trampoline_target, minimal_symbol_upper_bound):
11088 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11089 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11090 * objc-lang.c (find_objc_msgsend): Update.
11091 * objfiles.c (objfile_relocate1): Update.
11092 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11093 * p-valprint.c (pascal_val_print): Update.
11094 * parse.c (write_exp_msymbol): Update.
11095 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11096 (ppc_elfv2_skip_entrypoint): Update.
11097 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11098 * printcmd.c (build_address_symbolic, msym_info)
11099 (address_info): Update.
11100 * proc-service.c (ps_pglobal_lookup): Update.
11101 * psymtab.c (find_pc_sect_psymtab_closer)
11102 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11103 Change msymbol parameter to bound_minimal_symbol.
11104 * ravenscar-thread.c (get_running_thread_id): Update.
11105 * remote.c (remote_check_symbols): Update.
11106 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11108 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11109 * solib-dsbt.c (lm_base): Update.
11110 * solib-frv.c (lm_base, main_got): Update.
11111 * solib-irix.c (locate_base): Update.
11112 * solib-som.c (som_solib_create_inferior_hook)
11113 (link_map_start): Update.
11114 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11115 * solib-svr4.c (elf_locate_base, enable_break): Update.
11116 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11117 (flush_ea_cache): Update.
11118 * stabsread.c (define_symbol, scan_file_globals): Update.
11119 * stack.c (find_frame_funname): Update.
11120 * symfile-debug.c (debug_qf_expand_symtabs_matching)
11121 (debug_qf_find_pc_sect_symtab): Update.
11122 * symfile.c (simple_read_overlay_table)
11123 (simple_overlay_update): Update.
11124 * symfile.h (struct quick_symbol_functions)
11125 <find_pc_sect_symtab>: Change type of msymbol to
11126 bound_minimal_symbol.
11127 * symmisc.c (dump_msymbols): Update.
11128 * symtab.c (find_pc_sect_symtab_via_partial)
11129 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11130 (search_symbols, print_msymbol_info): Update.
11131 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11132 (MSYMBOL_VALUE_ADDRESS): Redefine.
11133 (BMSYMBOL_VALUE_ADDRESS): New macro.
11134 * tracepoint.c (scope_info): Update.
11135 * tui/tui-disasm.c (tui_find_disassembly_address)
11136 (tui_get_begin_asm_address): Update.
11137 * valops.c (find_function_in_inferior): Update.
11138 * value.c (value_static_field, value_fn_field): Update.
11140 2014-02-26 Tom Tromey <tromey@redhat.com>
11142 * ada-lang.c (ada_update_initial_language): Update.
11143 (ada_main_name, ada_has_this_exception_support): Update.
11144 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11145 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11146 * arm-tdep.c (arm_skip_stub): Update.
11147 * auxv.c (ld_so_xfer_auxv): Update.
11148 * avr-tdep.c (avr_scan_prologue): Update.
11149 * ax-gdb.c (gen_var_ref): Update.
11150 * breakpoint.c (struct breakpoint_objfile_data)
11151 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11152 type to bound_minimal_symbol.
11153 (create_overlay_event_breakpoint)
11154 (create_longjmp_master_breakpoint)
11155 (create_std_terminate_master_breakpoint)
11156 (create_exception_master_breakpoint): Update.
11157 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11158 * c-exp.y (classify_name): Update.
11159 * coffread.c (coff_symfile_read): Update.
11160 * common/agent.c (agent_look_up_symbols): Update.
11161 * d-lang.c (d_main_name): Update.
11162 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11163 * dec-thread.c (enable_dec_thread): Update.
11164 * dwarf2loc.c (call_site_to_target_addr): Update.
11165 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11166 * eval.c (evaluate_subexp_standard): Update.
11167 * findvar.c (struct minsym_lookup_data) <result>: Change type
11168 to bound_minimal_symbol.
11170 (minsym_lookup_iterator_cb, default_read_var_value): Update.
11171 * frame.c (inside_main_func): Update.
11172 * frv-tdep.c (frv_frame_this_id): Update.
11173 * gcore.c (call_target_sbrk): Update.
11174 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11175 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11177 * go-lang.c (go_main_name): Update.
11178 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11179 (hppa_hpux_find_import_stub_for_addr): Update.
11180 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11181 Update. Change return type.
11182 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11184 * jit.c (jit_breakpoint_re_set_internal): Update.
11185 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11187 * linux-nat.c (get_signo): Update.
11188 * linux-thread-db.c (inferior_has_bug): Update
11189 * m32c-tdep.c (m32c_return_value)
11190 (m32c_m16c_address_to_pointer): Update.
11191 * m32r-tdep.c (m32r_frame_this_id): Update.
11192 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11193 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11194 * minsyms.c (lookup_minimal_symbol_internal): Rename to
11195 lookup_minimal_symbol. Change return type.
11196 (lookup_minimal_symbol): Remove.
11197 (lookup_bound_minimal_symbol): Update.
11198 (lookup_minimal_symbol_text): Change return type.
11199 (lookup_minimal_symbol_solib_trampoline): Change return type.
11200 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11201 (lookup_minimal_symbol_solib_trampoline): Change return type.
11202 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11203 * objc-lang.c (lookup_objc_class, lookup_child_selector)
11204 (value_nsstring, find_imps): Update.
11205 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11206 * p-lang.c (pascal_main_name): Update.
11207 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11208 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11209 * proc-service.c (ps_pglobal_lookup): Update.
11210 * ravenscar-thread.c (get_running_thread_msymbol): Change
11212 (has_ravenscar_runtime, get_running_thread_id): Update.
11213 * remote.c (remote_check_symbols): Update.
11214 * sol-thread.c (ps_pglobal_lookup): Update.
11215 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11216 * solib-dsbt.c (lm_base): Update.
11217 * solib-frv.c (lm_base, frv_relocate_section_addresses):
11219 * solib-irix.c (locate_base): Update.
11220 * solib-som.c (som_solib_create_inferior_hook)
11221 (som_solib_desire_dynamic_linker_symbols, link_map_start):
11223 * solib-spu.c (spu_enable_break): Update.
11224 * solib-svr4.c (elf_locate_base, enable_break): Update.
11225 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11226 (flush_ea_cache): Update.
11227 * stabsread.c (define_symbol): Update.
11228 * symfile.c (simple_read_overlay_table): Update.
11229 * symtab.c (find_pc_sect_line): Update.
11230 * tracepoint.c (scope_info): Update.
11231 * tui-disasm.c (tui_get_begin_asm_address): Update.
11232 * value.c (value_static_field): Update.
11234 2014-02-26 Tom Tromey <tromey@redhat.com>
11236 * minsyms.c (prim_record_minimal_symbol_full): Use
11237 SET_MSYMBOL_VALUE_ADDRESS.
11238 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11239 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11240 SET_MSYMBOL_VALUE_ADDRESS.
11241 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11242 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11244 2014-02-26 Tom Tromey <tromey@redhat.com>
11246 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11247 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11248 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11249 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11250 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11251 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11252 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11253 * ada-lang.c (ada_main_name): Update.
11254 (ada_lookup_simple_minsym): Update.
11255 (ada_make_symbol_completion_list): Update.
11256 (ada_add_standard_exceptions): Update.
11257 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11258 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11259 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11260 * arm-tdep.c (skip_prologue_function): Update.
11261 (arm_skip_stack_protector, arm_skip_stub): Update.
11262 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11263 (arm_wince_skip_main_prologue): Update.
11264 * auxv.c (ld_so_xfer_auxv): Update.
11265 * avr-tdep.c (avr_scan_prologue): Update.
11266 * ax-gdb.c (gen_var_ref): Update.
11267 * block.c (call_site_for_pc): Update.
11268 * blockframe.c (get_pc_function_start): Update.
11269 (find_pc_partial_function_gnu_ifunc): Update.
11270 * breakpoint.c (create_overlay_event_breakpoint): Update.
11271 (create_longjmp_master_breakpoint): Update.
11272 (create_std_terminate_master_breakpoint): Update.
11273 (create_exception_master_breakpoint): Update.
11274 (resolve_sal_pc): Update.
11275 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11276 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11278 * c-valprint.c (c_val_print): Update.
11279 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11280 * coffread.c (coff_symfile_read): Update.
11281 * common/agent.c (agent_look_up_symbols): Update.
11282 * dbxread.c (find_stab_function_addr): Update.
11283 (end_psymtab): Update.
11284 * dwarf2loc.c (call_site_to_target_addr): Update.
11285 (func_verify_no_selftailcall): Update.
11286 (tailcall_dump): Update.
11287 (call_site_find_chain_1): Update.
11288 (dwarf_expr_reg_to_entry_parameter): Update.
11289 * elfread.c (elf_gnu_ifunc_record_cache): Update.
11290 (elf_gnu_ifunc_resolve_by_got): Update.
11291 * f-valprint.c (info_common_command): Update.
11292 * findvar.c (read_var_value): Update.
11293 * frame.c (get_prev_frame_1): Update.
11294 (inside_main_func): Update.
11295 * frv-tdep.c (frv_skip_main_prologue): Update.
11296 (frv_frame_this_id): Update.
11297 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11298 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11299 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11300 (gnuv3_skip_trampoline): Update.
11301 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11302 (hppa64_hpux_in_solib_call_trampoline): Update.
11303 (hppa_hpux_skip_trampoline_code): Update.
11304 (hppa64_hpux_search_dummy_call_sequence): Update.
11305 (hppa_hpux_find_import_stub_for_addr): Update.
11306 (hppa_hpux_find_dummy_bpaddr): Update.
11307 * hppa-tdep.c (hppa_symbol_address)
11308 (hppa_lookup_stub_minimal_symbol): Update.
11309 * i386-tdep.c (i386_skip_main_prologue): Update.
11310 (i386_pe_skip_trampoline_code): Update.
11311 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11312 * infcall.c (get_function_name): Update.
11313 * infcmd.c (until_next_command): Update.
11314 * jit.c (jit_breakpoint_re_set_internal): Update.
11315 (jit_inferior_init): Update.
11316 * linespec.c (minsym_found): Update.
11317 (add_minsym): Update.
11318 * linux-fork.c (info_checkpoints_command): Update.
11319 * linux-nat.c (get_signo): Update.
11320 * linux-thread-db.c (inferior_has_bug): Update.
11321 * m32c-tdep.c (m32c_return_value): Update.
11322 (m32c_m16c_address_to_pointer): Update.
11323 (m32c_m16c_pointer_to_address): Update.
11324 * m32r-tdep.c (m32r_frame_this_id): Update.
11325 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11326 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11327 * maint.c (maintenance_translate_address): Update.
11328 * minsyms.c (add_minsym_to_hash_table): Update.
11329 (add_minsym_to_demangled_hash_table): Update.
11330 (msymbol_objfile): Update.
11331 (lookup_minimal_symbol): Update.
11332 (iterate_over_minimal_symbols): Update.
11333 (lookup_minimal_symbol_text): Update.
11334 (lookup_minimal_symbol_by_pc_name): Update.
11335 (lookup_minimal_symbol_solib_trampoline): Update.
11336 (lookup_minimal_symbol_by_pc_section_1): Update.
11337 (lookup_minimal_symbol_and_objfile): Update.
11338 (prim_record_minimal_symbol_full): Update.
11339 (compare_minimal_symbols): Update.
11340 (compact_minimal_symbols): Update.
11341 (build_minimal_symbol_hash_tables): Update.
11342 (install_minimal_symbols): Update.
11343 (terminate_minimal_symbol_table): Update.
11344 (find_solib_trampoline_target): Update.
11345 (minimal_symbol_upper_bound): Update.
11346 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11347 * mips-tdep.c (mips_stub_frame_sniffer): Update.
11348 (mips_skip_pic_trampoline_code): Update.
11349 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11350 * objc-lang.c (selectors_info): Update.
11351 (classes_info): Update.
11352 (find_methods): Update.
11353 (find_imps): Update.
11354 (find_objc_msgsend): Update.
11355 * objfiles.c (objfile_relocate1): Update.
11356 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11357 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11358 * p-valprint.c (pascal_val_print): Update.
11359 * parse.c (write_exp_msymbol): Update.
11360 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11361 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11362 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11363 * printcmd.c (build_address_symbolic): Update.
11364 (sym_info): Update.
11365 (address_info): Update.
11366 * proc-service.c (ps_pglobal_lookup): Update.
11367 * psymtab.c (find_pc_sect_psymtab_closer): Update.
11368 (find_pc_sect_psymtab): Update.
11369 * python/py-framefilter.c (py_print_frame): Update.
11370 * ravenscar-thread.c (get_running_thread_id): Update.
11371 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11373 * remote.c (remote_check_symbols): Update.
11374 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11375 (rs6000_skip_trampoline_code): Update.
11376 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11377 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11378 * solib-dsbt.c (lm_base): Update.
11379 * solib-frv.c (lm_base): Update.
11380 (main_got): Update.
11381 * solib-irix.c (locate_base): Update.
11382 * solib-som.c (som_solib_create_inferior_hook): Update.
11383 (som_solib_desire_dynamic_linker_symbols): Update.
11384 (link_map_start): Update.
11385 * solib-spu.c (spu_enable_break): Update.
11386 (ocl_enable_break): Update.
11387 * solib-svr4.c (elf_locate_base): Update.
11388 (enable_break): Update.
11389 * spu-tdep.c (spu_get_overlay_table): Update.
11390 (spu_catch_start): Update.
11391 (flush_ea_cache): Update.
11392 * stabsread.c (define_symbol): Update.
11393 (scan_file_globals): Update.
11394 * stack.c (find_frame_funname): Update.
11395 (frame_info): Update.
11396 * symfile.c (simple_read_overlay_table): Update.
11397 (simple_overlay_update): Update.
11398 * symmisc.c (dump_msymbols): Update.
11399 * symtab.c (fixup_section): Update.
11400 (find_pc_sect_line): Update.
11401 (skip_prologue_sal): Update.
11402 (search_symbols): Update.
11403 (print_msymbol_info): Update.
11404 (rbreak_command): Update.
11405 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11406 (completion_list_objc_symbol): Update.
11407 (default_make_symbol_completion_list_break_on): Update.
11408 * tracepoint.c (scope_info): Update.
11409 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11410 (tui_get_begin_asm_address): Update.
11411 * valops.c (find_function_in_inferior): Update.
11412 * value.c (value_static_field): Update.
11413 (value_fn_field): Update.
11415 2014-02-26 Tom Tromey <tromey@redhat.com>
11417 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11418 bound minimal symbols. Move code that knows about minsym
11420 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11422 * minsyms.h (minimal_symbol_upper_bound): Declare.
11423 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11424 minimal_symbol_upper_bound.
11426 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11428 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11429 Use the type's name if its basic type does not have a tag.
11431 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11433 * dwarf2read.c (read_subrange_type): Add comment.
11435 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11437 * dwarf2read.c (update_enumeration_type_from_children): New
11438 function, mostly extracted from process_structure_scope.
11439 (read_enumeration_type): Call update_enumeration_type_from_children.
11440 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11441 and flag_flag_enum fields.
11443 2014-02-26 Pedro Alves <palves@redhat.com>
11445 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11446 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11447 to_xfer_partial method.
11449 2014-02-26 Pedro Alves <palves@redhat.com>
11451 * target.c (complete_target_initialization): Don't install
11452 default_xfer_partial as to_xfer_partial hook.
11453 (nomemory): Delete.
11454 (update_current_target): Don't INHERIT nor de_fault
11455 deprecated_xfer_memory. Delete de_fault macro.
11456 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11457 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11458 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11461 2014-02-26 Pedro Alves <palves@redhat.com>
11463 * go32-nat.c (my_write_child): New function.
11464 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11465 (go32_xfer_partial): New function.
11466 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11467 Instead install a to_xfer_partial hook.
11469 2014-02-26 Pedro Alves <palves@redhat.com>
11471 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11472 to_xfer_partial helper. Rewrite.
11473 (procfs_xfer_partial): New function.
11474 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11475 Install a to_xfer_partial hook.
11477 2014-02-26 Pedro Alves <palves@redhat.com>
11479 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11480 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11481 (m32r_xfer_partial): New function.
11482 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11483 Install a to_xfer_partial hook.
11485 2014-02-26 Pedro Alves <palves@redhat.com>
11487 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11489 (mips_xfer_partial): New function.
11490 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11491 hook. Install a to_xfer_partial hook.
11493 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11495 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11496 * gdbtypes.c (create_array_type_with_stride): New function,
11497 renaming create_array_type, but with an added parameter
11498 called "bit_stride".
11499 (create_array_type): Re-implement using
11500 create_array_type_with_stride.
11501 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11502 and DW_AT_bit_stride attributes.
11504 2014-02-26 Pedro Alves <palves@redhat.com>
11506 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11507 task-specific breakpoints.
11509 2014-02-25 Pedro Alves <palves@redhat.com>
11511 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11512 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11514 2014-02-25 Stan Shebs <stan@codesourcery.com>
11516 * defs.h: Annotate comments for Doxygen.
11518 2014-02-25 Tom Tromey <tromey@redhat.com>
11520 * target.h (target_ignore): Don't declare.
11521 * target.c (target_ignore): Remove.
11523 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11526 * auto-load.c (auto_load_objfile_script_1): Change filename to
11529 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11531 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11532 documentation. Adjust prototype to match the target_ops
11533 to_xfer_partial method. Adjust implementation accordingly.
11535 2014-02-25 Hui Zhu <hui@codesourcery.com>
11537 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11538 to_traceframe_info.
11540 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11542 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11543 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11544 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11545 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11546 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11547 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11548 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11549 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11551 (rl78_register_type): Use a data pointer type for SP and
11552 new pseudo registers mentioned above. Use a 16 bit integer
11553 type for all other register pairs.
11554 (rl78_register_name, rl78_g10_register_name): Update for
11555 new pseudo registers.
11556 (rl78_pseudo_register_read): Likewise.
11557 (rl78_pseudo_register_write): Likewise.
11558 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11559 to the newly added pseudo registers.
11561 2014-02-24 Doug Evans <dje@google.com>
11563 * value.c (record_latest_value): Fix comment.
11564 * printcmd.c (print_command_1): Remove code to handle -1 return from
11565 record_latest_value.
11567 2014-02-24 Pedro Alves <palves@redhat.com>
11569 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11570 deprecated_xfer_memory hook.
11571 (procfs_xfer_partial): Call procfs_xfer_memory instead
11572 of the deprecated_xfer_memory target hook.
11573 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11576 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11578 * windows-nat.c (windows_xfer_shared_libraries): Return
11579 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11580 requested object is TARGET_OBJECT_LIBRARIES.
11582 2014-02-24 Yao Qi <yao@codesourcery.com>
11584 * target.h (enum target_xfer_status)
11585 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11586 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11588 * corefile.c (memory_error_message): User updated.
11589 * exec.c (section_table_read_available_memory): Likewise.
11590 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11591 * target.c (target_xfer_status_to_string): Likewise.
11592 (raw_memory_xfer_partial): Likewise.
11593 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11594 * valops.c (read_value_memory): Likewise.
11595 * exec.h: Update comments.
11597 2014-02-24 Yao Qi <yao@codesourcery.com>
11599 * target.c (target_xfer_status_to_string): Rename argument err
11601 * target.h (target_xfer_status_to_string): Update declaration.
11602 Replace target_xfer_error_to_string with
11603 target_xfer_status_to_string in comment.
11605 2014-02-24 Yao Qi <yao@codesourcery.com>
11607 * mips-linux-nat.c (super_close): Update its type.
11608 (mips_linux_close): Pass 'self' to super_close.
11610 2014-02-24 Yao Qi <yao@codesourcery.com>
11612 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11613 * corefile.c (read_memory): Adjusted.
11614 * target.c (target_write_with_progress): Adjusted.
11616 2014-02-23 Yao Qi <yao@codesourcery.com>
11618 Revert two patches:
11620 2013-10-25 Yao Qi <yao@codesourcery.com>
11622 * remote.c (remote_traceframe_info): Return early if
11623 traceframe is not selected.
11625 2013-07-19 Yao Qi <yao@codesourcery.com>
11627 * target.c (update_current_target): Change the default action
11628 of 'to_traceframe_info' from tcomplain to return_zero.
11629 * target.h (struct target_ops) <to_traceframe_info>: Add more
11632 2014-02-23 Yao Qi <yao@codesourcery.com>
11634 * valops.c (read_value_memory): Rewrite it. Call
11635 target_xfer_partial in a loop.
11636 * exec.h (section_table_available_memory): Remove declaration.
11637 Move comments to ...
11638 * exec.c (section_table_available_memory): ... here. Make it
11641 2014-02-23 Yao Qi <yao@codesourcery.com>
11643 * exec.c (section_table_read_available_memory): New function.
11644 * exec.h (section_table_read_available_memory): Declare.
11645 * ctf.c (ctf_xfer_partial): Call
11646 section_table_read_available_memory.
11647 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11649 2014-02-23 Yao Qi <yao@codesourcery.com>
11651 * ctf.c (ctf_xfer_partial): Move code to ...
11652 * exec.c (exec_read_partial_read_only): ... it. New function.
11653 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11654 * tracefile.c: Include "exec.h".
11655 * exec.h (exec_read_partial_read_only): Declare.
11657 2014-02-23 Yao Qi <yao@codesourcery.com>
11659 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11660 (tfile_has_memory): Remove.
11661 (init_tfile_ops): Don't set fields to_has_all_memory and
11662 to_has_memory of tfile_ops.
11663 * tracefile.c (tracefile_has_all_memory): New function.
11664 (tracefile_has_memory): New function.
11665 (init_tracefile_ops): Initialize fields to_has_all_memory and
11666 to_has_memory of 'ops'.
11668 2014-02-23 Yao Qi <yao@codesourcery.com>
11670 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11671 (ctf_thread_alive, ctf_get_trace_status): Remove.
11672 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11673 init_tracefile_ops.
11674 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11675 (tfile_has_stack, tfile_has_registers): Remove.
11676 (tfile_thread_alive): Remove.
11677 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11678 init_tracefile_ops.
11679 * tracefile.c (tracefile_has_stack): New function.
11680 (tracefile_has_registers): New function.
11681 (tracefile_thread_alive): New function.
11682 (tracefile_get_trace_status): New function.
11683 (init_tracefile_ops): New function.
11684 * tracefile.h (init_tracefile_ops): Declare.
11686 2014-02-23 Yao Qi <yao@codesourcery.com>
11688 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11689 (O_LARGEFILE): Likewise.
11690 (tfile_ops): Likewise.
11691 (TRACE_HEADER_SIZE): Likewise.
11692 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11693 (cur_data_size): Likewise.
11694 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11695 (tfile_close, tfile_files_info): Likewise.
11696 (tfile_get_trace_status): Likewise.
11697 (tfile_get_tracepoint_status): Likewise.
11698 (tfile_get_traceframe_address): Likewise.
11699 (tfile_trace_find, match_blocktype): Likewise.
11700 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11701 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11702 (tfile_get_trace_state_variable_value): Likewise.
11703 (tfile_has_all_memory, tfile_has_memory): Likewise.
11704 (tfile_has_stack, tfile_has_registers): Likewise.
11705 (tfile_thread_alive, build_traceframe_info): Likewise.
11706 (tfile_traceframe_info, init_tfile_ops): Likewise.
11707 (_initialize_tracepoint): Don't call init_tfile_ops
11708 and add_target_with_completer.
11709 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11710 exec.h, completer.h and filenames.h.
11711 (_initialize_tracefile_tfile): New function.
11713 2014-02-23 Yao Qi <yao@codesourcery.com>
11715 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11717 (HFILES_NO_SRCDIR): Add tracefile.h.
11718 * ctf.c: Include "tracefile.h".
11719 * tracefile.h: New file.
11720 * tracefile.c: New file
11721 * tracefile-tfile.c: New file.
11722 * tracepoint.c: Include "tracefile.h".
11723 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11724 (stop_reason_names): Add const.
11725 (trace_file_writer_xfree): Move it to tracefile.c.
11726 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11727 (trace_save_ctf): Likewise.
11728 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11729 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11730 (tfile_write_header, tfile_write_regblock_type): Likewise.
11731 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11732 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11733 (tfile_write_raw_data, tfile_end): Likewise.
11734 (tfile_trace_file_writer_new): Likewise.
11735 (free_uploaded_tp): Make it extern.
11736 (free_uploaded_tsv): Make it extern.
11737 (_initialize_tracepoint): Move code to register command 'tsave'
11739 * tracepoint.h (stop_reason_names): Declare.
11740 (struct trace_frame_write_ops): Move it to tracefile.h.
11741 (struct trace_file_write_ops): Likewise.
11742 (struct trace_file_writer): Likewise.
11743 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11745 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11748 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11750 (get_cores_used_by_process): New parameter num_cores, use it.
11751 (linux_xfer_osdata_processes): Pass num_cores to it.
11752 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11755 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11757 * target.c (memory_xfer_partial): Fix length arg in call to
11758 breakpoint_xfer_memory.
11760 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11763 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11764 number comes after the + or - signs. Adjust length of register
11765 name to be extracted.
11767 2014-02-20 Tom Tromey <tromey@redhat.com>
11769 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11770 (ada_varobj_ops): Mark "extern".
11772 2014-02-20 Tom Tromey <tromey@redhat.com>
11774 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11776 2014-02-20 Doug Evans <xdje42@gmail.com>
11778 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11779 All callers updated.
11780 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11781 All callers updated.
11782 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11783 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11785 2014-02-20 lin zuojian <manjian2006@gmail.com>
11786 Joel Brobecker <brobecker@adacore.com>
11787 Doug Evans <xdje42@gmail.com>
11790 * dwarf2read.c (struct die_info): New member in_process.
11791 (reset_die_in_process): New function.
11792 (process_die): Set it at the start, reset when returning.
11793 (inherit_abstract_dies): Only call process_die if origin_child_die
11794 not already being processed.
11796 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11798 * windows-nat.c (handle_unload_dll): Add function documentation.
11799 (do_initial_windows_stuff): Add comment explaining why we wait
11800 until after inferior initialization has finished before
11801 processing all DLLs.
11803 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11805 * windows-nat.c (get_module_name): Delete.
11806 (windows_get_exec_module_filename): New function, mostly
11807 inspired from get_module_name.
11808 (windows_pid_to_exec_file): Replace call to get_module_name
11809 by call to windows_get_exec_module_filename.
11811 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11813 * windows-nat.c (handle_load_dll): Rewrite this function's
11814 introductory comment. Remove code using get_module_name
11815 to get the DLL's name.
11817 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11819 * windows-nat.c (get_windows_debug_event): Ignore
11820 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11821 if windows_initialization_done == 0.
11822 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11823 Adjust implementation to always load all DLLs.
11824 (do_initial_windows_stuff): Replace call to
11825 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11827 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11829 * windows-nat.c (_initialize_windows_nat): Deprecate the
11830 "dll-symbols" command. Turn the "add-shared-symbol-files"
11831 and "assf" aliases into commands, and deprecate them as well.
11832 * NEWS: Add entry explaining that "dll-symbols" and its two
11833 aliases are now deprecated.
11835 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11837 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11838 new-line in debug string. Remove trailing spaces.
11840 2014-02-19 Stan Shebs <stan@codesourcery.com>
11842 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11844 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11846 * NEWS: Add entry for the new feature
11847 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11850 2014-02-19 Stan Shebs <stan@codesourcery.com>
11852 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11854 2014-02-19 Pedro Alves <palves@redhat.com>
11856 * common/ptid.h (struct ptid): Mention that process_stratum
11857 targets should prefer ptid.lwp.
11859 2014-02-19 Pedro Alves <palves@redhat.com>
11861 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11862 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11863 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11864 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11865 store remote thread ids rather than ptid.tid.
11866 (_initialize_remote): Adjust.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target.c (target_get_unwinder): Rewrite.
11871 (target_get_tailcall_unwinder): Rewrite.
11872 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11873 (record_btrace_to_get_tailcall_unwinder): New function.
11874 (init_record_btrace_ops): Update.
11875 * target.h (struct target_ops) <to_get_unwinder,
11876 to_get_tailcall_unwinder>: Now function pointers. Use
11877 TARGET_DEFAULT_RETURN.
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11881 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11883 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11885 2014-02-19 Tom Tromey <tromey@redhat.com>
11887 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11889 * target-delegates.c: Rebuild.
11890 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11891 TARGET_DEFAULT_FUNC.
11892 * target.c (default_target_decr_pc_after_break): Rename from
11893 forward_target_decr_pc_after_break. Simplify.
11894 (target_decr_pc_after_break): Rely on delegation.
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.c (update_current_target): Do not INHERIT to_doc or
11899 to_magic. Do not de_fault to_open or to_close.
11901 2014-02-19 Tom Tromey <tromey@redhat.com>
11903 * gcore.h (objfile_find_memory_regions): Declare.
11904 * gcore.c (objfile_find_memory_regions): No longer static. Add
11906 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11907 * exec.c: Include gcore.h.
11908 (exec_set_find_memory_regions): Remove.
11909 (exec_find_memory_regions): Remove.
11910 (exec_do_find_memory_regions): Remove.
11911 (init_exec_ops): Update.
11912 * defs.h (exec_set_find_memory_regions): Remove.
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11916 * target-delegates.c: Rebuild.
11917 * target.h (struct target_ops) <to_extra_thread_info,
11918 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11919 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11920 not 0, in TARGET_DEFAULT_RETURN.
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11924 * target.c (complete_target_initialization): Remove casts. Use
11925 return_zero_has_execution.
11926 (return_zero): Add "ignore" argument.
11927 (return_zero_has_execution): New function.
11928 (init_dummy_target): Remove casts. Use
11929 return_zero_has_execution.
11931 2014-02-19 Tom Tromey <tromey@redhat.com>
11933 * target.c (update_current_target): Update comments. Do not
11934 INHERIT to_stratum.
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11940 * corelow.c (core_read_description): Delegate when needed.
11941 * remote.c (remote_read_description): Delegate when needed.
11942 * target-delegates.c: Rebuild.
11943 * target.c (target_read_description): Rewrite.
11944 * target.h (struct target_ops) <to_read_description>: Update
11945 comment. Use TARGET_DEFAULT_RETURN.
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11949 * target-delegates.c: Rebuild.
11950 * target.c (update_current_target): Don't inherit or default
11952 (find_default_run_target): Check against delegate_can_run.
11953 * target.h (struct target_ops) <to_can_run>: Use
11954 TARGET_DEFAULT_RETURN.
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11958 * target-delegates.c: Rebuild.
11959 * target.c (target_disconnect): Unconditionally delegate.
11960 * target.h (struct target_ops) <to_disconnect>: Use
11961 TARGET_DEFAULT_NORETURN.
11963 2014-02-19 Tom Tromey <tromey@redhat.com>
11965 * record.c (record_stop): Unconditionally delegate.
11966 * target-delegates.c: Rebuild.
11967 * target.c (target_stop_recording): Unconditionally delegate.
11968 * target.h (struct target_ops) <to_stop_recording>: Use
11969 TARGET_DEFAULT_IGNORE.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target-delegates.c: Rebuild.
11974 * target.c (target_enable_btrace): Unconditionally delegate.
11975 * target.h (struct target_ops) <to_enable_btrace>: Use
11976 TARGET_DEFAULT_NORETURN.
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11980 * target-delegates.c: Rebuild.
11981 * target.c (target_read_btrace): Unconditionally delegate.
11982 * target.h (struct target_ops) <to_read_btrace>: Use
11983 TARGET_DEFAULT_NORETURN.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target-delegates.c: Rebuild.
11988 * target.c (target_teardown_btrace): Unconditionally delegate.
11989 * target.h (struct target_ops) <to_teardown_btrace>: Use
11990 TARGET_DEFAULT_NORETURN.
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11994 * target-delegates.c: Rebuild.
11995 * target.c (target_disable_btrace): Unconditionally delegate.
11996 * target.h (struct target_ops) <to_disable_btrace>: Use
11997 TARGET_DEFAULT_NORETURN.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target-delegates.c: Rebuild.
12002 * target.c (default_search_memory): New function.
12003 (simple_search_memory): Update comment.
12004 (target_search_memory): Unconditionally delegate.
12005 * target.h (struct target_ops) <to_search_memory>: Use
12006 TARGET_DEFAULT_FUNC.
12008 2014-02-19 Tom Tromey <tromey@redhat.com>
12010 * auxv.c (default_auxv_parse): No longer static.
12011 (target_auxv_parse): Unconditionally delegate.
12012 * auxv.h (default_auxv_parse): Declare.
12013 * target-delegates.c: Rebuild.
12014 * target.c: Include auxv.h.
12015 * target.h (struct target_ops) <to_auxv_parse>: Use
12016 TARGET_DEFAULT_FUNC.
12018 2014-02-19 Tom Tromey <tromey@redhat.com>
12020 * target-delegates.c: Rebuild.
12021 * target.c (target_memory_map): Unconditionally delegate.
12022 * target.h (struct target_ops) <to_memory_map>: Use
12023 TARGET_DEFAULT_RETURN.
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_thread_alive): Unconditionally delegate.
12029 * target.h (struct target_ops) <to_thread_alive>: Use
12030 TARGET_DEFAULT_RETURN.
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12034 * target-delegates.c: Rebuild.
12035 * target.c (target_save_record): Unconditionally delegate.
12036 * target.h (struct target_ops) <to_save_record>: Use
12037 TARGET_DEFAULT_NORETURN.
12039 2014-02-19 Tom Tromey <tromey@redhat.com>
12041 * target-delegates.c: Rebuild.
12042 * target.c (target_delete_record): Unconditionally delegate.
12043 * target.h (struct target_ops) <to_delete_record>: Use
12044 TARGET_DEFAULT_NORETURN.
12046 2014-02-19 Tom Tromey <tromey@redhat.com>
12048 * target-delegates.c: Rebuild.
12049 * target.c (target_record_is_replaying): Unconditionally
12051 * target.h (struct target_ops) <to_record_is_replaying>: Use
12052 TARGET_DEFAULT_RETURN.
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12056 * target-delegates.c: Rebuild.
12057 * target.c (target_goto_record_begin): Unconditionally delegate.
12058 * target.h (struct target_ops) <to_goto_record_begin>: Use
12059 TARGET_DEFAULT_NORETURN.
12061 2014-02-19 Tom Tromey <tromey@redhat.com>
12063 * target-delegates.c: Rebuild.
12064 * target.c (target_goto_record_end): Unconditionally delegate.
12065 * target.h (struct target_ops) <to_goto_record_end>: Use
12066 TARGET_DEFAULT_NORETURN.
12068 2014-02-19 Tom Tromey <tromey@redhat.com>
12070 * target-delegates.c: Rebuild.
12071 * target.c (target_goto_record): Unconditionally delegate.
12072 * target.h (struct target_ops) <to_goto_record>: Use
12073 TARGET_DEFAULT_NORETURN.
12075 2014-02-19 Tom Tromey <tromey@redhat.com>
12077 * target-delegates.c: Rebuild.
12078 * target.c (target_insn_history): Unconditionally delegate.
12079 * target.h (struct target_ops) <to_insn_history>: Use
12080 TARGET_DEFAULT_NORETURN.
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12084 * target-delegates.c: Rebuild.
12085 * target.c (target_insn_history_from): Unconditionally delegate.
12086 * target.h (struct target_ops) <to_insn_history_from>: Use
12087 TARGET_DEFAULT_NORETURN.
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12091 * target-delegates.c: Rebuild.
12092 * target.c (target_insn_history_range): Unconditionally delegate.
12093 * target.h (struct target_ops) <to_insn_history_range>: Use
12094 TARGET_DEFAULT_NORETURN.
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12098 * target-delegates.c: Rebuild.
12099 * target.c (target_call_history): Unconditionally delegate.
12100 * target.h (struct target_ops) <to_call_history>: Use
12101 TARGET_DEFAULT_NORETURN.
12103 2014-02-19 Tom Tromey <tromey@redhat.com>
12105 * target-delegates.c: Rebuild.
12106 * target.c (target_call_history_from): Unconditionally delegate.
12107 * target.h (struct target_ops) <to_call_history_from>: Use
12108 TARGET_DEFAULT_NORETURN.
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12112 * target-delegates.c: Rebuild.
12113 * target.c (target_call_history_range): Unconditionally delegate.
12114 * target.h (struct target_ops) <to_call_history_range>: Use
12115 TARGET_DEFAULT_NORETURN.
12117 2014-02-19 Tom Tromey <tromey@redhat.com>
12119 * target-delegates.c: Rebuild.
12120 * target.c (target_verify_memory): Unconditionally delegate.
12121 * target.h (struct target_ops) <to_verify_memory>: Use
12122 TARGET_DEFAULT_NORETURN.
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12126 * target-delegates.c: Rebuild.
12127 * target.c (target_core_of_thread): Unconditionally delegate.
12128 * target.h (struct target_ops) <to_core_of_thread>: Use
12129 TARGET_DEFAULT_RETURN.
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target-delegates.c: Rebuild.
12134 * target.c (target_flash_done): Unconditionally delegate.
12135 * target.h (struct target_ops) <to_flash_done>: Use
12136 TARGET_DEFAULT_NORETURN.
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12140 * target-delegates.c: Rebuild.
12141 * target.c (target_flash_erase): Unconditionally delegate.
12142 * target.h (struct target_ops) <to_flash_erase>: Use
12143 TARGET_DEFAULT_NORETURN.
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * target-delegates.c: Rebuild.
12148 * target.c (target_get_section_table): Unconditionally delegate.
12149 * target.h (struct target_ops) <to_get_section_table>: Use
12150 TARGET_DEFAULT_RETURN.
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target-delegates.c: Rebuild.
12155 * target.c (target_pid_to_str): Unconditionally delegate.
12156 (init_dummy_target): Don't initialize to_pid_to_str.
12157 (default_pid_to_str): Rename from dummy_pid_to_str.
12158 * target.h (struct target_ops) <to_pid_to_str>: Use
12159 TARGET_DEFAULT_FUNC.
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target-delegates.c: Rebuild.
12164 * target.c (target_find_new_threads): Unconditionally delegate.
12165 * target.h (struct target_ops) <to_find_new_threads>: Use
12166 TARGET_DEFAULT_RETURN.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * target-delegates.c: Rebuild.
12171 * target.c (target_program_signals): Unconditionally delegate.
12172 * target.h (struct target_ops) <to_program_signals>: Use
12173 TARGET_DEFAULT_IGNORE.
12175 2014-02-19 Tom Tromey <tromey@redhat.com>
12177 * target-delegates.c: Rebuild.
12178 * target.c (target_pass_signals): Unconditionally delegate.
12179 * target.h (struct target_ops) <to_pass_signals>: Use
12180 TARGET_DEFAULT_IGNORE.
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12184 * target-delegates.c: Rebuild.
12185 * target.c (default_mourn_inferior): New function.
12186 (target_mourn_inferior): Unconditionally delegate.
12187 * target.h (struct target_ops) <to_mourn_inferior>: Use
12188 TARGET_DEFAULT_FUNC.
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12192 * target-delegates.c: Rebuild.
12193 * target.c (default_follow_fork): New function.
12194 (target_follow_fork): Unconditionally delegate.
12195 * target.h (struct target_ops) <to_follow_fork>: Use
12196 TARGET_DEFAULT_FUNC.
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12200 * target-delegates.c: Rebuild.
12201 * target.c (target_kill): Unconditionally delegate.
12202 * target.h (struct target_ops) <to_kill>: Use
12203 TARGET_DEFAULT_NORETURN.
12205 2014-02-19 Tom Tromey <tromey@redhat.com>
12207 * target-delegates.c: Rebuild.
12208 * target.c (target_masked_watch_num_registers): Unconditionally
12210 * target.h (struct target_ops) <to_masked_watch_num_registers>:
12211 Use TARGET_DEFAULT_RETURN.
12213 2014-02-19 Tom Tromey <tromey@redhat.com>
12215 * target-delegates.c: Rebuild.
12216 * target.c (target_remove_mask_watchpoint): Unconditionally
12218 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12219 TARGET_DEFAULT_RETURN.
12221 2014-02-19 Tom Tromey <tromey@redhat.com>
12223 * target-delegates.c: Rebuild.
12224 * target.c (target_insert_mask_watchpoint): Unconditionally
12226 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12227 TARGET_DEFAULT_RETURN.
12229 2014-02-19 Tom Tromey <tromey@redhat.com>
12231 * target-delegates.c: Rebuild.
12232 * target.c (target_ranged_break_num_registers): Unconditionally
12234 * target.h (struct target_ops) <to_ranged_break_num_registers>:
12235 Use TARGET_DEFAULT_RETURN.
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12239 * target-delegates.c: Rebuild.
12240 * target.c (target_fetch_registers): Unconditionally delegate.
12241 * target.h (struct target_ops) <to_fetch_registers>: Use
12242 TARGET_DEFAULT_NORETURN.
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * target-delegates.c: Rebuild.
12247 * target.c (update_current_target): Don't inherit or default
12249 * target.h (struct target_ops) <to_stop>: Use
12250 TARGET_DEFAULT_IGNORE.
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12254 * target-delegates.c: Rebuild.
12255 * target.c (update_current_target): Don't inherit or default
12256 to_can_run_breakpoint_commands.
12257 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12258 Use TARGET_DEFAULT_RETURN.
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * target-delegates.c: Rebuild.
12263 * target.c (update_current_target): Don't inherit or default
12264 to_supports_evaluation_of_breakpoint_conditions.
12265 * target.h (struct target_ops)
12266 <to_supports_evaluation_of_breakpoint_conditions>: Use
12267 TARGET_DEFAULT_RETURN.
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12271 * target-delegates.c: Rebuild.
12272 * target.c (update_current_target): Don't inherit or default
12273 to_augmented_libraries_svr4_read.
12274 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12275 Use TARGET_DEFAULT_RETURN.
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12282 * target.h (struct target_ops) <to_can_use_agent>: Use
12283 TARGET_DEFAULT_RETURN.
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
12290 * target.h (struct target_ops) <to_use_agent>: Use
12291 TARGET_DEFAULT_NORETURN.
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_traceframe_info.
12298 (return_null): Remove.
12299 * target.h (struct target_ops) <to_traceframe_info>: Use
12300 TARGET_DEFAULT_RETURN.
12302 2014-02-19 Tom Tromey <tromey@redhat.com>
12304 * target-delegates.c: Rebuild.
12305 * target.c (update_current_target): Don't inherit or default
12306 to_static_tracepoint_markers_by_strid.
12307 * target.h (struct target_ops)
12308 <to_static_tracepoint_markers_by_strid>: Use
12309 TARGET_DEFAULT_NORETURN.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12313 * target-delegates.c: Rebuild.
12314 * target.c (update_current_target): Don't inherit or default
12315 to_static_tracepoint_marker_at.
12316 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12317 Use TARGET_DEFAULT_RETURN.
12319 2014-02-19 Tom Tromey <tromey@redhat.com>
12321 * target-delegates.c: Rebuild.
12322 * target.c (update_current_target): Don't inherit or default
12323 to_set_permissions.
12324 * target.h (struct target_ops) <to_set_permissions>: Use
12325 TARGET_DEFAULT_IGNORE.
12327 2014-02-19 Tom Tromey <tromey@redhat.com>
12329 * target-delegates.c: Rebuild.
12330 * target.c (update_current_target): Don't inherit or default
12331 to_get_tib_address.
12332 * target.h (struct target_ops) <to_get_tib_address>: Use
12333 TARGET_DEFAULT_NORETURN.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * target-delegates.c: Rebuild.
12338 * target.c (update_current_target): Don't inherit or default
12339 to_set_trace_notes.
12340 * target.h (struct target_ops) <to_set_trace_notes>: Use
12341 TARGET_DEFAULT_RETURN.
12343 2014-02-19 Tom Tromey <tromey@redhat.com>
12345 * target-delegates.c: Rebuild.
12346 * target.c (update_current_target): Don't initialize
12347 to_set_trace_buffer_size.
12348 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12349 TARGET_DEFAULT_IGNORE.
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12353 * target-delegates.c: Rebuild.
12354 * target.c (update_current_target): Don't inherit or default
12355 to_set_circular_trace_buffer.
12356 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12357 TARGET_DEFAULT_IGNORE.
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12361 * target-delegates.c: Rebuild.
12362 * target.c (update_current_target): Don't inherit or default
12363 to_set_disconnected_tracing.
12364 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12365 TARGET_DEFAULT_IGNORE.
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_get_min_fast_tracepoint_insn_len.
12372 (return_minus_one): Remove.
12373 * target.h (struct target_ops)
12374 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12376 2014-02-19 Tom Tromey <tromey@redhat.com>
12378 * target-delegates.c: Rebuild.
12379 * target.c (update_current_target): Don't inherit or default
12380 to_get_raw_trace_data.
12381 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12382 TARGET_DEFAULT_NORETURN.
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12386 * target-delegates.c: Rebuild.
12387 * target.c (update_current_target): Don't inherit or default
12388 to_upload_trace_state_variables.
12389 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12390 Use TARGET_DEFAULT_RETURN.
12392 2014-02-19 Tom Tromey <tromey@redhat.com>
12394 * target-delegates.c: Rebuild.
12395 * target.c (update_current_target): Don't inherit or default
12396 to_upload_tracepoints.
12397 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12398 TARGET_DEFAULT_RETURN.
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12402 * target-delegates.c: Rebuild.
12403 * target.c (update_current_target): Don't inherit or default
12404 to_save_trace_data.
12405 * target.h (struct target_ops) <to_save_trace_data>: Use
12406 TARGET_DEFAULT_NORETURN.
12408 2014-02-19 Tom Tromey <tromey@redhat.com>
12410 * target-delegates.c: Rebuild.
12411 * target.c (update_current_target): Don't inherit or default
12412 to_get_trace_state_variable_value.
12413 * target.h (struct target_ops)
12414 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12418 * target-delegates.c: Rebuild.
12419 * target.c (update_current_target): Don't inherit or default
12421 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12423 2014-02-19 Tom Tromey <tromey@redhat.com>
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12428 * target.h (struct target_ops) <to_trace_stop>: Use
12429 TARGET_DEFAULT_NORETURN.
12431 2014-02-19 Tom Tromey <tromey@redhat.com>
12433 * target-delegates.c: Rebuild.
12434 * target.c (update_current_target): Don't inherit or default
12435 to_get_tracepoint_status.
12436 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12437 TARGET_DEFAULT_NORETURN.
12439 2014-02-19 Tom Tromey <tromey@redhat.com>
12441 * target-delegates.c: Rebuild.
12442 * target.c (update_current_target): Don't inherit or default
12443 to_get_trace_status.
12444 * target.h (struct target_ops) <to_get_trace_status>: Use
12445 TARGET_DEFAULT_RETURN.
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12449 * target-delegates.c: Rebuild.
12450 * target.c (update_current_target): Don't inherit or default
12452 * target.h (struct target_ops) <to_trace_start>: Use
12453 TARGET_DEFAULT_NORETURN.
12455 2014-02-19 Tom Tromey <tromey@redhat.com>
12457 * target-delegates.c: Rebuild.
12458 * target.c (update_current_target): Don't inherit or default
12459 to_trace_set_readonly_regions.
12460 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12461 Use TARGET_DEFAULT_NORETURN.
12463 2014-02-19 Tom Tromey <tromey@redhat.com>
12465 * target-delegates.c: Rebuild.
12466 * target.c (update_current_target): Don't inherit or default
12467 to_disable_tracepoint.
12468 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12469 TARGET_DEFAULT_NORETURN.
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12473 * target-delegates.c: Rebuild.
12474 * target.c (update_current_target): Don't inherit or default
12475 to_enable_tracepoint.
12476 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12477 TARGET_DEFAULT_NORETURN.
12479 2014-02-19 Tom Tromey <tromey@redhat.com>
12481 * target-delegates.c: Rebuild.
12482 * target.c (update_current_target): Don't inherit or default
12483 to_download_trace_state_variable.
12484 * target.h (struct target_ops) <to_download_trace_state_variable>:
12485 Use TARGET_DEFAULT_NORETURN.
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12489 * target-delegates.c: Rebuild.
12490 * target.c (update_current_target): Don't inherit or default
12491 to_can_download_tracepoint.
12492 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12493 TARGET_DEFAULT_RETURN.
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12497 * target-delegates.c: Rebuild.
12498 * target.c (update_current_target): Don't inherit or default
12499 to_download_tracepoint.
12500 * target.h (struct target_ops) <to_download_tracepoint>: Use
12501 TARGET_DEFAULT_NORETURN.
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12505 * target-delegates.c: Rebuild.
12506 * target.c (update_current_target): Don't inherit or default
12508 * target.h (struct target_ops) <to_trace_init>: Use
12509 TARGET_DEFAULT_RETURN.
12511 2014-02-19 Tom Tromey <tromey@redhat.com>
12513 * target-delegates.c: Rebuild.
12514 * target.c (update_current_target): Don't inherit or default
12515 to_supports_string_tracing.
12516 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12517 TARGET_DEFAULT_RETURN.
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12521 * target-delegates.c: Rebuild.
12522 * target.c (update_current_target): Don't inherit or default
12523 to_supports_enable_disable_tracepoint.
12524 * target.h (struct target_ops)
12525 <to_supports_enable_disable_tracepoint>: Use
12526 TARGET_DEFAULT_RETURN.
12528 2014-02-19 Tom Tromey <tromey@redhat.com>
12530 * target-delegates.c: Rebuild.
12531 * target.c (update_current_target): Don't inherit or default
12532 to_supports_multi_process.
12533 * target.h (struct target_ops) <to_supports_multi_process>: Use
12534 TARGET_DEFAULT_RETURN.
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12538 * target-delegates.c: Rebuild.
12539 * target.c (update_current_target): Don't inherit or default
12540 to_get_ada_task_ptid.
12541 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12542 TARGET_DEFAULT_FUNC.
12544 2014-02-19 Tom Tromey <tromey@redhat.com>
12546 * target-delegates.c: Rebuild.
12547 * target.c (update_current_target): Don't inherit or default
12548 to_thread_architecture.
12549 * target.h (struct target_ops) <to_thread_architecture>: Use
12550 TARGET_DEFAULT_FUNC.
12552 2014-02-19 Tom Tromey <tromey@redhat.com>
12554 * target-delegates.c: Rebuild.
12555 * target.c (update_current_target): Don't inherit or default
12556 to_execution_direction.
12557 * target.h (struct target_ops) <to_execution_direction>: Use
12558 TARGET_DEFAULT_FUNC.
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12562 * target-delegates.c: Rebuild.
12563 * target.c (update_current_target): Don't inherit or default
12564 to_can_execute_reverse.
12565 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12566 TARGET_DEFAULT_RETURN.
12567 (target_can_execute_reverse): Unconditionally delegate.
12569 2014-02-19 Tom Tromey <tromey@redhat.com>
12571 * target-delegates.c: Rebuild.
12572 * target.c (update_current_target): Don't inherit or default
12574 (dummy_goto_bookmark): Remove.
12575 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12576 * target.h (struct target_ops) <to_goto_bookmark>: Use
12577 TARGET_DEFAULT_NORETURN.
12579 2014-02-19 Tom Tromey <tromey@redhat.com>
12581 * target-delegates.c: Rebuild.
12582 * target.c (update_current_target): Don't inherit or default
12584 (dummy_get_bookmark): Remove.
12585 (init_dummy_target): Don't inherit or default to_get_bookmark.
12586 * target.h (struct target_ops) <to_get_bookmark>: Use
12587 TARGET_DEFAULT_NORETURN
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12591 * target-delegates.c: Rebuild.
12592 * target.c (update_current_target): Don't inherit or default
12593 to_make_corefile_notes.
12594 (init_dummy_target): Don't initialize to_make_corefile_notes.
12595 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12596 TARGET_DEFAULT_FUNC.
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
12602 to_find_memory_regions.
12603 (init_dummy_target): Don't initialize to_find_memory_regions.
12604 * target.h (struct target_ops) <to_find_memory_regions>: Use
12605 TARGET_DEFAULT_FUNC.
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
12612 * target.h (struct target_ops) <to_log_command>: Use
12613 TARGET_DEFAULT_IGNORE.
12614 (target_log_command): Unconditionally delegate.
12616 2014-02-19 Tom Tromey <tromey@redhat.com>
12618 * target-delegates.c: Rebuild.
12619 * target.c (update_current_target): Don't inherit or default
12620 to_pid_to_exec_file.
12621 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12622 TARGET_DEFAULT_RETURN.
12624 2014-02-19 Tom Tromey <tromey@redhat.com>
12626 * target-delegates.c: Rebuild.
12627 * target.c (update_current_target): Don't inherit or default
12629 (target_thread_name): Unconditionally delegate.
12630 * target.h (struct target_ops) <to_thread_name>: Use
12631 TARGET_DEFAULT_RETURN.
12633 2014-02-19 Tom Tromey <tromey@redhat.com>
12635 * target-delegates.c: Rebuild.
12636 * target.c (update_current_target): Don't inherit or default
12637 to_extra_thread_info.
12638 * target.h (struct target_ops) <to_extra_thread_info>: Use
12639 TARGET_DEFAULT_RETURN.
12641 2014-02-19 Tom Tromey <tromey@redhat.com>
12643 * target-delegates.c: Rebuild.
12644 * target.c (update_current_target): Don't inherit or default
12646 * target.h (struct target_ops) <to_has_exited>: Use
12647 TARGET_DEFAULT_RETURN..
12649 2014-02-19 Tom Tromey <tromey@redhat.com>
12651 * target-delegates.c: Rebuild.
12652 * target.c (update_current_target): Don't inherit or default
12653 to_set_syscall_catchpoint.
12654 (return_one): Remove.
12655 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12656 TARGET_DEFAULT_RETURN.
12658 2014-02-19 Tom Tromey <tromey@redhat.com>
12660 * target-delegates.c: Rebuild.
12661 * target.c (update_current_target): Don't inherit or default
12662 to_insert_exec_catchpoint.
12663 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12664 TARGET_DEFAULT_RETURN.
12666 2014-01-08 Tom Tromey <tromey@redhat.com>
12668 * target-delegates.c: Rebuild.
12669 * target.c (update_current_target): Don't inherit or default
12670 to_insert_exec_catchpoint.
12671 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12672 TARGET_DEFAULT_RETURN.
12674 2014-02-19 Tom Tromey <tromey@redhat.com>
12676 * target-delegates.c: Rebuild.
12677 * target.c (update_current_target): Don't inherit or default
12678 to_remove_vfork_catchpoint.
12679 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12680 TARGET_DEFAULT_RETURN.
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12684 * target-delegates.c: Rebuild.
12685 * target.c (update_current_target): Don't inherit or default
12686 to_insert_vfork_catchpoint.
12687 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12688 TARGET_DEFAULT_RETURN.
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12692 * target-delegates.c: Rebuild.
12693 * target.c (update_current_target): Don't inherit or default
12694 to_remove_fork_catchpoint.
12695 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12696 TARGET_DEFAULT_RETURN.
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12700 * target-delegates.c: Rebuild.
12701 * target.c (update_current_target): Don't inherit or default
12702 to_insert_fork_catchpoint.
12703 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12704 TARGET_DEFAULT_RETURN.
12706 2014-02-19 Tom Tromey <tromey@redhat.com>
12708 * target-delegates.c: Rebuild.
12709 * target.c (update_current_target): Don't inherit or default
12710 to_post_startup_inferior.
12711 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12712 TARGET_DEFAULT_IGNORE.
12714 2014-02-19 Tom Tromey <tromey@redhat.com>
12716 * target-delegates.c: Rebuild.
12717 * target.c (update_current_target): Don't inherit or default
12719 * target.h (struct target_ops) <to_load>: Use
12720 TARGET_DEFAULT_NORETURN.
12722 2014-02-19 Tom Tromey <tromey@redhat.com>
12724 * target-delegates.c: Rebuild.
12725 * target.c (update_current_target): Don't inherit or default
12727 * target.h (struct target_ops) <to_terminal_info>: Use
12728 TARGET_DEFAULT_FUNC.
12730 2014-02-19 Tom Tromey <tromey@redhat.com>
12732 * target-delegates.c: Rebuild.
12733 * target.c (update_current_target): Don't inherit or default
12734 to_terminal_save_ours.
12735 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12736 TARGET_DEFAULT_IGNORE.
12738 2014-02-19 Tom Tromey <tromey@redhat.com>
12740 * target-delegates.c: Rebuild.
12741 * target.c (update_current_target): Don't inherit or default
12743 * target.h (struct target_ops) <to_terminal_ours>: Use
12744 TARGET_DEFAULT_IGNORE.
12746 2014-02-19 Tom Tromey <tromey@redhat.com>
12748 * target-delegates.c: Rebuild.
12749 * target.c (update_current_target): Don't inherit or default
12750 to_terminal_ours_for_output.
12751 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12752 TARGET_DEFAULT_IGNORE.
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12756 * target-delegates.c: Rebuild.
12757 * target.c (update_current_target): Don't inherit or default
12758 to_terminal_inferior.
12759 * target.h (struct target_ops) <to_terminal_inferior>: Use
12760 TARGET_DEFAULT_IGNORE.
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12764 * target-delegates.c: Rebuild.
12765 * target.c (update_current_target): Don't inherit or default
12767 * target.h (struct target_ops) <to_terminal_init>: Use
12768 TARGET_DEFAULT_IGNORE.
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12772 * target-delegates.c: Rebuild.
12773 * target.c (update_current_target): Don't inherit or default
12774 to_can_accel_watchpoint_condition.
12775 * target.h (struct target_ops)
12776 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12780 * target-delegates.c: Rebuild.
12781 * target.c (update_current_target): Don't inherit or default
12782 to_region_ok_for_hw_watchpoint.
12783 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12784 Use TARGET_DEFAULT_FUNC.
12786 2014-02-19 Tom Tromey <tromey@redhat.com>
12788 * target-delegates.c: Rebuild.
12789 * target.c (update_current_target): Don't inherit or default
12790 to_watchpoint_addr_within_range.
12791 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12792 Use TARGET_DEFAULT_FUNC.
12794 2014-02-19 Tom Tromey <tromey@redhat.com>
12796 * target-delegates.c: Rebuild.
12797 * target.c (update_current_target): Don't inherit or default
12798 to_remove_watchpoint.
12799 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12800 TARGET_DEFAULT_NORETURN.
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12804 * target-delegates.c: Rebuild.
12805 * target.c (update_current_target): Don't inherit or default
12806 to_insert_watchpoint.
12807 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12808 TARGET_DEFAULT_RETURN.
12810 2014-02-19 Tom Tromey <tromey@redhat.com>
12812 * target-delegates.c: Rebuild.
12813 * target.c (update_current_target): Don't inherit or default
12814 to_remove_hw_breakpoint.
12815 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12816 TARGET_DEFAULT_RETURN.
12818 2014-02-19 Tom Tromey <tromey@redhat.com>
12820 * target-delegates.c: Rebuild.
12821 * target.c (update_current_target): Don't inherit or default
12822 to_insert_hw_breakpoint.
12823 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12824 TARGET_DEFAULT_RETURN.
12826 2014-02-19 Tom Tromey <tromey@redhat.com>
12828 * target-delegates.c: Rebuild.
12829 * target.c (update_current_target): Don't inherit or default
12830 to_can_use_hw_breakpoint.
12831 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12832 TARGET_DEFAULT_RETURN.
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12836 * target-delegates.c: Rebuild.
12837 * target.c (update_current_target): Don't inherit or default
12839 * target.h (struct target_ops) <to_files_info>: Use
12840 TARGET_DEFAULT_IGNORE.
12842 2014-02-19 Tom Tromey <tromey@redhat.com>
12844 * target-delegates.c: Rebuild.
12845 * target.c (update_current_target): Don't inherit or default
12847 * target.h (struct target_ops) <to_store>: Use
12848 TARGET_DEFAULT_NORETURN.
12850 2014-02-19 Tom Tromey <tromey@redhat.com>
12852 * target-delegates.c: Rebuild.
12853 * target.c (update_current_target): Don't inherit or default
12855 * target.h (struct target_ops) <to_post_attach>: Use
12856 TARGET_DEFAULT_IGNORE.
12858 2014-02-19 Tom Tromey <tromey@redhat.com>
12860 * target-delegates.c: Rebuild.
12861 * target.c (update_current_target): Don't inherit or default
12863 (default_rcmd): New function.
12864 (do_monitor_command): Unconditionally delegate.
12865 * target.h (struct target_ops) <to_rmcd>: Use
12866 TARGET_DEFAULT_FUNC.
12868 2014-02-19 Tom Tromey <tromey@redhat.com>
12870 * target-delegates.c: Rebuild.
12871 * target.c (init_dummy_target): Don't initialize to_attach.
12872 (target_attach): Unconditionally delegate.
12873 * target.h (struct target_ops) <to_attach>: Use
12874 TARGET_DEFAULT_FUNC.
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12878 * target-delegates.c: Rebuild.
12879 * target.c (target_detach): Unconditionally delegate.
12880 (init_dummy_target): Don't initialize to_detach.
12881 * target.h (struct target_ops) <to_detach>: Use
12882 TARGET_DEFAULT_IGNORE.
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12886 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12888 (target_augmented_libraries_svr4_read): Add argument.
12889 * target.c (update_current_target): Update.
12890 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12895 * target.h (struct target_ops) <to_call_history_range>: Add
12897 * target.c (target_call_history_range): Add argument.
12898 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12900 (record_btrace_call_history_from): Update.
12902 2014-02-19 Tom Tromey <tromey@redhat.com>
12904 * target.h (struct target_ops) <to_call_history_from>: Add
12906 * target.c (target_call_history_from): Add argument.
12907 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12912 * target.h (struct target_ops) <to_call_history>: Add argument.
12913 * target.c (target_call_history): Add argument.
12914 * record-btrace.c (record_btrace_call_history): Add 'self'
12917 2014-02-19 Tom Tromey <tromey@redhat.com>
12919 * target.h (struct target_ops) <to_insn_history_range>: Add
12921 * target.c (target_insn_history_range): Add argument.
12922 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12924 (record_btrace_insn_history_from): Update.
12926 2014-02-19 Tom Tromey <tromey@redhat.com>
12928 * target.h (struct target_ops) <to_insn_history_from>: Add
12930 * target.c (target_insn_history_from): Add argument.
12931 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12934 2014-02-19 Tom Tromey <tromey@redhat.com>
12936 * target.h (struct target_ops) <to_insn_history>: Add argument.
12937 * target.c (target_insn_history): Add argument.
12938 * record-btrace.c (record_btrace_insn_history): Add 'self'
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12943 * target.h (struct target_ops) <to_goto_record>: Add argument.
12944 * target.c (target_goto_record): Add argument.
12945 * record-full.c (record_full_goto): Add 'self' argument.
12946 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12948 2014-02-19 Tom Tromey <tromey@redhat.com>
12950 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12951 * target.c (target_goto_record_end): Add argument.
12952 * record-full.c (record_full_goto_end): Add 'self' argument.
12953 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12957 * target.h (struct target_ops) <to_goto_record_begin>: Add
12959 * target.c (target_goto_record_begin): Add argument.
12960 * record-full.c (record_full_goto_begin): Add 'self' argument.
12961 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12964 2014-02-19 Tom Tromey <tromey@redhat.com>
12966 * target.h (struct target_ops) <to_record_is_replaying>: Add
12968 * target.c (target_record_is_replaying): Add argument.
12969 * record-full.c (record_full_is_replaying): Add 'self' argument.
12970 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12972 (record_btrace_xfer_partial, record_btrace_store_registers)
12973 (record_btrace_prepare_to_store, record_btrace_resume)
12974 (record_btrace_wait, record_btrace_decr_pc_after_break)
12975 (record_btrace_find_new_threads, record_btrace_thread_alive):
12978 2014-02-19 Tom Tromey <tromey@redhat.com>
12980 * target.h (struct target_ops) <to_delete_record>: Add argument.
12981 * target.c (target_delete_record): Add argument.
12982 * record-full.c (record_full_delete): Add 'self' argument.
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12986 * target.h (struct target_ops) <to_save_record>: Add argument.
12987 * target.c (target_save_record): Add argument.
12988 * record-full.c (record_full_save): Add 'self' argument.
12989 (record_full_save): Add 'self' argument.
12991 2014-02-19 Tom Tromey <tromey@redhat.com>
12993 * target.h (struct target_ops) <to_info_record>: Add argument.
12994 * target.c (target_info_record): Add argument.
12995 * record.c (info_record_command): Add argument.
12996 * record-full.c (record_full_info): Add 'self' argument.
12997 * record-btrace.c (record_btrace_info): Add 'self' argument.
12999 2014-02-19 Tom Tromey <tromey@redhat.com>
13001 * target.h (struct target_ops) <to_stop_recording>: Add argument.
13002 * target.c (target_stop_recording): Add argument.
13003 * record.c (record_stop): Add argument.
13004 * record-btrace.c (record_btrace_stop_recording): Add 'self'
13007 2014-02-19 Tom Tromey <tromey@redhat.com>
13009 * target.h (struct target_ops) <to_read_btrace>: Add argument.
13010 * target.c (struct target_ops) <to_read_btrace>: Add argument.
13011 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
13013 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
13014 (_initialize_amd64_linux_nat): Use it.
13015 * i386-linux-nat.c (i386_linux_read_btrace): New function.
13016 (_initialize_i386_linux_nat): Use it.
13018 2014-02-19 Tom Tromey <tromey@redhat.com>
13020 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13021 * target.c (target_teardown_btrace): Add argument.
13022 * remote.c (remote_teardown_btrace): Add 'self' argument.
13023 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13025 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13030 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13031 * target.c (target_disable_btrace): Add argument.
13032 * remote.c (remote_disable_btrace): Add 'self' argument.
13033 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13035 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13038 2014-02-19 Tom Tromey <tromey@redhat.com>
13040 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13041 * target.c (target_enable_btrace): Add argument.
13042 * remote.c (remote_enable_btrace): Add 'self' argument.
13043 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13045 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13048 2014-02-19 Tom Tromey <tromey@redhat.com>
13050 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13051 (target_can_use_agent): Add argument.
13052 * target.c (update_current_target): Update.
13053 * remote.c (remote_can_use_agent): Add 'self' argument.
13054 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13058 * target.h (struct target_ops) <to_use_agent>: Add argument.
13059 (target_use_agent): Add argument.
13060 * target.c (update_current_target): Update.
13061 * remote.c (remote_use_agent): Add 'self' argument.
13062 * inf-child.c (inf_child_use_agent): Add 'self' argument.
13064 2014-02-19 Tom Tromey <tromey@redhat.com>
13066 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13067 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13068 (target_traceframe_info): Add argument.
13069 * target.c (update_current_target): Update.
13070 * remote.c (remote_traceframe_info): Add 'self' argument.
13071 * ctf.c (ctf_traceframe_info): Add 'self' argument.
13073 2014-02-19 Tom Tromey <tromey@redhat.com>
13075 * target.h (target_static_tracepoint_markers_by_strid): Add
13077 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13079 * target.c (update_current_target): Update.
13080 * remote.c (struct target_ops)
13081 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13082 * linux-nat.c (struct target_ops)
13083 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13087 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13089 (target_static_tracepoint_marker_at): Add argument.
13090 * target.c (update_current_target): Update.
13091 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13094 2014-02-19 Tom Tromey <tromey@redhat.com>
13096 * target.h (struct target_ops) <to_set_permissions>: Add argument.
13097 (target_set_permissions): Add argument.
13098 * target.c (update_current_target): Update.
13099 * remote.c (remote_set_permissions): Add 'self' argument.
13100 (remote_start_remote): Update.
13102 2014-02-19 Tom Tromey <tromey@redhat.com>
13104 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13105 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13106 (target_get_tib_address): Add argument.
13107 * target.c (update_current_target): Update.
13108 * remote.c (remote_get_tib_address): Add 'self' argument.
13110 2014-02-19 Tom Tromey <tromey@redhat.com>
13112 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13113 (target_set_trace_notes): Add argument.
13114 * target.c (update_current_target): Update.
13115 * remote.c (remote_set_trace_notes): Add 'self' argument.
13117 2014-02-19 Tom Tromey <tromey@redhat.com>
13119 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13121 (target_set_trace_buffer_size): Add argument.
13122 * target.c (update_current_target): Update.
13123 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13125 2014-02-19 Tom Tromey <tromey@redhat.com>
13127 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13129 (target_set_circular_trace_buffer): Add argument.
13130 * target.c (update_current_target): Update.
13131 * remote.c (remote_set_circular_trace_buffer): Add 'self'
13134 2014-02-19 Tom Tromey <tromey@redhat.com>
13136 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13138 (target_set_disconnected_tracing): Add argument.
13139 * target.c (update_current_target): Update.
13140 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13142 2014-02-19 Tom Tromey <tromey@redhat.com>
13144 * target.h (struct target_ops)
13145 <to_get_min_fast_tracepoint_insn_len>: Add argument.
13146 (target_get_min_fast_tracepoint_insn_len): Add argument.
13147 * target.c (update_current_target): Update.
13148 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13151 2014-02-19 Tom Tromey <tromey@redhat.com>
13153 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13155 (target_get_raw_trace_data): Add argument.
13156 * target.c (update_current_target): Update.
13157 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13159 2014-02-19 Tom Tromey <tromey@redhat.com>
13161 * target.h (struct target_ops) <to_upload_trace_state_variables>:
13163 (target_upload_trace_state_variables): Add argument.
13164 * target.c (update_current_target): Update.
13165 * remote.c (remote_upload_trace_state_variables): Add 'self'
13167 (remote_start_remote): Update.
13169 2014-02-19 Tom Tromey <tromey@redhat.com>
13171 * target.h (struct target_ops) <to_upload_tracepoints>: Add
13173 (target_upload_tracepoints): Add argument.
13174 * target.c (update_current_target): Update.
13175 * remote.c (remote_upload_tracepoints): Add 'self' argument.
13176 (remote_start_remote): Update.
13178 2014-02-19 Tom Tromey <tromey@redhat.com>
13180 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13181 (target_save_trace_data): Add argument.
13182 * target.c (update_current_target): Update.
13183 * remote.c (remote_save_trace_data): Add 'self' argument.
13185 2014-02-19 Tom Tromey <tromey@redhat.com>
13187 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13189 * target.h (struct target_ops)
13190 <to_get_trace_state_variable_value>: Add argument.
13191 (target_get_trace_state_variable_value): Add argument.
13192 * target.c (update_current_target): Update.
13193 * remote.c (remote_get_trace_state_variable_value): Add 'self'
13195 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13197 2014-02-19 Tom Tromey <tromey@redhat.com>
13199 * tracepoint.c (tfile_trace_find): Add 'self' argument.
13200 * target.h (struct target_ops) <to_trace_find>: Add argument.
13201 (target_trace_find): Add argument.
13202 * target.c (update_current_target): Update.
13203 * remote.c (remote_trace_find): Add 'self' argument.
13204 * ctf.c (ctf_trace_find): Add 'self' argument.
13206 2014-02-19 Tom Tromey <tromey@redhat.com>
13208 * target.h (struct target_ops) <to_trace_stop>: Add argument.
13209 (target_trace_stop): Add argument.
13210 * target.c (update_current_target): Update.
13211 * remote.c (remote_trace_stop): Add 'self' argument.
13213 2014-02-19 Tom Tromey <tromey@redhat.com>
13215 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13216 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13218 (target_get_tracepoint_status): Add argument.
13219 * target.c (update_current_target): Update.
13220 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13222 2014-02-19 Tom Tromey <tromey@redhat.com>
13224 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13225 * target.h (struct target_ops) <to_get_trace_status>: Add
13227 (target_get_trace_status): Add argument.
13228 * target.c (update_current_target): Update.
13229 * remote.c (remote_get_trace_status): Add 'self' argument.
13230 (remote_start_remote, remote_can_download_tracepoint): Update.
13231 * ctf.c (ctf_get_trace_status): Add 'self' argument.
13233 2014-02-19 Tom Tromey <tromey@redhat.com>
13235 * target.h (struct target_ops) <to_trace_start>: Add argument.
13236 (target_trace_start): Add argument.
13237 * target.c (update_current_target): Update.
13238 * remote.c (remote_trace_start): Add 'self' argument.
13240 2014-02-19 Tom Tromey <tromey@redhat.com>
13242 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13244 (target_trace_set_readonly_regions): Add argument.
13245 * target.c (update_current_target): Update.
13246 * remote.c (remote_trace_set_readonly_regions): Add 'self'
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13251 * target.h (struct target_ops) <to_disable_tracepoint>: Add
13253 (target_disable_tracepoint): Add argument.
13254 * target.c (update_current_target): Update.
13255 * remote.c (remote_disable_tracepoint): Add 'self' argument.
13257 2014-02-19 Tom Tromey <tromey@redhat.com>
13259 * target.h (struct target_ops) <to_enable_tracepoint>: Add
13261 (target_enable_tracepoint): Add argument.
13262 * target.c (update_current_target): Update.
13263 * remote.c (remote_enable_tracepoint): Add 'self' argument.
13265 2014-02-19 Tom Tromey <tromey@redhat.com>
13267 * target.h (struct target_ops) <to_download_trace_state_variable>:
13269 (target_download_trace_state_variable): Add argument.
13270 * target.c (update_current_target): Update.
13271 * remote.c (remote_download_trace_state_variable): Add 'self'
13274 2014-02-19 Tom Tromey <tromey@redhat.com>
13276 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13278 (target_can_download_tracepoint): Add argument.
13279 * target.c (update_current_target): Update.
13280 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13282 2014-02-19 Tom Tromey <tromey@redhat.com>
13284 * target.h (struct target_ops) <to_download_tracepoint>: Add
13286 (target_download_tracepoint): Add argument.
13287 * target.c (update_current_target): Update.
13288 * remote.c (remote_download_tracepoint): Add 'self' argument.
13290 2014-02-19 Tom Tromey <tromey@redhat.com>
13292 * target.h (struct target_ops) <to_trace_init>: Add argument.
13293 (target_trace_init): Add argument.
13294 * target.c (update_current_target): Update.
13295 * remote.c (remote_trace_init): Add 'self' argument.
13297 2014-02-19 Tom Tromey <tromey@redhat.com>
13299 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13300 * target.c (target_fileio_readlink): Add argument.
13301 * remote.c (remote_hostio_readlink): Add 'self' argument.
13302 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13306 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13307 * target.c (target_fileio_unlink): Add argument.
13308 * remote.c (remote_hostio_unlink): Add 'self' argument.
13309 (remote_file_delete): Update.
13310 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13314 * target.h (struct target_ops) <to_fileio_close>: Add argument.
13315 * target.c (target_fileio_close): Add argument.
13316 * remote.c (remote_hostio_close): Add 'self' argument.
13317 (remote_hostio_close_cleanup): Update.
13318 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13320 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13322 2014-02-19 Tom Tromey <tromey@redhat.com>
13324 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13325 * target.c (target_fileio_pread): Add argument.
13326 * remote.c (remote_hostio_pread): Add 'self' argument.
13327 (remote_bfd_iovec_pread, remote_file_get): Update.
13328 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13330 2014-02-19 Tom Tromey <tromey@redhat.com>
13332 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13333 * target.c (target_fileio_pwrite): Add argument.
13334 * remote.c (remote_hostio_pwrite): Add 'self' argument.
13335 (remote_file_put): Update.
13336 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13338 2014-02-19 Tom Tromey <tromey@redhat.com>
13340 * target.h (struct target_ops) <to_fileio_open>: Add argument.
13341 * target.c (target_fileio_open): Add argument.
13342 * remote.c (remote_hostio_open): Add 'self' argument.
13343 (remote_bfd_iovec_open): Add 'self' argument.
13344 (remote_file_put): Add 'self' argument.
13345 (remote_file_get): Add 'self' argument.
13346 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13348 2014-02-19 Tom Tromey <tromey@redhat.com>
13350 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13352 (target_can_run_breakpoint_commands): Add argument.
13353 * target.c (update_current_target): Update.
13354 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13356 (remote_insert_breakpoint): Add 'self' argument.
13357 (remote_insert_hw_breakpoint): Add 'self' argument.
13358 (remote_can_run_breakpoint_commands): Add 'self' argument.
13360 2014-02-19 Tom Tromey <tromey@redhat.com>
13362 * target.h (struct target_ops)
13363 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13364 (target_supports_evaluation_of_breakpoint_conditions): Add
13366 * target.c (update_current_target): Update.
13367 * remote.c (remote_supports_cond_breakpoints): Add 'self'
13369 (remote_insert_breakpoint): Add 'self' argument.
13370 (remote_insert_hw_breakpoint): Add 'self' argument.
13371 (remote_supports_cond_breakpoints): Add 'self' argument.
13373 2014-02-19 Tom Tromey <tromey@redhat.com>
13375 * target.h (struct target_ops) <to_supports_string_tracing>: Add
13377 (target_supports_string_tracing): Add argument.
13378 * target.c (update_current_target): Update.
13379 * remote.c (remote_supports_string_tracing): Add 'self' argument.
13381 2014-02-19 Tom Tromey <tromey@redhat.com>
13383 * target.h (struct target_ops)
13384 <to_supports_disable_randomization>: Add argument.
13385 * target.c (find_default_supports_disable_randomization): Add
13387 (target_supports_disable_randomization): Add argument.
13388 (find_default_supports_disable_randomization): Add 'self'
13390 * remote.c (extended_remote_supports_disable_randomization): Add
13392 (remote_supports_disable_randomization): Add 'self' argument.
13393 (extended_remote_create_inferior): Update.
13394 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13397 2014-02-19 Tom Tromey <tromey@redhat.com>
13399 * target.h (struct target_ops)
13400 <to_supports_enable_disable_tracepoint>: Add argument.
13401 (target_supports_enable_disable_tracepoint): Add argument.
13402 * target.c (update_current_target): Update.
13403 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13406 2014-02-19 Tom Tromey <tromey@redhat.com>
13408 * target.h (struct target_ops) <to_supports_multi_process>: Add
13410 (target_supports_multi_process): Add argument.
13411 * target.c (update_current_target): Update.
13412 * remote.c (remote_supports_multi_process): Add 'self' argument.
13413 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13415 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13418 2014-02-19 Tom Tromey <tromey@redhat.com>
13420 * target.h (struct target_ops) <to_execution_direction>: Add
13422 (target_execution_direction): Add argument.
13423 * target.c (default_execution_direction): Add 'self' argument.
13424 * record-full.c (record_full_execution_direction): Add 'self'
13427 2014-02-19 Tom Tromey <tromey@redhat.com>
13429 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13431 (target_can_execute_reverse): Add argument.
13432 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13433 * record-full.c (record_full_can_execute_reverse): Add 'self'
13435 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13438 2014-02-19 Tom Tromey <tromey@redhat.com>
13440 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13441 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13443 (target_get_ada_task_ptid): Add argument.
13444 * target.c (update_current_target): Update.
13445 (default_get_ada_task_ptid): Add 'self' argument.
13446 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13447 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13448 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13450 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13452 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13454 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13456 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13457 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13460 2014-02-19 Tom Tromey <tromey@redhat.com>
13462 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13463 (target_goto_bookmark): Add argument.
13464 * target.c (dummy_goto_bookmark): Add 'self' argument.
13465 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13467 2014-02-19 Tom Tromey <tromey@redhat.com>
13469 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13470 (target_get_bookmark): Add argument.
13471 * target.c (dummy_get_bookmark): Add 'self' argument.
13472 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13474 2014-02-19 Tom Tromey <tromey@redhat.com>
13476 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13478 (target_make_corefile_notes): Add argument.
13479 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13480 * procfs.c (procfs_make_note_section): Add 'self' argument.
13481 (procfs_make_note_section): Add 'self' argument.
13482 (procfs_make_note_section): Add 'self' argument.
13483 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13485 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13486 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13487 * exec.c (exec_make_note_section): Add 'self' argument.
13488 (exec_make_note_section): Add 'self' argument.
13490 2014-02-19 Tom Tromey <tromey@redhat.com>
13492 * target.h (struct target_ops) <to_find_memory_regions>: Add
13494 (target_find_memory_regions): Add argument.
13495 * target.c (dummy_find_memory_regions): Add 'self' argument.
13496 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13497 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13498 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13499 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13500 * exec. (exec_do_find_memory_regions): New global.
13501 (exec_set_find_memory_regions): Rewrite.
13502 (exec_find_memory_regions): New function.
13503 (init_exec_ops): Use exec_find_memory_regions.
13505 2014-02-19 Tom Tromey <tromey@redhat.com>
13507 * target.h (struct target_ops) <to_supports_non_stop>: Add
13509 * target.c (find_default_supports_non_stop): Add argument.
13510 (target_supports_non_stop): Add argument.
13511 (find_default_supports_non_stop): Add 'self' argument.
13512 * remote.c (remote_supports_non_stop): Add 'self' argument.
13513 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13515 2014-02-19 Tom Tromey <tromey@redhat.com>
13517 * target.h (struct target_ops) <to_log_command>: Add argument.
13518 (target_log_command): Add argument.
13519 * serial.h (serial_log_command): Add 'self' argument.
13520 * serial.c (serial_log_command): Add 'self' argument.
13522 2014-02-19 Tom Tromey <tromey@redhat.com>
13524 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13525 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13527 (target_pid_to_exec_file): Add argument.
13528 * target.c (debug_to_pid_to_exec_file): Add argument.
13529 (update_current_target): Update.
13530 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13531 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13532 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13533 (linux_handle_extended_wait): Update.
13534 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13535 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13536 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13537 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13539 2014-02-19 Tom Tromey <tromey@redhat.com>
13541 * target.h (struct target_ops) <to_rcmd>: Add argument.
13542 (target_rcmd): Add argument.
13543 * target.c (debug_to_rcmd): Add argument.
13544 (update_current_target, do_monitor_command): Update.
13545 * remote.c (remote_rcmd): Add 'self' argument.
13546 * monitor.c (monitor_rcmd): Add 'self' argument.
13548 2014-02-19 Tom Tromey <tromey@redhat.com>
13550 * windows-nat.c (windows_stop): Add 'self' argument.
13551 * target.h (struct target_ops) <to_stop>: Add argument.
13552 * target.c (target_stop): Add argument.
13553 (debug_to_stop): Add argument.
13554 (update_current_target): Update.
13555 * remote.c (remote_stop): Add 'self' argument.
13556 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13557 (gdbsim_cntrl_c): Update.
13558 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13559 * procfs.c (procfs_stop): Add 'self' argument.
13560 * nto-procfs.c (procfs_stop): Add 'self' argument.
13561 * monitor.c (monitor_stop): Add 'self' argument.
13562 (monitor_open): Update.
13563 * linux-nat.c (linux_nat_stop): Add argument.
13564 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13565 * gnu-nat.c (gnu_stop): Add 'self' argument.
13566 * darwin-nat.c (darwin_stop): Add 'self' argument.
13568 2014-02-19 Tom Tromey <tromey@redhat.com>
13570 * target.h (struct target_ops) <to_thread_name>: Add argument.
13571 * target.c (target_thread_name): Add argument.
13572 (update_current_target): Update.
13573 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13575 2014-02-19 Tom Tromey <tromey@redhat.com>
13577 * target.h (struct target_ops) <to_extra_thread_info>: Add
13579 (target_extra_thread_info): Add argument.
13580 * target.c (update_current_target): Update.
13581 * remote.c (remote_threads_extra_info): Add 'self' argument.
13582 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13584 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13585 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13586 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13588 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13590 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13592 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13595 2014-02-19 Tom Tromey <tromey@redhat.com>
13597 * target.h (struct target_ops) <to_program_signals>: Add argument.
13598 * target.c (target_program_signals): Add argument.
13599 * remote.c (remote_program_signals): Add 'self' argument.
13601 2014-02-19 Tom Tromey <tromey@redhat.com>
13603 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13604 * target.c (target_pass_signals): Add argument.
13605 * remote.c (remote_pass_signals): Add 'self' argument.
13606 (remote_start_remote): Update.
13607 * procfs.c (procfs_pass_signals): Add 'self' argument.
13608 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13609 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13610 (linux_nat_create_inferior, linux_nat_attach): Update.
13612 2014-02-19 Tom Tromey <tromey@redhat.com>
13614 * windows-nat.c (windows_can_run): Add 'self' argument.
13615 * target.h (struct target_ops) <to_can_run>: Add argument.
13616 (target_can_run): Add argument.
13617 * target.c (debug_to_can_run): Add argument.
13618 (update_current_target): Update.
13619 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13620 * inf-child.c (inf_child_can_run): Add 'self' argument.
13621 * go32-nat.c (go32_can_run): Add 'self' argument.
13623 2014-02-19 Tom Tromey <tromey@redhat.com>
13625 * target.h (struct target_ops) <to_has_exited>: Add argument.
13626 (target_has_exited): Add argument.
13627 * target.c (debug_to_has_exited): Add argument.
13628 (update_current_target): Update.
13630 2014-02-19 Tom Tromey <tromey@redhat.com>
13632 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13634 (target_set_syscall_catchpoint): Add argument.
13635 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13637 * target.c (update_current_target): Update.
13639 2014-02-19 Tom Tromey <tromey@redhat.com>
13641 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13643 (target_remove_exec_catchpoint): Add argument.
13644 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13645 (update_current_target): Update.
13646 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13649 2014-02-19 Tom Tromey <tromey@redhat.com>
13651 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13653 (target_insert_exec_catchpoint): Add argument.
13654 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13655 (update_current_target): Update.
13656 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13659 2014-02-19 Tom Tromey <tromey@redhat.com>
13661 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13663 (target_remove_vfork_catchpoint): Add argument.
13664 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13665 (update_current_target): Update.
13666 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13669 2014-02-19 Tom Tromey <tromey@redhat.com>
13671 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13673 (target_insert_vfork_catchpoint): Add argument.
13674 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13675 (update_current_target): Update.
13676 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13679 2014-02-19 Tom Tromey <tromey@redhat.com>
13681 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13683 (target_remove_fork_catchpoint): Add argument.
13684 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13685 (update_current_target): Update.
13686 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13689 2014-02-19 Tom Tromey <tromey@redhat.com>
13691 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13693 (target_insert_fork_catchpoint): Add argument.
13694 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13695 (update_current_target): Update.
13696 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13699 2014-02-19 Tom Tromey <tromey@redhat.com>
13701 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13703 (target_post_startup_inferior): Add argument.
13704 * target.c (debug_to_post_startup_inferior): Add argument.
13705 (update_current_target): Update.
13706 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13708 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13710 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13712 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13714 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13716 (super_post_startup_inferior): Likewise.
13717 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13719 (super_post_startup_inferior): Likewise.
13720 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13721 Add 'self' argument.
13722 (super_post_startup_inferior): Likewise.
13724 2014-02-19 Tom Tromey <tromey@redhat.com>
13726 * target.h (struct target_ops) <to_load>: Add argument.
13727 * target.c (target_load): Add argument.
13728 (debug_to_load): Add argument.
13729 (update_current_target): Update.
13730 * remote.c (remote_load): Add 'self' argument.
13731 * remote-sim.c (gdbsim_load): Add 'self' argument.
13732 * remote-mips.c (mips_load): Add 'self' argument.
13733 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13734 * monitor.c (monitor_load): Add 'self' argument.
13735 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13737 2014-02-19 Tom Tromey <tromey@redhat.com>
13739 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13740 (target_terminal_info): Add argument.
13741 * target.c (debug_to_terminal_info): Add argument.
13742 (default_terminal_info): Likewise.
13743 * inflow.c (child_terminal_info): Add 'self' argument.
13744 * inferior.h (child_terminal_info): Add 'self' argument.
13745 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13747 2014-02-19 Tom Tromey <tromey@redhat.com>
13749 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13751 (target_terminal_save_ours): Add argument.
13752 * target.c (debug_to_terminal_save_ours): Add argument.
13753 (update_current_target): Update.
13754 * inflow.c (terminal_save_ours): Add 'self' argument.
13755 * inferior.h (terminal_save_ours): Add 'self' argument.
13757 2014-02-19 Tom Tromey <tromey@redhat.com>
13759 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13760 (target_terminal_ours): Add argument.
13761 * target.c (debug_to_terminal_ours): Add argument.
13762 (update_current_target): Update.
13763 * remote.c (remote_terminal_ours): Add 'self' argument.
13764 (remote_close): Update.
13765 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13766 * inflow.c (terminal_ours): Add 'self' argument.
13767 * inferior.h (terminal_ours): Add 'self' argument.
13768 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13770 2014-02-19 Pedro Alves <palves@redhat.com>
13771 Tom Tromey <tromey@redhat.com>
13773 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13775 (target_terminal_ours_for_output): Add argument.
13776 * target.c (debug_to_terminal_ours_for_output): Add argument.
13777 (update_current_target): Update.
13778 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13779 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13780 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13782 2014-02-19 Tom Tromey <tromey@redhat.com>
13784 * target.h (struct target_ops) <to_terminal_inferior>: Add
13786 * target.c (target_terminal_inferior): Add argument.
13787 (update_current_target): Update.
13788 * remote.c (remote_terminal_inferior): Add 'self' argument.
13789 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13790 * inflow.c (terminal_inferior): Add 'self' argument.
13791 * inferior.h (terminal_inferior): Add 'self' argument.
13792 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13793 (go32_terminal_inferior): Add 'self' argument.
13795 2014-02-19 Tom Tromey <tromey@redhat.com>
13797 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13798 (target_terminal_init): Add argument.
13799 * target.c (debug_to_terminal_init): Add argument.
13800 (update_current_target): Update.
13801 * inflow.c (terminal_init_inferior): Add 'self' argument.
13802 * inferior.h (terminal_init_inferior): Add 'self' argument.
13803 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13804 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13806 2014-02-19 Tom Tromey <tromey@redhat.com>
13808 * target.h (struct target_ops)
13809 <to_can_accel_watchpoint_condition>: Add argument.
13810 (target_can_accel_watchpoint_condition): Add argument.
13811 * target.c (debug_to_can_accel_watchpoint_condition): Add
13813 (update_current_target): Update.
13814 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13817 2014-02-19 Tom Tromey <tromey@redhat.com>
13819 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13821 (target_region_ok_for_hw_watchpoint): Add argument.
13822 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13823 (default_region_ok_for_hw_watchpoint): Add argument.
13824 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13825 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13827 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13829 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13831 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13833 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13835 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13837 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13838 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13840 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13841 Add 'self' argument.
13843 2014-02-19 Tom Tromey <tromey@redhat.com>
13845 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13847 (target_insert_watchpoint): Add argument.
13848 * target.c (debug_to_insert_watchpoint): Add argument.
13849 (update_current_target): Update.
13850 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13851 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13852 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13853 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13854 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13855 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13857 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13858 (procfs_insert_hw_watchpoint): Add 'self' argument.
13859 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13861 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13863 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13865 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13866 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13868 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13871 2014-02-19 Tom Tromey <tromey@redhat.com>
13873 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13875 (target_remove_watchpoint): Add argument.
13876 * target.c (debug_to_remove_watchpoint): Add argument.
13877 (update_current_target): Update.
13878 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13879 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13880 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13881 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13882 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13883 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13885 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13886 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13888 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13890 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13892 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13893 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13895 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13898 2014-02-19 Tom Tromey <tromey@redhat.com>
13900 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13902 (target_remove_hw_breakpoint): Add argument.
13903 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13904 (update_current_target): Update.
13905 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13906 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13908 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13909 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13911 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13914 2014-02-19 Tom Tromey <tromey@redhat.com>
13916 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13918 (target_insert_hw_breakpoint): Add argument.
13919 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13920 (update_current_target): Update.
13921 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13922 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13924 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13925 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13926 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13928 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13931 2014-02-19 Tom Tromey <tromey@redhat.com>
13933 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13935 (target_can_use_hardware_watchpoint): Add argument.
13936 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13937 (update_current_target): Update.
13938 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13940 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13942 * remote.c (remote_check_watch_resources): Add 'self' argument.
13943 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13944 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13946 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13947 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13949 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13951 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13953 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13955 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13957 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13959 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13960 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13962 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13965 2014-02-19 Tom Tromey <tromey@redhat.com>
13967 * target.h (struct target_ops) <to_post_attach>: Add argument.
13968 (target_post_attach): Add argument.
13969 * target.c (debug_to_post_attach): Add argument.
13970 (update_current_target): Update.
13971 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13972 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13973 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13974 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13975 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13977 2014-02-19 Tom Tromey <tromey@redhat.com>
13979 * windows-nat.c (windows_close): Add 'self' argument.
13980 * tracepoint.c (tfile_close): Add 'self' argument.
13981 * target.h (struct target_ops) <to_close>: Add argument.
13982 * target.c (target_close): Add argument.
13983 (update_current_target): Update.
13984 * remote.c (remote_close): Add 'self' argument.
13985 * remote-sim.c (gdbsim_close): Add 'self' argument.
13986 * remote-mips.c (mips_close): Add 'self' argument.
13987 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13988 * record-full.c (record_full_close): Add 'self' argument.
13989 * record-btrace.c (record_btrace_close): Add 'self' argument.
13990 * monitor.h (monitor_close): Add 'self' argument.
13991 * monitor.c (monitor_close): Add 'self' argument.
13992 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13993 * linux-nat.c (linux_nat_close): Add argument.
13994 * go32-nat.c (go32_close): Add 'self' argument.
13995 * exec.c (exec_close_1): Add 'self' argument.
13996 * ctf.c (ctf_close): Add 'self' argument.
13997 * corelow.c (core_close): Add 'self' argument.
13998 (core_close_cleanup): Update.
13999 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
14000 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
14002 2014-02-19 Tom Tromey <tromey@redhat.com>
14004 * remote.c (remote_load): New function.
14005 (init_remote_ops): Use it.
14007 2014-02-19 Tom Tromey <tromey@redhat.com>
14009 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
14011 * common/linux-btrace.h (linux_supports_btrace): Update.
14012 * remote.c (remote_supports_btrace): Add "self" argument.
14013 * target-delegates.c: Rebuild.
14014 * target.c (target_supports_btrace): Remove.
14015 * target.h (struct target_ops) <to_supports_btrace>: Add
14016 target_ops argument.
14017 (target_supports_btrace): New define.
14019 2014-02-19 Tom Tromey <tromey@redhat.com>
14021 * record-full.c (record_full_beneath_to_resume_ops)
14022 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14023 (record_full_beneath_to_wait)
14024 (record_full_beneath_to_store_registers_ops)
14025 (record_full_beneath_to_store_registers)
14026 (record_full_beneath_to_xfer_partial_ops)
14027 (record_full_beneath_to_xfer_partial)
14028 (record_full_beneath_to_insert_breakpoint_ops)
14029 (record_full_beneath_to_insert_breakpoint)
14030 (record_full_beneath_to_remove_breakpoint_ops)
14031 (record_full_beneath_to_remove_breakpoint)
14032 (record_full_beneath_to_stopped_by_watchpoint)
14033 (record_full_beneath_to_stopped_data_address)
14034 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14035 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14036 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14037 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14038 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14039 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14040 (tmp_to_stopped_data_address, tmp_to_async): Remove.
14041 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
14042 (record_full_resume, record_full_wait_1)
14043 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14044 (record_full_store_registers, record_full_xfer_partial)
14045 (record_full_insert_breakpoint, record_full_remove_breakpoint)
14046 (record_full_async, record_full_core_xfer_partial): Use target
14048 * target-delegates.c: Rebuild.
14049 * target.c (current_xfer_partial): Remove.
14050 (update_current_target): Do not INHERIT or de_fault
14051 to_insert_breakpoint, to_remove_breakpoint,
14052 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14053 to_is_async_p, to_async. Do not set to_xfer_partial field.
14054 (default_xfer_partial): Simplify.
14055 (current_xfer_partial): Remove.
14056 (target_wait, target_resume): Simplify.
14057 (find_default_can_async_p, find_default_is_async_p): Update.
14058 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14059 to_xfer_partial, to_stopped_by_watchpoint,
14060 to_stopped_data_address.
14061 (target_store_registers): Simplify.
14062 (forward_target_remove_breakpoint)
14063 (forward_target_insert_breakpoint): Remove.
14064 (target_remove_breakpoint, target_insert_breakpoint)
14065 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14066 * target.h (struct target_ops) <to_resume, to_wait,
14067 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14068 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14069 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14071 (forward_target_remove_breakpoint)
14072 (forward_target_insert_breakpoint): Remove.
14073 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14075 (record_btrace_insert_breakpoint): Delegate directly.
14077 2014-02-19 Tom Tromey <tromey@redhat.com>
14080 * target-delegates.c: New file.
14081 * target.c: Include target-delegates.c.
14082 (init_dummy_target): Call install_dummy_methods.
14083 (complete_target_initialization): Call install_delegators.
14084 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14085 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14086 * make-target-delegates: New file.
14088 2014-02-19 Tom Tromey <tromey@redhat.com>
14090 * record.c (find_record_target): Use find_target_at.
14091 * target.c (find_target_at): New function.
14092 * target.h (find_target_at): Declare.
14094 2014-02-19 Tom Tromey <tromey@redhat.com>
14096 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14097 Add 'ops' argument.
14098 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14100 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14101 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14103 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14105 * linux-nat.c (save_sigtrap): Update.
14106 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14107 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14108 (linux_nat_close): Update.
14109 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14111 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14113 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14114 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14115 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14116 (tmp_to_async): Add 'ops' argument.
14117 (record_full_stopped_by_watchpoint, record_full_async)
14118 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14120 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14121 (m32r_stopped_by_watchpoint): Add 'ops' argument.
14122 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14123 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14124 (remote_is_async_p, remote_async): Add 'ops' argument.
14125 (remote_stopped_data_address): Update.
14126 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14127 * target.c (update_current_target)
14128 (find_default_can_async_p, find_default_is_async_p): Update.
14129 (init_dummy_target): Update.
14130 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14131 * target.h (struct target_ops) <to_stopped_by_watchpoint,
14132 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14133 (target_can_async_p, target_is_async_p, target_async)
14134 (target_stopped_by_watchpoint): Update.
14136 2014-02-19 Yao Qi <yao@codesourcery.com>
14139 * gdbarch.sh: Remove startup_gdbarch.
14140 * gdbarch.c: Regenerated.
14141 * gdbarch.h: Likewise.
14143 2014-02-17 Kevin Buettner <kevinb@redhat.com>
14145 * rl78-tdep.c (rl78_g10_register_name): New function.
14146 (rl78_return_value): Add g10 support.
14147 (rl78_gdbarch_init): Register rl78_g10_register_name for the
14150 2014-02-17 Doug Evans <xdje42@gmail.com>
14152 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14153 (SUBDIR_GUILE_SRCS): Ditto.
14154 (scm-gsmob.o): Ditto.
14156 2014-02-17 Yao Qi <yao@codesourcery.com>
14158 * gnu-nat.c (ILL_RPC): Declare defined function.
14160 2014-02-17 Yao Qi <yao@codesourcery.com>
14162 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14163 mach_msg_type_number_t.
14164 (gnu_write_inferior): Likewise.
14166 2014-02-17 Yao Qi <yao@codesourcery.com>
14168 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14170 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14171 (inf_validate_procs, inf_signal): Likewise.
14172 (S_exception_raise_request): Likewise.
14173 (do_mach_notify_dead_name): Likewise.
14174 (steal_exc_port): Likewise.
14175 (gnu_read_inferior): Change 'copy_count''s type to
14176 mach_msg_type_number_t.
14177 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
14180 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
14182 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14183 flag. Adjust all users; in particular...
14184 (gnu_wait): ..., don't decrement its value in here...
14185 (gnu_create_inferior): ..., and instead set the flag in here,
14186 around the startup_inferior call, and call that one with
14187 START_INFERIOR_TRAPS_EXPECTED.
14189 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14190 (ILL_RPC): ... new macro.
14191 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14192 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14193 (do_mach_notify_send_once, S_proc_setmsgport_reply)
14194 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14195 functions with ILL_RPC macro.
14196 (S_proc_pid2task_reply, S_proc_task2pid_reply)
14197 (S_proc_task2proc_reply, S_proc_proc2task_reply)
14198 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14199 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14200 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14201 (S_proc_getlogin_reply, S_proc_getsid_reply)
14202 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14203 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14204 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14205 (S_proc_getnports_reply, S_proc_is_important_reply)
14206 (S_proc_get_code_reply): New stub functions, generated with
14209 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14210 collected the type check structures.
14212 * reply_mig_hack.awk: Don't expect to see the auto keyword.
14214 2014-02-14 Doug Evans <dje@google.com>
14216 * target.c (target_write_partial): Fix result type.
14218 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
14220 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14221 the proper offsets to access fpregset_t.
14223 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
14225 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14226 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14227 * h8300-tdep.c (setmachinelist): Remove global.
14228 * hppa-tdep.c (hppa_sigtramp): Remove global.
14229 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14230 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14231 * ravenscar-thread.c (update_target_observer): Remove global.
14232 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14234 2014-02-12 Tom Tromey <tromey@redhat.com>
14236 * common/rsp-low.c: Update comments.
14237 * common/rsp-low.h: Update comments.
14239 2014-02-12 Tom Tromey <tromey@redhat.com>
14241 * common/rsp-low.c (convert_ascii_to_int): Remove.
14242 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14244 2014-02-12 Tom Tromey <tromey@redhat.com>
14246 * common/rsp-low.h (unhexify): Don't declare.
14247 * common/rsp-low.c (unhexify): Remove.
14249 2014-02-12 Tom Tromey <tromey@redhat.com>
14251 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14252 * common/rsp-low.c (convert_int_to_ascii): Remove.
14254 2014-02-12 Tom Tromey <tromey@redhat.com>
14256 * common/rsp-low.h (hexify): Don't declare.
14257 * common/rsp-low.c (hexify): Remove.
14259 2014-02-12 Tom Tromey <tromey@redhat.com>
14261 * common/rsp-low.c (hexify): Never take strlen of argument.
14263 2014-02-12 Tom Tromey <tromey@redhat.com>
14265 * common/rsp-low.c (bin2hex): Never take strlen of argument.
14266 * remote.c (extended_remote_run, remote_rcmd)
14267 (remote_download_trace_state_variable, remote_save_trace_data)
14268 (remote_set_trace_notes): Update.
14269 * tracepoint.c (encode_source_string, tfile_write_status)
14270 (tfile_write_uploaded_tsv): Update.
14272 2014-02-12 Tom Tromey <tromey@redhat.com>
14274 * tracepoint.c: Include rsp-low.h.
14275 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14276 * remote.c: Include rsp-low.h.
14277 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14278 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14279 (remote_unescape_input): Move to common/rsp-low.c.
14280 * common/rsp-low.h: New file.
14281 * common/rsp-low.c: New file.
14282 * Makefile.in (SFILES): Add common/rsp-low.c.
14283 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14284 (COMMON_OBS): Add rsp-low.o.
14285 (rsp-low.o): New target.
14287 2014-02-12 Tom Tromey <tromey@redhat.com>
14289 * utils.h: Include print-utils.h.
14290 (host_address_to_string, plongest, pulongest, phex, phex_nz)
14291 (int_string, core_addr_to_string, core_addr_to_string_nz)
14292 (hex_string, hex_string_custom): Don't declare.
14293 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14294 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14295 (hex_string_custom, int_string, core_addr_to_string)
14296 (core_addr_to_string_nz, host_address_to_string): Move to
14297 common/print-utils.c.
14298 * common/print-utils.h: New file.
14299 * common/print-utils.c: New file
14300 * Makefile.in (SFILES): Add common/print-utils.c.
14301 (HFILES_NO_SRCDIR): Add common/print-utils.h.
14302 (COMMON_OBS): Add print-utils.o.
14303 (print-utils.o): New target.
14305 2014-02-12 Tom Tromey <tromey@redhat.com>
14307 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14309 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14311 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14313 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14315 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14316 if a PT_IO ptrace request returns sucessfully but indicates that 0
14317 bytes were transferred.
14319 2014-02-12 Pedro Alves <palves@redhat.com>
14320 Kevin Buettner <kevinb@redhat.com>
14322 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14323 TYPE_INSTANCE_FLAG_CODE_SPACE.
14325 2014-02-12 Pedro Alves <palves@redhat.com>
14327 * h8300-tdep.c (pseudo_from_raw_register)
14328 (raw_from_pseudo_register): New functions.
14329 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14332 2014-02-12 Pedro Alves <palves@redhat.com>
14334 * h8300-tdep.c (h8300_register_sim_regno): New function.
14335 (h8300_gdbarch_init): Install h8300_register_sim_regno as
14336 gdbarch_register_sim_regno hook.
14338 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14340 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14342 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14344 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14346 2014-02-12 Mark Kettenis <kettenis@gnu.org>
14348 * obsd-tdep.h (obsd_init_abi): New prototype.
14349 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14350 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14351 (obsd_init_abi): New functions.
14352 * i386obsd-tdep.c: Include "obsd-tdep.h".
14353 (i386obsd_init_abi): Call obsd_init_abi.
14354 * amd64obsd-tdep.c: Include "obsd-tdep.h".
14355 (amd64obsd_init_abi): Call obsd_init_abi.
14356 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14357 obsd-tdep.c to gdb_target_obs.
14359 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
14361 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14362 double float arguments to 16-byte in the argument slots.
14364 2014-02-11 Doug Evans <xdje42@gmail.com>
14366 * configure.ac: Don't crash if pkg-config is not found and guile
14367 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
14369 * configure: Regenerate.
14371 2014-02-11 Yao Qi <yao@codesourcery.com>
14373 * aix-thread.c (aix_thread_xfer_partial): Update comments.
14374 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14375 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14376 * gnu-nat.c (gnu_xfer_memory): Likewise.
14377 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14378 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14379 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14380 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14382 2014-02-11 Yao Qi <yao@codesourcery.com>
14384 * target.h (enum target_xfer_error): Rename to ...
14385 (enum target_xfer_status): ... it. New. All users updated.
14386 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14388 (TARGET_XFER_STATUS_ERROR_P): New macro.
14389 (target_xfer_error_to_string): Remove declaration.
14390 (target_xfer_status_to_string): Declare.
14391 (target_xfer_partial_ftype): Adjust it.
14392 (struct target_ops) <to_xfer_partial>: Return
14393 target_xfer_status. Add argument xfered_len. Update
14395 * target.c (target_xfer_error_to_string): Rename to ...
14396 (target_xfer_status_to_string): ... it. New. All callers
14398 (target_read_live_memory): Likewise. Call target_xfer_partial
14399 instead of target_read.
14400 (memory_xfer_live_readonly_partial): Return
14401 target_xfer_status. Add argument xfered_len.
14402 (raw_memory_xfer_partial): Likewise.
14403 (memory_xfer_partial_1): Likewise.
14404 (memory_xfer_partial): Likewise.
14405 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14406 properly. Update debug message.
14407 (default_xfer_partial, current_xfer_partial): Likewise.
14408 (target_write_partial): Likewise.
14409 (target_read_partial): Likewise. All callers updated.
14410 (read_whatever_is_readable): Likewise.
14411 (target_write_with_progress): Likewise.
14412 (target_read_alloc_1): Likewise.
14414 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14415 * auxv.c (procfs_xfer_auxv): Likewise.
14416 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14417 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14418 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14419 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14420 * corefile.c (read_memory): Adjust.
14421 * corelow.c (core_xfer_partial): Likewise.
14422 * ctf.c (ctf_xfer_partial): Likewise.
14423 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14425 (darwin_xfer_partial): Likewise.
14426 * exec.c (section_table_xfer_memory_partial): Likewise. All
14428 (exec_xfer_partial): Likewise.
14429 * exec.h (section_table_xfer_memory_partial): Update
14431 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14433 (gnu_xfer_partial): Likewise.
14434 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14435 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14436 (ia64_hpux_xfer_solib_got): Likewise.
14437 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14438 type of 'partial_len' to ULONGEST.
14439 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14440 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14441 (linux_nat_xfer_partial): Likewise.
14442 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14443 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14444 * monitor.c (monitor_xfer_memory): Likewise.
14445 (monitor_xfer_partial): Likewise.
14446 * procfs.c (procfs_xfer_partial): Likewise.
14447 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14448 * record-full.c (record_full_xfer_partial): Likewise.
14449 (record_full_core_xfer_partial): Likewise.
14450 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14451 (gdbsim_xfer_partial): Likewise.
14452 * remote.c (remote_write_bytes_aux): Likewise. All callers
14454 (remote_write_bytes, remote_read_bytes): Likewise. All
14456 (remote_flash_erase): Likewise. All callers updated.
14457 (remote_write_qxfer): Likewise. All callers updated.
14458 (remote_read_qxfer): Likewise. All callers updated.
14459 (remote_xfer_partial): Likewise.
14460 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14461 (rs6000_xfer_shared_libraries): Likewise.
14462 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14463 (sol_thread_xfer_partial): Likewise.
14464 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14465 (sparc_xfer_partial): Likewise.
14466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14468 (spu_xfer_partial): Likewise.
14469 * spu-multiarch.c (spu_xfer_partial): Likewise.
14470 * tracepoint.c (tfile_xfer_partial): Likewise.
14471 * windows-nat.c (windows_xfer_memory): Likewise.
14472 (windows_xfer_shared_libraries): Likewise.
14473 (windows_xfer_partial): Likewise.
14474 * valprint.c: Replace 'target_xfer_error' with
14475 'target_xfer_status' in comments.
14477 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14479 Checked in by Joel Brobecker <brobecker@adacore.com>.
14480 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14482 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14484 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14485 function parameters.
14487 2014-02-10 Will Newton <will.newton@linaro.org>
14489 * elfread.c (elf_rel_plt_read): Look for a .got section if
14490 looking up .got.plt fails.
14491 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14492 on address passed to elf_gnu_ifunc_record_cache.
14493 (elf_gnu_ifunc_resolve_addr): Likewise.
14494 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14496 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14498 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14499 (X_RETTURN): New macro.
14500 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14502 * sparc64-tdep.c (sparc64_init_abi): Hook
14503 sparc_in_function_epilogue_p.
14505 2014-02-10 Gary Benson <gbenson@redhat.com>
14507 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14508 Rename name_matcher to symbol_matcher.
14510 2014-02-10 Gary Benson <gbenson@redhat.com>
14512 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14513 Use expand_symtabs_file_matcher_ftype and
14514 expand_symtabs_symbol_matcher_ftype.
14516 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14518 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14519 (struct ada_symbol_cache): New.
14520 (ada_free_symbol_cache): Forward declare.
14521 (struct ada_pspace_data): New.
14522 (ada_pspace_data_handle): New static global.
14523 (get_ada_pspace_data, ada_pspace_data_cleanup)
14524 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14525 (cache_space, cache): Delete, now folded inside struct
14527 (ada_get_symbol_cache): New function.
14528 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14530 (_initialize_ada_language): Remove initialization of cache_space.
14531 Move call to observer_attach_inferior_exit up, grouping it
14532 with the other observer registrations inside this function.
14533 Rename command to be more general. Add call to
14534 register_program_space_data_with_cleanup.
14536 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14538 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14539 ada_new_objfile_observer.
14540 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14541 (_initialize_tasks): Update uses of ada_new_objfile_observer
14542 and ada_tasks_normal_stop_observer.
14544 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14546 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14547 returned by the 'Length attribute to integer.
14549 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14551 * ada-lang.c (_initialize_ada_language): Initialize
14552 cache_space obstack.
14554 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14556 * ada-lang.c (HASH_SIZE): New macro.
14557 (struct cache_entry): New type.
14558 (cache_space, cache): New static globals.
14559 (ada_clear_symbol_cache, find_entry): New functions.
14560 (lookup_cached_symbol, cache_symbol): Implement.
14561 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14562 (_initialize_ada_language): Attach ada_new_objfile_observer
14563 and ada_free_objfile_observer.
14565 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14567 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14568 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14569 struct block * parameter.
14570 (ada_lookup_symbol_list_worker): Constify local variable "block".
14571 Remove cast which is no longer necessary.
14573 2014-02-10 Doug Evans <xdje42@gmail.com>
14575 Add Guile as an extension language.
14576 * NEWS: Mention Guile scripting.
14577 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14578 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14579 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14580 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14581 (CLIBS): Add GUILE_LIBS.
14582 (install-guile): New rule.
14583 (guile.o): New rule.
14584 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14585 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14586 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14587 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14588 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14589 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14590 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14591 * configure.ac: New option --with-guile.
14592 * configure: Regenerate.
14593 * config.in: Regenerate.
14594 * auto-load.c: Remove #include "python/python.h". Add #include
14595 "gdb/section-scripts.h".
14596 (source_section_scripts): Handle Guile scripts.
14597 (_initialize_auto_load): Add name of Guile objfile script to
14598 scripts-directory help text.
14599 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14600 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14601 (struct breakpoint): New member scm_bp_object.
14602 * defs.h (enum command_control_type): New value guile_control.
14603 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14605 (show_user): Update comment.
14606 (_initialize_cli_cmds): Update help text for "show user". Update help
14607 text for max-user-call-depth.
14608 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14610 (multi_line_command_p): Add guile_control.
14611 (print_command_lines): Handle guile_control.
14612 (execute_control_command, recurse_read_control_structure): Ditto.
14613 (process_next_line): Recognize "guile" commands.
14614 * disasm.c (gdb_disassemble_info): Make non-static.
14615 * disasm.h: #include "dis-asm.h".
14616 (struct gdbarch): Add forward decl.
14617 (gdb_disassemble_info): Declare.
14618 * extension.c: #include "guile/guile.h".
14619 (extension_languages): Add guile.
14620 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14621 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14622 * gdbtypes.c (get_unsigned_type_max): New function.
14623 (get_signed_type_minmax): New function.
14624 * gdbtypes.h (get_unsigned_type_max): Declare.
14625 (get_signed_type_minmax): Declare.
14626 * guile/README: New file.
14627 * guile/guile-internal.h: New file.
14628 * guile/guile.c: New file.
14629 * guile/guile.h: New file.
14630 * guile/scm-arch.c: New file.
14631 * guile/scm-auto-load.c: New file.
14632 * guile/scm-block.c: New file.
14633 * guile/scm-breakpoint.c: New file.
14634 * guile/scm-disasm.c: New file.
14635 * guile/scm-exception.c: New file.
14636 * guile/scm-frame.c: New file.
14637 * guile/scm-gsmob.c: New file.
14638 * guile/scm-iterator.c: New file.
14639 * guile/scm-lazy-string.c: New file.
14640 * guile/scm-math.c: New file.
14641 * guile/scm-objfile.c: New file.
14642 * guile/scm-ports.c: New file.
14643 * guile/scm-pretty-print.c: New file.
14644 * guile/scm-safe-call.c: New file.
14645 * guile/scm-string.c: New file.
14646 * guile/scm-symbol.c: New file.
14647 * guile/scm-symtab.c: New file.
14648 * guile/scm-type.c: New file.
14649 * guile/scm-utils.c: New file.
14650 * guile/scm-value.c: New file.
14651 * guile/lib/gdb.scm: New file.
14652 * guile/lib/gdb/boot.scm: New file.
14653 * guile/lib/gdb/experimental.scm: New file.
14654 * guile/lib/gdb/init.scm: New file.
14655 * guile/lib/gdb/iterator.scm: New file.
14656 * guile/lib/gdb/printing.scm: New file.
14657 * guile/lib/gdb/types.scm: New file.
14658 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14659 (VPATH): Add $(GUILE_SRCDIR).
14660 (GUILE_DIR): New variable.
14661 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14662 (all): Add stamp-guile dependency.
14663 (stamp-guile): New rule.
14664 (clean-guile, install-guile, uninstall-guile): New rules.
14665 (install-only): Add install-guile dependency.
14666 (uninstall): Add uninstall-guile dependency.
14667 (clean): Add clean-guile dependency.
14669 2014-02-09 Doug Evans <xdje42@gmail.com>
14671 Revert this patch (which I approved, mea culpa).
14673 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14675 * Makefile.in (all-lib): Remove.
14676 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14678 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14680 Fix Python stack corruption.
14681 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14684 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14686 * Makefile.in (all-lib): Remove.
14687 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14689 2014-02-07 Doug Evans <dje@google.com>
14691 * extension-priv.h (extension_language_script_ops): Add comment.
14692 (extension_language_ops): Add comment.
14693 (active_ext_lang_state): Fix typo in comment.
14695 2014-02-07 Pedro Alves <palves@redhat.com>
14697 PR breakpoints/16292
14698 * infrun.c (handle_signal_stop) <signal arrives while stepping
14699 over a breakpoint>: Switch back to the stepping thread.
14701 2014-02-07 Yao Qi <yao@codesourcery.com>
14703 * target.c (target_xfer_partial): Return zero if LEN is zero.
14705 2014-02-07 Yao Qi <yao@codesourcery.com>
14707 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14708 (ld_so_xfer_auxv): Likewise.
14709 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14710 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14711 * corelow.c (core_xfer_partial): Likewise.
14712 * ctf.c (ctf_xfer_partial): Likewise.
14713 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14714 (darwin_xfer_partial): Likewise.
14715 * exec.c (exec_xfer_partial): Likewise.
14716 * gnu-nat.c (gnu_xfer_partial): Likewise.
14717 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14718 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14719 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14720 * linux-nat.c (linux_xfer_siginfo): Likewise.
14721 (linux_proc_xfer_spu): Likewise.
14722 * procfs.c (procfs_xfer_partial): Likewise.
14723 * record-full.c (record_full_xfer_partial): Likewise.
14724 (record_full_core_xfer_partial): Likewise.
14725 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14726 * remote.c (remote_write_qxfer): Likewise.
14727 (remote_write_qxfer, remote_read_qxfer): Likewise.
14728 (remote_xfer_partial): Likewise.
14729 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14730 (rs6000_xfer_shared_libraries): Likewise.
14731 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14732 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14733 (spu_xfer_partial): Likewise.
14734 * target.c (memory_xfer_partial_1): Likewise.
14735 * tracepoint.c (tfile_xfer_partial): Likewise.
14736 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14737 (windows_xfer_partial): Likewise.
14739 2014-02-07 Yao Qi <yao@codesourcery.com>
14741 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14743 (core_xfer_shared_libraries_aix): Likewise.
14744 * gdbarch.c, gdbarch.h: Regenerated.
14745 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14746 ULONGEST. Change 'len_avail' type to ULONGEST.
14747 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14748 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14750 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14752 2014-02-07 Yao Qi <yao@codesourcery.com>
14754 * corefile.c (memory_error): Get 'exception' from ERR and pass
14755 'exception' to throw_error.
14757 2014-02-06 Doug Evans <xdje42@gmail.com>
14759 * configure.ac (libpython checking): Remove all but python.o from
14760 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14761 * configure: Regenerate.
14763 * Makefile.in (SFILES): Add extension.c.
14764 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14765 (COMMON_OBS): Add extension.o.
14766 * extension.h: New file.
14767 * extension-priv.h: New file.
14768 * extension.c: New file.
14770 * python/python-internal.h: #include "extension.h".
14771 (gdbpy_auto_load_enabled): Declare.
14772 (gdbpy_apply_val_pretty_printer): Declare.
14773 (gdbpy_apply_frame_filter): Declare.
14774 (gdbpy_preserve_values): Declare.
14775 (gdbpy_breakpoint_cond_says_stop): Declare.
14776 (gdbpy_breakpoint_has_cond): Declare.
14777 (void source_python_script_for_objfile): Delete.
14778 * python/python.c: #include "extension-priv.h".
14779 Delete inclusion of "observer.h".
14780 (extension_language_python): Moved here and renamed from
14781 script_language_python in py-auto-load.c.
14782 Redefined to be of type extension_language_defn.
14783 (python_extension_script_ops): New global.
14784 (python_extension_ops): New global.
14785 (struct python_env): New member previous_active.
14786 (restore_python_env): Call restore_active_ext_lang.
14787 (ensure_python_env): Call set_active_ext_lang.
14788 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14790 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14792 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14794 (gdbpy_eval_from_control_command): Renamed from
14795 eval_python_from_control_command, made static. New arg extlang.
14796 (gdbpy_source_script) Renamed from source_python_script, made static.
14798 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14799 result to int. New arg extlang.
14800 (gdbpy_source_objfile_script): Renamed from
14801 source_python_script_for_objfile, made static. New arg extlang.
14802 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14803 static. New args extlang, extlang_printers. Change result type to
14805 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14806 static. New arg extlang. Rename arg printers to extlang_printers
14807 and change type to ext_lang_type_printers *.
14808 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14809 static. Replace argument arg with extlang, extlang_printers.
14810 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14811 (!HAVE_PYTHON, source_python_script): Delete.
14812 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14813 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14814 (!HAVE_PYTHON, start_type_printers): Delete.
14815 (!HAVE_PYTHON, apply_type_printers): Delete.
14816 (!HAVE_PYTHON, free_type_printers): Delete.
14817 (_initialize_python): Delete call to observer_attach_before_prompt.
14818 (finalize_python): Set/restore active extension language.
14819 (gdbpy_finish_initialization) Renamed from
14820 finish_python_initialization, made static. New arg extlang.
14821 (gdbpy_initialized): New function.
14822 * python/python.h: #include "extension.h". Delete #include
14823 "value.h", "mi/mi-cmds.h".
14824 (extension_language_python): Declare.
14825 (GDBPY_AUTO_FILE_NAME): Delete.
14826 (enum py_bt_status): Moved to extension.h and renamed to
14827 ext_lang_bt_status.
14828 (enum frame_filter_flags): Moved to extension.h.
14829 (enum py_frame_args): Moved to extension.h and renamed to
14830 ext_lang_frame_args.
14831 (finish_python_initialization): Delete.
14832 (eval_python_from_control_command): Delete.
14833 (source_python_script): Delete.
14834 (apply_val_pretty_printer): Delete.
14835 (apply_frame_filter): Delete.
14836 (preserve_python_values): Delete.
14837 (gdbpy_script_language_defn): Delete.
14838 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14839 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14841 * auto-load.c: #include "extension.h".
14842 (GDB_AUTO_FILE_NAME): Delete.
14843 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14844 (script_language_gdb): Delete, moved to extension.c and renamed to
14845 extension_language_gdb.
14846 (source_gdb_script_for_objfile): Delete.
14847 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14848 (loaded_script): Change type of language member to
14849 struct extension_language_defn *.
14850 (init_loaded_scripts_info): Initialize
14851 unsupported_script_warning_printed.
14852 (maybe_add_script): Make static. Change type of language arg to
14853 struct extension_language_defn *.
14854 (clear_section_scripts): Reset unsupported_script_warning_printed.
14855 (auto_load_objfile_script_1): Rewrite to use extension language API.
14856 (auto_load_objfile_script): Make public. Remove support-compiled-in
14857 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14858 (source_section_scripts): Rewrite to use extension language API.
14859 (load_auto_scripts_for_objfile): Rewrite to use
14860 auto_load_scripts_for_objfile.
14861 (collect_matching_scripts_data): Change type of language member to
14862 struct extension_language_defn *.
14863 (auto_load_info_scripts): Change type of language arg to
14864 struct extension_language_defn *.
14865 (unsupported_script_warning_print): New function.
14866 (script_not_found_warning_print): Make static.
14867 (_initialize_auto_load): Rewrite construction of scripts-directory
14869 * auto-load.h (struct objfile): Add forward decl.
14870 (struct script_language): Delete.
14871 (struct auto_load_pspace_info): Add forward decl.
14872 (struct extension_language_defn): Add forward decl.
14873 (maybe_add_script): Delete.
14874 (auto_load_objfile_script): Declare.
14875 (script_not_found_warning_print): Delete.
14876 (auto_load_info_scripts): Update prototype.
14877 (auto_load_gdb_scripts_enabled): Declare.
14878 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14879 auto_load_python_scripts_enabled and made public.
14880 (script_language_python): Delete, moved to python.c.
14881 (gdbpy_script_language_defn): Delete.
14882 (info_auto_load_python_scripts): Update to use
14883 extension_language_python.
14885 * breakpoint.c (condition_command): Replace call to
14886 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14887 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14888 with call to breakpoint_ext_lang_cond_says_stop.
14889 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14890 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14891 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14892 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14894 (local_setattro): Print name of extension language with existing
14897 * valprint.c (val_print, value_print): Update to call
14898 apply_ext_lang_val_pretty_printer.
14899 * cp-valprint.c (cp_print_value): Update call to
14900 apply_ext_lang_val_pretty_printer.
14901 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14902 (gdbpy_apply_val_pretty_printer): Renamed from
14903 apply_val_pretty_printer. New arg extlang.
14904 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14906 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14907 extension language API.
14908 * cli/cli-script.c (execute_control_command): Update to call
14909 eval_ext_lang_from_control_command.
14911 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14912 enum ext_lang_bt_status values. Update call to
14913 apply_ext_lang_frame_filter.
14914 (mi_cmd_stack_list_locals): Ditto.
14915 (mi_cmd_stack_list_args): Ditto.
14916 (mi_cmd_stack_list_variables): Ditto.
14917 * mi/mi-main.c: Delete #include "python/python-internal.h".
14918 Add #include "extension.h".
14919 (mi_cmd_list_features): Replace reference to python internal variable
14920 gdb_python_initialized with call to ext_lang_initialized_p.
14922 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14923 Update to use enum ext_lang_frame_args. Update to call
14924 apply_ext_lang_frame_filter.
14925 * python/py-framefilter.c (extract_sym): Update to use enum
14926 ext_lang_bt_status.
14927 (extract_value, py_print_type, py_print_value): Ditto.
14928 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14929 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14930 (py_print_frame): Ditto.
14931 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14932 New arg extlang. Update to use enum ext_lang_bt_status.
14934 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14935 finish_python_initialization. Replace with call to
14936 finish_ext_lang_initialization.
14938 * typeprint.c (do_free_global_table): Update to call
14939 free_ext_lang_type_printers.
14940 (create_global_typedef_table): Update to call
14941 start_ext_lang_type_printers.
14942 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14943 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14944 (type_print_options): Change type of global_printers from "void *"
14945 to "struct ext_lang_type_printers *".
14947 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14948 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14949 (gdbpy_preserve_values): Renamed from preserve_python_values.
14951 (!HAVE_PYTHON, preserve_python_values): Delete.
14953 * utils.c (quit_flag): Delete, moved to extension.c.
14954 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14957 * eval.c: Delete #include "python/python.h".
14958 * main.c: Delete #include "python/python.h".
14960 * defs.h: Update comment.
14962 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14966 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14968 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14971 2014-02-05 Yao Qi <yao@codesourcery.com>
14973 * remote.c (remote_pass_signals): Remove local 'buf' and use
14975 (remote_program_signals): Likewise.
14977 2014-02-05 Yao Qi <yao@codesourcery.com>
14979 * ctf.c: Include "inferior.h" and "gdbthread.h".
14980 (CTF_PID): A new macro.
14981 (ctf_open): Call inferior_appeared and add_thread_silent.
14982 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14983 (ctf_thread_alive): New function.
14984 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14986 2014-02-05 Yao Qi <yao@codesourcery.com>
14990 2013-05-24 Yao Qi <yao@codesourcery.com>
14992 * tracepoint.c (TFILE_PID): Remove.
14993 (tfile_open): Don't add thread and inferior.
14994 (tfile_close): Don't set 'inferior_ptid'. Don't call
14995 exit_inferior_silent.
14996 (tfile_thread_alive): Remove.
14997 (init_tfile_ops): Don't set field 'to_thread_alive' of
15000 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
15002 * remote.c (remote_start_remote): Call remote_check_symbols even
15003 if only symbol-file (not file) has been given.
15005 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15007 * gdbarch.sh (skip_entrypoint): New callback.
15008 * gdbarch.c, gdbarch.h: Regenerate.
15009 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
15010 * infrun.c (fill_in_stop_func): Likewise.
15011 * ppc-linux-tdep.c: Include "elf/ppc64.h".
15012 (ppc_elfv2_elf_make_msymbol_special): New function.
15013 (ppc_elfv2_skip_entrypoint): Likewise.
15014 (ppc_linux_init_abi): Install them for ELFv2.
15016 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15018 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15019 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15020 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15021 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
15022 structures returned in GPRs.
15024 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15026 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15027 offset to the stack parameter list for the ELFv2 ABI.
15029 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15031 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15032 set_gdbarch_convert_from_func_ptr_addr and
15033 set_gdbarch_elf_make_msymbol_special for ELFv1.
15034 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15035 function descriptors on ELFv1.
15036 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
15037 set up r12 at function entry.
15039 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15041 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15042 (struct gdbarch_tdep): New member elf_abi.
15044 * rs6000-tdep.c: Include "elf/ppc64.h".
15045 (rs6000_gdbarch_init): Detect ELF ABI version.
15047 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15049 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15050 within a register pair holding a DFP 128-bit value on little-endian.
15051 (ppc64_sysv_abi_return_value_base): Likewise.
15052 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15053 (dfp_pseudo_register_write): Likewise.
15055 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15057 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15058 offset on little-endian when passing _Decimal32.
15059 (ppc64_sysv_abi_return_value_base): Likewise for return values.
15061 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15063 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15064 of the overlapped FP register within the VSX register on little-
15066 (efpr_pseudo_register_write): Likewise.
15068 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15070 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15071 offset on little-endian when passing small structures.
15073 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15075 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15076 (struct ppc64_sysv_argpos): New data structure.
15077 (ppc64_sysv_abi_push_float): Remove.
15078 (ppc64_sysv_abi_push_val): New function.
15079 (ppc64_sysv_abi_push_integer): Likewise.
15080 (ppc64_sysv_abi_push_freg): Likewise.
15081 (ppc64_sysv_abi_push_vreg): Likewise.
15082 (ppc64_sysv_abi_push_param): Likewise.
15083 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15084 (ppc64_sysv_abi_return_value_base): New function.
15085 (ppc64_sysv_abi_return_value): Refactor to use it.
15087 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15089 * NEWS: Document new target powerpc64le-*-linux*.
15091 2014-02-04 Mark Kettenis <kettenis@gnu.org>
15093 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15094 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15096 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15097 register set used in ELF core dumps. Add floating-point register set.
15099 2014-02-03 Kevin Buettner <kevinb@redhat.com>
15101 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15102 dwarf2_to_gdb[] table using symbolic constants. Adjust
15103 penultimate entry from number representing the PC register
15104 to symbolic constant representing the MDR register. Add
15105 constant for the PC register to the end of the table.
15107 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15109 * bsd-kvm.c: Include <sys/param.h>
15111 2014-02-03 Mark Kettenis <kettenis@gnu.org>
15113 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15115 2014-01-31 Joel Brobecker <brobecker@adacore.com>
15117 * ada-lang.h (clear_ada_sym_cache): Delete.
15119 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15121 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15123 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
15125 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15126 the sigreturn register save area only if the syscall is
15129 2014-01-29 Joel Brobecker <brobecker@adacore.com>
15131 * valops.c (value_slice): Minor reformatting.
15133 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
15135 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15137 2014-01-28 Joel Brobecker <brobecker@adacore.com>
15139 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15140 New static globals.
15141 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15142 (ada_ignore_descriptive_types_p): New static global.
15143 (find_parallel_type_by_descriptive_type): Return immediately
15144 if ada_ignore_descriptive_types_p is set.
15145 (_initialize_ada_language): Register new commands "maintenance
15146 set ada", "maintenance show ada", "maintenance set ada
15147 ignore-descriptive-types" and "maintenance show ada
15148 ignore-descriptive-types".
15149 * NEWS: Add entry for new "maint ada set/show
15150 ignore-descriptive-types" commands.
15152 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
15154 * record-btrace.c (record_btrace_close): Call btrace_teardown
15157 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15159 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15162 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15164 * ada-typeprint (type_is_full_subrange_of_target_type):
15166 (print_range): Add parameter bounds_prefered_p. If not set,
15167 try printing range types using the name of their base type.
15168 (print_range_type): Add parameter bounds_prefered_p.
15169 Use it in call to print_range.
15170 (print_array_type, ada_print_type): Update calls to print_range
15171 and print_range_type.
15173 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15175 * ada-typeprint.c (print_array_type, print_choices, print_range)
15176 (print_range_bound, print_dynamic_range_bound, print_range_type):
15177 Remove declaration.
15179 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15181 * ada-typeprint.c (print_range): Add missing empty line
15182 after local declaration.
15184 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15186 * ada-valprint.c (print_optional_low_bound): Get index_type's
15187 target type for as long as it is a TYPE_CODE_RANGE.
15189 2014-01-27 Joel Brobecker <brobecker@adacore.com>
15191 * procfs.c (procfs_make_note_section): Remove assertion and
15192 associated comment.
15194 2014-01-24 Yao Qi <yao@codesourcery.com>
15196 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15197 * corelow.c (get_core_siginfo): Likewise.
15199 2014-01-24 Yao Qi <yao@codesourcery.com>
15201 * remote.c (remote_write_bytes_aux): Change type of 'len' to
15202 ULONGEST. Don't check 'len' is negative.
15203 (remote_write_bytes): Change type of 'len' to ULONGEST.
15205 2014-01-23 Tom Tromey <tromey@redhat.com>
15208 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15209 Handle exception from frame.block.
15210 (FrameVars.fetch_frame_locals): Likewise.
15212 2014-01-23 Tom Tromey <tromey@redhat.com>
15215 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15216 on a NULL pointer. Move "goto error" to correct place.
15218 2014-01-23 Tom Tromey <tromey@redhat.com>
15221 * python/py-framefilter.c (apply_frame_filter): Call
15222 ensure_python_env after computing gdbarch.
15224 2014-01-23 Yao Qi <yao@codesourcery.com>
15226 * target.c (raw_memory_xfer_partial): Change argument type
15227 from void * to gdb_byte *.
15228 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15230 2014-01-22 Doug Evans <dje@google.com>
15232 New gdbserver option --debug-format=timestamp.
15233 * NEWS: Mention it.
15235 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
15237 * syscalls/s390x-linux.xml: New file.
15238 * syscalls/s390-linux.xml: New file.
15239 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15240 (XML_SYSCALL_FILENAME_S390X): Likewise.
15241 (op_svc): New enum value for SVC opcode.
15242 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15243 (s390_linux_get_syscall_number): New function.
15244 (s390_gdbarch_init): Register '*get_syscall_number' and the
15245 syscall xml file name.
15246 * data-directory/Makefile.in (SYSCALLS_FILES): Add
15247 "s390-linux.xml" and "s390x-linux.xml".
15248 * NEWS: Announce new feature.
15250 2014-01-22 Baruch Siach <baruch@tkos.co.il>
15252 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15254 2014-01-22 Pedro Alves <palves@redhat.com>
15256 * xtensa-config.c: Include defs.h.
15258 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15260 * common/common-utils.h: Add "ARI:" comment beside __func__
15263 2014-01-22 Joel Brobecker <brobecker@adacore.com>
15265 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15266 documentation a bit.
15268 2014-01-21 Roland McGrath <mcgrathr@google.com>
15270 * configure.ac: Call AM_PROG_INSTALL_STRIP.
15271 * configure: Regenerate.
15272 * aclocal.m4: Regenerate.
15273 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15274 New substituted variables.
15275 (install-strip): New target.
15276 (INSTALL_SCRIPT): New substituted variable.
15277 (FLAGS_TO_PASS): Add it.
15278 (install-only): Use $(INSTALL_SCRIPT) rather than
15279 $(INSTALL_PROGRAM) for gcore.
15281 2014-01-20 Tom Tromey <tromey@redhat.com>
15283 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15286 2014-01-20 Tom Tromey <tromey@redhat.com>
15288 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15289 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15290 (deprecated_cmd_warning, complete_on_cmdlist): Update.
15291 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15292 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15293 (struct cmd_list_element) <flags>: Remove.
15294 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15295 doc_allocated>: New fields.
15296 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15298 * maint.c (maintenance_do_deprecate): Update.
15299 * top.c (execute_command): Update.
15301 2014-01-20 Baruch Siach <baruch@tkos.co.il>
15303 * xtensa-linux-nat.c: Include asm/ptrace.h.
15305 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15307 * Makefile.in (SFILES): Add d-support.c.
15308 (COMMON_OBS): Add d-support.o.
15309 * d-lang.h (d_parse_symbol): Add comment, now defined in
15311 * d-lang.c (parse_call_convention)
15312 (parse_attributes, parse_function_types)
15313 (parse_function_args, parse_type, parse_identifier)
15314 (call_convention_p, d_parse_symbol): Move functions to ...
15315 * d-support.c: ... New file.
15317 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15319 * d-lang.h (d_parse_symbol): Add declaration.
15320 * d-lang.c (extract_identifiers)
15321 (extract_type_info): Remove functions.
15322 (parse_call_convention, parse_attributes)
15323 (parse_function_types, parse_function_args)
15324 (parse_type, parse_identifier, call_convention_p)
15325 (d_parse_symbol): New functions.
15326 (d_demangle): Use d_parse_symbol to demangle D symbols.
15328 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15330 * d-lang.h (struct builtin_d_type): New data type.
15331 (builtin_d_type): Add declaration.
15332 * d-lang.c (d_language_arch_info, build_d_types)
15333 (builtin_d_type): New functions.
15334 (enum d_primitive_types): New data type.
15335 (d_language_defn): Change c_language_arch_info to
15336 d_language_arch_info.
15337 (d_type_data): New static variable.
15338 (_initialize_d_language): Initialize d_type_data.
15340 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15342 * d-lang.h (d_main_name): Add declaration.
15343 * d-lang.c (d_main_name): New function.
15344 * symtab.c (find_main_name): Add call to d_main_name.
15346 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15348 * d-lang.c (d_language_defn): Change macro_expansion_c to
15349 macro_expansion_no.
15351 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
15353 * MAINTAINERS: Add myself as a write-after-approval maintainer.
15355 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15357 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15358 gdb_exception" declaration.
15359 * remote.c (getpkt_or_notif_sane): Likewise.
15361 2014-01-17 Doug Evans <dje@google.com>
15363 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15364 function, contents of dirnames_to_char_ptr_vec_append moved here.
15365 (delim_string_to_char_ptr_vec): New function.
15366 (dirnames_to_char_ptr_vec_append): Rewrite.
15367 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15369 2014-01-17 Doug Evans <dje@google.com>
15371 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15373 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15374 #include "common-utils.h".
15375 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15376 * common/vec.h (VEC_ASSERT_PASS): Update.
15377 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15378 (MACH_CHECK_ERROR): Update.
15380 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15382 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15384 * gdbarch.h: Regenerate.
15386 2014-01-16 Tom Tromey <tromey@redhat.com>
15388 * value.c (struct value) <regnum>: Move earlier.
15390 2014-01-16 Tom Tromey <tromey@redhat.com>
15392 * remote.c (extended_remote_create_inferior): Rename from
15393 extended_remote_create_inferior_1. Add "ops" argument. Remove
15394 old implementation.
15396 2014-01-16 Pedro Alves <palves@redhat.com>
15398 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15399 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15402 2014-01-16 Doug Evans <dje@google.com>
15404 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15406 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15408 * btrace.h (btrace_thread_flag): New.
15409 (struct btrace_thread_info) <flags>: New.
15410 * record-btrace.c (record_btrace_resume_thread)
15411 (record_btrace_find_thread_to_move, btrace_step_no_history)
15412 (btrace_step_stopped, record_btrace_start_replaying)
15413 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15414 (record_btrace_find_resume_thread): New.
15415 (record_btrace_resume, record_btrace_wait): Extend.
15416 (record_btrace_can_execute_reverse): New.
15417 (record_btrace_open): Fail in non-stop mode.
15418 (record_btrace_set_replay): Split into this, ...
15419 (record_btrace_stop_replaying): ... this, ...
15420 (record_btrace_clear_histories): ... and this.
15421 (init_record_btrace_ops): Init to_can_execute_reverse.
15422 * NEWS: Announce it.
15424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15426 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15427 (forward_target_decr_pc_after_break)
15428 (target_decr_pc_after_break): New.
15429 * target.c (forward_target_decr_pc_after_break)
15430 (target_decr_pc_after_break): New.
15431 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15432 instead of gdbarch_decr_pc_after_break.
15433 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15434 instead of gdbarch_decr_pc_after_break.
15435 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15436 instead of gdbarch_decr_pc_after_break.
15437 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15438 instead of gdbarch_decr_pc_after_break.
15439 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15440 instead of gdbarch_decr_pc_after_break.
15441 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15442 instead of gdbarch_decr_pc_after_break.
15444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15446 * btrace.c: Include regcache.h.
15447 (btrace_add_pc): New.
15448 (btrace_enable): Call btrace_add_pc.
15449 (btrace_is_empty): New.
15450 * btrace.h (btrace_is_empty): New.
15451 * record-btrace.c (require_btrace, record_btrace_info): Call
15454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15456 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15457 Support delta reads.
15458 (linux_disable_btrace): Change return type.
15459 * common/linux-btrace.h (linux_read_btrace): Change parameters
15460 and return type to allow error reporting. Update users.
15461 (linux_disable_btrace): Change return type. Update users.
15462 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15464 (btrace_error): New.
15465 (btrace_block) <begin>: Comment on BEGIN == 0.
15466 * btrace.c (btrace_compute_ftrace): Start from the end of
15468 (btrace_stitch_trace, btrace_clear_history): New.
15469 (btrace_fetch): Read delta trace, return if replaying.
15470 (btrace_clear): Move clear history code to btrace_clear_history.
15471 (parse_xml_btrace): Throw an error if parsing failed.
15472 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15473 and return type to allow error reporting.
15474 (target_read_btrace): Change parameters and return type to allow
15476 * target.c (target_read_btrace): Update.
15477 * remote.c (remote_read_btrace): Support delta reads. Pass
15479 * NEWS: Announce it.
15481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15483 * record.h (record_btrace_frame_unwind)
15484 (record_btrace_tailcall_frame_unwind): New declarations.
15485 * dwarf2-frame: Include record.h
15486 (dwarf2_frame_cfa): Throw an error for btrace frames.
15487 * record-btrace.c: Include hashtab.h.
15488 (btrace_get_bfun_name): New.
15489 (btrace_call_history): Call btrace_get_bfun_name.
15490 (struct btrace_frame_cache): New.
15492 (bfcache_hash, bfcache_eq, bfcache_new): New.
15493 (btrace_get_frame_function): New.
15494 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15495 (record_btrace_frame_this_id): Compute own id.
15496 (record_btrace_frame_prev_register): Provide PC, throw_error
15497 for all other registers.
15498 (record_btrace_frame_sniffer): Detect btrace frames.
15499 (record_btrace_tailcall_frame_sniffer): New.
15500 (record_btrace_frame_dealloc_cache): New.
15501 (record_btrace_frame_unwind): Add new functions.
15502 (record_btrace_tailcall_frame_unwind): New.
15503 (_initialize_record_btrace): Allocate cache.
15504 * btrace.c (btrace_clear): Call reinit_frame_cache.
15505 * NEWS: Announce it.
15507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15509 * record-btrace.c (record_btrace_set_replay)
15510 (record_btrace_goto_begin, record_btrace_goto_end)
15511 (record_btrace_goto): New.
15512 (init_record_btrace_ops): Initialize them.
15513 * NEWS: Announce it.
15515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15517 * record-btrace.c (record_btrace_find_new_threads)
15518 (record_btrace_thread_alive): New.
15519 (init_record_btrace_ops): Initialize to_find_new_threads and
15522 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15524 * record-btrace.c (record_btrace_resume): New.
15525 (record_btrace_wait): New.
15526 (init_record_btrace_ops): Initialize to_wait and to_resume.
15528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15530 * record-btrace.c (record_btrace_xfer_partial)
15531 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15532 (record_btrace_allow_memory_access): New.
15533 (init_record_btrace_ops): Initialize new methods.
15534 * target.c (raw_memory_xfer_partial): Bail out if target reports
15535 that this memory is not available.
15537 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15539 * target.h (target_ops) <to_insert_breakpoint>
15540 <to_remove_breakpoint>: Add target_ops parameter.
15541 (forward_target_insert_breakpoint): New.
15542 (forward_target_remove_breakpoint): New.
15543 (memory_remove_breakpoint, memory_insert_breakpoint):
15544 Add target_ops parameter.
15545 * target.c (target_insert_breakpoint): Split into this and ...
15546 (forward_target_insert_breakpoint): ... this.
15547 (target_remove_breakpoint): Split into this and ...
15548 (forward_target_remove_breakpoint): ... this.
15549 (debug_to_insert_breakpoint): Add target_ops parameter.
15550 Call forward_target_insert_breakpoint.
15551 (debug_to_remove_breakpoint): Add target_ops parameter.
15552 Call forward_target_remove_breakpoint.
15553 (update_current_target): Do not inherit or default to_insert_breakpoint
15554 and to_remove_breakpoint.
15555 * corelow.c (ignore): Add target_ops parameter.
15556 * exec.c (ignore): Add target_ops parameter.
15557 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15558 Add target_ops parameter.
15559 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15560 Add target_ops parameter.
15561 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15562 Add target_ops parameter.
15563 * record-full.c (record_full_beneath_to_insert_breakpoint)
15564 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15565 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15566 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15567 (record_full_core_remove_breakpoint): Add target_ops parameter.
15569 (record_full_beneath_to_insert_breakpoint_ops)
15570 (record_full_beneath_to_remove_breakpoint_ops)
15571 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15572 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15573 tmp_to_remove_breakpoint_ops,
15574 record_full_beneath_to_insert_breakpoint_ops, and
15575 record_full_beneath_to_remove_breakpoint_ops.
15576 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15577 (m32r_remove_breakpoint): Add target_ops parameter.
15578 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15579 Add target_ops parameter.
15580 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15581 Add target_ops parameter.
15583 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15584 Markus Metzger <markus.t.metzger@intel.com>
15586 * record-btrace.c: Include frame-unwind.h.
15587 (record_btrace_frame_unwind_stop_reason)
15588 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15589 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15591 (init_record_btrace_ops): Install it.
15593 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15595 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15598 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15600 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15603 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15605 * frame-unwind.c: Include target.h.
15606 (frame_unwind_try_unwinder): New function with code from ...
15607 (frame_unwind_find_by_frame): ... here. New variable
15608 unwinder_from_target, call also target_get_unwinder)
15609 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15610 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15611 * target.h (struct target_ops): New fields to_get_unwinder and
15612 to_get_tailcall_unwinder.
15613 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15617 * record-btrace.c (record_btrace_fetch_registers)
15618 (record_btrace_store_registers)
15619 (record_btrace_to_prepare_to_store): New.
15620 (init_record_btrace_ops): Add the above.
15622 2014-01-16 Tom Tromey <tromey@redhat.com>
15624 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15625 * target.h (struct target_ops) <to_prepare_to_store>: Add
15627 (target_prepare_to_store): Add argument.
15628 * target.c (debug_to_prepare_to_store): Add argument.
15629 (update_current_target): Update.
15630 * remote.c (remote_prepare_to_store): Add 'self' argument.
15631 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15632 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15633 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15634 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15636 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15637 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15638 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15639 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15640 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15644 * btrace.h (replay) <replay>: New.
15645 (btrace_is_replaying): New.
15646 * btrace.c (btrace_clear): Free replay iterator.
15647 (btrace_is_replaying): New.
15648 * record-btrace.c (record_btrace_is_replaying): New.
15649 (record_btrace_info): Print insn number if replaying.
15650 (record_btrace_insn_history): Start at replay position.
15651 (record_btrace_call_history): Start at replay position.
15652 (init_record_btrace_ops): Init to_record_is_replaying.
15654 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15656 * record-btrace.c (record_btrace_insn_history_range): Include
15658 (record_btrace_insn_history_from): Adjust range.
15659 (record_btrace_call_history_range): Include
15661 (record_btrace_call_history_from): Adjust range.
15662 * NEWS: Announce changes.
15664 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15666 * record.h (enum record_print_flag)
15667 <record_print_indent_calls>: New.
15668 * record.c (get_call_history_modifiers): Recognize /c modifier.
15669 (_initialize_record): Document /c modifier.
15670 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15671 Reorder fields. Optionally indent the function name. Update
15673 * NEWS: Announce changes.
15675 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15677 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15681 * btrace.c (ftrace_new_function): Start counting at one.
15682 * record-btrace.c (record_btrace_info): Adjust number of calls
15684 * NEWS: Announce it.
15686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15688 * record-btrace.c (btrace_call_history_insn_range): Print
15689 insn range as [begin, end].
15691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15693 * btrace.h (struct btrace_func_link): New.
15694 (enum btrace_function_flag): New.
15695 (struct btrace_inst): Rename to ...
15696 (struct btrace_insn): ...this. Update all users.
15697 (struct btrace_func) <ibegin, iend>: Remove.
15698 (struct btrace_func_link): New.
15699 (struct btrace_func): Rename to ...
15700 (struct btrace_function): ...this. Update all users.
15701 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15702 (number, level, flags>: New.
15703 (struct btrace_insn_iterator): Rename to ...
15704 (struct btrace_insn_history): ...this.
15706 (struct btrace_insn_iterator, btrace_call_iterator): New.
15707 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15708 (struct btrace_target_info) <begin, end, level>
15709 <insn_history, call_history>: New.
15710 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15711 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15712 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15713 (btrace_call_number, btrace_call_begin, btrace_call_end)
15714 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15715 (btrace_find_function_by_number, btrace_set_insn_history)
15716 (btrace_set_call_history): New.
15717 * btrace.c (btrace_init_insn_iterator)
15718 (btrace_init_func_iterator, compute_itrace): Remove.
15719 (ftrace_print_function_name, ftrace_print_filename)
15720 (ftrace_skip_file): Change
15721 parameter to const.
15722 (ftrace_init_func): Remove.
15723 (ftrace_debug): Use new btrace_function fields.
15724 (ftrace_function_switched): Also consider gaining and
15725 losing symbol information).
15726 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15727 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15728 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15730 (ftrace_new_function): Move. Remove debug print.
15731 (ftrace_update_lines, ftrace_update_insns): New.
15732 (ftrace_update_function): Check for call, ret, and jump.
15733 (compute_ftrace): Renamed to ...
15734 (btrace_compute_ftrace): ...this. Rewritten to compute call
15736 (btrace_fetch, btrace_clear): Updated.
15737 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15738 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15739 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15740 (btrace_call_number, btrace_call_begin, btrace_call_end)
15741 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15742 (btrace_find_function_by_number, btrace_set_insn_history)
15743 (btrace_set_call_history): New.
15744 * record-btrace.c (require_btrace): Use new btrace thread
15746 (record_btrace_info, btrace_insn_history)
15747 (record_btrace_insn_history, record_btrace_insn_history_range):
15748 Use new btrace thread info fields and new iterator.
15749 (btrace_func_history_src_line): Rename to ...
15750 (btrace_call_history_src_line): ...this. Use new btrace
15751 thread info fields.
15752 (btrace_func_history): Rename to ...
15753 (btrace_call_history): ...this. Use new btrace thread info
15754 fields and new iterator.
15755 (record_btrace_call_history, record_btrace_call_history_range):
15756 Use new btrace thread info fields and new iterator.
15758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15760 * frame.h (frame_id_build_unavailable_stack_special): New.
15761 * frame.c (frame_id_build_unavailable_stack_special): New.
15763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15765 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15766 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15767 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15769 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15770 (i386_insn_is_jump, i386_jmp_p): New.
15771 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15772 insn_is_jump to gdbarch.
15773 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15774 * gdbarch.h: Regenerated.
15775 * gdbarch.c: Regenerated.
15776 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15777 (default_insn_is_jump): New.
15778 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15779 (default_insn_is_jump): New.
15781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15783 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15785 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15786 (btrace_read_type) <btrace_read_new>: Change to ...
15787 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15791 * common/linux-btrace.c (linux_read_btrace): Free trace from
15792 previous iteration.
15794 2014-01-15 Doug Evans <dje@google.com>
15796 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15799 2014-01-15 Tom Tromey <tromey@redhat.com>
15801 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15802 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15803 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15804 (set_objfile_main_name): New function.
15805 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15806 language_of_main>: New fields.
15807 (set_objfile_main_name): Declare.
15808 * symtab.c (find_main_name): Loop over objfiles to find the main
15810 (set_main_name): Now static.
15811 (get_main_info): Add comment.
15812 * symtab.h (set_main_name): Don't declare.
15814 2014-01-15 Tom Tromey <tromey@redhat.com>
15816 * symtab.c (main_progspace_key): New global.
15817 (struct main_info): New.
15818 (name_of_main, language_of_main): Remove.
15819 (get_main_info, main_info_cleanup): New function.
15820 (set_main_name, main_name, main_language): Use get_main_info.
15821 (_initialize_symtab): Initialize main_progspace_key.
15823 2014-01-15 Tom Tromey <tromey@redhat.com>
15825 * dbxread.c (process_one_symbol): Update.
15826 * dwarf2read.c (read_partial_die): Update.
15827 * symfile.c (set_initial_language): Call main_language.
15828 * symtab.c (language_of_main): Now static.
15829 (set_main_name): Add 'lang' parameter.
15830 (find_main_name): Update.
15831 (main_language): New function.
15832 (symtab_observer_executable_changed): Update.
15833 * symtab.h (set_main_name): Update.
15834 (language_of_main): Remove.
15835 (main_language): Declare.
15837 2014-01-15 Tom Tromey <tromey@redhat.com>
15839 * symfile.c (init_entry_point_info): Use new "initialized" field.
15841 * objfiles.h (struct entry_point) <initialized>: New field.
15842 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15843 (struct objfile) <ei>: ...here. Remove.
15844 * objfiles.c (entry_point_address_query): Update.
15846 2014-01-15 Tom Tromey <tromey@redhat.com>
15848 * objfiles.c (entry_point_address_query): Relocate entry point
15850 (objfile_relocate1): Do not relocate entry point address.
15851 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15852 <the_bfd_section_index>: New field.
15853 * symfile.c (init_entry_point_info): Find the entry point's
15856 2014-01-15 Tom Tromey <tromey@redhat.com>
15858 * solib-frv.c (enable_break): Use entry_point_address_query.
15860 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15862 * NEWS: Add note on improved process record-replay on
15863 arm*-linux* targets.
15865 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15867 * arm-tdep.c (enum arm_record_result): New enum.
15868 (arm_record_unsupported_insn): New function.
15869 (arm_record_coproc_data_proc): Removed.
15870 (thumb2_record_ld_st_multiple): New function.
15871 (thumb2_record_ld_st_dual_ex_tbb): New function.
15872 (thumb2_record_data_proc_sreg_mimm): New function.
15873 (thumb2_record_ps_dest_generic): New function.
15874 (thumb2_record_branch_misc_cntrl): New function.
15875 (thumb2_record_str_single_data): New function.
15876 (thumb2_record_ld_mem_hints): New function.
15877 (thumb2_record_ld_word): New function.
15878 (thumb2_record_lmul_lmla_div): New function.
15879 (thumb2_record_decode_insn_handler): New function.
15880 (decode_insn): Add thumb32 instruction handlers.
15882 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15884 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15885 (struct arm_linux_record_tdep): Declare.
15886 (arm_canonicalize_syscall): New function.
15887 (arm_all_but_pc_registers_record): New function.
15888 (arm_linux_syscall_record): New function.
15889 (arm_linux_init_abi): Add syscall recording constructs.
15890 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15891 decoding. (arm_record_coproc_data_proc): Update arm syscall
15893 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15894 <arm_syscall_record>: New field.
15895 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15898 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15900 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15901 register for push instruction recording.
15903 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15905 * arm-tdep.c (thumb_record_misc): Update to correct logical
15906 error while recording ldm, ldmia and pop instructions.
15908 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15910 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15912 2014-01-15 Pedro Alves <palves@redhat.com>
15914 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15915 (go32_resume, go32_fetch_registers, store_register)
15916 (go32_store_registers, go32_prepare_to_store)
15917 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15918 (go32_create_inferior, go32_can_run, go32_terminal_init)
15919 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15922 2014-01-15 Tom Tromey <tromey@redhat.com>
15924 * target.h (async_callback_ftype): New typedef.
15925 (struct target_ops) <to_async>: Use it.
15927 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15929 * python/py-value.c (get_field_type): Remove unnecessary curly
15930 braces for single-statement if block.
15932 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15934 * python/py-type.c (convert_field): Add missing empty line
15935 after declarations.
15937 2014-01-14 Doug Evans <dje@google.com>
15939 * symfile.h (expand_symtabs_matching): Renamed from
15940 expand_partial_symbol_names. Update prototype.
15941 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15942 * symfile.c (expand_symtabs_matching): Renamed from
15943 expand_partial_symbol_names. New args file_matcher, kind.
15944 Rename arg fun to symbol_matcher.
15945 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15946 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15947 ada_expand_partial_symbol_name.
15948 (ada_make_symbol_completion_list): Update to call
15949 expand_symtabs_matching.
15950 (ada_add_global_exceptions): Call expand_symtabs_matching.
15951 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15952 call map_symbol_filenames.
15953 * symtab.c (sources_info): Update to call map_symbol_filenames.
15954 (search_symbols): Call expand_symtabs_matching.
15955 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15956 (default_make_symbol_completion_list_break_on): Update to call
15957 expand_symtabs_matching.
15958 (make_source_files_completion_list): Update to call
15959 map_symbol_filenames.
15961 2014-01-14 Doug Evans <dje@google.com>
15963 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15964 (expand_symtabs_symbol_matcher_ftype): New typedef.
15965 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15966 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15967 * symfile.c (expand_partial_symbol_names): Update to use
15968 expand_symtabs_symbol_matcher_ftype.
15969 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15970 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15971 Arg name_matcher renamed to symbol_matcher.
15972 * psymtab.c (recursively_search_psymtabs): Update to use
15973 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15975 (expand_symtabs_matching_via_partial): Update to use
15976 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15977 Arg name_matcher renamed to symbol_matcher.
15979 2014-01-14 Doug Evans <dje@google.com>
15981 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15982 (map_partial_symbol_filenames): Ditto.
15983 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15984 (map_partial_symbol_filenames): Ditto.
15985 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15986 (map_partial_symbol_filenames): Ditto.
15987 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15988 (map_partial_symbol_filenames): Ditto.
15989 * symtab.c: Delete #include "psymtab.h".
15991 2014-01-14 Pedro Alves <palves@redhat.com>
15992 Tom Tromey <tromey@redhat.com>
15994 * infrun.c (use_displaced_stepping): Use find_record_target
15995 instead of RECORD_IS_USED.
15996 (adjust_pc_after_break): Use record_full_is_used instead of
15998 * record-btrace.c (record_btrace_open): Call record_preopen
15999 instead of checking RECORD_IS_USED.
16000 * record-full.c (record_full_shortname)
16001 (record_full_core_shortname): New globals.
16002 (record_full_is_used): New function.
16003 (find_full_open): Call record_preopen instead of checking
16005 (init_record_full_ops): Set the target's shortname to
16006 record_full_shortname.
16007 (init_record_full_core_ops): Set the target's shortname to
16008 record_full_core_shortname.
16009 * record-full.h (record_full_is_used): Declare.
16010 * record.c (find_record_target): Make extern.
16011 (record_preopen): New function.
16012 * record.h (RECORD_IS_USED): Delete macro.
16013 (find_record_target, record_preopen): Declare functions.
16015 2014-01-14 Yao Qi <yao@codesourcery.com>
16017 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16018 'len''s type to ULONGEST.
16019 (core_xfer_shared_libraries_aix): Likewise.
16020 * gdbarch.c, gdbarch.h: Regenerated.
16021 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16022 Change type of 'len' to ULONGEST.
16023 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16024 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16026 2014-01-14 Yao Qi <yao@codesourcery.com>
16028 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16029 type of 'len' to ULONGEST.
16030 (linux_xfer_osdata_processgroups): Likewise.
16031 (linux_xfer_osdata_threads): Likewise.
16032 (linux_xfer_osdata_fds): Likewise.
16033 (linux_xfer_osdata_isockets): Likewise.
16034 (linux_xfer_osdata_shm): Likewise.
16035 (linux_xfer_osdata_sem): Likewise.
16036 (linux_xfer_osdata_msg): Likewise.
16037 (linux_common_xfer_osdata): Likewise.
16038 (struct osdata_type) <getter>: Likewise.
16039 * common/linux-osdata.h (linux_common_xfer_osdata): Update
16042 2014-01-14 Yao Qi <yao@codesourcery.com>
16044 * target.h (target_xfer_partial_ftype): Update.
16045 (struct target_ops) <to_xfer_partial>: Change 'len' type to
16047 * aix-thread.c (aix_thread_xfer_partial): Change type of
16048 argument 'len' to ULONGEST.
16049 * auxv.c (procfs_xfer_auxv): Likewise.
16050 (ld_so_xfer_auxv): Likewise.
16051 (memory_xfer_auxv): Likewise.
16052 * bfd-target.c (target_bfd_xfer_partial): Likewise.
16053 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16054 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16055 * corelow.c (core_xfer_partial): Likewise.
16056 * ctf.c (ctf_xfer_partial): Likewise.
16057 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
16059 (darwin_read_dyld_info): Likewise.
16060 (darwin_xfer_partial): Likewise.
16061 * exec.c (section_table_xfer_memory_partial): Likewise.
16062 (exec_xfer_partial): Likewise.
16063 * exec.h (section_table_xfer_memory_partial): Update
16065 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
16066 instead of plongest.
16067 (gnu_xfer_partial): Likewise.
16068 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16069 (ia64_hpux_xfer_solib_got): Likewise.
16070 (ia64_hpux_xfer_partial): Likewise.
16071 * ia64-linux-nat.c (ia64_linux_xfer_partial):
16072 * inf-ptrace.c (inf_ptrace_xfer_partial):
16073 * inf-ttrace.c (inf_ttrace_xfer_partial):
16074 * linux-nat.c (linux_xfer_siginfo): Likewise.
16075 (linux_nat_xfer_partial): Likewise.
16076 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16077 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16078 * monitor.c (monitor_xfer_memory): Likewise.
16079 (monitor_xfer_partial): Likewise.
16080 * procfs.c (procfs_xfer_partial): Likewise.
16081 * record-full.c (record_full_xfer_partial): Likewise.
16082 (record_full_core_xfer_partial): Likewise.
16083 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
16084 instead of plongest.
16085 (gdbsim_xfer_partial): Likewise.
16086 * remote.c (remote_xfer_partial): Likewise.
16087 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16088 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16090 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16091 (rs6000_xfer_shared_libraries): Likewise.
16092 * sol-thread.c (sol_thread_xfer_partial): Likewise.
16093 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16094 (sparc_xfer_partial): Likewise.
16095 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16096 (spu_xfer_partial): Likewise.
16097 * spu-multiarch.c (spu_xfer_partial): Likewise.
16098 * target.c (target_read_live_memory): Likewise.
16099 (memory_xfer_live_readonly_partial): Likewise.
16100 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16101 (target_xfer_partial, default_xfer_partial): Likewise.
16102 (current_xfer_partial): Likewise.
16103 * tracepoint.c (tfile_xfer_partial): Likewise.
16104 * windows-nat.c (windows_xfer_memory): Likewise. Call
16105 pulongest instead of plongest.
16106 (windows_xfer_partial): Likewise.
16107 (windows_xfer_shared_libraries): Likewise.
16109 2014-01-14 Yao Qi <yao@codesourcery.com>
16111 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16112 target_xfer_partial_ftype.
16114 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
16118 * valops.c (value_struct_elt_bitpos): New function
16119 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16120 object to 'None' if the field name is an empty string ("").
16121 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16122 attribute to look for a field when 'name' is 'None'.
16123 (get_field_type): New function
16125 2014-01-13 Doug Evans <dje@google.com>
16128 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16129 (try_open_dwop_file): Ditto.
16130 * gdb_bfd.c: #include "vec.h".
16131 (bfdp): New typedef.
16132 (struct gdb_bfd_data): New member included_bfds.
16133 (gdb_bfd_unref): Unref all included bfds.
16134 (gdb_bfd_record_inclusion): New function.
16135 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16137 2014-01-13 Tom Tromey <tromey@redhat.com>
16139 * gdbcore.h (deprecated_core_resize_section_table): Remove.
16141 2014-01-13 Tom Tromey <tromey@redhat.com>
16143 * defs.h (use_windows): Remove.
16144 * gdb.c (main): Update.
16145 * main.c (captured_main, gdb_main): Update.
16146 * main.h (struct captured_main_args) <use_windows>: Remove.
16147 * top.c (use_windows): Remove.
16149 2014-01-13 Tom Tromey <tromey@redhat.com>
16151 * defs.h (deprecated_flush_hook): Remove.
16153 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
16156 * linux-thread-db.c (try_thread_db_load): Add parameter
16157 check_auto_load_safe. Move here the file_is_auto_load_safe call.
16158 (try_thread_db_load_from_pdir_1): Move it there from here.
16159 (try_thread_db_load_from_sdir): Update caller.
16160 (try_thread_db_load_from_dir): Move it there from here.
16162 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
16164 * regformats/regdat.sh: Always rewrite the register file.
16166 2014-01-13 Pedro Alves <palves@redhat.com>
16168 * Makefile.in (CHECK_HEADERS): New variable.
16169 (check-headers:): New rule.
16171 2014-01-13 Tom Tromey <tromey@redhat.com>
16173 * cli/cli-setshow.c (do_set_command): Update.
16174 * defs.h (deprecated_set_hook): Remove.
16175 * top.c (deprecated_set_hook): Remove.
16177 2014-01-13 Pedro Alves <palves@redhat.com>
16179 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16180 the tracepoint if the PC is a pseudo-register.
16182 2014-01-13 Tom Tromey <tromey@redhat.com>
16184 * defs.h (XCALLOC): Remove.
16185 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16186 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16187 * dwarf2loc.c (allocate_piece_closure): Likewise.
16188 * elfread.c (elf_symfile_segments): Likewise.
16189 (elf_symfile_segments): Likewise.
16190 * gdbtypes.c (copy_type_recursive): Likewise.
16191 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16192 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16193 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16195 * mt-tdep.c (mt_gdbarch_init): Likewise.
16196 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16198 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16199 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16200 * registry.c (registry_alloc_data): Likewise.
16201 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16202 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16203 * serial.c (serial_fdopen_ops): Likewise.
16204 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16206 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16207 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16210 2014-01-13 Tom Tromey <tromey@redhat.com>
16212 * defs.h (XMALLOC): Remove.
16213 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16214 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16215 * cli-out.c (struct ui_out *): Likewise.
16216 * cli/cli-dump.c (add_dump_command): Likewise.
16217 (add_dump_command): Likewise.
16218 * complaints.c (get_complaints): Likewise.
16219 (find_complaint): Likewise.
16220 * dwarf2-frame.c (execute_cfa_program): Likewise.
16221 * dwarf2read.c (abbrev_table_read_table): Likewise.
16222 * gdbarch.sh: Likewise.
16223 * gdbarch.c: Rebuild.
16224 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16225 * interps.c (interp_new): Likewise.
16226 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16227 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16228 * mi/mi-console.c (mi_console_file_new): Likewise.
16229 * mi/mi-interp.c (mi_interpreter_init): Likewise.
16230 * mi/mi-out.c (mi_out_new): Likewise.
16231 * mi/mi-parse.c (mi_parse): Likewise.
16232 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16233 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16234 * observer.c (xalloc_observer_list_node): Likewise.
16235 * regcache.c (regcache_xmalloc_1): Likewise.
16236 * reggroups.c (reggroup_new): Likewise.
16237 (_initialize_reggroup): Likewise.
16238 * registry.c (register_data_with_cleanup): Likewise.
16239 * remote.c (remote_notif_stop_alloc_reply): Likewise.
16240 * ser-base.c (serial_ttystate): Likewise.
16241 * ser-mingw.c (make_pipe_state): Likewise.
16242 * ser-pipe.c (pipe_open): Likewise.
16243 * serial.c (serial_open): Likewise.
16244 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16245 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16246 (tui_alloc_win_info): Likewise.
16247 (tui_add_content_elements): Likewise.
16248 * tui/tui-file.c (tui_file_new): Likewise.
16249 * tui/tui-out.c (tui_out_new): Likewise.
16250 * ui-file.c (mem_file_new): Likewise.
16251 * ui-out.c (push_level): Likewise.
16252 (make_cleanup_ui_out_end): Likewise.
16253 (append_header_to_list): Likewise.
16254 (ui_out_new): Likewise.
16255 * user-regs.c (user_reg_add_builtin): Likewise.
16257 2014-01-13 Tom Tromey <tromey@redhat.com>
16259 * defs.h (XZALLOC): Remove.
16260 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16261 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16262 (get_ada_tasks_inferior_data): Likewise.
16263 * auto-load.c (get_auto_load_pspace_data): Likewise.
16264 * auxv.c (get_auxv_inferior_data): Likewise.
16265 * bfd-target.c (target_bfd_reopen): Likewise.
16266 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16267 (deprecated_insert_raw_breakpoint): Likewise.
16268 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16269 * corelow.c (core_open): Likewise.
16270 * darwin-nat.c (darwin_check_new_threads): Likewise.
16271 (darwin_attach_pid): Likewise.
16272 * dummy-frame.c (dummy_frame_push): Likewise.
16273 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16274 * dwarf2loc.c (allocate_piece_closure): Likewise.
16275 * elfread.c (elf_symfile_segments): Likewise.
16276 * eval.c (ptrmath_type_p): Likewise.
16277 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16278 * gdbtypes.c (alloc_type_arch): Likewise.
16279 (alloc_type_instance): Likewise.
16280 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16281 * inf-child.c (inf_child_can_use_agent): Likewise.
16282 * inflow.c (get_inflow_inferior_data): Likewise.
16283 * infrun.c (save_infcall_suspend_state): Likewise.
16284 * jit.c (jit_reader_load): Likewise.
16285 (get_jit_objfile_data): Likewise.
16286 (get_jit_program_space_data): Likewise.
16287 (jit_object_open_impl): Likewise.
16288 (jit_symtab_open_impl): Likewise.
16289 (jit_block_open_impl): Likewise.
16290 (jit_frame_sniffer): Likewise.
16291 * linux-fork.c (add_fork): Likewise.
16292 * maint.c (make_command_stats_cleanup): Likewise.
16293 * objfiles.c (get_objfile_pspace_data): Likewise.
16294 * opencl-lang.c (struct lval_closure): Likewise.
16295 * osdata.c (osdata_start_osdata): Likewise.
16296 * progspace.c (new_address_space): Likewise.
16297 (add_program_space): Likewise.
16298 * remote-sim.c (get_sim_inferior_data): Likewise.
16299 * sh-tdep.c (sh_gdbarch_init): Likewise.
16300 * skip.c (Ignore): Likewise.
16301 (skip_delete_command): Likewise.
16302 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16303 (library_list_start_library): Likewise.
16304 (solib_aix_current_sos): Likewise.
16305 * solib-darwin.c (get_darwin_info): Likewise.
16306 (darwin_current_sos): Likewise.
16307 * solib-dsbt.c (get_dsbt_info): Likewise.
16308 * solib-ia64-hpux.c (new_so_list): Likewise.
16309 (ia64_hpux_get_solib_linkage_addr): Likewise.
16310 * solib-spu.c (append_ocl_sos): Likewise.
16311 (spu_current_sos): Likewise.
16312 * solib-svr4.c (get_svr4_info): Likewise.
16313 (svr4_keep_data_in_core): Likewise.
16314 (library_list_start_library): Likewise.
16315 (svr4_default_sos): Likewise.
16316 (svr4_read_so_list): Likewise.
16317 * solib-target.c (library_list_start_library): Likewise.
16318 (solib_target_current_sos): Likewise.
16319 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16320 * symfile-debug.c (install_symfile_debug_logging): Likewise.
16321 * symfile.c (default_symfile_segments): Likewise.
16322 * target-descriptions.c (tdesc_data_init): Likewise.
16323 (tdesc_create_reg): Likewise.
16324 (struct tdesc_type *): Likewise.
16325 (tdesc_create_vector): Likewise.
16326 (tdesc_set_struct_size): Likewise.
16327 (struct tdesc_type *): Likewise.
16328 (tdesc_free_feature): Likewise.
16329 (tdesc_create_feature): Likewise.
16330 * windows-nat.c (windows_add_thread): Likewise.
16331 (windows_make_so): Likewise.
16332 * xml-support.c (gdb_xml_body_text): Likewise.
16333 (gdb_xml_create_parser_and_cleanup): Likewise.
16334 (xml_process_xincludes): Likewise.
16335 * xml-syscall.c (allocate_syscalls_info): Likewise.
16336 (syscall_create_syscall_desc): Likewise.
16338 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
16340 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16341 function, with code from i386_stap_parse_special_token.
16342 (i386_stap_parse_special_token_three_arg_disp): Likewise.
16343 (i386_stap_parse_special_token): Move code to the two functions
16344 above; simplify it.
16346 2014-01-09 Pedro Alves <palves@redhat.com>
16347 Hui Zhu <hui@codesourcery.com>
16350 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16351 bp_err_string. Don't mark the location shlib_disabled if the
16352 error thrown wasn't a generic or memory error. Catch errors
16353 thrown while inserting breakpoints in overlayed code. Output
16354 error message of software breakpoints.
16355 * remote.c (remote_insert_breakpoint): If this breakpoint has
16356 target-side commands but this stub doesn't support Z0 packets,
16357 throw NOT_SUPPORTED_ERROR error.
16358 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16359 * target.h (target_insert_breakpoint): Extend comment.
16360 (target_insert_hw_breakpoint): Add comment.
16362 2014-01-08 Pedro Alves <palves@redhat.com>
16364 * remote.c (remote_add_thread): Add threads silently if starting
16366 (remote_notice_new_inferior): If in all-stop, and starting up,
16367 don't call notice_new_inferior.
16368 (get_current_thread): New function, factored out from ...
16369 (add_current_inferior_and_thread): ... this. Adjust.
16370 (remote_start_remote) <all-stop>: Fetch the thread list. If we
16371 found any thread, then select the remote's current thread as GDB's
16372 current thread too.
16374 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16376 * NEWS: Create a new section for the next release branch.
16377 Rename the section of the current branch, now that it has
16380 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16382 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16383 * version.in: Bump version to 7.7.50.DATE-cvs.
16385 2014-01-08 Yao Qi <yao@codesourcery.com>
16387 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16388 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16389 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16391 2014-01-08 Yao Qi <yao@codesourcery.com>
16393 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16394 return value of bfd_get_filename to symbol_file_add_from_bfd.
16396 2014-01-08 Pierre Muller <muller@sourceware.org>
16399 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16400 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16401 to prim_record_mininal_symbol_and_info.
16402 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16403 in call to prim_record_minimal_symbol_and_info.
16404 (read_pe_exported_syms): Set index field of section_data.
16406 2014-01-07 Andrew Pinski <apinski@cavium.com>
16408 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16409 * features/aarch64.c: Regenerate.
16411 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16413 * target.c (return_null): Define.
16414 (update_current_target): Use it instead of return_zero for
16415 functions that return a pointer.
16417 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16419 * source.c (add_path): Fix check for duplicated paths in the previously
16422 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16424 * ada-lang.c: Remove duplicated include statements.
16425 * alphabsd-nat.c: Ditto.
16426 * amd64-darwin-tdep.c: Ditto.
16427 * amd64fbsd-nat.c: Ditto.
16428 * auto-load.c: Ditto.
16430 * breakpoint.c: Ditto.
16431 * dbxread.c: Ditto.
16432 * fork-child.c: Ditto.
16433 * gdb_usleep.c: Ditto.
16434 * i386-darwin-tdep.c: Ditto.
16435 * i386fbsd-nat.c: Ditto.
16437 * inferior.c: Ditto.
16438 * jv-lang.c: Ditto.
16439 * linux-nat.c: Ditto.
16440 * linux-tdep.c: Ditto.
16441 * m68kbsd-nat.c: Ditto.
16442 * m68klinux-nat.c: Ditto.
16443 * microblaze-tdep.c: Ditto.
16444 * mips-linux-tdep.c: Ditto.
16445 * mn10300-tdep.c: Ditto.
16446 * nto-tdep.c: Ditto.
16447 * opencl-lang.c: Ditto.
16449 * printcmd.c: Ditto.
16450 * regcache.c: Ditto.
16451 * remote-m32r-sdi.c: Ditto.
16453 * symfile.c: Ditto.
16455 * tilegx-linux-nat.c: Ditto.
16456 * tilegx-tdep.c: Ditto.
16457 * tracepoint.c: Ditto.
16459 * vaxbsd-nat.c: Ditto.
16460 * windows-nat.c: Ditto.
16461 * xtensa-tdep.c: Ditto.
16463 2014-01-07 Yao Qi <yao@codesourcery.com>
16465 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16467 2014-01-07 Yao Qi <yao@codesourcery.com>
16468 Joel Brobecker <brobecker@adacore.com>
16470 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16471 (pdc_write_regs): Likewise.
16472 (fetch_regs_kernel_thread): Likewise.
16473 (store_regs_kernel_thread): Likewise.
16475 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16477 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16478 tagged type objects to their actual type.
16480 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16482 * ada-valprint.c (print_field_values): Add "language" parameter.
16483 Update calls to print_field_values and print_variant_part.
16484 Pass new parameter "language" in call to val_print instead
16485 of "current_language". Replace call to ada_val_print by call
16487 (print_variant_part): Add "language" parameter.
16488 (ada_val_print_struct_union): Update call to print_field_values.
16490 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16492 * ada-valprint.c (ui_memcpy): Delete.
16493 (ada_print_floating): Update documentation. Add empty line
16494 between between function documentation and implementation.
16495 Delete variable "buffer". Use ui_file_xstrdup in place of
16496 ui_file_put. Minor adjustments following this change.
16498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16500 * ada-valprint.c (ada_val_print_string): New function,
16501 extracted from ada_val_print_array.
16502 (ada_val_print_array): Replace extracted code by call
16503 to ada_val_print_string followed by a return. Move
16504 "else" branch to the function's top block.
16506 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16508 * ada-valprint.c (ada_val_print_array): Move implementation
16509 down. Rename parameter "offset" and "val" into "offset_aligned"
16510 and "original_value" respectively. Add parameter "offset".
16512 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16514 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16515 re-organizing the code. Change the "???" message printed
16516 when target type is a TYPE_CODE_UNDEF into
16517 "<ref to undefined type>".
16519 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16521 * ada-valprint.c (print_record): Delete, implementation inlined...
16522 (ada_val_print_struct_union): ... here. Remove call to
16523 ada_check_typedef in inlined implementation.
16525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16527 * ada-valprint.c (ada_val_print_gnat_array): New function,
16528 extracted from ada_val_print_1;
16529 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16530 (ada_val_print_flt, ada_val_print_struct_union)
16531 (ada_val_print_ref): Likewise.
16532 (ada_val_print_1): Delete variables i and elttype.
16533 Replace extracted-out code by call to corresponding
16536 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16538 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16542 * ada-valprint.c (ada_val_print_1): Replace calls to
16543 ada_val_print_1 by calls to val_print.
16545 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16547 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16548 Update calls to self accordingly. Replace calls to c_val_print
16549 by calls to val_print.
16551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16553 * ada-valprint.c (print_record): Delete declaration.
16554 (adjust_type_signedness, ada_val_print_1): Likewise.
16555 (ada_val_print): Move function implementation down.
16556 (print_variant_part, print_field_values, print_record):
16557 Move function implementation up.
16559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16561 * python/py-type.c (typy_get_name): New function.
16562 (type_object_getset): Add entry for attribute "name".
16563 * NEWS: Add entry mentioning this new attribute.
16565 2014-01-07 Yao Qi <yao@codesourcery.com>
16567 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16570 2014-01-07 Yao Qi <yao@codesourcery.com>
16572 * gnu-nat.c (info_port_rights): Add qualifier const to
16575 2014-01-07 Yao Qi <yao@codesourcery.com>
16577 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16579 2014-01-07 Yao Qi <yao@codesourcery.com>
16581 * gnu-nat.c (make_inf) Update declaration.
16582 (make_inf): Make it static.
16583 (inf_set_traced): Likewise.
16584 (inf_port_to_thread, inf_task_died_status): Likewise.
16586 2014-01-07 Yao Qi <yao@codesourcery.com>
16588 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16590 2014-01-07 Yao Qi <yao@codesourcery.com>
16592 * gnu-nat.c (_initialize_gnu_nat): Declare.
16594 2014-01-07 Yao Qi <yao@codesourcery.com>
16596 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16598 (struct gdbarch_info) <byte_order>: Change type to
16600 <byte_order_for_code>: Likewise.
16601 * gdbarch.c, gdbarch.h: Regenerated.
16603 2014-01-06 Sasha Smundak <asmundak@google.com>
16605 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16607 2014-01-06 Tom Tromey <tromey@redhat.com>
16609 * doublest.c (convert_doublest_to_floatformat): Use const, not
16611 * somread.c (som_symtab_read): Likewise.
16613 2014-01-07 Hui Zhu <hui@codesourcery.com>
16615 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16616 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16617 (gdb_bfd_fopen): Ditto.
16618 (gdb_bfd_openr): Ditto.
16619 (gdb_bfd_openw): Ditto.
16620 (gdb_bfd_openr_iovec): Ditto.
16621 (gdb_bfd_fdopenr): Ditto.
16622 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16623 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16625 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16627 * symfile-mem.c (symbol_file_add_from_memory): Removed
16628 gdb_bfd_stash_filename.
16630 2014-01-03 Doug Evans <dje@google.com>
16632 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16635 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16637 Update year range in copyright notice of all files.
16639 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16641 * top.c (print_gdb_version): Set copyright year to 2014.
16643 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16645 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16647 For older changes see ChangeLog-2013.
16653 version-control: never